Ignore:
Timestamp:
2013-04-14T22:52:17+12:00 (11 years ago)
Author:
davidb
Message:

Mods to allow code to run with Greenstone3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs2-extensions/parallel-building/trunk/src/src/mpiimport-src/mpiimport.cpp

    r26922 r27179  
    141141        fprintf(stderr, "[M] Creating manifest file: %d\n", manifest_file_count);
    142142    stringstream manifestfilename_strstr;
    143     manifestfilename_strstr << gsdlhomedir << "/collect/" << collection << "/tmp/manifest." << manifest_file_count << ".xml";
     143    if (site == NULL) {
     144      manifestfilename_strstr << gsdlhomedir << "/collect/" << collection << "/tmp/manifest." << manifest_file_count << ".xml";
     145    }
     146    else {
     147      manifestfilename_strstr << gsdlhomedir << "/sites/" << site << "/collect/" << collection << "/tmp/manifest." << manifest_file_count << ".xml";
     148    }
     149
    144150    string manifestfilename_str = manifestfilename_strstr.str();
    145151    char *manifestfilename = new char [manifestfilename_str.size() + 1];
Note: See TracChangeset for help on using the changeset viewer.