check_target_vintf: Properly glob Vintf file list

Use the proper "**" glob to extract subdirectories as well as files.

The unzip-6.0-fix-recmatch patch shipped on distros like Fedora and ArchLinux
no longer extracts subdirectories when using "*", which breaks vintf checking
on those distros.

Test:
Manually run "unzip -o -q target_files.zip ODM/etc/**" and verify output
run sucessful build with vintf checks on ArchLinux (unzip 6.0-15)
and Ubuntu 20.04 (unzip 6.0-25ubuntu1)

Change-Id: I9e04fa36e071e11427fea89e7369dba8b9c5a4a1
This commit is contained in:
Christian Oder
2021-11-11 21:02:34 +01:00
parent edf3230c76
commit 83bfe5a0ed

View File

@@ -164,7 +164,7 @@ def GetVintfFileList():
"""
def PathToPatterns(path):
if path[-1] == '/':
path += '*'
path += '**'
# Loop over all the entries in DIR_SEARCH_PATHS and find one where the key
# is a prefix of path. In order to get find the correct prefix, sort the