# MYVERSION=3.1.0
# COMPATIBLE_VERSIONS='^(3\.1\.[0-9]+)$'
# Template for development versions
-MYVERSION=3.1.0+toward_3.1.1_20141203202946
+MYVERSION=3.1.0+toward_3.1.1_20141203232814
COMPATIBLE_VERSIONS='^(3\.0\.[0-9]+\+toward_3\.1\.[0-9]+_[0-9]+|3\.0\.[0-9]+\+toward_3\.0\.[0-9]+_[0-9]+|3\.1\.[0-9]+)$'
MYPREFIX=`dirname "\`dirname \"$0\"\`" | sed 's|/bin$||'`
MYPREFIX=${MYPREFIX:-/usr/local}
reinstall_register_stage_complete BUILD
fi
reinstall_deregister_stage in_build
+ if reinstall_chk_stage in_stage
+ then
+ message_echo "(Restarting the previously terminated staging process...)"
+ flag_restarted_stage=yes
+ else
+ reinstall_register_stage in_stage
+ flag_restarted_stage=no
+ fi
+ if ! reinstall_chk_stage_complete STAGE
+ then
+ if ! reinstall_make stage
+ then
+ reinstall_restore_conflicts "$REINSTALL_ORIGIN"
+ reinstall_restore_if_temporarily_deinstalled
+ reinstall_errproc 'STAGE operations'
+ temp_set_msg_current_stage "${_MSG_CURRENT_STAGE_general}"
+ return
+ fi
+ reinstall_register_stage_complete STAGE
+ fi
+ reinstall_deregister_stage in_stage
if reinstall_chk_stage in_install
then
message_echo "(Restarting the previously terminated installation process...)"
fi
reinstall_register_stage_complete BEFOREDEINSTALL
fi
- pkgsys_get_conflicting_installed_pkgs install "$REINSTALL_ORIGIN" \
- | reinstall_backup_and_delete_conflicts
reinstall_deinstall
+ message_echo "(Checking installation conflict...)"
+ stagedir=`database_query_get_makevar_val "$REINSTALL_ORIGIN" STAGEDIR`
+ {
+ ( set -e
+ cd "$stagedir"
+ find . -not -type d
+ ) | sed 's|^\.||' | while read filepath
+ do
+ [ -e "$filepath" ] || continue
+ pkg_which "$filepath"
+ done
+ pkgsys_get_conflicting_installed_pkgs install "$REINSTALL_ORIGIN"
+ } | sort -u | reinstall_backup_and_delete_conflicts
if ! reinstall_chk_stage_complete INSTALL
then
if ! reinstall_chk_stage FAILED_INSTALL