commit eb028bcae9abd9be15116f9628d3f9f7d7379450
Author: Elan Ruusamäe <[email protected]>
Date:   Tue Mar 14 14:47:49 2006 +0000

    - correct br checks
    
    Changed files:
        adapter.awk -> 1.296

 adapter.awk | 35 ++++++++++++++++++-----------------
 1 file changed, 18 insertions(+), 17 deletions(-)
---
diff --git a/adapter.awk b/adapter.awk
index 32141d2..200b128 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -677,23 +677,24 @@ preamble == 1 {
 
        # BR: tar (and others) is to common (rpm-build requires it)
        if (field ~ /^buildrequires:/) {
-               if ($2 == "awk" ||
-                       $2 == "binutils" ||
-                       $2 == "bzip2" ||
-                       $2 == "cpio" ||
-                       $2 == "diffutils" ||
-                       $2 == "elfutils" ||
-                       $2 == "fileutils" ||
-                       $2 == "findutils" ||
-                       $2 == "glibc-devel" ||
-                       $2 == "grep" ||
-                       $2 == "gzip" ||
-                       $2 == "make" ||
-                       $2 == "patch" ||
-                       $2 == "sed" ||
-                       $2 == "sh-utils" ||
-                       $2 == "tar" ||
-                       $2 == "textutils") {
+               l = substr($0, index($0, $2));
+               if (l == "awk" ||
+                       l == "binutils" ||
+                       l == "bzip2" ||
+                       l == "cpio" ||
+                       l == "diffutils" ||
+                       l == "elfutils" ||
+                       l == "fileutils" ||
+                       l == "findutils" ||
+                       l == "glibc-devel" ||
+                       l == "grep" ||
+                       l == "gzip" ||
+                       l == "make" ||
+                       l == "patch" ||
+                       l == "sed" ||
+                       l == "sh-utils" ||
+                       l == "tar" ||
+                       l == "textutils") {
                        next
                }
        }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/adapter.git/commitdiff/6ca0126d4d0c8c79feb7db10b0a0fade0f3b8885

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to