diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2010-04-28 16:25:05 +0200 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2010-04-28 16:25:05 +0200 |
commit | edde664d0cc5fe46f572696c605832700c553b9e (patch) | |
tree | b0fbc72863ffde76f8d8b70c31ec0c1c6a8f69fb /apt-pkg/depcache.h | |
parent | 08bd372d9dd5e4a56176ec08bf6e7870ecd41b32 (diff) |
rewrite the pseudo package reinstaller to be more intelligent
in his package choices
The previous implementation tried to install the package for arch A and
if this fails B, C and so on. This results in wrong architecture choices
for packages which depend on other pseudo packages, so he will now try
to install the dependencies first before trying the package itself and
only if this fails he tries the next architecture.
Diffstat (limited to 'apt-pkg/depcache.h')
-rw-r--r-- | apt-pkg/depcache.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apt-pkg/depcache.h b/apt-pkg/depcache.h index 72b9b5d4d..3decc7a5f 100644 --- a/apt-pkg/depcache.h +++ b/apt-pkg/depcache.h @@ -470,6 +470,8 @@ class pkgDepCache : protected pkgCache::Namespace private: // Helper for Update(OpProgress) to remove pseudoinstalled arch all packages bool RemovePseudoInstalledPkg(PkgIterator &Pkg, std::set<unsigned long> &recheck); + bool ReInstallPseudoForGroup(unsigned long const &Grp, std::set<unsigned long> &recheck); + bool ReInstallPseudoForGroup(pkgCache::PkgIterator const &P, std::set<unsigned long> &recheck); }; #endif |