[yum-commits] reposync.py

zpavlas at osuosl.org zpavlas at osuosl.org
Mon Dec 3 08:02:34 UTC 2012


 reposync.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 6d3a95c63f3f000473f147bad230979fae00d029
Author: Zdeněk Pavlas <zpavlas at redhat.com>
Date:   Mon Dec 3 09:01:59 2012 +0100

    Initialize exit_code correctly.  BZ 882536

diff --git a/reposync.py b/reposync.py
index f868594..2e9db19 100755
--- a/reposync.py
+++ b/reposync.py
@@ -198,6 +198,7 @@ def main():
         # maybe this shouldn't be entirely fatal
         sys.exit(1)
     
+    exit_code = 0
     for repo in my.repos.listEnabled():
         reposack = ListPackageSack(my.pkgSack.returnPackages(repoid=repo.id))
 
@@ -293,7 +294,6 @@ def main():
             pkg.repo.cache = 0
 
         # use downloader from YumBase
-        exit_code = 0
         probs = my.downloadPkgs(download_list)
         if probs:
             exit_code = 1


More information about the Yum-commits mailing list