SHA256
1
0
forked from pool/rpmlint
rpmlint/description-check.diff

24 lines
781 B
Diff
Raw Normal View History

--- TagsCheck.py
+++ TagsCheck.py
@@ -576,6 +576,9 @@
if not description:
printError(pkg, 'no-description-tag')
else:
+ if len(description.partition('Authors:')[0])-4 <= len(summary):
+ printWarning(pkg, 'description-shorter-than-summary')
+
spell_check(pkg, description, 'description')
for l in description.splitlines():
utf8l = l
@@ -786,6 +789,10 @@
'''The major number of the library isn't included in the package's name.
''',
+'description-shorter-than-summary',
+'''The package description is shorter than the summary. be a bit more
+verbose, please.''',
+
'no-provides',
'''Your library package doesn't provide the -devel name without the major version
included.''',