]> git.saurik.com Git - apt.git/blobdiff - apt-private/private-install.cc
print error stack on failure of 'apt' solver
[apt.git] / apt-private / private-install.cc
index 107ed398e30f6a9dbe7a639d636fa5b9b927a967..f15ccc398e83cb4541997fbdcab7a0c454115008 100644 (file)
@@ -617,7 +617,8 @@ bool DoCacheManipulationFromCommandLine(CommandLine &CmdL, CacheFile &Cache,
       if (Fix != NULL)
       {
         // Call the scored problem resolver
-        Fix->Resolve(true);
+        if (Fix->Resolve(true) == false && Cache->BrokenCount() == 0)
+           return false;
       }
 
       // Now we check the state of the packages,