2008-04-17 04:52:37 +02:00
|
|
|
--- TagsCheck.py
|
|
|
|
+++ TagsCheck.py
|
2010-01-27 18:18:50 +01:00
|
|
|
@@ -616,6 +616,9 @@
|
|
|
|
if not pkg[rpm.RPMTAG_DESCRIPTION]:
|
2009-09-16 18:41:21 +02:00
|
|
|
printError(pkg, 'no-description-tag')
|
|
|
|
else:
|
2010-01-27 18:18:50 +01:00
|
|
|
+ if len(pkg[rpm.RPMTAG_DESCRIPTION].partition('Authors:')[0])-4 < len(pkg[rpm.RPMTAG_SUMMARY]):
|
2009-09-16 18:41:21 +02:00
|
|
|
+ printWarning(pkg, 'description-shorter-than-summary')
|
2008-04-17 04:52:37 +02:00
|
|
|
+
|
2010-01-27 18:18:50 +01:00
|
|
|
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 @@
|
2008-04-17 04:52:37 +02:00
|
|
|
'''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.''',
|