HintCollection::search(): fix "onlyactive" logic

Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>
master
Adam D. Barratt 13 years ago
parent ba0cdde697
commit 92eca3958c

@ -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)

Loading…
Cancel
Save