If pkg->uid is null when requested from pkg_get then generate it