# ================================================
APPNAME=`basename "$0"`
-MYVERSION=2.0.0+toward_2.0.1_20121209162229
+MYVERSION=2.0.0+toward_2.0.1_20121209183341
PREFIX=${PREFIX:-/usr/local}
CONFFILE=${PREFIX}/etc/${APPNAME}.conf
exit 1
;;
esac
- [ -n "${_for_each_matching_port}" -o -r "${DBDIR}/$list" ] || exit 0
+ [ -n "${_for_each_matching_port}" -a -r "${DBDIR}/$list" ] || exit 0
[ ! -e "${DBDIR}"/saved_options.sh ] || . "${DBDIR}"/saved_options.sh
if [ -n "${_for_each_matching_port}" ]
then
}
exit 1
}
- cp "${DBDIR}/reinst_order.list.tmp" "${DBDIR}/reinst_order.list"
+ grep -v '^$' "${DBDIR}/reinst_order.list.tmp" > "${DBDIR}/reinst_order.list" || :
touch "${DBDIR}/COMPLETE_ORDERED_ALL_DEPENDENCIES"
rm -f "${TMPDIR}/targets"
echo
# Reinstallation of remained ports
[ ! -e "${DBDIR}/MODE_REDO" ] || rm -f "${DBDIR}/COMPLETE_REINSTALLATION" "${DBDIR}/COMPLETE_CLEANUP_OBSLETE_DISTFILES" "${DBDIR}/COMPLETE_REBUILD_PKGDB"
+[ `cat "${DBDIR}/reinst_order.list" | wc -l` -gt 0 ] || touch "${DBDIR}/COMPLETE_REINSTALLATION"
if [ ! -e "${DBDIR}/COMPLETE_REINSTALLATION" ]
then
_MSG_CURRENT_STAGE_general="reinstallation"
[BUG FIX] Restoration of backup packages after failed installation was not working correctly.
[BUG FIX] The transferring mechanism of option values to restarted run was broken.
+
+[BUG FIX] Error end in case that no packages are installed is fixed.
.TP
2.0.0 (12 August 2012)
[NEW] Options \fB\-X\fR, \fB\-r\fR and \fB\-R\fR are added so as to compensate a fact that \fB\-x\fR, \fB\-t\fR and \fB\-T\fR cannot specify package names with commas.
.SH HISTORY
\fBportsreinstall\fR has been developed as below.
.TP
-2.0.1 (08 December 2012)
+2.0.1 (09 December 2012)
[NEW] New generation package (pkgng) is supported.
[IMPROVED] A countermeasure for a build failure in a restarted build from a terminated build is implemented.
# ================================================
APPNAME=`basename "$0"`
-MYVERSION=2.0.0+toward_2.0.1_20121208064055
+MYVERSION=2.0.0+toward_2.0.1_20121209162229
PREFIX=${PREFIX:-/usr/local}
CONFFILE=${PREFIX}/etc/${APPNAME}.conf
exit 1
;;
esac
- [ -n "${_for_each_matching_port}" -o -r "${DBDIR}/$list" ] || exit 0
+ [ -n "${_for_each_matching_port}" -a -r "${DBDIR}/$list" ] || exit 0
[ ! -e "${DBDIR}"/saved_options.sh ] || . "${DBDIR}"/saved_options.sh
if [ -n "${_for_each_matching_port}" ]
then
}
exit 1
}
- cp "${DBDIR}/reinst_order.list.tmp" "${DBDIR}/reinst_order.list"
+ grep -v '^$' "${DBDIR}/reinst_order.list.tmp" > "${DBDIR}/reinst_order.list" || :
touch "${DBDIR}/COMPLETE_ORDERED_ALL_DEPENDENCIES"
rm -f "${TMPDIR}/targets"
echo
# Reinstallation of remained ports
[ ! -e "${DBDIR}/MODE_REDO" ] || rm -f "${DBDIR}/COMPLETE_REINSTALLATION" "${DBDIR}/COMPLETE_CLEANUP_OBSLETE_DISTFILES" "${DBDIR}/COMPLETE_REBUILD_PKGDB"
+[ `cat "${DBDIR}/reinst_order.list" | wc -l` -gt 0 ] || touch "${DBDIR}/COMPLETE_REINSTALLATION"
if [ ! -e "${DBDIR}/COMPLETE_REINSTALLATION" ]
then
_MSG_CURRENT_STAGE_general="reinstallation"