scanpypi: fix help text handling
PATCH 1/1 scanpypi: fix help text handling
From: Yegor Yefremov <[email protected]>
Make sure a help text is terminated with a full stop.
Signed-off-by Yegor Yefremov <[email protected]>
--- support/scripts/scanpypi | 5 +++++ 1 file changed, 5 insertions(+)
support/scripts/scanpypi +5 -0
@@ -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
Thomas Petazzoni
AppliedPATCH 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.
Signed-off-by Yegor Yefremov <[email protected]>--- 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