Comment 6 for bug 541438

Revision history for this message
Julian Andres Klode (juliank) wrote : Re: "apt-get purge" should not select another package (when the requested one is not installed but provided by another one)

A fix has been committed to the debian-sid repository

------------------------------------------------------------
revno: 2120
revision-id: <email address hidden>
parent: <email address hidden>
fixes bug(s): http://bugs.debian.org/150831 https://launchpad.net/bugs/244598
committer: Julian Andres Klode <email address hidden>
branch nick: debian-sid
timestamp: Thu 2011-04-21 12:18:05 +0200
message:
  Make purge work again for config-files (LP: #244598) (Closes: #150831)
diff:
=== modified file 'apt-pkg/depcache.cc'
--- apt-pkg/depcache.cc 2011-04-18 08:56:37 +0000
+++ apt-pkg/depcache.cc 2011-04-21 10:18:05 +0000
@@ -550,7 +550,7 @@
    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)

=== modified file 'debian/changelog'
--- debian/changelog 2011-04-21 09:25:52 +0000
+++ debian/changelog 2011-04-21 10:18:05 +0000
@@ -2,6 +2,7 @@

   * 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: