Fix 'PMINFO_APPINFO_PROP_PKG_DISABLE' filter for cache 99/289299/1
authorilho kim <ilho159.kim@samsung.com>
Mon, 6 Mar 2023 04:44:57 +0000 (13:44 +0900)
committerilho kim <ilho159.kim@samsung.com>
Mon, 6 Mar 2023 04:44:57 +0000 (13:44 +0900)
PMINFO_APPINFO_PROP_PKG_DISABLE filter should check
if the application's package is disabled or not

Change-Id: Ifce33771267de6ade81d9e118cded3519757aef0
Signed-off-by: ilho kim <ilho159.kim@samsung.com>
src/server/filter_checker/app_filter_checker/pkg_disable_app_filter_checker.cc

index 96a042bc9f2762cd9ecc0f1950ac65f5a591cbe2..f4667f4ab58b86fea055075e27b3a7627ef0baf9 100644 (file)
@@ -24,7 +24,8 @@ namespace database {
 
 bool PkgDisableAppFilterChecker::CheckFilter(pkgmgrinfo_node_x* node,
     application_x* app_info, package_x* pkg_info) {
-  return (node->value != nullptr && strcasecmp(node->value, "false") == 0);
+  return (node->value != nullptr &&
+      strcasecmp(node->value, pkg_info->is_disabled) == 0);
 }
 
 }  // namespace database