[packages/adapter: 17/631] - bug: first line was never processed - added removal of "Vendor:" field

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


commit 04dde927ca13418acab77e08cc4185a6a15fb07d
Author: Sebastian Zagrodzki <sebek at zagrodzki.net>
Date:   Wed Feb 2 16:20:38 2000 +0000

    - bug: first line was never processed
    - added removal of "Vendor:" field
    
    Changed files:
        adapter.awk -> 1.17

 adapter.awk | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/adapter.awk b/adapter.awk
index b65e6d8..b3dd258 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -29,9 +29,10 @@ BEGIN {
 FNR == 1 {
 	if (!/# \$Revision:/)		# If this line is already OK?
 		print "# $" "Revision:$, " "$" "Date:$";	# No
-	print $0;						# Yes
-
-	next;				# It is enough for first line
+	else {
+		print $0;						# Yes
+		next;				# It is enough for first line
+	}
 }
 
 # If the latest line matched /%files/
@@ -187,7 +188,7 @@ preamble == 1 {
 	
 	field = tolower($1);
 
-	if (field ~ /packager:|distribution:|prefix:/)
+	if (field ~ /packager:|distribution:|prefix:|vendor:/)
 		next;
 	
 	if (field ~ /buildroot:/)
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list