fix: read profile repositories from one model rule

The site permalinks read only source and upstream, so a profile whose
forge is gone (yuzu answers 451) linked nothing although profile_sync
judged it through its source_mirror. declared_repositories, pin_field
and the declared pin now live in model.profilerepos, read by both.
This commit is contained in:
Abdessamad Derraz committed 2026-11-21 16:43:46 +01:00
1 parent 0fdca4145a
commit bce9abedc7
11 files changed
+94 -70

No files matched your search

+2 -1
View File
@@ -33,7 +33,8 @@ from collections.abc import Callable
from dataclasses import dataclass
from core import upstream
from profiling.repos import pin_field, resolve_pin
from model.profilerepos import pin_field
from profiling.repos import resolve_pin
KINDS = ("file", "tag", "alias", "package", "none", "unverified")
# Values copied from a .info or a branch name, which name no version.