support relative paths in -c argument

Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
Nico Schottelius 2013-08-12 12:56:54 +02:00
parent 90c66966e7
commit 49d9f1f475
2 changed files with 4 additions and 1 deletions

View File

@ -190,7 +190,7 @@ class Local(object):
for entry in os.listdir(current_dir):
rel_entry_path = os.path.join(sub_dir, entry)
src = os.path.join(conf_dir, sub_dir, entry)
src = os.path.abspath(os.path.join(conf_dir, sub_dir, entry))
dst = os.path.join(self.conf_path, sub_dir, entry)
# Already exists? remove and link

View File

@ -4,6 +4,9 @@ Changelog
* Changes are always commented with their author in (braces)
* Exception: No braces means author == Nico Schottelius
2.3.1:
* Core: Support relative paths for configuration directories
2.3.0: 2013-08-12
* Core: Added support for cdist shell
* Documentation: Improved some manpages