Commit 67e56470 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

BF: Ignore build string, just get build number

parent 157ab366
......@@ -72,7 +72,9 @@ def clear_packages(channeldir, clear, patterns, dry_run):
packages = load_packages(chandata, platdata)
def sortkey(pkg):
return (pkgver.parse(pkg[1]['version']), int(pkg[1]['build']))
version = pkg[1]['version']
build = pkg[1]['build'].split('_')[-1]
return (pkgver.parse(version), int(build))
def match(filename):
if patterns is None:
......
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