From: shingil.kang Date: Wed, 9 Mar 2016 13:17:15 +0000 (+0900) Subject: Fixed a bug that it fails to remove app package during installing app package. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b90f41d623113010a63bc1ea9ae1cd1228e5639a;p=sdk%2Ftools%2Fsdb.git Fixed a bug that it fails to remove app package during installing app package. - Package is not removed if name of it includes space. It occurs when running "sdb install" command with target based on tizen 2.3.1. Signed-off-by: shingil.kang Change-Id: I5c6c229b3065fb351b08180aec85cc74848e7715 --- diff --git a/src/command_function.c b/src/command_function.c index c8e1575..e363990 100644 --- a/src/command_function.c +++ b/src/command_function.c @@ -795,13 +795,7 @@ int install(int argc, char **argv) { return 1; } - const char* SHELL_REMOVE_CMD = NULL; - - if (is_support_whitespace_pkgname()) { - SHELL_REMOVE_CMD = "shell:rm \"%s\""; - } else { - SHELL_REMOVE_CMD = "shell:rm %s"; - } + const char* SHELL_REMOVE_CMD = "shell:rm \"%s\""; snprintf(full_cmd, sizeof full_cmd, SHELL_REMOVE_CMD, destination); D(COMMANDLINE_MSG_FULL_CMD, "remove", full_cmd); if(__sdb_command(full_cmd) < 0) {