[packages/adapter: 438/631] - AutoReq/AutoProv as last in preambles

glen glen at pld-linux.org
Mon Sep 12 20:11:09 CEST 2016


commit 8492c30a2fbb874a45c7c6681493bb95d07a363b
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Tue Feb 10 12:30:03 2009 +0000

    - AutoReq/AutoProv as last in preambles
    
    Changed files:
        adapter.awk -> 1.416

 adapter.awk | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/adapter.awk b/adapter.awk
index 10b1384..c4beed1 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -33,7 +33,7 @@ BEGIN {
 	rev = RCSID # TODO: parse from RCSID
 	VERSION = "0.31/" rev
 
-	PREAMBLE_TAGS = "(R|BR|Summary|Name|Version|Release|Epoch|License|Group|URL|BuildArch|BuildRoot|Obsoletes|Conflicts|Provides|ExclusiveArch|ExcludeArch|Pre[Rr]eq|(Build)?Requires|Suggests)"
+	PREAMBLE_TAGS = "(R|BR|Summary|Name|Version|Release|Epoch|License|Group|URL|BuildArch|BuildRoot|Obsoletes|Conflicts|Provides|ExclusiveArch|ExcludeArch|Pre[Rr]eq|(Build)?Requires|Suggests|Auto(Req|Prov))"
 
 	usedigest = 0	# Enable to switch to rpm 4.4.6+ md5 digests
 
@@ -95,8 +95,9 @@ function b_makekey(a, b,	s) {
 	gsub(/^#[ \t]*/, "", s);
 
 	# force order
-	gsub(/^Summary\(/, "11Summary(", s);
 	gsub(/^Summary/, "10Summary", s);
+	gsub(/^Summary\(/, "11Summary(", s);
+
 	gsub(/^Name/, "2Name", s);
 	gsub(/^Version/, "3Version", s);
 	gsub(/^Release/, "4Release", s);
@@ -117,6 +118,9 @@ function b_makekey(a, b,	s) {
 	gsub(/^ExcludeArch/, "X7ExcludeArch", s);
 	gsub(/^BuildRoot/, "X9BuildRoot", s);
 
+	gsub(/^AutoProv/, "Xx1AutoProv", s);
+	gsub(/^AutoReq/, "Xx2AutoReq", s);
+
 #	printf("%s -> %s\n", a""b, s);
 	return s;
 }
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list