mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-03 01:56:17 +01:00
- detect also project wide only source services during commit
This commit is contained in:
parent
e6f631ebe8
commit
caec4c2547
@ -1328,13 +1328,15 @@ class Package:
|
|||||||
|
|
||||||
print_request_list(self.apiurl, self.prjname, self.name)
|
print_request_list(self.apiurl, self.prjname, self.name)
|
||||||
|
|
||||||
if self.findfilebyname("_service"):
|
|
||||||
print 'Waiting for server side source service run',
|
|
||||||
u = makeurl(self.apiurl, ['source', self.prjname, self.name])
|
u = makeurl(self.apiurl, ['source', self.prjname, self.name])
|
||||||
|
first_run = True
|
||||||
while 1:
|
while 1:
|
||||||
f = http_GET(u)
|
f = http_GET(u)
|
||||||
sfilelist = ET.parse(f).getroot()
|
sfilelist = ET.parse(f).getroot()
|
||||||
s = sfilelist.find('serviceinfo')
|
s = sfilelist.find('serviceinfo')
|
||||||
|
if first_run:
|
||||||
|
print 'Waiting for server side source service run',
|
||||||
|
first_run = False
|
||||||
if s != None and s.get('code') == "running":
|
if s != None and s.get('code') == "running":
|
||||||
sys.stdout.write('.')
|
sys.stdout.write('.')
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
|
Loading…
Reference in New Issue
Block a user