Patch ansible-doc to ignore VERSIONS files in modules directories.

This avoids a python traceback. Pull request upstream pending.

noted by and OK ajacoutot@ (landry@)
This commit is contained in:
rpe 2015-01-22 19:57:41 +00:00
parent c6299e5727
commit e37d8e62ba
2 changed files with 18 additions and 1 deletions

View File

@ -1,9 +1,10 @@
# $OpenBSD: Makefile,v 1.37 2014/12/06 11:32:56 rpe Exp $
# $OpenBSD: Makefile,v 1.38 2015/01/22 19:57:41 rpe Exp $
COMMENT = ssh based config management framework
MODPY_EGG_VERSION = 1.8.2
DISTNAME = ansible-${MODPY_EGG_VERSION}
REVISION = 0
CATEGORIES = sysutils

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-bin_ansible-doc,v 1.1 2015/01/22 19:57:41 rpe Exp $
ignore VERSION file in ansible-doc #10070
https://github.com/ansible/ansible/pull/10070
--- bin/ansible-doc.orig Thu Jan 22 19:22:39 2015
+++ bin/ansible-doc Thu Jan 22 19:22:55 2015
@@ -34,7 +34,7 @@ import traceback
MODULEDIR = C.DEFAULT_MODULE_PATH
BLACKLIST_EXTS = ('.pyc', '.swp', '.bak', '~', '.rpm')
-IGNORE_FILES = [ "COPYING", "CONTRIBUTING", "LICENSE", "README" ]
+IGNORE_FILES = [ "COPYING", "CONTRIBUTING", "LICENSE", "README", "VERSION" ]
_ITALIC = re.compile(r"I\(([^)]+)\)")
_BOLD = re.compile(r"B\(([^)]+)\)")