Fix build error while creating CHD image
While building CHD image, it failed with the error
KeyError: 'system_dlkm_base_fs_file'
Fix the build error by deleting proper props in the python code.
Bug: 359578756
Test: Building CHD image using build_cf_hybrid_device.py should not failed
Change-Id: Iae84ff080b8f6bf3b8d22b26865ea3e74815ac37
diff --git a/tools/releasetools/common.py b/tools/releasetools/common.py
index 6cec380..5d942b5 100644
--- a/tools/releasetools/common.py
+++ b/tools/releasetools/common.py
@@ -933,7 +933,7 @@
else:
logger.warning(
"Failed to find %s fro %s", filename, prop)
- del d[key_name]
+ del d[prop]
# Redirect erofs_[default_]compress_hints files
redirect_file("erofs_default_compress_hints",