forked from pool/rpmlint
Ludwig Nussel
912bea2445
- rpmlint 1.8 update * python 3 fixes * Add support for file triggers * Mechanism to black list certain C calls * new error: non-devel-file-in-devel-package * appdata check configurable * project moved to github * Patches dropped: avoid-mismatched-libregex.diff filename-non-utf8-exception.diff fix-ghost-file-handling.diff save-content-to-an-array.diff fix-TmpFilesCheck-pattern-match.diff move-ghost-file-check-to-TmpFilesCh.diff OBS-URL: https://build.opensuse.org/request/show/346358 OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=353
26 lines
902 B
Diff
26 lines
902 B
Diff
From: Some One <nobody@opensuse.org>
|
|
Date: Thu, 9 Apr 2015 14:55:39 +0200
|
|
Subject: [PATCH] confusing-invalid-spec-name
|
|
|
|
# Confusing message. The problem is not that the file does not end
|
|
# with ".spec", but that there is a mismatch of specname and pkg name.
|
|
---
|
|
SpecCheck.py | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/SpecCheck.py b/SpecCheck.py
|
|
index 0d77a03..739410f 100644
|
|
--- a/SpecCheck.py
|
|
+++ b/SpecCheck.py
|
|
@@ -647,8 +647,8 @@ addDetails(
|
|
SPEC file to build a valid RPM package.''',
|
|
|
|
'invalid-spec-name',
|
|
-'''Your spec filename must end with '.spec'. If it's not the case, rename your
|
|
-file and rebuild your package.''',
|
|
+'''The spec file name (without the .spec suffix) must match the package name
|
|
+("Name:" tag). Either rename your package or the specfile.''',
|
|
|
|
'non-utf8-spec-file',
|
|
'''The character encoding of the spec file is not UTF-8. Convert it for
|