lastUpdateTime.toString("E yyyy-MM-dd"));
}
if (checkNow) {
log.info(logMessage);
final ActionFactory actionFactory = globalContext.getActionFactory();
final CheckSignatureUpdateAction checkUpdatedSignatureAction = actionFactory
.newCheckSignatureUpdateAction();
checkUpdatedSignatureAction.start(this);
Map<SignatureType, SignatureFileInfo> availableUpdates =
checkUpdatedSignatureAction.getSignatureFileInfos();
// do the download, prompting if necesssary
if (!checkUpdatedSignatureAction.hasError()
&& availableUpdates != null && !availableUpdates.isEmpty()) {
boolean showPrompt = properties.getBoolean("update.downloadPrompt");
Collection<SignatureFileInfo> filesToUpdate = showPrompt
? promptForUpdate(availableUpdates.values())
: availableUpdates.values();
if (!filesToUpdate.isEmpty()) {
UpdateSignatureAction downloadAction = actionFactory.newSignaureUpdateAction();
downloadAction.setUpdates(filesToUpdate);
downloadAction.start(this);
}
}