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

Better log

parent 46badcc1
Branches
Tags
1 merge request!70Try a fix for issue #77
...@@ -41,9 +41,9 @@ def main(scandir, dry_run): ...@@ -41,9 +41,9 @@ def main(scandir, dry_run):
keep_version, keep_build, _, _ = sorted_packages[-1] keep_version, keep_build, _, _ = sorted_packages[-1]
for version, build, mtime, path in sorted_packages: for version, build, mtime, path in sorted_packages:
if version == keep_version and build == keep_build: if version == keep_version and build == keep_build:
print('[keep] %s (%u)' % (path, mtime)) print('[keep] %s (time=%u)' % (path, mtime))
else: else:
print('remove %s (%u)' % (path, mtime)) print('remove %s (time=%u)' % (path, mtime))
if not dry_run: os.unlink(path) if not dry_run: os.unlink(path)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment