diff options
author | Hedayat Vatankhah <hedayat.fwd@gmail.com> | 2011-10-08 13:30:42 +0330 |
---|---|---|
committer | Hedayat Vatankhah <hedayat.fwd@gmail.com> | 2011-10-08 13:30:42 +0330 |
commit | 5f97c2f9f885784a9a80b6dd2c1b01984ba2497f (patch) | |
tree | 81b70efdbdc20531b1d68b4d277415bcffdf70db | |
parent | 859a834fde255f5dd98ff21119f53b421419d3c0 (diff) | |
download | yum-fast-downloader-5f97c2f9f885784a9a80b6dd2c1b01984ba2497f.tar.gz yum-fast-downloader-5f97c2f9f885784a9a80b6dd2c1b01984ba2497f.tar.xz yum-fast-downloader-5f97c2f9f885784a9a80b6dd2c1b01984ba2497f.zip |
Better output formatting
-rw-r--r-- | yum-fast-downloader.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/yum-fast-downloader.py b/yum-fast-downloader.py index e34acac..fda6f34 100644 --- a/yum-fast-downloader.py +++ b/yum-fast-downloader.py @@ -62,7 +62,10 @@ 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://"): - print "\n==== Downloading {0} ====".format(remote_path) + print "\n============================================================" \ + "====================\nDownloading {0}\n=========="\ + "==================================================================="\ + "===".format(remote_path) args = _getAria2CArgs(urls, remote_path, local_path) ret = os.spawnvp(os.P_WAIT, downloader_app, args) if ret: |