Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Oct 2005 14:48:13 -0700
From:      Brooks Davis <brooks@one-eyed-alien.net>
To:        Nick Hilliard <nick-lists@netability.ie>
Cc:        ports@freebsd.org
Subject:   Re: How to detect portupgrade and barf
Message-ID:  <20051010214813.GD24213@odin.ac.hmc.edu>
In-Reply-To: <1128959405.30953.4.camel@localhost.netability.ie>
References:  <1128959405.30953.4.camel@localhost.netability.ie>

next in thread | previous in thread | raw e-mail | index | archive | help

--C1iGAkRnbeBonpVg
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Oct 10, 2005 at 04:50:05PM +0100, Nick Hilliard wrote:
> Is there a recommended method for detecting if a port is being upgraded
> using portupgrade?  I'm working on a port of a system at the moment
> which requires both the old version and the new version to be installed
> simultaneously.  If portupgrade gets its hands on this, the internal
> upgrade process will die because the old version will no longer be
> present, and this will cause the upgrade process to die horribly.  What
> I'd like to do is to detect if portupgrade is being used and if so, die
> with an appropriate error message.
>=20
> There are several extra shell variables available on portupgrade,
> including ${PORTSDIR}, ${PACKAGES} and ${PKG_PATH}, but they don't look
> portupgrade-specific enough to use for this purpose.
>=20
> Any suggestions?

Do what needs to be done in the deinstall script of the package.  If you
can't do that for some reason, you must find a way to have them both
installed at once that is supported by the ports collection.  Short
of some sort of new port per version scheme I don't see a way to do
that.

-- Brooks

--=20
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4

--C1iGAkRnbeBonpVg
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFDSuGcXY6L6fI4GtQRAr1yAKDaGfrQhfKd/MEZBEq8UGWLzqyF4wCdHqgk
UKAHDpdYarZrTfTGZEs9qCk=
=f4o6
-----END PGP SIGNATURE-----

--C1iGAkRnbeBonpVg--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051010214813.GD24213>