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? Greetings Marc -- -------------------------------------- !! No courtesy copies, please !! ----- Marc Haber | " Questions are the | Mailadresse im Header Karlsruhe, Germany | Beginning of Wisdom " | Fon: *49 721 966 32 15 Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fax: *49 721 966 31 29