forked from I2P_Developers/i2p.i2p
* Updater:
- Add new unsigned update option, triggered by
last-modified date, using the new EepHead.
Buttons still are not hidden after download complete.
- Make the .sud updater use the temp dir when proxied
- Several cleanups
This commit is contained in:
@@ -44,10 +44,17 @@ public class ConfigUpdateHelper extends HelperBase {
|
||||
if (Boolean.valueOf(proxy).booleanValue())
|
||||
return "<input type=\"checkbox\" class=\"optbox\" value=\"true\" name=\"updateThroughProxy\" checked=\"true\" >";
|
||||
else
|
||||
|
||||
return "<input type=\"checkbox\" class=\"optbox\" value=\"true\" name=\"updateThroughProxy\" >";
|
||||
}
|
||||
|
||||
public String getUpdateUnsigned() {
|
||||
String foo = _context.getProperty(ConfigUpdateHandler.PROP_UPDATE_UNSIGNED);
|
||||
if (Boolean.valueOf(foo).booleanValue())
|
||||
return "<input type=\"checkbox\" class=\"optbox\" value=\"true\" name=\"updateUnsigned\" checked=\"true\" >";
|
||||
else
|
||||
return "<input type=\"checkbox\" class=\"optbox\" value=\"true\" name=\"updateUnsigned\" >";
|
||||
}
|
||||
|
||||
private static final long PERIODS[] = new long[] { 12*60*60*1000l, 24*60*60*1000l, 48*60*60*1000l, -1l };
|
||||
|
||||
public String getRefreshFrequencySelectBox() {
|
||||
@@ -105,11 +112,11 @@ public class ConfigUpdateHelper extends HelperBase {
|
||||
return new TrustedUpdate(_context).getTrustedKeysString();
|
||||
}
|
||||
|
||||
public String getZipURL() {
|
||||
return _context.getProperty(ConfigUpdateHandler.PROP_ZIP_URL, "");
|
||||
}
|
||||
|
||||
public String getNewsStatus() {
|
||||
return NewsFetcher.getInstance(_context).status();
|
||||
}
|
||||
|
||||
public String getUpdateVersion() {
|
||||
return NewsFetcher.getInstance(_context).updateVersion();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user