Skip to content

Commit

Permalink
Fix GitHub issue #38: Cleaning out stale ports ... does not work
Browse files Browse the repository at this point in the history
The cause of this issue was that pkg-1.19.1 broke previously valid
usages of "pkg query -e" with additional options or parameters.
  • Loading branch information
stesser committed May 5, 2023
1 parent f273c91 commit e86e035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion portmaster
Original file line number Diff line number Diff line change
Expand Up @@ -2070,7 +2070,7 @@ fi
if [ -n "$CLEAN_STALE" ]; then
[ -z "$no_del_list" ] && export no_del_list=':'

stale_ports=`$PKG_CMD query -ae '%a = 1' '%?r %n-%v' | awk '/^0 / { print \$2 }'`
stale_ports=`$PKG_CMD query -e '%a = 1 && %?r == 0' '%n-%v'`
for file in $stale_ports; do
iport="${file%/+REQUIRED_BY}" ; iport=${iport#$pdb/}

Expand Down

0 comments on commit e86e035

Please sign in to comment.