Avoid duplicates when adding inactive packages to allPackages