Skip to content
Snippets Groups Projects
Commit 39101098 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

Minor fixes to clean-betas script

parent 49dec037
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ def main(scandir, dry_run):
for f in filenames:
if f.startswith('.'): continue
if not f.endswith('.tar.bz2'): continue
name, version, build_string = filename[:-8].rsplit('-', 2)
name, version, build_string = f[:-8].rsplit('-', 2)
build = build_string.rsplit('_')[-1]
name = os.path.basename(path) + '/' + name
......@@ -36,7 +36,7 @@ def main(scandir, dry_run):
for name in sorted(betas.keys()):
print('\n==== packages for %s (%d) ====' % (name, len(betas[name])))
sorted_packages = sorted(betas[name])
keep_version, keep_build, _ = sorted_packages[-1]
keep_version, keep_build, _, path = sorted_packages[-1]
for version, build, mtime, path in sorted_packages:
if version == keep_version and build == keep_build:
print('[keep] %s (%u)' % (path, mtime))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment