[Buildroot] [git commit] scancpan: sort license files

Thomas Petazzoni thomas.petazzoni at bootlin.com
Wed Oct 10 07:05:49 UTC 2018


commit: https://git.buildroot.net/buildroot/commit/?id=8c3395a374eb7d710c9d407a48c12e98a65b00e9
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

so, the output is reproductible

Signed-off-by: Francois Perrad <francois.perrad at gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
 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{???};


More information about the buildroot mailing list