aboutsummaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authorGravatar Yegor Yefremov <yegorslists@googlemail.com>2016-06-20 15:12:53 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-07-04 00:35:16 +0200
commitf49295cc42caf72aadd0500ae5ef01870cc4d98c (patch)
treecffc737e8408912aa501049c01b0882f46e86154 /support
parentbc99774b9f30459fd8be04daac5a743e6d890c4c (diff)
downloadbuildroot-f49295cc42caf72aadd0500ae5ef01870cc4d98c.tar.gz
buildroot-f49295cc42caf72aadd0500ae5ef01870cc4d98c.tar.bz2
scanpypi: fix help text handling
Make sure a help text is terminated with a full stop. Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'support')
-rwxr-xr-xsupport/scripts/scanpypi5
1 files changed, 5 insertions, 0 deletions
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'])