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

Commit cbb07697 authored by Michael Bestas's avatar Michael Bestas Committed by Michael Bestas
Browse files

releasetools: Handle build description not ending in -keys

New motorola devices have extra text after -keys

Issue: calyxos#3172
Change-Id: Ic6700b61be41f96be263c9c9363ecd050aa019eb
parent 933b1c5d
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1142,8 +1142,10 @@ def RewriteProps(data):
        value = "/".join(pieces)
      elif key == "ro.build.description":
        pieces = value.split()
        assert pieces[-1].endswith("-keys")
        pieces[-1] = EditTags(pieces[-1])
        for i in range(len(pieces) - 1, -1, -1):
            if pieces[i].endswith("-keys"):
                pieces[i] = EditTags(pieces[i])
                break
        value = " ".join(pieces)
      elif key.startswith("ro.") and key.endswith(".build.tags"):
        value = EditTags(value)