From ac7d1e4fc6cb419230289e11ea950647428bd327 Mon Sep 17 00:00:00 2001 From: idl0r Date: Wed, 31 Mar 2010 16:56:01 +0000 Subject: [PATCH] revdep-rebuild: Check if $ERRORS_FILE exist before running gawk on it. svn path=/trunk/gentoolkit/; revision=763 --- ChangeLog | 1 + bin/revdep-rebuild | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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" -- 2.26.2