]> git.saurik.com Git - apt.git/blobdiff - cmdline/apt-get.cc
* depcache.cc:
[apt.git] / cmdline / apt-get.cc
index d4a6bee3215152324c2ec7a38ad3d03d5ce94dc3..6979fa8f2cd6fd991d20d5b8ffcdd49131615802 100644 (file)
@@ -1145,9 +1145,11 @@ bool TryToInstall(pkgCache::PkgIterator Pkg,pkgDepCache &Cache,
    else
       ExpectedInst++;
    
    else
       ExpectedInst++;
    
-   // Install it with autoinstalling enabled.
-   if (State.InstBroken() == true && BrokenFix == false)
+   // Install it with autoinstalling enabled (if we not respect the minial
+   // required deps or the policy)
+   if ((State.InstBroken() == true || State.InstPolicyBroken() == true) && BrokenFix == false)
       Cache.MarkInstall(Pkg,true);
       Cache.MarkInstall(Pkg,true);
+
    return true;
 }
                                                                        /*}}}*/
    return true;
 }
                                                                        /*}}}*/