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