Fix openSUSE staging defaults
This commit is contained in:
parent
54237060ed
commit
dcb53ead4e
@ -32,7 +32,7 @@ from osc import conf
|
||||
DEFAULT = {
|
||||
r'openSUSE:(?P<project>[-\w\d:.]+)': {
|
||||
'staging': 'openSUSE:%(project)s:Staging',
|
||||
'staging-group': '%(project.lower)s-staging',
|
||||
'staging-group': 'factory-staging',
|
||||
'staging-archs': 'i586 x86_64 ppc64le',
|
||||
'nocleanup-packages': 'Test-DVD-x86_64 Test-DVD-ppc64le bootstrap-copy',
|
||||
'rings': 'openSUSE:%(project)s:Rings',
|
||||
@ -110,7 +110,7 @@ class Config(object):
|
||||
params = [set(d) for d in DEFAULT.values()]
|
||||
params = reduce(operator.__and__, params)
|
||||
if not all(p in conf.config[self.project] for p in params):
|
||||
msg = 'Please, add [%s] section in %s' % (self.project, self.conf_file)
|
||||
msg = 'Please, add [%s] section in %s, see %s for details' % (self.project, self.conf_file, __file__)
|
||||
raise Exception(msg)
|
||||
|
||||
def read_section(self, section, defaults):
|
||||
|
Loading…
x
Reference in New Issue
Block a user