On Mon, Jul 22, 2002 at 04:42:57PM +0200, Andreas Rottmann wrote: > Hi! > > I'd like to know how to have debconf templates displayed only if one, > say upgrades his package "foo" from a version <= "baz". > > Any hints?
Use
dpkg --compare-versions
Example from masqmail.config:
if [ "$1" == "configure" ] ; then
if [ -n $2 ] ; then
if dpkg --compare-versions "$2" lt "0.2.10-0.2" ; then
...
Mermgfurt,
Oliver
pgpNlCvyfHBmf.pgp
Description: PGP signature

