[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: #197870, #197891, #197954



Hilmar Preusse <hille42@web.de> schrieb:

> So, what about the following:
>
> if [ -f ${etcdir}/updmap ]; then
>     db_input high tetex-base/oldupdm || true
>     db_go || true
>     db_get tetex-base/oldupdm || true
>     if [ X"$RET" = X"true" ]; then
> 	touch /var/lock/updmap.rm
>     fi
> fi
>
> in debian/config and something like:
>
> if [ -f /var/lock/updmap.rm ]; then
>     rm -f ${etcdir}/updmap
>     rm -f ${etcdir}/updmap.dpkg-*
>     rm -f /var/lock/updmap.rm
> fi
>
> in prerm or postrm? Is that against the Debian Policy? 

You don't need this - just move db_get and the test of its return value
to prerm or postrm. 

> That is just
> the solution I would use, if I had to program a shell script. Are
> there mechanisms to make debconf decisions visible to other install
> scripts?

A script that sourced confmodule can retrieve the answers given to any
debconf question, even to questions of other packages.

Bye, Frank
-- 
Frank Küster, Biozentrum der Univ. Basel
Abt. Biophysikalische Chemie



Reply to: