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

Commit c3a74084 authored by Hridaya Prajapati's avatar Hridaya Prajapati Committed by Nolen Johnson
Browse files

releasetools: Only update dynamic partitions if unsparse_super_empty.img exists

This fixes incremental builds by ensuring that unsparse_super_empty.img
is present in the output zip before attempting to update dynamic
partition metadata.
Previously, builds could fail if _have_super_empty was True but
the image was missing.

Change-Id: Iafdd20d509675c5a57993da910c59387db26a5a1
parent 448cb6b3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4060,7 +4060,7 @@ class DynamicPartitionsDifference(object):
    ZipWrite(output_zip, op_list_path, "dynamic_partitions_op_list")

    script.Comment('Update dynamic partition metadata')
    if self._have_super_empty:
    if self._have_super_empty and "unsparse_super_empty.img" in output_zip.namelist():
      script.AppendExtra('assert(update_dynamic_partitions('
                        'package_extract_file("dynamic_partitions_op_list"), '
                        'package_extract_file("unsparse_super_empty.img")));')