Gentoo Archives: gentoo-pms

From: Ciaran McCreesh <ciaran.mccreesh@××××××××××.com>
To: gentoo-pms@l.g.o
Subject: Re: [gentoo-pms] REPLACING_VERSIONS
Date: Mon, 31 Jan 2011 18:28:29
Message-Id: 20110131182655.3c24fac8@googlemail.com
In Reply to: [gentoo-pms] REPLACING_VERSIONS by Ulrich Mueller
On Mon, 31 Jan 2011 19:23:51 +0100
Ulrich Mueller <ulm@g.o> wrote:
> PMS currently says: "A whitespace-separated list of versions of this > package (including revision, if specified) that are being replaced > (uninstalled or overwritten) as a result of this install." > > Shouldn't the spec guarantee that it's the empty string (i.e., not > a string containing arbitrary whitespace) if the list is empty? > Otherwise simple binary tests like [[ -n ${REPLACING_VERSIONS} ]] > cannot be done. > > For REPLACED_BY_VERSION, it is explicitly specified: "The single > version ..., or an empty string otherwise."
We had an issue with this early on with Paludis: certain eclasses were expecting exact spacing requirements inside A and AA based upon a quirk in how Portage created them, and it was causing weird bugs. I'd be inclined to say that people should write more tolerant code... -- Ciaran McCreesh

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-pms] REPLACING_VERSIONS Ulrich Mueller <ulm@g.o>