]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/packagemanager.h
* added APT::NeverAutoRemove (a list of regexp for package names that should never...
[apt.git] / apt-pkg / packagemanager.h
index da1f21e6ce90d6db3bb86b1a7d5fbd7b710c1db4..f95b2ab560f4a3a97f42291f1b4da34524fabf4b 100644 (file)
@@ -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;
    };