utils/scanpypi: search LICENSE.MD
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 4 Jul 2021 19:38:59 +0000 (21:38 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sun, 4 Jul 2021 20:04:28 +0000 (22:04 +0200)
Some packages such as python-idna has a LICENSE.md file:
https://github.com/kjd/idna/blob/master/LICENSE.md

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
utils/scanpypi

index 47c7c00c6000817ff5859e27b852d68f7b5fec1c..8327fc3fc52205f08498d69bc0caf4f714d9b304 100755 (executable)
@@ -495,8 +495,8 @@ class BuildrootPackage():
         """
         lines = []
 
-        filenames = ['LICENCE', 'LICENSE', 'LICENSE.RST', 'LICENSE.TXT',
-                     'COPYING', 'COPYING.TXT']
+        filenames = ['LICENCE', 'LICENSE', 'LICENSE.MD', 'LICENSE.RST',
+                     'LICENSE.TXT', 'COPYING', 'COPYING.TXT']
         self.license_files = list(find_file_upper_case(filenames, self.tmp_extract))
 
         lines.append(self.__get_license_names(self.license_files))