lineage: Add double quote in custom APN name check

* This fixes the case of have having APNs with same the name,
  such as:
  “Sprint EHRPD”
  "Sprint EHRPD ota"
  “Sprint EHRPD internet”

* But we want to replace only “Sprint EHRPD”, not all matches.

Change-Id: Ic3139c5d73a8c3c8667ac2bc527abc1a85541361
gugelfrei
Erfan Abdi 3 years ago committed by Nolen Johnson
parent e741d463e9
commit 5f7f10de7b

@ -34,7 +34,7 @@ def main(argv):
for line in f: for line in f:
xmltree = parseString(line) xmltree = parseString(line)
carrier = xmltree.getElementsByTagName('apn')[0].getAttribute('carrier') carrier = xmltree.getElementsByTagName('apn')[0].getAttribute('carrier')
custom_apn_names.append(carrier) custom_apn_names.append('"' + carrier + '"')
with open(original_file, 'r') as input_file: with open(original_file, 'r') as input_file:
with open(output_file_path, 'w') as output_file: with open(output_file_path, 'w') as output_file:

Loading…
Cancel
Save