From: Junghyun Yeon Date: Tue, 16 Feb 2021 08:40:08 +0000 (+0900) Subject: Fix tag plugin X-Git-Tag: accepted/tizen/unified/20210323.122927~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8120a890e1a74b6c120bae4fb8044a4d363d21bd;p=platform%2Fcore%2Fappfw%2Fapp-installers.git Fix tag plugin When certain tag has removed during package update and plugin related with it has executed, "removed" plugin should be executed. But there are no tag in manifest so nullptr will be delivered into plugin. Change-Id: I9373934d7f7a317e2e9ea59cd5ee5efc8ef7b7ea Signed-off-by: Junghyun Yeon --- diff --git a/src/common/plugins/tag_plugin.cc b/src/common/plugins/tag_plugin.cc index 7e9b5c4..c97a409 100644 --- a/src/common/plugins/tag_plugin.cc +++ b/src/common/plugins/tag_plugin.cc @@ -95,7 +95,7 @@ bool TagPlugin::Run(xmlDocPtr doc_ptr, manifest_x* manifest, ActionType action_type) { xmlDocPtr plugin_doc_ptr = CreateDocPtrForPlugin(doc_ptr, plugin_info_.name()); - if (!plugin_doc_ptr) + if (!plugin_doc_ptr && action_type_ != Plugin::ActionType::Removed) return false; int result = 0;