Explorar el Código

* apt-pkg/algorithms.cc:
- add APT::Update::Post-Invoke-Success script slot

Michael Vogt hace 18 años
padre
commit
e06c72cd8d
Se han modificado 2 ficheros con 7 adiciones y 1 borrados
  1. 5 1
      apt-pkg/algorithms.cc
  2. 2 0
      debian/changelog

+ 5 - 1
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."));
       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");
    RunScripts("APT::Update::Post-Invoke");
    return true;
    return true;
 }
 }

+ 2 - 0
debian/changelog

@@ -16,6 +16,8 @@ apt (0.7.11) UNRELEASED; urgency=low
   * apt-pkg/deb/dpkgpm.cc:
   * apt-pkg/deb/dpkgpm.cc:
     - merged patch from Kees Cook to fix anoying upper-case display
     - merged patch from Kees Cook to fix anoying upper-case display
       on amd64 in sbuild
       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
  -- Michael Vogt <michael.vogt@ubuntu.com>  Thu, 10 Jan 2008 12:06:12 +0100