-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, Mar 04, 2003 at 01:41:58PM +0100, Marc Haber wrote: > how can a package learn about its current version number? Package information is stored in /var/lib/dpkg/available. There is already a package parsing this information: grep-dctrl You can do it yourself with awk/sed/whatever though.
> 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$'` Ciao, Bastian - -- Bastian Kleineidam Atombombe · Plutonium · Fat Man · Do it Yourself · Tim Taylor -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+ZKbTeBwlBDLsbz4RAuFCAJ4uxWK3kOv5Cx/xZDgbsgYkf9ITXQCfV8r2 wrH9mafOinGUDrnin0SnMoA= =uew3 -----END PGP SIGNATURE-----