Corrected a bug that the function of avoiding restoration of install conflicts of installed packages were still broken.
modified: README
modified: bin/portsreinstall
modified: lib/libpkgsys.sh
modified: lib/libreinstall.sh
================================================================================
portsreinstall - ports upgrading utility for massive forced reinstallation
- Version 3.0.0, June 1, 2013
+ Version 3.0.2, July 1, 2013
Copyright (C) 2010-2013 Mamoru Sakaue, MwGhennndo, All Rights Reserved.
================================================================================
# MYVERSION=3.0.1
# COMPATIBLE_VERSIONS='^(3\.0\.[0-9]+)$'
# Template for development versions
-MYVERSION=3.0.1+toward_3.0.2_20130704000611
+MYVERSION=3.0.1+toward_3.0.2_20130705075039
COMPATIBLE_VERSIONS='^(3\.0\.[0-9]+\+toward_3\.0\.1_[0-9]+|3\.0\.[0-9]+)$'
MYPREFIX=`dirname "\`dirname \"$0\"\`" | sed 's|/bin$||'`
MYPREFIX=${MYPREFIX:-/usr/local}
conflicts=$conflicts' '`database_query_get_makevar_val "$origin" CONFLICTS_INSTALL`
;;
esac
- echo "$conflicts"
+ echo "$conflicts" | sed 's/^ *//;s/ *$//'
}
# ============= Get conflicting installed packages of a port =============
[ "x$origin_replace" = "x$origin" ] && origin_replace=
if pkgsys_chk_conflict_by_a_pkg install "$REINSTALL_ORIGIN" "$pkg"
then
- is_conflicting=yes
fileedit_add_a_line_if_new "$pkg:$REINSTALL_NEWPKGNAME" "${DBDIR}/forbidden_conflicts"
+ continue
elif reinstall_chk_forbidden_conflicts "$pkg"
then
message_echo "INFO: Restoration of a conflict, $origin ($pkg), is avoided because it conflicts with installed packages."
continue
- else
- is_conflicting=no
fi
- if [ $is_conflicting = yes -o \( -n "$origin_current" -a "x$origin" = "x$origin_current" \) ] || \
+ if [ -n "$origin_current" -a "x$origin" = "x$origin_current" ] || \
pkg_info_e "$pkg" || pkg_info_eO "$origin" || \
{ [ -n "$origin_orig" ] && pkg_info_eO "$origin_orig"; } || \
{ [ -n "$origin_replace" ] && pkg_info_eO "$origin_replace"; }