From 63947e02a76802ebcceff1f62eb2ecccf2184c7fb5fdafdd2b4c8e53cabcfca7 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Fri, 7 Dec 2012 17:20:22 +0000 Subject: [PATCH] Accepting request 144581 from home:saschpe:branches:devel:openSUSE:Factory:rpmlint - Add suse-manpages-for-rc-scripts.patch: Don't complain about missing man-pages for rc-scripts OBS-URL: https://build.opensuse.org/request/show/144581 OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=159 --- rpmlint.changes | 6 ++++++ rpmlint.spec | 4 ++++ suse-manpages-for-rc-scripts.patch | 12 ++++++++++++ 3 files changed, 22 insertions(+) create mode 100644 suse-manpages-for-rc-scripts.patch diff --git a/rpmlint.changes b/rpmlint.changes index cdc6d10..a9faf6c 100644 --- a/rpmlint.changes +++ b/rpmlint.changes @@ -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 diff --git a/rpmlint.spec b/rpmlint.spec index 356d300..9dec162 100644 --- a/rpmlint.spec +++ b/rpmlint.spec @@ -117,6 +117,9 @@ Patch86: suse-rclink-check.diff Patch88: suse-speccheck-utf8.diff Patch89: suse-python-abi-check.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 %description @@ -190,6 +193,7 @@ source packages can be checked. %patch88 %patch89 %patch90 +%patch91 -p1 cp -p %{SOURCE2} . # Only move top-level python files chmod 0755 rpmlint-checks-master/*.py diff --git a/suse-manpages-for-rc-scripts.patch b/suse-manpages-for-rc-scripts.patch new file mode 100644 index 0000000..3e01918 --- /dev/null +++ b/suse-manpages-for-rc-scripts.patch @@ -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