Add a GetIndirectPackages function for subnodes