genpackage: make 'init()' optional

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2023-12-18 09:26:33 +01:00
parent 8591b61ea4
commit fa7d62bf37

View File

@ -180,7 +180,7 @@ sub bootstrap {
BEGIN {
__PACKAGE__->load();
__PACKAGE__->bootstrap();
init();
init() if __PACKAGE__->can("init");
}
1;