Verified by running echo TEST1815761 as the hook, across all releases
with their SRU versions (as shown in the log below).


$ lxc exec apt-cosmic --  apt upgrade apt -tnow -o 
APT::Install::Post-Invoke-Success::="/bin/echo TEST1815761"
Reading package lists... Done
Building dependency tree       
Reading state information... Done
apt is already the newest version (1.7.3).
apt set to manually installed.
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
  libfreetype6
Use 'apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
TEST1815761


$ lxc exec apt-bionic --  apt upgrade apt -tnow -o 
APT::Install::Post-Invoke-Success::="/bin/echo TEST1815761"
Reading package lists... Done
Building dependency tree       
Reading state information... Done
apt is already the newest version (1.6.9).
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
  libfreetype6
Use 'apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
TEST1815761

$ lxc exec apt-xenial --  apt upgrade apt -tnow -o 
APT::Install::Post-Invoke-Success::="/bin/echo TEST1815761"
Reading package lists... Done
Building dependency tree       
Reading state information... Done
apt is already the newest version (1.2.30).
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
  libfreetype6
Use 'apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
TEST1815761


$ lxc exec apt-trusty --  apt upgrade apt -tnow -o 
APT::Install::Post-Invoke-Success::="/bin/echo TEST1815761"
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
apt is already the newest version.
The following packages were automatically installed and are no longer required:
  libfreetype6 os-prober
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
TEST1815761

$ lxc exec apt-trusty --  apt-cache policy apt #apt upgrade apt -tnow -o 
APT::Install::Post-Invoke-Success::="/bin/echo TEST1815761"
apt:
  Installed: 1.0.1ubuntu2.21
  Candidate: 1.0.1ubuntu2.21
  Version table:
 *** 1.0.1ubuntu2.21 0
        500 http://archive.ubuntu.com/ubuntu/ trusty-proposed/main amd64 
Packages
        100 /var/lib/dpkg/status

** Tags removed: verification-needed verification-needed-bionic 
verification-needed-cosmic verification-needed-trusty verification-needed-xenial
** Tags added: verification-done verification-done-bionic 
verification-done-cosmic verification-done-trusty verification-done-xenial

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1815761

Title:
  Alternative to Dpkg::Post-Invoke that runs even if dpkg did not have
  to be invoked

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1815761/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to