public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Alec Warner" <antarus@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in net-firewall/ipset: ChangeLog metadata.xml ipset-2.3.0.20070828.ebuild
Date: Wed, 7 Nov 2007 18:04:32 -0800	[thread overview]
Message-ID: <b41005390711071804k629a5dc9mc53054807d4ab2a6@mail.gmail.com> (raw)
In-Reply-To: <20071107231933.GG5516@supernova>

On 11/7/07, Donnie Berkholz <dberkholz@gentoo.org> wrote:
> On 12:06 Wed 07 Nov     , Peter Volkov wrote:
> > On Mon, 05/11/2007 в 10:03 -0800, Donnie Berkholz wrote:
> >
> > BTW, is it possible to force portage to fetch sources if they do not
> > exist in ${DISTDIR}? Also does there exist a better way to find
> > iptables sources than find version without revision:
> >
> > IPTVERINS=`echo $(best_version net-firewall/iptables) | \
> >     sed -n 's:^[^/]*/[[:alpha:]]*-\([0-9]\+\([.][0-9]\+\)*[a-z]\?\(_\(pre\|p\|beta\|alpha\|rc\)[0-9]*\)*\)\(-r[0-9]\+\)\?$:\1:p'
> >
> > and construct package name (iptables-${IPTVERINS}}.tar.bz2)?
>
> Not that I know of for fetching, but for the version, that sed seems
> awfully complex. I'd probably use bash substitution like this instead:
>
> IPTVERINS=$(best_version net-firewall/iptables)
> # Strip revision (safe, since nothing else has a hyphen followed by 'r')
> IPTVERINS=${IPTVERINS%-r*}
> # Strip category
> IPTVERINS=${IPTVERINS#*/}
>
> I previously brought up the idea of a way to access portage's
> CATEGORY/PN/PV parser from within ebuilds, but there didn't seem to be a
> whole lot of interest.

I have some code lying around that does this, I should check it in ;)

>
> Thanks,
> Donnie
> --
> gentoo-dev@gentoo.org mailing list
>
>

      reply	other threads:[~2007-11-08  2:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1Ip2rU-0003os-Bw@stork.gentoo.org>
2007-11-05 18:03 ` [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in net-firewall/ipset: ChangeLog metadata.xml ipset-2.3.0.20070828.ebuild Donnie Berkholz
2007-11-07  9:06   ` Peter Volkov
2007-11-07 23:19     ` Donnie Berkholz
2007-11-08  2:04       ` Alec Warner [this message]

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=b41005390711071804k629a5dc9mc53054807d4ab2a6@mail.gmail.com \
    --to=antarus@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