# MYVERSION=3.1.0
# COMPATIBLE_VERSIONS='^(3\.1\.[0-9]+)$'
# Template for development versions
-MYVERSION=3.0.5+toward_3.1.0_20140710050655
+MYVERSION=3.0.5+toward_3.1.0_20140712053146
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}
then
if ! [ "${DBDIR}/installed_ports" -ot "${DBDIR}/initial" -a "${DBDIR}/installed_ports:pkg_vs_origin.tbl" -ot "${DBDIR}/initial" ]
then
- tmp_installed_ports=${TMPDIR}/COLLECT_ALL_INSTALLED_PACKAGES:installed_ports.tmp
- tmp_installed_pkgs=${TMPDIR}/COLLECT_ALL_INSTALLED_PACKAGES:installed_pkgs
- cp /dev/null "$tmp_installed_ports"
- cp /dev/null "$tmp_installed_pkgs"
- find "${DBDIR}/initial" -depth 2 -type d | while read dbpath
+ find "${DBDIR}/initial" -depth 2 -type d \
+ | sed -E 's|.*/([^/]+/[^/]+)$|\1|' > ${DBDIR}/installed_ports || :
+ while read origin
do
- echo "$dbpath" >> $tmp_installed_ports
- cat "$dbpath/installed_version" >> $tmp_installed_pkgs 2>/dev/null || :
- done
- sed -E 's|.*/([^/]+/[^/]+)$|\1|' "$tmp_installed_ports" > ${DBDIR}/installed_ports
- paste "$tmp_installed_pkgs" "${DBDIR}/installed_ports" > ${DBDIR}/installed_ports:pkg_vs_origin.tbl
+ pkg=`cat "${DBDIR}/initial/$origin/installed_version" 2>/dev/null` || continue
+ printf '%s\t%s\n' "$origin" "$pkg"
+ done < ${DBDIR}/installed_ports > ${DBDIR}/installed_ports:pkg_vs_origin.tbl
fi
else
pkg_info_qoa > ${DBDIR}/installed_ports
# }
pkg_info_qoX ()
{
- pkg info -qoX "$@" 2> /dev/null
+ pkg info -qox "$@" 2> /dev/null
}
pkg_info_qO ()
{
origin=$1
tmppkg=${TMPDIR}/pkgsys_pkg_info_qO_init::pkg
origin_regexp=`str_escape_regexp "$origin"`
- { sed -n -E "/[[:space:]]$origin_regexp$/p" "${DBDIR}/installed_ports:pkg_vs_origin.tbl" 2> /dev/null || :; } \
- | cut -f 1 > $tmppkg
+ sed -n -E "/[[:space:]]$origin_regexp$/p" "${DBDIR}/installed_ports:pkg_vs_origin.tbl" 2> /dev/null \
+ | cut -f 1 > $tmppkg || :
npkgs=`wc -l < $tmppkg`
if [ $npkgs -gt 0 ]
then
sed -n ${index}p "$origlist"
done || :
glob_regexp2=`expr "$glob_regexp" : '\(.*\)\$$' 2>&1`'[[:space:]]'
- { sed -n -E "/$glob_regexp2/p" "${DBDIR}/installed_ports:pkg_vs_origin.tbl" 2> /dev/null || :; } \
- | cut -f 2
+ sed -n -E "/$glob_regexp2/p" "${DBDIR}/installed_ports:pkg_vs_origin.tbl" 2> /dev/null \
+ | cut -f 2 || :
pkg_info_qoX "$glob_regexp" || :
fi
done | sort -u
[BUG FIX] Changes in REPLACE_* in ${LOCALBASE}/etc/portsreinstall.conf were not correctly reflected in recursive reinstallation of dependents. The specification of the temporary database is changed for this fix.
.PP
[BUG FIX] Execution of \fBreset\fR command unintentionally removed temporally deinstalled leaf ports out of scope of reinstallation.
+.PP
+[BUG FIX] A wrong option was given to \fBpkg-info(8)\fR in a compatible command for \fBpkg_info -qoX\fR.
.RE
.TP
3.0.5 (14 December 2013)