From: Francois Perrad Date: Wed, 10 Oct 2018 06:46:11 +0000 (+0200) Subject: scancpan: sort license files X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8c3395a374eb7d710c9d407a48c12e98a65b00e9;p=buildroot.git scancpan: sort license files so, the output is reproductible Signed-off-by: Francois Perrad Signed-off-by: Thomas Petazzoni --- 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{???};