mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-12-03 06:48:52 -06:00
refactor: split core.upstream by subject
HTTP to the forges moves to core.forgehttp, comparisons, trees and clone history to core.upstreamtree. core.upstream keeps repositories, the cache and revisions.
This commit is contained in:
1 parent
ce92eff0aa
commit
263a64c0e0
65 files changed
+1417
-1337
No files matched your search
@@ -9,6 +9,7 @@ from datetime import datetime, timezone
|
||||
from pathlib import Path
|
||||
|
||||
from core import upstream
|
||||
from core import forgehttp
|
||||
from model.profiles import upstream_profile_index
|
||||
from model.sources import source_yaml_file
|
||||
from model.targets import apply_target_overrides, platform_overrides, read_target_overrides
|
||||
@@ -152,7 +153,7 @@ def check_lakka_release(platforms_dir: Path, cache_dir: str, offline: bool) -> F
|
||||
repo = upstream.parse_repo(f"https://github.com/{LAKKA_REPO}")
|
||||
try:
|
||||
release = upstream.latest_release(repo, cache_dir) if repo else None
|
||||
except upstream.UpstreamError as exc:
|
||||
except forgehttp.UpstreamError as exc:
|
||||
return Finding("targets", subject, UNKNOWN, local=local, detail=str(exc))
|
||||
if release is None:
|
||||
return Finding("targets", subject, UNKNOWN, local=local, detail="no release listed")
|
||||
|
||||
Reference in new issue
Block a user