Merge "Install yum-plugin-downloadonly on nodes"

This commit is contained in:
Jenkins 2015-05-07 16:11:27 +00:00 committed by Gerrit Code Review
commit 47532ee5c3
2 changed files with 15 additions and 0 deletions

View File

@ -17,6 +17,14 @@
set -e
if [ -f /usr/bin/yum ] ; then
# --downloadonly is provided by the yum-plugin-downloadonly
# package which is a virtual package in newer releases but an
# optional package in older ones such as CentOS/RHEL 6.x, so
# install it just to be sure it will work
yum install -y yum-plugin-downloadonly
fi
while read line ; do
if [ -f /usr/bin/apt-get ] ; then

View File

@ -95,6 +95,13 @@ def _find_images(basedir):
def local_prep(distribution):
if os.path.exists('/usr/bin/yum'):
# --downloadonly is provided by the yum-plugin-downloadonly
# package which is a virtual package in newer releases but
# an optional package in older ones such as CentOS/RHEL 6.x,
# so install it just to be sure it will work
run_local(['sudo', 'yum', 'install', '-y', 'yum-plugin-downloadonly'])
branches = []
for branch in git_branches():
# Ignore branches of the form 'somestring -> someotherstring'