Bug 198899

Summary: ports-mgmt/pkg: pkg-version(8) manpage does not explain the option -r vs -R
Product: Ports & Packages Reporter: elofu17
Component: Individual Port(s)Assignee: freebsd-pkg (Nobody) <pkg>
Status: Closed FIXED    
Severity: Affects Some People CC: anthony, jgh, swills
Priority: --- Keywords: patch
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Implies -R (remote repo, not /usr/ports) when using -r reponame. none

Description elofu17 2015-03-25 13:59:04 UTC
Could you please describe/explain better how -r and -R work?

Specifically, what happen if you run 'pkg version -r foobar' without any -R ?


Perhaps 'pkg version' should bail with an error message if you use the -r option without also adding the -R option?

/Elof
Comment 1 Anthony Perkins 2015-05-04 21:41:37 UTC
Created attachment 156349 [details]
Implies -R (remote repo, not /usr/ports) when using -r reponame.

If '-r foobar' cannot be used without '-R' then what about making -r imply -R automatically?  I have attached a patch that does this, and updates the man page accordingly.
Comment 2 Mathieu Arnold freebsd_committer freebsd_triage 2015-05-05 20:23:23 UTC
$ make -C /usr/ports/ports-mgmt/pkg maintainer
pkg@FreeBSD.org
Comment 3 Steve Wills freebsd_committer freebsd_triage 2017-11-22 18:45:10 UTC
I created a GH pull request for this here:

https://github.com/freebsd/pkg/pull/1638
Comment 4 Steve Wills freebsd_committer freebsd_triage 2017-12-07 19:20:50 UTC
This was committed in pkg.