remove_old_packages: fix error for kept packages

This commit is contained in:
lilydjwg 2014-01-29 15:52:45 +08:00
parent a37f6138c6
commit dc08763875

View file

@ -47,7 +47,7 @@ def main(args):
remove_pkg(f)
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')
if __name__ == '__main__':