mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-31 15:07:43 +00:00
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>
This commit is contained in:
parent
bc99774b9f
commit
f49295cc42
@ -525,6 +525,11 @@ class BuildrootPackage():
|
|||||||
help_lines = textwrap.wrap(self.metadata['info']['summary'],
|
help_lines = textwrap.wrap(self.metadata['info']['summary'],
|
||||||
initial_indent='\t ',
|
initial_indent='\t ',
|
||||||
subsequent_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
|
# \t + two spaces is 3 char long
|
||||||
help_lines.append('')
|
help_lines.append('')
|
||||||
help_lines.append('\t ' + self.metadata['info']['home_page'])
|
help_lines.append('\t ' + self.metadata['info']['home_page'])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user