]> 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 15:55:05 +0000 (17:55 +0200)
committerMichael Vogt <michael.vogt@ubuntu.com>
Wed, 1 Oct 2008 15:55:05 +0000 (17:55 +0200)
  - move the state file writting into the Go() implementation
    of dpkgpm (closes: #498799)

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

index 2abb3a0ef0ed3877c25f8f035463acbaeb46a7f2..c9af2f40121994c188bf751b35179dbca9d046c0 100644 (file)
@@ -927,6 +927,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 9ccb807c326eedcdafa8ffeac793e3839e1cc024..46d01bdf3dbb90d059bd6ebfc39745d317ac0d94 100644 (file)
@@ -45,6 +45,9 @@ apt (0.7.15) UNRELEASED; urgency=low
   * apt-pkg/pkgcachegen.cc:
     - do not add multiple identical descriptions for the same 
       language (closes: #400768)
+  * apt-pkg/packagemanager.cc, apt-pkg/deb/dpkgpm.cc:
+    - move the state file writting into the Go() implementation
+      of dpkgpm (closes: #498799)
   
   [ Dereck Wonnacott ]
   * apt-ftparchive might write corrupt Release files (LP: #46439)