[Dbconfig-common-devel] Disable database management

Daniel Dehennin daniel.dehennin at baby-gnu.org
Tue May 3 11:07:19 UTC 2016


Paul Gevers <elbrus at debian.org> writes:

> Hi Daniel,
>
> On 29-04-16 14:36, Daniel Dehennin wrote:
>> Is there anything to do in postinst to handle the case where the admin
>> opt-out dbconfig-common.
>> 
>> It looks like there is an issue in sympa[1] due to the way the
>> postinst[2] is written.
>
> Yes, a package must not unconditionally use variables set by
> dbconfig-common. I would say that the lines after 235 need to be in an
> if [ "$dbc_install" = "true" ] && [ "${_dbc_on_error_option}" !=
> "ignore" ] ;
> fi
> block.
>
> But please also see my (today !!) reported bug 822945¹ against
> dbconfig-common. I have the same issue in my package cacti.

It looks like I need to check db_no_thanks too, like

#+begin_src sh
if ! dbc_no_thanks || \
    [ "$dbc_install" = "true" ] \
    && [ "${_dbc_on_error_option}" != "ignore" ]
then
    ...
fi
#+end_src

Is it possible to have something added to the documentation about it?

Regards.
-- 
Daniel Dehennin
Récupérer ma clef GPG: gpg --recv-keys 0xCC1E9E5B7A6FE2DF
Fingerprint: 3E69 014E 5C23 50E8 9ED6  2AAD CC1E 9E5B 7A6F E2DF
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 342 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/dbconfig-common-devel/attachments/20160503/35b737ea/attachment.sig>


More information about the Dbconfig-common-devel mailing list