Ignore:
Timestamp:
Dec 7, 2006, 2:01:34 AM (14 years ago)
Author:
Bruno Cornec
Message:

Attempt to solve #113

File:
1 edited

Legend:

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

    r948 r998  
    337337        if (bkpinfo->use_lzo) {
    338338            strcpy(sz_exe, "lzop");
     339        else if (bkpinfo->use_gzip) {
     340            strcpy(sz_exe, "gzip");
    339341        } else {
    340342            strcpy(sz_exe, "bzip2");
     
    519521        strcpy(bkpinfo->zip_suffix, "lzo");
    520522        bkpinfo->use_lzo = TRUE;
     523        bkpinfo->use_gzip = FALSE;
     524    }
     525    if (strstr(tarball_fname, ".gz")
     526        && strcmp(bkpinfo->zip_suffix, "gz")) {
     527        log_msg(2, "OK, I'm going to start using gzip.");
     528        strcpy(bkpinfo->zip_exe, "gzip");
     529        strcpy(bkpinfo->zip_suffix, "gz");
     530        bkpinfo->use_lzo = FALSE;
     531        bkpinfo->use_gzip = TRUE;
    521532    }
    522533    if (strstr(tarball_fname, ".bz2")
     
    526537        strcpy(bkpinfo->zip_suffix, "bz2");
    527538        bkpinfo->use_lzo = FALSE;
     539        bkpinfo->use_gzip = FALSE;
    528540    }
    529541    unlink(outlog);
Note: See TracChangeset for help on using the changeset viewer.