2010-04-28 22:41:49 +02:00
|
|
|
Index: TagsCheck.py
|
|
|
|
===================================================================
|
|
|
|
--- TagsCheck.py.orig
|
2008-04-17 04:52:37 +02:00
|
|
|
+++ TagsCheck.py
|
2011-04-21 12:12:02 +02:00
|
|
|
@@ -702,6 +702,9 @@ class TagsCheck(AbstractCheck.AbstractCh
|
2010-04-01 16:20:38 +02:00
|
|
|
if not 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-04-01 16:20:38 +02:00
|
|
|
if not pkg[rpm.RPMTAG_HEADERI18NTABLE]:
|
|
|
|
self._unexpanded_macros(pkg, '%description', description)
|
|
|
|
else:
|
2011-04-21 12:12:02 +02:00
|
|
|
@@ -983,6 +986,10 @@ Name tag.''',
|
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',
|
2010-04-01 16:20:38 +02:00
|
|
|
+'''The package description should be longer than the summary. be a bit more
|
2008-04-17 04:52:37 +02:00
|
|
|
+verbose, please.''',
|
|
|
|
+
|
|
|
|
'no-provides',
|
2010-04-01 16:20:38 +02:00
|
|
|
'''Your library package doesn't provide the -devel name without the major
|
|
|
|
version included.''',
|