Ignore:
Timestamp:
Feb 26, 2007, 2:04:43 PM (14 years ago)
Author:
Bruno Cornec
Message:

Removal of g_mondo_home useless and used MONDO_SHARE instead

File:
1 edited

Legend:

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

    r1194 r1213  
    2929
    3030extern int g_currentY;
    31 extern char *g_mondo_home;
    3231
    3332/**
     
    951950
    952951    /* BERLIOS: Why do we need to do it here as well ? */
    953     mr_msg(4, "g_mondo_home='%s'", g_mondo_home);
    954     if (strlen(g_mondo_home) < 2) {
    955         find_and_store_mondoarchives_home(g_mondo_home);
    956     }
    957     mr_asprintf(&command, CP_BIN " --parents -pRdf %s %s", g_mondo_home,
     952    mr_asprintf(&command, CP_BIN " --parents -pRdf %s %s", MONDO_SHARE,
    958953            bkpinfo->scratchdir);
    959954
     
    970965    mr_free(command);
    971966
    972     mr_asprintf(&tmp, "%s/payload.tgz", g_mondo_home);
     967    mr_asprintf(&tmp, "%s/payload.tgz", MONDO_SHARE);
    973968    if (does_file_exist(tmp)) {
    974969        log_it("Untarring payload %s to scratchdir %s", tmp,
     
    12231218    }
    12241219
    1225     mr_asprintf(&tmp, "%s/do-not-compress-these", g_mondo_home);
     1220    mr_asprintf(&tmp, "%s/do-not-compress-these", MONDO_SHARE);
    12261221    if (!does_file_exist(tmp)) {
    12271222        mr_free(tmp);
Note: See TracChangeset for help on using the changeset viewer.