diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2008-06-13 13:53:14 +0000 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2008-06-13 13:53:14 +0000 |
commit | f903d86740c918176bf299a114a03a49a17aa0b9 (patch) | |
tree | 6cab92adba522276da0e8d1153b24ee22a82aa38 | |
parent | ce85b55cf0c81b9de1a1633bc8f200f1d0ed0d4c (diff) |
OK, I will believe that fix does no worse..
-rwxr-xr-x | scripts/nix-http-export.cgi.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/nix-http-export.cgi.in b/scripts/nix-http-export.cgi.in index 89df8b144..6584524c4 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 |