[yum-cvs] yumdownloader.py

Tim Lauridsen timlau at linux.duke.edu
Sun Sep 23 06:38:30 UTC 2007


 yumdownloader.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit d1f0522a67918796ee18531e71621868e4ecfa9b
Author: Tim Lauridsen <tla at rasmil.dk>
Date:   Sun Sep 23 08:37:20 2007 +0200

    Fixed yumdownloader --url output to show the right url (rhbz #301981)

diff --git a/yumdownloader.py b/yumdownloader.py
index ba8e75c..75a32d9 100644
--- a/yumdownloader.py
+++ b/yumdownloader.py
@@ -158,7 +158,7 @@ class YumDownloader(YumUtilBase):
                 repo = self.repos.getRepo(download.repoid)
                 remote = download.returnSimple('relativepath')
                 if opts.urls:
-                    url = urljoin(repo.urls[0],remote)
+                    url = urljoin(repo.urls[0]+'/',remote)
                     self.logger.info('%s' % url)
                     continue
                 local = os.path.basename(remote)



More information about the Yum-cvs-commits mailing list