remove unused nar files

This commit is contained in:
Charlotte 🦝 Delenk 2022-06-03 13:28:32 +01:00
parent dda1d4a7d2
commit a0bc7b5c80
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -169,6 +169,8 @@ async def main() -> None:
realisation["outPath"]):
print(f"Found unused realisation for {realisation['outPath']}")
await delete_object(obj_key)
if obj_key.startswith("nar/"):
nars_to_delete.add(obj_key)
for nar in nars_to_delete:
if nar in nars_to_keep:
continue