aboutsummaryrefslogtreecommitdiff
path: root/guix-build-coordinator
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2023-04-13 17:21:37 +0100
committerChristopher Baines <mail@cbaines.net>2023-04-13 17:21:37 +0100
commit7f6db4b55411f79ab5f2639318dc5871c1452f00 (patch)
tree289b83c498d84fafc990b4f9dd451b3271dfbd56 /guix-build-coordinator
parent7d2f4d7b5cf994f5025aeb44b8ebba9385bc0c15 (diff)
downloadbuild-coordinator-7f6db4b55411f79ab5f2639318dc5871c1452f00.tar
build-coordinator-7f6db4b55411f79ab5f2639318dc5871c1452f00.tar.gz
Guard against the hash file being empty
Diffstat (limited to 'guix-build-coordinator')
-rw-r--r--guix-build-coordinator/coordinator.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/guix-build-coordinator/coordinator.scm b/guix-build-coordinator/coordinator.scm
index c66e89a..3c443f4 100644
--- a/guix-build-coordinator/coordinator.scm
+++ b/guix-build-coordinator/coordinator.scm
@@ -1380,7 +1380,8 @@
outputs)
"hash")))
- (unless (string=? hash expected-hash)
+ (unless (and (string? hash) ; it can be eof
+ (string=? hash expected-hash))
(delete-file output-location)
(delete-file hash-file)