/* Supported options */
/* Note: 'G' is reserved */
-const char *short_options = "iurwmcgxCkaADL:lsd:p:t:n:T:e:M:X:Y:Z:qhG";
+const char *short_options = "iurwmcgxCkaADL:lsd:p:t:n:T:e:M:X:Y:Z:qhGS";
const struct option long_options[] = {
{"install", 0, NULL, 'i'},
{"uninstall", 0, NULL, 'u'},
{"debug-mode", 0, NULL, 'G'},
{"getsizeinfo", 0, NULL, 'x'},
{"uid", 1, NULL, OPTVAL_UID},
+ {"skip-optimization", 0, NULL, 'S'},
{0, 0, 0, 0} /* sentinel */
};
int result;
int uid;
bool debug_mode;
+ bool skip_optimization;
};
typedef struct pm_tool_args_t pm_tool_args;
pm_tool_args data;
printf("-G, --debug-mode install the package with debug mode for sdk\n");
printf("-D, --deactivate disable package or app\n");
printf("-A, --activate enable package or app\n");
+ printf("-O, --skip-optimization install the package with skip optimization for sdk\n");
printf("-h, --help print this help\n");
printf("\n");
if (data.debug_mode)
pkgmgr_client_set_debug_mode(pc, true);
+ if (data.skip_optimization)
+ pkgmgr_client_set_skip_optimization(pc, true);
+
if (data.tep_path[0] != '\0')
pkgmgr_client_set_tep_path(pc, data.tep_path, data.tep_move);
if (data.debug_mode)
pkgmgr_client_set_debug_mode(pc, true);
+ if (data.skip_optimization)
+ pkgmgr_client_set_skip_optimization(pc, true);
+
ret = pkgmgr_client_usr_reinstall(pc, NULL,
data.pkgid, NULL, PM_QUIET, __return_cb, pc, target_uid);
if (ret < 0) {
if (data.debug_mode)
pkgmgr_client_set_debug_mode(pc, true);
+ if (data.skip_optimization)
+ pkgmgr_client_set_skip_optimization(pc, true);
+
if (data.tep_path[0] != '\0')
pkgmgr_client_set_tep_path(pc, data.tep_path, data.tep_move);
data.debug_mode = true;
break;
+ case 'S': /* skip optimization */
+ data.skip_optimization = true;
+ break;
+
/* Otherwise */
case '?': /* Not an option */
__print_usage();