Ticket #5975: mythtv-5975-restore-exclude_script_from_file_selection-20081206.patch
File mythtv-5975-restore-exclude_script_from_file_selection-20081206.patch, 1.4 KB (added by , 17 years ago) |
---|
-
programs/scripts/database/mythconverg_restore.pl
old new 13 13 14 14 # Script info 15 15 $NAME = 'MythTV Database Restore Script'; 16 $VERSION = '1.0. 2';16 $VERSION = '1.0.3'; 17 17 18 18 # Some variables we'll use here 19 19 our ($username, $homedir, $mythconfdir, $database_information_file); … … 769 769 } 770 770 } 771 771 my @files = <$backup_conf{'directory'}/$backup_conf{'filename'}*>; 772 @files = grep(!/.*mythconverg_(backup|restore).pl$/, @files); 772 773 my $num_files = @files; 773 774 if ($num_files < 1) 774 775 { … … 919 920 my $exit = $? >> 8; 920 921 verbose($verbose_level_debug, 921 922 "\n$mysql_client exited with status: $exit"); 922 verbose($verbose_level_error, 923 "$mysql_client output:", $result) if ($exit); 924 die("\nUnable to create initial database, stopped"); 923 if ($exit) 924 { 925 verbose($verbose_level_error, 926 "$mysql_client output:", $result); 927 die("\nUnable to create initial database, stopped"); 928 } 925 929 return $exit; 926 930 } 927 931