aboutsummaryrefslogtreecommitdiffstats
path: root/MgaRepo/rpmutil.py
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <proyvind@moondrake.org>2016-05-30 18:17:05 +0200
committerPer Øyvind Karlsen <proyvind@moondrake.org>2016-05-30 18:17:05 +0200
commit512584f8b2cdedb5076e3981cd4cbd7248594beb (patch)
tree2ad5badcf9ab168a18a8f6e86b808aa1f1aad809 /MgaRepo/rpmutil.py
parent681e44a9c70a3fe704d81bc33c563243c9c8ad63 (diff)
downloadmgarepo-512584f8b2cdedb5076e3981cd4cbd7248594beb.tar
mgarepo-512584f8b2cdedb5076e3981cd4cbd7248594beb.tar.gz
mgarepo-512584f8b2cdedb5076e3981cd4cbd7248594beb.tar.bz2
mgarepo-512584f8b2cdedb5076e3981cd4cbd7248594beb.tar.xz
mgarepo-512584f8b2cdedb5076e3981cd4cbd7248594beb.zip
add --short-circuit support with buildrpm -s
Diffstat (limited to 'MgaRepo/rpmutil.py')
-rw-r--r--MgaRepo/rpmutil.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/MgaRepo/rpmutil.py b/MgaRepo/rpmutil.py
index 550e2aa..3220cf0 100644
--- a/MgaRepo/rpmutil.py
+++ b/MgaRepo/rpmutil.py
@@ -377,6 +377,7 @@ def put_srpm(srpmfile, markrelease=False, striplog=True, branch=None,
def build_rpm(build_cmd="b",
verbose=False,
rpmlint=True,
+ short_circuit=False,
packager = "",
macros = []):
top = os.getcwd()
@@ -408,6 +409,8 @@ def build_rpm(build_cmd="b",
rpmbuild = config.get("helper", "rpmbuild", "rpmbuild")
args = [rpmbuild, "-b"+build_cmd, spec]
+ if short_circuit:
+ args.append("--short-circuit")
for pair in rpmdefs:
args.extend(pair)
for pair in macros: