[gentoo-portage-dev] Re: querying whether pkg is installed with version X or upwards (atom syntax) (re-post)

2008-03-26 Thread Amit Dor-Shifer
reposting, hoping for a reply this time.
Thanks,
Amit

Amit Dor-Shifer wrote:
 emerge features syntax for installing a package according to certain
 bounds. This is referred to in the manpage as atom specification.

 I'm wondering whether equery has the same feature for querying. E.G: I'd
 like to be able to ask:

 equery l '=app-misc/my-pkg-1.1'

 I'd expect the listing to be empty when my-pkg is not installed, or is
 installed by of version less than 1.1.

 Thanks,

 Amit

   
-- 
gentoo-portage-dev@lists.gentoo.org mailing list



Re: [gentoo-portage-dev] Re: querying whether pkg is installed with version X or upwards (atom syntax) (re-post)

2008-03-26 Thread Marius Mauch
On Wed, 26 Mar 2008 12:07:13 +0200
Amit Dor-Shifer [EMAIL PROTECTED] wrote:

 reposting, hoping for a reply this time.
 Thanks,
 Amit
 
 Amit Dor-Shifer wrote:
  emerge features syntax for installing a package according to certain
  bounds. This is referred to in the manpage as atom specification.
 
  I'm wondering whether equery has the same feature for querying.
  E.G: I'd like to be able to ask:
 
  equery l '=app-misc/my-pkg-1.1'
 
  I'd expect the listing to be empty when my-pkg is not installed, or
  is installed by of version less than 1.1.

Well, most equery subcommands support the same atom syntax, just 'list'
and 'size' apparently don't implement it, as those support regular
expressions instead.

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