mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-29 21:08:53 -06:00
refactor: decide the recorded trees in one place
This commit is contained in:
1 parent
ee404551a9
commit
ef33a95971
2 files changed
+28
-30
No files matched your search
@@ -18,16 +18,7 @@ def check_source_paths(profiles: dict) -> Finding:
|
||||
tries is recorded, read or not, so a lacking one was never tried."""
|
||||
from sitegen import sources as sitegen_sources
|
||||
|
||||
pinned = {
|
||||
sitegen_sources.tree_key(repo, pin)
|
||||
for profile in profiles.values() if sitegen_sources.cited_paths(profile)
|
||||
for repo, pin in sitegen_sources.profile_trees(profile)
|
||||
} | {
|
||||
# The platform build files pin_build names, linked from a page too.
|
||||
sitegen_sources.tree_key(repo, pin)
|
||||
for profile in profiles.values()
|
||||
for repo, pin, _path in sitegen_sources.build_files(profile)
|
||||
}
|
||||
pinned = sitegen_sources.pinned_trees(profiles)
|
||||
try:
|
||||
recorded = set(json.loads(sitegen_sources.SOURCE_PATHS.read_text(encoding="utf-8")))
|
||||
except (OSError, ValueError) as exc:
|
||||
|
||||
Reference in new issue
Block a user