]> git.saurik.com Git - apt.git/blobdiff - cmdline/apt-get.cc
* Silence the essential packages check if we are only d...
[apt.git] / cmdline / apt-get.cc
index 2dcee9ab4c2ca2bc9493966c85179419cffbb51e..75d375453928526787af418573d9a9aae56ea082 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: apt-get.cc,v 1.130 2003/05/19 17:30:12 doogie Exp $
+// $Id: apt-get.cc,v 1.131 2003/07/22 01:49:26 mdz Exp $
 /* ######################################################################
    
    apt-get - Cover for dpkg
@@ -685,7 +685,8 @@ bool InstallPackages(CacheFile &Cache,bool ShwKept,bool Ask = true,
    if (_config->FindB("APT::Get::Show-Upgraded",false) == true)
       ShowUpgraded(c1out,Cache);
    Fail |= !ShowDowngraded(c1out,Cache);
-   Essential = !ShowEssential(c1out,Cache);
+   if (_config->FindB("APT::Get::Download-Only",false) == false)
+        Essential = !ShowEssential(c1out,Cache);
    Fail |= Essential;
    Stats(c1out,Cache);