r1160 - in /unstable/evolution/debian: changelog control evolution.preinst evolution.templates po/ po/POTFILES.in po/templates.pot
joss at users.alioth.debian.org
joss at users.alioth.debian.org
Wed Apr 1 14:10:21 UTC 2009
Author: joss
Date: Wed Apr 1 14:10:21 2009
New Revision: 1160
URL: http://svn.debian.org/wsvn/pkg-evolution/?sc=1&rev=1160
Log:
before upgrading.
* evolution.{preinst,templates): add a pre-upgrade check that prevents
any upgrade if evolution is currently running. Closes: #519206.
* Add a Pre-Depends on debconf for the debconf use in preinst.
Added:
unstable/evolution/debian/evolution.preinst
unstable/evolution/debian/evolution.templates
unstable/evolution/debian/po/
unstable/evolution/debian/po/POTFILES.in
unstable/evolution/debian/po/templates.pot
Modified:
unstable/evolution/debian/changelog
unstable/evolution/debian/control
Modified: unstable/evolution/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-evolution/unstable/evolution/debian/changelog?rev=1160&op=diff
==============================================================================
--- unstable/evolution/debian/changelog (original)
+++ unstable/evolution/debian/changelog Wed Apr 1 14:10:21 2009
@@ -1,9 +1,15 @@
-evolution (2.24.5-3) UNRELEASED; urgency=low
-
+evolution (2.24.5-3) unstable; urgency=low
+
+ [ Yves-Alexis Perez ]
* debian/NEWS.Debian: warn user to make a backup and quit evolution
- before upgrading. closes: #519206
-
- -- Yves-Alexis Perez <corsac at debian.org> Wed, 11 Mar 2009 23:44:42 +0100
+ before upgrading.
+
+ [ Josselin Mouette ]
+ * evolution.{preinst,templates): add a pre-upgrade check that prevents
+ any upgrade if evolution is currently running. Closes: #519206.
+ * Add a Pre-Depends on debconf for the debconf use in preinst.
+
+ -- Josselin Mouette <joss at debian.org> Wed, 01 Apr 2009 13:00:41 +0200
evolution (2.24.5-2) unstable; urgency=low
Modified: unstable/evolution/debian/control
URL: http://svn.debian.org/wsvn/pkg-evolution/unstable/evolution/debian/control?rev=1160&op=diff
==============================================================================
--- unstable/evolution/debian/control (original)
+++ unstable/evolution/debian/control Wed Apr 1 14:10:21 2009
@@ -81,6 +81,7 @@
evolution-data-server (<< 2.25.0),
gnome-icon-theme (>= 2.19.91),
dbus
+Pre-Depends: debconf (>= 1.4.69) | debconf-2.0
Recommends: gnome-pilot-conduits (>= 2.0.9),
gnome-desktop-data,
evolution-plugins,
Added: unstable/evolution/debian/evolution.preinst
URL: http://svn.debian.org/wsvn/pkg-evolution/unstable/evolution/debian/evolution.preinst?rev=1160&op=file
==============================================================================
--- unstable/evolution/debian/evolution.preinst (added)
+++ unstable/evolution/debian/evolution.preinst Wed Apr 1 14:10:21 2009
@@ -1,0 +1,33 @@
+#! /bin/sh
+set -e
+
+. /usr/share/debconf/confmodule
+
+error_msg() {
+ db_title Upgrading evolution
+ db_fset evolution/needs_shutdown seen false
+ db_input high evolution/needs_shutdown || true
+ db_go
+}
+
+upgrade_check() {
+ seen=0
+ while ps ax | egrep -q 'evolution( .*)?$'; do
+ error_msg
+ seen=$(($seen + 1))
+ if [ $seen = 3 ]; then
+ db_stop
+ echo "Evolution is still running, aborting..."
+ exit 1
+ fi
+ done
+
+ db_stop
+ echo "No more Evolution instances running, proceeding with the upgrade..."
+}
+
+if dpkg --compare-versions "$2" lt-nl 2.24; then
+ upgrade_check
+fi
+
+#DEBHELPER#
Added: unstable/evolution/debian/evolution.templates
URL: http://svn.debian.org/wsvn/pkg-evolution/unstable/evolution/debian/evolution.templates?rev=1160&op=file
==============================================================================
--- unstable/evolution/debian/evolution.templates (added)
+++ unstable/evolution/debian/evolution.templates Wed Apr 1 14:10:21 2009
@@ -1,0 +1,10 @@
+Template: evolution/needs_shutdown
+Type: error
+_Description: Running instances of Evolution detected
+ You are currently upgrading Evolution to a version with an incompatible
+ index format. However, it has been detected that Evolution is
+ currently running. Upgrading it before shutting it down could lead to
+ crashes or to serious data loss in some cases.
+ .
+ You need to shut down all running instances of Evolution using the
+ "evolution --force-shutdown" command before the upgrade can proceed.
Added: unstable/evolution/debian/po/POTFILES.in
URL: http://svn.debian.org/wsvn/pkg-evolution/unstable/evolution/debian/po/POTFILES.in?rev=1160&op=file
==============================================================================
--- unstable/evolution/debian/po/POTFILES.in (added)
+++ unstable/evolution/debian/po/POTFILES.in Wed Apr 1 14:10:21 2009
@@ -1,0 +1,1 @@
+[type: gettext/rfc822deb] evolution.templates
Added: unstable/evolution/debian/po/templates.pot
URL: http://svn.debian.org/wsvn/pkg-evolution/unstable/evolution/debian/po/templates.pot?rev=1160&op=file
==============================================================================
--- unstable/evolution/debian/po/templates.pot (added)
+++ unstable/evolution/debian/po/templates.pot Wed Apr 1 14:10:21 2009
@@ -1,0 +1,41 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: evolution at packages.debian.org\n"
+"POT-Creation-Date: 2009-04-01 15:24+0200\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"Language-Team: LANGUAGE <LL at li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: error
+#. Description
+#: ../evolution.templates:1001
+msgid "Running instances of evolution detected"
+msgstr ""
+
+#. Type: error
+#. Description
+#: ../evolution.templates:1001
+msgid ""
+"You are currently upgrading evolution to a version with an incompatible "
+"index format. However, it has been detected that evolution is currently "
+"running. Upgrading it before shutting it down could lead to crashes or to "
+"serious data loss in some cases."
+msgstr ""
+
+#. Type: error
+#. Description
+#: ../evolution.templates:1001
+msgid ""
+"You need to shut down all running instances of evolution using the "
+"\"evolution --force-shutdown\" command before the upgrade can proceed."
+msgstr ""
More information about the pkg-evolution-commits
mailing list