[Pkg-bugzilla-commits] r79 - trunk/bugzilla-2.18/debian
Alexis Sukrieh
sukria-guest@costa.debian.org
Sun, 24 Apr 2005 19:54:27 +0000
Author: sukria-guest
Date: 2005-04-24 19:54:27 +0000 (Sun, 24 Apr 2005)
New Revision: 79
Modified:
trunk/bugzilla-2.18/debian/bugzilla.postinst
Log:
added 2.18 upgrade
Modified: trunk/bugzilla-2.18/debian/bugzilla.postinst
===================================================================
--- trunk/bugzilla-2.18/debian/bugzilla.postinst 2005-04-23 15:50:05 UTC (rev 78)
+++ trunk/bugzilla-2.18/debian/bugzilla.postinst 2005-04-24 19:54:27 UTC (rev 79)
@@ -53,21 +53,34 @@
params_218_dest="/etc/bugzilla/params"
params_218_new="/usr/share/bugzilla/debian/params.new"
- # manage the upgrade before 2.18
- # We aim here to upgrade the params file from oldest version.
- if [ -n "$2" ] && dpkg --compare-versions "$2" lt 2.18; then
+ # manage the upgrade for 2.16 packages
+ if [ -n "$2" ] && dpkg --compare-versions "$2" lt 2.16.7-6; then
debug "Upgrading $2 "
- params_216="/var/lib/bugzilla/data/params"
+ params="/var/lib/bugzilla/data/params"
# the 2.16 params file is found, move it for an upgrade...
- if [ -f $params_216 ]; then
+ if [ -f $params ]; then
debug "2.16 params file found, moving it"
# We are upgrading from 2.16, then $params_218_dest is only our
# package's version, we can safely remove it and use the old 2.16 file
- replace_file $params_216 $params_218_dest
+ replace_file $params $params_218_dest
fi
fi
+ # manage the upgrade for 2.18 packages before 2.18-4
+ if [ -n "$2" ] && dpkg --compare-versions "$2" lt 2.18-4; then
+ debug "Upgrading $2 "
+ params="/usr/share/bugzilla/web/data/params"
+
+ # the 2.16 params file is found, move it for an upgrade...
+ if [ -f $params ]; then
+ debug "2.18 params file found, moving it"
+ # We are upgrading from 2.16, then $params_218_dest is only our
+ # package's version, we can safely remove it and use the old 2.16 file
+ replace_file $params $params_218_dest
+ fi
+ fi
+
# If there's no $params_218_dest yet, let's move our package version
if [ ! -f $params_218_dest ]; then
replace_file $params_218_src $params_218_dest