From 076b4f7a607cd29efd8523bab0ef421d95224f4e Mon Sep 17 00:00:00 2001 From: hns Date: Tue, 2 Dec 2003 17:44:53 +0000 Subject: [PATCH] Always mark prototype as updated if a zip files contains some part of it, even if it's a skin file. --- src/helma/framework/core/ZippedAppFile.java | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/helma/framework/core/ZippedAppFile.java b/src/helma/framework/core/ZippedAppFile.java index 1834b66b..6057c1ed 100644 --- a/src/helma/framework/core/ZippedAppFile.java +++ b/src/helma/framework/core/ZippedAppFile.java @@ -113,8 +113,6 @@ public class ZippedAppFile implements Updatable { proto.addActionFile(act); updatables.add(act); - // mark prototype as updated - proto.markUpdated(); } else if (fname.endsWith(".hsp")) { String name = fname.substring(0, fname.lastIndexOf(".")); String sourceName = file.getName() + "/" + ename; @@ -126,8 +124,6 @@ public class ZippedAppFile implements Updatable { proto.addTemplate(tmp); updatables.add(tmp); - // mark prototype as updated - proto.markUpdated(); } else if (fname.endsWith(".skin")) { String name = fname.substring(0, fname.lastIndexOf(".")); String content = getZipEntryContent(zip, entry); @@ -137,6 +133,7 @@ public class ZippedAppFile implements Updatable { proto.addSkinFile(skin); updatables.add(skin); + } else if (fname.endsWith(".js")) { String sourceName = file.getName() + "/" + ename; String content = getZipEntryContent(zip, entry); @@ -147,17 +144,15 @@ public class ZippedAppFile implements Updatable { proto.addFunctionFile(ff); updatables.add(ff); - // mark prototype as updated - proto.markUpdated(); } else if ("type.properties".equalsIgnoreCase(fname)) { DbMapping dbmap = proto.getDbMapping(); SystemProperties props = dbmap.getProperties(); props.addProps(file.getName(), zip.getInputStream(entry)); - - // mark prototype as updated - proto.markUpdated(); } + + // mark prototype as updated + proto.markUpdated(); } } } catch (Throwable x) {