[Title] modified pkgcmd's install/uninstall message on console view.
authorTaeyoung Son <taeyoung2.son@samsung.com>
Wed, 17 Apr 2013 05:58:06 +0000 (14:58 +0900)
committerTaeyoung Son <taeyoung2.son@samsung.com>
Wed, 17 Apr 2013 06:13:28 +0000 (15:13 +0900)
[Desc.]
[Issue]

Change-Id: I632106d88774a16ded4311a3c06f009338c1ea84

org.tizen.common/src/org/tizen/common/sdb/command/receiver/PkgCmdReceiver.java

index c999011..675ec07 100644 (file)
@@ -58,19 +58,23 @@ public class PkgCmdReceiver extends CommandOutputReceiver {
                              + getValue(elements, PKGCMD_CB_KEY_ABOUT_VALUE)
                              + ")\n";
             } else if(RETURN_CB_INSTALL_PERCENT.equals(key)) {
-                if (lastMeaningfulOutput.startsWith(OUTPUT_INSTALL_START)
-                        || lastMeaningfulOutput.startsWith(OUTPUT_ING)) {
+                // Because of pkgcmd's percentage key of uninstallation process and installation are same,
+                // we just set output message "." only.
+//                if (lastMeaningfulOutput.startsWith(OUTPUT_INSTALL_START)
+//                        || lastMeaningfulOutput.startsWith(OUTPUT_ING)) {
                     meaningfulOutput = OUTPUT_ING;
-                } else {
-                    meaningfulOutput = OUTPUT_INSTALL_START;
-                }
+//                } else {
+//                    meaningfulOutput = OUTPUT_INSTALL_START;
+//                }
             } else if (RETURN_CB_UNINSTALL_PERCENT.equals(key)) {
-                if (lastMeaningfulOutput.startsWith(OUTPUT_UNINSTALL_START)
-                        || lastMeaningfulOutput.startsWith(OUTPUT_ING)) {
+                // Because of pkgcmd's percentage key of uninstallation process and installation are same,
+                // we just set output message "." only.
+//                if (lastMeaningfulOutput.startsWith(OUTPUT_UNINSTALL_START)
+//                        || lastMeaningfulOutput.startsWith(OUTPUT_ING)) {
                     meaningfulOutput = OUTPUT_ING;
-                } else {
-                    meaningfulOutput = OUTPUT_UNINSTALL_START;
-                }
+//                } else {
+//                    meaningfulOutput = OUTPUT_UNINSTALL_START;
+//                }
             } else {
                 meaningfulOutput = "\n" + key
                         + " : "