From 884cb8a574144ce47564911b97b62a269f82481e Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Thu, 21 Apr 2011 12:18:05 +0200 Subject: Make purge work again for config-files (LP: #244598) (Closes: #150831) --- apt-pkg/depcache.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apt-pkg') 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) -- cgit v1.2.3