]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/depcache.cc
* apt-pkg/contrib/progress.cc
[apt.git] / apt-pkg / depcache.cc
index c6bf3185ae2b09bb4e093c6d91a02bf53f544b15..58d1d25e54ed7c2b633f39d69dee14010773589f 100644 (file)
@@ -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>    
                                                                        /*}}}*/
 
@@ -91,6 +92,9 @@ bool pkgDepCache::Init(OpProgress *Prog)
    }
    
    Update(Prog);
+
+   if(Prog != 0)
+      Prog->Done();
    
    return true;
 } 
@@ -709,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