summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2006-08-29 15:04:27 +0000
committerNarayan Desai <desai@mcs.anl.gov>2006-08-29 15:04:27 +0000
commit1a014440820315f7629b1aca21fdb156b467d36c (patch)
treeb47865c522cfb3b40489c46f79c3b8d7487af0b3 /src
parent7e54a98925d75a840753588f7e5e7609858fcd73 (diff)
downloadbcfg2-1a014440820315f7629b1aca21fdb156b467d36c.tar.gz
bcfg2-1a014440820315f7629b1aca21fdb156b467d36c.tar.bz2
bcfg2-1a014440820315f7629b1aca21fdb156b467d36c.zip
Fix pkgrm to not prompt the user
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2133 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r--src/lib/Client/Solaris.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Client/Solaris.py b/src/lib/Client/Solaris.py
index dcfa90998..7e3bedb35 100644
--- a/src/lib/Client/Solaris.py
+++ b/src/lib/Client/Solaris.py
@@ -188,7 +188,8 @@ class ToolsetImpl(Toolset):
sysvrmpkgs = [pkg for pkg in self.pkgwork['remove'] if self.ptypes[pkg] == 'sysv']
enrmpkgs = [pkg for pkg in self.pkgwork['remove'] if self.ptypes[pkg] == 'encap']
if sysvrmpkgs:
- if not self.saferun("/usr/sbin/pkgrm -n %s" % " ".join(sysvrmpkgs))[0]:
+ if not self.saferun("/usr/sbin/pkgrm -a %s -n %s" % \
+ (self.noaskname, " ".join(sysvrmpkgs)))[0]:
[self.pkgwork['remove'].remove(pkg) for pkg in sysvrmpkgs]
if enrmpkgs:
if not self.saferun("/local/sbin/epkg -l -q -r %s" % " ".join(enrmpkgs))[0]: