Re: #197870, #197891, #197954
Hilmar Preusse <hille42@web.de> schrieb:
> if [ -f ${etcdir}/updmap ]; then
> db_get tetex-base/oldupdm || true
> if [ X"$RET" = X"true" ]; then
> rm -f ${etcdir}/updmap.dpkg-*
> rm -f /var/lock/updmap.rm
> fi
> fi
>
> in postin. Is that OK?
Looks good except the removal of /var/lock/updmap.rm - this hasn't been
used publically, has it?
> Another question: As we use debconf in the
> config-stage: Do we have to pre-depend in debconf
No. A dependency on debconf is treated like a pre-depends. Don't know
how this is achieved, but look at debconf-devel(7):
,----
| Note that the config script is run before the package is unpacked. It
| should only use com mands that are in essential packages. The only
| dependency of your package that is guaranteed to be met when its
| config script is run is a dependency (possibly versioned) on debconf
| itself.
`----
> or is that:
> db_* high tetex-base/oldupdm || true
> (asking for the exit status of db_*) sufficient?
the || true has a different purpose: If e.g. the frontend chosen does
not work, the script would immediately exit because it is "set -e". We
wouldn't even be able to check for the return status, or at least do
what can be done without debconf.
Bye, Frank
--
Frank Küster, Biozentrum der Univ. Basel
Abt. Biophysikalische Chemie
Reply to:
- References:
- #197870, #197891, #197954
- From: Hilmar Preusse <hille42@web.de>
- Re: #197870, #197891, #197954
- From: Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>
- Re: #197870, #197891, #197954
- Re: #197870, #197891, #197954
- From: Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>
- Re: #197870, #197891, #197954
- From: Hilmar Preusse <hille42@web.de>
- Re: #197870, #197891, #197954
- From: frank@kuesterei.ch (Frank Küster)
- Re: #197870, #197891, #197954
- From: Hilmar Preusse <hille42@web.de>