1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-06 21:41:48 +02:00

* In the download size indication, take binary patches into account.

Hopefully this doesn't slow things down too much.
This commit is contained in:
Eelco Dolstra 2010-11-17 17:32:25 +00:00
parent f69626ed3e
commit 3d38a49840
3 changed files with 168 additions and 145 deletions

View file

@ -1,5 +1,7 @@
source common.sh
clearManifests
mkdir -p $TEST_ROOT/cache2 $TEST_ROOT/patches
RESULT=$TEST_ROOT/result
@ -29,5 +31,9 @@ $NIX_BIN_DIR/nix-pull file://$TEST_ROOT/manifest2
# To make sure that we're using the patch, delete the full NARs.
rm -f $TEST_ROOT/cache2/*
# Make sure that the download size prediction uses the patch rather
# than the full download.
$nixbuild -o $RESULT binary-patching.nix --arg version 2 --dry-run 2>&1 | grep -q "0.01 MiB"
# Now rebuild it. This should use the patch generated above.
$nixbuild -o $RESULT binary-patching.nix --arg version 2