[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#458389: Improved debugging of MarkInstall.



Package: apt
Version: 0.7.9
Severity: wishlist
Tags: patch

  Enabling debugging of MarkInstall produces lines like

Installing libaiksaurus-1.2-0c2a as dep of lyx

  It would be helpful in some cases to know what sort of a dependency
was being followed.  The attached patch will change these lines to,
e.g.,

Installing libaiksaurus-1.2-0c2a as Depends of lyx

  Daniel


-- Package-specific info:

-- (/etc/apt/preferences present, but not submitted) --


-- (/etc/apt/sources.list present, but not submitted) --


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-3-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages apt depends on:
ii  debian-archive-keyring  2007.07.31       GnuPG archive keys of the Debian a
ii  libc6                   2.7-5            GNU C Library: Shared libraries
ii  libgcc1                 1:4.3-20071130-1 GCC support library
ii  libstdc++6              4.3-20071130-1   The GNU Standard C++ Library v3

apt recommends no packages.

-- no debconf information
=== modified file 'apt-pkg/depcache.cc'
--- apt-pkg/depcache.cc	2007-07-26 08:25:10 +0000
+++ apt-pkg/depcache.cc	2007-12-30 19:47:41 +0000
@@ -972,13 +972,14 @@
 	 {
 	    if(_config->FindB("Debug::pkgDepCache::AutoInstall",false) == true)
 	       std::clog << "Installing " << InstPkg.Name() 
-			 << " as dep of " << Pkg.Name() 
+			 << " as " << Start.DepType() << " of " << Pkg.Name() 
 			 << std::endl;
  	    // now check if we should consider it a automatic dependency or not
  	    if(Pkg.Section() && ConfigValueInSubTree("APT::Never-MarkAuto-Sections", Pkg.Section()))
  	    {
  	       if(_config->FindB("Debug::pkgDepCache::AutoInstall",false) == true)
- 		  std::clog << "Setting NOT as auto-installed (direct dep of pkg in APT::Never-MarkAuto-Section)" << std::endl;
+ 		  std::clog << "Setting NOT as auto-installed (direct "
+			    << Start.DepType() << " of pkg in APT::Never-MarkAuto-Section)" << std::endl;
  	       MarkInstall(InstPkg,true,Depth + 1, true);
  	    }
  	    else 


Reply to: