[Python-apps-commits] r11509 - in packages/fookebox/trunk/debian (8 files)

cockroach-guest at users.alioth.debian.org cockroach-guest at users.alioth.debian.org
Sun Nov 2 05:24:48 UTC 2014


    Date: Sunday, November 2, 2014 @ 05:24:47
  Author: cockroach-guest
Revision: 11509

As for database removal on upgrade

Added:
  packages/fookebox/trunk/debian/config
  packages/fookebox/trunk/debian/po/
  packages/fookebox/trunk/debian/po/POTFILES.in
  packages/fookebox/trunk/debian/po/de.po
  packages/fookebox/trunk/debian/po/templates.pot
  packages/fookebox/trunk/debian/templates
Modified:
  packages/fookebox/trunk/debian/changelog
  packages/fookebox/trunk/debian/control

Modified: packages/fookebox/trunk/debian/changelog
===================================================================
--- packages/fookebox/trunk/debian/changelog	2014-11-02 04:31:09 UTC (rev 11508)
+++ packages/fookebox/trunk/debian/changelog	2014-11-02 05:24:47 UTC (rev 11509)
@@ -6,6 +6,7 @@
     - Depend on libjs-jquery and libjs-jquery-ui
   * Updated 01_javascript-urls.patch
   * Updated apache configuration files to work with apache 2.4
+  * Ask for database removal on upgrade
 
  -- Stefan Ott <stefan at ott.net>  Sat, 01 Nov 2014 02:34:42 +0100
 

Added: packages/fookebox/trunk/debian/config
===================================================================
--- packages/fookebox/trunk/debian/config	                        (rev 0)
+++ packages/fookebox/trunk/debian/config	2014-11-02 05:24:47 UTC (rev 11509)
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+set -e
+
+# Source debconf library
+. /usr/share/debconf/confmodule
+
+[ ! -f /var/lib/fookebox/fookebox.sqlite ] && exit 0
+
+db_input high fookebox/remove_database || true
+db_go
+
+# Check the answer
+db_get fookebox/remove_database
+if [ "$RET" = "true" ] ; then
+	echo "REMOVE DB 2"
+else
+	echo "NO REMOVE DB 2"
+fi

Modified: packages/fookebox/trunk/debian/control
===================================================================
--- packages/fookebox/trunk/debian/control	2014-11-02 04:31:09 UTC (rev 11508)
+++ packages/fookebox/trunk/debian/control	2014-11-02 05:24:47 UTC (rev 11509)
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Stefan Ott <stefan at ott.net>
 Uploaders: Python Applications Packaging Team <python-apps-team at lists.alioth.debian.org>
-Build-Depends: debhelper (>= 7.0.50), python, python-setuptools, python-pastescript
+Build-Depends: debhelper (>= 7.0.50), po-debconf, python, python-setuptools, python-pastescript
 Standards-Version: 3.9.6
 Homepage: http://fookebox.googlecode.com/
 Vcs-Svn: svn://anonscm.debian.org/python-apps/packages/fookebox/trunk/
@@ -12,7 +12,7 @@
 
 Package: fookebox
 Architecture: all
-Depends: ${misc:Depends}, ${python:Depends}, libjs-prototype, libjs-scriptaculous, libjs-jquery, libjs-jquery-ui, python-pylons, python-mpd, python-sqlalchemy
+Depends: ${misc:Depends}, ${python:Depends}, debconf, libjs-prototype, libjs-scriptaculous, libjs-jquery, libjs-jquery-ui, python-pylons, python-mpd, python-sqlalchemy
 Recommends: mpd, libapache2-mod-wsgi | httpd-wsgi, javascript-common
 Description: web-based jukebox frontend to mpd
  fookebox is a jukebox-style web-frontend to mpd. It can serve as a

Added: packages/fookebox/trunk/debian/po/POTFILES.in
===================================================================
--- packages/fookebox/trunk/debian/po/POTFILES.in	                        (rev 0)
+++ packages/fookebox/trunk/debian/po/POTFILES.in	2014-11-02 05:24:47 UTC (rev 11509)
@@ -0,0 +1 @@
+[type: gettext/rfc822deb] templates

Added: packages/fookebox/trunk/debian/po/de.po
===================================================================
--- packages/fookebox/trunk/debian/po/de.po	                        (rev 0)
+++ packages/fookebox/trunk/debian/po/de.po	2014-11-02 05:24:47 UTC (rev 11509)
@@ -0,0 +1,33 @@
+# fookebox template German translation.
+# Copyright (C) 2014 Stefan Ott
+# This file is distributed under the same license as the fookebox package.
+# Stefan Ott <stefan at ott.net>, 2014
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: fookebox\n"
+"Report-Msgid-Bugs-To: fookebox at packages.debian.org\n"
+"POT-Creation-Date: 2014-11-02 06:06+0100\n"
+"PO-Revision-Date: 2014-11-02 06:16+0100\n"
+"Last-Translator: Stefan Ott <stefan at ott.net>\n"
+"Language-Team: LANGUAGE <LL at li.org>\n"
+"Language: German\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../templates:1001
+msgid "Remove old fookebox database?"
+msgstr "Alte fookebox-Datenbank entfernen?"
+
+#. Type: boolean
+#. Description
+#: ../templates:1001
+msgid ""
+"Previous versions of fookebox used a database to store schedule information. "
+"This database is no longer used and can be safely removed."
+msgstr ""
+"Frühere Versionen von fookebox haben Programminformationen in einer Datenbank gespeichert."
+"Diese Datenbank wird nicht mehr verwendet und kann ohne Bedenken entfernt werden."

Added: packages/fookebox/trunk/debian/po/templates.pot
===================================================================
--- packages/fookebox/trunk/debian/po/templates.pot	                        (rev 0)
+++ packages/fookebox/trunk/debian/po/templates.pot	2014-11-02 05:24:47 UTC (rev 11509)
@@ -0,0 +1,31 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the fookebox package.
+# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: fookebox\n"
+"Report-Msgid-Bugs-To: fookebox at packages.debian.org\n"
+"POT-Creation-Date: 2014-11-02 06:06+0100\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"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../templates:1001
+msgid "Remove old fookebox database?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:1001
+msgid ""
+"Previous versions of fookebox used a database to store schedule information. "
+"This database is no longer used and can be safely removed."
+msgstr ""

Added: packages/fookebox/trunk/debian/templates
===================================================================
--- packages/fookebox/trunk/debian/templates	                        (rev 0)
+++ packages/fookebox/trunk/debian/templates	2014-11-02 05:24:47 UTC (rev 11509)
@@ -0,0 +1,6 @@
+Template: fookebox/remove_database
+Type: boolean
+Default: true
+_Description: Remove old fookebox database?
+ Previous versions of fookebox used a database to store schedule information. This
+ database is no longer used and can be safely removed.




More information about the Python-apps-commits mailing list