From fff333815f070420536285db1edb5bc049f602eb Mon Sep 17 00:00:00 2001 From: Jay Greguske Date: Jan 22 2010 19:10:24 +0000 Subject: Made building source repos an option, default is True --- diff --git a/mash/__init__.py b/mash/__init__.py index d6fee3c..38e4199 100644 --- a/mash/__init__.py +++ b/mash/__init__.py @@ -406,10 +406,10 @@ class Mash: repocache = repocache, arch = arch) pids.append(pid) - - path = os.path.join(outputdir, self.config.source_path) - pid = _write_files(source.packages(), path, path, repocache = repocache, arch = 'SRPMS') - pids.append(pid) + if self.config.source: + path = os.path.join(outputdir, self.config.source_path) + pid = _write_files(source.packages(), path, path, repocache = repocache, arch = 'SRPMS') + pids.append(pid) self.logger.info("Waiting for file copy and createrepo to finish...") rc = 0 diff --git a/mash/config.py b/mash/config.py index 253ec0d..f709301 100644 --- a/mash/config.py +++ b/mash/config.py @@ -55,6 +55,7 @@ class MashDistroConfig(config.BaseConfig): name = config.Option() rpm_path = config.Inherit(MashConfig.rpm_path) repodata_path = config.Inherit(MashConfig.repodata_path) + source = config.BoolOption(True) source_path = config.Inherit(MashConfig.source_path) debuginfo = config.Inherit(MashConfig.debuginfo) debuginfo_path = config.Inherit(MashConfig.debuginfo_path)