Module: check_mk
Branch: master
Commit: 06bbfda1925be543f4a2da879497d15c85ffb8bf
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=06bbfda1925be5…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Tue Oct 11 13:28:26 2016 +0200
fixed packaging
---
modules/packaging.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/packaging.py b/modules/packaging.py
index 57bf6cb..f3ea54d 100644
--- a/modules/packaging.py
+++ b/modules/packaging.py
@@ -287,9 +287,9 @@ def package_pack(args):
raise PackageException("Usage: check_mk -P pack NAME")
# Make sure, user is not in data directories of Check_MK
- p = os.path.abspath(os.curdir)
+ abs_curdir = os.path.abspath(os.curdir)
for dir in [cmk.paths.var_dir] + [ p[-1] for p in get_package_parts() ]:
- if p == dir or p.startswith(dir + "/"):
+ if abs_curdir == dir or abs_curdir.startswith(dir + "/"):
raise PackageException("You are in %s!\n"
"Please leave the directories of Check_MK before
creating\n"
"a packet file. Foreign files lying around here will
mix up things." % p)