From 424c3bc07b90cd626ee4bd43771a91fc7712e811 Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:52:51 +0000 Subject: Shuffled error checks to advoid strange warnings Author: jgg Date: 1999-02-15 05:24:35 GMT Shuffled error checks to advoid strange warnings --- cmdline/apt-get.cc | 5 +++-- 1 file 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 -- cgit v1.2.3