Re: How to obtain current package version number?
On Tue, Mar 04, 2003 at 11:52:09PM +0100, Marc Haber wrote:
> On Tue, 4 Mar 2003 16:41:48 +0000, Colin Watson <cjwatson@debian.org>
> wrote:
> >Why not just preprocess the postinst in debian/rules to embed its own
> >version number directly into it?
>
> Nice idea, thanks!
>
> Is an executeable script (for example an init script) allowed to parse
> /var/lib/dpkg/info/$PACKAGE.postinst?
No - but you could do the same preprocessing for the init script,
couldn't you?
It might also help if you elaborated on why you need this ...
--
Colin Watson [cjwatson@flatline.org.uk]
Reply to: