Hi!

On Tue, 2019-09-10 at 16:39:22 -0500, Matt Zagrabelny wrote:
> Package: dpkg
> Version: 1.19.7
> Severity: wishlist

> I would like to access other meta data (besides DPKG_HOOK_ACTION) when
> running various pre/post-invoke commands.
> 
> Would you consider exposing:
> 
> DPKG_HOOK_PACKAGE_NAME
> 
> That contains the package name?

This would only be available for actions that operate on package names,
or actions that operate on package filenames would get filenames and
not package names. Also these would need to get multiple entries, and
for filenames that might include spaces, so they'd need to be escaped
somehow. Or perhaps passed via a file descriptor like apt is doing.

I'm curious what would you like to use something like this for?

Thanks,
Guillem

Reply via email to