1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 14:11:36 +00:00

Merge pull request #107958 from ztzg/x-16304-ubuntu-determinism

vmTools.debClosureGenerator: Fix non-determinism in dependency graph
This commit is contained in:
Jörg Thalheim 2021-01-10 12:37:15 +00:00 committed by GitHub
commit 82115f0c4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,7 +50,7 @@ sub getDeps {
# virtual dependencies.
my %provides;
foreach my $cdata (values %packages) {
foreach my $cdata (sort {$a->{Package} cmp $b->{Package}} (values %packages)) {
if (defined $cdata->{Provides}) {
my @provides = getDeps(Dpkg::Deps::deps_parse($cdata->{Provides}));
foreach my $name (@provides) {