From 4d2e03b96613dd10fb3573c547d5166ee596f5b7 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 24 Mar 2011 10:28:50 +0100 Subject: [PATCH] always add source, even if everything went successful... Signed-off-by: Nico Schottelius --- bin/cdist-type-emulator | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/cdist-type-emulator b/bin/cdist-type-emulator index 32f3ccb2..46ba3a57 100755 --- a/bin/cdist-type-emulator +++ b/bin/cdist-type-emulator @@ -168,9 +168,6 @@ if [ -e "${__cdist_object_dir}" ]; then cat "$__cdist_tmp_file" __cdist_exit_err "Aborting due to object conflict." fi - - # Add ourselves, if we're compatible - __cdist_object_source_add "${__cdist_object_dir}" else # # Move object into tree: @@ -180,3 +177,6 @@ else mkdir -p "$__cdist_new_object_base_dir" mv "$__cdist_new_object_dir" "$__cdist_new_object_base_dir" fi + +# Add "I was here message" +__cdist_object_source_add "${__cdist_object_dir}"