[packages/adapter: 199/631] - %useradd/%groupadd may not be continued with backslash

glen glen at pld-linux.org
Mon Sep 12 19:51:08 CEST 2016


commit e91764700f748949bc38174ae01b4edb998739e8
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Sun Oct 2 18:22:24 2005 +0000

    - %useradd/%groupadd may not be continued with backslash
    
    Changed files:
        adapter.awk -> 1.190

 adapter.awk | 8 ++++++++
 1 file changed, 8 insertions(+)
---
diff --git a/adapter.awk b/adapter.awk
index 5247d01..55e2e76 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -416,7 +416,15 @@ preamble == 1 {
 ###########
 /^%pre/, (/^%[a-z]+$/ && !/^%pre/) {
 	preamble = 0
+
+	# %useradd and %groupadd may not be wrapped
+	if (/%(useradd|groupadd).*\\$/) {
+		a = $0; getline;
+		sub(/^[\s\t]*/, "");
+		$0 = substr(a, 1, length(a) - 1) $0;
+	}
 }
+
 /^%post/, (/^%[a-z]+$/ && !/^%post/) {
 	preamble = 0
 }
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list