From 16803b9eba9e88a2b995f06dfe7d3140e4add5d8 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Thu, 4 Nov 2004 17:31:13 +0000 Subject: move to using apt.conf (Logical change 1.146) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@649 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Client/Debian.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/lib') diff --git a/src/lib/Client/Debian.py b/src/lib/Client/Debian.py index 04574cf5d..ebc22adea 100644 --- a/src/lib/Client/Debian.py +++ b/src/lib/Client/Debian.py @@ -16,13 +16,14 @@ class Debian(Toolset): '''The Debian toolset implements package and service operations and inherits the rest from Toolset.Toolset''' __important__ = ["/etc/apt/sources.list", "/var/cache/debconf/config.dat", \ - "/var/cache/debconf/templates.dat", '/etc/passwd', '/etc/group'] + "/var/cache/debconf/templates.dat", '/etc/passwd', '/etc/group', \ + '/etc/apt/apt.conf'] def __init__(self, cfg, setup): Toolset.__init__(self, cfg, setup) self.cfg = cfg environ["DEBIAN_FRONTEND"] = 'noninteractive' - system("dpkg --configure -a") + system("dpkg --force-confold --configure -a") if not self.setup['build']: system("dpkg-reconfigure -f noninteractive debconf < /dev/null") system("apt-get -q=2 -y update") @@ -130,7 +131,7 @@ class Debian(Toolset): def Install(self): '''Correct detected misconfigurations''' self.CondPrint("verbose", "Installing needed configuration changes") - cmd = '''apt-get -o Dpkg::Options="--force-confold --force-overwrite" --reinstall -q=2 -y install %s''' + cmd = '''apt-get --reinstall -q=2 -y install %s''' print "Need to remove:", self.pkgwork['remove'] self.setup['quick'] = True # need installed for bundle verification -- cgit v1.2.3-1-g7c22