Преглед изворни кода

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

Michael Vogt пре 18 година
родитељ
комит
e06c72cd8d
2 измењених фајлова са 7 додато и 1 уклоњено
  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."));
 
 
-   // 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;
 }

+ 2 - 0
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