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:
parent
96d208aeed
commit
da4f071588
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue