Changeset 599 for applications/shepherd
- Timestamp:
- 03/06/07 17:34:42 (6 years ago)
- Files:
-
- 1 modified
-
applications/shepherd (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
applications/shepherd
r593 r599 2 2 3 3 my $progname = 'shepherd'; 4 my $version = '0.4.7 4';4 my $version = '0.4.75'; 5 5 6 6 # tv_grab_au … … 189 189 # --------------------------------------------------------------------------- 190 190 191 unless ($opt->{noupdate}) 192 { 193 if (&update()) 194 { 195 &write_config_file; 196 } 191 if (&update()) 192 { 193 &write_config_file; 197 194 } 198 195 … … 282 279 if (update_component($proggy, $latestversion, $progtype, $csum1, $csum2)) 283 280 { 284 $made_changes = 1;281 $made_changes++; 285 282 } 286 283 delete $clist{$proggy}; 284 } 285 286 # if user has set system to not update, then simply tell them if there are updates 287 if ((defined $opt->{noupdate}) && ($made_changes)) { 288 &log(2,"\n$made_changes components with pending updates, but --noupdate specified.\n". 289 "It is recommended that you manually run --update at your earliest convenience,\n". 290 "as these updates may be for critical bugfixes!\n\n"); 291 &countdown(20); 292 return 0; 287 293 } 288 294 … … 292 298 &log("\nDeleted component: $_.\n"); 293 299 disable($_, 2); 294 $made_changes = 1;300 $made_changes++; 295 301 } 296 302 } … … 335 341 { 336 342 $result = &versioncmp($ver, $latestversion); 337 $action = $result == -1 ? ($ver ? "UPGRADING" : "NEW") : 338 $result == 1 ? "DOWNGRADING" : 339 "up to date"; 340 } 341 &log(sprintf "* %-55s%16s\n", 343 344 if (!defined $opt->{noupdate}) { 345 $action = $result == -1 ? ($ver ? "UPGRADING" : "NEW") : 346 $result == 1 ? "DOWNGRADING" : 347 "up to date"; 348 } else { 349 $action = $result == -1 ? ($ver ? "UPDATE AVAILABLE" : "NEW COMPONENT") : 350 $result == 1 ? "DOWNGRADE ADVISED" : 351 "up to date"; 352 } 353 } 354 &log(2,sprintf "* %-54s%17s\n", 342 355 ucfirst($progtype) . " $proggy" . 343 356 ($ver ? " v$ver" : '') . "...", 344 357 $action); 358 359 return $result if (defined $opt->{noupdate}); 345 360 return 0 unless ($result); 346 361 install($proggy, $latestversion, $progtype, $ver, $csum1, $csum2);
