summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2008-02-01 16:55:44 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2008-02-01 16:55:44 +0100
commite06c72cd8d39433b04883f35dea81619b8464b0e (patch)
tree30d9f270d54b4081a8ffbaca15daf5f171052dca
parent51dbf3686ee62584d7c2a21b6209a45ebceac5c9 (diff)
* apt-pkg/algorithms.cc:
- add APT::Update::Post-Invoke-Success script slot
-rw-r--r--apt-pkg/algorithms.cc6
-rw-r--r--debian/changelog2
2 files changed, 7 insertions, 1 deletions
diff --git a/apt-pkg/algorithms.cc b/apt-pkg/algorithms.cc
index 57b85e24f..503a928ac 100644
--- a/apt-pkg/algorithms.cc
+++ b/apt-pkg/algorithms.cc
@@ -1371,7 +1371,11 @@ bool ListUpdate(pkgAcquireStatus &Stat,
return _error->Error(_("Some index files failed to download, they have been ignored, or old ones used instead."));
- // Run the scripts if all was fine
+ // Run the success scripts if all was fine
+ if(!TransientNetworkFailure && !Failed)
+ RunScripts("APT::Update::Post-Invoke-Success");
+
+ // Run the other scripts
RunScripts("APT::Update::Post-Invoke");
return true;
}
diff --git a/debian/changelog b/debian/changelog
index d0e0c754d..497053111 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -16,6 +16,8 @@ apt (0.7.11) UNRELEASED; urgency=low
* apt-pkg/deb/dpkgpm.cc:
- merged patch from Kees Cook to fix anoying upper-case display
on amd64 in sbuild
+ * apt-pkg/algorithms.cc:
+ - add APT::Update::Post-Invoke-Success script slot
-- Michael Vogt <michael.vogt@ubuntu.com> Thu, 10 Jan 2008 12:06:12 +0100