Bug 204479

Summary: ports-mgmt/pkg use -C config file pathname exactly as given on the command line
Product: Ports & Packages Reporter: Ian Lepore <ian>
Component: Individual Port(s)Assignee: Baptiste Daroussin <bapt>
Status: Closed FIXED    
Severity: Affects Some People Keywords: patch
Priority: --- Flags: bugzilla: maintainer-feedback? (pkg)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch none

Description Ian Lepore freebsd_committer freebsd_triage 2015-11-11 22:50:20 UTC
Created attachment 163026 [details]
patch

Right now, 'pkg -C /some/file -r /some/path' ends up looking for the config file as /some/path/some/file.  Per discussion with Baptiste, this is a bug and it should use the exact value given on the command line.

The attached patch fixes it to use the exact name from the command line if given, or to look for the default filename within the rootdir given on the command line (if any) which is the historical behavior.
Comment 1 Baptiste Daroussin freebsd_committer freebsd_triage 2015-11-15 17:26:17 UTC
commit in pkg git, will be in pkg 1.6.2, thanks