# ================================================
APPNAME=`basename "$0"`
-MYVERSION=2.2.2
+MYVERSION=2.2.2+toward_2.2.3_20130108123936
PREFIX=${PREFIX:-/usr/local}
CONFFILE=${PREFIX}/etc/${APPNAME}.conf
str_escape_regexp_filter < ${DBDIR}/failed.list | sed "s|^|^|; s|$|$|" > ${TMPDIR}/record_success.grep_failed.list.tmp
rm_a_line "$origin" "${DBDIR}/todo_after_requirements_succeed.list"
dbdir_esc=`echo "${DBDIR}/requires/" | sed 's/|/\\|/'`
- sed "s|^|$dbdir_esc|;s|$|/failed_requirements|" "${DBDIR}/requires/$origin/dependents" | rm_a_line_from_files "$origin"
+ if [ -e "${DBDIR}/requires/$origin/dependents" ]
+ then
+ sed "s|^|$dbdir_esc|;s|$|/failed_requirements|" "${DBDIR}/requires/$origin/dependents" | \
+ rm_a_line_from_files "$origin"
+ fi
if [ `grep -m 1 -E -f "${TMPDIR}/record_success.grep_failed.list.tmp" "${DBDIR}/requires/$origin/requires" | wc -l` -eq 0 ]
then
add_a_line_if_new "$origin" "${DBDIR}/success.list"
rm_a_line "$origin" "${DBDIR}/success_but_dependencies_failed.list"
rm_a_line "$origin" "${DBDIR}/todo_after_requirements_succeed.list"
dbdir_esc=`echo "${DBDIR}/requires/" | sed 's/|/\\|/'`
- sed "s|^|$dbdir_esc|;s|$|/failed_requirements|" "${DBDIR}/requires/$origin/dependents" | add_a_line_to_files_if_new "$origin"
+ if [ -e "${DBDIR}/requires/$origin/dependents" ]
+ then
+ sed "s|^|$dbdir_esc|;s|$|/failed_requirements|" "${DBDIR}/requires/$origin/dependents" | \
+ add_a_line_to_files_if_new "$origin"
+ fi
rm -f "${DBDIR}/requires/$origin/succeeded_once"
if [ -z "$clean" -o "@$clean" = @clean ]
then