]> git.saurik.com Git - apt.git/commitdiff
* apt-pkg/algorithms.cc:
authorMichael Vogt <michael.vogt@ubuntu.com>
Fri, 1 Feb 2008 15:55:44 +0000 (16:55 +0100)
committerMichael Vogt <michael.vogt@ubuntu.com>
Fri, 1 Feb 2008 15:55:44 +0000 (16:55 +0100)
  - add APT::Update::Post-Invoke-Success script slot

apt-pkg/algorithms.cc
debian/changelog

index 57b85e24fec42cccd5176b774bb1ea558c285172..503a928acad3428815ed8910a35caeca19307286 100644 (file)
@@ -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;
 }
index d0e0c754d2bdd6ea5eb92e7cf47680eda8a0ad96..4970531113dd963fd2b2c9d82264457b528c1482 100644 (file)
@@ -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