]> git.saurik.com Git - apt.git/commitdiff
* apt-pkg/packagemanager.cc, apt-pkg/deb/dpkgpm.cc:
authorMichael Vogt <michael.vogt@ubuntu.com>
Wed, 1 Oct 2008 16:35:23 +0000 (18:35 +0200)
committerMichael Vogt <michael.vogt@ubuntu.com>
Wed, 1 Oct 2008 16:35:23 +0000 (18:35 +0200)
  - move the state file writting into the Go() implementation
    of dpkgpm (closes: #498799)
* apt-pkg/algorithms.cc:
  - fix simulation performance drop (thanks to Ferenc Wagner
    for reporting the issue)

apt-pkg/algorithms.cc
apt-pkg/algorithms.h
apt-pkg/deb/dpkgpm.cc
apt-pkg/packagemanager.cc
debian/changelog

index eaab4c0ea07fa46d951350e3b59eee81fa81f161..59f994cd7e606e0ad091f78000530e83e48341aa 100644 (file)
@@ -37,7 +37,8 @@ pkgProblemResolver *pkgProblemResolver::This = 0;
    this is not necessary since the pkgCaches are fully shared now. */
 pkgSimulate::pkgSimulate(pkgDepCache *Cache) : pkgPackageManager(Cache),
                            iPolicy(Cache),
-                            Sim(&Cache->GetCache(),&iPolicy)
+                           Sim(&Cache->GetCache(),&iPolicy),
+                           group(Sim)
 {
    Sim.Init(0);
    Flags = new unsigned char[Cache->Head().PackageCount];
index defaed57d9355aec35834272070f80edcfbfac4c..d183cd21303bde0e77a6935d85cf8113d14d7968 100644 (file)
@@ -60,6 +60,7 @@ class pkgSimulate : public pkgPackageManager
    
    Policy iPolicy;
    pkgDepCache Sim;
+   pkgDepCache::ActionGroup group;
    
    // The Actuall installation implementation
    virtual bool Install(PkgIterator Pkg,string File);
index 70dd09bc6ca9d3e3b65d7689f9078b658a984f1e..4fad0fd522824379958d1093ee651f67c2597b39 100644 (file)
@@ -956,6 +956,8 @@ bool pkgDPkgPM::Go(int OutStatusFd)
 
    if (RunScripts("DPkg::Post-Invoke") == false)
       return false;
+
+   Cache.writeStateFile(NULL);
    return true;
 }
                                                                        /*}}}*/
index c391a6036915e2f78b26591e46624465e0e23c24..304d1c653e6b410893d777e9816733f7b3e4145d 100644 (file)
@@ -666,10 +666,6 @@ pkgPackageManager::DoInstallPostFork(int statusFd)
       if(goResult == false) 
         return Failed;
 
-      // if all was fine update the state file
-      if(Res == Completed) {
-        Cache.writeStateFile(NULL);
-      }
       return Res;
 };
 
index 8913ef4bf7f4858f2a64259e303ad03e36c94acb..796c5cff03c25225537c59266cfc080e127697d3 100644 (file)
@@ -1,4 +1,4 @@
-apt (UNRELEASED) experimental; urgency=low
+apt (0.7.15~exp3) UNRELEASED; urgency=low
 
   [Daniel Burrows]
   * apt-pkg/deb/dpkgpm.cc:
@@ -8,7 +8,15 @@ apt (UNRELEASED) experimental; urgency=low
       concern.  If it becomes a concern, we can sort the static array and
       use std::equal_range().  (Closes: #499322)
 
- --
+  [ Michael Vogt ]
+  * apt-pkg/packagemanager.cc, apt-pkg/deb/dpkgpm.cc:
+    - move the state file writting into the Go() implementation
+      of dpkgpm (closes: #498799)
+  * apt-pkg/algorithms.cc:
+    - fix simulation performance drop (thanks to Ferenc Wagner
+      for reporting the issue)
+
+ -- Michael Vogt <mvo@udebian.org>  Wed, 01 Oct 2008 18:09:49 +0200
 
 apt (0.7.15~exp2) experimental; urgency=low