Author: toad
Date: 2006-11-18 18:21:13 +0000 (Sat, 18 Nov 2006)
New Revision: 10988

Modified:
   trunk/freenet/src/freenet/node/updater/UpdateDeployContext.java
Log:
Fix wrapper.conf rewrite fail when only one jar is being updated.

Modified: trunk/freenet/src/freenet/node/updater/UpdateDeployContext.java
===================================================================
--- trunk/freenet/src/freenet/node/updater/UpdateDeployContext.java     
2006-11-18 18:10:38 UTC (rev 10987)
+++ trunk/freenet/src/freenet/node/updater/UpdateDeployContext.java     
2006-11-18 18:21:13 UTC (rev 10988)
@@ -152,7 +152,7 @@
                }
                br.close();

-               if(!(writtenMain && writtenExt)) {
+               if(!((writtenMain || !writtenNewJar) && (writtenExt || 
!writtenNewExt))) {
                        throw new IOException("Not able to update because of 
non-standard config: written main="+writtenMain+" ext="+writtenExt+" - should 
not happen! Report this to the devs, include your wrapper.conf");
                }



Reply via email to