Changeset 214
- Timestamp:
- 11/08/06 16:59:43 (7 years ago)
- Files:
-
- 2 modified
-
applications/shepherd (modified) (7 diffs)
-
status (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
applications/shepherd
r213 r214 3 3 my $myprogname = 'shepherd'; 4 4 my $progname = 'shepherd'; 5 my $version = '0.3.1 1';5 my $version = '0.3.12'; 6 6 7 7 # tv_grab_au … … 80 80 my $config_file = "$CWD/$progname.conf"; 81 81 my $channels_file = "$CWD/channels.conf"; 82 my $log_file = "$ CWD/$progname.log";82 my $log_file = "$progname.log"; 83 83 84 84 my $invoked = get_full_path($0); … … 278 278 &log("Installed $proggy v$latestversion.\n") if ($debug); 279 279 280 $components->{$proggy}->{type} = $progtype; 281 $components->{$proggy}->{ver} = $latestversion; 282 $components->{$proggy}->{config} = $config; 283 $components->{$proggy}->{laststatus} = sprintf "updated to %s on %s", $latestversion, POSIX::strftime("%a%d%b%y",localtime(time)); 284 280 285 # if the update was for the main app, restart it 281 286 if ($proggy eq $myprogname) { 287 $components->{$proggy}->{ready} = 1; 288 &write_config_file; 289 282 290 # special case for main app - we create a symlink also 283 291 unlink("$CWD/tv_grab_au","$CWD/shepherd"); … … 292 300 } 293 301 294 my $result = test_proggy($proggy, $progtype); 295 296 $components->{$proggy}->{type} = $progtype; 297 $components->{$proggy}->{ver} = $latestversion; 298 $components->{$proggy}->{ready} = $result; 299 $components->{$proggy}->{config} = $config; 302 $components->{$proggy}->{ready} = test_proggy($proggy, $progtype); 300 303 301 304 # If this component was disabled automatically, re-enable it. … … 306 309 enable($proggy); 307 310 } 308 309 $components->{$proggy}->{laststatus} = sprintf "updated to %s on %s, not run yet", $latestversion, POSIX::strftime("%a%d%b%y",localtime(time));310 311 311 } 312 312 … … 520 520 { 521 521 return query_component_type('postprocessor'); 522 }523 524 sub is_app525 {526 my $proggy = shift;527 return ($proggy eq $myprogname ? 1 : 0);528 522 } 529 523 … … 977 971 print "Finished configuring.\n\n" . 978 972 "Shepherd is installed into $CWD.\n\n"; 979 980 if ($invoked ne "$CWD/$myprogname")973 974 if ($invoked ne get_full_path(query_filename('shepherd','application'))) 981 975 { 982 976 print "Warning: you invoked this program as $invoked.\n" . 983 "In the future, it should be run as $CWD/$myprogname,\n" .977 "In the future, it should be run as ".query_filename('shepherd','application')."\n" . 984 978 "to avoid constantly re-downloading the latest version.\n\n" . 985 979 "MythTV users may wish to create the following symlink, by " . -
status
r213 r214 1 application shepherd 0.3.1 11 application shepherd 0.3.12 2 2 engine dog 0.3.2 3 3 grabber yahoo7widget 1.58
