diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:51:40 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:51:40 +0000 |
commit | 07801a6de143e56683413789f4e031e051f24536 (patch) | |
tree | 827529e6304bd7c3b9f271ff7f70dfb2decca495 /cmdline | |
parent | 30d3bf59b326d61373a5802906eaa53ab0d81fb8 (diff) |
Small tweaks to no install candidate warning
Author: jgg
Date: 1998-11-24 02:35:32 GMT
Small tweaks to no install candidate warning
Diffstat (limited to 'cmdline')
-rw-r--r-- | cmdline/apt-get.cc | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc index c90c0ed54..42ef548ec 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.18 1998/11/23 07:03:13 jgg Exp $ +// $Id: apt-get.cc,v 1.19 1998/11/24 02:35:32 jgg Exp $ /* ###################################################################### apt-get - Cover for dpkg @@ -736,6 +736,16 @@ bool DoInstall(CommandLine &CmdL) c1out << "Package " << S << " has no available version, but exists in the database." << endl; c1out << "This typically means that the package was mentioned in a dependency and " << endl; c1out << "never uploaded, or that it is an obsolete package." << endl; + + string List; + pkgCache::DepIterator Dep = Pkg.RevDependsList(); + for (; Dep.end() == false; Dep++) + { + if (Dep->Type != pkgCache::Dep::Replaces) + continue; + List += string(Dep.ParentPkg().Name()) + " "; + } + ShowList(c1out,"However the following packages replace it:",List); } return _error->Error("Package %s has no installation candidate",S); |