From: Claudio-Daniel Freire Date: Mon, 19 Sep 2011 01:02:20 +0000 (+0200) Subject: Ignore errors on yum cleanup, not really important X-Git-Tag: nepi-3.0.0~229 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=750e0235d03fe96454c19dbf1c5644622e6263e3;p=nepi.git Ignore errors on yum cleanup, not really important --- diff --git a/src/nepi/testbeds/planetlab/application.py b/src/nepi/testbeds/planetlab/application.py index c3d65d43..9b054f1b 100644 --- a/src/nepi/testbeds/planetlab/application.py +++ b/src/nepi/testbeds/planetlab/application.py @@ -985,7 +985,7 @@ class YumDependency(Dependency): "tar -C /var/cache/yum -rf ${BUILD}/packages.tar $(cd /var/cache/yum ; find -iname '*.rpm')" " ) || /bin/true ) && " "sudo -S sed -i -r 's/keepcache *= *1/keepcache=0/' /etc/yum.conf && " - "sudo -S nice yum -y clean packages " + "( sudo -S nice yum -y clean packages || /bin/true ) " ) % ( depends, ) def _build_set(self, value): # ignore @@ -1000,7 +1000,7 @@ class YumDependency(Dependency): return ( "sudo -S tar -k --keep-newer-files -C /var/cache/yum -xf packages.tar && " "sudo -S nice yum -y install %s && " - "sudo -S nice yum -y clean packages " + "( sudo -S nice yum -y clean packages || /bin/true ) " ) % ( depends, ) def _install_set(self, value): # ignore