* apt-pkg/pkgcache.cc:
authorMichael Vogt <michael.vogt@ubuntu.com>
Tue, 3 Feb 2009 11:24:31 +0000 (12:24 +0100)
committerMichael Vogt <michael.vogt@ubuntu.com>
Tue, 3 Feb 2009 11:24:31 +0000 (12:24 +0100)
  - do not run "dpkg --configure pkg" if pkg is in trigger-awaited
    state (LP: #322955)

apt-pkg/pkgcache.cc
debian/changelog

index 8eb6208..385d247 100644 (file)
@@ -274,9 +274,13 @@ pkgCache::PkgIterator::OkState pkgCache::PkgIterator::State() const
       return NeedsUnpack;
    
    if (Pkg->CurrentState == pkgCache::State::UnPacked ||
-       Pkg->CurrentState == pkgCache::State::HalfConfigured ||
-       Pkg->CurrentState == pkgCache::State::TriggersPending ||
-       Pkg->CurrentState == pkgCache::State::TriggersAwaited)
+       Pkg->CurrentState == pkgCache::State::HalfConfigured) ||
+      //we don't need to care for triggers awaiting packages
+      //dpkg will deal with them automatically when the 
+      //trigger pending action is run (those packages are usually
+      //in half-configured or triggers-pending state)
+      //Pkg->CurrentState == pkgCache::State::TriggersAwaited
+       Pkg->CurrentState == pkgCache::State::TriggersPending)
       return NeedsConfigure;
    
    if (Pkg->CurrentState == pkgCache::State::HalfInstalled ||
index f778fbe..6dea85f 100644 (file)
@@ -38,6 +38,9 @@ apt (0.7.21) UNRELEASED; urgency=low
   * [ABI break] merge support for http redirects, thanks to
     Jeff Licquia and Anthony Towns
   * [ABI break] use int for the package IDs (thanks to Steve Cotton)
+  * apt-pkg/pkgcache.cc:
+    - do not run "dpkg --configure pkg" if pkg is in trigger-awaited
+      state (LP: #322955)
 
   [ Dereck Wonnacott ]
   * apt-ftparchive might write corrupt Release files (LP: #46439)