Merge pull request #116 from dramforever/nix-gc-fix-1

nix-channels: fix critical bug in #115
This commit is contained in:
Miao Wang 2021-01-29 19:07:53 +08:00 committed by GitHub
commit 5d6ddc10e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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()