Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > 23d257aebea0410886e686b2c6ba6f1c > files > 2

repsys-1.6.19.2-3mdv2008.0.src.rpm

=== modified file 'CHANGES'
--- CHANGES	2007-12-10 02:43:49 +0000
+++ CHANGES	2008-01-10 18:23:41 +0000
@@ -1,3 +1,6 @@
+* 1.6.19.3
+- fixed incompatibility with Python-2.4 on urlparse
+
 * 1.6.19.2
 - fixed emptylog message, which was not being shown when needed
 - template: hide the first release when it has only invisible lines

=== modified file 'RepSys/mirror.py'
--- RepSys/mirror.py	2007-06-06 19:27:29 +0000
+++ RepSys/mirror.py	2008-01-10 18:44:00 +0000
@@ -7,16 +7,16 @@
 def _normdirurl(url):
     """normalize url for relocate_path needs"""
     parsed = urlparse.urlparse(url)
-    path = os.path.normpath(parsed.path)
-    newurl = urlparse.urlunparse((parsed.scheme, parsed.netloc, path,
-        parsed.params, parsed.query, parsed.fragment))
+    path = os.path.normpath(parsed[2])
+    newurl = urlparse.urlunparse((parsed[0], parsed[1], path,
+        parsed[3], parsed[4], parsed[5]))
     return newurl
 
 def _joinurl(url, relpath):
     parsed = urlparse.urlparse(url)
-    newpath = os.path.join(parsed.path, relpath)
-    newurl = urlparse.urlunparse((parsed.scheme, parsed.netloc, newpath,
-        parsed.params, parsed.query, parsed.fragment))
+    newpath = os.path.join(parsed[2], relpath)
+    newurl = urlparse.urlunparse((parsed[0], parsed[1], newpath,
+        parsed[3], parsed[4], parsed[5]))
     return newurl
 
 def same_base(parent, url):