summaryrefslogtreecommitdiff
path: root/cmdline
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:52:51 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:52:51 +0000
commit424c3bc07b90cd626ee4bd43771a91fc7712e811 (patch)
tree4fd208866c4dddfda418cc0f47e54e7b410024ae /cmdline
parentc57966727784610624631397f9547057e9cfc7aa (diff)
Shuffled error checks to advoid strange warnings
Author: jgg Date: 1999-02-15 05:24:35 GMT Shuffled error checks to advoid strange warnings
Diffstat (limited to 'cmdline')
-rw-r--r--cmdline/apt-get.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc
index 8e5d7356a..0c466a6f9 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.40 1999/02/08 07:30:50 jgg Exp $
+// $Id: apt-get.cc,v 1.41 1999/02/15 05:24:35 jgg Exp $
/* ######################################################################
apt-get - Cover for dpkg
@@ -522,7 +522,8 @@ bool InstallPackages(CacheFile &Cache,bool ShwKept,bool Ask = true)
// Create the package manager and prepare to download
pkgDPkgPM PM(Cache);
- if (PM.GetArchives(&Fetcher,&List,&Recs) == false)
+ if (PM.GetArchives(&Fetcher,&List,&Recs) == false ||
+ _error->PendingError() == true)
return false;
// Display statistics