aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/egg_info.py
diff options
context:
space:
mode:
authorPJ Eby <distutils-sig@python.org>2007-07-11 17:37:17 +0000
committerPJ Eby <distutils-sig@python.org>2007-07-11 17:37:17 +0000
commit74aaaf1c55d624b3424a435928b4ab310784a57c (patch)
tree954e5d75c76b33e632851ce4963704bd491db6be /setuptools/command/egg_info.py
parent29c54edeca3c017eae443dd2b4282a84cf037f06 (diff)
downloadexternal_python_setuptools-74aaaf1c55d624b3424a435928b4ab310784a57c.tar.gz
external_python_setuptools-74aaaf1c55d624b3424a435928b4ab310784a57c.tar.bz2
external_python_setuptools-74aaaf1c55d624b3424a435928b4ab310784a57c.zip
Fix distutils.filelist.findall() crashing on broken symlinks. Fix
egg_info failures on new, uncommitted SVN directories. --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4056277
Diffstat (limited to 'setuptools/command/egg_info.py')
-rwxr-xr-xsetuptools/command/egg_info.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/command/egg_info.py b/setuptools/command/egg_info.py
index eae7312e..f89dab7c 100755
--- a/setuptools/command/egg_info.py
+++ b/setuptools/command/egg_info.py
@@ -221,10 +221,10 @@ class egg_info(Command):
data = map(str.splitlines,data.split('\n\x0c\n'))
del data[0][0] # get rid of the '8'
dirurl = data[0][3]
- localrev = max([int(d[9]) for d in data if len(d)>9 and d[9]])
+ localrev = max([int(d[9]) for d in data if len(d)>9 and d[9]]+[0])
elif data.startswith('<?xml'):
dirurl = urlre.search(data).group(1) # get repository URL
- localrev = max([int(m.group(1)) for m in revre.finditer(data)])
+ localrev = max([int(m.group(1)) for m in revre.finditer(data)]+[0])
else:
log.warn("unrecognized .svn/entries format; skipping %s", base)
dirs[:] = []