1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-27 02:16:12 +01:00

Merge branch 'master' of gitorious.org:opensuse/osc

This commit is contained in:
Juergen Weigert 2010-05-26 16:40:11 +02:00
commit bbfa703d09

View File

@ -313,6 +313,8 @@ class Serviceinfo:
msg += "Maybe try this: zypper in obs-server-" + name
raise oscerr.APIError(msg)
c = "/usr/lib/obs/service/" + call + " --outdir " + temp_dir
if conf.config['verbose'] > 1:
print "Run source service:", c
ret = subprocess.call(c, shell=True)
if ret != 0:
print "ERROR: service call failed: " + c
@ -1475,9 +1477,6 @@ rev: %s
#print ljust(p.name, 45), 'At revision %s.' % p.rev
print 'At revision %s.' % self.rev
if not service_files:
self.run_source_services()
def run_source_services(self):
if self.filenamelist.count('_service'):
service = ET.parse(os.path.join(self.absdir, '_service')).getroot()