File createrepo-0.9.9-pass_checksum_to_workers.patch of Package createrepo
--- a/createrepo/__init__.py
+++ b/createrepo/__init__.py
@@ -617,7 +617,8 @@ class MetaDataGenerator:
'--pkgoptions=_collapse_libc_requires=%s' % self.conf.collapse_glibc_requires,
'--pkgoptions=_cachedir=%s' % self.conf.cachedir,
'--pkgoptions=_baseurl=%s' % self.conf.baseurl,
- '--globalopts=clog_limit=%s' % self.conf.changelog_limit,]
+ '--globalopts=clog_limit=%s' % self.conf.changelog_limit,
+ '--globalopts=sumtype=%s' % self.conf.sumtype, ]
if self.conf.quiet:
base_worker_cmdline.append('--quiet')
--- a/worker.py
+++ b/worker.py
@@ -80,6 +80,7 @@
print "reading %s" % (pkgfile)
pkg = createrepo.yumbased.CreateRepoPackage(ts, package=pkgpath,
+ sumtype=globalopts.get('sumtype', None),
external_data=external_data)
pri.write(pkg.xml_dump_primary_metadata())
fl.write(pkg.xml_dump_filelists_metadata())