-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Thomas Goirand wrote: > Hi, > > I want to make an update to libapache-mod-log-sql that needs some > maintenances in it's SQL databases if we need to upgrade. Namely, it > needs some table structure upgrades. > > I know many "hacks" to know that I'm upgrading (like doing dpkg -l, > etc.), but what is the correct/policy way to know from what version my > package is upgrading, so my postinst can run smoothly? > > Thomas Goirand > > IANADD.
Policy 6.6.3 says "If the package is being upgraded, call: new-preinst upgrade old-version " Is it what you are seeking? -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkh7TwEACgkQchorMMFUmYycHgCeL+5NcXoAwmX3Rgfaifk5Hk+g JmsAoK0vZo2RIMjBOF+iyYkqGb3EezIR =QZHh -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]