aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2024-05-20 14:27:39 +0100
committerChristopher Baines <mail@cbaines.net>2024-05-20 14:27:39 +0100
commit883255eee1a3d1896e2da33cc60c19f050e498c2 (patch)
tree026a799c3aa19c4e250c314ec230455ac94ba6d2
parentbbf5119200b844fdb59b54d87fa01cc6abee46c2 (diff)
downloadnar-herder-883255eee1a3d1896e2da33cc60c19f050e498c2.tar
nar-herder-883255eee1a3d1896e2da33cc60c19f050e498c2.tar.gz
Fix removing cached narinfo files from the db
-rw-r--r--scripts/nar-herder.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/nar-herder.in b/scripts/nar-herder.in
index 7f5db5c..094660a 100644
--- a/scripts/nar-herder.in
+++ b/scripts/nar-herder.in
@@ -536,8 +536,9 @@
;; that'll stop these files appearing in narinfos
(database-remove-cached-narinfo-file
database
- narinfo-id
- (symbol->string compression)))
+ (assq-ref narinfo-details 'id)
+ (symbol->string
+ (assq-ref cached-narinfo-details 'compression))))
cached-narinfo-files)
(database-remove-narinfo database store-path))