2015-04-10 14:35:46 +00:00
|
|
|
From: Some One <nobody@opensuse.org>
|
|
|
|
Date: Thu, 9 Apr 2015 14:55:39 +0200
|
|
|
|
Subject: [PATCH] description-check.diff
|
|
|
|
|
2010-04-28 20:41:49 +00:00
|
|
|
===================================================================
|
2015-04-10 14:35:46 +00:00
|
|
|
---
|
|
|
|
TagsCheck.py | 7 +++++++
|
|
|
|
1 file changed, 7 insertions(+)
|
|
|
|
|
2017-09-28 11:35:09 +00:00
|
|
|
Index: rpmlint-rpmlint-1.10/TagsCheck.py
|
|
|
|
===================================================================
|
|
|
|
--- rpmlint-rpmlint-1.10.orig/TagsCheck.py
|
|
|
|
+++ rpmlint-rpmlint-1.10/TagsCheck.py
|
2017-09-28 20:18:14 +00:00
|
|
|
@@ -736,6 +736,9 @@ class TagsCheck(AbstractCheck.AbstractCh
|
2014-02-21 14:54:14 +00:00
|
|
|
else:
|
|
|
|
for lang in langs:
|
|
|
|
self.check_description(pkg, lang, ignored_words)
|
|
|
|
+
|
2017-09-30 07:51:17 +00:00
|
|
|
+ if len(Pkg.b2s(pkg[rpm.RPMTAG_DESCRIPTION]).partition('Authors:')[0]) - 4 < len(pkg[rpm.RPMTAG_SUMMARY]):
|
2009-09-16 16:41:21 +00:00
|
|
|
+ printWarning(pkg, 'description-shorter-than-summary')
|
2014-02-21 14:54:14 +00:00
|
|
|
else:
|
|
|
|
printError(pkg, 'no-description-tag')
|
|
|
|
|
2017-09-28 20:18:14 +00:00
|
|
|
@@ -1028,6 +1031,10 @@ Name tag.''',
|
2008-04-17 02:52:37 +00:00
|
|
|
'''The major number of the library isn't included in the package's name.
|
|
|
|
''',
|
|
|
|
|
|
|
|
+'description-shorter-than-summary',
|
2010-04-01 14:20:38 +00:00
|
|
|
+'''The package description should be longer than the summary. be a bit more
|
2008-04-17 02:52:37 +00:00
|
|
|
+verbose, please.''',
|
|
|
|
+
|
|
|
|
'no-provides',
|
2010-04-01 14:20:38 +00:00
|
|
|
'''Your library package doesn't provide the -devel name without the major
|
|
|
|
version included.''',
|