commit 48385fed9961727a12da833ca9784f1a1cd5ea73
Author: Elan Ruusamäe <[email protected]>
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
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit