SHA256
1
0
forked from pool/rpmlint

Accepting request 144637 from devel:openSUSE:Factory:rpmlint

- Add suse-manpages-for-rc-scripts.patch: Don't complain about
  missing man-pages for rc-scripts (forwarded request 144581 from saschpe)

OBS-URL: https://build.opensuse.org/request/show/144637
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rpmlint?expand=0&rev=177
This commit is contained in:
Ismail Dönmez 2012-12-09 13:12:03 +00:00 committed by Git OBS Bridge
commit 5747574a82
3 changed files with 22 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Dec 7 12:53:43 UTC 2012 - saschpe@suse.de
- Add suse-manpages-for-rc-scripts.patch: Don't complain about
missing man-pages for rc-scripts
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Nov 29 10:24:22 UTC 2012 - dimstar@opensuse.org Thu Nov 29 10:24:22 UTC 2012 - dimstar@opensuse.org

View File

@ -117,6 +117,9 @@ Patch86: suse-rclink-check.diff
Patch88: suse-speccheck-utf8.diff Patch88: suse-speccheck-utf8.diff
Patch89: suse-python-abi-check.diff Patch89: suse-python-abi-check.diff
Patch90: python3_magic_number_fix.diff Patch90: python3_magic_number_fix.diff
# PATCH-FIX-OPENSUSE: saschpe@suse.de - Don't complain about missing man-pages for rc-scripts
Patch91: suse-manpages-for-rc-scripts.patch
%py_requires %py_requires
%description %description
@ -190,6 +193,7 @@ source packages can be checked.
%patch88 %patch88
%patch89 %patch89
%patch90 %patch90
%patch91 -p1
cp -p %{SOURCE2} . cp -p %{SOURCE2} .
# Only move top-level python files # Only move top-level python files
chmod 0755 rpmlint-checks-master/*.py chmod 0755 rpmlint-checks-master/*.py

View File

@ -0,0 +1,12 @@
diff -ruN a/FilesCheck.py b/FilesCheck.py
--- a/FilesCheck.py 2011-12-04 17:22:02.000000000 +0100
+++ b/FilesCheck.py 2012-12-07 13:48:46.544507295 +0100
@@ -948,7 +948,7 @@
for exe, paths in bindir_exes.items():
if len(paths) > 1:
printWarning(pkg, "duplicate-executable", exe, paths)
- if exe not in man_basenames:
+ if exe not in man_basenames and not exe.startswith("rc") and len(paths) is not 0:
printWarning(pkg, "no-manual-page-for-binary", exe)
# Create an object to enable the auto registration of the test