summaryrefslogtreecommitdiff
path: root/apt-pkg/packagemanager.h
diff options
context:
space:
mode:
Diffstat (limited to 'apt-pkg/packagemanager.h')
-rw-r--r--apt-pkg/packagemanager.h7
1 files changed, 4 insertions, 3 deletions
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 <string>
+#include <iostream>
#include <apt-pkg/pkgcache.h>
#include <apt-pkg/depcache.h>
@@ -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;
};