From 6ec338c23f0b97d998401346ed9fa35cccecf0ae Mon Sep 17 00:00:00 2001 From: James Harrison Date: Tue, 14 Oct 2014 22:18:51 +0100 Subject: [PATCH] Fix px_romfs_pruner.py to skip .data files The .data extension was missing but used in some places; this would cause the pruner to fail with a UnicodeDecodeError. --- Tools/px_romfs_pruner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/px_romfs_pruner.py b/Tools/px_romfs_pruner.py index fcc40b09e1..aef1cc7a3b 100644 --- a/Tools/px_romfs_pruner.py +++ b/Tools/px_romfs_pruner.py @@ -57,7 +57,7 @@ def main(): for (root, dirs, files) in os.walk(args.folder): for file in files: # only prune text files - if ".zip" in file or ".bin" in file or ".swp" in file: + if ".zip" in file or ".bin" in file or ".swp" in file or ".data" in file: continue file_path = os.path.join(root, file)