All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] scanpypi: fix help text handling
@ 2016-06-20 13:12 yegorslists at googlemail.com
  2016-07-03 22:35 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: yegorslists at googlemail.com @ 2016-06-20 13:12 UTC (permalink / raw)
  To: buildroot

From: Yegor Yefremov <yegorslists@googlemail.com>

Make sure a help text is terminated with a full stop.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
 support/scripts/scanpypi | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/support/scripts/scanpypi b/support/scripts/scanpypi
index 230791f..da578f4 100755
--- a/support/scripts/scanpypi
+++ b/support/scripts/scanpypi
@@ -527,6 +527,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'])
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH] scanpypi: fix help text handling
  2016-06-20 13:12 [Buildroot] [PATCH] scanpypi: fix help text handling yegorslists at googlemail.com
@ 2016-07-03 22:35 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2016-07-03 22:35 UTC (permalink / raw)
  To: buildroot

Hello,

On Mon, 20 Jun 2016 15:12:53 +0200, yegorslists at googlemail.com wrote:
> From: Yegor Yefremov <yegorslists@googlemail.com>
> 
> Make sure a help text is terminated with a full stop.
> 
> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
> ---
>  support/scripts/scanpypi | 5 +++++
>  1 file changed, 5 insertions(+)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-07-03 22:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-20 13:12 [Buildroot] [PATCH] scanpypi: fix help text handling yegorslists at googlemail.com
2016-07-03 22:35 ` 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.