Note: Due to technical difficulties, the Archives are currently not up to date.
GMANE provides an alternative service for most mailing lists. c.f. bug 424647
List Archive: gentoo-pms
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
|
|