Changeset 22076 for main/trunk
- Timestamp:
- 2010-05-12T10:29:16+12:00 (14 years ago)
- Location:
- main/trunk/greenstone2/perllib/dbutil
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/dbutil/gdbm.pm
r21856 r22076 48 48 $cmd .= " \"$infodb_file_path\""; 49 49 50 if (!-e "$txt2db_exe" || !open($infodb_file_handle, "| $cmd"))50 if (!-e "$txt2db_exe") 51 51 { 52 return undef; 52 print STDERR "Error: Unable to find $txt2db_exe\n"; 53 return undef; 54 } 55 56 if(!open($infodb_file_handle, "| $cmd")) 57 { 58 print STDERR "Error: Failed to open pipe to $cmd\n"; 59 print STDERR " $!\n"; 60 return undef; 53 61 } 54 62 -
main/trunk/greenstone2/perllib/dbutil/gdbmtxtgz.pm
r21856 r22076 53 53 if (!open($infodb_file_handle, "| gzip - > \"$infodb_file_path\"")) 54 54 { 55 return undef; 55 print STDERR "Error: Failed to open pipe to gzip - > \"$infodb_file_path\"\n"; 56 print STDERR " $!\n"; 57 return undef; 56 58 } 57 59 -
main/trunk/greenstone2/perllib/dbutil/jdbm.pm
r21856 r22076 64 64 if (!open($infodb_file_handle, "| $txt2jdb_cmd")) 65 65 { 66 return undef; 66 print STDERR "Error: Failed to open pipe to $txt2jdb_cmd"; 67 print STDERR " $!\n"; 68 return undef; 67 69 } 68 70 -
main/trunk/greenstone2/perllib/dbutil/sqlite.pm
r21872 r22076 40 40 my $sqlite3_exe = &util::filename_cat($ENV{'GSDLHOME'},"bin",$ENV{'GSDLOS'}, "sqlite3" . &util::get_os_exe()); 41 41 my $infodb_handle = undef; 42 if (!-e "$sqlite3_exe" || !open($infodb_handle, "| \"$sqlite3_exe\" \"$infodb_file_path\"")) 43 { 44 return undef; 42 43 if (!-e "$sqlite3_exe") 44 { 45 print STDERR "Error: Unable to find $sqlite3_exe\n"; 46 return undef; 47 } 48 49 if(!open($infodb_handle, "| \"$sqlite3_exe\" \"$infodb_file_path\"")) 50 { 51 print STDERR "Error: Failed to open pipe to \"$sqlite3_exe\" \"$infodb_file_path\"\n"; 52 print STDERR " $!\n"; 53 return undef; 45 54 } 46 55
Note:
See TracChangeset
for help on using the changeset viewer.