builder: add bootstrap-chroot support for mock
fixes https://pagure.io/koji/issue/1017
This commit is contained in:
parent
be16251b41
commit
1f1da58ec2
2 changed files with 10 additions and 1 deletions
|
|
@ -548,7 +548,13 @@ class BuildRoot(object):
|
|||
return koji.pathinfo.taskrelpath(self.task_id)
|
||||
|
||||
def init(self):
|
||||
rv = self.mock(['--init'])
|
||||
args = ['--init']
|
||||
|
||||
if 'mock.bootstrap_chroot' in self.config['extra']:
|
||||
if self.config['extra']['mock.bootstrap_chroot']:
|
||||
args.append('--bootstrap-chroot')
|
||||
|
||||
rv = self.mock(args)
|
||||
|
||||
if rv:
|
||||
self.expire()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue