summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHedayat Vatankhah <hedayat.fwd@gmail.com>2011-10-19 17:20:32 +0330
committerHedayat Vatankhah <hedayat.fwd@gmail.com>2011-10-19 17:20:32 +0330
commitb92178558ad6c26d6eafdb9a97b2e2a98b710f26 (patch)
tree683c359ed64266e76cbcd662ee1cdb2aa643be8a
parent55bd777800620deb6e4642992c03e3b16f99e362 (diff)
parentb1cb67495e552c297e62bd624cc8b298f8d09b4f (diff)
downloadyum-fast-downloader-b92178558ad6c26d6eafdb9a97b2e2a98b710f26.tar.gz
yum-fast-downloader-b92178558ad6c26d6eafdb9a97b2e2a98b710f26.tar.xz
yum-fast-downloader-b92178558ad6c26d6eafdb9a97b2e2a98b710f26.zip
Merge branch 'fedora-15'
-rw-r--r--yum-fast-downloader.py5
-rw-r--r--yum-fast-downloader.spec5
2 files changed, 7 insertions, 3 deletions
diff --git a/yum-fast-downloader.py b/yum-fast-downloader.py
index 9f57785..fb8c88b 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:
diff --git a/yum-fast-downloader.spec b/yum-fast-downloader.spec
index 1417119..0036fb0 100644
--- a/yum-fast-downloader.spec
+++ b/yum-fast-downloader.spec
@@ -1,6 +1,6 @@
Summary: A fast downloader plugin for yum
Name: yum-fast-downloader
-Version: 0.5.7
+Version: 0.5.8
Release: 1
License: GPLv2+
Group: System Environment/Base
@@ -34,6 +34,9 @@ install -m 755 %{name}-finalize $RPM_BUILD_ROOT/usr/libexec/
/usr/libexec/*
%changelog
+* Wed Oct 19 2011 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 0.5.8-1
+- Include repository name in output when downloading metadata files
+
* Sat Oct 08 2011 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 0.5.7-1
- Fixed a bug in downloading single files which caused repeated downloading of
metadata files