Browse Source

utils/scancpan: add GPL* as license file

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Francois Perrad 4 years ago
parent
commit
b689a5a720
1 changed files with 1 additions and 1 deletions
  1. 1 1
      utils/scancpan

+ 1 - 1
utils/scancpan

@@ -567,7 +567,7 @@ sub find_license_files {
     foreach (split /\n/, $manifest) {
     foreach (split /\n/, $manifest) {
         next if m|/|;
         next if m|/|;
         s|\s+.*$||;
         s|\s+.*$||;
-        push @license_files, $_ if m/(ARTISTIC|COPYING|COPYRIGHT|LICENSE|LICENCE)/i;
+        push @license_files, $_ if m/(ARTISTIC|COPYING|COPYRIGHT|GPL\S*|LICENSE|LICENCE)/i;
     }
     }
     if (scalar @license_files == 0 && $manifest =~ m/(README)[\n\s]/i) {
     if (scalar @license_files == 0 && $manifest =~ m/(README)[\n\s]/i) {
         @license_files = ($1);
         @license_files = ($1);