Edit

IABSD.fr/ports/sysutils/awscli/patches

Branch :

  • Show log

    Commit

  • Author : ajacoutot
    Date : 2017-06-04 09:34:45
    Hash : 67436c83
    Message : Update to awscli-1.11.97 and drop the requirement on groff.

  • patch-awscli_help_py
  • $OpenBSD: patch-awscli_help_py,v 1.1 2017/06/04 09:34:46 ajacoutot Exp $
    
    https://github.com/aws/aws-cli/pull/2635
    
    Index: awscli/help.py
    --- awscli/help.py.orig
    +++ awscli/help.py
    @@ -107,9 +107,12 @@ class PosixHelpRenderer(PagingHelpRenderer):
     
         def _convert_doc_content(self, contents):
             man_contents = publish_string(contents, writer=manpage.Writer())
    -        if not self._exists_on_path('groff'):
    -            raise ExecutableNotFoundError('groff')
    -        cmdline = ['groff', '-m', 'man', '-T', 'ascii']
    +        if self._exists_on_path('groff'):
    +            cmdline = ['groff', '-m', 'man', '-T', 'ascii']
    +        elif self._exists_on_path('mandoc'):
    +            cmdline = ['mandoc', '-T', 'ascii']
    +	else:
    +            raise ExecutableNotFoundError('groff or mandoc')
             LOG.debug("Running command: %s", cmdline)
             p3 = self._popen(cmdline, stdin=PIPE, stdout=PIPE, stderr=PIPE)
             groff_output = p3.communicate(input=man_contents)[0]