osclib/request_splitter: allow special packages to be empty.
This commit is contained in:
parent
41846c5ebe
commit
3d43985d19
@ -16,7 +16,7 @@ class RequestSplitter(object):
|
||||
self.request_age_threshold = int(self.config.get('splitter-request-age-threshold', 55 * 60))
|
||||
self.staging_age_max = int(self.config.get('splitter-staging-age-max', 8 * 60 * 60))
|
||||
special_packages= self.config.get('splitter-special-packages')
|
||||
if special_packages:
|
||||
if special_packages is not None:
|
||||
StrategySpecial.PACKAGES = special_packages.split(' ')
|
||||
|
||||
self.requests_ignored = self.api.get_ignored_requests()
|
||||
@ -480,6 +480,7 @@ class StrategyQuick(StrategyNone):
|
||||
splitter.filter_add('not(./review[not(@by_user="leaper" or @by_group="factory-staging")])')
|
||||
|
||||
class StrategySpecial(StrategyNone):
|
||||
# Configurable via splitter-special-packages.
|
||||
PACKAGES = [
|
||||
'gcc',
|
||||
'gcc7',
|
||||
|
Loading…
x
Reference in New Issue
Block a user