I have a solution for this issue: revno: 11 committer: Daniel Dehennin <daniel.dehen...@baby-gnu.org> timestamp: Mon 2009-05-25 21:48:40 +0200 branch nick: 1.02-create-db message: Do not run dbconfig-common postrm if an Ocsinventory package remains. * debian/ocsinventory-reports.postrm: Run dbc_go if ocsinventory-server configuration file is not present. * debian/ocsinventory-server.postrm: Run dbc_go if ocsinventory-reports configuration file is not present.
Patch attached. Regards. -- Daniel Dehennin Récupérer ma clef GPG: gpg --keyserver pgp.mit.edu --recv-keys 0x6A2540D1
=== modified file 'debian/ocsinventory-reports.postrm' --- debian/ocsinventory-reports.postrm 2009-05-22 08:09:04 +0000 +++ debian/ocsinventory-reports.postrm 2009-05-25 19:44:48 +0000 @@ -13,7 +13,10 @@ . /usr/share/debconf/confmodule db_version 2.0 || [ $? -lt 30 ] -if [ -f /usr/share/dbconfig-common/dpkg/frontend.postrm.mysql ]; then +# Do not remove dbconfig-common settings if ocsinventory-server is +# still installed +if [ ! -f $confpath/ocsinventory.conf ] \ + &&[ -f /usr/share/dbconfig-common/dpkg/frontend.postrm.mysql ]; then . /usr/share/dbconfig-common/dpkg/frontend.postrm.mysql dbc_go ocsinventory-server $@ fi === modified file 'debian/ocsinventory-server.postrm' --- debian/ocsinventory-server.postrm 2009-05-19 05:39:42 +0000 +++ debian/ocsinventory-server.postrm 2009-05-25 19:45:34 +0000 @@ -12,7 +12,10 @@ . /usr/share/debconf/confmodule db_version 2.0 || [ $? -lt 30 ] -if [ -f /usr/share/dbconfig-common/dpkg/postrm.mysql ]; then +# Do not remove dbconfig-common settings if ocsinventory-reports is +# still installed +if [ ! -f $confpath/ocsreports.conf ] \ + && [ -f /usr/share/dbconfig-common/dpkg/postrm.mysql ]; then . /usr/share/dbconfig-common/dpkg/postrm.mysql dbc_go ocsinventory-server $@ fi
pgpx7ZE4wy05x.pgp
Description: PGP signature