Support debug mode for reinstall, mount install 01/151301/2
authorSemun Lee <semun.lee@samsung.com>
Wed, 20 Sep 2017 10:30:41 +0000 (19:30 +0900)
committerSemun Lee <semun.lee@samsung.com>
Wed, 20 Sep 2017 11:14:13 +0000 (20:14 +0900)
Change-Id: I5a54a6dec944415579c172e5d63bdcf57a27c662
Signed-off-by: Semun Lee <semun.lee@samsung.com>
src/pkg_cmd.c

index 27f87cec0eab952505d7a49133174f3b6a6511ae..a813876319c5bb1675385a500a13c840020a3020 100644 (file)
@@ -758,6 +758,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;
@@ -783,6 +786,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);