Gentoo Archives: gentoo-commits

From: "Paul Varner (fuzzyray)" <fuzzyray@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoolkit r488 - trunk/src/equery
Date: Fri, 25 Apr 2008 15:47:50
Message-Id: E1JpQ9L-00022i-TU@stork.gentoo.org
1 Author: fuzzyray
2 Date: 2008-04-25 15:47:47 +0000 (Fri, 25 Apr 2008)
3 New Revision: 488
4
5 Modified:
6 trunk/src/equery/equery
7 Log:
8 Enhance equery check to check all installed packages if no package argument is present. (Bug #217070)
9
10 Modified: trunk/src/equery/equery
11 ===================================================================
12 --- trunk/src/equery/equery 2008-04-23 20:05:07 UTC (rev 487)
13 +++ trunk/src/equery/equery 2008-04-25 15:47:47 UTC (rev 488)
14 @@ -921,7 +921,7 @@
15 else:
16 query = x
17
18 - if need_help or query == "":
19 + if need_help:
20 print_info(0, self.longHelp())
21 sys.exit(-1)
22
23 @@ -933,8 +933,13 @@
24 def perform(self, args):
25 (query, opts) = self.parseArgs(args)
26
27 - matches = gentoolkit.find_packages(query, True)
28 + if query == "":
29 + matches=gentoolkit.find_all_installed_packages()
30 + else:
31 + matches = gentoolkit.find_packages(query, True)
32
33 + matches = gentoolkit.sort_package_list(matches)
34 +
35 for pkg in matches:
36 if not pkg.is_installed():
37 continue
38
39 --
40 gentoo-commits@l.g.o mailing list