[yum-git] reposync.py
Seth Vidal
skvidal at linux.duke.edu
Tue Jul 1 20:41:29 UTC 2008
reposync.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
New commits:
commit 7f05cf4fef17ab6c95a2d5882d0b5a93de0fc830
Author: Seth Vidal <skvidal at fedoraproject.org>
Date: Tue Jul 1 16:39:41 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 62244d3..5635cd6 100755
--- a/reposync.py
+++ b/reposync.py
@@ -245,7 +245,12 @@ def main():
if not opts.quiet:
my.logger.info( '[%s: %-5d of %-5d ] Downloading %s' % (repo.id, n, len(download_list), 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