Added if [ -r /usr/share/dbconfig-common/dpkg/prerm ] in the prerm.

This commit is contained in:
Thomas Goirand 2013-05-23 00:09:15 +08:00
parent f6037027f0
commit 2c99dc8794
2 changed files with 10 additions and 2 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
cinder (2013.1.1-2) unstable; urgency=low
* Added if [ -r /usr/share/dbconfig-common/dpkg/prerm ] in the prerm.
-- Thomas Goirand <zigo@debian.org> Thu, 23 May 2013 00:08:47 +0800
cinder (2013.1.1-1) unstable; urgency=low
* Uploading to unstable.

View File

@ -6,8 +6,10 @@ set -e
db_get cinder/configure_db || true
if [ "$RET" = "true" ]; then
. /usr/share/dbconfig-common/dpkg/prerm
dbc_go cinder-common $@
if [ -r /usr/share/dbconfig-common/dpkg/prerm ] ; then
. /usr/share/dbconfig-common/dpkg/prerm
dbc_go cinder-common $@
fi
fi
#DEBHELPER#