Browse Source

apt-private: Collect not found packages in CacheSetHelperAPTGet

Collecting the packages we could not find allows us to pass them
to other places.
tags/debian/1.6_rc1
Julian Andres Klode 3 years ago
parent
commit
03cc48f6c6
2 changed files with 9 additions and 3 deletions
  1. +8
    -2
      apt-private/private-cacheset.cc
  2. +1
    -1
      apt-private/private-cacheset.h

+ 8
- 2
apt-private/private-cacheset.cc View File

@@ -358,9 +358,15 @@ APT::VersionSet CacheSetHelperAPTGet::tryVirtualPackage(pkgCacheFile &Cache, pkg
}
pkgCache::PkgIterator CacheSetHelperAPTGet::canNotFindPkgName(pkgCacheFile &Cache, std::string const &str)
{
pkgCache::PkgIterator const Pkg = canNotFindPkgName_impl(Cache, str);
pkgCache::PkgIterator Pkg = canNotFindPkgName_impl(Cache, str);
if (Pkg.end())
return APT::CacheSetHelper::canNotFindPkgName(Cache, str);
{
Pkg = APT::CacheSetHelper::canNotFindPkgName(Cache, str);
if (Pkg.end() && ShowError)
{
notFound.insert(str);
}
}
return Pkg;
}
/*}}}*/

+ 1
- 1
apt-private/private-cacheset.h View File

@@ -94,9 +94,9 @@ class CacheSetHelperAPTGet : public APT::CacheSetHelper {
bool explicitlyNamed;

APT::PackageSet virtualPkgs;

public:
std::list<std::pair<pkgCache::VerIterator, std::string> > selectedByRelease;
std::set<std::string> notFound;

explicit CacheSetHelperAPTGet(std::ostream &out);



Loading…
Cancel
Save