From 2ec73e0ca86b0304ef24600f0c329707567b9584 Mon Sep 17 00:00:00 2001 From: Hedayat Vatankhah Date: Thu, 6 Oct 2011 03:47:25 +0330 Subject: Add a small sleep to wait for aria2c work at the end (renaming the files) --- yum-fast-downloader.py | 1 + 1 file changed, 1 insertion(+) 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)) -- cgit