forked from pool/rpmlint
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
31 lines
1.3 KiB
Diff
31 lines
1.3 KiB
Diff
Index: SpecCheck.py
|
|
===================================================================
|
|
--- SpecCheck.py.orig
|
|
+++ SpecCheck.py
|
|
@@ -414,6 +414,10 @@ class SpecCheck(AbstractCheck.AbstractCh
|
|
printWarning(pkg, 'comparison-operator-in-deptoken',
|
|
conf)
|
|
|
|
+ if current_section in ('post', 'postun'):
|
|
+ if line.find('%run_ldconfig') != -1:
|
|
+ printWarning(pkg, 'deprecated-use-of-%run_ldconfig')
|
|
+
|
|
if current_section == 'changelog':
|
|
for match in AbstractCheck.macro_regex.findall(line):
|
|
res = re.match('%+', match)
|
|
@@ -732,6 +736,14 @@ may break short circuit builds.''',
|
|
'''Make check or other automated regression test should be run in %check, as
|
|
they can be disabled with a rpm macro for short circuiting purposes.''',
|
|
|
|
+'deprecated-use-of-%run_ldconfig',
|
|
+'''According to the new SUSE Packaging Conventions, the use of %run_ldconfig
|
|
+is deprecated. Please use /sbin/ldconfig instead, or
|
|
+
|
|
+%post(un) -p /sbin/ldconfig
|
|
+
|
|
+in the case where ldconfig is the only command to be executed.''',
|
|
+
|
|
'macro-in-%changelog',
|
|
'''Macros are expanded in %changelog too, which can in unfortunate cases lead
|
|
to the package not building at all, or other subtle unexpected conditions that
|