K 10 svn:author V 2 se K 8 svn:date V 27 2016-07-16T07:13:24.711469Z K 7 svn:log V 472 A read lock on the sqlite file used by pkg can lock out writers for indefinite amounts of time, preventing installation or upgrade of ports with portmaster. Instead of using a pipe to read pkg query input to be consumed by a shell loop, buffer the query result in a shell variable and let the loop iterate over the contents of this variable. While here, use a call to all_pkgs_by_origin() instead of an inline versin of equivalent code. Reviewed by: tz Approved by: tz END