Author: toad
Date: 2007-07-27 21:09:03 +0000 (Fri, 27 Jul 2007)
New Revision: 14401
Modified:
trunk/freenet/src/freenet/node/updater/NodeUpdater.java
Log:
logging
Modified: trunk/freenet/src/freenet/node/updater/NodeUpdater.java
===================================================================
--- trunk/freenet/src/freenet/node/updater/NodeUpdater.java 2007-07-27
21:02:13 UTC (rev 14400)
+++ trunk/freenet/src/freenet/node/updater/NodeUpdater.java 2007-07-27
21:09:03 UTC (rev 14401)
@@ -204,7 +204,11 @@
if(!tempBlobFile.renameTo(blobFile)) {
blobFile.delete();
if(!tempBlobFile.renameTo(blobFile)) {
- Logger.error(this, "Not able to rename
binary blob for node updater: "+tempBlobFile+" -> "+blobFile+" - may not be
able to tell other peers about this build");
+ if(blobFile.exists() &&
tempBlobFile.exists() &&
+ blobFile.length() ==
tempBlobFile.length())
+ Logger.minor(this, "Can't
rename "+tempBlobFile+" over "+blobFile+" for "+fetchedVersion+" - probably not
a big deal though as the files are the same size");
+ else
+ Logger.error(this, "Not able to
rename binary blob for node updater: "+tempBlobFile+" -> "+blobFile+" - may not
be able to tell other peers about this build");
}
}
this.fetchedVersion = fetchedVersion;