Alternative to Dpkg::Post-Invoke that runs even if dpkg did not have to be invoked
Bug #1815761 reported by
Julian Andres Klode
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Trusty |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
Cosmic |
Fix Released
|
Undecided
|
Unassigned | ||
Disco |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
Dpkg::Post-Invoke is run only when dpkg had to be run. We'd like to be able to show some extra output even if no changes had been made. Imagine "the user disabled the security repo, and does not get any updates shown scenario" - we'd like to be able to tell them that there are security updates available after all.
[Test case]
1. Specify an APT::Install:
2. Make sure it runs even if there are no changes, using apt upgrade -tnow
[Regression potential]
No-change upgrades/install can now fail if this new hooks fail.
CVE References
affects: | ubuntu → apt (Ubuntu) |
Changed in apt (Ubuntu Disco): | |
status: | New → In Progress |
tags: | added: id-5baa476c7e47fe1ecba988ab |
description: | updated |
Changed in apt (Ubuntu Trusty): | |
status: | New → In Progress |
Changed in apt (Ubuntu Xenial): | |
status: | New → In Progress |
Changed in apt (Ubuntu Bionic): | |
status: | New → In Progress |
Changed in apt (Ubuntu Cosmic): | |
status: | New → In Progress |
To post a comment you must log in.
This bug was fixed in the package apt - 1.8.0~rc3ubuntu1
---------------
apt (1.8.0~rc3ubuntu1) disco; urgency=medium
* update: Provide APT::Update- Post-Invoke- Stats script hook point :Pre-Invoke / Post-Invoke-Success (LP: #1815761)
(LP: #1815760)
* Introduce APT::Install:
-- Julian Andres Klode <email address hidden> Wed, 13 Feb 2019 15:22:34 +0100