scanpypi: include LICENCE in the list of supported license files
authorYegor Yefremov <yegorslists@googlemail.com>
Thu, 7 Jul 2016 09:04:39 +0000 (11:04 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 7 Jul 2016 09:48:52 +0000 (11:48 +0200)
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
support/scripts/scanpypi

index 7546cf16413db3ae5a4ef3dab7d8c9860335181d..e150ae588d2baeced47bc5b3c85299772fcf36b5 100755 (executable)
@@ -416,7 +416,8 @@ class BuildrootPackage():
             license=', '.join(licenses))
         lines.append(license_line)
 
-        filenames = ['LICENSE', 'LICENSE.TXT', 'COPYING', 'COPYING.TXT']
+        filenames = ['LICENCE', 'LICENSE', '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]