From 7c38b9d3bc0253214792a680cd652ccfbbba0305 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 30 Jul 2013 10:11:40 +0000 Subject: [PATCH] nixpkgs-lint: Fix priority check --- maintainers/scripts/nixpkgs-lint.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maintainers/scripts/nixpkgs-lint.pl b/maintainers/scripts/nixpkgs-lint.pl index c82cf75e3f88..29ecb93c5866 100755 --- a/maintainers/scripts/nixpkgs-lint.pl +++ b/maintainers/scripts/nixpkgs-lint.pl @@ -128,8 +128,8 @@ foreach my $name (sort keys %pkgsByName) { @pkgs = grep { my $x = $drvsSeen{$_->{drvPath}}; $drvsSeen{$_->{drvPath}} = 1; !defined $x } @pkgs; # Filter packages that have a lower priority. - my $highest = min (map { $_->{priority} // 0 } @pkgs); - @pkgs = grep { ($_->{priority} // 0) == $highest } @pkgs; + my $highest = min (map { $_->{meta}->{priority}->{value} // 0 } @pkgs); + @pkgs = grep { ($_->{meta}->{priority}->{value} // 0) == $highest } @pkgs; next if scalar @pkgs == 1;