summaryrefslogtreecommitdiffstats
path: root/createrepo-head.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2011-04-30 09:52:11 +0200
committerRemi Collet <fedora@famillecollet.com>2011-04-30 09:52:11 +0200
commit8812d10e439424d83b4e837e91c5f88c15379355 (patch)
treeaba85d6f5317e67cd56c81f97cd0088f1d22ef99 /createrepo-head.patch
import createrepo from rawhide
Diffstat (limited to 'createrepo-head.patch')
-rw-r--r--createrepo-head.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/createrepo-head.patch b/createrepo-head.patch
new file mode 100644
index 0000000..4673323
--- /dev/null
+++ b/createrepo-head.patch
@@ -0,0 +1,35 @@
+diff --git a/createrepo/__init__.py b/createrepo/__init__.py
+index 8f2538e..07abc27 100644
+--- a/createrepo/__init__.py
++++ b/createrepo/__init__.py
+@@ -660,7 +660,12 @@ class MetaDataGenerator:
+ if line:
+ self.callback.errorlog('Worker %s: %s' % (num, line.rstrip()))
+
+-
++ for (num, job) in worker_jobs.items():
++ if job.returncode != 0:
++ msg = "Worker exited with non-zero value: %s. Fatal." % job.returncode
++ self.callback.errorlog(msg)
++ raise MDError, msg
++
+ if not self.conf.quiet:
+ self.callback.log("Workers Finished")
+ # finished with workers
+diff --git a/worker.py b/worker.py
+index eb35ef7..591a922 100755
+--- a/worker.py
++++ b/worker.py
+@@ -83,8 +83,10 @@ def main(args):
+ external_data=external_data)
+ pri.write(pkg.xml_dump_primary_metadata())
+ fl.write(pkg.xml_dump_filelists_metadata())
+- other.write(pkg.xml_dump_other_metadata(clog_limit=
+- globalopts.get('clog_limit', None)))
++ clog_limit=globalopts.get('clog_limit', None)
++ if clog_limit is not None:
++ clog_limit = int(clog_limit)
++ other.write(pkg.xml_dump_other_metadata(clog_limit=clog_limit))
+ except yum.Errors.YumBaseError, e:
+ print >> sys.stderr, "Error: %s" % e
+ continue