From 8c3395a374eb7d710c9d407a48c12e98a65b00e9 Mon Sep 17 00:00:00 2001 From: Francois Perrad Date: Wed, 10 Oct 2018 08:46:11 +0200 Subject: [PATCH] scancpan: sort license files so, the output is reproductible Signed-off-by: Francois Perrad Signed-off-by: Thomas Petazzoni --- utils/scancpan | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/scancpan b/utils/scancpan index 20ab27caa1..f7b707676d 100755 --- a/utils/scancpan +++ b/utils/scancpan @@ -724,7 +724,7 @@ while (my ($distname, $dist) = each %dist) { my $license = brlicense( ref $dist->{license} eq 'ARRAY' ? join q{ or }, @{$dist->{license}} : $dist->{license} ); - my $license_files = join q{ }, keys %{$license_files{$distname}}; + my $license_files = join q{ }, sort keys %{$license_files{$distname}}; if ($license_files && (!$license || $license eq q{unknown})) { push @info, qq{[$distname] undefined LICENSE, see $license_files}; $license = q{???}; -- 2.30.2