[Python-modules-commits] r20336 - in packages/python-carbon/trunk/debian (7 files)

hggh-guest at users.alioth.debian.org hggh-guest at users.alioth.debian.org
Sun Feb 5 11:31:49 UTC 2012


    Date: Sunday, February 5, 2012 @ 11:31:48
  Author: hggh-guest
Revision: 20336

added postrm debconf question if purge whisper database files

Added:
  packages/python-carbon/trunk/debian/po/
  packages/python-carbon/trunk/debian/po/POTFILES.in
  packages/python-carbon/trunk/debian/po/templates.pot
  packages/python-carbon/trunk/debian/python-carbon.config
  packages/python-carbon/trunk/debian/python-carbon.templates
Modified:
  packages/python-carbon/trunk/debian/python-carbon.postinst
  packages/python-carbon/trunk/debian/python-carbon.postrm

Added: packages/python-carbon/trunk/debian/po/POTFILES.in
===================================================================
--- packages/python-carbon/trunk/debian/po/POTFILES.in	                        (rev 0)
+++ packages/python-carbon/trunk/debian/po/POTFILES.in	2012-02-05 11:31:48 UTC (rev 20336)
@@ -0,0 +1 @@
+[type: gettext/rfc822deb] python-carbon.templates

Added: packages/python-carbon/trunk/debian/po/templates.pot
===================================================================
--- packages/python-carbon/trunk/debian/po/templates.pot	                        (rev 0)
+++ packages/python-carbon/trunk/debian/po/templates.pot	2012-02-05 11:31:48 UTC (rev 20336)
@@ -0,0 +1,40 @@
+# 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: python-carbon at packages.debian.org\n"
+"POT-Creation-Date: 2012-02-05 12:09+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
+#: ../python-carbon.templates:1001
+msgid "Remove all Whisper databases?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../python-carbon.templates:1001
+msgid ""
+"The /var/lib/graphite/whisper directory which contains the Whisper database "
+"files is about to be removed."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../python-carbon.templates:1001
+msgid ""
+"If you are removing Carbon package in order to later install a more recent "
+"version the data should be kept."
+msgstr ""

Added: packages/python-carbon/trunk/debian/python-carbon.config
===================================================================
--- packages/python-carbon/trunk/debian/python-carbon.config	                        (rev 0)
+++ packages/python-carbon/trunk/debian/python-carbon.config	2012-02-05 11:31:48 UTC (rev 20336)
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+set -e
+
+. /usr/share/debconf/confmodule

Modified: packages/python-carbon/trunk/debian/python-carbon.postinst
===================================================================
--- packages/python-carbon/trunk/debian/python-carbon.postinst	2012-02-05 08:24:08 UTC (rev 20335)
+++ packages/python-carbon/trunk/debian/python-carbon.postinst	2012-02-05 11:31:48 UTC (rev 20336)
@@ -2,6 +2,7 @@
 
 set -e
 
+. /usr/share/debconf/confmodule
 
 if [ "$1" = configure ]; then
 	if ! getent passwd _graphite > /dev/null; then

Modified: packages/python-carbon/trunk/debian/python-carbon.postrm
===================================================================
--- packages/python-carbon/trunk/debian/python-carbon.postrm	2012-02-05 08:24:08 UTC (rev 20335)
+++ packages/python-carbon/trunk/debian/python-carbon.postrm	2012-02-05 11:31:48 UTC (rev 20336)
@@ -2,6 +2,7 @@
 
 set -e
 
+. /usr/share/debconf/confmodule
 
 DIRS="/var/lib/graphite /var/lib/graphite/whisper /var/log/carbon"
 
@@ -14,6 +15,12 @@
 
 if [ "$1" = purge ]; then
 	rm -rf /var/log/carbon
+	db_input high python-carbon/postrm_remove_databases || true
+	db_go || true
+	db_get python-carbon/postrm_remove_databases || true
+	if [ "$RET" = "true" ]; then
+		rm -rf /var/lib/graphite/whisper
+	fi
 fi
 
 #DEBHELPER#

Added: packages/python-carbon/trunk/debian/python-carbon.templates
===================================================================
--- packages/python-carbon/trunk/debian/python-carbon.templates	                        (rev 0)
+++ packages/python-carbon/trunk/debian/python-carbon.templates	2012-02-05 11:31:48 UTC (rev 20336)
@@ -0,0 +1,9 @@
+Template: python-carbon/postrm_remove_databases
+Type: boolean
+Default: false
+_Description: Remove all Whisper databases?
+ The /var/lib/graphite/whisper directory which contains the Whisper database
+ files is about to be removed.
+ .
+ If you are removing Carbon package in order to later install a more
+ recent version the data should be kept.




More information about the Python-modules-commits mailing list