2010-04-28 22:41:49 +02:00
|
|
|
Index: TagsCheck.py
|
|
|
|
===================================================================
|
|
|
|
--- TagsCheck.py.orig
|
2008-04-17 04:52:37 +02:00
|
|
|
+++ TagsCheck.py
|
2010-10-14 14:32:03 +02:00
|
|
|
@@ -708,6 +708,8 @@ class TagsCheck(AbstractCheck.AbstractCh
|
2010-04-01 16:20:38 +02:00
|
|
|
self._unexpanded_macros(pkg, 'Group', group)
|
2010-01-27 18:18:50 +01:00
|
|
|
if not group:
|
|
|
|
printError(pkg, 'no-group-tag')
|
2010-04-01 16:20:38 +02:00
|
|
|
+ elif pkg.name.find('-devel') != -1 and not group.startswith('Development/'):
|
|
|
|
+ printWarning(pkg, 'devel-package-with-non-devel-group', group)
|
|
|
|
elif VALID_GROUPS and group not in VALID_GROUPS:
|
|
|
|
printWarning(pkg, 'non-standard-group', group)
|
|
|
|
|
2010-10-14 14:32:03 +02:00
|
|
|
@@ -1008,6 +1010,10 @@ won't fool the specfile parser, and rebu
|
2010-04-01 16:20:38 +02:00
|
|
|
'''There is no Group tag in your package. You have to specify a valid group
|
|
|
|
in your spec file using the Group tag.''',
|
|
|
|
|
|
|
|
+'devel-package-with-non-devel-group',
|
|
|
|
+'''The package ends with -devel but does not have a RPM group starting with
|
|
|
|
+Development/''',
|
|
|
|
+
|
|
|
|
'non-standard-group',
|
|
|
|
'''The value of the Group tag in the package is not valid. Valid groups are:
|
|
|
|
"%s".''' % '", "'.join(VALID_GROUPS),
|