From caec4c2547faf880635dc31bb13efd0af443623d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Mon, 4 Jul 2011 12:05:47 +0200 Subject: [PATCH] - detect also project wide only source services during commit --- osc/core.py | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/osc/core.py b/osc/core.py index 5c4f120f..f0bac022 100644 --- a/osc/core.py +++ b/osc/core.py @@ -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):