allow setting the timeout for builds from config file

This commit is contained in:
Dan Horák 2013-03-06 22:21:41 +01:00 committed by Dennis Gilmore
parent a1096fb878
commit 8cba161a3e
3 changed files with 7 additions and 3 deletions

View file

@ -1277,7 +1277,7 @@ def genMockConfig(name, arch, managed=False, repoid=None, tag_name=None, **opts)
# don't encourage network access from the chroot
'use_host_resolv': opts.get('use_host_resolv', False),
# Don't let a build last more than 24 hours
'rpmbuild_timeout': 86400
'rpmbuild_timeout': opts.get('rpmbuild_timeout', 86400)
}
# bind_opts are used to mount parts (or all of) /dev if needed.