From 06699d4219019182d9e45ebc613ae1a1df23f257 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 17 Nov 2010 12:57:52 +0000 Subject: * Store the NAR size in the manifest. --- scripts/nix-push.in | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scripts/nix-push.in') diff --git a/scripts/nix-push.in b/scripts/nix-push.in index c7da528b56b8..6760baa7e937 100644 --- a/scripts/nix-push.in +++ b/scripts/nix-push.in @@ -193,6 +193,10 @@ for (my $n = 0; $n < scalar @storePaths; $n++) { die "cannot query hash for `$storePath'" if $? != 0; chomp $narHash; + my $narSize = `$binDir/nix-store --query --size '$storePath'`; + die "cannot query size for `$storePath'" if $? != 0; + chomp $narSize; + my $url; if ($localCopy) { $url = "$targetArchivesUrl/$narName"; @@ -204,6 +208,7 @@ for (my $n = 0; $n < scalar @storePaths; $n++) { , hash => "$hashAlgo:$narbz2Hash" , size => $narbz2Size , narHash => "$narHash" + , narSize => $narSize , references => $references , deriver => $deriver } -- cgit 1.4.1