mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-22 17:47:48 -06:00
refactor: import the artifact lock once
This commit is contained in:
1 parent
84bad2e271
commit
1227152bef
1 file changed
+1
-3
@@ -13,6 +13,7 @@ from pathlib import Path, PurePosixPath
|
||||
|
||||
import yaml
|
||||
|
||||
from core.artifacts import ArtifactLockBusy, artifact_lock
|
||||
from model.registry import load_data_dir_registry, load_platform_registry
|
||||
from model.profiles import source_yaml_paths
|
||||
from model.safeparse import yaml_load
|
||||
@@ -361,9 +362,6 @@ def _validate_pack_manifests(dist: Path) -> list[str]:
|
||||
if not dist.is_dir():
|
||||
return []
|
||||
|
||||
sys.path.insert(0, str(REPO_ROOT / "scripts"))
|
||||
from core.artifacts import ArtifactLockBusy, artifact_lock
|
||||
|
||||
try:
|
||||
with artifact_lock(str(dist), exclusive=False):
|
||||
return _scan_pack_manifests(dist)
|
||||
|
||||
Reference in new issue
Block a user