diff options
author | Hedayat Vatankhah <hedayat.fwd@gmail.com> | 2011-10-19 17:18:27 +0330 |
---|---|---|
committer | Hedayat Vatankhah <hedayat.fwd@gmail.com> | 2011-10-19 17:18:27 +0330 |
commit | b1cb67495e552c297e62bd624cc8b298f8d09b4f (patch) | |
tree | 139d61604abf3277a8ee2d85bb16716bc8a35837 /yum-fast-downloader.py | |
parent | baa19078425364bc74fff3301586cbd6133157f5 (diff) | |
download | yum-fast-downloader-b1cb67495e552c297e62bd624cc8b298f8d09b4f.tar.gz yum-fast-downloader-b1cb67495e552c297e62bd624cc8b298f8d09b4f.tar.xz yum-fast-downloader-b1cb67495e552c297e62bd624cc8b298f8d09b4f.zip |
Add repo name in md download messages
Diffstat (limited to 'yum-fast-downloader.py')
-rw-r--r-- | yum-fast-downloader.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/yum-fast-downloader.py b/yum-fast-downloader.py index fda6f34..b012c53 100644 --- a/yum-fast-downloader.py +++ b/yum-fast-downloader.py @@ -62,10 +62,11 @@ def _getAria2CArgs(urls, remote_path, local_path, proxies = None): def downloadFile(urls, remote_path, local_path, proxies = None): if urls[0].startswith("http://") or urls[0].startswith("ftp://"): + repo_name = os.path.basename(os.path.dirname(local_path)) print "\n============================================================" \ - "====================\nDownloading {0}\n=========="\ + "====================\nDownloading ({0}) {1}\n=========="\ "==================================================================="\ - "===".format(remote_path) + "===".format(repo_name, remote_path) args = _getAria2CArgs(urls, remote_path, local_path) ret = os.spawnvp(os.P_WAIT, downloader_app, args) if ret: |