forked from len0rd/rockbox
nwztools: add DMP-Z1 to the database
This is one of those fancy gold-plated devices. Of course it breaks my scripts that were nicely expecting every device to start with NW. Change-Id: I161320f620f65f4f92c2650d192b26a9831eeb9d
This commit is contained in:
parent
e41a563b6c
commit
063ff294a2
7 changed files with 104 additions and 5 deletions
|
@ -46,12 +46,12 @@ with open('series.txt') as fp:
|
|||
g_hash_nvp = dict() # hash -> nvp
|
||||
g_nvp_hash = dict() # codename -> hash
|
||||
HASH_SIZE=6
|
||||
map_files = glob.glob('nvp/nw*.txt')
|
||||
map_files = glob.glob('nvp/nw*.txt') + glob.glob('nvp/dmp*.txt')
|
||||
for f in map_files:
|
||||
h = hashlib.md5()
|
||||
h.update(open(f, "rb").read())
|
||||
hash = h.hexdigest()
|
||||
codename = re.search('(nw.*)\.txt', f).group(1)
|
||||
codename = re.search('nvp/([^\.]*)\.txt', f).group(1)
|
||||
# sanity check
|
||||
if not (codename in g_series_codename):
|
||||
print("Warning: file %s does not have a match series in series.txt" % f)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue