From: idl0r Date: Wed, 31 Mar 2010 16:56:01 +0000 (-0000) Subject: revdep-rebuild: Check if $ERRORS_FILE exist before running gawk on it. X-Git-Tag: gentoolkit-0.3.0_rc10~2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ac7d1e4fc6cb419230289e11ea950647428bd327;p=gentoolkit.git revdep-rebuild: Check if $ERRORS_FILE exist before running gawk on it. svn path=/trunk/gentoolkit/; revision=763 --- diff --git a/ChangeLog b/ChangeLog index a011ed5..275b93f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ 2010-03-31: Christian Ruppert * epkginfo: Fix epkginfo to handle ambiguous package names. + * revdep-rebuild: Check if $ERRORS_FILE exist before running gawk on it. 2010-03-09: Paul Varner * gentoolkit: Add inital py3k support. diff --git a/bin/revdep-rebuild b/bin/revdep-rebuild index 0dd0e87..a4fa0f7 100755 --- a/bin/revdep-rebuild +++ b/bin/revdep-rebuild @@ -815,7 +815,7 @@ main_checks() { progress $((++i)) $numFiles $target_file || progress $((++i)) $numFiles done - if [[ $SEARCH_BROKEN ]]; then + if [[ $SEARCH_BROKEN && -f $ERRORS_FILE ]]; then # Look for missing version while read target_file; do echo "obj $target_file" >> "$BROKEN_FILE"