On 15/06/2025 23:08, tomas wrote:
On Sun, Jun 15, 2025 at 11:33:09AM -0400, Greg Wooledge wrote:According to the apt.conf(5) man page: Pre-Invoke, Post-Invoke
[...]
That's clear as mud. What is "list notation"?
[...]
Aaah. I guess they mean Perl-y lists, like ["foo", "bar", "baz"].
My guess is that it should be a list as it is described in the "SYNTAX" section of the man page.
Conclusion: there is nothing at all in the environment or arguments passed to the Post-Invoke script(s) that indicate what has been done.
Perhaps it may be combined with Pre-Install-Pkgs that should send list of packages to stdin.
P.S. Before looking into the man page I asked a search engine. The next hop was https://sources.debian.org/src/apt/3.1.2/apt-pkg/deb/dpkgpm.cc/#L406