longer timeout for fine machines

This commit is contained in:
JerryXiao 2019-11-09 21:02:40 +08:00
parent 09f037c0eb
commit 02cc370e41
1 changed files with 2 additions and 2 deletions

View File

@ -444,7 +444,7 @@ class updateManager:
def __get_package_list(self, dirname, arch):
pkgdir = REPO_ROOT / dirname
assert pkgdir.exists()
pkglist = nspawn_shell(arch, MAKEPKG_PKGLIST_CMD, cwd=pkgdir)
pkglist = nspawn_shell(arch, MAKEPKG_PKGLIST_CMD, cwd=pkgdir, RUN_CMD_TIMEOUT=5*60)
pkglist = pkglist.split('\n')
pkglist = [line for line in pkglist if not line.startswith('+')]
return pkglist
@ -479,7 +479,7 @@ class updateManager:
for scr in getattr(pkg, 'update', list()):
if type(scr) is str:
mon_nspawn_shell(arch, scr, cwd=pkgdir, seconds=60*60)
mon_nspawn_shell(arch, MAKEPKG_UPD_CMD, cwd=pkgdir, seconds=60*60,
mon_nspawn_shell(arch, MAKEPKG_UPD_CMD, cwd=pkgdir, seconds=5*60*60,
logfile = pkgdir / PKG_UPDATE_LOGFILE,
short_return = True)
if pkg.type in ('git', 'manual'):