Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit adccf33e authored by Brint E. Kriebel's avatar Brint E. Kriebel
Browse files

releasetools: don't create prebuilt_dir path if it exits

This path may already exists from previous build tasks. Attempting
to create it again will cause an error.

Change-Id: I4baad8bc846470b99f6ce9207c0682401406decc
parent 2bd8e153
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -349,6 +349,7 @@ def GetBootableImage(name, prebuilt_name, unpack_dir, tree_subdir,
  if custom_bootimg_mk:
    bootimage_path = os.path.join(os.getenv('OUT'), "boot.img")
    print "using custom bootimage makefile %s..." % (custom_bootimg_mk,)
    if not os.path.isdir(prebuilt_dir):
        os.mkdir(prebuilt_dir)
    shutil.copyfile(bootimage_path, prebuilt_path)
  if os.path.exists(prebuilt_path):