1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-20 01:06:17 +02:00

- update local copy after checkin if source service is there

This commit is contained in:
Adrian Schröter 2011-05-03 16:44:20 +02:00
parent 3e4424d222
commit e120cd6b39

View File

@ -1314,6 +1314,21 @@ 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.get('code') == "running":
print '.',
else:
break
self.update()
print " updated"
def __write_storelist(self, name, data):
if len(data) == 0:
try: