If the 't' (check tilde) option is not selected, v2.1.29
authorMike Pagano <mpagano@gentoo.org>
Wed, 20 May 2020 18:06:41 +0000 (14:06 -0400)
committerMike Pagano <mpagano@gentoo.org>
Wed, 20 May 2020 18:06:41 +0000 (14:06 -0400)
do not try to intepret the line

Bug: https://bugs.gentoo.org/693670

portpeek

index 33ef148bfde017dd167f0a2b93cff7799b0fb7f9..54c071e2c296055a877b5030008e0ea00ee8ef33 100755 (executable)
--- a/portpeek
+++ b/portpeek
@@ -16,7 +16,7 @@
 
 __author__ = "Michael Pagano"
 __email__ = "mpagano@gentoo.org"
-__version__ = "2.1.28"
+__version__ = "2.1.29"
 __productname__ = "portpeek"
 __description__ = "Displays user unmasked ebuilds and installable options from the portage tree"
 
@@ -224,6 +224,10 @@ def parse_line(line, filename):
             if check_pkg[0] in "~":
                 check_tilde_masked_pkg(check_pkg, filename)
                 return
+        else:
+            # if it has a tilde, and we are not checking tilde packages, exit function
+            if check_pkg[0] in "~":
+                return
 
         # determine if the package exists
         try: