| |
@@ -2830,7 +2830,9 @@
|
| |
if not root:
|
| |
root = self.mockconfig
|
| |
chroot_cfg = '/etc/mock/%s.cfg' % root
|
| |
- if not os.path.exists(chroot_cfg):
|
| |
+ home_chroot_cfg = '~/.config/mock/%s.cfg' % root
|
| |
+ home_chroot_cfg = os.path.expanduser(home_chroot_cfg)
|
| |
+ if not os.path.exists(chroot_cfg) and not os.path.exists(home_chroot_cfg):
|
| |
self.log.debug('Mock config %s was not found. Going to'
|
| |
' request koji to create new one.', chroot_cfg)
|
| |
try:
|
| |
This has been originally reported by Maxwell G in:
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/BNQ2TFWODJW3JSOBAG26AZQBOS5HHZMD/
Signed-off-by: Pavel Raiskup praiskup@redhat.com