Rework use flag check. Bump version.
authorMike Pagano <mpagano@gentoo.org>
Wed, 10 Jul 2013 20:24:18 +0000 (16:24 -0400)
committerMike Pagano <mpagano@gentoo.org>
Wed, 10 Jul 2013 20:24:18 +0000 (16:24 -0400)
portpeek

index 1fd3f026fe00c60f0e1814f8d9a46173663fc270..5bc8515dd02a67d7b45dcc46e2baa25830630962 100755 (executable)
--- a/portpeek
+++ b/portpeek
@@ -16,7 +16,7 @@
 
 __author__ = "Michael Pagano"
 __email__ = "mpagano@gentoo.org"
-__version__ = "2.1.8"
+__version__ = "2.1.9"
 __productname__ = "portpeek"
 __description__ = "Displays user unmasked ebuilds and installable options from the portage tree"
 
@@ -871,11 +871,20 @@ def check_useflags_all_versions(pkgs, line, check_pkgs):
         if (len(line) <= 0):
             return
 
-        iuse = get_useflags(package)
+        list2 = get_useflags(package)
+
+        for uf in list2:
+            print_output(debug,portage.output.blue(("use found " + uf)))
+        iuse_string = package.use()
+        iuse = iuse_string.split(" ")
+
+        for uflag in list2:
+            iuse.append(uflag)
+
+        for iuse_item in iuse:
+            print_output(debug,portage.output.blue(("iuse_item is " + iuse_item)))
 
-        #for iuse_item in iuse:
-        #    print_output(debug,portage.output.blue(("iuse_item is " + iuse_item)))
-    
         useflags_fromfile = line.replace("\t", " ").split(" ")
 
         #for useflags_fromfile_item in useflags_fromfile: