[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#985390: Clarifying changes on resulting binary packages



Hi!

Just to clarify a bit, as the changes on the sources may seem big, these are
the differences on resulting scripts (the only that was changed besides
changelogs and a note on NEWS).

>From -5 to -6:

diff -ru 5/control/postrm 6/control/postrm
--- 5/control/postrm	2021-02-08 21:35:48.000000000 +0100
+++ 6/control/postrm	2021-03-04 14:45:00.000000000 +0100
@@ -6,20 +6,12 @@
 	remove)
 		;;
 	purge)
-		echo "Purging logfiles..."
-		rm -rf /var/log/squid
-
-		if [ -f /etc/squid/squid.conf ]; then
-			echo "Removing the config-file .."
-			rm -f /etc/squid/squid.conf
-		fi
-
 		#
 		# We do not remove /var/spool/squid because that might
 		# take a lot of time. Most of the time it is on a seperate
 		# disk anyway and it is faster to do a mkfs on it..
 		#
-		echo "Please, remove /var/spool/squid yourself."
+		echo "Please, remove logs (/var/log/squid) and cache (/var/spool/squid) yourself."
 		;;
 	failed-upgrade|abort-upgrade|upgrade|abort-install|disappear)
 		;;

And these are those from -6 to -7:

diff -ru 6/control/postrm 7/control/postrm
--- 6/control/postrm	2021-03-04 14:45:00.000000000 +0100
+++ 7/control/postrm	2021-03-10 09:19:32.000000000 +0100
@@ -21,7 +21,7 @@
 # generated by other debhelper scripts.
 
 # Automatically added by dh_installinit/13.3.4
-if [ "$1" = "purge" ] ; then
+if [ "$1" = "purge" ] && ! [ -e /etc/init.d/squid ]; then
 	update-rc.d squid remove >/dev/null
 fi
 # End automatically added section
@@ -42,7 +42,7 @@
 	fi
 fi
 
-if [ "$1" = "purge" ]; then
+if [ "$1" = "purge" ] && ! [ -e /lib/systemd/system/squid.service ]; then
 	if [ -x "/usr/bin/deb-systemd-helper" ]; then
 		deb-systemd-helper purge 'squid.service' >/dev/null || true
 		deb-systemd-helper unmask 'squid.service' >/dev/null || true

Hope that clarifies a bit.

Regards.
-- 
Manty/BestiaTester -> http://manty.net


Reply to: