aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/nar-herder.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/nar-herder.in b/scripts/nar-herder.in
index 7524308..9e70b77 100644
--- a/scripts/nar-herder.in
+++ b/scripts/nar-herder.in
@@ -325,7 +325,7 @@
(lambda (reference)
(unless (database-select-narinfo-by-hash
database
- (string-take (basename narinfo-file) 32))
+ (string-take reference 32))
(error
(simple-format (current-error-port)
"missing reference to ~A\n"