[yum-cvs] yum/yum yumRepo.py,1.23,1.23.2.1

Jeremy Katz katzj at linux.duke.edu
Fri Oct 6 02:24:49 UTC 2006


Update of /home/groups/yum/cvs/yum/yum
In directory login1.linux.duke.edu:/tmp/cvs-serv26697/yum

Modified Files:
      Tag: yum-3_0_X
	yumRepo.py 
Log Message:
fix handling of base path (from Dennis Gregorivic)


Index: yumRepo.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/yumRepo.py,v
retrieving revision 1.23
retrieving revision 1.23.2.1
diff -u -r1.23 -r1.23.2.1
--- yumRepo.py	14 Sep 2006 07:05:26 -0000	1.23
+++ yumRepo.py	6 Oct 2006 02:24:47 -0000	1.23.2.1
@@ -458,8 +458,10 @@
     def getPackage(self, package, checkfunc = None, text = None, cache = True):
         remote = package.returnSimple('relativepath')
         local = package.localPkg()
+        basepath = package.returnSimple('basepath')
             
-        return self.__get(relative=remote,
+        return self.__get(url=basepath,
+                        relative=remote,
                         local=local,
                         checkfunc=checkfunc,
                         text=text,
@@ -473,8 +475,9 @@
         local =  package.localHdr()
         start = package.returnSimple('hdrstart')
         end = package.returnSimple('hdrend')
-        
-        return self.__get(relative=remote, local=local, start=start,
+        basepath = package.returnSimple('basepath')
+
+        return self.__get(url=basepath, relative=remote, local=local, start=start,
                         reget=None, end=end, checkfunc=checkfunc, copy_local=1,
                         cache=cache,
                         )




More information about the Yum-cvs-commits mailing list