summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xserver/debuginfofs-mirror7
1 files changed, 5 insertions, 2 deletions
diff --git a/server/debuginfofs-mirror b/server/debuginfofs-mirror
index 154a06c..ef66633 100755
--- a/server/debuginfofs-mirror
+++ b/server/debuginfofs-mirror
@@ -338,8 +338,11 @@ def main():
for p in unpack_packages + download_packages:
if p in download_packages:
repo = y.repos.getRepo(p.repoid)
- # FIXME handle possible errors here
- repo.getPackage(p)
+ try:
+ repo.getPackage(p)
+ except yum.Errors.RepoError, e:
+ y.logger.error(str(e))
+ y.logger.error("Can't download %s; skipping" % pkg_to_nevra(p))
if opt.download_only:
continue
local = p.localpath