continue
elif line.find("#") >= 0:
# found '#' remove comment
+ if (skipFile(line,filename)):
+ return
line = line[0:line.find("#")]
line = line.strip()
if len(line) <= 0:
if (filedescriptor != None):
filedescriptor.close()
+# skip the file if portpeek-skip found in a comment
+# you can put this in the middle of a file and it will
+#skip all entrie below it, this is useful to speed things
+#up by not checking ~kde versions, for example
+def skipFile (line, filename):
+ if ( (line == None) or (filename == None)):
+ return False
+
+ if line.find("portpeek-skip") >= 0:
+ return True
+
+ return False
+
# parse the package.use file and look for packages
# not installed
def parse_package_use(line, filename):
displays the equery version
.PP
+.SH "OTHER OPTIONS"
+Putting the words "portpeek-skip" with or without quotes on a comment line will make portpeek skip the rest of the file. This is useful, for example, if one has a separate KDE keywords file with many lines of the form: ~kde-base/kde-program. These tend to take awhile to process and might be a file you don't want analyzed for every portpeek call.
+
.SH "EXAMPLES"
portpeek \-\-changes-only \-\-keyword \- list all packages with a potential upgrade located in package.keywords or package.accept_keywords