| |
@@ -603,7 +603,7 @@
|
| |
builddir = os.path.join(self.cloned_repo_path, 'this-builddir')
|
| |
|
| |
cli_cmd = ['rpkg', '--path', self.cloned_repo_path, '--release', 'rhel-6', '-q', 'local',
|
| |
- '--builddir', builddir, '--arch', 'i686']
|
| |
+ '--builddir', builddir, '--arch', 'i686', '--with', 'a', '--without', 'b']
|
| |
|
| |
with patch('sys.argv', new=cli_cmd):
|
| |
cli = self.new_cli()
|
| |
@@ -611,7 +611,8 @@
|
| |
|
| |
spec = os.path.join(cli.cmd.path, cli.cmd.spec)
|
| |
rpmbuild = ['rpmbuild'] + cli.cmd.rpmdefines + \
|
| |
- ["--define '_builddir %s'" % builddir, '--target', 'i686', '--quiet', '-ba', spec]
|
| |
+ ['--with', 'a', '--without', 'b', "--define '_builddir %s'" % builddir,
|
| |
+ '--target', 'i686', '--quiet', '-ba', spec]
|
| |
tee = ['tee', '.build-%s-%s.log' % (cli.cmd.ver, cli.cmd.rel)]
|
| |
|
| |
cmd = '%s | %s; exit "${PIPESTATUS[0]} ${pipestatus[1]}"' % (
|
| |
The 'mockbuild' command learned these options in 69b3864 ("Add --with
and --without options to mockbuild", 2017-08-17).
Resolves: rhbz#1533416
Signed-off-by: Todd Zullinger tmz@pobox.com
I ran across https://bugzilla.redhat.com/show_bug.cgi?id=1533416 and thought it might be a relatively easy-fix. I don't have a particular use for it, but if it helps others that's good too. I didn't add a separate test for this as it didn't seem to warrant one. But it shouldn't be too hard to split it out and test separately if desired.
With the
localargs
support we could also now easily add things like--nocheck
or other commonly usedrpmbuild
options.