forked from pool/rpmlint
Copy from Base:System/rpmlint based on submit request 30231 from user lnussel OBS-URL: https://build.opensuse.org/request/show/30231 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rpmlint?expand=0&rev=50
24 lines
885 B
Diff
24 lines
885 B
Diff
--- TagsCheck.py
|
|
+++ TagsCheck.py
|
|
@@ -616,6 +616,9 @@
|
|
if not pkg[rpm.RPMTAG_DESCRIPTION]:
|
|
printError(pkg, 'no-description-tag')
|
|
else:
|
|
+ if len(pkg[rpm.RPMTAG_DESCRIPTION].partition('Authors:')[0])-4 < len(pkg[rpm.RPMTAG_SUMMARY]):
|
|
+ printWarning(pkg, 'description-shorter-than-summary')
|
|
+
|
|
for lang in pkg[rpm.RPMTAG_HEADERI18NTABLE]:
|
|
self.check_description(pkg, lang)
|
|
res = AbstractCheck.macro_regex.search(pkg[rpm.RPMTAG_DESCRIPTION])
|
|
@@ -881,6 +884,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.''',
|