diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-05-27 14:13:31 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-05-27 14:13:31 +0200 |
commit | d4c5f11f8ef619ec56ae1e532416bb3817442b1c (patch) | |
tree | 006f12d72d693d2752612a800b1bfa02dd4ab2c4 /apt-pkg | |
parent | 6db56565ecbaf9612791453b7225e9fcce1ecdd4 (diff) |
* added Debug::pkgDepCache::AutoInstall debug option
Diffstat (limited to 'apt-pkg')
-rw-r--r-- | apt-pkg/depcache.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apt-pkg/depcache.cc b/apt-pkg/depcache.cc index dd1c794c9..58d1d25e5 100644 --- a/apt-pkg/depcache.cc +++ b/apt-pkg/depcache.cc @@ -16,7 +16,8 @@ #include <apt-pkg/error.h> #include <apt-pkg/sptr.h> #include <apt-pkg/algorithms.h> - +#include <apt-pkg/configuration.h> + #include <apti18n.h> /*}}}*/ @@ -712,6 +713,10 @@ void pkgDepCache::MarkInstall(PkgIterator const &Pkg,bool AutoInst, if (InstPkg.end() == false) { + if(_config->FindB("Debug::pkgDepCache::AutoInstall",false) == true) + std::clog << "Installing " << InstPkg.Name() + << " as dep of " << Pkg.Name() + << std::endl; MarkInstall(InstPkg,true,Depth + 1); // Set the autoflag, after MarkInstall because MarkInstall unsets it |