Gentoo Logo
Gentoo Spaceship




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
Navigation:
Lists: gentoo-pms: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-pms@g.o
From: Ciaran McCreesh <ciaran.mccreesh@...>
Subject: Re: REPLACING_VERSIONS
Date: Mon, 31 Jan 2011 18:26:55 +0000
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
Attachment:
signature.asc (PGP signature)
Replies:
Re: REPLACING_VERSIONS
-- Ulrich Mueller
References:
REPLACING_VERSIONS
-- Ulrich Mueller
Navigation:
Lists: gentoo-pms: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
REPLACING_VERSIONS
Next by thread:
Re: REPLACING_VERSIONS
Previous by date:
REPLACING_VERSIONS
Next by date:
Re: REPLACING_VERSIONS


Updated Jul 18, 2012

Summary: Archive of the gentoo-pms mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.