diff -up yum-utils-1.1.31/reposync.py.orig yum-utils-1.1.31/reposync.py
--- yum-utils-1.1.31/reposync.py.orig 2019-04-26 12:44:55.323812328 +0200
+++ yum-utils-1.1.31/reposync.py 2019-04-26 12:45:36.235545079 +0200
@@ -182,7 +182,11 @@ def main():
# and package files ... needs to be setup before .repos (ie. RHN/etc.).
if not opts.quiet:
my.repos.setProgressBar(TextMeter(fo=sys.stdout), TextMultiFileMeter(fo=sys.stdout))
- my.doRepoSetup()
+ try:
+ my.doRepoSetup()
+ except yum.Errors.RepoError, e:
+ print >> sys.stderr, "Error setting up repositories: %s" % e
+ sys.exit(1)
if len(opts.repoid) > 0:
myrepos = []
diff -up yum-utils-1.1.31/repotrack.py.orig yum-utils-1.1.31/repotrack.py
--- yum-utils-1.1.31/repotrack.py.orig 2019-04-26 12:44:55.319812255 +0200
+++ yum-utils-1.1.31/repotrack.py 2019-04-26 12:45:01.929933148 +0200
@@ -169,7 +169,11 @@ def main():
# enable the ones we like
for repo in myrepos:
repo.enable()
- my._getSacks(archlist=archlist, thisrepo=repo.id)
+ try:
+ my._getSacks(archlist=archlist, thisrepo=repo.id)
+ except yum.Errors.RepoError, e:
+ my.logger.error(e)
+ sys.exit(1)
if opts.repofrompath:
for repo in opts.repofrompath: