[packages/adapter: 254/631] - match also %package for adapter to locate preambles properly

glen glen at pld-linux.org
Mon Sep 12 19:55:45 CEST 2016


commit 2b47df45eaf7276029f52d9448a1078e987a7c07
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Tue Dec 13 17:13:23 2005 +0000

    - match also %package for adapter to locate preambles properly
    
    Changed files:
        adapter.awk -> 1.244

 adapter.awk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/adapter.awk b/adapter.awk
index 8576856..01ecb19 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -21,7 +21,8 @@
 # - desc wrapping is totally fucked up on global.spec,1.25, dosemu.spec,1.115-
 
 BEGIN {
-	SECTIONS = "^%(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"
+	SECTIONS = "^%(" RPM_SECTIONS ")"
 
 	preamble = 1		# Is it part of preamble? Default - yes
 	boc = 4			# Beginning of %changelog
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list