mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-11 20:43:50 -06:00
feat: say why an upstream revision is held
The emulator page showed the reason for pin_frozen and never the one for upstream_frozen, which 11 profiles record: mupen64plus read as left behind HEAD.
This commit is contained in:
1 parent
1b388e3cdc
commit
4bc9074dfe
2 files changed
+19
-4
No files matched your search
@@ -7984,10 +7984,14 @@ def _build_rows(profile: dict) -> list[str]:
|
||||
found = _found_by_text(profile.get("found_by"))
|
||||
if found:
|
||||
rows.append(f"| Files found by | {found} |")
|
||||
frozen = profile.get("pin_frozen")
|
||||
if frozen:
|
||||
held = _escape_tags(' '.join(str(frozen).split())).replace('|', r'\|')
|
||||
rows.append(f"| Revision held | {held} |")
|
||||
# Each pin says why it is held: a bare upstream revision read as a
|
||||
# profile left behind HEAD (mupen64plus, aps3e).
|
||||
for field, label in (("pin_frozen", "Revision held"),
|
||||
("upstream_frozen", "Upstream revision held")):
|
||||
frozen = profile.get(field)
|
||||
if frozen:
|
||||
held = _escape_tags(' '.join(str(frozen).split())).replace('|', r'\|')
|
||||
rows.append(f"| {label} | {held} |")
|
||||
announced = profile.get("version_source")
|
||||
if isinstance(announced, dict) and announced.get("url"):
|
||||
url = str(announced["url"])
|
||||
|
||||
Reference in new issue
Block a user