diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/Client/Debian.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/Client/Debian.py b/src/lib/Client/Debian.py index b9c621e2b..da096a2e8 100644 --- a/src/lib/Client/Debian.py +++ b/src/lib/Client/Debian.py @@ -217,9 +217,10 @@ class Debian(Toolset): else: self.VerifyEntry(child) self.CondPrint('debug', "Re-checking entry %s %s: %s" % (child.tag, child.get('name'), self.states[child])) - for svc in [x for x in entry.getchildren() if x.tag == 'Service']: - self.CondPrint('debug', "Restarting service %s" % (svc.get('name'))) - system('/etc/init.d/%s restart > /dev/null' % (svc.get('name'))) + if not self.setup['build']: + for svc in [x.get('name') for x in entry.getchildren() if x.tag == 'Service']: + self.CondPrint('debug', "Restarting service %s" % (svc)) + system('/etc/init.d/%s restart > /dev/null' % (svc)) if [x for x in entry.getchildren() if not self.states[x]]: if entry.tag == 'Bundle': |