Apply patch from Carlo Marcelo Arenas Belon to fix incorrect display of masking statu...
authorfuzzyray <fuzzyray@gentoo.org>
Tue, 18 Sep 2007 21:51:24 +0000 (21:51 -0000)
committerfuzzyray <fuzzyray@gentoo.org>
Tue, 18 Sep 2007 21:51:24 +0000 (21:51 -0000)
svn path=/; revision=443

trunk/ChangeLog
trunk/src/equery/equery

index 105cdb6695054d3d249f2952e3db9bab31d0d06e..f9f6f3ccd533c7874ded60ee5aaf76a331801096 100644 (file)
@@ -1,3 +1,7 @@
+2007-09-18: Paul Varner <fuzzyray@gentoo.org>
+       * equery: Apply patch from Carlo Marcelo Arenas Belon to fix incorrect
+       display of masking status in list command. (Bug #188678)
+
 2007-09-12: Paul Varner <fuzzyray@gentoo.org>
        * eclean: Fix processing of the long arguments to work correctly. (Bug
        #192345)
index f73f7248ee7f4da277bf3262344e7d949f9ab465..0639cc2a989eebd28a48b4f90f30e126bb1e6b4a 100755 (executable)
@@ -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):