[packages/adapter: 503/631] - avoid matching %if macro with == expression

glen glen at pld-linux.org
Mon Sep 12 20:16:36 CEST 2016


commit 4defab2ba71e230293eb2c77c19f7acaf30b3666
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Tue Oct 5 08:14:26 2010 +0000

    - avoid matching %if macro with == expression
    
    Changed files:
        adapter.awk -> 1.472

 adapter.awk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/adapter.awk b/adapter.awk
index 1068884..2477f55 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -747,7 +747,7 @@ preamble == 1 {
 		$1 = "Suggests:"
 	}
 
-	if ($3 == "==") {
+	if ($3 == "==" && $1 !~ /%/) {
 		$3 = "="
 	}
 
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list