Add patch from kojiro to improve bash syntax
authorfuzzyray <fuzzyray@gentoo.org>
Fri, 1 May 2009 14:39:55 +0000 (14:39 -0000)
committerfuzzyray <fuzzyray@gentoo.org>
Fri, 1 May 2009 14:39:55 +0000 (14:39 -0000)
svn path=/; revision=566

trunk/src/revdep-rebuild/revdep-rebuild

index 5177a52794ed5d1800ffa38a77b6f7721e316ab5..72efba0132f244dd80fca827df8d0630e9134ae1 100755 (executable)
@@ -749,7 +749,7 @@ main_checks() {
                                        if [[ $depend = /* && ! -e $depend ]]; then
                                                echo "obj $target_file" >> "$BROKEN_FILE"
                                                echo_v "  broken $target_file (requires $depend)"
-                                       elif [[ $depend = "-L/"* || $depend = "-R/"* ]]; then
+                                       elif [[ $depend = -[LR]/* ]]; then
                                                if ! [[ $'\n'${la_SEARCH_DIRS}$'\n' == *$'\n'${depend#-?}$'\n'* ]]; then
                                                        la_SEARCH_DIRS+=$'\n'"${depend#-?}"
                                                fi