summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHedayat Vatankhah <hedayat.fwd@gmail.com>2011-10-06 03:47:25 +0330
committerHedayat Vatankhah <hedayat.fwd@gmail.com>2011-10-06 03:47:25 +0330
commit2ec73e0ca86b0304ef24600f0c329707567b9584 (patch)
tree604c9e789cd243904e15c8588e8119ee21766bca
parent01c9158a54482d1433ff7db72f23a3d50c8e5d14 (diff)
downloadyum-fast-downloader-2ec73e0ca86b0304ef24600f0c329707567b9584.tar.gz
yum-fast-downloader-2ec73e0ca86b0304ef24600f0c329707567b9584.tar.xz
yum-fast-downloader-2ec73e0ca86b0304ef24600f0c329707567b9584.zip
Add a small sleep to wait for aria2c work at the end (renaming the files)
-rw-r--r--yum-fast-downloader.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/yum-fast-downloader.py b/yum-fast-downloader.py
index 9a9ceae..b22a526 100644
--- a/yum-fast-downloader.py
+++ b/yum-fast-downloader.py
@@ -92,6 +92,7 @@ def downloadQueuedFiles(inputFileName):
args = downloader_common_args['aria2c']
args.append("--input-file={0}".format(inputFileName))
ret = os.spawnvp(os.P_WAIT, "aria2c", args)
+ sleep(1)
if ret:
raise yum.plugins.PluginYumExit(
"{0} exited with exit code: {1}".format(downloader_app, ret))