From: karltk Date: Mon, 27 Sep 2004 14:32:22 +0000 (-0000) Subject: Fixed hasuses. X-Git-Tag: gentoolkit-0.2.4.3~359 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=70f896add520aa39dbca06bfc3573c0ca8f75510;p=gentoolkit.git Fixed hasuses. svn path=/; revision=143 --- diff --git a/trunk/src/equery/ChangeLog b/trunk/src/equery/ChangeLog index f727099..d83bef1 100644 --- a/trunk/src/equery/ChangeLog +++ b/trunk/src/equery/ChangeLog @@ -6,6 +6,7 @@ * Fixed reference to cppv * Added import of die * Added searching header to uses + * Fixed hasuses to report properly 2004-09-08 Karl Trygve Kalleberg * Added man page rewrites by Katerina Barone-Adesi , diff --git a/trunk/src/equery/equery b/trunk/src/equery/equery index a5fa8d5..e31fc70 100755 --- a/trunk/src/equery/equery +++ b/trunk/src/equery/equery @@ -1229,13 +1229,8 @@ class CmdFindUSEs(Command): else: status = 2 - # Drop all packages without the USE flag - useflags = [] - if status == 1: - useflags = pkg.get_use_flags() - else: - useflags = pkg.get_env_var("IUSE") - + useflags = pkg.get_env_var("IUSE").split() + if query not in useflags: continue