From 063ff294a266f68ab93f462c264613c2223a40cd Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Mon, 22 Apr 2019 23:32:18 +0200 Subject: 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 --- utils/nwztools/database/gen_db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils/nwztools/database/gen_db.py') diff --git a/utils/nwztools/database/gen_db.py b/utils/nwztools/database/gen_db.py index 23f4e3f474..9e8bc89102 100755 --- a/utils/nwztools/database/gen_db.py +++ b/utils/nwztools/database/gen_db.py @@ -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) -- cgit v1.2.3