# this makes ABI changes automatically cast those that depend on openssl via an up_trigger

spell_ok $SPELL && local OLD_SPELL_VERSION="$(installed_version $SPELL)" || return 0

if [ "${VERSION/[a-z]*/}" != "${OLD_SPELL_VERSION/[a-z]*/}" ] || \
   [ "${VERSION%.*}" != "${OLD_SPELL_VERSION%.*}" ]; then
  for each in $(show_up_depends $SPELL 1); do
    up_trigger $each cast_self
  done
fi &&

if spell_ok libressl; then
  for each in $(show_up_depends libressl 1); do
    up_trigger $each cast_self
  done
fi
