Browse Source

scancpan: also use README.md as default license file

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

+ 3 - 0
utils/scancpan

@@ -568,6 +568,9 @@ sub find_license_files {
     if (scalar @license_files == 0 && $manifest =~ m/(README)[\n\s]/i) {
         @license_files = ($1);
     }
+    if (scalar @license_files == 0 && $manifest =~ m/(README\.md)[\n\s]/i) {
+        @license_files = ($1);
+    }
     return @license_files;
 }