create directory before writing into the file. am: 789b63dca0
Original change: https://android-review.googlesource.com/c/platform/packages/modules/common/+/2862127 Change-Id: I4a7a0d60043828c3c01bfebdc30cc4d894aafdf1 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -1316,6 +1316,7 @@ class SdkDistProducer:
|
||||
|
||||
def dist_generate_sdk_supported_modules_file(self, modules):
|
||||
sdk_modules_file = os.path.join(self.dist_dir, "sdk-modules.txt")
|
||||
os.makedirs(os.path.dirname(sdk_modules_file), exist_ok=True)
|
||||
with open(sdk_modules_file, "w", encoding="utf8") as file:
|
||||
for module in modules:
|
||||
if module in MAINLINE_MODULES:
|
||||
|
||||
Reference in New Issue
Block a user