hydra-evaluator: Fix input change check

Because inputs were processed in random order by inputsToArgs, the
inputs hash could be different every time, leading to unnecessary
re-evaluations.
This commit is contained in:
Eelco Dolstra 2015-07-10 16:44:06 +02:00
parent 3e7bbec40b
commit 7f865a30d5

View file

@ -277,7 +277,7 @@ sub inputsToArgs {
my ($inputInfo, $exprType) = @_; my ($inputInfo, $exprType) = @_;
my @res = (); my @res = ();
foreach my $input (keys %{$inputInfo}) { foreach my $input (sort keys %{$inputInfo}) {
push @res, "-I", "$input=$inputInfo->{$input}->[0]->{storePath}" push @res, "-I", "$input=$inputInfo->{$input}->[0]->{storePath}"
if scalar @{$inputInfo->{$input}} == 1 if scalar @{$inputInfo->{$input}} == 1
&& defined $inputInfo->{$input}->[0]->{storePath}; && defined $inputInfo->{$input}->[0]->{storePath};