X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/254ce4b0cc0336de5a9b46c693673ef68d5628b6..899d08fea9e10d617afaa42f51f4abda76fc508f:/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; };