2010-04-01 16:20:38 +02:00
|
|
|
--- SpecCheck.py
|
2008-04-17 04:52:37 +02:00
|
|
|
+++ SpecCheck.py
|
2010-04-01 16:20:38 +02:00
|
|
|
@@ -59,7 +59,10 @@
|
2009-08-28 22:12:54 +02:00
|
|
|
section_regexs = dict(
|
|
|
|
([x, re.compile('^%' + x + '(?:\s|$)')]
|
|
|
|
for x in ('build', 'changelog', 'check', 'clean', 'description', 'files',
|
|
|
|
- 'install', 'package', 'prep')))
|
|
|
|
+ 'install', 'package', 'prep',
|
|
|
|
+ 'pre', 'post', 'postun', 'trigger', 'triggerin',
|
|
|
|
+ 'triggerprein', 'triggerun', 'triggerpostun',
|
|
|
|
+ 'pretrans', 'posttrans')))
|
|
|
|
|
|
|
|
# Only check for /lib, /usr/lib, /usr/X11R6/lib
|
|
|
|
# TODO: better handling of X libraries and modules.
|
2010-04-01 16:20:38 +02:00
|
|
|
@@ -264,7 +267,9 @@
|
2008-04-17 04:52:37 +02:00
|
|
|
|
|
|
|
continue
|
|
|
|
|
|
|
|
- if current_section in ('prep', 'build'):
|
|
|
|
+ if current_section in ('prep', 'build', 'pre', 'post', 'postun',
|
|
|
|
+ 'trigger', 'triggerin', 'triggerprein', 'triggerun', 'triggerpostun',
|
|
|
|
+ 'pretrans', 'posttrans'):
|
|
|
|
if contains_buildroot(line):
|
2010-04-01 16:20:38 +02:00
|
|
|
printWarning(pkg, 'rpm-buildroot-usage',
|
|
|
|
'%' + current_section, line[:-1].strip())
|