tags 606690 + patch
tags 606695 + patch
tags 606696 + patch
thanks

Dear maintainer,

I have prepared the fix for the three RC bugs reported
against poker-network's packages. This patch changes affected postrm
scripts to comply with Debian Policy and dbconfig-common
policy/documentation.

Please consider applying these changes. I'm also seeking NMU to upload
these fixes.


Dear Jakub Wilk,

Please review and sponsor this NMU.

With regards,

Dmitrijs.

Attachment: pgppYAE3QulXC.pgp
Description: PGP signature

=== modified file 'debian/changelog'
--- poker-network-1.7.7-3/debian/changelog	2010-09-08 07:50:35 +0000
+++ poker-network-1.7.7-3.1/debian/changelog	2010-12-15 22:49:58 +0000
@@ -1,3 +1,18 @@
+poker-network (1.7.7-3.1) unstable; urgency=high
+
+  * Non-maintainer upload.
+  * Fix failing to purge packages after dependencies have been
+    removed. Add check that dbconfig-common postrm scripts exist before
+    sourcing them. And also use dbc_go during purge only if the previous
+    check passes. This is inline with dbconfig-common documentation /
+    examples. Affected packages are:
+
+    + poker-web (postrm.mysql and dbc_go) (Closes: #606690)
+    + python-poker-prizes.postrm (frontend.postrm.mysql and dbc_go) (Closes: #606695)
+    + python-poker-stats.postrm (frontend.postrm.mysql and dbc_go) (Closes: #606696)
+
+ -- Dmitrijs Ledkovs <dmitrij.led...@ubuntu.com>  Wed, 15 Dec 2010 20:59:51 +0000
+
 poker-network (1.7.7-3) unstable; urgency=low
 
   * add da and ru translations from NMU 1.7.7-1.1 accidentaly removed

=== modified file 'debian/poker-web.postrm'
--- poker-network-1.7.7-3/debian/poker-web.postrm	2010-09-06 16:05:27 +0000
+++ poker-network-1.7.7-3.1/debian/poker-web.postrm	2010-12-15 22:11:31 +0000
@@ -23,11 +23,13 @@
 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.

=== modified file 'debian/python-poker-prizes.postrm'
--- poker-network-1.7.7-3/debian/python-poker-prizes.postrm	2009-04-14 13:48:25 +0000
+++ poker-network-1.7.7-3.1/debian/python-poker-prizes.postrm	2010-12-15 22:37:37 +0000
@@ -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/frontend.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.

=== modified file 'debian/python-poker-stats.postrm'
--- poker-network-1.7.7-3/debian/python-poker-stats.postrm	2008-12-22 21:52:48 +0000
+++ poker-network-1.7.7-3.1/debian/python-poker-stats.postrm	2010-12-15 22:37:55 +0000
@@ -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/frontend.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.

Attachment: pgpMk6oXFnzTQ.pgp
Description: PGP signature

Reply via email to