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

Re: How to obtain current package version number?



On Tue, Mar 04, 2003 at 05:02:22PM +0100, Marc Haber wrote:
> On Tue, 04 Mar 2003 14:16:34 +0100 (CET), J?r?me Marant
> <jerome.marant@free.fr> wrote:
> >IIRC you can get it from the postinst parameters. You can have a look
> >to the policy, in maintainers scripts section.
> 
> I thought so as well, but it looks like postinst is only called with
> the most recently configured version, not with the current version.

Why not just preprocess the postinst in debian/rules to embed its own
version number directly into it?

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]



Reply to: