Skip to content

Commit

Permalink
Show the opam-repo revision in the opam logs output
Browse files Browse the repository at this point in the history
Fixes #16

Signed-off-by: Anil Madhavapeddy <[email protected]>
  • Loading branch information
avsm committed Jun 12, 2018
1 parent c170d17 commit 99655d7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/opam-ci/user.ml
Original file line number Diff line number Diff line change
Expand Up @@ -268,14 +268,15 @@ let render_package_logs ppf name version metadata =
let open Obi.Index in
let p = metadata.params in
(let open Fmt in
pf ppf "@\n%a %a %s %s %s (%a):@\n"
pf ppf "@\n%a %a %s %s %s (%a) (opam-repository %s):@\n"
(styled `Bold (styled `Blue string))
"====>"
(styled `Bold string)
(name ^ "." ^ version)
(OV.to_string p.ov)
(D.human_readable_string_of_distro p.distro)
(OV.string_of_arch p.arch) pp_result metadata.build_result) ;
(OV.string_of_arch p.arch) pp_result metadata.build_result
(String.with_range ~len:8 metadata.rev)) ;
match metadata.log with
| [] -> Fmt.(pf ppf "<no logs available>@\n")
| logs ->
Expand Down

0 comments on commit 99655d7

Please sign in to comment.