have bootstrap_copy also in big staging prjs
Having a copy of the bootstrap repo is not strictly necessary but helps to fix problems - and we can unify the handling of the prjs Related issue: 1517
This commit is contained in:
parent
f4d1d8fcc4
commit
acc9872a67
@ -9,6 +9,7 @@ class FreezeCommand:
|
||||
|
||||
def __init__(self, api):
|
||||
self.api = api
|
||||
self.projectlinks = []
|
||||
|
||||
def set_links(self):
|
||||
url = self.api.makeurl(['source', self.prj, '_meta'])
|
||||
@ -16,7 +17,6 @@ class FreezeCommand:
|
||||
root = ET.parse(f).getroot()
|
||||
links = root.findall('link')
|
||||
links.reverse()
|
||||
self.projectlinks = []
|
||||
for link in links:
|
||||
self.projectlinks.append(link.get('project'))
|
||||
|
||||
@ -107,8 +107,6 @@ class FreezeCommand:
|
||||
|
||||
self.freeze_prjlinks()
|
||||
|
||||
if 'openSUSE:Factory:Rings:1-MinimalX' in self.projectlinks \
|
||||
and not 'openSUSE:Factory:Rings:0-Bootstrap' in self.projectlinks:
|
||||
self.set_bootstrap_copy()
|
||||
self.create_bootstrap_aggregate()
|
||||
print("waiting for scheduler to disable...")
|
||||
@ -124,7 +122,9 @@ class FreezeCommand:
|
||||
root = ET.Element('project', { 'name': prj })
|
||||
ET.SubElement(root, 'title')
|
||||
ET.SubElement(root, 'description')
|
||||
ET.SubElement(root, 'link', { 'project': 'openSUSE:Factory:Rings:1-MinimalX' })
|
||||
links = self.projectlinks or ['openSUSE:Factory:Rings:1-MinimalX']
|
||||
for lprj in links:
|
||||
ET.SubElement(root, 'link', { 'project': lprj })
|
||||
f = ET.SubElement(root, 'build')
|
||||
# this one stays
|
||||
ET.SubElement(f, 'disable', { 'repository': 'bootstrap_copy' })
|
||||
|
Loading…
x
Reference in New Issue
Block a user