summaryrefslogtreecommitdiff
path: root/cmdline/apt-get.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2010-07-04 00:32:52 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2010-07-04 00:32:52 +0200
commit2fbfb111312257fa5fc29b0c2ed386fb712f960e (patch)
tree89eb4ec06fcf41a8927b4347c86e2f342922ce21 /cmdline/apt-get.cc
parent21d4c9f192b5af9c8edb39356712aac853881348 (diff)
prefer the Policy if it is built instead of the DepCache and
if DepCache is not available as fallback built the Policy
Diffstat (limited to 'cmdline/apt-get.cc')
-rw-r--r--cmdline/apt-get.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc
index 38b93e7e5..9a6c12ee0 100644
--- a/cmdline/apt-get.cc
+++ b/cmdline/apt-get.cc
@@ -768,6 +768,9 @@ struct TryToInstall {
void operator() (pkgCache::VerIterator const &Ver) {
pkgCache::PkgIterator Pkg = Ver.ParentPkg();
+
+std::clog << "INSTALL " << Pkg << " VER " << Ver.VerStr() << std::endl;
+
Cache->GetDepCache()->SetCandidateVersion(Ver);
pkgDepCache::StateCache &State = (*Cache)[Pkg];