Install yum-plugin-downloadonly on nodes
The --downloadonly option to yum is provided by the yum-plugin-downloadonly package. This is merely a virtual package satisfied by yum itself in newer releases, but an optional package in older ones such as CentOS/RHEL 6.x. Install it just to be sure it will work, since we use this to pre-cache RPMs on nodepool images. Change-Id: I9e2e1605f3721c410180aa46a81b7b731d08503a
This commit is contained in:
parent
2a50bf153c
commit
0137c25b46
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue