summaryrefslogtreecommitdiff
path: root/cmdline
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2009-06-29 18:13:23 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2009-06-29 18:13:23 +0200
commit9964a721855b74b4f6008d30ebc637198776ca04 (patch)
tree2dd7c4cbbb501bcbee43dedd49c5d8846d3a3600 /cmdline
parent8b4894fe9e917409f3ea4cbb189c1648f2cea4df (diff)
downloadapt-9964a721855b74b4f6008d30ebc637198776ca04.tar.gz
do not write state file in simulate mode (closes: #433007)
Diffstat (limited to 'cmdline')
-rw-r--r--cmdline/apt-get.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc
index faad2ed6..93b3a83d 100644
--- a/cmdline/apt-get.cc
+++ b/cmdline/apt-get.cc
@@ -1870,7 +1870,8 @@ bool DoInstall(CommandLine &CmdL)
// cache.commit()
if (AutoMarkChanged > 0 &&
Cache->DelCount() == 0 && Cache->InstCount() == 0 &&
- Cache->BadCount() == 0)
+ Cache->BadCount() == 0 &&
+ _config->FindB("APT::Get::Simulate",false) == false)
Cache->writeStateFile(NULL);
// See if we need to prompt