forked from pool/rpmlint
Dirk Mueller
4fa0fae5a0
* Remove some outdated sysv init check, we have switched to systemd - add suse-skip-macro-expansion.diff: rename from remove-expand-macros.diff OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=483
14 lines
628 B
Diff
14 lines
628 B
Diff
--- rpmlint-rpmlint-1.10.orig/SpecCheck.py
|
|
+++ rpmlint-rpmlint-1.10/SpecCheck.py
|
|
@@ -235,7 +235,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())
|