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:
Barış Metin
2006-02-21 14:38:24 +00:00
parent 0f08956382
commit aa83df9f14
+1 -1
View File
@@ -617,7 +617,7 @@ def pure_package_name(package_name):
"ex: package_name=tasma-1.0.3-5-2.pisi, returns tasma"
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])