summaryrefslogtreecommitdiff
path: root/apt-pkg/packagemanager.h
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2005-06-29 11:01:19 +0000
committerMichael Vogt <michael.vogt@ubuntu.com>2005-06-29 11:01:19 +0000
commite23e673308e24ccbed5afa04179ade52d408db87 (patch)
tree1cbfb696781d0742f42d5ad780d4a04640dd0d0e /apt-pkg/packagemanager.h
parent0a57c0f0e4d0bc3474ce4d2101f36a997891d30d (diff)
parentc024fee6fd45c7aff4732370ee48d660284f4933 (diff)
downloadapt-e23e673308e24ccbed5afa04179ade52d408db87.tar.gz
* merged with ubuntu, only use the pkgCache::Flag::Auto flag for automatically installed packages
Patches applied: * apt@packages.debian.org/apt--main--0--patch-98 Install only one keyring on each branch (Closes: #316119) * apt@packages.debian.org/apt--main--0--patch-99 Finalize 0.6.39 * apt@packages.debian.org/apt--ubuntu--0--patch-7 Merge with mainline * apt@packages.debian.org/apt--ubuntu--0--patch-8 install only the ubuntu keyring * apt@packages.debian.org/apt--ubuntu--0--patch-9 Finalize 0.6.39 * apt@packages.debian.org/apt--ubuntu--0--patch-10 Merge with mainline * apt@packages.debian.org/apt--ubuntu--0--patch-11 Update configure.in
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;
};