Commit aeb5600
Use os.path.relpath instead of lstrip
Using lstrip sometimes broken the folder names in wifi folder by removing
the "C" in the relpath.
A code similar to the following was added to debug:
if props:
log.error(f"Unhandled properties found: {props} in file {relpath}")
assert not props
and the result was:
Unhandled properties found: {'': '4355'} in file -4355__s-C1/P-hawaii-ID_M-YSBC_V-m__m-2.3.txt
Traceback (most recent call last):
File "/home/aditya/firmware.sh", line 905, in <module>
wifi_col = WiFiFWCollection(sys.argv[1]+"/wifi")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/aditya/firmware.sh", line 737, in __init__
self.load(source_path)
File "/home/aditya/firmware.sh", line 776, in load
assert not props
AssertionError
Signed-off-by: Aditya Garg <[email protected]>1 parent abb32a0 commit aeb5600
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
0 commit comments