# libtool 1.5.26 -> 2.2.6a
# libltdl.so.3 -> libltdl.so.7
# "cast -c libgphoto2" fails, libgphoto2 must be dispelled

if spell_ok $SPELL; then
  OLD_SPELL_VERSION="$(installed_version $SPELL)"
  if test "$OLD_SPELL_VERSION" == "1.5.26" ; then

    if spell_ok libgphoto2; then
      up_trigger libgphoto2 dispel_self
      up_trigger libgphoto2 cast_self
    fi

    if spell_ok gphoto2; then
      up_trigger gphoto2 cast_self
    fi

  fi
fi
