mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 05:00:16 +00:00
nixpkgs-lint: Fix priority check
This commit is contained in:
parent
ae90a7e8f3
commit
7c38b9d3bc
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue