Changeset 541 in MondoRescue for branches/stable/mondo/mondo/common/libmondo-filelist.c
- Timestamp:
- May 13, 2006, 8:47:23 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/mondo/common/libmondo-filelist.c
r538 r541 110 110 #include "my-stuff.h" 111 111 #include "mondostructures.h" 112 #include "lib-common-externs.h" 112 113 #include "libmondo-filelist.h" 113 114 #include "libmondo-string-EXT.h" 114 115 #include "libmondo-files-EXT.h" 115 116 #include "libmondo-fork-EXT.h" 116 #include " newt-specific-EXT.h"117 #include "libmondo-gui-EXT.h" 117 118 #include "libmondo-tools-EXT.h" 118 119 … … 202 203 malloc_string(cksumlist); 203 204 malloc_string(tmp); 204 mvaddstr_and_log_it(g_currentY, 0, _("Dividing filelist into sets"));205 206 log_to_screen( _("Dividing filelist into sets. Please wait."));205 mvaddstr_and_log_it(g_currentY, 0, "Dividing filelist into sets"); 206 207 log_to_screen("Dividing filelist into sets. Please wait."); 207 208 i = 0; 208 209 /* … … 502 503 if (depth == 0) { 503 504 open_evalcall_form("Freeing memory"); 504 log_to_screen( _("Freeing memory formerly occupied by filelist"));505 log_to_screen("Freeing memory formerly occupied by filelist"); 505 506 } 506 507 depth++; … … 940 941 /* add here */ 941 942 if (!(newnode = (struct s_node *) malloc(sizeof(struct s_node)))) { 942 log_to_screen( _("failed to malloc"));943 log_to_screen("failed to malloc"); 943 944 depth--; 944 945 return (1); … … 972 973 (node->down = 973 974 (struct s_node *) malloc(sizeof(struct s_node)))) { 974 log_to_screen( _("%s - failed to malloc"), string_to_add);975 log_to_screen("%s - failed to malloc", string_to_add); 975 976 return (1); 976 977 } … … 1025 1026 fatal_error("filelist does not exist -- cannot load it"); 1026 1027 } 1027 log_to_screen( _("Loading filelist"));1028 log_to_screen("Loading filelist"); 1028 1029 sprintf(command_to_open_fname, "gzip -dc %s", filelist_fname); 1029 1030 sprintf(tmp, "zcat %s | wc -l", filelist_fname); … … 1032 1033 atol(call_program_and_get_last_line_of_output(tmp)); 1033 1034 if (lines_in_filelist < 3) { 1034 log_to_screen( _("Warning - surprisingly short filelist."));1035 log_to_screen("Warning - surprisingly short filelist."); 1035 1036 } 1036 1037 g_original_noof_lines_in_filelist = lines_in_filelist; … … 1049 1050 return (NULL); 1050 1051 } 1051 open_evalcall_form( _("Loading filelist from disk"));1052 open_evalcall_form("Loading filelist from disk"); 1052 1053 for (fgets(fname, MAX_STR_LEN, pin); !feof(pin); 1053 1054 fgets(fname, MAX_STR_LEN, pin)) { … … 1166 1167 assert(outfname != NULL); // will be zerolength if save_filelist() is called by itself 1167 1168 if (depth == 0) { 1168 log_to_screen( _("Saving filelist"));1169 log_to_screen("Saving filelist"); 1169 1170 if (!(fout = fopen(outfname, "w"))) { 1170 1171 fatal_error("Cannot openout/save filelist"); 1171 1172 } 1172 1173 lines_in_filelist = g_original_noof_lines_in_filelist; /* set by load_filelist() */ 1173 open_evalcall_form( _("Saving selection to disk"));1174 open_evalcall_form("Saving selection to disk"); 1174 1175 } 1175 1176 for (node = filelist; node != NULL; node = node->right) { … … 1451 1452 if (bkpinfo->make_filelist) { 1452 1453 mvaddstr_and_log_it(g_currentY, 0, 1453 _("Making catalog of files to be backed up"));1454 "Making catalog of files to be backed up"); 1454 1455 } else { 1455 1456 mvaddstr_and_log_it(g_currentY, 0, 1456 _("Using supplied catalog of files to be backed up"));1457 "Using supplied catalog of files to be backed up"); 1457 1458 } 1458 1459 … … 1475 1476 log_OS_error("Call to mondo-makefilelist failed"); 1476 1477 *p_res++; 1477 mvaddstr_and_log_it(g_currentY++, 74, _("Failed."));1478 mvaddstr_and_log_it(g_currentY++, 74, "Failed."); 1478 1479 } else { 1479 mvaddstr_and_log_it(g_currentY++, 74, _("Done."));1480 mvaddstr_and_log_it(g_currentY++, 74, "Done."); 1480 1481 } 1481 1482 return (res); … … 1571 1572 #ifndef _XWIN 1572 1573 if (!g_text_mode) { 1573 sprintf(tmp, _("Reading %-68s"), dir);1574 sprintf(tmp, "Reading %-68s", dir); 1574 1575 newtDrawRootText(0, g_noof_rows - 3, tmp); 1575 1576 } … … 1705 1706 char *userdef_filelist) 1706 1707 { 1707 char sz_datefile_wildcard[] = "/var/cache/mondo /difflevel.%d";1708 char sz_datefile_wildcard[] = "/var/cache/mondo-archive/difflevel.%d"; 1708 1709 char *p, *q; 1709 1710 char sz_datefile[80]; … … 1774 1775 sprintf(exclude_paths, " %s %s %s %s %s %s . .. \ 1775 1776 " MNT_CDROM " " MNT_FLOPPY " /media/cdrom /media/cdrecorder \ 1776 /proc /sys / tmp /var/cache/mondo /var/cache/mindi", excp, call_program_and_get_last_line_of_output("locate /win386.swp 2> /dev/null"), call_program_and_get_last_line_of_output("locate /hiberfil.sys 2> /dev/null"), call_program_and_get_last_line_of_output("locate /pagefile.sys 2> /dev/null"), (tmpdir[0] == '/' && tmpdir[1] == '/') ? (tmpdir + 1) : tmpdir, (scratchdir[0] == '/' && scratchdir[1] == '/') ? (scratchdir + 1) : scratchdir);1777 /proc /sys /root/images/mondo /root/images/mindi ", excp, call_program_and_get_last_line_of_output("locate /win386.swp 2> /dev/null"), call_program_and_get_last_line_of_output("locate /hiberfil.sys 2> /dev/null"), call_program_and_get_last_line_of_output("locate /pagefile.sys 2> /dev/null"), (tmpdir[0] == '/' && tmpdir[1] == '/') ? (tmpdir + 1) : tmpdir, (scratchdir[0] == '/' && scratchdir[1] == '/') ? (scratchdir + 1) : scratchdir); 1777 1778 1778 1779 log_msg(2, "Excluding paths = '%s'", exclude_paths);
Note:
See TracChangeset
for help on using the changeset viewer.