diff options
author | PJ Eby <distutils-sig@python.org> | 2007-07-11 17:37:17 +0000 |
---|---|---|
committer | PJ Eby <distutils-sig@python.org> | 2007-07-11 17:37:17 +0000 |
commit | c20cce46ddaf71e8582feb9307546fa99052f19a (patch) | |
tree | 954e5d75c76b33e632851ce4963704bd491db6be /setuptools/command/egg_info.py | |
parent | fa3c4c07b1db512bee06ff6f937898f529cb7b9d (diff) | |
download | python-setuptools-bitbucket-c20cce46ddaf71e8582feb9307546fa99052f19a.tar.gz |
Fix distutils.filelist.findall() crashing on broken symlinks. Fix
egg_info failures on new, uncommitted SVN directories.
Diffstat (limited to 'setuptools/command/egg_info.py')
-rwxr-xr-x | setuptools/command/egg_info.py | 4 |
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[:] = [] |