Re: How to obtain current package version number?
On 20030304T141459+0100, Bastian Kleineidam wrote:
> > Does a maintainer script know the package version, so that it can
> > write the version number to a file?
> # example: current bash version number
> BASH_VERSION=`grep-available -P -s Version -n -r '^bash$'`
Please see the grep-dctrl(1) manual page, especially its COMPATIBILITY
section before using grep-dctrl in any Debian package. Only then do you
know why Bastian's suggestion is broken.
(In an unrelated note, Bastian, look up -X in the manual page:-)
--
%%% Antti-Juhani Kaijanaho % gaia@iki.fi % http://www.iki.fi/gaia/ %%%
Please send any work-related email to <antkaij@mit.jyu.fi>
Reply to: