config: Allow comps_file for any gather_source

It only affects gathering packages when gather_source is set to comps,
but it could still make sense to include the file in the repository even
if the not used for gathering.

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2017-10-18 15:22:41 +02:00
parent 68fdef451c
commit 2819311d6e
2 changed files with 1 additions and 3 deletions

View File

@ -1138,7 +1138,6 @@ CONFIG_DEPS = {
"gather_source": { "gather_source": {
"conflicts": [ "conflicts": [
(lambda val: val != 'json', ['gather_source_mapping']), (lambda val: val != 'json', ['gather_source_mapping']),
(lambda val: val != 'comps', ['comps_file']),
], ],
"requires": [ "requires": [
(lambda val: val == 'json', ['gather_source_mapping']), (lambda val: val == 'json', ['gather_source_mapping']),

View File

@ -247,8 +247,7 @@ class GatherConfigTestCase(ConfigTestCase):
self.assertValidation( self.assertValidation(
cfg, cfg,
[checks.REQUIRES.format('gather_source', 'json', 'gather_source_mapping'), [checks.REQUIRES.format('gather_source', 'json', 'gather_source_mapping')])
checks.CONFLICTS.format('gather_source', 'json', 'comps_file')])
class OSBSConfigTestCase(ConfigTestCase): class OSBSConfigTestCase(ConfigTestCase):