From: Thomas Goirand Date: Wed, 22 May 2013 16:09:15 +0000 (+0800) Subject: Added if [ -r /usr/share/dbconfig-common/dpkg/prerm ] in the prerm. X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=01c1fb90b80a76373167048d4ca23662b3aa3640;p=openstack-build%2Fcinder-build.git Added if [ -r /usr/share/dbconfig-common/dpkg/prerm ] in the prerm. Rewritten-From: 2c99dc8794a217435cb007d7a8d8ff815174e689 --- diff --git a/xenial/debian/changelog b/xenial/debian/changelog index d2810a0ee..50dbf1bb8 100644 --- a/xenial/debian/changelog +++ b/xenial/debian/changelog @@ -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 Thu, 23 May 2013 00:08:47 +0800 + cinder (2013.1.1-1) unstable; urgency=low * Uploading to unstable. diff --git a/xenial/debian/cinder-common.prerm b/xenial/debian/cinder-common.prerm index ecda68a06..71084c6c4 100644 --- a/xenial/debian/cinder-common.prerm +++ b/xenial/debian/cinder-common.prerm @@ -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#