[yum-git] plugins/downloadonly
James Antill
james at linux.duke.edu
Fri Sep 19 06:40:52 UTC 2008
plugins/downloadonly/downloadonly.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 431f22085e91fd030b5c9e9dfe219ad10af45cfc
Author: James Antill <james at and.org>
Date: Fri Sep 19 02:40:47 2008 -0400
Don't hide download errors in downloadonly mode
diff --git a/plugins/downloadonly/downloadonly.py b/plugins/downloadonly/downloadonly.py
index a0541eb..8bbf7bb 100644
--- a/plugins/downloadonly/downloadonly.py
+++ b/plugins/downloadonly/downloadonly.py
@@ -40,5 +40,6 @@ def postreposetup_hook(conduit):
def postdownload_hook(conduit):
opts, commands = conduit.getCmdLine()
- if opts.dlonly:
+ # Don't die on errors, or we'll never see them.
+ if not conduit.getErrors() and opts.dlonly:
raise PluginYumExit('exiting because --downloadonly specified ')
More information about the Yum-cvs-commits
mailing list