[yum-git] Branch 'yum-utils-1_0_X' - reposync.py

Seth Vidal skvidal at linux.duke.edu
Tue Jul 1 20:42:22 UTC 2008


 reposync.py |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

New commits:
commit 9e0eaafb27f8f98e235d85cb282659c4db34e683
Author: Seth Vidal <skvidal at fedoraproject.org>
Date:   Tue Jul 1 16:40:35 2008 -0400

    if we hit a repoerror downloading a package, just output the error and move along
    don't make it fatal

diff --git a/reposync.py b/reposync.py
index d16f2fa..919d82e 100644
--- a/reposync.py
+++ b/reposync.py
@@ -189,7 +189,12 @@ def main():
             if not opts.quiet:
                 my.logger.info( 'Downloading %s' % os.path.basename(remote))
             pkg.localpath = local # Hack: to set the localpath we want.
-            path = repo.getPackage(pkg)
+            try:
+                path = repo.getPackage(pkg)
+            except yum.Errors.RepoError, e:
+                my.logger.error("Could not retrieve package %s. Error was %s" % (pkg, str(e))
+                continue
+                
             if opts.gpgcheck:
                 result, error = my.sigCheckPkg(pkg)
                 if result != 0:



More information about the Yum-cvs-commits mailing list