MYVERSION=4.0.1
COMPATIBLE_VERSIONS='^(4\.[0]\.[0-1])$'
# Template for development versions
- MYVERSION=4.0.0+toward_4.0.1_20180712004109
+ MYVERSION=4.0.0+toward_4.0.1_20180712014559
COMPATIBLE_VERSIONS='^(4\.[0]\.[0]|4\.[0]\.[0]+(|\+toward_4\.[0]\.[1]+_[0-9]+))$'
}
mv "${DBDIR}/deleted_conflicts.tmp" "${DBDIR}/deleted_conflicts"
}
-# ============= Back up and delete remaining actual install conflict =============
+# ============= Back up and delete remaining actual install conflict (for installation by package) =============
+reinstall_backup_and_delete_remaining_install_conflicts__by_pkg ()
+{
+ local pkg tmp_conflicts
+ pkg=$1
+ tmp_conflicts=${TMPDIR}/reinstall_backup_and_delete_remaining_install_conflicts__by_pkg
+ message_echo "(Checking installation conflict...)"
+ pkgsys_get_conflicting_installed_pkgs install "$REINSTALL_ORIGIN" > $tmp_conflicts.pkgs || :
+ while read pkg_conflict
+ do
+ fileedit_add_a_line_if_new "$pkg_conflict:$REINSTALL_ORIGIN:$pkg" \
+ "${DBDIR}/forbidden_conflicts"
+ done < $tmp_conflicts.pkgs
+ reinstall_backup_and_delete_conflicts < $tmp_conflicts.pkgs
+}
+
+# ============= Back up and delete remaining actual install conflict (for installation by port) =============
reinstall_backup_and_delete_remaining_install_conflicts ()
{
local stagedir tmp_conflicts db_conflict
then
message_fetch_only
else
- pkgsys_get_conflicting_installed_pkgs install "$REINSTALL_ORIGIN" \
- | reinstall_backup_and_delete_conflicts
+ reinstall_backup_and_delete_remaining_install_conflicts__by_pkg "$pkg"
reinstall_pkg_backup || :
reinstall_register_stage in_add_pkg
reinstall_deinstall_old_ports
message_echo "INFO: The latest repository version $pkg will be installed."
reinstall_deinstall_old_ports
reinstall_deinstall
- reinstall_backup_and_delete_remaining_install_conflicts
+ reinstall_backup_and_delete_remaining_install_conflicts__by_pkg "$pkg"
if pkg_inst_remote "$pkg"
then
message_echo "INFO: Deemed success."