Summary: | equery list -p doesnt show un-/stable status for installed packages | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Daniel Webert <rockoo> |
Component: | Tools | Assignee: | Portage Tools Team <tools-portage> |
Status: | RESOLVED CANTFIX | ||
Severity: | minor | CC: | h.mth |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
do gentoolkit.find_all_installed_packages look like gentoolkit.find_all_uninstalled_packages
commented 'if not self.is_installed()' clause comment if clause (v2) |
Description
Daniel Webert
2004-10-29 14:08:27 UTC
what the hell is this? this is truly bugged. it seems i got no gcc, cool. ;) anomalie ~ # equery list -i gcc [ Searching for package 'gcc' in all categories among: ] * installed packages anomalie ~ # neither shows unstable status for installed overlay packages anomalie ~ # equery list -o gcc [ Searching for package 'gcc' in all categories among: ] * installed packages [I--] [ ] sys-devel/gcc-3.4.3.20050110-r2 (3.4) [I--] [M ] sys-devel/gcc-4.0.0.20050423 (4.0) * overlay tree (/usr/local/portage) [--O] [M ] sys-devel/gcc-4.0.0.20050423 (4.0) anomalie ~ # Created attachment 58285 [details, diff]
do gentoolkit.find_all_installed_packages look like gentoolkit.find_all_uninstalled_packages
well, no idea if that patch is useful. at least it lets installed versions show
up now with: equery list gcc
anomalie ~ # equery list gcc
[ Searching for package 'gcc' in all categories among: ]
* installed packages
[I--] [ ] sys-devel/gcc-3.4.3.20050110-r2 (3.4)
[I--] [M ] sys-devel/gcc-4.0.0.20050423 (4.0)
anomalie ~ #
just for info added print( "Keywords: " + pkg.get_env_var("KEYWORDS") + " |" ) to equery for debugging cut of /usr/bin/equery def _get_mask_status(self, pkg): pkgmask = 0 if pkg.is_masked(): pkgmask = pkgmask + 3 keywords = pkg.get_env_var("KEYWORDS").split() print( "Keywords: " + pkg.get_env_var("KEYWORDS") + " |" ) if "~" + gentoolkit.settings["ARCH"] in keywords: pkgmask = pkgmask + 1 if "-*" in keywords or "-" + gentoolkit.settings["ARCH"] in keywords: pkgmask = pkgmask + 2 return pkgmask output: anomalie ~ # equery list gcc [ Searching for package 'gcc' in all categories among: ] * installed packages Keywords: | [I--] [ ] sys-devel/gcc-3.4.3.20050110-r2 (3.4) Keywords: | [I--] [M ] sys-devel/gcc-4.0.0.20050423 (4.0) anomalie ~ # so it does not get any keywords for installed packages ... but for other it does: anomalie ~ # equery list -p gcc [ Searching for package 'gcc' in all categories among: ] * installed packages Keywords: | [I--] [ ] sys-devel/gcc-3.4.3.20050110-r2 (3.4) Keywords: | [I--] [M ] sys-devel/gcc-4.0.0.20050423 (4.0) * Portage tree (/usr/portage) Keywords: x86 ppc sparc alpha | [-P-] [M ] sys-devel/gcc-2.95.3-r8 (2.95) Keywords: x86 sparc -ppc | [-P-] [M ] sys-devel/gcc-3.1.1-r2 (3.1) Keywords: x86 ppc sparc mips alpha -hppa ia64 s390 | [-P-] [M ] sys-devel/gcc-3.2.3-r4 (3.2) Keywords: -* hppa | [-P-] [M-] sys-devel/gcc-3.3.2 (3.3) Keywords: x86 mips ~sparc ~amd64 -hppa alpha -ia64 ppc64 | [-P-] [M ] sys-devel/gcc-3.3.2-r5 (3.3) Keywords: x86 mips ~sparc ~amd64 -hppa alpha ia64 ppc64 | [-P-] [M ] sys-devel/gcc-3.3.2-r7 (3.3) Keywords: ~alpha ~amd64 arm hppa -ia64 ~mips s390 sh sparc x86 | [-P-] [ ] sys-devel/gcc-3.3.5-r1 (3.3) Keywords: ~alpha ~amd64 ~arm ~hppa -ia64 ~mips ~sh sparc ~x86 | [-P-] [ ~] sys-devel/gcc-3.3.5.20050130 (3.3) Keywords: ~alpha ~amd64 arm ~hppa -ia64 ~mips sh sparc x86 | [-P-] [ ] sys-devel/gcc-3.3.5.20050130-r1 (3.3) Keywords: ~alpha ~amd64 ~arm ~hppa -ia64 ~mips ~sh ~sparc ~x86 | [-P-] [ ~] sys-devel/gcc-3.3.5.20050130-r2 (3.3) Keywords: -* ~amd64 mips ppc64 ~x86 -hppa ppc s390 | [-P-] [M ] sys-devel/gcc-3.4.1-r3 (3.4) Keywords: -* amd64 mips ppc64 ~x86 -hppa ppc ~sparc -ia64 | [-P-] [M ] sys-devel/gcc-3.4.3-r1 (3.4) Keywords: -* ~amd64 ~mips ~ppc64 ~x86 -hppa ~ppc ~sparc ~ia64 | [-P-] [M ] sys-devel/gcc-3.4.3.20050110-r1 (3.4) Keywords: -* | [-P-] [M-] sys-devel/gcc-4.0.0_beta20050416 (4.0) Keywords: -* | [-P-] [M-] sys-devel/gcc-4.0.0 (4.0) anyone any ideas? I am no python head i just hack :) Created attachment 58289 [details, diff] commented 'if not self.is_installed()' clause now it shows unstable flag for installed/overlay packages aswell. anyone of the devs may explain these patches and what they do/do wrong/bad. same for Bug #91286. however, this seems really strange to me but works somehow. heh Created attachment 58290 [details, diff]
comment if clause (v2)
hell, python checks for tabs. :)
Portage doesn't store the keywords for installed packages. Since I can't rely on the package still being in the portage tree, I am unable to reliably get the keywords for installed packages. |