summaryrefslogtreecommitdiff
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
parentf37e6374bef41b0ce45e783fab051691c0fc9efa (diff)
Make purge work again for config-files (LP: #244598) (Closes: #150831)
-rw-r--r--apt-pkg/depcache.cc2
-rw-r--r--debian/changelog1
2 files changed, 2 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)
diff --git a/debian/changelog b/debian/changelog
index d9e42717f..b6d577b45 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ apt (0.8.14.2) UNRELEASED; urgency=low
* apt-pkg/depcache.cc:
- Really release action groups only once (Closes: #622744)
+ - Make purge work again for config-files (LP: #244598) (Closes: #150831)
* debian/apt.cron.daily:
- Check power after wait, patch by manuel-soto (LP: #705269)
* doc/apt-key.8.xml: