diff options
author | Tim Rozet <trozet@redhat.com> | 2016-12-01 19:49:34 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2016-12-01 19:49:34 +0000 |
commit | ee0214b0bfd971b3d177f383ab3d123674899282 (patch) | |
tree | dd5f6bfa76ec863caf76b8b0a3b0e34d37c45829 | |
parent | 0608cff7a495e131d2e187aa073f8a32153345c0 (diff) | |
parent | 5956208dd64f9e65a411baf1da3a285fd0b49517 (diff) |
Merge "redo the libguestfs addition installation"
-rwxr-xr-x | ci/dev_dep_check.sh | 15 |
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 |