Bug 244315 - [patch] pkg(8) v1.13.1 fetch does not honor the -o (output dir) option
Summary: [patch] pkg(8) v1.13.1 fetch does not honor the -o (output dir) option
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-22 16:18 UTC by Ian Lepore
Modified: 2020-02-22 16:29 UTC (History)
0 users

See Also:


Attachments
patch to fix bug in handling pkg fetch -o <dir> (455 bytes, text/plain)
2020-02-22 16:18 UTC, Ian Lepore
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Lepore freebsd_committer freebsd_triage 2020-02-22 16:18:47 UTC
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.
Comment 1 Ian Lepore freebsd_committer freebsd_triage 2020-02-22 16:29:45 UTC
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