MISC: Fixed file checking problem.
authordonghyuk.yang <donghyuk.yang@samsung.com>
Tue, 29 Apr 2014 13:22:19 +0000 (22:22 +0900)
committerdonghyuk.yang <donghyuk.yang@samsung.com>
Tue, 29 Apr 2014 13:22:19 +0000 (22:22 +0900)
Change-Id: Id6ac72bc2001c207337d7b7fe8bc0253bdaacf19
Signed-off-by: donghyuk.yang <donghyuk.yang@samsung.com>
org.tizen.nativeplatform/src/org/tizen/nativeplatform/rds/RpmRapidDeployer.java
org.tizen.nativeplatform/src/org/tizen/nativeplatform/util/PlatformFileUtil.java

index 55662ee..784c57c 100644 (file)
@@ -74,10 +74,12 @@ public class RpmRapidDeployer {
         if (isDeviceCommander()) {
             // If there are added files, install packages normally.
             if (!addList.isEmpty()) {
+                logger.error("RDS is canceled because there is an added file");
                 return false;
             }
             // If copied files are more than 20, install packages normally. It might be better.
             if (copyList.size() > 20) {
+                logger.error("RDS is canceled because changed files are more than 20");
                 return false;
             }
         }
@@ -94,6 +96,7 @@ public class RpmRapidDeployer {
         if (!processAddedFiles(addList, smackInfo)) {
             return false;
         }
+        // FIXME: remove list should be empty.
         if (!processRemovedFiles(removeList)) {
             return false;
         }
index c90a227..a716280 100644 (file)
@@ -86,7 +86,7 @@ public class PlatformFileUtil {
                                e.printStackTrace();
                        }
        } else {
-            exists = !new File(path).exists();
+            exists = new File(path).exists();
        }
        return exists;
     }