summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2007-02-01 00:53:22 +0000
committerNarayan Desai <desai@mcs.anl.gov>2007-02-01 00:53:22 +0000
commit8f945d48c51b129f0ac3ed260f75890147d40c9e (patch)
treeb5cb0b6c8700454908e0815342f228a3275f1292
parentf55672fedc4b898f92dd0075b140cc72492a7d53 (diff)
downloadbcfg2-8f945d48c51b129f0ac3ed260f75890147d40c9e.tar.gz
bcfg2-8f945d48c51b129f0ac3ed260f75890147d40c9e.tar.bz2
bcfg2-8f945d48c51b129f0ac3ed260f75890147d40c9e.zip
Fix blastwave packages (dont use the sysv constructor)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2747 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r--src/lib/Client/Tools/Blast.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/Client/Tools/Blast.py b/src/lib/Client/Tools/Blast.py
index 6133ab2c1..b4f00db6c 100644
--- a/src/lib/Client/Tools/Blast.py
+++ b/src/lib/Client/Tools/Blast.py
@@ -12,6 +12,15 @@ class Blast(Bcfg2.Client.Tools.SYSV.SYSV):
__execs__ = ['/opt/csw/bin/pkg-get']
__handles__ = [('Package', 'blast')]
+ def __init__(self, logger, setup, config, states):
+ # dont use the sysv constructor
+ Bcfg2.Client.Tools.PkgTool.__init__(self, logger, setup, config, states)
+ self.noaskname = tempfile.mktemp()
+ try:
+ open(self.noaskname, 'w+').write(Bcfg2.Client.Tools.SYSV.noask)
+ except:
+ pass
+
# VerifyPackage comes from Bcfg2.Client.Tools.SYSV
# Install comes from Bcfg2.Client.Tools.PkgTool
# Extra comes from Bcfg2.Client.Tools.Tool