summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2011-04-16 00:06:34 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2011-04-16 00:06:34 +0200
commit949e033cb7c741b9eed459c0e93a89a92acb168d (patch)
tree7255440be1244b5ec11dbf62823719a4c04e093c /apt-pkg
parent7f52cf7b027e36367b7f13e2e8a1309485827611 (diff)
* apt-pkg/depcache.cc:
- really include 'rc' packages in the delete count by fixing a typo which exists since 1999 in the sourceā€¦ (LP: #761175)
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/depcache.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-pkg/depcache.cc b/apt-pkg/depcache.cc
index 07803d7bf..dc4a65bc1 100644
--- a/apt-pkg/depcache.cc
+++ b/apt-pkg/depcache.cc
@@ -549,8 +549,8 @@ void pkgDepCache::AddStates(const PkgIterator &Pkg,int Add)
// Not installed
if (Pkg->CurrentVer == 0)
{
- if (State.Mode == ModeDelete &&
- (State.iFlags | Purge) == Purge && Pkg.Purge() == false)
+ if (State.Mode == ModeDelete &&
+ (State.iFlags & Purge) == Purge && Pkg.Purge() == false)
iDelCount += Add;
if (State.Mode == ModeInstall)