[packages/adapter: 208/631] - ungreedy define parsing

glen glen at pld-linux.org
Mon Sep 12 19:51:53 CEST 2016


commit 0aa852e002f3b387d3d4dea6912597fbf34bc95b
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Wed Oct 12 20:03:55 2005 +0000

    - ungreedy define parsing
    
    Changed files:
        adapter.awk -> 1.199

 adapter.awk | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/adapter.awk b/adapter.awk
index ede20d4..817c2e1 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -684,11 +684,11 @@ preamble == 1 {
 		if ($2 ~ /_snap/)
 			_snap = $3
 
-		if ($2 ~ /name/)
+		if ($2 ~ /^name$/)
 			name = $3
-		if ($2 ~ /version/)
+		if ($2 ~ /^version$/)
 			version = $3
-		if ($2 ~ /release/)
+		if ($2 ~ /^release$/)
 			release = $3
 	}
 
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list