1
0
Fork 0
mirror of https://github.com/NixOS/hydra.git synced 2024-10-18 17:02:28 -04:00

Forgot to change Nix to Nix::Store in one place

This commit is contained in:
Eelco Dolstra 2011-11-30 17:22:31 +01:00
parent c613b885f2
commit 2c328e4b20

View file

@ -3,6 +3,7 @@
use strict; use strict;
use File::Basename; use File::Basename;
use File::stat; use File::stat;
use Nix::Store;
use Hydra::Schema; use Hydra::Schema;
use Hydra::Helper::Nix; use Hydra::Helper::Nix;
use Hydra::Helper::AddBuilds; use Hydra::Helper::AddBuilds;
@ -384,12 +385,12 @@ sub doBuild {
my $closuresize = 0; my $closuresize = 0;
if (isValidPath($outPath)) { if (isValidPath($outPath)) {
my ($deriver, $hash, $time, $narSize, $refs) = Nix::queryPathInfo($outPath); my ($deriver, $hash, $time, $narSize, $refs) = queryPathInfo($outPath);
$size = $narSize; $size = $narSize;
my @closure = Nix::computeFSClosure(0, 0, $outPath); my @closure = computeFSClosure(0, 0, $outPath);
foreach my $path (@closure) { foreach my $path (@closure) {
my ($deriver, $hash, $time, $narSize, $refs) = Nix::queryPathInfo($path); my ($deriver, $hash, $time, $narSize, $refs) = queryPathInfo($path);
$closuresize += $narSize; $closuresize += $narSize;
} }
} }