mirror of
https://github.com/lilydjwg/archrepo2.git
synced 2025-03-10 12:02:43 +00:00
remove_old_packages: fix error for kept packages
This commit is contained in:
parent
a37f6138c6
commit
dc08763875
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ def main(args):
|
||||||
remove_pkg(f)
|
remove_pkg(f)
|
||||||
|
|
||||||
if args.show_kept_fd >= 0:
|
if args.show_kept_fd >= 0:
|
||||||
for _, f in v[args.keep:]:
|
for _, f in v[-args.keep:]:
|
||||||
os.write(args.show_kept_fd, f.encode('utf-8') + b'\n')
|
os.write(args.show_kept_fd, f.encode('utf-8') + b'\n')
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Add table
Reference in a new issue