[packages/adapter: 186/631] - adapter for atrpms macros

glen glen at pld-linux.org
Mon Sep 12 19:50:03 CEST 2016


commit c26ee7ef8e1cd2ec071f1e413161ae75c66dc9e6
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Mon Sep 5 10:49:00 2005 +0000

    - adapter for atrpms macros
    
    Changed files:
        adapter.awk -> 1.178

 adapter.awk | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/adapter.awk b/adapter.awk
index 26544d5..b204f63 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -618,6 +618,11 @@ preamble == 1 {
 		if ($2 ~ /_snap/)
 			_snap = $3
 	}
+
+	if (field ~ /requires/) {
+		# atrpms
+		$0 = fixedsub("%{eversion}", "%{epoch}:%{version}-%{release}", $0);
+	}
 }
 
 # main() ;-)
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list