dump_hals_for_release: account for numbers in file name

It did not recognize ISupplicantP2pIface.hal and media.c2 package.
Test: run it, check ISupplicantP2pIface and media.c2
Bug: 121546794

Change-Id: Ib386608f407a961c7a041c20cbf92c305f27cc5c
This commit is contained in:
Yifan Hong 2019-01-17 13:28:59 -08:00
parent dbb2211d32
commit 089322e515

View file

@ -32,7 +32,7 @@ class Globals:
class Constants: class Constants:
CURRENT = 'current' CURRENT = 'current'
HAL_PATH_PATTERN = r'/((?:[a-zA-Z_]+/)*)(\d+\.\d+)/([a-zA-Z_]+).hal' HAL_PATH_PATTERN = r'/((?:[a-zA-Z_][a-zA-Z0-9_]*/)*)(\d+\.\d+)/([a-zA-Z_][a-zA-Z0-9_]*).hal'
CURRENT_TXT_PATTERN = r'(?:.*/)?([0-9]+|current).txt' CURRENT_TXT_PATTERN = r'(?:.*/)?([0-9]+|current).txt'
def trim_trailing_comments(line): def trim_trailing_comments(line):