Skip to content

Commit

Permalink
backend: unknown-resalloc-tickets fixes
Browse files Browse the repository at this point in the history
- better explanation
- typo printing "This seems like a new ID: %d 9734"
- executable bit
  • Loading branch information
praiskup committed Aug 11, 2023
1 parent 727b40b commit d6ef597
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/run/copr-backend-unknown-resalloc-tickets.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ def all_ids():
min_used = min(used)
all_known = all_ids()
unknown = all_known - used

print("These are old tickets, Copr uses only newer IDs, close them:")
for unknown_id in sorted(unknown):
if unknown_id < min_used:
print(f"resalloc ticket-close {unknown_id}")
else:
print("This seems like a new ID: %d", unknown_id)
print(f"This seems relatively new to blindly close: {unknown_id}")

0 comments on commit d6ef597

Please sign in to comment.