Ignore missing packages

There are some cases where packages (or its dependencies) are missing.
Cache them on a best-effort basis, and ignore any that are missing.
They will be downloaded and installed if and when they are needed.

Change-Id: I5cd7f5f35b4fef6002c6cc3d66543a33a6972ef8
This commit is contained in:
Ramy Asselin 2015-03-12 14:10:53 -07:00
parent 96d208aeed
commit da4f071588
1 changed files with 2 additions and 1 deletions

View File

@ -20,7 +20,8 @@ set -e
while read line ; do
if [ -f /usr/bin/apt-get ] ; then
apt-get -y -d install $line
# --ignore-missing conflicts with set -e, so force it to be ok
apt-get -y --ignore-missing -d install $line || true
else
yum install -y --downloadonly $line
fi