nix-channels: fix critical bug in 793ab60

if binary-cache-url exists, it means that this repo has been completely downloaded, and should be considered as a candidate of "alive"
This commit is contained in:
taoky 2021-01-28 22:40:11 +08:00 committed by dramforever
parent 793ab605f4
commit 8a3bb29da2

View File

@ -373,7 +373,7 @@ def garbage_collect():
for release in (working_dir / RELEASES_DIR).iterdir():
# This release never finished downloading
if (release / 'binary-cache-url').exists(): continue
if not (release / 'binary-cache-url').exists(): continue
channel = release.name.split('@')[0]
date_str = (release / '.released-time').read_text()