Created attachment 211838 [details] patch to fix bug in handling pkg fetch -o <dir> When using 'pkg fetch -o dirname' the fetched files do not end up in the given directory, they end up only in DB_CACHEDIR. I tracked it down to an apparent typo in a variable name in repo_binary_fetch.c; patch attached.
I just learned that this bug was fixed in 1.13.2, two days after I updated to 1.13.1. So, ummm... nevermind. Fix was: https://github.com/freebsd/pkg/commit/599aff7f9f35696c5c0eb0c77b028c1e069b673a