[yum-git] yumdownloader.py
Tim Lauridsen
timlau at linux.duke.edu
Wed Mar 12 16:10:15 UTC 2008
yumdownloader.py | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 7a33a3d37c5606690a1178e27bdc1ee4f3da2b58
Author: Tim Lauridsen <tim at naboo.local>
Date: Wed Mar 12 17:10:08 2008 +0100
make yumdownloader return an non zero value if there is notthing to download (rhbz #170287)
diff --git a/yumdownloader.py b/yumdownloader.py
index e4d4d6b..fc1ee76 100755
--- a/yumdownloader.py
+++ b/yumdownloader.py
@@ -185,6 +185,7 @@ class YumDownloader(YumUtilBase):
toDownload.append(pkg)
if len(toDownload) == 0:
self.logger.error('Nothing to download')
+ sys.exit(1)
for pkg in toDownload:
n,a,e,v,r = pkg.pkgtup
More information about the Yum-cvs-commits
mailing list