diff options
author | 2015-08-17 00:43:08 +0200 | |
---|---|---|
committer | 2015-08-17 00:43:08 +0200 | |
commit | e71fd837faf51fc0e9a123477bfc7558c24b37c0 (patch) | |
tree | 5ca0ddebed52e382cf6aa035819c16db0c3a14a9 | |
parent | [g_sorcery/git_syncer] detect changes of branch and remote URL (diff) | |
download | g-sorcery-e71fd837faf51fc0e9a123477bfc7558c24b37c0.tar.gz g-sorcery-e71fd837faf51fc0e9a123477bfc7558c24b37c0.tar.bz2 g-sorcery-e71fd837faf51fc0e9a123477bfc7558c24b37c0.zip |
[g_sorcery/fileutils] set wget timeout to 2 seconds
-rw-r--r-- | g_sorcery/fileutils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/g_sorcery/fileutils.py b/g_sorcery/fileutils.py index d783c8a..235eaec 100644 --- a/g_sorcery/fileutils.py +++ b/g_sorcery/fileutils.py @@ -149,9 +149,9 @@ def wget(uri, directory, output=""): """ if output: ret = os.system('wget ' + uri + - ' -O ' + os.path.join(directory, output)) + ' -O ' + os.path.join(directory, output) + ' -T 2') else: - ret = os.system('wget -P ' + directory + ' ' + uri) + ret = os.system('wget -P ' + directory + ' ' + uri + ' -T 2') return ret def get_pkgpath(root = None): |