use const

This commit is contained in:
Faik Uygur
2007-01-26 22:06:25 +00:00
parent 743bc4a8c5
commit 06ccbfe898
+1 -1
View File
@@ -643,7 +643,7 @@ def filter_latest_packages(package_paths):
for path in package_paths:
root = os.path.dirname(path)
name, version = parse_package_name(os.path.basename(path[:-len(".pisi")]))
name, version = parse_package_name(os.path.basename(path[:-len(ctx.const.package_suffix)]))
if latest.has_key(name):
if Version(latest[name][2]) < Version(version):