diff options
Diffstat (limited to 'pym/gentoolkit/equery/list_.py')
-rw-r--r-- | pym/gentoolkit/equery/list_.py | 26 |
1 files changed, 7 insertions, 19 deletions
diff --git a/pym/gentoolkit/equery/list_.py b/pym/gentoolkit/equery/list_.py index 32c7dc3..84b1a7e 100644 --- a/pym/gentoolkit/equery/list_.py +++ b/pym/gentoolkit/equery/list_.py @@ -185,24 +185,12 @@ def main(input_args): # for pkg in matches: - if CONFIG['verbose']: - pkgstr = PackageFormatter( - pkg, - do_format=True, - custom_format=QUERY_OPTS["package_format"] - ) - else: - pkgstr = PackageFormatter( - pkg, - do_format=False, - custom_format=QUERY_OPTS["package_format"] - ) - - if (QUERY_OPTS["in_installed"] and - not QUERY_OPTS["in_porttree"] and - not QUERY_OPTS["in_overlay"]): - if not 'I' in pkgstr.location: - continue + pkgstr = PackageFormatter( + pkg, + do_format=CONFIG['verbose'], + custom_format=QUERY_OPTS["package_format"] + ) + if (QUERY_OPTS["in_porttree"] and not QUERY_OPTS["in_overlay"]): if not 'P' in pkgstr.location: @@ -215,7 +203,7 @@ def main(input_args): if QUERY_OPTS["include_mask_reason"]: ms_int, ms_orig = pkgstr.format_mask_status() - if not ms_int > 2: + if ms_int < 3: # ms_int is a number representation of mask level. # Only 2 and above are "hard masked" and have reasons. continue |