From: Semun Lee Date: Wed, 20 Sep 2017 10:30:41 +0000 (+0900) Subject: Support debug mode for reinstall, mount install X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=85a428a5e1cb68bf3922c49ee62ef3d2420ff1a0;p=platform%2Fcore%2Fappfw%2Fpkgmgr-tool.git Support debug mode for reinstall, mount install Change-Id: I5a54a6dec944415579c172e5d63bdcf57a27c662 Signed-off-by: Semun Lee (cherry picked from commit a3e41e5e8020967acb82bad7ee0986cbd8272dce) --- diff --git a/src/pkg_cmd.c b/src/pkg_cmd.c index 813bd2e..4e58219 100644 --- a/src/pkg_cmd.c +++ b/src/pkg_cmd.c @@ -747,6 +747,9 @@ static int __process_request(uid_t target_uid) break; } + if (data.debug_mode) + pkgmgr_client_set_debug_mode(pc, true); + ret = pkgmgr_client_usr_reinstall(pc, NULL, data.pkgid, NULL, PM_QUIET, __return_cb, pc, target_uid); if (ret < 0) { data.result = PKGMGR_INSTALLER_ERRCODE_ERROR; @@ -772,6 +775,9 @@ static int __process_request(uid_t target_uid) break; } + if (data.debug_mode) + pkgmgr_client_set_debug_mode(pc, true); + if (data.tep_path[0] != '\0') pkgmgr_client_set_tep_path(pc, data.tep_path, data.tep_move);