From 21c2d8d102add45b8eda61c084aa072f8861a0ff Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 3 Dec 2012 21:02:06 +0100 Subject: [PATCH] =?UTF-8?q?Test=20the=20=E2=80=98--prebuilt-only=E2=80=99?= =?UTF-8?q?=20flag?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/binary-cache.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/binary-cache.sh b/tests/binary-cache.sh index ac23fa3f7..813e85cbf 100644 --- a/tests/binary-cache.sh +++ b/tests/binary-cache.sh @@ -29,6 +29,9 @@ echo "WantMassQuery: 1" >> $cacheDir/nix-cache-info nix-env --option binary-caches "file://$cacheDir" -f dependencies.nix -qas \* | grep -- "--S" +x=$(nix-env -f dependencies.nix -qas \* --prebuilt-only) +[ -z "$x" ] + nix-store --option binary-caches "file://$cacheDir" -r $outPath nix-store --check-validity $outPath