File python-setuptools-svn15.diff of Package python-setuptools
diff -Naur ../setuptools-0.6c8.orig/setuptools/command/egg_info.py ./setuptools/command/egg_info.py
--- ../setuptools-0.6c8.orig/setuptools/command/egg_info.py 2008-02-15 18:29:24.000000000 +0100
+++ ./setuptools/command/egg_info.py 2008-10-22 11:49:16.000000000 +0200
@@ -217,9 +217,9 @@
data = f.read()
f.close()
- if data.startswith('8'):
+ if data.startswith('8') or data.startswith('9'): # svn 1.4 or 1.5
data = map(str.splitlines,data.split('\n\x0c\n'))
- del data[0][0] # get rid of the '8'
+ del data[0][0] # get rid of the '8' or '9'
dirurl = data[0][3]
localrev = max([int(d[9]) for d in data if len(d)>9 and d[9]]+[0])
elif data.startswith('<?xml'):
diff -Naur ../setuptools-0.6c8.orig/setuptools/command/sdist.py ./setuptools/command/sdist.py
--- ../setuptools-0.6c8.orig/setuptools/command/sdist.py 2006-10-31 18:20:42.000000000 +0100
+++ ./setuptools/command/sdist.py 2008-10-22 11:50:02.000000000 +0200
@@ -86,7 +86,7 @@
f = open(filename,'rU')
data = f.read()
f.close()
- if data.startswith('8'): # subversion 1.4
+ if data.startswith('8') or data.startswith('9'): # subversion 1.4 or 1.5
for record in map(str.splitlines, data.split('\n\x0c\n')[1:]):
if not record or len(record)>=6 and record[5]=="delete":
continue # skip deleted