aboutsummaryrefslogtreecommitdiffstats
path: root/RepSys/rpmutil.py
diff options
context:
space:
mode:
authorBogdano Arendartchuk <bogdano@mandriva.org>2008-07-17 12:26:17 +0000
committerBogdano Arendartchuk <bogdano@mandriva.org>2008-07-17 12:26:17 +0000
commit925d7d843f6b9ab867d35cbf596e7c29550ffa0b (patch)
treee97a93b80744ecc3a81f86a9810a5b66b26ceb34 /RepSys/rpmutil.py
parent665e63a56f49011a8daa6c8123ce5261a1a51967 (diff)
downloadmgarepo-925d7d843f6b9ab867d35cbf596e7c29550ffa0b.tar
mgarepo-925d7d843f6b9ab867d35cbf596e7c29550ffa0b.tar.gz
mgarepo-925d7d843f6b9ab867d35cbf596e7c29550ffa0b.tar.bz2
mgarepo-925d7d843f6b9ab867d35cbf596e7c29550ffa0b.tar.xz
mgarepo-925d7d843f6b9ab867d35cbf596e7c29550ffa0b.zip
Changed get_srpm to use the configuration option "rpmbuild" from [helper]
This way we can configure repsys about which command to use to build SRPMs.
Diffstat (limited to 'RepSys/rpmutil.py')
-rw-r--r--RepSys/rpmutil.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/RepSys/rpmutil.py b/RepSys/rpmutil.py
index 32b7145..57a8dd7 100644
--- a/RepSys/rpmutil.py
+++ b/RepSys/rpmutil.py
@@ -117,9 +117,10 @@ def get_srpm(pkgdirurl,
packager = " --define 'packager %s'" % packager
defs = rpm_macros_defs(macros)
- execcmd("rpm -bs --nodeps %s %s %s %s %s %s %s %s %s %s" %
- (topdir, builddir, rpmdir, sourcedir, specdir,
- srcrpmdir, patchdir, packager, spec, defs))
+ sourcecmd = config.get("helper", "rpmbuild", "rpmbuild")
+ execcmd("%s -bs --nodeps %s %s %s %s %s %s %s %s %s %s" %
+ (sourcecmd, topdir, builddir, rpmdir, sourcedir, specdir,
+ srcrpmdir, patchdir, packager, spec, defs))
# copy the generated SRPMs to their target locations
targetsrpms = []