summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2019-02-13 13:25:55 +0100
committerJulian Andres Klode <julian.klode@canonical.com>2019-02-13 13:25:55 +0100
commitfc3834a9e0d850411b7ae92e7b15a09f0a299b99 (patch)
treee3b97bcdaac350139cdabc40cb4748cb1267e199
parent3b169b6d1d2111765f57e2f5e6279e99ae523cde (diff)
update: Provide APT::Update-Post-Invoke-Stats script hook point
This is run after an update has been run and only if status on the new cache has been shown, allowing scripts to display their own status messages. LP: #1815760
-rw-r--r--apt-private/private-update.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/apt-private/private-update.cc b/apt-private/private-update.cc
index c9113ddd3..4d9d0775d 100644
--- a/apt-private/private-update.cc
+++ b/apt-private/private-update.cc
@@ -138,6 +138,8 @@ bool DoUpdate(CommandLine &CmdL)
c1out << _("All packages are up to date.") << std::endl;
else
ioprintf(c1out, msg, upgradable);
+
+ RunScripts("APT::Update-Post-Invoke-Stats");
}
return true;