public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Steve Long <slong@rathaus.eclipse.co.uk>
To: gentoo-dev@lists.gentoo.org
Subject: [gentoo-dev]  Re: EAPI-1 (or >1, perhaps) Proposal:  AND Dependencies
Date: Mon, 18 Jun 2007 06:19:33 +0100	[thread overview]
Message-ID: <f554mi$9vu$1@sea.gmane.org> (raw)
In-Reply-To: 20070615125642.2dcffcd7@snowflake

Ciaran McCreesh wrote:
> Luca Barbato <lu_zero@gentoo.org> wrote:
>> Ciaran McCreesh wrote:
>> > Paludis allows users to do some-cat/foo[>=4.0&<4-3] and
>> > some-cat/foo[=4.1|=4.2|=4.3] . The syntax isn't particularly pretty,
>> > but it's cleaner than requiring duplication of the cat/pkg. Combined
>> > with :slot deps it should give you everything you need.
>> 
>> Seems not bad, do you have plans to refine it before proposing it for
>> the pms?
> 
> Well, I'm happy with it like that...
> 
but as you said, it ain't pretty: what about simply replacing [] with ()?
&& to match || in portage and logical AND in C etc. seems wise too.
Allow both if you *have* to maintain backwards-compatibility, but it makes
it more like portage syntax, which folks are used to:
some-cat/foo(>=4.0&&<4.3) seems clean, for this example.

To my mind, | seems like a good second-level operator, so one could have:
cat-foo/bar(~3.6||~3.7|>=4.0&&<4.3|>=5.1) while still using the operators
everyone is used to for most things.

(& makes no sense in that context, of course.)


-- 
gentoo-dev@gentoo.org mailing list



  reply	other threads:[~2007-06-18  5:26 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-15  0:27 [gentoo-dev] EAPI-1 (or >1, perhaps) Proposal: AND Dependencies John R. Graham
2007-06-15  4:52 ` Vlastimil Babka
2007-06-15 18:18   ` John R. Graham
2007-06-15  6:28 ` Kent Fredric
2007-06-15  8:02   ` Tobias Klausmann
2007-06-15  9:33 ` Marijn Schouten (hkBst)
2007-06-15  9:54   ` Vlastimil Babka
2007-06-15 11:08   ` John R. Graham
     [not found] ` <20070615120051.4f35ea2c@snowflake>
2007-06-15 11:45   ` Luca Barbato
2007-06-15 11:56     ` Ciaran McCreesh
2007-06-18  5:19       ` Steve Long [this message]
2007-06-18  6:47         ` [gentoo-dev] " Kent Fredric
2007-06-18 22:53           ` [gentoo-dev] " Steve Long
2007-06-19  6:38             ` Kent Fredric
2007-06-22  7:35               ` [gentoo-dev] " Steve Long

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='f554mi$9vu$1@sea.gmane.org' \
    --to=slong@rathaus.eclipse.co.uk \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox