diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2010-11-17T14·31+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2010-11-17T14·31+0000 |
commit | bdf089f46362b8c9defefa0a14e3198582e12818 (patch) | |
tree | 08ca2824d09cee5b00cbf9b9fc9294f326120598 /scripts/copy-from-other-stores.pl.in | |
parent | 06699d4219019182d9e45ebc613ae1a1df23f257 (diff) |
* Before a build, show the disk space that the downloaded store paths
will approximately require.
Diffstat (limited to 'scripts/copy-from-other-stores.pl.in')
-rw-r--r-- | scripts/copy-from-other-stores.pl.in | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/copy-from-other-stores.pl.in b/scripts/copy-from-other-stores.pl.in index a6a14c3dc228..10130c0893ea 100644 --- a/scripts/copy-from-other-stores.pl.in +++ b/scripts/copy-from-other-stores.pl.in @@ -63,10 +63,15 @@ if ($ARGV[0] eq "--query") { `@bindir@/nix-store --query --references $storePath`; die "cannot query references of `$storePath'" if $? != 0; + my $narSize = `@bindir@/nix-store --query --size $storePath`; + die "cannot query size of `$storePath'" if $? != 0; + chomp $narSize; + print "$deriver\n"; print scalar @references, "\n"; print "$_\n" foreach @references; - print "0\n"; # !!! showing size not supported (yet) + print "$narSize\n"; + print "$narSize\n"; } else { die "unknown command `$cmd'"; } |