diff options
author | Bogdano Arendartchuk <bogdano@mandriva.org> | 2008-07-17 12:26:17 +0000 |
---|---|---|
committer | Bogdano Arendartchuk <bogdano@mandriva.org> | 2008-07-17 12:26:17 +0000 |
commit | 925d7d843f6b9ab867d35cbf596e7c29550ffa0b (patch) | |
tree | e97a93b80744ecc3a81f86a9810a5b66b26ceb34 | |
parent | 665e63a56f49011a8daa6c8123ce5261a1a51967 (diff) | |
download | mgarepo-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.
-rw-r--r-- | RepSys/rpmutil.py | 7 |
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 = [] |