From 5f97c2f9f885784a9a80b6dd2c1b01984ba2497f Mon Sep 17 00:00:00 2001 From: Hedayat Vatankhah Date: Sat, 8 Oct 2011 13:30:42 +0330 Subject: Better output formatting --- yum-fast-downloader.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'yum-fast-downloader.py') 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: -- cgit