Dirk Mueller
3073721c60
* rpmdiff: Teach rpmdiff about pretrans and posttrans * SpecCheck.py: merge patch from #97, using BuildArch with something else than Noarch is likely a error and causing issues. * FilesCheck.py: Add Python 3.3 magic number * FilesCheck.py, InitScriptCheck.py, MenuCheck.py, Pkg.py, PostCheck.py: Prepare for rpm-python possibly returning script progs as arrays. OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=133
16 lines
674 B
Diff
16 lines
674 B
Diff
Index: SpecCheck.py
|
|
===================================================================
|
|
--- SpecCheck.py.orig
|
|
+++ SpecCheck.py
|
|
@@ -224,7 +224,9 @@ class SpecCheck(AbstractCheck.AbstractCh
|
|
|
|
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())
|