revdep-rebuild: Check if $ERRORS_FILE exist before running gawk on it.
authoridl0r <idl0r@gentoo.org>
Wed, 31 Mar 2010 16:56:01 +0000 (16:56 -0000)
committeridl0r <idl0r@gentoo.org>
Wed, 31 Mar 2010 16:56:01 +0000 (16:56 -0000)
svn path=/trunk/gentoolkit/; revision=763

ChangeLog
bin/revdep-rebuild

index a011ed5925378b30fc765259cc12395325f8e651..275b93f0371391914bc075bb18e02161df3d22d3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2010-03-31: Christian Ruppert <idl0r@gentoo.org>
        * 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 <fuzzyray@gentoo.org>
        * gentoolkit: Add inital py3k support.
index 0dd0e87a6837fb34559c8c661955d17a62164ac6..a4fa0f7aec3c4922931c92baa9816ad9d2c0cf17 100755 (executable)
@@ -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"