summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2009-08-24 11:20:27 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2009-08-24 11:20:27 +0200
commitc6aa14e46842b0059c1648125562793e5edd08ee (patch)
tree2910f3ad0ca9f3dde06cbb7187edc42219ac19f2
parent889053489a8b9b91feeb698fc164446e9b5f9c67 (diff)
* apt-pkg/pkgcache.cc:
- do not set internel "needs-configure" state for packages in triggers-pending state. dpkg will deal with the trigger and it if does it before we trigger it, dpkg will error out (LP: #414631)
-rw-r--r--apt-pkg/pkgcache.cc12
-rw-r--r--debian/changelog7
2 files changed, 13 insertions, 6 deletions
diff --git a/apt-pkg/pkgcache.cc b/apt-pkg/pkgcache.cc
index 2a9756c45..b0ce6e598 100644
--- a/apt-pkg/pkgcache.cc
+++ b/apt-pkg/pkgcache.cc
@@ -275,13 +275,13 @@ pkgCache::PkgIterator::OkState pkgCache::PkgIterator::State() const
return NeedsUnpack;
if (Pkg->CurrentState == pkgCache::State::UnPacked ||
- 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::HalfConfigured)
+ // we leave triggers alone complettely. dpkg deals with
+ // them in a hard-to-predict manner and if they get
+ // resolved by dpkg before apt run dpkg --configure on
+ // the TriggersPending package dpkg returns a error
//Pkg->CurrentState == pkgCache::State::TriggersAwaited
- Pkg->CurrentState == pkgCache::State::TriggersPending)
+ //Pkg->CurrentState == pkgCache::State::TriggersPending)
return NeedsConfigure;
if (Pkg->CurrentState == pkgCache::State::HalfInstalled ||
diff --git a/debian/changelog b/debian/changelog
index 2131b8077..6692191d1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,13 @@ apt (0.7.22.3) UNRELEASED; urgency=low
and '{http,ftp}_proxy' environment variables are used only if options
mentioned above are not specified.
(Closes: #445985, #157759, #320184, #365880, #479617)
+
+ [ Michael Vogt ]
+ * apt-pkg/pkgcache.cc:
+ - do not set internel "needs-configure" state for packages in
+ triggers-pending state. dpkg will deal with the trigger and
+ it if does it before we trigger it, dpkg will error out
+ (LP: #414631)
-- Michael Vogt <mvo@debian.org> Wed, 19 Aug 2009 11:14:15 +0200