allow projects (42) to exclude archs (ppc64le)
This commit is contained in:
parent
50aeb49eb8
commit
555c23e10c
@ -33,6 +33,7 @@ DEFAULT = {
|
||||
r'openSUSE:(?P<project>[-\w\d]+)': {
|
||||
'staging': 'openSUSE:%(project)s:Staging',
|
||||
'staging-group': '%(project.lower)s-staging',
|
||||
'staging-archs': 'i586 x86_64 ppc64le',
|
||||
'rings': 'openSUSE:%(project)s:Rings',
|
||||
'nonfree': 'openSUSE:%(project)s:NonFree',
|
||||
'rebuild': 'openSUSE:%(project)s:Rebuild',
|
||||
@ -44,6 +45,7 @@ DEFAULT = {
|
||||
r'SUSE:(?P<project>.*$)': {
|
||||
'staging': 'SUSE:%(project)s:Staging',
|
||||
'staging-group': 'sle-staging-managers', # '%(project.lower)s-staging',
|
||||
'staging-archs': 'i586 x86_64',
|
||||
'rings': None,
|
||||
'nonfree': None,
|
||||
'rebuild': None,
|
||||
|
@ -179,29 +179,24 @@ class FreezeCommand(object):
|
||||
|
||||
r = ET.SubElement(root, 'repository', {'name': 'bootstrap_copy'})
|
||||
ET.SubElement(r, 'path', {'project': self.api.cstaging, 'repository': 'standard'})
|
||||
a = ET.SubElement(r, 'arch')
|
||||
a.text = 'i586'
|
||||
a = ET.SubElement(r, 'arch')
|
||||
a.text = 'x86_64'
|
||||
a = ET.SubElement(r, 'arch')
|
||||
a.text = 'ppc64le'
|
||||
for arch in self.api.cstaging_archs:
|
||||
a = ET.SubElement(r, 'arch')
|
||||
a.text = arch
|
||||
|
||||
r = ET.SubElement(root, 'repository', {'name': 'standard', 'linkedbuild': 'all', 'rebuild': 'direct'})
|
||||
ET.SubElement(r, 'path', {'project': prj, 'repository': 'bootstrap_copy'})
|
||||
a = ET.SubElement(r, 'arch')
|
||||
a.text = 'i586'
|
||||
a = ET.SubElement(r, 'arch')
|
||||
a.text = 'x86_64'
|
||||
a = ET.SubElement(r, 'arch')
|
||||
a.text = 'ppc64le'
|
||||
for arch in self.api.cstaging_archs:
|
||||
a = ET.SubElement(r, 'arch')
|
||||
a.text = arch
|
||||
|
||||
r = ET.SubElement(root, 'repository', {'name': 'images', 'linkedbuild': 'all', 'rebuild': 'direct'})
|
||||
ET.SubElement(r, 'path', {'project': prj, 'repository': 'standard'})
|
||||
a = ET.SubElement(r, 'arch')
|
||||
a.text = 'x86_64'
|
||||
|
||||
a = ET.SubElement(r, 'arch')
|
||||
a.text = 'ppc64le'
|
||||
if 'ppc64le' in self.api.cstaging_archs:
|
||||
a = ET.SubElement(r, 'arch')
|
||||
a.text = 'ppc64le'
|
||||
|
||||
return ET.tostring(root)
|
||||
|
||||
|
@ -51,12 +51,13 @@ class StagingAPI(object):
|
||||
# Store some prefix / data used in the code.
|
||||
self.cstaging = conf.config[project]['staging']
|
||||
self.cstaging_group = conf.config[project]['staging-group']
|
||||
self.cstaging_archs = conf.config[project]['staging-archs'].split(' ')
|
||||
self.crings = conf.config[project]['rings']
|
||||
self.cnonfree = conf.config[project]['nonfree']
|
||||
self.crebuild = conf.config[project]['rebuild']
|
||||
self.cproduct = conf.config[project]['product']
|
||||
self.copenqa = conf.config[project]['openqa']
|
||||
|
||||
|
||||
# If the project support rings, inititialize some variables.
|
||||
self.ring_packages = {}
|
||||
if self.crings:
|
||||
|
Loading…
x
Reference in New Issue
Block a user