O.K. Just one char but this was serious. Try upgrading pisi and, boom!
Take a look:
>>> "pisi-1.3.pisi".strip(".pisi")
'-1.3'
This commit is contained in:
+1
-1
@@ -617,7 +617,7 @@ def pure_package_name(package_name):
|
|||||||
"ex: package_name=tasma-1.0.3-5-2.pisi, returns tasma"
|
"ex: package_name=tasma-1.0.3-5-2.pisi, returns tasma"
|
||||||
|
|
||||||
if package_name.endswith(ctx.const.package_suffix):
|
if package_name.endswith(ctx.const.package_suffix):
|
||||||
package_name = package_name.strip(ctx.const.package_suffix)
|
package_name = package_name.rstrip(ctx.const.package_suffix)
|
||||||
|
|
||||||
return '-'.join([part for part in package_name.split('-') if part[0] not in string.digits])
|
return '-'.join([part for part in package_name.split('-') if part[0] not in string.digits])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user