From c2d07cf732bcbfefb849b443a63715b52a397e72 Mon Sep 17 00:00:00 2001 From: small_leek Date: Wed, 20 Aug 2025 15:22:15 +0800 Subject: [PATCH] add note when install hsp, which support deduplicateHar, but no entry Signed-off-by: small_leek --- frameworks/src/bundle_command.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frameworks/src/bundle_command.cpp b/frameworks/src/bundle_command.cpp index a43dc9a..5e5f7b5 100644 --- a/frameworks/src/bundle_command.cpp +++ b/frameworks/src/bundle_command.cpp @@ -764,6 +764,9 @@ ErrCode BundleManagerShellCommand::RunAsInstallCommand() int32_t installResult = InstallOperation(bundlePath, installParam, waittingTime, resultMsg); if (installResult == OHOS::ERR_OK) { resultReceiver_ = STRING_INSTALL_BUNDLE_OK + "\n"; + if (!resultMsg.empty() && resultMsg[0] != '[') { + resultReceiver_.append(resultMsg + "\n"); + } } else { resultReceiver_ = STRING_INSTALL_BUNDLE_NG + "\n"; resultReceiver_.append(GetMessageFromCode(installResult)); -- Gitee