From: Arch Librarian Date: Mon, 20 Sep 2004 16:52:51 +0000 (+0000) Subject: Shuffled error checks to advoid strange warnings X-Git-Tag: 0.7.24ubuntu1~1471 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/424c3bc07b90cd626ee4bd43771a91fc7712e811?ds=inline Shuffled error checks to advoid strange warnings Author: jgg Date: 1999-02-15 05:24:35 GMT Shuffled error checks to advoid strange warnings --- 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