Merge branch 'maint-1.6.1' into maint
* maint-1.6.1: import-zips: fix thinko
This commit is contained in:
@ -44,7 +44,8 @@ for zipfile in argv[1:]:
|
|||||||
common_prefix = name[:name.rfind('/') + 1]
|
common_prefix = name[:name.rfind('/') + 1]
|
||||||
else:
|
else:
|
||||||
while not name.startswith(common_prefix):
|
while not name.startswith(common_prefix):
|
||||||
common_prefix = name[:name.rfind('/') + 1]
|
last_slash = common_prefix[:-1].rfind('/') + 1
|
||||||
|
common_prefix = common_prefix[:last_slash]
|
||||||
|
|
||||||
mark[name] = ':' + str(next_mark)
|
mark[name] = ':' + str(next_mark)
|
||||||
next_mark += 1
|
next_mark += 1
|
||||||
|
Reference in New Issue
Block a user