@@ -1477,12 +1477,9 @@ let config cli =
1477
1477
if n <> 0 then [Printf. sprintf " %d (%s)" n label]
1478
1478
else [] in
1479
1479
print " jobs" " %d" (Lazy. force OpamStateConfig. (! r.jobs));
1480
- match OpamStateConfig. get_switch_opt () with
1481
- | None -> print " current-switch" " %s" " none set" ; `Ok ()
1482
- | Some switch ->
1483
- OpamSwitchState. with_ `Lock_none ~switch gt @@ fun state ->
1484
- print " repositories" " %s"
1485
- (let repos = state.switch_repos.repositories in
1480
+ let print_repositories name rt =
1481
+ print name " %s"
1482
+ (let repos = rt.repositories in
1486
1483
let default, nhttp, nlocal, nvcs =
1487
1484
OpamRepositoryName.Map. fold
1488
1485
(fun _ repo (dft , nhttp , nlocal , nvcs ) ->
@@ -1492,7 +1489,7 @@ let config cli =
1492
1489
then
1493
1490
OpamRepositoryName.Map. find
1494
1491
repo.repo_name
1495
- state.switch_repos .repos_definitions |>
1492
+ rt .repos_definitions |>
1496
1493
OpamFile.Repo. stamp
1497
1494
else dft
1498
1495
in
@@ -1510,6 +1507,14 @@ let config cli =
1510
1507
| Some v -> Printf. sprintf " (default repo at %s)" v
1511
1508
| None -> " "
1512
1509
);
1510
+ in
1511
+ OpamRepositoryState. with_ `Lock_none gt @@ fun rt ->
1512
+ print_repositories " all-repositories" rt;
1513
+ match OpamStateConfig. get_switch_opt () with
1514
+ | None -> print " current-switch" " %s" " none set" ; `Ok ()
1515
+ | Some switch ->
1516
+ OpamSwitchState. with_ `Lock_none ~switch gt @@ fun state ->
1517
+ print_repositories " repositories" state.switch_repos;
1513
1518
print " pinned" " %s"
1514
1519
(if OpamPackage.Set. is_empty state.pinned then " 0" else
1515
1520
let pinnings =
0 commit comments