Browse Source

Fixed download only
Author: jgg
Date: 1998-12-05 04:30:34 GMT
Fixed download only

Arch Librarian 22 years ago
parent
commit
45b5fa67a8
1 changed files with 5 additions and 2 deletions
  1. 5 2
      cmdline/apt-get.cc

+ 5 - 2
cmdline/apt-get.cc

@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // -*- mode: cpp; mode: fold -*-
 // Description								/*{{{*/
 // Description								/*{{{*/
-// $Id: apt-get.cc,v 1.21 1998/12/05 02:56:45 jgg Exp $
+// $Id: apt-get.cc,v 1.22 1998/12/05 04:30:34 jgg Exp $
 /* ######################################################################
 /* ######################################################################
    
    
    apt-get - Cover for dpkg
    apt-get - Cover for dpkg
@@ -588,7 +588,10 @@ bool InstallPackages(CacheFile &Cache,bool ShwKept,bool Ask = true)
       cerr << "  " << (*I)->ErrorText << endl;
       cerr << "  " << (*I)->ErrorText << endl;
       Failed = true;
       Failed = true;
    }
    }
-      
+
+   if (_config->FindB("APT::Get::Download-Only",false) == true)
+      return true;
+   
    if (Failed == true && _config->FindB("APT::Fix-Missing",false) == false)
    if (Failed == true && _config->FindB("APT::Fix-Missing",false) == false)
    {
    {
       if (Transient == true)
       if (Transient == true)