From e06c72cd8d39433b04883f35dea81619b8464b0e Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Fri, 1 Feb 2008 16:55:44 +0100 Subject: * apt-pkg/algorithms.cc: - add APT::Update::Post-Invoke-Success script slot --- apt-pkg/algorithms.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'apt-pkg') 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; } -- cgit v1.2.3