[yum-cvs] yum-utils yumdownloader.py,1.1,1.2
Gijs Hollestelle
gijs at login.linux.duke.edu
Fri Apr 1 10:19:53 UTC 2005
Update of /home/groups/yum/cvs/yum-utils
In directory login:/tmp/cvs-serv3193
Modified Files:
yumdownloader.py
Log Message:
Fixed a bug in yumdownloader, causing it not to work if relativepath contains
a directory name.
Index: yumdownloader.py
===================================================================
RCS file: /home/groups/yum/cvs/yum-utils/yumdownloader.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- yumdownloader.py 24 Mar 2005 11:15:04 -0000 1.1
+++ yumdownloader.py 1 Apr 2005 10:19:50 -0000 1.2
@@ -74,7 +74,8 @@
for download in packages:
repo = my.repos.getRepo(download.repoid)
remote = download.returnSimple('relativepath')
- local = os.path.join(opts.destdir, remote)
+ local = os.path.basename(remote)
+ local = os.path.join(opts.destdir, local)
if (os.path.exists(local) and
str(os.path.getsize(local)) == download.returnSimple('packagesize')):
my.errorlog(0,"%s already exists and appears to be complete" % local)
More information about the Yum-cvs-commits
mailing list