commit 50037ea239a60a6040e1208447bb28bbac33a515
Author: Patryk Zawadzki <[email protected]>
Date: Wed Jan 9 17:13:40 2008 +0000
- support rpm md5 digests
Changed files:
adapter.awk -> 1.375
adapter.awk | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/adapter.awk b/adapter.awk
index e8d989e..17e64bc 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -31,6 +31,8 @@ BEGIN {
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)"
+ usedigest = 0 # Enable to switch to rpm 4.4.6+ md5 digests
+
preamble = 1 # Is it part of preamble? Default - yes
boc = 4 # Beginning of %changelog
bod = 0 # Beginning of %description
@@ -168,7 +170,11 @@ function b_makekey(a, b, s) {
# Generally, comments are printed without touching
sub(/[ \t]+$/, "")
- if (/Source.*md5/) {
+ if (/#[ \t]*Source.*md5/) {
+ if (usedigest == 1) {
+ sub(/^#[ \t]*Source/, "BuildRequires:\tdigest(%SOURCE",
$0)
+ sub(/-md5[ \t]*:[ \t]*/, ") = ", $0)
+ }
print $0
next
}
================================================================
---- 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