From a146c9273ae8e19b0fb8f74580a51c5b0a391ade Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:55:14 +0000 Subject: Remove fix Author: jgg Date: 1999-11-26 00:05:55 GMT Remove fix --- cmdline/apt-get.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'cmdline') diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc index 11b2d964b..99e41cb5e 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.89 1999/11/17 01:52:01 jgg Exp $ +// $Id: apt-get.cc,v 1.90 1999/11/26 00:05:55 jgg Exp $ /* ###################################################################### apt-get - Cover for dpkg @@ -794,7 +794,10 @@ bool TryToInstall(pkgCache::PkgIterator Pkg,pkgDepCache &Cache, // Check if there is something at all to install pkgDepCache::StateCache &State = Cache[Pkg]; - if (State.CandidateVer == 0) + if (Remove == true && Pkg->CurrentVer == 0) + return _error->Error("Package %s is not installed",Pkg.Name()); + + if (State.CandidateVer == 0 && Remove == false) { if (AllowFail == false) return false; -- cgit v1.2.3