From 8a3bb29da2e1a7baee87d0502bd5ae19167df029 Mon Sep 17 00:00:00 2001 From: taoky Date: Thu, 28 Jan 2021 22:40:11 +0800 Subject: [PATCH] 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" --- nix-channels.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix-channels.py b/nix-channels.py index c65ea1e..02b389a 100755 --- a/nix-channels.py +++ b/nix-channels.py @@ -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()