From 7d6990d9332dc8c6d1056678a918568dd95ca2c3 Mon Sep 17 00:00:00 2001 From: Dmitry Bogatov Date: Wed, 29 Jul 2015 11:13:07 +0200 Subject: [PATCH 1/2] By default, package is not autoremoved, if it either suggested or recommened, but not is dependency for some other. With this change, either package is dependency of manually installed, either is is subject to autoremove. --- cdist/conf/type/__apt_norecommends/manifest | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cdist/conf/type/__apt_norecommends/manifest b/cdist/conf/type/__apt_norecommends/manifest index 881c2427..6fdc2d93 100755 --- a/cdist/conf/type/__apt_norecommends/manifest +++ b/cdist/conf/type/__apt_norecommends/manifest @@ -30,6 +30,8 @@ case "$os" in --source - << DONE APT::Install-Recommends "0"; APT::Install-Suggests "0"; +APT::AutoRemove::RecommendsImportant "0"; +APT::AutoRemove::SuggestsImportant "0"; DONE ;; *) From 56e51f834fd68249762fb1a4e70bf239ef07bd09 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Wed, 29 Jul 2015 12:54:30 +0200 Subject: [PATCH 2/2] ++changes Signed-off-by: Nico Schottelius --- docs/changelog | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/changelog b/docs/changelog index 52b5d03a..0189ed99 100644 --- a/docs/changelog +++ b/docs/changelog @@ -6,6 +6,7 @@ next: * New type: __pacman_conf: Manage pacman.conf (Dominique Roux) * New type: __pacman_conf_integrate: cdist compatible pacman.conf (Dominique Roux) * Core: Support object ids '.cdist' (Nico Schottelius) + * Type __apt_norecommends: Also setup autoremove options (Dmitry Bogatov) 3.1.13: 2015-05-16