Package: poker-network
Version: 1.7.7-3
Severity: normal
Tags: patch pending
Dear maintainer,
I've prepared an NMU for poker-network (versioned as 1.7.7-3.1) and
uploaded it to DELAYED/4. Please feel free to tell me if I
should delay it longer.
Regards.
--
,''`. Julien Valroff ~ <[email protected]> ~ <[email protected]>
: :' : Debian Developer & Free software contributor
`. `' http://www.kirya.net/
`- 4096R/ E1D8 5796 8214 4687 E416 948C 859F EF67 258E 26B1
diff -u poker-network-1.7.7/debian/python-poker-stats.postrm poker-network-1.7.7/debian/python-poker-stats.postrm
--- poker-network-1.7.7/debian/python-poker-stats.postrm
+++ poker-network-1.7.7/debian/python-poker-stats.postrm
@@ -8,8 +8,10 @@
# Establish the preliminaries.
db_version 2.0
-. /usr/share/dbconfig-common/dpkg/frontend.postrm.mysql
-dbc_go python-poker-stats $@
+if [ -f /usr/share/dbconfig-common/dpkg/postrm.mysql ]; then
+ . /usr/share/dbconfig-common/dpkg/frontend.postrm.mysql
+ dbc_go python-poker-stats $@
+fi
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
diff -u poker-network-1.7.7/debian/python-poker-network.postrm poker-network-1.7.7/debian/python-poker-network.postrm
--- poker-network-1.7.7/debian/python-poker-network.postrm
+++ poker-network-1.7.7/debian/python-poker-network.postrm
@@ -7,15 +7,29 @@
db_get "python-poker-network/configure"
if [ $RET != "false" ]; then
- . /usr/share/dbconfig-common/dpkg/postrm.mysql
- dbc_go python-poker-network $@
+ if [ -f /usr/share/dbconfig-common/dpkg/postrm.mysql ]; then
+ . /usr/share/dbconfig-common/dpkg/postrm.mysql
+ dbc_go python-poker-network $@
+ fi
fi
rm -f /etc/munin/plugins/poker_*
if [ "$1" = "purge" ]; then
- for file in /etc/poker-network/poker.bot.xml /etc/poker-network/poker.client.xml /etc/poker-network/poker.server.xml ; do
- ucf --debconf-ok --purge $file >/dev/null 2>&1
+ files="/etc/poker-network/poker.bot.xml /etc/poker-network/poker.client.xml /etc/poker-network/poker.server.xml"
+
+ for ext in '~' '%' .bak .dpkg-tmp .dpkg-new .dpkg-old .dpkg-dist .ucf-old .ucf-dist; do
+ for file in $files; do
+ rm -f $file$ext
+ done
+ done
+
+ if [ -x /usr/bin/ucf ]; then
+ for file in $files ; do
+ ucf --debconf-ok --purge $file >/dev/null 2>&1
+ done
+ fi
+ for file in $files ; do
rm -f $file
done
rm -f /etc/poker-network/poker.pem
diff -u poker-network-1.7.7/debian/python-poker-prizes.postrm poker-network-1.7.7/debian/python-poker-prizes.postrm
--- poker-network-1.7.7/debian/python-poker-prizes.postrm
+++ poker-network-1.7.7/debian/python-poker-prizes.postrm
@@ -8,8 +8,10 @@
# Establish the preliminaries.
db_version 2.0
-. /usr/share/dbconfig-common/dpkg/frontend.postrm.mysql
-dbc_go python-poker-prizes $@
+if [ -f /usr/share/dbconfig-common/dpkg/postrm.mysql ]; then
+ . /usr/share/dbconfig-common/dpkg/frontend.postrm.mysql
+ dbc_go python-poker-prizes $@
+fi
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
diff -u poker-network-1.7.7/debian/changelog poker-network-1.7.7/debian/changelog
--- poker-network-1.7.7/debian/changelog
+++ poker-network-1.7.7/debian/changelog
@@ -1,3 +1,12 @@
+poker-network (1.7.7-3.1) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Fix package purge after dependencies removal (Closes: #606690,
+ #606695, #606696)
+ * Remove backup files created by ucf on package purge
+
+ -- Julien Valroff <[email protected]> Wed, 15 Dec 2010 21:28:57 +0100
+
poker-network (1.7.7-3) unstable; urgency=low
* add da and ru translations from NMU 1.7.7-1.1 accidentaly removed
diff -u poker-network-1.7.7/debian/poker-web.postrm poker-network-1.7.7/debian/poker-web.postrm
--- poker-network-1.7.7/debian/poker-web.postrm
+++ poker-network-1.7.7/debian/poker-web.postrm
@@ -23,11 +23,14 @@
if [ -f /usr/share/debconf/confmodule ]; then
. /usr/share/debconf/confmodule
fi
-. /usr/share/dbconfig-common/dpkg/postrm.mysql
-dbc_dbname=currency_one
-dbc_go poker-web-currency-one $@
-dbc_dbname=pokerweb
-dbc_go poker-web $@
+
+if [ -f /usr/share/dbconfig-common/dpkg/postrm.mysql ]; then
+ . /usr/share/dbconfig-common/dpkg/postrm.mysql
+ dbc_dbname=currency_one
+ dbc_go poker-web-currency-one $@
+ dbc_dbname=pokerweb
+ dbc_go poker-web $@
+fi
# Dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.