- virtual packages can have candidate versions
authorpmatilai <pmatilai>
Tue, 17 Jan 2006 18:41:29 +0000 (18:41 +0000)
committerpmatilai <pmatilai>
Tue, 17 Jan 2006 18:41:29 +0000 (18:41 +0000)
cmdline/apt-get.cc

index cbab995..c0749e6 100644 (file)
@@ -1213,7 +1213,7 @@ bool TryToInstall(pkgCache::PkgIterator Pkg,pkgDepCache &Cache,
                  unsigned int &ExpectedInst,bool AllowFail = true)
 {
    // CNC:2004-03-03 - Improved virtual package handling.
-   if (Cache[Pkg].CandidateVer == 0 && Pkg->ProvidesList != 0)
+   if (Pkg->VersionList == 0 && Pkg->ProvidesList != 0)
    {
       vector<pkgCache::Package *> GoodSolutions;
       for (pkgCache::PrvIterator Prv = Pkg.ProvidesList();