commit 59de1799b3cf660288bf493bb956a76980139631
Author: Elan Ruusamäe <[email protected]>
Date:   Tue Mar 7 23:52:02 2006 +0000

    - subst %{_pre} macro
    
    Changed files:
        adapter.awk -> 1.292

 adapter.awk | 11 +++++++++++
 1 file changed, 11 insertions(+)
---
diff --git a/adapter.awk b/adapter.awk
index 0cc6bbf..3935b6a 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -215,6 +215,8 @@ function b_makekey(a, b,    s) {
                _beta = $3
        if ($2 ~ /^_rc$/)
                _rc = $3
+       if ($2 ~ /^_pre$/)
+               _pre = $3
        if ($2 ~ /^_snap$/)
                _snap = $3
 
@@ -312,6 +314,9 @@ function b_makekey(a, b,    s) {
                if (_rc) {
                        $0 = fixedsub(_rc, "%{_rc}", $0);
                }
+               if (_pre) {
+                       $0 = fixedsub(_pre, "%{_pre}", $0);
+               }
                if (_snap) {
                        $0 = fixedsub(_snap, "%{_snap}", $0);
                }
@@ -776,6 +781,9 @@ preamble == 1 {
                        if (_rc) {
                                url[n] = fixedsub(_rc, "%{_rc}", url[n])
                        }
+                       if (_pre) {
+                               url[n] = fixedsub(_pre, "%{_pre}", url[n])
+                       }
                        if (_snap) {
                                url[n] = fixedsub(_snap, "%{_snap}", url[n])
                        }
@@ -1367,6 +1375,9 @@ function demacroize(str)
        if (_rc) {
                sub("%{_rc}", _rc, str);
        }
+       if (_pre) {
+               sub("%{_pre}", _pre, str);
+       }
        if (_snap) {
                sub("%{_snap}", _snap, str);
        }
================================================================

---- 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

Reply via email to