Skip to content

Commit

Permalink
opamfile-loc var: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
rjbou committed Oct 23, 2020
1 parent 0c61d8a commit bf6978a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/state/opamPackageVar.ml
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,8 @@ let resolve st ?opam:opam_arg ?(local=OpamVariable.Map.empty) v =
| "dev", Some opam -> Some (bool (is_dev_package st opam))
| "build-id", Some opam -> OpamStd.Option.map string (build_id st opam)
| "opamfile-loc", Some opam ->
(* Opamfile path is retrieved from overlay directory for pinned packages,
or from temporary repository in /tmp *)
let repos_roots reponame =
match Hashtbl.find st.switch_repos.repos_tmp reponame with
| lazy repo_root -> repo_root
Expand Down

0 comments on commit bf6978a

Please sign in to comment.