summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorByungju Park <byungju76.park@samsung.com>2014-05-02 13:14:44 +0900
committerByungju Park <byungju76.park@samsung.com>2014-05-02 13:14:44 +0900
commita5a09bb49069242608de374af3deb8e999d1f1e3 (patch)
treecc4adc9cee62bee54e854dc6e5f7a7f97803ffc5
parent49b9616db0ddedd232c197a6039c3800a2ab0272 (diff)
downloadcommon-eplugin-a5a09bb49069242608de374af3deb8e999d1f1e3.tar.gz
common-eplugin-a5a09bb49069242608de374af3deb8e999d1f1e3.tar.bz2
common-eplugin-a5a09bb49069242608de374af3deb8e999d1f1e3.zip
LAUNCH : Push empty resource that deltas are deleted type in RDS
Push empty resource that deltas are deleted type in RDS Change-Id: I84fa31b2f1af967304734d44a5de3523064a0946 Signed-off-by: Byungju Park <byungju76.park@samsung.com>
-rw-r--r--org.tizen.common/src/org/tizen/common/rds/RdsDeployer.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/org.tizen.common/src/org/tizen/common/rds/RdsDeployer.java b/org.tizen.common/src/org/tizen/common/rds/RdsDeployer.java
index 84ff798c6..2bebe086b 100644
--- a/org.tizen.common/src/org/tizen/common/rds/RdsDeployer.java
+++ b/org.tizen.common/src/org/tizen/common/rds/RdsDeployer.java
@@ -771,6 +771,7 @@ public abstract class RdsDeployer implements Closeable {
FileOutputStream fos = new FileOutputStream(zipFile);
ZipOutputStream zos = new ZipOutputStream(fos);
+ boolean isExistEmptyEntry = false;
for (DeltaResourceInfo deltaInfo : deltaInfoList) {
String currentResourcePath = deltaInfo.getFullPath();
File currentResource = new File(currentResourcePath);
@@ -780,7 +781,10 @@ public abstract class RdsDeployer implements Closeable {
}
if(DeltaResourceInfo.TYPE_DELETE.equals(deltaInfo.getType())) {
- zos.putNextEntry(new ZipEntry(RDS_EMPTY));
+ if(!isExistEmptyEntry) {
+ zos.putNextEntry(new ZipEntry(RDS_EMPTY));
+ isExistEmptyEntry = true;
+ }
continue;
}