mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] add timeout to fetchlist's wget
This commit is contained in:
parent
aad3740933
commit
3f22f15dd3
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ def app_fetchlist(url=None, name=None):
|
||||||
m18n.n('custom_appslist_name_required'))
|
m18n.n('custom_appslist_name_required'))
|
||||||
|
|
||||||
list_file = '%s/%s.json' % (repo_path, name)
|
list_file = '%s/%s.json' % (repo_path, name)
|
||||||
if os.system('wget "%s" -O "%s.tmp"' % (url, list_file)) != 0:
|
if os.system('wget --timeout=30 "%s" -O "%s.tmp"' % (url, list_file)) != 0:
|
||||||
os.remove('%s.tmp' % list_file)
|
os.remove('%s.tmp' % list_file)
|
||||||
raise MoulinetteError(errno.EBADR, m18n.n('appslist_retrieve_error'))
|
raise MoulinetteError(errno.EBADR, m18n.n('appslist_retrieve_error'))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue