All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [git commit] scanpypi: fix help text handling
@ 2016-07-03 22:35 Thomas Petazzoni
  0 siblings, 0 replies; only message in thread
From: Thomas Petazzoni @ 2016-07-03 22:35 UTC (permalink / raw)
  To: buildroot

commit: https://git.buildroot.net/buildroot/commit/?id=f49295cc42caf72aadd0500ae5ef01870cc4d98c
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

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>
---
 support/scripts/scanpypi | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/support/scripts/scanpypi b/support/scripts/scanpypi
index 79a888c..f0d584a 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'])

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-07-03 22:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-03 22:35 [Buildroot] [git commit] scanpypi: fix help text handling Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.