[Pkg-sysvinit-commits] r880 - in sysvinit/trunk/debian: . sysv-rc
Petter Reinholdtsen
pere at costa.debian.org
Fri Sep 8 15:07:44 UTC 2006
Author: pere
Date: 2006-09-08 15:07:44 +0000 (Fri, 08 Sep 2006)
New Revision: 880
Modified:
sysvinit/trunk/debian/changelog
sysvinit/trunk/debian/sysv-rc/postinst
Log:
Print a warning when upgrading from the broken versions.
Modified: sysvinit/trunk/debian/changelog
===================================================================
--- sysvinit/trunk/debian/changelog 2006-09-08 14:21:51 UTC (rev 879)
+++ sysvinit/trunk/debian/changelog 2006-09-08 15:07:44 UTC (rev 880)
@@ -4,7 +4,7 @@
rc*.d/ symlinks, fixing bug introduced in 2.86.ds1-16. Patch from
Arjan Oosting. (Closes: #386500) Added entry in NEWS file to give
clues on how to fix the breakage in upgraded packages introduced
- by this.
+ by this. Print a warning when upgrading from the broken versions.
* Change checkroot.sh to use a private tmpfs file system for its
device file if it is missing from /dev/. (Closes: #386347)
* Also create possibly non-existant parent directory of lock directory
Modified: sysvinit/trunk/debian/sysv-rc/postinst
===================================================================
--- sysvinit/trunk/debian/sysv-rc/postinst 2006-09-08 14:21:51 UTC (rev 879)
+++ sysvinit/trunk/debian/sysv-rc/postinst 2006-09-08 15:07:44 UTC (rev 880)
@@ -3,9 +3,38 @@
# sysv-rc postinst
#
+report_upgrade_problem() {
+
+ # Not using debconf as it would introduce a new dependency.
+ echo
+ echo "WARNING:"
+ echo "WARNING: You are upgrading from version $oldver of sysv-rc which"
+ echo "WARNING: broke upgrade of other packages. Please read"
+ echo "WARNING: /usr/share/doc/sysvinit/NEWS.Debian.gz for instructions"
+ echo "WARNING: on how to recover."
+ echo "WARNING:"
+ echo
+
+ # Not using 'read' to avoid breaking non-interactive
+ # installations.
+ echo "Will continue in 10 seconds"
+ sleep 10
+}
+
case "$1" in
configure)
oldver=$2
+ #
+ # In 2.86.ds1-16 (2006-09-06), a broken version of update-rc.d
+ # was uploaded. It broke the upgrades of other packages. The
+ # problem was fixed in version 2.86.ds1-18. Warn the user and
+ # let him know how to recover from the problem.
+ #
+ if dpkg --compare-versions "$oldver" ge "2.86.ds1-16" &&
+ dpkg --compare-versions "$oldver" lt "2.86.ds1-18"
+ then
+ report_upgrade_problem "$oldver"
+ fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
exit 0
More information about the Pkg-sysvinit-commits
mailing list