public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Request to add ~> atom prefix operator on Portage.
@ 2015-09-14  4:35 konsolebox
  2015-09-14  5:38 ` Daniel Campbell
                   ` (4 more replies)
  0 siblings, 5 replies; 54+ messages in thread
From: konsolebox @ 2015-09-14  4:35 UTC (permalink / raw
  To: gentoo-dev

Many times we need to match packages like this: something-1.0.2a.*

But that expression is not allowed with ~ (only targets revisions) and
neither with * (.*) is invalid.

So my suggestion is to add ~> as another operator.  With it we can
have an expression like '~>pkg-1.0.2a' and it would be equivalent to
'>=pkg-1.0.2a' and '<pkg-1.0.2b'.  Another expression like
'~>pkg-1.0.2' would be equivalent to '>=pkg-1.0.2' and '<pkg-1.0.3'.

If comparing by arithmetic operations turns out to be difficult (i.e.
predicting the next version to compare against), then maybe we could
just compare it with pattern(s).  For example if we have 'pkg-1.02a'
as the base version, then the valid versions we need to get are
'pkg-1.02a', 'pkg-1.02a.*' and
'pkg-1.02a(_(alpha|beta|pre|p)|-r)[0-9]+'.

The operator is copied from Ruby's Gemfile so it would be familiar to
anyone developing Ruby as well.


^ permalink raw reply	[flat|nested] 54+ messages in thread

end of thread, other threads:[~2015-09-16  7:50 UTC | newest]

Thread overview: 54+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-14  4:35 [gentoo-dev] Request to add ~> atom prefix operator on Portage konsolebox
2015-09-14  5:38 ` Daniel Campbell
2015-09-14  6:15   ` konsolebox
2015-09-14  5:47 ` Kent Fredric
2015-09-14  5:51 ` Ulrich Mueller
2015-09-14  6:09   ` konsolebox
2015-09-14  6:19     ` Kent Fredric
2015-09-14  6:43       ` konsolebox
2015-09-14  6:52       ` Ulrich Mueller
2015-09-14  6:59         ` Kent Fredric
2015-09-14  8:01           ` Ulrich Mueller
2015-09-14  8:14             ` Kent Fredric
2015-09-14  9:04               ` Ulrich Mueller
2015-09-14  9:15                 ` Kent Fredric
2015-09-14 11:38                   ` Ulrich Mueller
2015-09-14 11:45                     ` Kent Fredric
2015-09-14 11:53                       ` Ulrich Mueller
2015-09-14  9:21                 ` Kent Fredric
2015-09-14 11:46                   ` Ulrich Mueller
2015-09-14 11:48                     ` hasufell
2015-09-14 13:11                       ` Ulrich Mueller
2015-09-14 19:56                         ` Andreas K. Huettel
2015-09-14 20:19                           ` hasufell
2015-09-14 20:53                             ` Zac Medico
2015-09-14 20:56                             ` Ulrich Mueller
2015-09-14 20:52                           ` Ulrich Mueller
2015-09-14 16:38                     ` Ciaran McCreesh
2015-09-14  8:18             ` Kent Fredric
2015-09-14  8:22             ` konsolebox
2015-09-14  8:28               ` Kent Fredric
2015-09-14  8:32                 ` konsolebox
2015-09-14  8:41                   ` konsolebox
2015-09-14 13:53                     ` Manuel Rüger
2015-09-15  7:01                       ` konsolebox
2015-09-14  7:58     ` [gentoo-dev] " Duncan
2015-09-14  8:16       ` konsolebox
2015-09-14  6:29 ` [gentoo-dev] " Paweł Hajdan, Jr.
2015-09-14  7:13   ` konsolebox
2015-09-14 18:07     ` Paweł Hajdan, Jr.
2015-09-14 18:54       ` Ulrich Mueller
2015-09-16  7:35         ` Kent Fredric
2015-09-15  7:21       ` konsolebox
2015-09-15  8:38         ` Ulrich Mueller
2015-09-15  8:54           ` konsolebox
2015-09-15  9:15             ` Ulrich Mueller
2015-09-15  9:31               ` Ulrich Mueller
2015-09-16  7:29                 ` konsolebox
2015-09-16  7:40                   ` konsolebox
2015-09-16  7:50                     ` Kent Fredric
2015-09-15 12:18             ` Ciaran McCreesh
2015-09-16  7:32               ` konsolebox
2015-09-14 18:12 ` Kristian Fiskerstrand
2015-09-15  7:26   ` konsolebox
2015-09-15  7:47     ` konsolebox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox