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

Commit ab5acb12 authored by Hridaya Prajapati's avatar Hridaya Prajapati Committed by Hridaya Prajapati
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 f9262a98
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4068,7 +4068,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")));')