summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/Debian.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Client/Debian.py')
-rw-r--r--src/lib/Client/Debian.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/lib/Client/Debian.py b/src/lib/Client/Debian.py
index f54300037..2bee81cbb 100644
--- a/src/lib/Client/Debian.py
+++ b/src/lib/Client/Debian.py
@@ -22,11 +22,12 @@ class ToolsetImpl(Bcfg2.Client.Toolset.Toolset):
# dup /dev/null on top of stdin
null = open('/dev/null', 'w+')
os.dup2(null.fileno(), sys.__stdin__.fileno())
- self.saferun("dpkg --force-confold --configure -a")
- if not self.setup['build']:
- self.saferun("/usr/sbin/dpkg-reconfigure -f noninteractive debconf < /dev/null")
- self.saferun("apt-get clean")
- self.saferun("apt-get -q=2 -y update")
+ if not self.setup['dryrun']:
+ self.saferun("dpkg --force-confold --configure -a")
+ if not self.setup['build']:
+ self.saferun("/usr/sbin/dpkg-reconfigure -f noninteractive debconf < /dev/null")
+ self.saferun("apt-get clean")
+ self.saferun("apt-get -q=2 -y update")
self.installed = {}
self.pkgwork = {'add':[], 'update':[], 'remove':[]}
for pkg in [cpkg for cpkg in self.cfg.findall(".//Package") if not cpkg.attrib.has_key('type')]: