Ignore:
Timestamp:
May 13, 2006, 8:47:23 PM (18 years ago)
Author:
bcornec
Message:

Stable is reverted to r436 (2.0.7) to put it in line with 2.0.8 and start from there over

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/mondo/common/libmondo-filelist.c

    r538 r541  
    110110#include "my-stuff.h"
    111111#include "mondostructures.h"
     112#include "lib-common-externs.h"
    112113#include "libmondo-filelist.h"
    113114#include "libmondo-string-EXT.h"
    114115#include "libmondo-files-EXT.h"
    115116#include "libmondo-fork-EXT.h"
    116 #include "newt-specific-EXT.h"
     117#include "libmondo-gui-EXT.h"
    117118#include "libmondo-tools-EXT.h"
    118119
     
    202203    malloc_string(cksumlist);
    203204    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.");
    207208    i = 0;
    208209/*
     
    502503    if (depth == 0) {
    503504        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");
    505506    }
    506507    depth++;
     
    940941/* add here */
    941942    if (!(newnode = (struct s_node *) malloc(sizeof(struct s_node)))) {
    942         log_to_screen(_("failed to malloc"));
     943        log_to_screen("failed to malloc");
    943944        depth--;
    944945        return (1);
     
    972973            (node->down =
    973974             (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);
    975976            return (1);
    976977        }
     
    10251026        fatal_error("filelist does not exist -- cannot load it");
    10261027    }
    1027     log_to_screen(_("Loading filelist"));
     1028    log_to_screen("Loading filelist");
    10281029    sprintf(command_to_open_fname, "gzip -dc %s", filelist_fname);
    10291030    sprintf(tmp, "zcat %s | wc -l", filelist_fname);
     
    10321033        atol(call_program_and_get_last_line_of_output(tmp));
    10331034    if (lines_in_filelist < 3) {
    1034         log_to_screen(_("Warning - surprisingly short filelist."));
     1035        log_to_screen("Warning - surprisingly short filelist.");
    10351036    }
    10361037    g_original_noof_lines_in_filelist = lines_in_filelist;
     
    10491050        return (NULL);
    10501051    }
    1051     open_evalcall_form(_("Loading filelist from disk"));
     1052    open_evalcall_form("Loading filelist from disk");
    10521053    for (fgets(fname, MAX_STR_LEN, pin); !feof(pin);
    10531054         fgets(fname, MAX_STR_LEN, pin)) {
     
    11661167    assert(outfname != NULL);   // will be zerolength if save_filelist() is called by itself
    11671168    if (depth == 0) {
    1168         log_to_screen(_("Saving filelist"));
     1169        log_to_screen("Saving filelist");
    11691170        if (!(fout = fopen(outfname, "w"))) {
    11701171            fatal_error("Cannot openout/save filelist");
    11711172        }
    11721173        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");
    11741175    }
    11751176    for (node = filelist; node != NULL; node = node->right) {
     
    14511452    if (bkpinfo->make_filelist) {
    14521453        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");
    14541455    } else {
    14551456        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");
    14571458    }
    14581459
     
    14751476        log_OS_error("Call to mondo-makefilelist failed");
    14761477        *p_res++;
    1477         mvaddstr_and_log_it(g_currentY++, 74, _("Failed."));
     1478        mvaddstr_and_log_it(g_currentY++, 74, "Failed.");
    14781479    } else {
    1479         mvaddstr_and_log_it(g_currentY++, 74, _("Done."));
     1480        mvaddstr_and_log_it(g_currentY++, 74, "Done.");
    14801481    }
    14811482    return (res);
     
    15711572#ifndef _XWIN
    15721573                if (!g_text_mode) {
    1573                     sprintf(tmp, _("Reading %-68s"), dir);
     1574                    sprintf(tmp, "Reading %-68s", dir);
    15741575                    newtDrawRootText(0, g_noof_rows - 3, tmp);
    15751576                }
     
    17051706                       char *userdef_filelist)
    17061707{
    1707     char sz_datefile_wildcard[] = "/var/cache/mondo/difflevel.%d";
     1708    char sz_datefile_wildcard[] = "/var/cache/mondo-archive/difflevel.%d";
    17081709    char *p, *q;
    17091710    char sz_datefile[80];
     
    17741775        sprintf(exclude_paths, " %s %s %s %s %s %s . .. \
    17751776" 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);
    17771778
    17781779        log_msg(2, "Excluding paths = '%s'", exclude_paths);
Note: See TracChangeset for help on using the changeset viewer.