From 4720eadffd58ac3c799a2f79f8623c48558bb32a Mon Sep 17 00:00:00 2001 From: fuzzyray Date: Tue, 18 Sep 2007 21:51:24 +0000 Subject: Apply patch from Carlo Marcelo Arenas Belon to fix incorrect display of masking status in equery list command. (Bug #188678) svn path=/; revision=443 --- trunk/src/equery/equery | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'trunk/src') diff --git a/trunk/src/equery/equery b/trunk/src/equery/equery index f73f724..0639cc2 100755 --- a/trunk/src/equery/equery +++ b/trunk/src/equery/equery @@ -1417,10 +1417,11 @@ class CmdListPackages(Command): # if "package.mask" in maskreasons: pkgmask = pkgmask + 3 keywords = pkg.get_env_var("KEYWORDS").split() - if "~" + gentoolkit.settings["ARCH"] in keywords: - pkgmask = pkgmask + 1 - elif "-*" in keywords or "-" + gentoolkit.settings["ARCH"] in keywords: - pkgmask = pkgmask + 2 + if gentoolkit.settings["ARCH"] not in keywords: + if "~" + gentoolkit.settings["ARCH"] in keywords: + pkgmask = pkgmask + 1 + elif "-" + gentoolkit.settings["ARCH"] in keywords or "-*" in keywords: + pkgmask = pkgmask + 2 return pkgmask def _generic_print(self, header, exclude, matches, rx, status): -- cgit v1.2.3