Changeset 293
- Timestamp:
- 11/24/06 19:57:07 (6 years ago)
- Files:
-
- 1 modified
-
applications/shepherd (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
applications/shepherd
r291 r293 290 290 &log("$proggy v$latestversion failed ready test - marking as a pending update.\n"); 291 291 $components_pending_install->{$proggy}->{config} = $config; 292 $components_pending_install->{$proggy}->{updated} = time; 293 294 if (defined $components->{$proggy}) { 295 $components->{$proggy}->{admin_status} = sprintf "update to version %s pending: %s", 296 $latestversion, $components_pending_install->{$proggy}->{admin_status}; 297 } 298 292 299 return; 293 300 } … … 305 312 $components->{$proggy}->{ver} = $latestversion; 306 313 $components->{$proggy}->{config} = $config; 307 $components->{$proggy}->{laststatus} = sprintf "updated to %s on %s", $latestversion, POSIX::strftime("%a%d%b%y",localtime(time)); 314 $components->{$proggy}->{updated} = time; 315 $components->{$proggy}->{admin_status} = sprintf "updated from %s to %s", $oldver, $latestversion; 308 316 delete $components_pending_install->{$proggy} if (defined $components_pending_install->{$proggy}); 309 317 … … 397 405 # mark as successful but only if previously unsuccessful 398 406 # (we only mark it if it was previously unsuccessful otherwise a --check 399 # will result in clearing out all of the laststatus fields)407 # will result in clearing out all of the admin_status fields) 400 408 $statusmsg = sprintf "tested successfully on %s", POSIX::strftime("%a%d%b%y", localtime(time)) 401 409 if ((defined $components->{$proggy}->{ready}) && (!$components->{$proggy}->{ready})); … … 405 413 if ((defined $statusmsg) && ($statusmsg ne "")) { 406 414 if ((defined $specific_version) && ($specific_version ne "")) { 407 $components_pending_install->{$proggy}->{ laststatus} = $statusmsg;415 $components_pending_install->{$proggy}->{admin_status} = $statusmsg; 408 416 } else { 409 $components->{$proggy}->{ laststatus} = $statusmsg;417 $components->{$proggy}->{admin_status} = $statusmsg; 410 418 } 411 419 } … … 427 435 428 436 delete $components->{$proggy}->{disabled}; 429 $components->{$proggy}->{ laststatus} = sprintf "enabled on %s, not run yet",POSIX::strftime("%a%d%b%y", localtime(time));437 $components->{$proggy}->{admin_status} = sprintf "enabled on %s",POSIX::strftime("%a%d%b%y", localtime(time)); 430 438 } 431 439 … … 449 457 $n ||= 1; 450 458 $components->{$proggy}->{disabled} = $n; 451 $components->{$proggy}->{ laststatus} = sprintf "manually disabled on %s",POSIX::strftime("%a%d%b%y", localtime(time));459 $components->{$proggy}->{admin_status} = sprintf "manually disabled on %s",POSIX::strftime("%a%d%b%y", localtime(time)); 452 460 } 453 461
