SHA256
1
0
forked from pool/rpmlint
rpmlint/description-check.diff
OBS User autobuild eaf5a8d432 Accepting request 20532 from Base:System
Copy from Base:System/rpmlint based on submit request 20532 from user dirkmueller

OBS-URL: https://build.opensuse.org/request/show/20532
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rpmlint?expand=0&rev=46
2009-09-16 16:41:21 +00:00

24 lines
781 B
Diff

--- 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.''',