Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
equery inconsistancies
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
pr0ph3t
Tux's lil' helper
Tux's lil' helper


Joined: 30 Sep 2003
Posts: 77

PostPosted: Mon Jan 10, 2005 6:07 pm    Post subject: equery inconsistancies Reply with quote

hello!

i'm having trouble trying to get the output from equery i'd like to see. i'm trying to list all the gentoo-sources versions installed and the portage tree. if i do:

Code:
equery list -i  gentoo-sources


i see the output:

Code:

[ Searching for package 'gentoo-sources' in all categories among: ]
 * installed packages
[I--] [M ] sys-kernel/gentoo-sources-2.4.26-r10 (2.4.26-gentoo-r10)
[I--] [M ] sys-kernel/gentoo-sources-2.4.26-r11 (2.4.26-gentoo-r11)
[I--] [M ] sys-kernel/gentoo-sources-2.4.26-r12 (2.4.26-gentoo-r12)
[I--] [M ] sys-kernel/gentoo-sources-2.4.26-r13 (2.4.26-gentoo-r13)
[I--] [M ] sys-kernel/gentoo-sources-2.4.26-r14 (2.4.26-r14)
[I--] [M ] sys-kernel/gentoo-sources-2.4.25-r4 (2.4.25-gentoo-r4)
[I--] [M ] sys-kernel/gentoo-sources-2.4.25-r5 (2.4.25-gentoo-r5)
[I--] [M ] sys-kernel/gentoo-sources-2.4.26-r3 (2.4.26-gentoo-r3)
[I--] [M ] sys-kernel/gentoo-sources-2.4.26-r5 (2.4.26-gentoo-r5)
[I--] [M ] sys-kernel/gentoo-sources-2.4.26-r6 (2.4.26-gentoo-r6)
[I--] [M ] sys-kernel/gentoo-sources-2.4.26-r7 (2.4.26-gentoo-r7)
[I--] [M ] sys-kernel/gentoo-sources-2.4.26-r8 (2.4.26-gentoo-r8)
[I--] [M ] sys-kernel/gentoo-sources-2.4.26-r9 (2.4.26-gentoo-r9)
[I--] [  ] sys-kernel/gentoo-sources-2.4.28-r5 (2.4.28-r5)



but if i do:

Code:
equery list -i -p  gentoo-sources


i see this:

Code:

[ Searching for package 'gentoo-sources' in all categories among: ]
 * installed packages
[I--] [  ] sys-kernel/gentoo-sources-2.4.28-r5 (2.4.28-r5)
 * Portage tree (/usr/portage)
[-P-] [  ] sys-kernel/gentoo-sources-2.4.26-r15 (2.4.26-r15)
[-P-] [  ] sys-kernel/gentoo-sources-2.4.20-r31 (2.4.20-gentoo-r31)
[-P-] [  ] sys-kernel/gentoo-sources-2.4.25-r15 (2.4.25-r15)



shouldn't the list be longer or at least the same size? i'm trying to list all versions of "gentoo-sources", instsalled and not installed. what am i doing wrong?

thanks!
Back to top
View user's profile Send private message
manywele
l33t
l33t


Joined: 12 Jul 2003
Posts: 726
Location: Basking in the Zen glow of Jerry

PostPosted: Mon Jan 10, 2005 10:14 pm    Post subject: Reply with quote

You're not doing anything wrong but I don't think you can get the output you want with equery.

I pretty sure that what is happening is that the -i option finds all installed packages (probably from /var/db/pkg) but when you add the -p it restricts the output to just what is in the current portage tree. Most of your installed kernel sources are no longer in portage so the -p skips them.

Maybe you should submit a bug/feature request/patch or at least an update to the man page to make it clear how the options work together.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum