summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorChristopher Baines <cbaines8@gmail.com>2011-08-12 12:22:17 +0100
committerChristopher Baines <cbaines8@gmail.com>2011-08-12 12:22:17 +0100
commit987d8d0315a315c74827ee2160671a30f5bc4e14 (patch)
tree4e1d58301da85cb5fa4af0eef80068053e90c06e /apt-pkg
parente844b947ab5c988fb6d6f8e5ebfa4e0eda856541 (diff)
Inproved debug with versioning
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/packagemanager.cc18
1 files changed, 13 insertions, 5 deletions
diff --git a/apt-pkg/packagemanager.cc b/apt-pkg/packagemanager.cc
index 2fe98b101..8fc571f2f 100644
--- a/apt-pkg/packagemanager.cc
+++ b/apt-pkg/packagemanager.cc
@@ -320,9 +320,11 @@ bool pkgPackageManager::ConfigureAll()
only shown when debuging*/
bool pkgPackageManager::SmartConfigure(PkgIterator Pkg)
{
- if (Debug)
- clog << "SmartConfigure " << Pkg.Name() << endl;
-
+ if (Debug) {
+ VerIterator InstallVer = VerIterator(Cache,Cache[Pkg].InstallVer);
+ clog << "SmartConfigure " << Pkg.Name() << InstallVer.VerStr() << endl;
+ }
+
VerIterator const instVer = Cache[Pkg].InstVerIter(Cache);
/* Because of the ordered list, most dependancies should be unpacked,
@@ -513,8 +515,14 @@ bool pkgPackageManager::SmartUnPack(PkgIterator Pkg)
}
bool pkgPackageManager::SmartUnPack(PkgIterator Pkg, bool const Immediate)
{
- if (Debug)
- clog << "SmartUnPack " << Pkg.Name() << endl;
+ if (Debug) {
+ clog << "SmartUnPack " << Pkg.Name();
+ VerIterator InstallVer = VerIterator(Cache,Cache[Pkg].InstallVer);
+ if (Pkg.CurrentVer() == 0)
+ cout << "(install version " << InstallVer.VerStr() << ")" << endl;
+ else
+ cout << "(replace version " << Pkg.CurrentVer().VerStr() << " with " << InstallVer.VerStr() << ")" << endl;
+ }
// Check if it is already unpacked
if (Pkg.State() == pkgCache::PkgIterator::NeedsConfigure &&