Fix the cross-provider review's findings on APK alternatives

One malformed or unreachable repo no longer hides the others; skip bad
index entries; a refreshed raw index outdates its reduced copy; style the
dialog like the others; validate package ids with PKG_RE.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
saphidandClaude Opus 5.5 committed 2026-09-28 15:15:11 +10:00
1 parent 50405ccf88
commit a1fa4ce140
5 files changed
+44 -9

No files matched your search

+1 -1
View File
@@ -50,7 +50,7 @@ def _versions(package, cached_only=False):
for source, repo in REPOS:
try:
index = frame_catalog.load_index(repo, cached_only=cached_only)
except (OSError, ValueError) as e:
except Exception as e: # one bad repo (dropped download, odd index) mustn't hide the others
errors.append(f'Could not check {source}: {e}')
continue
for v in index.get(package, []):