diff options
Diffstat (limited to 'cmdline')
-rw-r--r-- | cmdline/apt-get.cc | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc index 24fb36d46..31dfe97c1 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.20 1998/11/27 01:52:58 jgg Exp $ +// $Id: apt-get.cc,v 1.21 1998/12/05 02:56:45 jgg Exp $ /* ###################################################################### apt-get - Cover for dpkg @@ -570,20 +570,36 @@ bool InstallPackages(CacheFile &Cache,bool ShwKept,bool Ask = true) // Print out errors bool Failed = false; + bool Transient = false; for (pkgAcquire::Item **I = Fetcher.ItemsBegin(); I != Fetcher.ItemsEnd(); I++) { if ((*I)->Status == pkgAcquire::Item::StatDone && (*I)->Complete == true) continue; + if ((*I)->Status == pkgAcquire::Item::StatIdle) + { + Transient = true; + Failed = true; + continue; + } + cerr << "Failed to fetch " << (*I)->Describe() << endl; cerr << " " << (*I)->ErrorText << endl; Failed = true; } - + if (Failed == true && _config->FindB("APT::Fix-Missing",false) == false) + { + if (Transient == true) + { + c2out << "Upgrading with disk swapping is not supported in this version." << endl; + c2out << "Try running multiple times with --fix-missing" << endl; + } + return _error->Error("Unable to fetch some archives, maybe try with --fix-missing?"); - + } + // Try to deal with missing package files if (PM.FixMissing() == false) { |