Skip to content

Commit 772d4a6

Browse files
authored
reads correctly unqualified system names (#1438)
This is a minor bug fix, that enables proper reading of unqualified system names in Primus, so that `Primus.System.Repository.get ~package:"bap" "foo:xxxx` gets `foo:xxx` not `bap:foo\:xxx`.
1 parent ccdf4f4 commit 772d4a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/bap_primus/bap_primus_system.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ module Repository = struct
5353
| None -> invalid_argf "Unknown system %s" (Name.show name) ()
5454

5555
let get ?package name =
56-
require @@ Name.create ?package name
56+
require @@ Name.read ?package name
5757

5858
let find = Hashtbl.find self
5959

0 commit comments

Comments
 (0)