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:
Lluís Batlle i Rossell 2016-03-01 11:01:00 +01:00
parent a99715c83b
commit 202ebf794c

View file

@ -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};