While working on the PEP 658 (#1047), we ran into issues recreating missing package metadata files because of domain handling problems (#1067, #1071). This task is to add support for recreating missing metadata files for all older packages.