diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2006-02-14 18:35:21 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2006-02-14 18:35:21 +0000 |
commit | a3fdb9b67c03c7b2aaac32d150a22dbcde3a966f (patch) | |
tree | a1c44128b12fff46c57f50bb350384d89d8db993 | |
parent | 16a3f299ba1e6358e86d650e8d6b6e0bdc40a93b (diff) | |
download | bcfg2-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.py | 2 |
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']) |