Skip to content

Commit

Permalink
Apply changes from ocaml/opam#6249
Browse files Browse the repository at this point in the history
  • Loading branch information
kit-ty-kate committed Oct 17, 2024
1 parent 9ed1587 commit 6dac1e9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/tests/utils.ml
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,14 @@ let read_config path =
let opam_root = path / "opam" in
let repo_root = path / "repo" in
let repo_url, _repo_trust =
OpamStd.Option.default (OpamUrl.empty, None)
(OpamRepositoryName.Map.find repo_name repos)
OpamRepositoryName.Map.find repo_name repos
in
let contents_root = path / "contents" in
{ repo_name; repo_root; repo_url; opam_root; contents_root }

let write_repo_config path repo_name repo_url =
OpamFile.Repos_config.write (repos_config_file path)
(OpamRepositoryName.Map.singleton repo_name (Some repo_url))
(OpamRepositoryName.Map.singleton repo_name repo_url)


(** Init *)
Expand Down

0 comments on commit 6dac1e9

Please sign in to comment.