Changeset 2518


Ignore:
Timestamp:
2001-06-11T15:24:15+12:00 (23 years ago)
Author:
sjboddie
Message:

the collector no longer uses the image of the original collection for a
cloned collection

Location:
trunk/gsdl/src/recpt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/collectoraction.cpp

    r2517 r2518  
    402402      // "collection information" has been changed after collection already exists
    403403      // so we'll need to update the cfg file.
    404       update_cfgfile_partial (args, logout);
     404      update_cfgfile_partial (args, false, logout);
    405405    }
    406406  }
     
    515515      }
    516516      // update the new cfg file
    517       update_cfgfile_partial (args, logout);
     517      update_cfgfile_partial (args, true, logout);
    518518     
    519519    } else {
     
    529529      // copy original back again and update it with any recent changes
    530530      if (file_copy (cfgfile_org, cfgfile)) {
    531     update_cfgfile_partial (args, logout);
     531    update_cfgfile_partial (args, false, logout);
    532532      } else {
    533533    message = "tmpfail";
     
    538538
    539539// update configuration file on disk to match bc1 arguments
    540 void collectoraction::update_cfgfile_partial (cgiargsclass &args, ostream &logout) {
     540// there's a special case if the clone option is true as certain parts of a
     541// config file should not be cloned (e.g. the iconcollection stuff)
     542void collectoraction::update_cfgfile_partial (cgiargsclass &args, bool clone, ostream &logout) {
    541543
    542544  text_t cfgfile = filename_cat(get_collectdir(args), args["bc1dirname"], "etc", "collect.cfg");
     
    563565      } else if (cfgline[1] == "collectionextra") {
    564566        cfgline[2] = carriage_replace (args["bc1aboutdesc"], 0);
     567      } else if (clone && (cfgline[1] == "iconcollection" ||
     568                   cfgline[1] == "iconcollectionsmall")) {
     569        cfgline[2] = "";
    565570      }
    566571    }
  • trunk/gsdl/src/recpt/collectoraction.h

    r2407 r2518  
    6666  void update_cfgfile_clone (cgiargsclass &args, ostream &logout);
    6767
    68   void update_cfgfile_partial (cgiargsclass &args, ostream &logout);
     68  void update_cfgfile_partial (cgiargsclass &args, bool clone, ostream &logout);
    6969
    7070  void update_cfgfile_complete (cgiargsclass &args, ostream &logout);
Note: See TracChangeset for help on using the changeset viewer.