Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update opam repository man doc #4435

Merged
merged 4 commits into from
Jan 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions master_changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ users)

## Repository
* When several checksums are specified, instead of adding in the cache only the archive by first checksum, name by best one and link others to this archive [#4696 rjbou]
* Update opam repository man doc regarding removal of the last repository in a switch [#4435 - fixes #4381]

## Lock
*
Expand Down
7 changes: 4 additions & 3 deletions src/client/opamCommands.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2027,9 +2027,10 @@ let repository cli =
enable a repository only to install its switches, you may be \
looking for $(b,opam switch create --repositories=REPOS).";
cli_original, "remove", `remove, ["NAME..."],
"Unselects the given repositories so that they will not be used to get \
package definitions anymore. With $(b,--all), makes opam forget about \
these repositories completely.";
"Removes the given repositories from the selected scopes (the default scope is the current switch, \
see $(b,--this-switch)). Repositories are removed completely with $(b,--all-switches). \
If the last repository is removed in the current switch scope, then the selection of \
repositories is restored to the default selection ($(b,opam list --set-default)).";
cli_original, "set-repos", `set_repos, ["NAME..."],
"Explicitly selects the list of repositories to look up package \
definitions from, in the specified priority order (overriding previous \
Expand Down