diff options
author | Daniel Burrows <dburrows@debian.org> | 2005-11-17 22:54:08 +0000 |
---|---|---|
committer | Daniel Burrows <dburrows@debian.org> | 2005-11-17 22:54:08 +0000 |
commit | 168cd57ef1d2815cae103929c09bbfdb9a8f951a (patch) | |
tree | 6763f915495a0736cf49236a85b7fa118637edca /src | |
parent | 726158ebb2645dde3446ae6a7886db4724d5f687 (diff) | |
download | aptitude-168cd57ef1d2815cae103929c09bbfdb9a8f951a.tar.gz |
[aptitude @ Enhance the debugging output from mark_and_sweep.]
Diffstat (limited to 'src')
-rw-r--r-- | src/generic/apt/aptcache.cc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/generic/apt/aptcache.cc b/src/generic/apt/aptcache.cc index fbb94d02..549fa946 100644 --- a/src/generic/apt/aptcache.cc +++ b/src/generic/apt/aptcache.cc @@ -1335,7 +1335,8 @@ void aptitudeDepCache::mark_package(const PkgIterator &pkg, if(debug) std::cout << string(level*2, ' ') << "Cancelling the deletion of " - << pkg.Name() << " and installing its candidate version." << std::endl; + << pkg.Name() << " and installing its candidate version (" + << ver.VerStr() << ")" << std::endl; mark_install(pkg, false, false, NULL); } @@ -1343,8 +1344,9 @@ void aptitudeDepCache::mark_package(const PkgIterator &pkg, { if(debug) std::cout << string(level*2, ' ') - << "Reverting to the currently installed version of " - << pkg.Name() << std::endl; + << "Cancelling the deletion of " + << pkg.Name() << " and reverting to its currently installed version (" + << ver.VerStr() << ")" << std::endl; pre_package_state_changed(); MarkKeep(pkg); @@ -1502,6 +1504,9 @@ void aptitudeDepCache::mark_and_sweep(undo_group *undo) { bool do_delete=true; + if(debug) + std::cout << "*** Removing unused package " << p.Name() << std::endl; + if(do_delete) mark_delete(p, aptcfg->FindB(PACKAGE "::Purge-Unused", false), |