From da4f0715881f6a406e12c25275b534a8d779bde0 Mon Sep 17 00:00:00 2001 From: Ramy Asselin Date: Thu, 12 Mar 2015 14:10:53 -0700 Subject: [PATCH] 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 --- nodepool/elements/cache-devstack/install.d/50-download-pkgs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nodepool/elements/cache-devstack/install.d/50-download-pkgs b/nodepool/elements/cache-devstack/install.d/50-download-pkgs index b477955553..2768a65d6e 100755 --- a/nodepool/elements/cache-devstack/install.d/50-download-pkgs +++ b/nodepool/elements/cache-devstack/install.d/50-download-pkgs @@ -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