Fix processing of .la files (Bug #187453)
authorfuzzyray <fuzzyray@gentoo.org>
Mon, 6 Aug 2007 15:20:36 +0000 (15:20 -0000)
committerfuzzyray <fuzzyray@gentoo.org>
Mon, 6 Aug 2007 15:20:36 +0000 (15:20 -0000)
svn path=/; revision=427

trunk/ChangeLog
trunk/src/revdep-rebuild/revdep-rebuild-rewrite

index 63dec3cbeefd89ff401533280780e4920a7960c6..be504870ce6ce31489dd4af8a690fa4640a5887f 100644 (file)
@@ -1,3 +1,6 @@
+2007-08-06: Paul Varner <fuzzyray@gentoo.org>
+       * revdep-rebuild: Fix processing of .la files (Bug #187453)
+
 2007-07-30: Paul Varner <fuzzyray@gentoo.org>
        * revdep-rebuild: Fix grepping for non-existant package-owners file
        (Bug #187141)
index 9168dba1ca8f17ca325c3652a89aaf7253bb9e71..0fd331835675aedb19b7f1d0cc83e0fe6ebea3f4 100755 (executable)
@@ -576,12 +576,12 @@ main_checks() {
                                # Look for broken .la files
                                for depend in $(
                                        awk -F"[=']" '/^dependency_libs/{
-                                               gsub("^-[^[:space:]]*", "", $2);
-                                               gsub("[[:space:]]-[^[:space:]]*", "", $2);
-                                               print $2
+                                               gsub("^-[^[:space:]]*", "", $3);
+                                               gsub("[[:space:]]-[^[:space:]]*", "", $3);
+                                               print $3
                                        }' "$target_file"
                                ); do
-                                       if [[ $depend != /* && ! -e $depend ]]; then
+                                       if [[ $depend = /* && ! -e $depend ]]; then
                                                echo "obj $target_file" >> "$LIST.3_rebuild"
                                                echo_v "  broken $target_file (requires $depend)"
                                        fi