From f903d86740c918176bf299a114a03a49a17aa0b9 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Fri, 13 Jun 2008 13:53:14 +0000 Subject: [PATCH] OK, I will believe that fix does no worse.. --- scripts/nix-http-export.cgi.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/nix-http-export.cgi.in b/scripts/nix-http-export.cgi.in index 89df8b1446..6584524c4d 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