utils/scancpan: handles README.pod as license file

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Francois Perrad 2020-12-06 07:22:49 +01:00 committed by Thomas Petazzoni
parent 86c779ee0d
commit 1120980f30

View File

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