1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-12 23:56:13 +01:00

do not run services on "osc update" by default.

This commit is contained in:
Adrian Schröter 2010-05-26 16:35:20 +02:00
parent 9cb348ffce
commit e759edebde

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()