diff --git a/scripts/cleanCache.py b/scripts/cleanCache.py index 10b0464c..a20a6bd9 100755 --- a/scripts/cleanCache.py +++ b/scripts/cleanCache.py @@ -14,7 +14,7 @@ def findUnneededFiles(): dict = {} for f in listdir: name, ver = util.parse_package_name(f) - version = ver.rstrip(".pisi") + version = ver.split(".pisi")[0] if dict.has_key(name): if Version(dict[name]) < Version(version): dict[name] = version