createrepo/__init__.py worker.py
[email protected] Tue, 5 Apr 2011 15:58:15 +0000 (UTC)
| Newsgroups | gmane.linux.rpm.metadata |
|---|---|
| Message-ID | <[email protected]> |
createrepo/__init__.py | 3 ++- worker.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) New commits: commit 7c375657274617649a69c72931a433cf1a6bc505 Author: Seth Vidal <[email protected]> Date: Tue Apr 5 11:57:42 2011 -0400 make sure the -s option propagates down to the worker diff --git a/createrepo/__init__.py b/createrepo/__init__.py index 5f0ba6f..44035cc 100644 --- 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') diff --git a/worker.py b/worker.py index 591a922..ab78d90 100755 --- a/worker.py +++ b/worker.py @@ -80,7 +80,8 @@ def main(args): print "reading %s" % (pkgfile) pkg = createrepo.yumbased.CreateRepoPackage(ts, package=pkgpath, - external_data=external_data) + sumtype=globalopts.get('sumtype', None), + external_data=external_data) pri.write(pkg.xml_dump_primary_metadata()) fl.write(pkg.xml_dump_filelists_metadata()) clog_limit=globalopts.get('clog_limit', None)