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

Commit 2b1efe63 authored by Chih-Hung Hsieh's avatar Chih-Hung Hsieh
Browse files

Accept alternative email addresses.

Some OWNERS files use secondary email addresses, so we only
check existence of _account_id and email attributes.

Test: run against existing OWNERS files
Change-Id: I6f0804a8a90b7a23783c3fe45686d4d973876ed1
parent aa599f39
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -34,8 +34,8 @@ def find_address(address):
               + urllib.quote(address))
    echo('Checking email address: ' + address)
    result = urllib2.urlopen(request).read()
    expected = '"email": "' + address + '"'
    checked_addresses[address] = (result.find(expected) >= 0)
    checked_addresses[address] = (
        result.find('"email":') >= 0 and result.find('"_account_id":') >= 0)
  return checked_addresses[address]