about summary refs log tree commit diff
path: root/scripts/nix-http-export.cgi.in
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2008-06-13T13·53+0000
committerMichael Raskin <7c6f434c@mail.ru>2008-06-13T13·53+0000
commitf903d86740c918176bf299a114a03a49a17aa0b9 (patch)
tree6cab92adba522276da0e8d1153b24ee22a82aa38 /scripts/nix-http-export.cgi.in
parentce85b55cf0c81b9de1a1633bc8f200f1d0ed0d4c (diff)
OK, I will believe that fix does no worse..
Diffstat (limited to 'scripts/nix-http-export.cgi.in')
-rwxr-xr-xscripts/nix-http-export.cgi.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/nix-http-export.cgi.in b/scripts/nix-http-export.cgi.in
index 89df8b1446cf..6584524c4d70 100755
--- a/scripts/nix-http-export.cgi.in
+++ b/scripts/nix-http-export.cgi.in
@@ -30,7 +30,7 @@ if [ "$needed_path" != "${needed_path%.drv}" ]; then
 	exit
 fi
 
-if [ -e "$full_path" ]; then
+if [ @bindir@/nix-store --check-validity "$full_path" ]; then
 	if ! [ -e nix-export/"$needed_path".nar.gz ]; then
 		@bindir@/nix-store --export "$full_path" | @gzip@ > "$TMP_DIR"/"$needed_path".nar.gz
 		@coreutils@/ln -fs  "$TMP_DIR"/"$needed_path".nar.gz nix-export/"$needed_path".nar.gz