From: Yegor Yefremov Date: Mon, 20 Jun 2016 13:12:53 +0000 (+0200) Subject: scanpypi: fix help text handling X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f49295cc42caf72aadd0500ae5ef01870cc4d98c;p=buildroot.git scanpypi: fix help text handling Make sure a help text is terminated with a full stop. Signed-off-by: Yegor Yefremov Signed-off-by: Thomas Petazzoni --- diff --git a/support/scripts/scanpypi b/support/scripts/scanpypi index 79a888c5b2..f0d584a158 100755 --- a/support/scripts/scanpypi +++ b/support/scripts/scanpypi @@ -525,6 +525,11 @@ class BuildrootPackage(): help_lines = textwrap.wrap(self.metadata['info']['summary'], initial_indent='\t ', subsequent_indent='\t ') + + # make sure a help text is terminated with a full stop + if help_lines[-1][-1] != '.': + help_lines[-1] += '.' + # \t + two spaces is 3 char long help_lines.append('') help_lines.append('\t ' + self.metadata['info']['home_page'])