clear 'rpm' related code 30/59730/3 accepted/tizen/common/20160222.162204 accepted/tizen/ivi/20160222.011635 accepted/tizen/mobile/20160222.011425 accepted/tizen/tv/20160222.011511 accepted/tizen/wearable/20160222.011550 submit/tizen/20160219.102650 submit/tizen_common/20160222.141210
authorjongmyeongko <jongmyeong.ko@samsung.com>
Thu, 18 Feb 2016 03:16:41 +0000 (12:16 +0900)
committerSangyoon Jang <s89.jang@samsung.com>
Thu, 18 Feb 2016 04:08:06 +0000 (20:08 -0800)
Change-Id: I14d01aab4298afbc26a26ddd5d56591560a64ebe
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
src/pkg_cmd.c

index 122fc3f558d8752029a4b850d62249798ea0f91b..cd4bb575b631b9695146794c1131493ef7f7f9ce 100644 (file)
@@ -464,18 +464,18 @@ static void __print_usage()
        printf("pkgcmd -X <old_pkg> -Y <new_pkg> -Z <delta_pkg> \n");
 
        printf("Example:\n");
-       printf("pkgcmd -u -n com.samsung.calculator\n");
-       printf("pkgcmd -i -t rpm -p /mnt/nfs/com.samsung.calculator_0.1.2-95_armel.rpm\n");
-       printf("pkgcmd -r -t rpm -n com.samsung.calculator\n");
-       printf("pkgcmd -c -t rpm -n com.samsung.hello\n");
-       printf("pkgcmd -m -t rpm -T 1 -n com.samsung.hello\n");
-       printf("pkgcmd -C -n com.samsung.hello\n");
-       printf("pkgcmd -k -n com.samsung.hello\n");
+       printf("pkgcmd -u -n org.example.hello\n");
+       printf("pkgcmd -i -t tpk -p /tmp/org.example.hello-1.0.0-arm.tpk\n");
+       printf("pkgcmd -r -t tpk -n org.example.hello\n");
+       printf("pkgcmd -c -t tpk -n org.example.hello\n");
+       printf("pkgcmd -m -t tpk -T 1 -n org.example.hello\n");
+       printf("pkgcmd -C -n org.example.hello\n");
+       printf("pkgcmd -k -n org.example.hello\n");
        printf("pkgcmd -a\n");
-       printf("pkgcmd -a -t rpm -n com.samsung.hello\n");
+       printf("pkgcmd -a -t tpk -n org.example.hello\n");
        printf("pkgcmd -l\n");
        printf("pkgcmd -l -t tpk\n");
-       printf("pkgcmd -g -T 0 -n com.samsung.calculator\n");
+       printf("pkgcmd -g -T 0 -n org.example.hello\n");
 
        exit(0);
 
@@ -847,12 +847,7 @@ static int __process_request(uid_t uid)
                        ret = -1;
                        break;
                }
-               if (strncmp(data.pkg_type, "rpm", PKG_TYPE_STRING_LEN_MAX - 1) == 0) {
-                       snprintf(buf, 1023, "%s/%s", APP_INSTALLATION_PATH_RW, data.pkgid);
-                       printf("Tizen Application Installation Path: %s\n", buf);
-                       ret = 0;
-                       break;
-               } else if (strncmp(data.pkg_type, "wgt", PKG_TYPE_STRING_LEN_MAX - 1) == 0) {
+               if (strncmp(data.pkg_type, "wgt", PKG_TYPE_STRING_LEN_MAX - 1) == 0) {
                        snprintf(buf, 1023, "%s/%s/res/wgt", APP_INSTALLATION_PATH_RW, data.pkgid);
                        printf("Tizen Application Installation Path: %s\n", buf);
                        ret = 0;