2011-04-21 12:12:02 +02:00
|
|
|
Index: SpecCheck.py
|
|
|
|
===================================================================
|
|
|
|
--- SpecCheck.py.orig
|
2008-04-17 04:52:37 +02:00
|
|
|
+++ SpecCheck.py
|
2011-04-21 12:12:02 +02:00
|
|
|
@@ -223,7 +223,9 @@ class SpecCheck(AbstractCheck.AbstractCh
|
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())
|