| |
@@ -1155,6 +1155,10 @@
|
| |
action='store_true',
|
| |
help="Enforce use of local Mock configuration.")
|
| |
mockbuild_parser.add_argument(
|
| |
+ '--default-mock-resultdir', default=None, dest="default_mock_resultdir",
|
| |
+ action='store_true',
|
| |
+ help="Don't modify Mock resultdir.")
|
| |
+ mockbuild_parser.add_argument(
|
| |
'--extra-pkgs', action='append', nargs='*',
|
| |
help="Install additional packages into chroot")
|
| |
|
| |
@@ -2544,7 +2548,7 @@
|
| |
self.cmd.mockbuild(mockargs, self.args.root,
|
| |
hashtype=self.args.hash,
|
| |
shell=self.args.shell, # nosec
|
| |
- force_local_mock_config=self.args.local_mock_config)
|
| |
+ force_local_mock_config=self.args.local_mock_config, default_mock_resultdir=self.args.default_mock_resultdir)
|
| |
except Exception as e:
|
| |
raise rpkgError(e)
|
| |
|
| |
This is a refresh of PR https://pagure.io/rpkg/pull-request/609
after understand that mockbuild was already in fist commit that set resultdir https://pagure.io/rpkg/c/7dc8589c
This new approx change the option name to default-mock-resultdir.
and just change it in mockbuild function and make the logic simpler.