2015-04-10 16:35:46 +02:00
|
|
|
From 7209e0c7b0d04b939753c654ca17261be41b448b Mon Sep 17 00:00:00 2001
|
|
|
|
From: Some One <nobody@opensuse.org>
|
|
|
|
Date: Thu, 9 Apr 2015 14:55:39 +0200
|
|
|
|
Subject: [PATCH] description-check.diff
|
|
|
|
|
2010-04-28 22:41:49 +02:00
|
|
|
===================================================================
|
2015-04-10 16:35:46 +02:00
|
|
|
---
|
|
|
|
TagsCheck.py | 7 +++++++
|
|
|
|
1 file changed, 7 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/TagsCheck.py b/TagsCheck.py
|
|
|
|
index b1c4c7a..bc79283 100644
|
|
|
|
--- a/TagsCheck.py
|
|
|
|
+++ b/TagsCheck.py
|
|
|
|
@@ -716,6 +716,9 @@ class TagsCheck(AbstractCheck.AbstractCheck):
|
2014-02-21 15:54:14 +01:00
|
|
|
else:
|
|
|
|
for lang in langs:
|
|
|
|
self.check_description(pkg, lang, ignored_words)
|
|
|
|
+
|
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')
|
2014-02-21 15:54:14 +01:00
|
|
|
else:
|
|
|
|
printError(pkg, 'no-description-tag')
|
|
|
|
|
2015-04-10 16:35:46 +02:00
|
|
|
@@ -997,6 +1000,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.''',
|