diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:53:49 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:53:49 +0000 |
commit | ab559b358d7c390ac63bfcf8d526ca44761aafc5 (patch) | |
tree | f3e5de5cc903ac81f2df7b8992be8e780b707440 /cmdline/apt-get.cc | |
parent | f436bdc5fdd0db812484774d701e7d98b1e76224 (diff) |
Added --no-download
Author: jgg
Date: 1999-05-24 03:39:36 GMT
Added --no-download
Diffstat (limited to 'cmdline/apt-get.cc')
-rw-r--r-- | cmdline/apt-get.cc | 10 |
1 files changed, 7 insertions, 3 deletions
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}, |