add debug-mode option (-G) 40/61640/1 accepted/tizen/common/20160310.081846 accepted/tizen/ivi/20160310.061618 accepted/tizen/mobile/20160310.061448 accepted/tizen/tv/20160310.061517 accepted/tizen/wearable/20160310.061552 submit/tizen/20160309.112706
authorjongmyeongko <jongmyeong.ko@samsung.com>
Wed, 9 Mar 2016 09:14:18 +0000 (18:14 +0900)
committerjongmyeongko <jongmyeong.ko@samsung.com>
Wed, 9 Mar 2016 09:14:18 +0000 (18:14 +0900)
Change-Id: I0a69aa9eccc92a581605b5a0a49ab40d57568124
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
src/pkg_cmd.c

index cd4bb575b631b9695146794c1131493ef7f7f9ce..6c6d01995be0b9d6509bd7db07278f2bcea8d3f8 100644 (file)
@@ -67,7 +67,7 @@ static int __convert_to_absolute_path(char *path);
 
 /* Supported options */
 /* Note: 'G' is reserved */
-const char *short_options = "iurmcgCkaADL:lsd:p:t:n:T:S:e:M:X:Y:Z:qh";
+const char *short_options = "iurmcgCkaADL:lsd:p:t:n:T:S:e:M:X:Y:Z:qhG";
 const struct option long_options[] = {
        {"install", 0, NULL, 'i'},
        {"uninstall", 0, NULL, 'u'},
@@ -101,6 +101,7 @@ const struct option long_options[] = {
        {"add-blacklist", 1, NULL, OPTVAL_ADD_BLACKLIST},
        {"remove-blacklist", 1, NULL, OPTVAL_REMOVE_BLACKLIST},
        {"check-blacklist", 1, NULL, OPTVAL_CHECK_BLACKLIST},
+       {"debug-mode", 0, NULL, 'G'},
        {0, 0, 0, 0}            /* sentinel */
 };
 
@@ -448,6 +449,7 @@ static void __print_usage()
        printf("--add-blacklist         add a package to blacklist\n");
        printf("--remove-blacklist      remove a package from blacklist\n");
        printf("--check-blacklist       check if the given package is blacklisted\n");
+       printf("-G, --debug-mode        install the package with debug mode for sdk\n");
        printf("-h, --help      .       print this help\n\n");
 
        printf("Usage: pkgcmd [options]\n");
@@ -1268,6 +1270,9 @@ int main(int argc, char *argv[])
                case 'q':  /* quiet mode is removed */
                        break;
 
+               case 'G':  /* debug mode */
+                       break;
+
                case OPTVAL_ADD_BLACKLIST:
                        data.request = ADD_BLACKLIST_REQ;
                        if (optarg)