* Added a message to anvil-update-system to report when no updates were needed.

Signed-off-by: Digimer <digimer@alteeve.ca>
main
Digimer 6 years ago
parent d82a2114f3
commit 93124ea3ae
  1. 1
      html/skins/alteeve/jobs.js
  2. 1
      share/words.xml
  3. 6
      tools/anvil-update-system

@ -1,6 +1,7 @@
$.ajaxSetup({ $.ajaxSetup({
cache: false cache: false
}); });
// TODO: Loop through jobs found on HTML and hide and divs that aren't found in jobs.json.
$(function() { $(function() {
if($("#running_jobs").length) { if($("#running_jobs").length) {
console.log('Looking for running jobs.'); console.log('Looking for running jobs.');

@ -90,6 +90,7 @@ Report if a reboot is needed: #!variable!program!#
<key name="message_0054">This system does NOT need to be rebooted.</key> <key name="message_0054">This system does NOT need to be rebooted.</key>
<key name="message_0055">Exiting to '--run-once' switch.</key> <key name="message_0055">Exiting to '--run-once' switch.</key>
<key name="message_0056">Previous run exited early. Restarting momentarily.</key> <key name="message_0056">Previous run exited early. Restarting momentarily.</key>
<key name="message_0057">No updates were found or needed.</key>
<!-- Log entries --> <!-- Log entries -->
<key name="log_0001">Starting: [#!variable!program!#].</key> <key name="log_0001">Starting: [#!variable!program!#].</key>

@ -293,6 +293,12 @@ sub run_os_update
$anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 2, list => { reboot_needed => $reboot_needed }}); $anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 2, list => { reboot_needed => $reboot_needed }});
} }
# If there were no updates, let the user know.
if ($line =~ /^Nothing to do/i)
{
update_progress($anvil, 95, "message_0057");
}
if ((not $verifying) && ($line =~ /^Verifying /i)) if ((not $verifying) && ($line =~ /^Verifying /i))
{ {
# Update done, verifying now. # Update done, verifying now.

Loading…
Cancel
Save