En réponse à Marc Haber <[EMAIL PROTECTED]>:

> Hi,

Hi,

> 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?

IIRC you can get it from the postinst parameters. You can have a look
to the policy, in maintainers scripts section.

Cheers,

--
Jérôme Marant <[EMAIL PROTECTED]>
              <[EMAIL PROTECTED]>

http://marant.org


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

Reply via email to