Changeset 746 for trunk/gsdl/src
- Timestamp:
- 1999-10-26T11:29:32+13:00 (25 years ago)
- Location:
- trunk/gsdl/src/recpt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/librarymain.cpp
r722 r746 28 28 /* 29 29 $Log$ 30 Revision 1.18 1999/10/25 22:29:31 sjboddie 31 receptionist now checks collect diectory for collections 32 rather than collections.txt file 33 30 34 Revision 1.17 1999/10/19 03:23:43 davidb 31 35 Collection building support through web pages … … 98 102 #include "mgsearch.h" 99 103 #include "mggdbmsource.h" 104 #include "fileutil.h" 100 105 #include <assert.h> 101 106 … … 127 132 128 133 text_tarray collections; 129 130 ifstream collist (GSDL_GSDLHOME "/etc/collections.txt"); 131 if (!collist) { 132 exit(1); 133 } 134 char collection[100]; 135 while (!collist.eof()) { 136 collist.getline (collection, 100); 137 if (collection[0] != '\0') 138 collections.push_back (collection); 139 } 140 collist.close(); 134 if (!read_dir (GSDL_GSDLHOME "/collect", collections)) exit (1); 141 135 142 136 text_tarray::const_iterator thiscol = collections.begin(); … … 144 138 145 139 while (thiscol != endcol) { 140 141 // ignore the modelcol 142 if (*thiscol == "modelcol") { 143 thiscol ++; 144 continue; 145 } 146 146 147 147 // this memory is created but never destroyed -
trunk/gsdl/src/recpt/nullproto.cpp
r722 r746 28 28 /* 29 29 $Log$ 30 Revision 1.11 1999/10/25 22:29:32 sjboddie 31 receptionist now checks collect diectory for collections 32 rather than collections.txt file 33 30 34 Revision 1.10 1999/10/19 03:23:43 davidb 31 35 Collection building support through web pages … … 117 121 << configinfo.gsdlhome << "\"\n"; 118 122 // return false; //**** 123 here ++; 124 continue; 119 125 } 120 126 … … 123 129 outconvertclass text_t2ascii; 124 130 logout << text_t2ascii 125 << " Error: couldn't read collect.cfg file for collection \""131 << "Warning: couldn't read collect.cfg file for collection \"" 126 132 << configinfo.collection << "\", gsdlhome=\"" 127 133 << configinfo.gsdlhome << "\"\n"; 128 return false; 134 // return false; //**** 135 here ++; 136 continue; 129 137 } 130 138
Note:
See TracChangeset
for help on using the changeset viewer.