| |
@@ -157,7 +157,9 @@
|
| |
config = Settings.mock_config
|
| |
mockdir = Settings.configdir if Settings.configdir \
|
| |
else '/etc/mock'
|
| |
- path = os.path.join(mockdir, config + '.cfg')
|
| |
+ path = os.path.join(mockdir, config + '.cfg') \
|
| |
+ if not config.endswith('.cfg') \
|
| |
+ else os.path.join(mockdir, config)
|
| |
|
| |
config_opts = {}
|
| |
with open(path) as f:
|
| |
This PR allows the use of a custom mock config instead of only the files in /etc/mock.
For example one can generate a mock config with fedpkg:
fedpkg --release f28 mock-config > mock.cfg
And then use it in fedora-review:
fedora-review --mock-config
pwd
/mock.cfg -n packageThis allows to build directly from the latest Koji packages and thus avoid the need to wait for the next Rawhide compose.