utils/scanpypi: include LICENSE.RST to supported license files
authorAlexey Roslyakov <alexey.roslyakov@gmail.com>
Thu, 20 Jul 2017 05:26:38 +0000 (12:26 +0700)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 20 Jul 2017 20:28:00 +0000 (22:28 +0200)
Signed-off-by: Alexey Roslyakov <alexey.roslyakov@gmail.com>
Reviewed-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
utils/scanpypi

index 9abf3c4139c04d9f6869bd91c1bd5096ad38f32c..02384f2569693751d964189e3b0ea9a5d82d70f2 100755 (executable)
@@ -416,8 +416,8 @@ class BuildrootPackage():
             license=', '.join(licenses))
         lines.append(license_line)
 
-        filenames = ['LICENCE', 'LICENSE', 'LICENSE.TXT', 'COPYING',
-                    'COPYING.TXT']
+        filenames = ['LICENCE', 'LICENSE', 'LICENSE.RST', 'LICENSE.TXT',
+                    'COPYING', 'COPYING.TXT']
         license_files = list(find_file_upper_case(filenames, self.tmp_extract))
         license_files = [license.replace(self.tmp_extract, '')[1:]
                          for license in license_files]