On Tue, Mar 04, 2003 at 01:41:58PM +0100, Marc Haber wrote:

> how can a package learn about its current version number?
> 
> Parsing /usr/share/doc/$PACKAGE/changelog.gz is out of the question
> since /usr/share/doc need not be present, and calling dpkg --list
> $PACKAGE and parsing its output looks like bad overkill.
> 
> Does a maintainer script know the package version, so that it can
> write the version number to a file?

Why is it that you need to know this in a maintainer script?  You know the
version of the package at build time.

-- 
 - mdz


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to