mirror of
https://codeberg.org/hyperreal/admin-scripts
synced 2024-11-01 16:03:06 +01:00
Fix remove_fedora()
This commit is contained in:
parent
0ef8d09119
commit
99378945d5
6
bin/qbth
6
bin/qbth
@ -87,7 +87,11 @@ def add_fedora(relver: str):
|
||||
|
||||
|
||||
def remove_fedora(relver: str):
|
||||
remove_torrents(f"{relver}.torrent")
|
||||
torrents = qb.torrents()
|
||||
for torrent in torrents:
|
||||
if torrent["name"].startswith("Fedora") and torrent["name"].endswith(relver):
|
||||
qb.delete_permanently(torrent["hash"])
|
||||
print(f"Removed {torrent['name']}")
|
||||
|
||||
|
||||
def add_freebsd(relver: str):
|
||||
|
Loading…
Reference in New Issue
Block a user