diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2005-06-24 09:58:47 +0000 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2005-06-24 09:58:47 +0000 |
commit | d36ab88eb8a5e490e4a817b87f20cb3f890e0da1 (patch) | |
tree | d4894e6c33fa0a6f9467a5696e907f0a12e3843e /apt-pkg/packagemanager.cc | |
parent | 80fa0d8a1a77f4dab696dcf11d1908ecda761fab (diff) |
* write the state file after a successfull commit from the pkgManager
Diffstat (limited to 'apt-pkg/packagemanager.cc')
-rw-r--r-- | apt-pkg/packagemanager.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apt-pkg/packagemanager.cc b/apt-pkg/packagemanager.cc index a08ccd602..a97c94fdf 100644 --- a/apt-pkg/packagemanager.cc +++ b/apt-pkg/packagemanager.cc @@ -637,6 +637,11 @@ pkgPackageManager::OrderResult pkgPackageManager::DoInstall() if (Res != Failed) if (Go() == false) return Failed; + + // if all was fine update the state file + if(Res == Completed) + Cache.writeStateFile(NULL); + return Res; } /*}}}*/ |