[packages/adapter: 250/631] - replace PreReq and sortbr in one run

glen glen at pld-linux.org
Mon Sep 12 19:55:25 CEST 2016


commit 48385fed9961727a12da833ca9784f1a1cd5ea73
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Tue Dec 13 15:14:02 2005 +0000

    - replace PreReq and sortbr in one run
    
    Changed files:
        adapter.awk -> 1.240

 adapter.awk | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/adapter.awk b/adapter.awk
index e99b300..5c1cc09 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -109,7 +109,12 @@ function b_makekey(a, b,	s) {
 #   so don't do that.
 # - comments leading the BR/R can not be associated,
 #   so don't adapterize when the BR/R are mixed with comments
-ENVIRON["SKIP_SORTBR"] != 1 && preamble == 1 && /(Build)?Requires/, /(Build)?Requires/ {
+ENVIRON["SKIP_SORTBR"] != 1 && preamble == 1 && /(PreReq|(Build)?Requires)/, /(PreReq|(Build)?Requires)/ {
+	if ($1 ~ /PreReq:/) {
+		sub(/PreReq:/, "Requires:", $1);
+	}
+	format_preamble()
+
 	b_idx++;
 	l = substr($0, index($0, $2));
 	b_ktmp = b_makekey($1, l);
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list