summaryrefslogtreecommitdiff
path: root/apt-pkg/depcache.h
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2011-05-17 18:22:46 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2011-05-17 18:22:46 +0200
commit3d619a202a6fbcaaaf6a6540b06c5deb3a50a3be (patch)
tree3621fbed9e6e6fa42b0d30efd9cf70ddc903da1e /apt-pkg/depcache.h
parent6935cd05677544028e0d6baefc2e29933bf5fe8b (diff)
let the Mark methods return if their marking was successful
Diffstat (limited to 'apt-pkg/depcache.h')
-rw-r--r--apt-pkg/depcache.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/apt-pkg/depcache.h b/apt-pkg/depcache.h
index 1a982ea18..2942558b0 100644
--- a/apt-pkg/depcache.h
+++ b/apt-pkg/depcache.h
@@ -388,11 +388,11 @@ class pkgDepCache : protected pkgCache::Namespace
/** \name State Manipulators
*/
// @{
- void MarkKeep(PkgIterator const &Pkg, bool Soft = false,
+ bool MarkKeep(PkgIterator const &Pkg, bool Soft = false,
bool FromUser = true, unsigned long Depth = 0);
- void MarkDelete(PkgIterator const &Pkg, bool Purge = false,
+ bool MarkDelete(PkgIterator const &Pkg, bool Purge = false,
unsigned long Depth = 0, bool FromUser = true);
- void MarkInstall(PkgIterator const &Pkg,bool AutoInst = true,
+ bool MarkInstall(PkgIterator const &Pkg,bool AutoInst = true,
unsigned long Depth = 0, bool FromUser = true,
bool ForceImportantDeps = false);
void MarkProtected(PkgIterator const &Pkg) { PkgState[Pkg->ID].iFlags |= Protected; };