abi/bootstrap: only install packages if missing
am: bd5e166237

Change-Id: I9c249bdaba00cce42a2efa69177a82599d56e217
diff --git a/abi/bootstrap b/abi/bootstrap
index 27cbcfe..c2f0120 100755
--- a/abi/bootstrap
+++ b/abi/bootstrap
@@ -29,8 +29,11 @@
 
 set -x
 
+PACKAGES="libxml2-dev elfutils libdw-dev"
 # Install the dependencies.
-sudo apt-get install libxml2-dev elfutils libdw-dev
+if ! dpkg -s ${PACKAGES} > /dev/null 2>&1 ; then
+    sudo apt-get install ${PACKAGES}
+fi
 
 if [ ! -d "${LIBABIGAIL_SRC}" ]; then
   git clone git://sourceware.org/git/libabigail.git "${LIBABIGAIL_SRC}"