From b73907bf914892ccf5d7980dc8ac7fe1c2552c47 Mon Sep 17 00:00:00 2001 From: fuzzyray Date: Fri, 25 Apr 2008 15:47:47 +0000 Subject: [PATCH] Enhance equery check to check all installed packages if no package argument is present. (Bug #217070) svn path=/; revision=488 --- trunk/src/equery/equery | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/trunk/src/equery/equery b/trunk/src/equery/equery index 7590ef7..ba3634a 100755 --- a/trunk/src/equery/equery +++ b/trunk/src/equery/equery @@ -921,7 +921,7 @@ class CmdCheckIntegrity(Command): else: query = x - if need_help or query == "": + if need_help: print_info(0, self.longHelp()) sys.exit(-1) @@ -933,7 +933,12 @@ class CmdCheckIntegrity(Command): def perform(self, args): (query, opts) = self.parseArgs(args) - matches = gentoolkit.find_packages(query, True) + if query == "": + matches=gentoolkit.find_all_installed_packages() + else: + matches = gentoolkit.find_packages(query, True) + + matches = gentoolkit.sort_package_list(matches) for pkg in matches: if not pkg.is_installed(): -- 2.26.2