mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-23 02:32:13 +01:00
- detect also project wide only source services during commit
This commit is contained in:
parent
58bee5223a
commit
3c4a19b963
32
osc/core.py
32
osc/core.py
@ -1328,21 +1328,23 @@ class Package:
|
|||||||
|
|
||||||
print_request_list(self.apiurl, self.prjname, self.name)
|
print_request_list(self.apiurl, self.prjname, self.name)
|
||||||
|
|
||||||
if self.findfilebyname("_service"):
|
u = makeurl(self.apiurl, ['source', self.prjname, self.name])
|
||||||
print 'Waiting for server side source service run',
|
first_run = True
|
||||||
u = makeurl(self.apiurl, ['source', self.prjname, self.name])
|
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:
|
||||||
if s != None and s.get('code') == "running":
|
print 'Waiting for server side source service run',
|
||||||
sys.stdout.write('.')
|
first_run = False
|
||||||
sys.stdout.flush()
|
if s != None and s.get('code') == "running":
|
||||||
else:
|
sys.stdout.write('.')
|
||||||
break
|
sys.stdout.flush()
|
||||||
print ""
|
else:
|
||||||
rev=self.latest_rev()
|
break
|
||||||
self.update(rev=rev)
|
print ""
|
||||||
|
rev=self.latest_rev()
|
||||||
|
self.update(rev=rev)
|
||||||
|
|
||||||
|
|
||||||
def __write_storelist(self, name, data):
|
def __write_storelist(self, name, data):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user