From caa376001455c8c3ebaaa3e4de2078dc3cce8948 Mon Sep 17 00:00:00 2001 From: Alexey Roslyakov Date: Thu, 20 Jul 2017 12:26:38 +0700 Subject: [PATCH] utils/scanpypi: include LICENSE.RST to supported license files Signed-off-by: Alexey Roslyakov Reviewed-by: Yegor Yefremov Signed-off-by: Thomas Petazzoni --- utils/scanpypi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/scanpypi b/utils/scanpypi index 9abf3c4139..02384f2569 100755 --- a/utils/scanpypi +++ b/utils/scanpypi @@ -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]