comon/hooks: update pkg hooks to also create/register -dbg pkgs.