mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-29 04:48:54 -06:00
refactor: hash fields and digests read in core
This commit is contained in:
1 parent
238f70c7a7
commit
f371790dc6
4 files changed
+20
-13
No files matched your search
@@ -5,9 +5,7 @@ from __future__ import annotations
|
||||
import json
|
||||
import subprocess
|
||||
from dataclasses import dataclass
|
||||
from pathlib import Path
|
||||
|
||||
from core.hashing import file_digest
|
||||
from release.assets import digests_of
|
||||
from model.largefiles import LARGE_FILES_REPO
|
||||
|
||||
@@ -113,10 +111,6 @@ def compare_release(
|
||||
return findings
|
||||
|
||||
|
||||
def _sha256(path: Path) -> str:
|
||||
return file_digest(path, "sha256")
|
||||
|
||||
|
||||
def fetch_assets(tag: str) -> tuple[dict[str, Asset], bool]:
|
||||
"""Name, size and sha256 of every asset of *tag*, and whether it is a draft."""
|
||||
result = subprocess.run(
|
||||
|
||||
Reference in new issue
Block a user