Dirk Mueller 2017-09-29 05:05:52 +00:00 committed by Git OBS Bridge
parent 24e9388d4b
commit 9b471c162a

View File

@ -16,7 +16,7 @@ Index: rpmlint-rpmlint-1.10/TagsCheck.py
for lang in langs:
self.check_description(pkg, lang, ignored_words)
+
+ if len(pkg[rpm.RPMTAG_DESCRIPTION].partition('Authors:')[0])-4 < len(pkg[rpm.RPMTAG_SUMMARY]):
+ if len(Pkg.b2s(pkg[rpm.RPMTAG_DESCRIPTION]).partition('Authors:')[0])-4 < len(pkg[rpm.RPMTAG_SUMMARY]):
+ printWarning(pkg, 'description-shorter-than-summary')
else:
printError(pkg, 'no-description-tag')