Sfoglia il codice sorgente

* apt-pkg/algorithms.cc:
- add APT::Update::Post-Invoke-Success script slot
(LP: #188127)

Michael Vogt 18 anni fa
parent
commit
b098f0f4e4
3 ha cambiato i file con 15 aggiunte e 3 eliminazioni
  1. 5 1
      apt-pkg/algorithms.cc
  2. 1 1
      configure.in
  3. 9 1
      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;
 }

+ 1 - 1
configure.in

@@ -18,7 +18,7 @@ AC_CONFIG_AUX_DIR(buildlib)
 AC_CONFIG_HEADER(include/config.h:buildlib/config.h.in include/apti18n.h:buildlib/apti18n.h.in)
 
 dnl -- SET THIS TO THE RELEASE VERSION --
-AC_DEFINE_UNQUOTED(VERSION,"0.7.9ubuntu10")
+AC_DEFINE_UNQUOTED(VERSION,"0.7.9ubuntu11")
 PACKAGE="apt"
 AC_DEFINE_UNQUOTED(PACKAGE,"$PACKAGE")
 AC_SUBST(PACKAGE)

+ 9 - 1
debian/changelog

@@ -1,10 +1,18 @@
-apt (0.7.9ubuntu11) hardy; urgency=low
+apt (0.7.9ubuntu12) hardy; urgency=low
 
   * debian/apt.cron.daily:
     - use admin user proxy settings
 
  --
 
+apt (0.7.9ubuntu11) hardy; urgency=low
+
+  * apt-pkg/algorithms.cc: 
+    - add APT::Update::Post-Invoke-Success script slot
+      (LP: #188127)
+
+ -- Michael Vogt <michael.vogt@ubuntu.com>  Thu, 10 Jan 2008 12:06:12 +0100
+
 apt (0.7.9ubuntu10) hardy; urgency=low
 
   * cmdline/apt-key: