mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-02-10 22:17:36 +00:00
HintCollection::search(): fix "onlyactive" logic
Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>
This commit is contained in:
parent
ba0cdde697
commit
92eca3958c
2
hints.py
2
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user