summaryrefslogtreecommitdiff
path: root/apt-pkg/depcache.h
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2009-06-29 18:20:58 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2009-06-29 18:20:58 +0200
commit2d403b92011c6e4a317a48284e7c68952ce5ddcd (patch)
treee31f045add0bbff0f6f025ef576e8e91b28c530a /apt-pkg/depcache.h
parent9964a721855b74b4f6008d30ebc637198776ca04 (diff)
add hook for auto-install (closes: #470035)
Diffstat (limited to 'apt-pkg/depcache.h')
-rw-r--r--apt-pkg/depcache.h13
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);