summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2006-02-14 18:35:21 +0000
committerNarayan Desai <desai@mcs.anl.gov>2006-02-14 18:35:21 +0000
commita3fdb9b67c03c7b2aaac32d150a22dbcde3a966f (patch)
treea1c44128b12fff46c57f50bb350384d89d8db993
parent16a3f299ba1e6358e86d650e8d6b6e0bdc40a93b (diff)
downloadbcfg2-a3fdb9b67c03c7b2aaac32d150a22dbcde3a966f.tar.gz
bcfg2-a3fdb9b67c03c7b2aaac32d150a22dbcde3a966f.tar.bz2
bcfg2-a3fdb9b67c03c7b2aaac32d150a22dbcde3a966f.zip
make apt foreably remove packages
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1732 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r--src/lib/Client/Debian.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Client/Debian.py b/src/lib/Client/Debian.py
index 38e86c6d7..3c9a72c5a 100644
--- a/src/lib/Client/Debian.py
+++ b/src/lib/Client/Debian.py
@@ -122,7 +122,7 @@ class ToolsetImpl(Toolset):
if len(self.pkgwork) > 0:
if self.setup['remove'] in ['all', 'packages']:
self.CondDisplayList('verbose', "Removing packages", self.pkgwork['remove'])
- if not self.saferun("apt-get remove %s" % " ".join(self.pkgwork['remove']))[0]:
+ if not self.saferun("apt-get remove -y --force-yes %s" % " ".join(self.pkgwork['remove']))[0]:
self.pkgwork['remove'] = []
else:
self.CondDisplayList('verbose', "Need to remove packages:", self.pkgwork['remove'])