summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:55:14 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:55:14 +0000
commita146c9273ae8e19b0fb8f74580a51c5b0a391ade (patch)
treec030b122be073c3e6d290ac9da2368c0df38dcb5
parent3fa81a4ac2ccf65cb7803e1f7c32b077ebb445a1 (diff)
downloadapt-a146c9273ae8e19b0fb8f74580a51c5b0a391ade.tar.gz
Remove fix
Author: jgg Date: 1999-11-26 00:05:55 GMT Remove fix
-rw-r--r--cmdline/apt-get.cc7
-rw-r--r--debian/changelog3
2 files changed, 7 insertions, 3 deletions
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;
diff --git a/debian/changelog b/debian/changelog
index 5ea75f6d4..38633457d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,7 +5,8 @@ apt (0.3.14.1) unstable; urgency=low
* Fixed buffer overflow for wide terminal sizes. Closes: #50295
* Made -s and clean not do anything. Closes: #50238
* Problem with Protected packages and the new OR code.
- * /usr/share/doc stuff. Closes: #51017, #50228
+ * /usr/share/doc stuff. Closes: #51017, #50228, #51141
+ * Remove doesn't require a package to be installable. Closes: #51175
-- Ben Gertzfield <che@debian.org> Sun, 7 Nov 1999 20:21:25 -0800