Skip to contentSkip to conversation

scanpypi: fix help text handling

PATCH New yegorslists at googlemail.com 2 participants 2 messages Jun 20, 2016 – Jul 3, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scanpypi: fix help text handling

From: Yegor Yefremov <[email protected]>

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

---
 support/scripts/scanpypi | 5 +++++
 1 file changed, 5 insertions(+)
support/scripts/scanpypi +5 -0
index 230791f..da578f4 100755
@@ -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'])
Signature · 1 line
2.1.4
#1 lore raw

PATCH 1/1 scanpypi: fix help text handling

Hello,

Quoted 8 lines · yegorslists at googlemail.com

From: Yegor Yefremov <[email protected]>

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

---
 support/scripts/scanpypi | 5 +++++
 1 file changed, 5 insertions(+)

Applied to master, thanks.

Thomas

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