From 70f896add520aa39dbca06bfc3573c0ca8f75510 Mon Sep 17 00:00:00 2001 From: karltk Date: Mon, 27 Sep 2004 14:32:22 +0000 Subject: [PATCH] Fixed hasuses. svn path=/; revision=143 --- trunk/src/equery/ChangeLog | 1 + trunk/src/equery/equery | 9 ++------- 2 files changed, 3 insertions(+), 7 deletions(-) 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 -- 2.26.2