[debian-edu-commits] debian-edu/ 01/01: Adjust apt-get autoremoval operation. Don't act globally to avoid possible loss of configuration data, use it only package related: - remove 'apt-get autoremove -y' from cf/cf.apt. - add param '--auto-remove' to all apt-get purge commands in cf/cf.ldapclient (Closes: #779646).

Wolfgang Schweer schweer-guest at moszumanska.debian.org
Fri Apr 15 20:07:56 UTC 2016


This is an automated email from the git hooks/post-receive script.

schweer-guest pushed a commit to branch master
in repository debian-edu-config.

commit 0f79fe652be645c3137917ae71053847478d5012
Author: Wolfgang Schweer <wschweer at arcor.de>
Date:   Fri Apr 15 22:09:20 2016 +0200

    Adjust apt-get autoremoval operation. Don't act globally to avoid possible loss of configuration data, use it only package related: - remove 'apt-get autoremove -y' from cf/cf.apt. - add param '--auto-remove' to all apt-get purge commands in cf/cf.ldapclient (Closes: #779646).
---
 cf/cf.apt        | 6 ------
 cf/cf.ldapclient | 8 ++++----
 debian/changelog | 5 +++++
 3 files changed, 9 insertions(+), 10 deletions(-)

diff --git a/cf/cf.apt b/cf/cf.apt
index 1ddb46f..80f25e5 100644
--- a/cf/cf.apt
+++ b/cf/cf.apt
@@ -23,9 +23,3 @@ shellcommands:
   debian::
 
     "/usr/sbin/debian-edu-hwsetup"
-
-# Remove unneeded packages at the end of the installation, in case we
-# removed something in the process.
-shellcommands:
-  debian.fifthpass::
-    "/usr/bin/apt-get autoremove -y"
diff --git a/cf/cf.ldapclient b/cf/cf.ldapclient
index 742f212..75a1d6d 100644
--- a/cf/cf.ldapclient
+++ b/cf/cf.ldapclient
@@ -85,20 +85,20 @@ shellcommands:
     # Workaround for bug #591773 in nslcd
     # FIXME Check if nslcd still pull in libpam-ldapd (bug #591773)
     debian.installation.!standalone::
-        "/usr/bin/apt-get purge -y libpam-ldapd"
+        "/usr/bin/apt-get --auto-remove purge -y libpam-ldapd"
 
     # Avoid multicast dns on stationary machines
     debian.installation.!standalone.!roaming::
-        "/usr/bin/apt-get purge -y libnss-mdns"
+        "/usr/bin/apt-get --auto-remove purge -y libnss-mdns"
 
     # Avoid Network Manager GUI client stationary machines.  The users
     # can not change the config anyway.
     debian.installation.!standalone.!roaming::
-        "/usr/bin/apt-get purge -y plasma-widget-networkmanagement"
+        "/usr/bin/apt-get --auto-remove purge -y plasma-widget-networkmanagement"
 
     # Avoid packages pulled in by cifs-utils (winbind being a Recommends) and
     # winbind (libpam-winbind and libnss-winbind will be purged along
     # with winbind).
     # FIXME Check if cifs-utils still pull in libpam-winbind (bug #706434).
     debian.installation::
-        "/usr/bin/apt-get purge -y winbind"
+        "/usr/bin/apt-get --auto-remove purge -y winbind"
diff --git a/debian/changelog b/debian/changelog
index a7947f6..6b117b4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -14,6 +14,11 @@ debian-edu-config (1.901) UNRELEASED; urgency=medium
   * cf.ltsp:
     - Adjust setting for isc-dhcp-server.
     - Make tftpd-hpa work with multiple subdirs in tftp root dir.
+  * Adjust apt-get autoremoval operation. Don't act globally to avoid
+    possible loss of configuration data, use it only package related:
+    - remove 'apt-get autoremove -y' from cf/cf.apt.
+    - add param '--auto-remove' to all apt-get purge commands
+      in cf/cf.ldapclient (Closes: #779646).
 
  -- Wolfgang Schweer <wschweer at arcor.de>  Thu, 14 Apr 2016 23:32:10 +0200
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/debian-edu-config.git



More information about the debian-edu-commits mailing list