Warning!

Notice: the grml team is migrating from Mercurial to Git.
Please visit git.grml.org instead!

Improve documentation of preinst
authorMichael Prokop <mika@grml.org>
Wed Feb 27 18:22:27 2008 +0100 (9 months ago)
changeset 13bd79e7b181e8
manifestbd79e7b181e8
parent 12eef278bf8952
child 14f11fec23ddb1
Improve documentation of preinst
debian/preinst
--- a/debian/preinst Wed Feb 27 18:04:23 2008 +0100
+++ b/debian/preinst Wed Feb 27 18:22:27 2008 +0100
@@ -4,15 +4,17 @@
# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2.
-# Latest change: Mit Feb 27 18:01:13 CET 2008 [mika]
+# Latest change: Mit Feb 27 18:22:17 CET 2008 [mika]
################################################################################
set -e
case "$1" in
install|upgrade)
- # get rid of this diversion, let's use /etc/skel/.mozilla* for bookmarks only:
- if dpkg --compare-versions $2 lt 0.3.2 ; then
+ # get rid of this diversion, let's use /etc/skel/.mozilla* for bookmarks only;
+ # grml-firefox stopped shipping the file starting with 0.3.3, so remove
+ # the diversion when upgrading from versions older than 0.3.3
+ if dpkg --compare-versions $2 lt 0.3.3 ; then
if dpkg-divert --list /etc/mozilla-firefox/profile/bookmarks.html | grep -q grml-firefox ; then
dpkg-divert --remove --rename --package grml-firefox --divert \
/etc/mozilla-firefox/profile/bookmarks.html.original \