forked from I2P_Developers/i2p.i2p
- Straighten out some confusion on versions, RFC 822 dates,
etc. on news and unsigned updates. Stored versions are always Long.toString(modtime). Only convert to RFC 822 for eepget or display.
This commit is contained in:
@@ -60,8 +60,10 @@ class UnsignedUpdateRunner extends UpdateRunner {
|
||||
public void transferComplete(long alreadyTransferred, long bytesTransferred, long bytesRemaining, String url, String outputFile, boolean notModified) {
|
||||
String lastmod = _get.getLastModified();
|
||||
File tmp = new File(_updateFile);
|
||||
/////// FIXME RFC822 or long?
|
||||
if (_mgr.notifyComplete(this, lastmod, tmp))
|
||||
long modtime = RFC822Date.parse822Date(lastmod);
|
||||
if (modtime <= 0)
|
||||
modtime = _context.clock().now();
|
||||
if (_mgr.notifyComplete(this, Long.toString(modtime), tmp))
|
||||
this.done = true;
|
||||
else
|
||||
tmp.delete(); // corrupt
|
||||
|
||||
Reference in New Issue
Block a user