forked from mirrors/nixpkgs
vm/rpm/rpm-closure.pl: make it deterministic
Some recent perl version introduced "keys" to return the keys in random order. As some of the packages are solved by "provides" and based on the order, this randomness affects what packages get into the closure. This problem may be in other nix perl scripts.
This commit is contained in:
parent
a99715c83b
commit
202ebf794c
|
@ -90,7 +90,7 @@ for (my $i = 0; $i < scalar(@packagesFiles); $i++) {
|
|||
}
|
||||
|
||||
my %provides;
|
||||
PKG: foreach my $pkgName (keys %pkgs) {
|
||||
PKG: foreach my $pkgName (sort(keys %pkgs)) {
|
||||
#print STDERR "looking at $pkgName\n";
|
||||
my $pkg = $pkgs{$pkgName};
|
||||
|
||||
|
|
Loading…
Reference in a new issue