Re: How to obtain current package version number?
En réponse à Sven Luther <luther@dpt-info.u-strasbg.fr>:
> On Tue, Mar 04, 2003 at 04:58:32PM +0100, Marc Haber wrote:
> > On Tue, 4 Mar 2003 10:40:52 -0300, Henrique de Moraes Holschuh
> > <hmh@debian.org> wrote:
> > >No. Do not skip the proper interface layers. Use dpkg to get that
> > >information.
> >
> > Calling dpkg is actually the recommended way to do this? Can I call
> > dpkg --list from a postinst script without having it explode?
>
> No, it is not. You just need to use the $1 argument to postinst, as
> Jerome told you.
IIRC, it is $2.
Cheers,
--
Jérôme Marant <jerome@marant.org>
<jerome.marant@free.fr>
http://marant.org
Reply to: