// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: apt-get.cc,v 1.132 2003/07/22 03:00:19 mdz Exp $
+// $Id: apt-get.cc,v 1.133 2003/07/25 22:03:49 mdz Exp $
/* ######################################################################
apt-get - Cover for dpkg
* installed
*/
pkgCache::PrvIterator Prv = Pkg.ProvidesList();
- for (; Prv.end() != true; Prv++) {
+ bool providedBySomething = !Prv.end();
+ for (; Prv.end() != true; Prv++)
+ {
if ((*Cache)[Prv.OwnerPkg()].InstVerIter(*Cache).end() == false)
break;
}
// Get installed version and version we are going to install
pkgCache::VerIterator IV = (*Cache)[Pkg].InstVerIter(*Cache);
- if (Prv.end() == true || (*D).Version != "") {
+ if (!providedBySomething || (*D).Version[0] != '\0') {
/* We either have a versioned dependency (so a provides won't do)
or nothing is providing this package */
<philippe.batailler@free.fr> (Closes: #182194)
* Give a warning if an illegal type abbreviation is used when looking up a
configuration item (Closes: #168453)
+ * Improve build-depends handling of virtual packages even further, so that
+ it will now also try to satisfy build-depends on virtual packages if they
+ are not installed. Note that this only works if there is only one
+ package providing the virtual package, as in other cases (Closes: #165404)
--