done
rm -f "$REINSTALL_FROMNODE_DIR/backedup_pkgfile"
database_record_success "$REINSTALL_ORIGIN"
- temp_set_msg_current_stage "${_MSG_CURRENT_STAGE_general}"
message_echo "===> Done successfully"
reinstall_register_stage_complete CLOSING_OPERATIONS_AFTER_SUCCESSFUL_INSTALL
}
} > "$REINSTALL_DBNODE_DIR/error.log"
reinstall_restore_conflicts "$REINSTALL_ORIGIN"
reinstall_restore_if_temporarily_deinstalled
- reinstall_errproc 'check of missing/too old packages'
- temp_set_msg_current_stage "${_MSG_CURRENT_STAGE_general}"
+ reinstall_skip 'Skipped because of missing/too old packages'
return 1
fi
}
echo "$check_sanity_msg"
reinstall_restore_if_temporarily_deinstalled
reinstall_errproc 'check sanity'
- temp_set_msg_current_stage "${_MSG_CURRENT_STAGE_general}"
if [ $opt_fetch_only = yes ]
then
if [ $opt_inst_by_pkg_if_can = yes ]
reinstall_restore_conflicts "$REINSTALL_ORIGIN"
reinstall_restore_if_temporarily_deinstalled
reinstall_errproc 'freezing'
- temp_set_msg_current_stage "${_MSG_CURRENT_STAGE_general}"
reinstall_skip "ERROR: Failed to get the repository version."
return 1
fi
reinstall_restore_conflicts "$REINSTALL_ORIGIN"
reinstall_restore_if_temporarily_deinstalled
reinstall_errproc 'freezing'
- temp_set_msg_current_stage "${_MSG_CURRENT_STAGE_general}"
reinstall_skip 'Skipped because being a port to freeze.'
return
}
then
reinstall_restore_if_temporarily_deinstalled
reinstall_errproc 'BEFOREBUILD operations'
- temp_set_msg_current_stage "${_MSG_CURRENT_STAGE_general}"
return 1
fi
message_echo "-- BEFOREBUILD operations (end)"
then
reinstall_restore_if_temporarily_deinstalled
reinstall_errproc 'clean before build'
- temp_set_msg_current_stage "${_MSG_CURRENT_STAGE_general}"
return 1
fi
message_echo
reinstall_restore_conflicts "$REINSTALL_ORIGIN"
reinstall_restore_if_temporarily_deinstalled
reinstall_errproc 'fetch'
- temp_set_msg_current_stage "${_MSG_CURRENT_STAGE_general}"
return
fi
_reinstall_exec__tmpcmd () { reinstall_make_anymode checksum; }
reinstall_restore_conflicts "$REINSTALL_ORIGIN"
reinstall_restore_if_temporarily_deinstalled
reinstall_errproc 'checksum'
- temp_set_msg_current_stage "${_MSG_CURRENT_STAGE_general}"
return
fi
reinstall_register_stage_complete FAILED_FETCH.RETRIAL_2
database_build_update_pkgname "$REINSTALL_ORIGIN" > /dev/null
message_echo "INFO: Further processes for this port are skipped because it is $msg_is_interactive."
fileedit_rm_a_line "$REINSTALL_ORIGIN" "${DBDIR}/stage.loop_list/reinst_todo.remain"
- temp_set_msg_current_stage "${_MSG_CURRENT_STAGE_general}"
return 1
fi
fi
reinstall_restore_conflicts "$REINSTALL_ORIGIN"
reinstall_restore_if_temporarily_deinstalled
reinstall_errproc 'build and clean after build failure'
- temp_set_msg_current_stage "${_MSG_CURRENT_STAGE_general}"
return 1
fi
reinstall_register_stage_complete CLEAN_BEFORE_BUILD
reinstall_restore_conflicts "$REINSTALL_ORIGIN"
reinstall_restore_if_temporarily_deinstalled
reinstall_errproc 'retrial of build after failure'
- temp_set_msg_current_stage "${_MSG_CURRENT_STAGE_general}"
return 1
fi
reinstall_deregister_stage in_retrial_build
reinstall_restore_conflicts "$REINSTALL_ORIGIN"
reinstall_restore_if_temporarily_deinstalled
reinstall_errproc 'STAGE operations'
- temp_set_msg_current_stage "${_MSG_CURRENT_STAGE_general}"
return 1
fi
reinstall_register_stage_complete STAGE
reinstall_restore_conflicts "$REINSTALL_ORIGIN"
reinstall_restore_if_temporarily_deinstalled
reinstall_errproc 'BEFOREDEINSTALL operations'
- temp_set_msg_current_stage "${_MSG_CURRENT_STAGE_general}"
return 1
fi
message_echo "-- BEFOREDEINSTALL operations (end)"
reinstall_restore_conflicts "$REINSTALL_ORIGIN"
reinstall_restore_if_temporarily_deinstalled
reinstall_errproc 'install'
- temp_set_msg_current_stage "${_MSG_CURRENT_STAGE_general}"
return 1
fi
fi
then
reinstall_restore_conflicts "$REINSTALL_ORIGIN"
reinstall_errproc 'AFTERINSTALL operations'
- temp_set_msg_current_stage "${_MSG_CURRENT_STAGE_general}"
return 1
fi
message_echo "-- AFTERINSTALL operations (end)"
if [ $opt_dry_run = yes ]
then
message_dry_run
- temp_set_msg_current_stage "${_MSG_CURRENT_STAGE_general}"
return
fi
reinstall_exec_reinstall_by_pkg && return