summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2005-06-29 18:11:39 +0000
committerNarayan Desai <desai@mcs.anl.gov>2005-06-29 18:11:39 +0000
commitd76383caeb849bb9082047b1b00caaea59d4b21c (patch)
treee38b543191c8dc68e878e049d00420e4e061462a /src
parent5cb9c2a6d352daeb0b784fee8ec9d88aa4197982 (diff)
downloadbcfg2-d76383caeb849bb9082047b1b00caaea59d4b21c.tar.gz
bcfg2-d76383caeb849bb9082047b1b00caaea59d4b21c.tar.bz2
bcfg2-d76383caeb849bb9082047b1b00caaea59d4b21c.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/lib/Client/Toolset.py8
1 files changed, 7 insertions, 1 deletions
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