X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/254ce4b0cc0336de5a9b46c693673ef68d5628b6..22dcc318d978813b3c4d1ae1a1f41933d0e1d69b:/apt-pkg/packagemanager.h diff --git a/apt-pkg/packagemanager.h b/apt-pkg/packagemanager.h index da1f21e6c..f95b2ab56 100644 --- a/apt-pkg/packagemanager.h +++ b/apt-pkg/packagemanager.h @@ -28,6 +28,7 @@ #endif #include +#include #include #include @@ -101,11 +102,11 @@ class pkgPackageManager : protected pkgCache::Namespace bool goResult = Go(statusFd); if(goResult == false) return Failed; - + // if all was fine update the state file - if(Res == Completed) + if(Res == Completed) { Cache.writeStateFile(NULL); - + } return Res; };