summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2013-06-12 07:56:42 -0400
committerAnas Nashif <anas.nashif@intel.com>2013-06-12 07:56:42 -0400
commit2dce3217ba76820fc9b59eb86faab13ffd872667 (patch)
treef30072980627c3556377ae904a8042b9ed21b2ae
parent33528d38f22f81d388193ae92571e4b08bc99f7f (diff)
downloadrpmlint-2dce3217ba76820fc9b59eb86faab13ffd872667.tar.gz
rpmlint-2dce3217ba76820fc9b59eb86faab13ffd872667.tar.bz2
rpmlint-2dce3217ba76820fc9b59eb86faab13ffd872667.zip
add non-domains super groups
-rw-r--r--TagsCheck.py2
-rw-r--r--packaging/rpmgroups.config2
2 files changed, 3 insertions, 1 deletions
diff --git a/TagsCheck.py b/TagsCheck.py
index 61a86fb..066ee19 100644
--- a/TagsCheck.py
+++ b/TagsCheck.py
@@ -403,6 +403,7 @@ DEFAULT_INVALID_REQUIRES = ('^is$', '^not$', '^owned$', '^by$', '^any$', '^packa
VALID_GROUPS = Config.getOption('ValidGroups', None)
VALID_DOMAINS = Config.getOption('ValidDomains', None)
VALID_SUBDOMAINS = Config.getOption('ValidSubDomains', None)
+VALID_NONE_DOMAINS = Config.getOption('ValidNoneDomains', None)
if VALID_GROUPS is None: # get defaults from rpm package only if it's not set
VALID_GROUPS = Pkg.get_default_valid_rpmgroups()
@@ -720,6 +721,7 @@ class TagsCheck(AbstractCheck.AbstractCheck):
valid_groups = valid_groups + ("Development/%s" %(d), )
valid_groups = valid_groups + app_groups
+ valid_groups = valid_groups + VALID_NONE_DOMAINS
group = pkg[rpm.RPMTAG_GROUP]
self._unexpanded_macros(pkg, 'Group', group)
diff --git a/packaging/rpmgroups.config b/packaging/rpmgroups.config
index 5dccd88..fbebb31 100644
--- a/packaging/rpmgroups.config
+++ b/packaging/rpmgroups.config
@@ -1,6 +1,6 @@
from Config import *
-setOption("ValidNonDomains", (
+setOption("ValidNoneDomains", (
"Documentation" ,\
"Development" ,\
"Productivity" ,\