summaryrefslogtreecommitdiff
path: root/cmdline/apt-get.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:51:52 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:51:52 +0000
commitf01fe790891daf085b3a16ce8be3498fcc329d6e (patch)
treed92fbce8e116f07610bde5a6540dd84169d99ab3 /cmdline/apt-get.cc
parent93552173b2a784d4964d1153c9e5136d62c3e42c (diff)
CDROM placeholder
Author: jgg Date: 1998-12-05 02:56:45 GMT CDROM placeholder
Diffstat (limited to 'cmdline/apt-get.cc')
-rw-r--r--cmdline/apt-get.cc22
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)
{