- Replace dependents=$(pkg info -qOr $base) to dependents=$(pkg query "%ro" $base)