bodhi/masher.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit cd34489551e1f2e992b2456c8d325a5c90e883e4
Author: Jesse Keating <jkeating(a)redhat.com>
Date: Thu Dec 18 15:30:25 2008 -0800
Add a -p call to mash, so that we can re-use existing repodata
diff --git a/bodhi/masher.py b/bodhi/masher.py
index fb87260..dad5e38 100644
--- a/bodhi/masher.py
+++ b/bodhi/masher.py
@@ -519,7 +519,8 @@ class MashTask(Thread):
self.mashed_repos[repo] = mashdir
comps = join(config.get('comps_dir'), 'comps-%s.xml' %
repo.split('-')[0])
- mashcmd = self.cmd % (mashdir, comps) + repo
+ updatepath = join(config.get('mashed_dir'), repo)
+ mashcmd = self.cmd % (mashdir, comps) + '-p %s ' % updatepath + repo
log.info("Running `%s`" % mashcmd)
p = subprocess.Popen(mashcmd, stdout=subprocess.PIPE, shell=True)
stdout, stderr = p.communicate()