diff options
author | 2018-10-10 08:46:11 +0200 | |
---|---|---|
committer | 2018-10-10 09:05:49 +0200 | |
commit | 8c3395a374eb7d710c9d407a48c12e98a65b00e9 (patch) | |
tree | 51dde28d0664e1ff9ba6f91ba1defd49e10af834 | |
parent | 8966be9d21a9569104e4988397c37fd4703a6854 (diff) | |
download | buildroot-8c3395a374eb7d710c9d407a48c12e98a65b00e9.tar.gz buildroot-8c3395a374eb7d710c9d407a48c12e98a65b00e9.tar.bz2 |
scancpan: sort license files
so, the output is reproductible
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rwxr-xr-x | utils/scancpan | 2 |
1 files changed, 1 insertions, 1 deletions
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{???}; |