Ignore:
Timestamp:
May 27, 2014, 5:53:14 PM (10 years ago)
Author:
Bruno Cornec
Message:
  • Remove from mindi 2 functions replaced by perl code (ReadAllLink by mr-read-all-link and ProcessLDD by mr-process-ldd)
  • Redirect mindi execution to mondo log on the fly to try to improve percentage display with newt (not finished yet)
  • Introduce a new global var MINDI_LOGFILE and use it everywhere
  • Fix some memory free mising (thanks valgrind)
  • Remove a call to rpm to log packages - not portable
  • Works with valgrind locally to create images in dir
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mondo/src/common/libmondo-files.c

    r3278 r3292  
    278278    // If we didn't get anything back, check whether mindi raised a fatal error
    279279    if (!kernel[0]) {
    280         mr_asprintf(command, "%s", "grep 'Fatal error' /var/log/mindi.log");
     280        mr_asprintf(command, "grep 'Fatal error' %s", MINDI_LOGFILE);
    281281        mr_asprintf(tmp, "%s", call_program_and_get_last_line_of_output(command));
    282282        if (strlen(tmp) > 1) {
     
    284284            mr_free(tmp);
    285285            mr_free(command);
    286             fatal_error("Mindi gave a fatal error. Please check '/var/log/mindi.log'.");
     286            fatal_error("Mindi gave a fatal error. Please check "MINDI_LOGFILE);
    287287        }
    288288        mr_free(tmp);
Note: See TracChangeset for help on using the changeset viewer.