summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2011-04-21 12:18:05 +0200
committerJulian Andres Klode <jak@debian.org>2011-04-21 12:18:05 +0200
commit884cb8a574144ce47564911b97b62a269f82481e (patch)
tree6fdd57eab97d190e6e34df44ed429db7406a18c2 /apt-pkg
parentf37e6374bef41b0ce45e783fab051691c0fc9efa (diff)
Make purge work again for config-files (LP: #244598) (Closes: #150831)
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/depcache.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/depcache.cc b/apt-pkg/depcache.cc
index 9dad7e240..bef977532 100644
--- a/apt-pkg/depcache.cc
+++ b/apt-pkg/depcache.cc
@@ -550,7 +550,7 @@ void pkgDepCache::AddStates(const PkgIterator &Pkg,int Add)
if (Pkg->CurrentVer == 0)
{
if (State.Mode == ModeDelete &&
- (State.iFlags | Purge) == Purge && Pkg.Purge() == false)
+ (State.iFlags & Purge) == Purge && Pkg.Purge() == false)
iDelCount += Add;
if (State.Mode == ModeInstall)