public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Marius Mauch <genone@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev]  Re: Re: repoman - I cannot handle it...
Date: Mon, 22 Oct 2007 03:36:48 +0200	[thread overview]
Message-ID: <20071022033648.a22f18bf.genone@gentoo.org> (raw)
In-Reply-To: <ffgin4$43t$1@ger.gmane.org>

On Sun, 21 Oct 2007 23:13:58 +0100
Steve Long <slong@rathaus.eclipse.co.uk> wrote:

> Marius Mauch wrote:
> > But like name_splitted.cpp is buggy as it assumes that a dash
> > followed by a digit starts the version part. See
> >   echo ${PORTDIR}/*-*/* | tr ' ' '\n' | grep '\-[[:digit:]]'
> > for some names that break the assumption.
> >
> Whoops :S Guess I need to change that then :)
>  
> > And no clue what that cvs stuff is supposed to do, as there are no
> > packages using that naming pattern, and the (unused) cvs versioning
> > extension in portage-2.1 also uses a different pattern.
> > 
> Well the line from portage_versions.py is:
> ver_regexp = re.compile("^(cvs\\.)?(\\d+)((\\.\\d+)*)([a-z]?)((_(pre|
> p|beta
> alpha|rc)\\d*)*)(-r(\\d+))?$")
> - which means that a version begins with either a digit or cvs
> followed by digit.

Not precisely: a digit, or "cvs" followed by a dot and a digit (you got
it right in the following, but not in the code posted earlier)

> We represented this in bash (for verCompare) as:
> ver='^(cvs\.)?([0-9]+)((\.[0-9]+)*)([a-z]?)((_(pre|p|beta|alpha|rc)
> [0-9]*)* (-r([0-9]+))?$'
> 
> I think we can use:
> CPV='^(.*-.*)/(.*)-(cvs\.)?([0-9]+)((\.[0-9]+)*)([a-z]?)((_(pre|p|beta
> alpha|rc)[0-9]*)*)(-r([0-9.]+))?$'

Well, categories don't necessarily have to contain a dash (though all
official ones do currently).

Marius
-- 
gentoo-dev@gentoo.org mailing list



  reply	other threads:[~2007-10-22  1:51 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-20 12:45 [gentoo-dev] repoman - I cannot handle it Markus Rothe
2007-10-20 18:47 ` Zac Medico
2007-10-20 21:35   ` Markus Rothe
2007-10-20 21:55 ` Jeroen Roovers
2007-10-21 18:49   ` Markus Rothe
2007-10-21 21:42     ` [gentoo-dev] " Christian Faulhammer
2007-10-21 19:06   ` [gentoo-dev] " Ciaran McCreesh
2007-10-22  1:06     ` Jeroen Roovers
2007-10-22  1:18       ` Ciaran McCreesh
2007-10-21 10:44 ` [gentoo-dev] " Steve Long
2007-10-21 11:35   ` Marius Mauch
2007-10-21 13:08     ` Marijn Schouten (hkBst)
2007-10-21 14:49       ` Elias Pipping
2007-10-21 22:13     ` [gentoo-dev] " Steve Long
2007-10-22  1:36       ` Marius Mauch [this message]
2007-10-22  1:47         ` Ciaran McCreesh
2007-10-22  7:24         ` [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=20071022033648.a22f18bf.genone@gentoo.org \
    --to=genone@gentoo.org \
    --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