mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-06 10:03:49 -06:00
fix: tell a pack note by its name, not its path
This commit is contained in:
1 parent
ccb35b9b82
commit
af4b43d64c
2 files changed
+6
-2
No files matched your search
@@ -144,7 +144,11 @@ def verify_pack(
|
|||||||
if info.is_dir():
|
if info.is_dir():
|
||||||
continue
|
continue
|
||||||
name = info.filename
|
name = info.filename
|
||||||
if name.startswith(("INSTRUCTIONS_", "RENAMED_")) or name in (
|
# The builder writes its notes beside the slot they explain
|
||||||
|
# (bios/INSTRUCTIONS_x.txt, games/keen6/INSTRUCTIONS_y.txt), so
|
||||||
|
# they are told by their own name, not by a root prefix.
|
||||||
|
base = name.rsplit("/", 1)[-1]
|
||||||
|
if base.startswith(("INSTRUCTIONS_", "RENAMED_")) or name in (
|
||||||
"manifest.json",
|
"manifest.json",
|
||||||
"README.txt",
|
"README.txt",
|
||||||
):
|
):
|
||||||
|
|||||||
+1
-1
@@ -3734,7 +3734,7 @@ class TestE2E(unittest.TestCase):
|
|||||||
zip_names = {
|
zip_names = {
|
||||||
n
|
n
|
||||||
for n in zf.namelist()
|
for n in zf.namelist()
|
||||||
if not n.startswith(("INSTRUCTIONS_", "RENAMED_"))
|
if not n.rsplit("/", 1)[-1].startswith(("INSTRUCTIONS_", "RENAMED_"))
|
||||||
and n != "manifest.json"
|
and n != "manifest.json"
|
||||||
and n != "README.txt"
|
and n != "README.txt"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user