SPECS: adapter.awk - correct br checks

glen glen at pld-linux.org
Tue Mar 14 15:47:54 CET 2006


Author: glen                         Date: Tue Mar 14 14:47:54 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- correct br checks

---- Files affected:
SPECS:
   adapter.awk (1.295 -> 1.296) 

---- Diffs:

================================================================
Index: SPECS/adapter.awk
diff -u SPECS/adapter.awk:1.295 SPECS/adapter.awk:1.296
--- SPECS/adapter.awk:1.295	Tue Mar 14 09:22:29 2006
+++ SPECS/adapter.awk	Tue Mar 14 15:47:49 2006
@@ -677,23 +677,24 @@
 
 	# 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
 		}
 	}
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/adapter.awk?r1=1.295&r2=1.296&f=u



More information about the pld-cvs-commit mailing list