File tree Expand file tree Collapse file tree 1 file changed +16
-17
lines changed Expand file tree Collapse file tree 1 file changed +16
-17
lines changed Original file line number Diff line number Diff line change @@ -297,29 +297,28 @@ let sync_exec f l =
297
297
let l = List. map f l in
298
298
List. iter (fun f -> f () ) l
299
299
300
- let org_branch nm =
300
+ let branch nm =
301
301
if is_forked nm then
302
- ( " ocaml-wasm"
303
- , match nm with
304
- | " async_js"
305
- | " base"
306
- | " core"
307
- | " core_kernel"
308
- | " core_unix"
309
- | " time_now"
310
- | "zarith_stubs_js" -> Some " js-strings"
311
- | _ -> Some " wasm-v0.18" )
302
+ match nm with
303
+ | " async_js"
304
+ | " base"
305
+ | " core"
306
+ | " core_kernel"
307
+ | " core_unix"
308
+ | " time_now"
309
+ | "zarith_stubs_js" -> Some " js-strings"
310
+ | _ -> Some " wasm-v0.18"
312
311
else
313
- " janestreet " , None
312
+ None
314
313
315
314
let pin nm =
316
- let _, branch = org_branch nm in
315
+ let branch = Option. get (branch nm) in
317
316
exec_async
318
317
(Printf. sprintf
319
- " opam pin add -n %s https://github.com/ocaml-wasm/%s.git%s"
318
+ " opam pin add -n %s https://github.com/ocaml-wasm/%s.git# %s"
320
319
nm
321
320
nm
322
- ( match branch with Some b -> " # " ^ b | None -> " " ) )
321
+ branch)
323
322
324
323
let pin_packages () = sync_exec pin (StringSet. elements do_pin)
325
324
@@ -375,7 +374,7 @@ let () =
375
374
sync_exec (fun () -> exec_async " opam install uri --deps-only" ) [ () ];
376
375
sync_exec
377
376
(fun nm ->
378
- let org, branch = org_branch nm in
377
+ let branch = branch nm in
379
378
let commit =
380
379
if is_forked nm
381
380
then None
@@ -392,7 +391,7 @@ let () =
392
391
nm
393
392
(Printf. sprintf
394
393
" https://github.com/%s/%s"
395
- org
394
+ ( if is_forked nm then " ocaml-wasm " else " janestreet " )
396
395
nm))
397
396
(StringSet. elements (StringSet. diff js omitted_js))
398
397
You can’t perform that action at this time.
0 commit comments