Bug #238766 - Revert the fetch() mirror:// behavior change from r11537 since v2.2_rc11
authorZac Medico <zmedico@gentoo.org>
Fri, 26 Sep 2008 15:00:03 +0000 (15:00 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 26 Sep 2008 15:00:03 +0000 (15:00 -0000)
it wasn't actually needed to comply with PMS 9.2.8, and the change actuall
caused incorrect mirror fetching behavior.

svn path=/main/trunk/; revision=11558

pym/portage/__init__.py

index 529bb52746076da06959d8db5bda1f2577518166..cfeb8942e0e1c97ab3be522fd4d7c4911fd58540 100644 (file)
@@ -3508,13 +3508,7 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks",
                        eidx = myuri.find("/", 9)
                        if eidx != -1:
                                mirrorname = myuri[9:eidx]
-                               if myfile != os.path.basename(myuri):
-                                       # If a SRC_URI arrow is used together with
-                                       # mirror://, preserve the remote path that's
-                                       # specified within the uri.
-                                       path = myuri[eidx+1:]
-                               else:
-                                       path = myfile
+                               path = myuri[eidx+1:]
 
                                # Try user-defined mirrors first
                                if mirrorname in custommirrors: