From ab559b358d7c390ac63bfcf8d526ca44761aafc5 Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:53:49 +0000 Subject: Added --no-download Author: jgg Date: 1999-05-24 03:39:36 GMT Added --no-download --- cmdline/apt-get.cc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'cmdline') diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc index 043cc35bc..f745b18c2 100644 --- a/cmdline/apt-get.cc +++ b/cmdline/apt-get.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: apt-get.cc,v 1.60 1999/05/23 05:45:12 jgg Exp $ +// $Id: apt-get.cc,v 1.61 1999/05/24 03:39:37 jgg Exp $ /* ###################################################################### apt-get - Cover for dpkg @@ -589,8 +589,9 @@ bool InstallPackages(CacheFile &Cache,bool ShwKept,bool Ask = true,bool Saftey = } // Run it - if (Fetcher.Run() == false) - return false; + if (_config->FindB("APT::Get::No-Download",false) == false) + if( Fetcher.Run() == false) + return false; // Print out errors bool Failed = false; @@ -601,6 +602,8 @@ bool InstallPackages(CacheFile &Cache,bool ShwKept,bool Ask = true,bool Saftey = (*I)->Complete == true) continue; + (*I)->Finished(); + if ((*I)->Status == pkgAcquire::Item::StatIdle) { Transient = true; @@ -1397,6 +1400,7 @@ int main(int argc,const char *argv[]) {'f',"fix-broken","APT::Get::Fix-Broken",0}, {'u',"show-upgraded","APT::Get::Show-Upgraded",0}, {'m',"ignore-missing","APT::Get::Fix-Missing",0}, + {0,"no-download","APT::Get::No-Download",0}, {0,"fix-missing","APT::Get::Fix-Missing",0}, {0,"ignore-hold","APT::Ingore-Hold",0}, {0,"no-upgrade","APT::Get::no-upgrade",0}, -- cgit v1.2.3