From 92eca3958c4369afbb0df993f09cf2c8b7acec83 Mon Sep 17 00:00:00 2001 From: "Adam D. Barratt" Date: Thu, 10 Nov 2011 12:50:01 +0000 Subject: [PATCH] HintCollection::search(): fix "onlyactive" logic Signed-off-by: Adam D. Barratt --- hints.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hints.py b/hints.py index 1f72143..2f0c490 100644 --- a/hints.py +++ b/hints.py @@ -26,7 +26,7 @@ class HintCollection: return [ hint for hint in self._hints if (type is None or type == hint.type) and - (onlyactive or hint.active) and + (hint.active or not onlyactive) and (package is None or package == hint.packages[0].package) and (version is None or version == hint.packages[0].version) and (removal is None or removal == hint.packages[0].is_removal)