#595 Accept also ~/.config/mock/<chroot>.cfg files
Merged 3 years ago by onosek. Opened 3 years ago by praiskup.
praiskup/rpkg mock-home-config  into  master

file modified
+3 -1
@@ -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:

+1. Thanks for getting on this so quickly, Pavel!

Maxwell

Thanks for this change.

Pull-Request has been merged by onosek

3 years ago
Metadata