[pve-devel] [RFC manager] triggers: add path-based trigger interest

Fabian Grünbichler f.gruenbichler at proxmox.com
Tue Nov 5 12:43:38 CET 2024


to avoid the need to mark every package shipping PVE-related perl code as
activating the explicit trigger. the explicit trigger can still be used for
packages that need to reload the API without shipping a perl module

the explicit trigger activation can be dropped in PVE 9.0 in packages that ship
perl code, without a need for versioned dependencies.

Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
Currently, the following packages ship perl modules in /usr/share/perl5/PVE,
but don't activate the explicit trigger:

libpve-apiclient-perl libpve-cluster-perl libpve-notify-perl pve-cluster libpve-u2f-server-perl dab

libpve-cluster-perl is upgraded in lockstep with libpve-cluster-api-perl, which does activate the trigger.

manually tested reinstalling `pve-cluster` with and without this patch, seems to work as expected.

are there other paths that might make sense to "watch"?

 debian/triggers | 1 +
 1 file changed, 1 insertion(+)

diff --git a/debian/triggers b/debian/triggers
index aabe418ef..4e3a2a3d9 100644
--- a/debian/triggers
+++ b/debian/triggers
@@ -1 +1,2 @@
 interest-noawait pve-api-updates
+interest-noawait /usr/share/perl5/PVE
-- 
2.39.5





More information about the pve-devel mailing list