]> git.pld-linux.org Git - projects/pld-builder.new.git/commitdiff
Escape percent.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 1 Nov 2014 14:27:16 +0000 (15:27 +0100)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 1 Nov 2014 14:27:16 +0000 (15:27 +0100)
PLD_Builder/rpm_builder.py

index c52afe109dffcf097923b17c220135f0c9035bd9..904bb0e1d9efabedcd71df352f0a7996f5b90c1f 100644 (file)
@@ -227,7 +227,7 @@ def build_rpm(r, b):
                 if r.max_jobs > 0:
                     max_jobs = max(min(config.max_jobs, r.max_jobs), 1)
                 cmd = "set -ex; : build-id: %(r_id)s; TMPDIR=%(tmpdir)s exec nice -n %(nice)s " \
-                    "rpmbuild -bb --define '_smp_mflags -j%(max_jobs)d' --define '__make /usr/bin/make -Otarget %{?_smp_mflags}' --define '_pld_builder 1' %(rpmdefs)s %(topdir)s/%(spec)s" % {
+                    "rpmbuild -bb --define '_smp_mflags -j%(max_jobs)d' --define '__make /usr/bin/make -Otarget %%{?_smp_mflags}' --define '_pld_builder 1' %(rpmdefs)s %(topdir)s/%(spec)s" % {
                     'r_id' : r.id,
                     'tmpdir': tmpdir,
                     'nice' : config.nice,
This page took 0.180873 seconds and 4 git commands to generate.