Changeset 2518
- Timestamp:
- 2001-06-11T15:24:15+12:00 (23 years ago)
- Location:
- trunk/gsdl/src/recpt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/collectoraction.cpp
r2517 r2518 402 402 // "collection information" has been changed after collection already exists 403 403 // so we'll need to update the cfg file. 404 update_cfgfile_partial (args, logout);404 update_cfgfile_partial (args, false, logout); 405 405 } 406 406 } … … 515 515 } 516 516 // update the new cfg file 517 update_cfgfile_partial (args, logout);517 update_cfgfile_partial (args, true, logout); 518 518 519 519 } else { … … 529 529 // copy original back again and update it with any recent changes 530 530 if (file_copy (cfgfile_org, cfgfile)) { 531 update_cfgfile_partial (args, logout);531 update_cfgfile_partial (args, false, logout); 532 532 } else { 533 533 message = "tmpfail"; … … 538 538 539 539 // 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) 542 void collectoraction::update_cfgfile_partial (cgiargsclass &args, bool clone, ostream &logout) { 541 543 542 544 text_t cfgfile = filename_cat(get_collectdir(args), args["bc1dirname"], "etc", "collect.cfg"); … … 563 565 } else if (cfgline[1] == "collectionextra") { 564 566 cfgline[2] = carriage_replace (args["bc1aboutdesc"], 0); 567 } else if (clone && (cfgline[1] == "iconcollection" || 568 cfgline[1] == "iconcollectionsmall")) { 569 cfgline[2] = ""; 565 570 } 566 571 } -
trunk/gsdl/src/recpt/collectoraction.h
r2407 r2518 66 66 void update_cfgfile_clone (cgiargsclass &args, ostream &logout); 67 67 68 void update_cfgfile_partial (cgiargsclass &args, ostream &logout);68 void update_cfgfile_partial (cgiargsclass &args, bool clone, ostream &logout); 69 69 70 70 void update_cfgfile_complete (cgiargsclass &args, ostream &logout);
Note:
See TracChangeset
for help on using the changeset viewer.