Skip to content

Commit

Permalink
remove unused opam_remove_broken_package functionality
Browse files Browse the repository at this point in the history
Reviewed By: skcho

Differential Revision:
D62177499

Privacy Context Container: L1208441

fbshipit-source-id: 24329c2065631ad468fc43ce0e3d522d9e7df6e6
  • Loading branch information
jvillard authored and facebook-github-bot committed Sep 4, 2024
1 parent ccc2891 commit 69683e3
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions scripts/opam_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,3 @@ opam_switch_create_if_needed () {
}

opam_require_version_2

# removes packages that cannot be found by ocamlfind
opam_remove_broken_package () {
local pkg="$1"
if ! ocamlfind query "${pkg}"; then
echo "ocamlfind cannot find ${pkg} package. Removing the package..."
opam remove "${pkg}" || true
fi
}

0 comments on commit 69683e3

Please sign in to comment.