diff options
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[:] = [] |