Better detecting of masked tilde packages
authorMike Pagano <mpagano@gentoo.org>
Sun, 6 Feb 2011 02:15:39 +0000 (21:15 -0500)
committerMike Pagano <mpagano@gentoo.org>
Sun, 6 Feb 2011 02:15:39 +0000 (21:15 -0500)
portpeek

index 93efcc0e2b5b024d469b202643773933f98492a5..3ed96f92d59ba6fa64bdc9cb1194193e73ebea5a 100755 (executable)
--- a/portpeek
+++ b/portpeek
@@ -16,7 +16,7 @@
 
 __author__ = "Michael Pagano"
 __email__ = "mpagano@gentoo.org"
-__version__ = "2.0.9"
+__version__ = "2.0.10"
 __productname__ = "portpeek"
 __description__ = "Displays user unmasked ebuilds and installable options from the portage tree"
 
@@ -614,9 +614,9 @@ def check_tilde_masked_pkg(package_name, filename):
                 print_output(debug,portage.output.blue("check_tilde_maskd_pkg: current_package is " + str(current_package.cpv) + " and pkgmask is " + str(pkgmask)))
 
                 if "package.unmask" in filename:
-                    if (pkgmask >= 3):
+                    if (is_pkg_package_masked(str(current_package.cpv))):
                         # package was found as masked
-                        return 
+                        return
                     else:
                         # package is not masked
                         unmask_list.append(str(current_package.cpv))