Skip to content

Commit

Permalink
fix install with no package given
Browse files Browse the repository at this point in the history
  • Loading branch information
rjbou committed Nov 2, 2021
1 parent 863836f commit 160772c
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions depext.ml
Original file line number Diff line number Diff line change
Expand Up @@ -451,18 +451,18 @@ let main print_flags list short
opam_packages @ toreinstall
in
if opam_packages <> [] then
if update_arg then
(match run_opam ("update" :: "--depexts" :: opam_run_args) with
| Unix.WEXITED 0 ->
Printf.eprintf "# OS package update successful\n%!"
| _ -> fatal_error "OS package update failed");
let opam_cmdline =
let opam_install =
"install" :: opam_packages @ opam_install_args
in
if install_arg then opam_install else opam_install @ ["--depext-only"]
in
ignore (exec_opam opam_cmdline))
(if update_arg then
(match run_opam ("update" :: "--depexts" :: opam_run_args) with
| Unix.WEXITED 0 ->
Printf.eprintf "# OS package update successful\n%!"
| _ -> fatal_error "OS package update failed");
let opam_cmdline =
let opam_install =
"install" :: opam_packages @ opam_install_args
in
if install_arg then opam_install else opam_install @ ["--depext-only"]
in
ignore (exec_opam opam_cmdline)))
else
(let installed = get_installed_packages os_packages in
let os_packages =
Expand Down

0 comments on commit 160772c

Please # to comment.