From 01c1fb90b80a76373167048d4ca23662b3aa3640 Mon Sep 17 00:00:00 2001 From: Thomas Goirand Date: Thu, 23 May 2013 00:09:15 +0800 Subject: [PATCH] Added if [ -r /usr/share/dbconfig-common/dpkg/prerm ] in the prerm. Rewritten-From: 2c99dc8794a217435cb007d7a8d8ff815174e689 --- xenial/debian/changelog | 6 ++++++ xenial/debian/cinder-common.prerm | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) 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# -- 2.45.2