dynamic_partition_use -> use_dynamic_partitions.

Test: build OTA package
Change-Id: Ia43d23f49fc024ecc767da1c2186c4b446c034de
diff --git a/tools/releasetools/ota_from_target_files.py b/tools/releasetools/ota_from_target_files.py
index 68275dc..7e9677b 100755
--- a/tools/releasetools/ota_from_target_files.py
+++ b/tools/releasetools/ota_from_target_files.py
@@ -2013,10 +2013,10 @@
   OPTIONS.oem_dicts = _LoadOemDicts(OPTIONS.oem_source)
 
   # Assume retrofitting dynamic partitions when base build does not set
-  # dynamic_partition_use but target build does.
+  # use_dynamic_partitions but target build does.
   if (OPTIONS.source_info_dict and
-      OPTIONS.source_info_dict.get("dynamic_partition_use") != "true" and
-      OPTIONS.target_info_dict.get("dynamic_partition_use") == "true"):
+      OPTIONS.source_info_dict.get("use_dynamic_partitions") != "true" and
+      OPTIONS.target_info_dict.get("use_dynamic_partitions") == "true"):
     if OPTIONS.target_info_dict.get("dynamic_partition_retrofit") != "true":
       raise common.ExternalError(
           "Expect to generate incremental OTA for retrofitting dynamic "