Handle if multiple spaces separate use flags in package.use v2.0.20
authorMike Pagano <mpagano@gentoo.org>
Tue, 17 Apr 2012 13:13:04 +0000 (09:13 -0400)
committerMike Pagano <mpagano@gentoo.org>
Tue, 17 Apr 2012 13:13:04 +0000 (09:13 -0400)
portpeek

index 8331c47ffbc27dfb6cdbadbc1e6e8050ffc6b9fe..af185ca4ef30836335f347deb7615fd7794105ff 100755 (executable)
--- a/portpeek
+++ b/portpeek
@@ -16,7 +16,7 @@
 
 __author__ = "Michael Pagano"
 __email__ = "mpagano@gentoo.org"
-__version__ = "2.0.19"
+__version__ = "2.0.20"
 __productname__ = "portpeek"
 __description__ = "Displays user unmasked ebuilds and installable options from the portage tree"
 
@@ -443,6 +443,7 @@ def get_info(filename):
 def parse_package_use(line, filename):
 
     global info,debug
+    print_output(debug,portage.output.blue("parse_package_use: Line: " + line))
     pkgs = None
     check_pkg = ""
     pkg_length = 0
@@ -820,6 +821,8 @@ def check_useflags(package,line):
 
     valid_flag_list = []
     for original_flag in useflags_fromfile:
+        if (original_flag is None or original_flag == ""):
+            continue
         flag = original_flag
         if original_flag[0] in atom:
             flag = original_flag[1:]