From 346f1f8af34de7a6a8fd21dc521211d31b2f33c0 Mon Sep 17 00:00:00 2001
From: Jonas Weber <github@jonasw.de>
Date: Wed, 12 Sep 2018 11:36:06 +0200
Subject: [PATCH] Send messages when installing packages via __package_apt

---
 cdist/conf/type/__package_apt/gencode-remote | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cdist/conf/type/__package_apt/gencode-remote b/cdist/conf/type/__package_apt/gencode-remote
index d9cc52b7..39584e30 100755
--- a/cdist/conf/type/__package_apt/gencode-remote
+++ b/cdist/conf/type/__package_apt/gencode-remote
@@ -78,9 +78,11 @@ case "$state_should" in
             name="${name}=${version}"
         fi
         echo $aptget install $target_release \"$name\"
+        echo "installed" >> "$__messages_out"
     ;;
     absent)
         echo $aptget remove $purgeparam \"$name\"
+        echo "removed" >> "$__messages_out"
     ;;
     *)
         echo "Unknown state: $state_should" >&2