mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-25 13:19:03 -05:00
fix: ask the release only for registered names
asset_candidates fell back to the bare name when no .gitignore line carried it: every online build asked large-files for aes.zip and five others and printed an HTTP 404 per name, pointing at an upload that never existed. The tests that fetch now register their names.
This commit is contained in:
1 parent
5d5c431cce
commit
8c7c705169
2 files changed
+42
-4
No files matched your search
@@ -98,7 +98,8 @@ def asset_candidates(name: str, registered: Iterable[str]) -> list[str]:
|
||||
"""Assets that may hold *name*, a registered path or a bare file name.
|
||||
|
||||
A bare name shared by several registered paths has one asset per path,
|
||||
and the caller's hash tells them apart.
|
||||
and the caller's hash tells them apart. A bare name no registered path
|
||||
carries has none.
|
||||
"""
|
||||
registered = list(registered)
|
||||
if "/" in name:
|
||||
@@ -114,7 +115,10 @@ def asset_candidates(name: str, registered: Iterable[str]) -> list[str]:
|
||||
names[p] for p in sorted(names)
|
||||
if "/.variants/" in p and os.path.basename(p).startswith(name + ".")
|
||||
]
|
||||
return matches or [name]
|
||||
# A bare name no registered path carries is no asset: .gitignore is the
|
||||
# registry. Asking the release anyway cost a 404 per name on every
|
||||
# online build and named an upload that never existed.
|
||||
return matches
|
||||
|
||||
|
||||
def fetch_large_file(
|
||||
|
||||
Reference in new issue
Block a user