2015-04-10 16:35:46 +02:00
|
|
|
From: Some One <nobody@opensuse.org>
|
|
|
|
Date: Thu, 9 Apr 2015 14:55:39 +0200
|
|
|
|
Subject: [PATCH] buildroot-in-scripts.diff
|
|
|
|
|
2011-04-21 12:12:02 +02:00
|
|
|
===================================================================
|
2015-04-10 16:35:46 +02:00
|
|
|
---
|
|
|
|
SpecCheck.py | 4 +++-
|
|
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/SpecCheck.py b/SpecCheck.py
|
|
|
|
index dde66fc..63897f2 100644
|
|
|
|
--- a/SpecCheck.py
|
|
|
|
+++ b/SpecCheck.py
|
|
|
|
@@ -238,7 +238,9 @@ class SpecCheck(AbstractCheck.AbstractCheck):
|
2008-04-17 04:52:37 +02:00
|
|
|
|
|
|
|
continue
|
|
|
|
|
2010-10-14 14:32:03 +02:00
|
|
|
- if current_section in ('prep', 'build') and \
|
|
|
|
+ if current_section in ('prep', 'build','pre', 'post', 'postun',
|
2008-04-17 04:52:37 +02:00
|
|
|
+ 'trigger', 'triggerin', 'triggerprein', 'triggerun', 'triggerpostun',
|
2010-10-14 14:32:03 +02:00
|
|
|
+ 'pretrans', 'posttrans') and \
|
|
|
|
contains_buildroot(line):
|
|
|
|
printWarning(pkg, 'rpm-buildroot-usage', '%' + current_section,
|
|
|
|
line[:-1].strip())
|