Skip to content

Commit

Permalink
gh-685: Remove archive root when bundle archive creation fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
PengZheng committed Jan 11, 2025
1 parent 0ac2902 commit 98ec868
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libs/framework/src/celix_bundle_archive.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ celix_status_t celix_bundleArchive_create(celix_framework_t* fw, const char *arc
status = celix_bundleArchive_storeBundleStateProperties(archive);
if (status != CELIX_SUCCESS) {
fw_logCode(fw->logger, CELIX_LOG_LEVEL_ERROR, status, "Failed to store bundle state properties.");
celix_utils_deleteDirectory(archive->archiveRoot, NULL);
return status;
}
}
Expand Down

0 comments on commit 98ec868

Please sign in to comment.