summaryrefslogtreecommitdiff
path: root/apt-pkg/algorithms.h
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:55:01 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:55:01 +0000
commit61d6a8de486f2262acbb47cea24f5dae143be8d1 (patch)
tree936596f587018e12603cdb4ac1c5a2e517752b29 /apt-pkg/algorithms.h
parent67a51bcc96e3e09528ce0b5841f93f511ed1e44f (diff)
downloadapt-61d6a8de486f2262acbb47cea24f5dae143be8d1.tar.gz
Remove is not sticky
Author: jgg Date: 1999-10-27 04:38:27 GMT Remove is not sticky
Diffstat (limited to 'apt-pkg/algorithms.h')
-rw-r--r--apt-pkg/algorithms.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/apt-pkg/algorithms.h b/apt-pkg/algorithms.h
index 1603377f4..d68fbfbea 100644
--- a/apt-pkg/algorithms.h
+++ b/apt-pkg/algorithms.h
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: algorithms.h,v 1.7 1999/07/09 04:11:34 jgg Exp $
+// $Id: algorithms.h,v 1.8 1999/10/27 04:38:27 jgg Exp $
/* ######################################################################
Algorithms - A set of misc algorithms
@@ -91,7 +91,8 @@ class pkgProblemResolver
inline void Protect(pkgCache::PkgIterator Pkg) {Flags[Pkg->ID] |= Protected;};
inline void Remove(pkgCache::PkgIterator Pkg) {Flags[Pkg->ID] |= ToRemove;};
-
+ inline void Clear(pkgCache::PkgIterator Pkg) {Flags[Pkg->ID] &= ~(Protected | ToRemove);};
+
// Try to intelligently resolve problems by installing and removing packages
bool Resolve(bool BrokenFix = false);