From e759edebde85a087f8ec66dc926661830256ab03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Wed, 26 May 2010 16:35:20 +0200 Subject: [PATCH] do not run services on "osc update" by default. --- osc/core.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/osc/core.py b/osc/core.py index 4669085c..abe9670d 100644 --- a/osc/core.py +++ b/osc/core.py @@ -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()