summaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorTim Rozet <trozet@redhat.com>2016-12-01 19:49:34 +0000
committerGerrit Code Review <gerrit@opnfv.org>2016-12-01 19:49:34 +0000
commitee0214b0bfd971b3d177f383ab3d123674899282 (patch)
treedd5f6bfa76ec863caf76b8b0a3b0e34d37c45829 /ci
parent0608cff7a495e131d2e187aa073f8a32153345c0 (diff)
parent5956208dd64f9e65a411baf1da3a285fd0b49517 (diff)
Merge "redo the libguestfs addition installation"
Diffstat (limited to 'ci')
-rwxr-xr-xci/dev_dep_check.sh15
1 files changed, 12 insertions, 3 deletions
diff --git a/ci/dev_dep_check.sh b/ci/dev_dep_check.sh
index 52643459..6814227e 100755
--- a/ci/dev_dep_check.sh
+++ b/ci/dev_dep_check.sh
@@ -64,11 +64,20 @@ virt_pkgs=(
'perl-Sys-Guestfs-1.32.7-3.el7.x86_64.rpm'
'python-libguestfs-1.32.7-3.el7.x86_64.rpm'
)
-
+dir=/tmp/packages.$RANDOM
+mkdir -p $dir
+pushd $dir
+all_packages=""
for pkg in ${virt_pkgs[@]}; do
if ! rpm -q ${pkg%-*-*}; then
- if ! sudo yum -y install $virt_uri_base/$pkg; then
- echo "ERROR: Failed to update $pkg"
+ if ! wget $virt_uri_base/$pkg; then
+ echo "ERROR: Failed to download $pkg"
fi
+ all_packages="$all_packages $pkg"
fi
done
+if [[ $all_packages != "" ]];then
+ yum install -y $all_packages
+fi
+rm -rf $dir
+popd