diff options
author | Julian Andres Klode <julian.klode@canonical.com> | 2019-02-13 13:25:55 +0100 |
---|---|---|
committer | Julian Andres Klode <julian.klode@canonical.com> | 2019-03-01 10:04:22 +0100 |
commit | 51a4fef1a32ebbd157ba04347e25afa7df6f81ce (patch) | |
tree | 8d7ac6fc208eb2ca68c043b804fa278d121bea4e | |
parent | 40ea8ad2d0660a1f3b5c4fb8730b60b12c9d284c (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
(cherry picked from commit fc3834a9e0d850411b7ae92e7b15a09f0a299b99)
(cherry picked from commit b92de155e11f87c564a30b5ff135f88241545472)
(cherry picked from commit 8bc7f7e522921beedda6aeab13330a17b339451d)
-rw-r--r-- | apt-private/private-update.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apt-private/private-update.cc b/apt-private/private-update.cc index a886c830f..0b6078871 100644 --- a/apt-private/private-update.cc +++ b/apt-private/private-update.cc @@ -99,6 +99,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; |