mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-11 10:31:30 +00:00
HintCollection::search(): fix "onlyactive" logic
Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>
This commit is contained in:
parent
c19f880142
commit
9ce1baad18
2
hints.py
2
hints.py
@ -26,7 +26,7 @@ class HintCollection:
|
|||||||
|
|
||||||
return [ hint for hint in self._hints if
|
return [ hint for hint in self._hints if
|
||||||
(type is None or type == hint.type) and
|
(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
|
(package is None or package == hint.packages[0].package) and
|
||||||
(version is None or version == hint.packages[0].version) and
|
(version is None or version == hint.packages[0].version) and
|
||||||
(removal is None or removal == hint.packages[0].is_removal)
|
(removal is None or removal == hint.packages[0].is_removal)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user