Skip to content

Commit 246c7c0

Browse files
committed
extract_utils: allow filename only symlink
With this change both of these examples will generate the same blueprint: vendor/etc/hal_uuid_map_config.xml;SYMLINK=hal_uuid_map_c000850.xml vendor/etc/hal_uuid_map_config.xml;SYMLINK=vendor/etc/hal_uuid_map_c000850.xml Change-Id: I11da9dfec885ade5c7e7a66406c496973ff82486
1 parent 48bb722 commit 246c7c0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

extract_utils/makefiles.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,8 @@ def write_symlink_package(
601601
encoder: JSONEncoder,
602602
):
603603
symlink_target = f'/{file.dst}'
604+
if '/' not in symlink:
605+
symlink = f'{os.path.dirname(file.dst)}/{symlink}'
604606
part, location = symlink.split('/', 1)
605607
package_name = symlink.replace('/', '_').replace('.', '_')
606608

0 commit comments

Comments
 (0)