[packages/adapter: 292/631] - recognize %verifyscript and %check

glen glen at pld-linux.org
Mon Sep 12 19:58:56 CEST 2016


commit 0ae11f546e079d74d56f2712c65ed5d98bb2d201
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Tue Feb 28 13:27:45 2006 +0000

    - recognize %verifyscript and %check
    
    Changed files:
        adapter.awk -> 1.282

 adapter.awk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/adapter.awk b/adapter.awk
index 1ff5be0..4c2ce77 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -25,7 +25,7 @@
 # - desc wrapping is totally fucked up on global.spec,1.25, dosemu.spec,1.115-
 
 BEGIN {
-	RPM_SECTIONS = "package|build|changelog|clean|description|install|post|posttrans|postun|pre|prep|pretrans|preun|triggerin|triggerpostun|triggerun"
+	RPM_SECTIONS = "package|build|changelog|clean|description|install|post|posttrans|postun|pre|prep|pretrans|preun|triggerin|triggerpostun|triggerun|verifyscript|check"
 	SECTIONS = "^%(" RPM_SECTIONS ")"
 
 	PREAMBLE_TAGS = "(Summary|Name|Version|Release|License|Group|URL|BuildArch|BuildRoot|Obsoletes|Conflicts|Provides|ExclusiveArch|ExcludeArch|Pre[Rr]eq|(Build)?Requires)"
@@ -547,6 +547,12 @@ function b_makekey(a, b,	s) {
 /^%posttrans/, (!/^%posttrans/ && $0 ~ SECTIONS) {
 	preamble = 0
 }
+/^%verifyscript/, (!/^%verifyscript/ && $0 ~ SECTIONS) {
+	preamble = 0
+}
+/^%check/, (!/^%check/ && $0 ~ SECTIONS) {
+	preamble = 0
+}
 
 #############
 # PREAMBLES #
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list