Module: check_mk
Branch: master
Commit: 1e7fe7d28d49e507d04581c0ec7f0f486b47f7e4
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1e7fe7d28d49e5…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Mar 23 13:25:31 2018 +0100
Man pages: Silently ignore not existing local path
Change-Id: Iec5a5fde922da02e499ab55984e2dbc4ce204d90
---
cmk/man_pages.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/cmk/man_pages.py b/cmk/man_pages.py
index 39ae319..2d75424 100644
--- a/cmk/man_pages.py
+++ b/cmk/man_pages.py
@@ -250,6 +250,9 @@ def all_man_pages():
for basedir in [ cmk.paths.check_manpages_dir,
cmk.paths.local_check_manpages_dir ]:
+ if not os.path.exists(basedir):
+ continue
+
for name in os.listdir(basedir):
if name[0] == "." or name[-1] == "~":
continue