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

Commit aac4ad56 authored by Tao Bao's avatar Tao Bao
Browse files

common.py: Fix the build.

Should only use source_info_dict when creating incremental OTAs.

Change-Id: I6a4e5f8fa3613a1b36563ec915e433247965a2b8
parent 543b28d4
Loading
Loading
Loading
Loading
+5 −2
Original line number Original line Diff line number Diff line
@@ -1259,6 +1259,9 @@ class BlockDifference(object):
    self.path = os.path.join(tmpdir, partition)
    self.path = os.path.join(tmpdir, partition)
    b.Compute(self.path)
    b.Compute(self.path)


    if src is None:
      _, self.device = GetTypeAndDevice("/" + partition, OPTIONS.info_dict)
    else:
      _, self.device = GetTypeAndDevice("/" + partition,
      _, self.device = GetTypeAndDevice("/" + partition,
                                        OPTIONS.source_info_dict)
                                        OPTIONS.source_info_dict)