Ignore:
Timestamp:
Aug 21, 2009, 1:47:12 AM (15 years ago)
Author:
Bruno Cornec
Message:
  • Adds LZMA support (Fix #309)
  • Change
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.10/mondo/src/mondorestore/mondo-rstr-tools.c

    r2334 r2338  
    897897mr_free(value);
    898898
     899value = read_cfg_var(cfg_file, "use-lzma");
     900if (value && strstr(value, "yes")) {
     901    bkpinfo->use_lzma = TRUE;
     902    bkpinfo->use_lzo = FALSE;
     903    bkpinfo->use_gzip = FALSE;
     904    mr_free(bkpinfo->zip_exe);
     905    mr_asprintf(bkpinfo->zip_exe, "lzma");
     906    mr_free(bkpinfo->zip_suffix);
     907    mr_asprintf(bkpinfo->zip_suffix, "lzma");
     908}
     909mr_free(value);
     910
    899911value = read_cfg_var(cfg_file, "use-lzo");
    900912if (value && strstr(value, "yes")) {
     913    bkpinfo->use_lzma = FALSE;
    901914    bkpinfo->use_lzo = TRUE;
    902915    bkpinfo->use_gzip = FALSE;
     
    910923value = read_cfg_var(cfg_file, "use-gzip");
    911924if (value && strstr(value, "yes")) {
     925    bkpinfo->use_lzma = FALSE;
    912926    bkpinfo->use_lzo = FALSE;
    913927    bkpinfo->use_gzip = TRUE;
     
    921935value = read_cfg_var(cfg_file, "use-comp");
    922936if (value && strstr(value, "yes")) {
     937    bkpinfo->use_lzma = FALSE;
    923938    bkpinfo->use_lzo = FALSE;
    924939    bkpinfo->use_gzip = FALSE;
Note: See TracChangeset for help on using the changeset viewer.