summaryrefslogtreecommitdiff
path: root/apt-pkg/depcache.h
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2009-06-30 13:52:52 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2009-06-30 13:52:52 +0200
commitd116d66834b77cc77750c89969c43e0ba9d5807e (patch)
tree68dbbe92d59466adc586932b27b3cf7f04d053d8 /apt-pkg/depcache.h
parentd6ebeb21ddb3d8f3d485562cdac0e0878d50c936 (diff)
merge the AutoInstOk patch from debian-experimental
Diffstat (limited to 'apt-pkg/depcache.h')
-rw-r--r--apt-pkg/depcache.h26
1 files changed, 14 insertions, 12 deletions
diff --git a/apt-pkg/depcache.h b/apt-pkg/depcache.h
index e6110ea19..10f9c1091 100644
--- a/apt-pkg/depcache.h
+++ b/apt-pkg/depcache.h
@@ -363,6 +363,20 @@ class pkgDepCache : protected pkgCache::Namespace
*/
virtual bool MarkFollowsSuggests();
+ /** \return \b true if it's OK for MarkInstall to recursively
+ * install the given version of the given package.
+ *
+ * \param p the package that MarkInstall wants to install.
+ * \param v the version being installed, or an end iterator
+ * if p is being removed.
+ * \param d the dependency being fixed.
+ *
+ * The default implementation unconditionally returns \b true.
+ */
+ virtual bool AutoInstOk(const PkgIterator &p,
+ const VerIterator &v,
+ const DepIterator &d);
+
/** \brief Update the Marked and Garbage fields of all packages.
*
* This routine is implicitly invoked after all state manipulators
@@ -397,18 +411,6 @@ class pkgDepCache : protected pkgCache::Namespace
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);