From e420a145ffc5db10b32a54584c7ba92d83a59b8a Mon Sep 17 00:00:00 2001 From: PJ Eby Date: Tue, 26 Sep 2006 16:21:25 +0000 Subject: Handle empty revision numbers in SVN 1.4 "entries" format (backport from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4052007 --- setuptools/command/egg_info.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setuptools/command') diff --git a/setuptools/command/egg_info.py b/setuptools/command/egg_info.py index eb7aeae2..1223385f 100755 --- a/setuptools/command/egg_info.py +++ b/setuptools/command/egg_info.py @@ -221,7 +221,7 @@ 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]) + localrev = max([int(d[9]) for d in data if len(d)>9 and d[9]]) elif data.startswith('