Commit 369be25a authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent dfbd9608
...@@ -174,7 +174,11 @@ def _namever(url): ...@@ -174,7 +174,11 @@ def _namever(url):
return m.group('name'), m.group('rev') return m.group('name'), m.group('rev')
filename = basename(url) filename = basename(url)
name, ver = filename.rsplit('-', 1) # re.rsplit([-_], filename, 1)
m = re.search('[-_][^-_]*$', filename)
assert m is not None
name = filename[:m.start()]
ver = filename[m.start()+1:]
return name, ver return name, ver
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment