From: Ned Ludd <solar@gentoo.org>
To: gentoo-portage-dev@lists.gentoo.org
Subject: Re: [gentoo-portage-dev] How to extract the version/revision of an installed package?
Date: Tue, 25 Nov 2008 16:18:22 -0800 [thread overview]
Message-ID: <1227658702.18783.86.camel@hangover> (raw)
In-Reply-To: <20081125220345.GA5426@hrair.corp.631h.metaweb.com>
On Tue, 2008-11-25 at 14:03 -0800, Brian Harring wrote:
> On Tue, Nov 25, 2008 at 06:05:21PM +0200, Amit Dor-Shifer wrote:
> > Given the following:
> > # qlist -Iv sys-apps/portage
> > sys-apps/portage-2.1.4.5
> >
> > How do I safely extract the "2.1.4.5"?
> >
> > (I don't necessarily need to use qlist. Just want to get the version of an
> > installed package within a bash script)
>
> This *really* should be folded into portageq offhand- it's the initial
> step towards shifting versionator logic (yet another standalone
> parser/comparison implementation) into the PM.
>
> Counter arguements?
> ~brian
Yes. he said a bash script. portageq still takes a few seconds to load
and invokes far far to many instructions for very simple info.
The 3 execve's I just posted are still faster than one portageq call.
So.. foo.c wins again. :p
--
Ned Ludd <solar@gentoo.org>
Gentoo Linux
next prev parent reply other threads:[~2008-11-26 0:18 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-25 16:05 [gentoo-portage-dev] How to extract the version/revision of an installed package? Amit Dor-Shifer
2008-11-25 16:13 ` Andrew Gaffney
2008-11-25 16:19 ` Andrew Gaffney
2008-11-25 16:43 ` Amit Dor-Shifer
2008-11-25 17:03 ` René 'Necoro' Neumann
2008-11-26 11:13 ` Amit Dor-Shifer
2008-11-27 7:08 ` Alec Warner
2008-11-25 22:03 ` Brian Harring
2008-11-26 0:18 ` Ned Ludd [this message]
2008-11-26 0:31 ` Brian Harring
2008-11-26 1:24 ` Ned Ludd
2008-11-26 4:54 ` Zac Medico
2008-11-27 2:03 ` Brian Harring
2008-11-26 0:15 ` Ned Ludd
2008-11-26 8:29 ` Fabian Groffen
2008-11-26 9:29 ` Amit Dor-Shifer
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=1227658702.18783.86.camel@hangover \
--to=solar@gentoo.org \
--cc=gentoo-portage-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