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.