[yum-commits] Branch 'yum-3_2_X' - yum/__init__.py

James Antill james at osuosl.org
Mon Jan 26 16:39:00 UTC 2009


 yum/__init__.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit d0ecb7b0226ce963e99e06efae5979c77f9a765e
Author: James Antill <james at and.org>
Date:   Mon Jan 26 11:38:24 2009 -0500

    Don't call total download cb if we had errors

diff --git a/yum/__init__.py b/yum/__init__.py
index d2ea312..cfa647c 100644
--- a/yum/__init__.py
+++ b/yum/__init__.py
@@ -1297,7 +1297,7 @@ class YumBase(depsolve.Depsolve):
                 if errors.has_key(po):
                     del errors[po]
 
-        if callback_total is not None:
+        if callback_total is not None and not errors:
             callback_total(remote_pkgs, remote_size, beg_download)
 
         self.plugins.run('postdownload', pkglist=pkglist, errors=errors)


More information about the Yum-commits mailing list