Skip to content

Commit

Permalink
bootzip: ensure symlink is created in the right directory
Browse files Browse the repository at this point in the history
Change-Id: I20a41c0da29d2cb6ec842627189577954018655c
  • Loading branch information
antdking committed Jun 30, 2014
1 parent 45ca73f commit 7d0f8a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/releasetools/boot_flash_from_image
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ with ZipFile("%s.zip" % zip_dir, "w") as zipper:
for file in files:
fn = path.join(root, file)
if path.islink(fn):
sym = ZipInfo(file)
sym = ZipInfo(fn[rootlen:])
sym.create_system = 3
sym.external_attr = 2716663808L
zipper.writestr(sym, fn)
Expand Down

0 comments on commit 7d0f8a0

Please sign in to comment.