Skip to content

Commit ba180be

Browse files
committed
Fix package_stats for Rocq
1 parent 50a9d19 commit ba180be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ocamlorg_package/lib/packages_stats.ml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ type t = {
1818

1919
let package_of_path p =
2020
match Fpath.segs p with
21-
| "packages" :: namespace :: name_version :: _ ->
21+
| "released" :: "packages" :: namespace :: name_version :: _ ->
2222
OpamPackage.of_string_opt name_version
2323
|> Option.map (fun pkg -> (namespace, pkg))
2424
| _ -> None
2525

2626
let package_namespace_of_path p =
2727
match Fpath.segs p with
28-
| "packages" :: namespace :: _ -> Some namespace
28+
| "released" :: "packages" :: namespace :: _ -> Some namespace
2929
| _ -> None
3030

3131
(** Make a {!package_stat} from a {!OpamPackage.t}. *)

0 commit comments

Comments
 (0)