From: Some One Date: Thu, 9 Apr 2015 14:55:39 +0200 Subject: [PATCH] buildroot-in-scripts.diff =================================================================== --- SpecCheck.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SpecCheck.py b/SpecCheck.py index 62c5d9f..8fc6e94 100644 --- a/SpecCheck.py +++ b/SpecCheck.py @@ -239,7 +239,9 @@ class SpecCheck(AbstractCheck.AbstractCheck): continue - if current_section in ('prep', 'build') and \ + if current_section in ('prep', 'build','pre', 'post', 'postun', + 'trigger', 'triggerin', 'triggerprein', 'triggerun', 'triggerpostun', + 'pretrans', 'posttrans') and \ contains_buildroot(line): printWarning(pkg, 'rpm-buildroot-usage', '%' + current_section, line[:-1].strip())