1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-23 21:36:13 +01:00

- detect also project wide only source services during commit

This commit is contained in:
Adrian Schröter 2011-07-04 12:05:47 +02:00
parent e6f631ebe8
commit caec4c2547

View File

@ -1328,21 +1328,23 @@ class Package:
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])
while 1:
f = http_GET(u)
sfilelist = ET.parse(f).getroot()
s = sfilelist.find('serviceinfo')
if s != None and s.get('code') == "running":
sys.stdout.write('.')
sys.stdout.flush()
else:
break
print ""
rev=self.latest_rev()
self.update(rev=rev)
u = makeurl(self.apiurl, ['source', self.prjname, self.name])
first_run = True
while 1:
f = http_GET(u)
sfilelist = ET.parse(f).getroot()
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":
sys.stdout.write('.')
sys.stdout.flush()
else:
break
print ""
rev=self.latest_rev()
self.update(rev=rev)
def __write_storelist(self, name, data):