diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2009-06-29 18:20:58 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2009-06-29 18:20:58 +0200 |
commit | 2d403b92011c6e4a317a48284e7c68952ce5ddcd (patch) | |
tree | e31f045add0bbff0f6f025ef576e8e91b28c530a /apt-pkg/depcache.h | |
parent | 9964a721855b74b4f6008d30ebc637198776ca04 (diff) | |
download | apt-2d403b92011c6e4a317a48284e7c68952ce5ddcd.tar.gz |
add hook for auto-install (closes: #470035)
Diffstat (limited to 'apt-pkg/depcache.h')
-rw-r--r-- | apt-pkg/depcache.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/apt-pkg/depcache.h b/apt-pkg/depcache.h index 2d33e21d7..e6110ea19 100644 --- a/apt-pkg/depcache.h +++ b/apt-pkg/depcache.h @@ -396,6 +396,19 @@ class pkgDepCache : protected pkgCache::Namespace void MarkInstall(PkgIterator const &Pkg,bool AutoInst = true, unsigned long Depth = 0, bool FromUser = true, bool ForceImportantDeps = false); + + /** \return \b true if it's OK for MarkInstall to recursively + * install the given package automatically. + * + * \param Pkg the package that MarkInstall wants to install. + * + * \param Depth output depth used for the debugging messages + * + * The default implementation unconditionally returns \b true. + */ + virtual bool IsAutoInstallOk(const PkgIterator &Pkg, + unsigned long Depth = 0); + void SetReInstall(PkgIterator const &Pkg,bool To); void SetCandidateVersion(VerIterator TargetVer); |