confusing-invalid-spec-name
authorAnas Nashif <anas.nashif@intel.com>
Wed, 6 Feb 2013 21:11:09 +0000 (13:11 -0800)
committerAnas Nashif <anas.nashif@intel.com>
Thu, 7 Feb 2013 01:32:17 +0000 (17:32 -0800)
# 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

index 8ddbfc4..77ded79 100644 (file)
@@ -601,8 +601,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