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

Commit 972804b8 authored by Jooyung Han's avatar Jooyung Han
Browse files

Fix a bug in the releasetools common.py script.

The script was not breaking out of the loop when a handler was found, which could lead to multiple handlers being called for the same option.

This fixes the issue that a single option can be handled in two handlers.

Bug: 345402175
Test: sign_target_files_apks -k ..
Change-Id: I9f4ef801df99a4a0f2ba5be994b3f37fbedc22c0
parent a95db664
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2788,6 +2788,7 @@ def ParseOptions(argv,
            break
        elif handler(o, a):
          success = True
          break
      if not success:
        raise ValueError("unknown option \"%s\"" % (o,))