do not write state file in simulate mode (closes: #433007)
authorMichael Vogt <michael.vogt@ubuntu.com>
Mon, 29 Jun 2009 16:13:23 +0000 (18:13 +0200)
committerMichael Vogt <michael.vogt@ubuntu.com>
Mon, 29 Jun 2009 16:13:23 +0000 (18:13 +0200)
cmdline/apt-get.cc
debian/changelog

index faad2ed..93b3a83 100644 (file)
@@ -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
index d1959c0..dd79639 100644 (file)
@@ -28,6 +28,7 @@ apt (0.7.22) UNRELEASED; urgency=low
     (closes: #87520)
   * add Debug::pkgProblemResolver::ShowScores and make the scores
     adjustable
+  * do not write state file in simulate mode (closes: #433007)
 
   [ Julian Andres Klode ]
   * apt-pkg/contrib/configuration.cc: Fix a small memory leak in