From d76383caeb849bb9082047b1b00caaea59d4b21c Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Wed, 29 Jun 2005 18:11:39 +0000 Subject: change postinstall command name to "name" 2005/06/29 13:08:26-05:00 anl.gov!desai add postinstall methods and integrate with bundles (Logical change 1.244) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1020 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Client/Toolset.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib/Client/Toolset.py b/src/lib/Client/Toolset.py index 3cc163dd8..7fc1552b3 100644 --- a/src/lib/Client/Toolset.py +++ b/src/lib/Client/Toolset.py @@ -401,7 +401,11 @@ class Toolset(object): return True self.CondPrint('verbose', "Entry %s has unknown file type" % entry.get('name')) return False - + + def VerifyPostInstall(self, entry): + '''Postinstall verification method''' + return True + def HandleBundleDeps(self): '''Handle bundles depending on what has been modified''' for entry in [child for child in self.structures if child.tag == 'Bundle']: @@ -422,6 +426,8 @@ class Toolset(object): self.VerifyEntry(child) self.CondPrint('debug', "Re-checked entry %s %s: %s" % (child.tag, child.get('name'), self.states[child])) + for postinst in [entry for entry in bchildren if entry.tag == 'PostInstall']: + system(postinst.get('name')) for svc in [svc for svc in bchildren if svc.tag == 'Service']: if self.setup['build']: # stop services in miniroot -- cgit v1.2.3-1-g7c22