]> cygwin.com Git - cygwin-apps/setup.git/blame - ChangeLog
2002-11-26 Robert Collins <rbtcollins@hotmail.com>
[cygwin-apps/setup.git] / ChangeLog
CommitLineData
bd4e91a7
RC
12002-11-26 Robert Collins <rbtcollins@hotmail.com>
2
3 * choose.cc (ChooserPage::OnNext): Remove extracted comment.
4 * package_version.cc (processOneDependency): Return once selecting
5 a package (bugfix to prevous rework).
6 Log if the default trust fails the package specification.
7
f416a2b6
RC
82002-11-26 Robert Collins <rbtcollins@hotmail.com>
9
10 * package_meta.h (packagemeta::logAllVersions): Declare.
11 (packagemeta::trustLabel): Ditto.
12 * choose.cc (ChooserPage::OnNext): Get each package to log all it's
13 versions.
14 * package_meta.cc (packagemeta::logAllVersions): Implement.
15 (packagemeta::trustLabel): Ditto.
16
14485ab2
RC
172002-11-25 Robert Collins <rbtcollins@hotmail.com>
18
19 * AntiVirus.cc: Change 'd' to 'D' to fix command line conflict.
20
f9e903a3
RC
212002-11-25 Robert Collins <rbtcollins@hotmail.com>
22
23 * AntiVirus.cc: New file.
24 * AntiVirus.h: Ditto.
25 * LogFile.cc: Include AntiVirus.h for class definition.
26 (LogFile::exit): Trigger AntiVirus::AtExit().
27 * MakeFile.am(setup_SOURCES): Add AntiVirus files.
28 * autoload.c: Declare Service Control Manager related API's.
29 * main.cc: Include AntiVirus.h for class definition.
30 (main): Add the AntiVirus page in.
31 * res.rc: Define IDD_VIRUS.
32 * resource.h: Define IDD_VIRUS related control ID's.
33 * splash.h: Override OnNext.
34 * splash.cc: Only show AntiVirus page when one has been detected.
35 * source.cc: Ditto.
36
05c5b8a6
RC
372002-11-25 Robert Collins <rbtcollins@hotmail.com>
38
39 * package_version.cc (DependencyProcessor): Create convenience class.
40 (select): Extract version selection method.
41 (processOneDependency): Check for a satisfactory trusted version
42 first.
43
442002-11-10 Robert Collins <rbtcollins@hotmail.com>
15004270
RC
45
46 * main.cc (main): Use the factory for LogFile.
47 * String++.cc: Update to use sstream.
48 (String::String): Use a ostringstream for libC++ 3.2.
49 * LogFile.h (LogFile): Make createLogFile static.
50
05c5b8a6 512002-11-10 Robert Collins <rbtcollins@hotmail.com>
51629951
RC
52
53 * main.cc (main): Oops, pass LogSingleton a reference, not a pointer.
54
666bf37d
RC
552002-11-04 Max Bowsher <maxb@ukf.net>
56
57 * Exception.h (Exception::what): Add throw() specification,
58 to agree with libstdc++-v3.
59 * Exception.cc (Exception::what): Ditto.
60 * IniDBBuilderPackage.h: Add 'std::' where needed.
61 * PickCategoryLine.h: Ditto.
62 * category.h: Ditto.
63 * package_db.h: Ditto.
64 * package_meta.h: Ditto.
65 * package_source.h: Ditto.
66 * package_version.h: Ditto.
67 * site.h: Ditto.
68 * win32.h: Define NOMINMAX before including <windows.h>.
69 * package_meta.cc: Add 'using namespace std;'.
70 (packagemeta::set_requirements): Remove default parameter values
71 from definition (gcc3 likes them only in declaration).
72 * package_version.cc: Add 'using namespace std;'.
73 (packageversion::set_requirements): Remove default parameter
74 values from definition (gcc3 likes them only in declaration).
75
37decc22
RC
762002-11-10 Robert Collins <rbtcollins@hotmail.com>
77
78 * compress_bz.cc: Don't include bzlib.h directly, the compress_bz.h
79 header includes it.
80
812002-11-04 Max Bowsher <maxb@ukf.net>
82
83 * compress_bz.h: #undef small before including bzlib.h - if we are
84 going to hide the fact that we are _WIN32 from bzlib, then we need
85 to #undef small for it as well (bad windows.h clash).
86
a55c8f45
RC
872002-11-10 Robert Collins <rbtcollins@hotmail.com>
88
89 * localdir.cc: Update the extern LogFile to be a pointer.
90 (save_local_dir): Change . to -> for the above.
91 * main.cc (theFile): Change from an instance to a pointer.
92 (main): Change . to -> for the above.
93
c83c52d8
RC
942002-11-10 Robert Collins <rbtcollins@hotmail.com>
95
96 * LogFile.cc: use 'std::' where needed throughout.
97 (LogFile::createLogFile): Implement a factory for LogFile.
98 (LogFile::LogFile): Update for use with the factory, and to
99 handle the latest g++ library changes.
100 (LogFile::operator()): Ditto.
101 (LogFile::endEntry()): Ditto.
102 * LogFile.h: Ditto.
103 * LogSingleton.cc: Ditto.
104 * LogSingleton.h: Ditto.
105
318af134
RC
1062002-11-04 Max Bowsher <maxb@ukf.net>
107
108 * String++.h: Add 'std::' where needed.
109
6625e635
RC
1102002-11-04 Max Bowsher <maxb@ukf.net>
111
112 * IniDBBuilderPackage.cc: Add 'using namespace std;'.
113 * IniParseFindVisitor.cc: Ditto.
114 * LogFile.cc: Ditto.
115 * LogSingleton.cc: Ditto.
116 * PickView.cc: Ditto.
117 * String++.cc: Ditto.
118 * choose.cc: Ditto.
119 * download.cc: Ditto.
120 * find.cc: Ditto.
121 * install.cc: Ditto.
122 * io_stream.cc: Ditto.
123 * io_stream_file.cc: Ditto.
124 * package_db.cc: Ditto.
125 * root.cc: Ditto.
126 * site.cc: Ditto.
127
955bf437
RC
1282002-11-04 Max Bowsher <maxb@ukf.net>
129
130 * LogSingleton.h: Add 'std::' where needed.
131
b34fb59f
RC
1322002-11-04 Max Bowsher <maxb@ukf.net>
133
134 * archive_tar_file.cc: Include <algorithm>.
135 Change min(a,b) to std::min(a,b)
136 * compress_bz.cc: Ditto.
137 * compress_gz.cc: Ditto.
138
326fbcb8
RC
1392002-11-04 Max Bowsher <maxb@ukf.net>
140
141 * res.rc: Change a #-comment (invalid) to a //-comment.
142
4361306f
RC
1432002-11-04 Max Bowsher <maxb@ukf.net>
144
145 * Makefile.am (%.o: %.rc): Make windres use $(CC) not hardcoded gcc.
146 (inilint_LDADD): Remove -lstd++.
147 (setup_LDADD): Ditto.
148
05d7b7f2
RC
1492002-09-22 Max Bowsher <maxb@ukf.net>
150
151 * IniDBBuilderPackage.cc: Update DEBUG code to current class
152 layout.
153
f2ff9838
RC
1542002-09-21 Robert Collins <rbtcollins@hotmail.com>
155
156 * choose.h: Add OnUnattended method.
157 * desktop.cc (DesktopSetupPage::OnInit): Allow fine grained
158 control via command line options.
159 (DesktopSetupPage::OnUnattended): Implement.
160 (DesktopSetupPage::OnMessageApp): Implement.
161 * desktop.h (DesktopSetupPage::OnUnattended): declare.
162 (DesktopSetupPage::OnMessageApp): Ditto.
163 * download.cc (do_download_thread): Support unattended mode.
164 * install.cc (do_install_thread): Ditto.
165 * localdir.h: Ditto.
166 * main.cc (main): Ditto.
167 * net.cc (NetPage::OnUnattended): Ditto.
168 * net.h (NetPage::OnUnattended): Declare.
169 * proppage.cc (PropertyPage::DialogProc): Support unattended mode.
170 * proppage.h (PropertyPage::OnUnattended): Declare.
171 * root.cc (RootPage::OnInit): Support unattended mode.
172 (RootPage::OnUnattended): Implement.
173 * root.h (RootPage::OnUnattended): Declare.
174 * site.cc (register_saved_site): Extract Method from get_saved_sites.
175 (get_saved_sites): Remove common code for adding a site.
176 (SitePage::OnInit): Support unattended mode.
177 (SitePage::OnUnattended): Implement.
178 * site.h (SitePage::OnUnattended): Declare.
179 * source.cc (SourcePage::OnActivate): Support unattended mode.
180 (SourcePage::OnUnattended): Implement.
181 * source.h (SourcePage::OnUnattended): Declare.
182 * splash.h (SplashPage::OnUnattended): Declare.
183 * state.cc (unattended_mode): Declare.
184 * state.h (unattended_mode): Declare.
185 * threebar.h (ThreeBarProgressPage::OnUnattended): New method.
186
707f3d66
RC
1872002-09-21 Robert Collins <rbtcollins@hotmail.com>
188
189 * res.rc: Commit Harry Johnston's dialog caption patch. From July.
190
ec13f13c
RC
1912002-07-15 Robert Collins <rbtcollins@hotmail.com>
192
193 * package_version.cc (packageversion::sources): Implement this.
194 * download.cc (do_download_thread): Support multiple files per package.
195
e5662e0a
RC
1962002-07-15 Robert Collins <rbtcollins@hotmail.com>
197
198 * package_version.h (packageversion::sources): Support multiple files in
199 a single package version.
200 * package_version.cc (_packageversion::accessible): Ditto.
201 (packageversion::source): Ditto.
202
60daae94
RC
2032002-07-15 Robert Collins <rbtcollins@hotmail.com>
204
205 * iniparse.y: Implement support for multiple source files for a source
206 package.
207 * IniDBBuilder.h (IniDBBuilder::buildSourceFile): Ditto.
208 * IniDBBuilderPackage.h (IniDBBuilder::buildSourceFile): Ditto.
209 * IniDBBuilder.cc (IniDBBuilder::buildSourceFile): Ditto.
210 * IniDBBuilderPackage.cc (IniDBBuilder::buildSourceFile): Implement a
211 stub as preparation.
212
4f591f9d
RC
2132002-07-13 Robert Collins <rbtcollins@hotmail.com>
214
215 * PickPackageLine.cc (PickPackageLine::click): Set requirements for
216 packages under all circumstances - slightly higher overheader, simpler
217 code.
218 * download.cc (do_download_thread): Correctly download source
219 packages.
220 * package_meta.cc (checkForInstalled): Remove.
221 (checkForUpgradeable): Ditto.
222 (checkForSatisfiable): Ditto.
223 (processOneDependency): Ditto.
224 (packagemeta::set_requirements): Move guts to packageversion.
225 * package_version.cc (checkForInstalled): Copied from package_meta.cc.
226 (checkForUpgradeable): Ditto.
227 (checkForSatisfiable): Ditto.
228 (processOneDependency): Ditto.
229 (packageversion::set_requirements): Ditto.
230 * package_version.h (packageversion::set_requirements): Declare.
231
b1ff53ed
RC
2322002-07-13 Robert Collins <rbtcollins@hotmail.com>
233
234 * IniDBBuilder.cc (IniDBBuilder::buildBeginBuildDepends): Implement.
235 (IniDBBuilder::buildBeginBinary): Implement.
236 * IniDBBuilder.h (IniDBBuilder::buildBeginBuildDepends): Declare.
237 (IniDBBuilder::buildBeginBinary): Ditto.
238 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildBeginBuildDepends):
239 Implement.
240 (IniDBBuilderPackage::buildBeginBinary): Ditto.
241 * IniDBBuilderPackage.h (IniDBBuilderPackage::buildBeginBuildDepends):
242 Declare.
243 (IniDBBuilderPackage::buildBeginBinary): Ditto.
244 * inilex.l: Recognise Build-Depends-Indep, [,], >, < and remove
245 T_UNKNOWN.
246 * iniparse.y: Full support for parsing a debian Sources file in-line in
247 setup.ini.
248 * package_version.cc (packageversion::binaries): Implement.
249 * package_version.h (packageversion::binaries): Declare list of what
250 packages are created from a given source package.
251 (_packageversion::binaries): Ditto.
252
233a3e17
RC
2532002-07-10 Robert Collins <rbtcollins@hotmail.com>
254
255 * iniparse.y: Add basis for support for parsing a debian Sources file.
256 * inilex.l: Ditto.
257
cfae3b8d
RC
2582002-07-09 Robert Collins <rbtcollins@hotmail.com>
259
260 Change custom container code for packagedb::packages to STL containers
261 throughout.
262 * IniDBBuilderPackage.cc: Ditto.
263 * PickView.cc: Ditto.
264 * choose.cc: Ditto.
265 * desktop.cc: Ditto.
266 * download.cc: Ditto.
267 * install.cc: Ditto.
268 * package_db.cc: Ditto.
269 * package_db.h: Ditto.
270 * Makefile.am: Remove list.h references.
271 * list.h: Remove.
272
09130e58
RC
2732002-07-08 Max Bowsher <maxb@ukf.net>
274
275 * PickView.cc (PickView::PickView): Set font of package list header to
276 the same as used in the rest of the package list.
277
a75ed5ce
RC
2782002-07-08 Robert Collins <rbtcollins@hotmail.com>
279
280 * install.cc (NoReplaceOnReboot): New command line option to prevent
281 replacing in use files.
282 (install_one_source): Check the option and use it.
283 * README: Update TODO lists.
284
0cf68afd
RC
2852002-07-08 Robert Collins <rbtcollins@hotmail.com>
286
287 * PickCategoryLine.cc: Change bucket to use STL container syntax
288 throughout.
289 (PickCategoryLine::paint): Use new Category type syntax.
290 * PickCategoryLine.h: Use STL vectors rather than custom containers
291 throughout.
292 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageCategory):
293 Use new add_category syntax.
294 * PickView.cc (PickView::insert_pkg): Use new Category type syntax.
295 (PickView::insert_category): Ditto.
296 (PickView::init_headers): Ditto.
297 * category.cc: Trim obsolete code.
298 * category.h: Replace interconnecting class with a typedef to
299 facilitate leveraging STL maps.
300 * choose.cc (fill_missing_category): Use updated pkg.add_category
301 syntax.
302 (default_trust): Use new Category type syntax.
303 (set_view_mode): Ditto.
304 (create_listview): Ditto.
305 * package_db.cc (categories): Ditto.
306 * package_db.h: Update headers list to include needed headers.
307 (packagedb::categories): Replace custom list with STL map.
308 * package_meta.cc: Use new Category type syntax throughout.
309 (packagemeta::add_category): Implement new syntax.
310 * package_meta.h: Remove commented out source.
311 (packagemeta::add_category): Update syntax to decouple interface from
312 packagedb.
313
89374d4a
CF
3142002-07-06 Christopher Faylor <cgf@redhat.com>
315
316 * site.cc (do_download_site_info_thread): Correct spelling error.
317
405d7186
RC
3182002-07-06 Robert Collins <rbtcollins@hotmail.com>
319
320 * PickCategoryLine.h: Include required header list.h.
321 * PickPackageLine.cc (PickPackageLine::paint): Adjust to use STL
322 containers for listing of packages per category and vice verca.
323 * PickView.cc (PickView::insert_pkg): Ditto.
324 (PickView::insert_category): Ditto.
325 * String++.h (String::caseless): STL helper to allow trivial containers
326 of Strings with case insensitive comparisons.
327 * category.h: Adjust to use STL containers for listing of packages per
328 category and vice verca.
329 * choose.cc (fill_missing_category): Ditto.
330 (default_trust): Ditto.
331 (ChooserPage::OnNext): Ditto.
332 * package_meta.cc (CategoryPackage::~CategoryPackage): Remove.
333 (packagemeta::packagemeta): Adjust for new category list name.
334 (packagemeta::~packagemeta): Adjust to use STL containers for listing
335 of packages per category and vice verca.
336 (packagemeta::set_action): Ditto.
337 * package_meta.h (CategoryPackage): Remove.
338 (packagemeta): Adjust to use STL containers for listing of packages per
339 category and vice verca.
340
080bec6e
RC
3412002-07-05 Robert Collins <rbtcollins@hotmail.com>
342
343 * io_stream.cc: Use STL containers rather than custom ones.
344 (io_stream::registerProvider): Ditto.
345 (findProvider): Ditto.
346
3f34f364
RC
3472002-07-05 Robert Collins <rbtcollins@hotmail.com>
348
349 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
350 Use STL collections for download site collections.
351 (IniDBBuilderPackage::add_correct_version): Ditto.
352 (IniDBBuilderPackage::process_src): Ditto.
353 * PickPackageLine.cc (PickPackageLine::click): Use the packageversion
354 accessible() call to abstract package availability.
355 * choose.cc (scanAVersion): Use STL collections for download site
356 collections.
357 * download.cc (check_for_cached): Ditto.
358 (download_one): Ditto.
359 * package_meta.cc (packagemeta::set_action): Use the packageversion
360 accessible() call to abstract package availability.
361 * package_source.h: Use STL containers rather than custom containers.
362 (site): Create a == operator to allow STL container use.
363 (packagesource::sites): Use STL containers rather than custom
364 containers.
365 * package_version.cc (_packageversion::accessible): Use STL containers
366 for download site containers.
367
e2cdf72c
RC
3682002-07-05 Robert Collins <rbtcollins@hotmail.com>
369
370 * LogFile.cc: Use STL containers rather than custom containers.
371 (filedef): Create == and < operators for STL use.
372 (files): Convert to an STL set.
373 (LogFile::setFile): Use STL operations on files.
374 (LogFile::exit): Ditto.
375
3bac26a1
RC
3762002-07-05 Robert Collins <rbtcollins@hotmail.com>
377
378 * ini.cc (do_remote_ini): Use STL collection for site collection.
379 * site.cc: Include site.h first to ensure it's parsable standalone.
380 Use STL algorithms.
381 (site_list): Convert to an STL container.
382 (all_site_list): Ditto.
383 (site_list_type::site_list_type): Implement copy constructor.
384 (site_list_type::operator=): Implement assignment operator.
385 (site_list_type::operator ==): Implement.
386 (site_list_type::operator <): Ditto.
387 (save_dialog): Use STL collection calls for site collection.
388 (save_site_url): Ditto.
389 (get_site_list): Ditto.
390 (get_saved_sites): Ditto.
391 (do_download_site_info_thread): Ditto.
392 (SitePage::OnNext): Ditto.
393 (SitePage::PopulateListBox): Ditto.
394 (SitePage::OnMessageCmd): Ditto.
395 * site.h: Use STL vectors instead of custom code.
396 (site_list_type::site_list_type): Declare.
397 (site_list_type::operator=): Ditto.
398 (site_list_type::operator ==): Ditto.
399 (site_list_type::operator !=): Ditto.
400 (site_list_type::operator <): Ditto.
401 (site_list_type::operator <=): Ditto.
402 (site_list_type::operator >): Ditto.
403 (site_list_type::operator >=): Ditto.
404 (site_list): Convert to an STL container.
405 (all_site_list): Ditto.
406
528a8edb
RC
4072002-07-05 Robert Collins <rbtcollins@hotmail.com>
408
409 * choose.cc (default_trust): Check package accessibility before
410 triggering an install. (Suggested by Pavel).
411
4122002-07-03 Pavel Tsekov <ptsekov@gmx.net>
413
414 * compress_gz.cc (compress_gz::construct): Always initialize key members
415 to ensure the destructor does the right thing.
416
4e868a01
RC
4172002-07-03 Pavel Tsekov <ptsekov@gmx.net>
418
419 * filemanip.cc (parse_filename): Do not try to parse empty
420 strings (filenames).
421 * package_db.cc (packagedb::packagedb): For each line check if sscanf()
422 extracted good package name and filename.
423
7f2b9277
RC
4242002-07-03 Robert Collins <rbtcollins@hotmail.com>
425
426 * package_meta.cc (packagemeta::set_requirements): Automatically select
427 version of dependent packages that satisfies the requirements.
428 Use processOneDependency to trigger the install of those packages.
429 (checkForInstalled): Check that the package remains installed.
430 (processOneDependency): Helper function for dependent packages.
431 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackage): Add more
432 debug information.
433 Clear out all current state on new packages.
434 (IniDBBuilderPackage::add_correct_version): Copy the dependency list
435 across.
436
84c4f5d1
RC
4372002-07-02 Robert Collins <rbtcollins@hotmail.com>
438
439 * Makefile.am (inilint_SOURCES): Add PackageSpecification sources.
440 nb: inilint is still incomplete, as the packageversion code is not
441 ready for database-less linking.
442 * site.cc (get_site_list): When the same site is reentered by the user
443 replace the old one. (Suggested by John Marshall).
444
64cd7f94
RC
4452002-07-02 Robert Collins <rbtcollins@hotmail.com>
446
447 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
448 Clear out package selections when generating implicit source packages.
449 * PackageSpecification.cc (PackageSpecification::satisfies): Implement.
450 (PackageSpecification::_operators::satisfies): Implement.
451 * PackageSpecification.h (PackageSpecification::_operators::satisfies):
452 Worker function for testing versions.
453
3c196821
RC
4542002-07-01 Robert Collins <rbtcollins@hotmail.com>
455
456 * IniDBBuilder.cc (IniDBBuilder::buildPackageRequirement): Remove.
457 * IniDBBuilder.h (IniDBBuilder::buildPackageRequirement): Ditto.
458 * IniDBBuilderPackage.cc: Use the STL algorithms.
459 Change cpv to cbpv throughout. Adjust -> to ., and use the new accessor
460 functions for the same variable throughout.
461 (IniDBBuilderPackage::IniDBBuilderPackage): Initialise new members.
462 (IniDBBuilderPackage::buildPackage): Use new cygpackage syntax,
463 and set an empty source package.
464 (IniDBBuilderPackage::buildPackageInstall): Use the new source member
465 to record an install package.
466 (IniDBBuilderPackage::buildPackageSource): Move source package logic
467 out from process_src, as it now occurs at separate times.
468 (IniDBBuilderPackage::buildPackageRequirement): Remove.
469 (IniDBBuilderPackage::buildSourceName): Use renamed package
470 specifiation accessor for clarity.
471 (IniDBBuilderPackage::buildSourceNameVersion): Ditto.
472 (IniDBBuilderPackage::add_correct_version): Use STL iterators rather
473 than custom code.
474 Remove source package references.
475 (IniDBBuilderPackage::process_src): Remove source package code as it's
476 now handled separately.
477 Set Path information before merging versions, to prevent dangling
478 pointers.
479 * IniDBBuilderPackage.h (IniDBBuilderPackage::buildPackageRequirement):
480 Remove.
481 (IniDBBuilderPackage::cpv): Remove.
482 (IniDBBuilderPackage::cbpv): New generic binary working variable.
483 (IniDBBuilderPackage::cspv): Ditto, but for source packages.
484 (IniDBBuilderPackage::csp): Source package variable for disjoint
485 source packages.
486 * Makefile.am (AM_CFLAGS): Remove -Winline to allow stl set code
487 to compile. If it compiles cleanly in gcc 3.1, then reinstate.
488 * PickPackageLine.cc: Adjust packageversion accessors to the new
489 reference calls. (i.e. -> to .) throughout.
490 (PickPackageLine::paint): Use accessible() for clarity.
491 Use new split out source package logic.
492 (PickPackageLine::click): Ditto.
493 * PickView.cc (PickView::init_headers): Adjust packageversion accessors
494 to the new reference calls. (i.e. -> to .) throughout.
495 Use new split out source package logic.
496 * choose.cc: Don't depend on a specific package type.
497 Adjust packageversion accessors to the new reference calls. (i.e. -> to
498 .) throughout.
499 (set_existence): Use accessible () for clarity.
500 (default_trust): Simplify a little.
501 (scanAVersion): Factored out code from scan_downloaded_files for
502 clarity.
503 (scan_downloaded_files): Factor out inner loop for clarity.
504 (ChooserPage::OnNext): Don't dump the dependency list,
505 it's parsing is robust now!.
506 * cygpackage.cc (createInstance): Use a factory method to create new
507 objects.
508 (cygpackage::cygpackage): Make this private for use by the factory.
509 (cygpackage::setCanonicalVersion): Renamed from set_canonical_version.
510 Remove key usage as it's obsolete.
511 * cygpackage.h (cygpackage): Inherit from _packageversion, not
512 packageversion.
513 (cygpackage::createInstance): New factory.
514 (cygpackage::cygpackage): Make private.
515 * desktop.cc (make_passwd_group): Use new packageversion reference.
516 * download.cc (do_download_thread): Use changeRequested() for clarity.
517 Use new packageversion reference calls.
518 * iniparse.y (REQUIRES): Reuse the packageList code and dump the one-off
519 requires code.
520 * install.cc: Adjust -> to ., and use the new accessor functions for
521 packageversion throughout.
522 * package_db.cc: Adjust -> to ., and use the new accessor functions for
523 packageversion throughout.
524 (packagedb::packagedb): Use the new cygpackage factory.
525 (packagedb::flush): Leverage String to remove buffer overflow chance in
526 sprintf.
527 (packagedb::findBinary): Find a binary meta package that has a version
528 matching a given specification.
529 (packagedb::findSource): Ditto, but for source.
530 * package_db.h (packagedb::findBinary): Declare.
531 (packagedb::findSource): Ditto.
532 * package_meta.cc: Adjust packageversion accessors to the new
533 reference calls. (i.e. -> to .) throughout.
534 Include the package_meta header first to ensure it parses standalone.
535 Use the STL algorithms.
536 (packagemeta::packagemeta): Create a copy constructor to allowing
537 cloning binary package metadata to source package metadata.
538 (packagemeta::~packagemeta): Use the STL coleltion code rather than
539 custom collection code.
540 (packagemeta::add_version): Ditto.
541 (packagemeta::set_installed): Ditto.
542 (packagemeta::SDesc): Ditto.
543 (hasSDesc): Helper function for find_if.
544 (checkForInstalled): Ditto.
545 (checkForUpgradeable): Ditto.
546 (checkForSatisfiable): Ditto.
547 (packagemeta::action_caption): Update for split out source packages.
548 (packagemeta::set_action): Ditto.
549 (packagemeta::set_requirements): Support multi-valued dependency
550 lists - a|b & c|d - with versioned package specifications.
551 (packagemeta::accessible): Helper member to improve abstraction.
552 (packagemeta::sourceAccessible): Ditto.
553 * package_meta.h: Adjust packageversion accessors to the new
554 reference calls. (i.e. "->" to "." and"*" to "" ) throughout.
555 (packagemeta::packagemeta): Declare copy constructor.
556 Remove self initialising members.
557 (packagemeta::set_action): Update parameters for new packageversion.
558 (packagemeta::trustp): Ditto.
559 (packagemeta::versions): Becomes an STL set.
560 * package_source.h (packagesource::Cached): Const correctness change.
561 * package_version.cc: Rewrite the packageversion interface to remove
562 the cygpackage nonvirtual members, and provide a copy by value,
563 pointer semantics reference counting wrapper class to ease use and
564 comparison of packageversions.
565 Change existing packageversion class to _packageversion throughout.
566 (_defaultversion): A trivial concrete class to prevent specialcasing
567 the default constructor for packageversion;
568 (packageversion::packageversion): Implement.
569 (packageversion::~packageversion): Ditto.
570 (packageversion::operator=): Ditto.
571 (packageversion::operator !): Ditto.
572 (packageversion::operator bool): Ditto.
573 (packageversion::operator ==): Ditto.
574 (packageversion::operator !=): Ditto.
575 (packageversion::operator <): Ditto.
576 (packageversion::Name): Ditto.
577 (packageversion::Canonical_version): Ditto.
578 (packageversion::setCanonicalVersion): Ditto.
579 (packageversion::getfirstfile): Ditto.
580 (packageversion::getnextfile): Ditto.
581 (packageversion::SDesc): Ditto.
582 (packageversion::set_sdesc): Ditto.
583 (packageversion::LDesc): Ditto.
584 (packageversion::set_ldesc): Ditto.
585 (packageversion::sourcePackage): Ditto.
586 (packageversion::sourcePackageSpecification): Ditto.
587 (packageversion::setSourcePackageSpecification): Ditto.
588 (packageversion::depends): Ditto.
589 (packageversion::predepends): Ditto.
590 (packageversion::recommends): Ditto.
591 (packageversion::suggests): Ditto.
592 (packageversion::replaces): Ditto.
593 (packageversion::conflicts): Ditto.
594 (packageversion::provides): Ditto.
595 (packageversion::picked): Ditto.
596 (packageversion::pick): Ditto.
597 (packageversion::changeRequested): Ditto.
598 (packageversion::uninstall): Ditto.
599 (packageversion::source): Ditto.
600 (packageversion::accessible): Ditto.
601 (_packageversion::sourcePackage): Ditto.
602 (_packageversion::accessible): Ditto.
603 (_packageversion::changeRequested): Ditto.
604 * package_version.h: Rewrite the packageversion interface to remove
605 the cygpackage nonvirtual members, and provide a copy by value,
606 pointer semantics reference counting wrapper class to ease use and
607 comparison of packageversions.
608 Change existing packageversion class to _packageversion throughout.
609 (Dependency): Remove.
610 (packageversion): New wrapper class.
611 (_packageversion): Renamed from packageversion.
612 (_packageversion::setCanonicalVersion): New method.
613 (_packageversion::sourcePackage): Ditto.
614 (_packageversion::sourcePackageSpecification): Ditto.
615 (_packageversion::setSourcePackageSpecification): Ditto.
616 (_packageversion::changeRequested): Ditto.
617 (_packageversion::bin): Rename to source.
618 (_packageversion::src): Remove.
619 (_packageversion::accessible): New method.
620 (_packageversion::references): Allow reference counting.
621 (_packageversion::sourceVersion): Cached the best-match source
622 package version.
623
387cb501
RC
6242002-06-27 Robert Collins <rbtcollins@hotmail.com>
625
626 * compress_bz.h (compress_bz::position): Track how much has been read.
627 * compress_bz.cc (compress_bz::compress_bz): And initialise it.
628 (compress_bz::read): Track amount read by the client.
629 (compress_bz::tell): And report it when asked.
630
7d702af3
RC
6312002-06-27 Robert Collins <rbtcollins@hotmail.com>
632
633 * Makefile.am (snapshot): Automate snapshot creation some more.
634
08cd08c3
RC
6352002-06-27 Robert Collins <rbtcollins@hotmail.com>
636
637 * msg.cc (msg): Use vsnprintf to avoid buffer overflows.
638 (mbox): Ditto.
639 * ini.cc (fprintf): Ditto.
640 * log.cc (log): Ditto.
641 * package_db.cc (packagedb::sourcePackages): Split out source packages
642 from binary packages.
643 * package_db.h: Ditto.
644
aa1e3b4d
RC
6452002-06-27 Robert Collins <rbtcollins@hotmail.com>
646
647 * PackageSpecification.h: New file. Abstracts the ability to refer
648 to another package, by name, or name and version.
649 * PackageSpecification.cc: Ditto.
650 * IniDBBuilder.cc (IniDBBuilder::buildPackageInstall): Simplify.
651 (IniDBBuilder::buildPackageSource): Ditto.
652 (IniDBBuilder::buildBeginDepends): New method for versioned
653 dependencies.
654 (IniDBBuilder::buildBeginPreDepends): Likewise, for dependencies to be
655 satisfied before pre-install.
656 (IniDBBuilder::buildPriority): New method, for getting the package
657 Priority.
658 (IniDBBuilder::buildInstalledSize): How much disk space does it need?
659 (IniDBBuilder::buildMaintainer): Who maintains the package?
660 (IniDBBuilder::buildArchitecture): What platform is it for?
661 (IniDBBuilder::buildInstallSize): How big is the binary download?
662 (IniDBBuilder::buildInstallMD5): Whats the MD5 on the binary?
663 (IniDBBuilder::buildSourceMD5): Whats the MD5 on the source package?
664 (IniDBBuilder::buildBeginRecommends): What other packages are
665 recommended with this one?
666 (IniDBBuilder::buildBeginSuggests): And suggested?
667 (IniDBBuilder::buildBeginReplaces): What packages does this replace?
668 (IniDBBuilder::buildBeginConflicts): And collide with?
669 (IniDBBuilder::buildBeginProvides): What virtual packages (or obsolete
670 package names) does this provide?
671 (IniDBBuilder::buildDescription): Grab a multi line description one
672 line at a time.
673 (IniDBBuilder::buildSourceName): What source package should be used to
674 install the source for this binary package?
675 (IniDBBuilder::buildSourceNameVersion): Is a specific version needed?
676 (IniDBBuilder::buildPackageListAndNode): Add another AND clause to a
677 list of package specifications.
678 (IniDBBuilder::buildPackageListOrNode): Add another OR clause.
679 (IniDBBuilder::buildPackageListOperator): Add a versioning operator
680 to the current specification.
681 (IniDBBuilder::buildPackageListOperatorVersion): What version does the
682 operator act on?
683 * IniDBBuilder.h: Declare all the IniDBBuilder.cc changes.
684 * IniDBBuilderPackage.cc: As for IniDBBuilder.cc.
685 (IniDBBuilderPackage::IniDBBuilderPackage): Iniitialize new members.
686 (IniDBBuilderPackage::process_src): Streamline and split out
687 functionality.
688 (IniDBBuilderPackage::setSourceSize): From process_src.
689 * IniDBBuilderPackage.h: Declare the IniDBBuilderPackage.cc changes.
690 (IniDBBuilderPackage::currentSpec): Track the in-progress specifiation.
691 (IniDBBuilderPackage::currentOrList): Track the current Or list.
692 (IniDBBuilderPackage::currentAndList): Track the current And list.
693 * IniParseFeedback.cc (IniParseFeedback::progress): Provide completion
694 progress on parsing.
695 (IniParseFeedback::iniName): Tell what ini filename we are currently
696 processing.
697 * IniParseFeedback.h: Declare IniParseFeedback.cc changes.
698 * IniParseFindVisitor.cc (IniParseFindVisitor::IniParseFindVisitor):
699 Make the feedback object non-const to allow mutating methods which are
700 needed when the object has state.
701 (IniParseFindVisitor::visitFile): Tell the caller the name of each
702 .ini found.
703 Initialise the parser with the feedback object to allow it to tell of
704 progress.
705 * IniParseFindVisitor.h: Declare IniParseFindVisitor.cc changes.
706 * Makefile.am (inilinst_SOURCES): Add more requisite classes.
707 (setup_SOURCES): Add the new PackageSpecification sources.
708 * ScanFindVisitor.cc (ScanFindVisitor::visitFile): Use the new
709 builder syntax to setup binary package details.
710 * choose.cc: Use the LogSingleton calls throughout.
711 * configure.in: Create the INILINT substitution correctly for recent
712 autotool configurations.
713 * cygpackage.cc (cygpackage::getfirstfile): Return an empty String
714 rather than a string built from an int. Thanks to Pavel Tsekov for
715 identifying the bug.
716 (cygpackage::getnextfile): Ditto.
717 * download.cc: Use LogSIngletion calls throughout.
718 (validateCachedPackage): A refactoring of the
719 check_for_cached code to eliminate duplciation.
720 (check_for_cached): Use validateCachedPackage to check packages.
721 * ini.cc (GuiParseFeedback): Provide gui feedback on ini name and
722 parsing progress.
723 (do_remote_ini): Ditto.
724 * ini.h (ini_init): Pass a IniParseFeedback to the parser, to allow
725 progress reporting.
726 * inilex.l: Identify new symbols - operators, and multi line plain text.
727 Releases files.
728 * inilintmain.cc (show_help): Provide basic infomation on inilint.
729 * iniparse.y: Adjust for the new builder syntax, and process debian
730 Release files.
731 * io_stream_file.cc: Always include mkdir.h.
732 * list.h: Factor index location into a private routine.
733 (list::findindex): Implement this.
734 * mkdir.cc (mkdir_p): Make the use of WIN32 code conditional on mingw
735 builds. NB: This breaks cygwin build functionality still.
736 * package_meta.cc: Use the LogSingleton calls throughout.
737 (packagemeta::set_requirements): Adjust for object changes in
738 dependencies.
739 * package_meta.h (packagemeta::packagemeta): Initialise new members.
740 (packagemeta::architecture): What platform does this package run on?
741 This may need to move in the future to a per packagefile object.
742 (packagemeta::priority): What priority does this package have?
743 * package_source.h (packagesource::packagesource): Initialise new
744 members.
745 (packagesource::installedSize): How much space does the package need?
746 (packagesource::setInstalledSize): Tell the amount.
747 (packagesource::_installedSize): And store it.
748 * package_version.cc (packageversion::sourcePackage): return the
749 source package.
750 (packageversion::setSourcePackage): And set it.
751 * package_version.h: Declare the package_version.cc changes.
752 (packageversion::depends): New package specification AND list.
753 (packageversion::predepends): Ditto.
754 (packageversion::recommends): Ditto.
755 (packageversion::suggests): Ditto.
756 (packageversion::replaces): Ditto.
757 (packageversion::conflicts): Ditto.
758 (packageversion::provides): Ditto.
759 (packageversion::sourcePackage): What source package is needed?
760 * threebar.cc (ThreeBarProgressPage::SetText4): Set the label beside
761 the bottom bar.
762 * threebar.h: Declare the threebar.cc change.
763
7642002-06-27 John Marshall <johnm@falch.net>
765
766 * res.rc (SETUPINI_MISSING): Make trailing spaces visible.
767 * site.cc (SitePage::OnMessageCmd): Ditto
768
2a994e0b
RC
7692002-06-15 Robert Collins <rbtcollins@hotmail.com>
770
771 * nio-ie5.cc (NetIO_IE5::NetIO_IE): Allow cached data.
772
ceff7035
RC
7732002-06-15 Robert Collins <rbtcollins@hotmail.com>
774
775 * package_meta.cc (packagemeta::set_action): When installing packages
776 with no binaries, choose the source package.
777
9bd27040
RC
7782002-06-10 Robert Collins <rbtcollins@hotmail.com>
779
780 * IniParseFindVisitor (IniParseFindVisitor::visitFile): Apply Max
781 Bowshers fix for the crash with a root level setup.ini.
782 * README: Update todos.
783
1dcff4a0
RC
7842002-05-26 Ralf Habacker <ralf.habacker@freenet.de>
785
786 * archive_tar.cc (archive_tar::next_file_name()): fixed broken
787 GNU long name extension support.
788
0773e4f2
RC
7892002-05-27 Robert Collins <rbtcollins@hotmail.com>
790
791 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Don't
792 unescape 0 length strings.
793
a828d772
RC
7942002-05-20 Robert Collins <rbtcollins@hotmail.com>
795
796 * package_meta.cc (packagemeta::set_action): Don't allow reinstall
797 when local with no cached file, and install the default source if the
798 default version has no binary.
799
67829ce0
RC
8002002-05-19 Robert Collins <rbtcollins@hotmail.com>
801
802 * IniDBBuilderPackage.cc (IniDBBuilderPackage::IniDBBuilderPackage): New
803 method.
804 (IniDBBuilderPackage::buildVersion): Provide a warning when a newer
805 setup version created the ini file.
806 * IniDBBuilderPackage.h (IniDBBuilderPackage::IniDBBuilderPackage): New
807 method.
808 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Use the new
809 feedback strategy.
810 * IniParseFindVisitor.h (IniParseFindVisitor::IniParseFindVisitor):
811 Require a feedback strategy.
812 * Makefile.am (setup_SOURCES): Add IniParseFeedback sources.
813 * Makefile.in: Regenerate.
814
4849e2fc
RC
8152002-05-19 Robert Collins <rbtcollins@hotmail.com>
816
817 * io_stream_file.cc (io_stream_file::remove): Use the SetFileAttributes
818 trick to delete read only files.
819 * io_stream_cygfile.cc (io_stream_cygfile::remove): Use file:// to
820 remove files.
821 * Makefile.am (release): Tweak to be more helpful.
822 * Makefile.in: Regenerate.
823
7cb35117
RC
8242002-05-19 Robert Collins <rbtcollins@hotmail.com>
825
826 * Makefile.am (release): Tweak to be more helpful.
827 * Makefile.in: Regenerate.
7cb35117 828
5090e3ce
RC
8292002-05-19 Robert Collins <rbtcollins@hotmail.com>
830
831 * Makefile.am (release): Tweak to be more helpful.
832 * Makefile.in: Regenerate.
833
9e9b881a
RC
8342002-05-19 Robert Collins <rbtcollins@hotmail.com>
835
836 * choose.cc (scan_downloaded_files): When a non-installed version
837 has neither bin nor src cached files for local installs,
838 remove the version from availability.
839
ea36e064
RC
8402002-05-19 Robert Collins <rbtcollins@hotmail.com>
841
842 * ini.cc (do_remote_ini): Save uncompressed ini's correctly.
843
b401ef47
RC
8442002-05-19 Robert Collins <rbtcollins@hotmail.com>
845
846 * rsync: New support library, contains librsync. This is not (yet)
847 rsync interoperable.
848 * configure.in: --with-rsync to enable rsync support. (Not complete).
849 * Makefile.am: Enable building with rsync.
850 * Makefile.in: Regenerate.
851 * configure: Ditto.
852 * IniDBBuilder.cc (IniDBBuilder::buildPackageInstall): Pass the md5 as
853 an array.
854 (IniDBBuilder::buildPackageSource): Ditto.
855 * IniDBBuilder.h: Ditto.
856 * IniDBBuilderPackage.cc: Ditto.
857 * IniDBBuilderPackage.h: Ditto.
858 * FindVisitor.cc: New file.
859 * FindVisitor.h: New file, interface for visiting a file system
860 aggregate.
861 * IniParseFindVisitor.cc: New file.
862 * IniParseFindVisitor.h: New file, concrete FindVisitor that parses
863 found setup.ini's.
864 * README: Update TODO's.
865 * String++.cc (String::String): New constructor for <string> inter-
866 operability.
867 (String::substr): New method.
868 * String++.h: Ditto.
869 * choose.cc (scan2): Remove.
870 (scan_downloaded_files): Simplify.
871 * dialog.h: Include parsing pre-requirements.
872 * download.cc (check_for_cached): Fullname was used incorrectly - fix.
873 * filemanip.cc (parse_filename): -src packages where incorrectly parsed.
874 * find.cc: Rewrite. Now uses a Visitor pattern and is re-entrant.
875 * find.h: Ditto.
876 * fromcwd.cc: Remove unneeded includes.
877 (is_test_version): Remove.
878 (found_file): Remove.
879 (SetupFindVisitor): Trivial visitor to detect setup.ini's.
880 (found_ini): Remove.
881 (do_fromcwd): Remove commented code that has be replaced elsewhere.
882 * ini.cc (local_ini): Remove.
883 (findBuilder): Remove.
884 (find_routine): Remove.
885 (do_local_ini): Use new IniParseFindVisitor.
886 * iniparse.y: Typecase MD5 arrays, as we know they are allocated as
887 unsigned char.
888 * postinstall.cc: Remove non-core includes.
889 (run_script_in_postinstall): Remove.
890 (RunFindVisitor): Trivial Visitor, runs each found script.
891 (do_postinstall): Use new find syntax.
892
0d4e0aad
CF
8932002-05-14 Christopher Faylor <cgf@redhat.com>
894
895 * ini.cc (find_routine): Don't clear buffer it it's NULL.
896
8972002-05-14 Christopher Faylor <cgf@redhat.com>
898
899 * filemanip.h (trail): Declare.
900 * filemanip.cc (trail): New function.
901 (find_tar_ext): Use trail() instead of strstr().
902 * fromcwd.cc (check_ini): Ditto.
903 * ini.cc (find_routine): Ditto. Don't tack local_dir to path since it
904 should now be fully qualified. Set ini_filename. Reset error_buf and
905 error_count for any subsequent ini file parsing.
906 (ini_filename): New static variable for parse error reporting.
907 (yyerror): Use full path of setup.ini in error message. Subtract one
908 from line number if at bol.
909 * find.cc (found_part): Eliminate.
910 (find_sub): Call for_each with full path found rather than just file
911 component.
912 (find): Don't calculate found_part.
913 * inilex.l (ini_init): Flush input buffer and reset line number.
914 (yybol): New function. Exports YY_AT_BOL.
915 * iniparse.y: Increase stack depth to allow more tokens to be processed.
916 (yyparse): Remove newline from error condition to allow subsequent
917 per-line error processing to proceed normally.
918
9192002-05-14 Christopher Faylor <cgf@redhat.com>
920
921 * find.cc (find_sub): Be more defensive in preserving trailing parts of
922 components when doing recursive directory searches or calling user
923 supplied for_each().
924 * ini.cc (find_routine): Don't assume that any path name with
925 "setup.ini" in it is actually a setup.ini file. Only honor trailing
926 components. Copy path argument to temporary storage when unescaping
927 to prevent nuking of argument.
928
874c569a
RC
9292002-05-12 Robert Collins <rbtcollins@hotmail.com>
930
931 * CONTRIBUTORS: New file.
932
f6a81f69
RC
9332002-04-02 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
934
935 * choose.cc: Run indent.
936 (nextbutton): Remove static variable.
937 (default_trust): Remove use of nextbutton.
938 (set_view_mode): Ditto.
939 (create_listview): Add IDC_CHOOSE_PREV and IDC_CHOOSE_NEXT to ta[] so
940 rbset() sets the prev/next/curr radio buttons properly.
941 (dialog_cmd): Delete function.
942 (dialog_proc): Delete function. Move WM_INITDIALOG functionality to
943 ChooserPage::OnInit.
944 (do_choose): Delete function. Move pre-DialogBox() code to
945 ChooserPage::OnInit(), post-DialogBox() code to ChooserPage::OnNext.
946 (WM_APP_START_CHOOSE): Remove define.
947 (WM_APP_CHOOSE_IS_FINISHED): Remove define.
948 (do_choose_thread): Delete function.
949 (ChooserPage::OnActivate): Delete method.
950 (ChooserPage::OnMessageApp): Delete method.
951 (ChooserPage::OnInit): New method.
952 (ChooserPage::OnNext): New method.
953 (ChooserPage::OnBack): New method.
954 (ChooserPage::OnMessageCmd): New method.
955 * choose.h: Run indent.
956 (ChooserPage::OnMessageApp): Delete declaration.
957 (ChooserPage::OnActivate): Ditto.
958 (ChooserPage::OnMessageCmd): New declaration.
959 (ChooserPage::OnInit): Ditto.
960 (ChooserPage::OnNext): Ditto.
961 (ChooserPage::OnBack): Ditto.
962 * desktop.cc (DesktopSetupPage::OnBack): Replace use of IDD_CHOOSER
963 with IDD_CHOOSE.
964 * fromcwd.cc (do_fromcwd): Replace use of IDD_CHOOSER with IDD_CHOOSE.
965 * ini.cc (do_ini_thread): Replace use of IDD_CHOOSER with IDD_CHOOSE.
966 * res.rc (IDD_CHOOSE): Remove dialog template.
967 (IDD_CHOOSER): Alter dialog template to fit wizard size and format.
968
74617327
RC
9692002-05-12 Robert Collins <rbtcollins@hotmail.com>
970
971 * LogFile.cc (endLog): Work around an apparent libg++-3 bug causing
972 corrupt log file entries.
973 * geturl.cc: Convert to the new LogSingleton logging.
974
3272d625
RC
9752002-05-12 Robert Collins <rbtcollins@hotmail.com>
976
977 * ini.cc (do_remote_ini): Use setup.bz2 if it exists in preference to
978 setup.ini.
979
fc687221
RC
9802002-05-12 Robert Collins <rbtcollins@hotmail.com>
981
982 * geturl.h: Declare getUrlToStream.
983 * geturl.cc (getUrlToStream): New function.
984 (get_url_to_membuf): Refactor to use getUrlToStream.
985
902c8a3f
RC
9862002-05-11 Robert Collins <rbtcollins@hotmail.com>
987
988 * Makefile.am: Add a release target to automate some of the routine
989 work.
990 * Makefile.in: Regenerate.
991
2ab26cdb
RC
9922002-05-11 Robert Collins <rbtcollins@hotmail.com>
993
994 * choose.cc (scan_downloaded_files): On local installs remove all
995 mirror sites if no cached copy of a package is found.
996
94852d65
RC
9972002-05-10 Robert Collins <rbtcollins@hotmail.com>
998
999 * Makefile.in: Regenerate.
1000 * iniparse.y: Use left recursion, not right in the lines rule to
1001 avoid stack overflows.
1002 * README: Update TODO's.
1003 * io_stream_file.cc: Native builds need to include sys/stat.h
1004
3548fbc3
RC
10052002-05-06 John Marshall <jmarshall@acm.org>
1006
1007 * site.cc (SitePage::OnMessageCmd): recalculate navigation
1008 button activation when "Add" is pressed.
1009 (SitePage::CheckControlsAndDisableAccordingly): tweak comment.
1010
10112002-05-07 Robert Collins <rbtcollins@hotmail.com>
2b48ecd0
RC
1012
1013 * Makefile.am (inlint_SOURCES): Add conditional objects to inilint
1014 depending on platform.
1015 Add file:// support.
1016 * configure.in: Set conditional MINGWTARGET if compiling against mingw
1017 libraries.
1018 * Makefile.in: Regenerate.
1019 * configure: Ditto.
1020 * io_stream_file.cc: Only use win32 calls when building for mingw.
1021
19911586
RC
10222002-05-05 Robert Collins <rbtcollins@hotmail.com>
1023
1024 * Makefile.am (noinst_PROGRAMS): Make inilint configurable.
1025 * configure.in: Ditto.
1026 Fix incorrect header checking syntax.
1027 * aclocal.m4: Regenerate.
1028 * configure: Regenerate.
1029 * Makefile.in: Regenerate.
1030 * io_stream.cc: Remove platform specific and provider specific code.
1031 (io_stream::registerProvider): New method, registers a Url provider with
1032 the io_stream code.
1033 Make all methods consistently throw invalid_argument exceptions when
1034 a provider that is requested is not present.
1035 (findProvider): New private function, finds a provider.
1036 * io_stream.h: Declare io_stream::registerProvider.
1037 * io_stream_cygfile.cc: Create a Provider class to register with
1038 io_stream.cc.
1039 * io_stream_file.cc: Ditto.
1040 * archive.cc: Remove unneeded includes.
1041 * archive_tar.cc: Remove unneeded includes.
1042 * archive_tar.h: Add required include.
1043 * archive_tar_file.cc: Remove unneded includes.
1044 * choose.cc: Remove unneeded includes:
1045
bf4ffcd9
RC
10462002-05-04 Robert Collins <rbtcollins@hotmail.com>
1047
1048 * io_stream.cc: Use the new log interface thruout.
1049
9f4a0c62
RC
10502002-05-04 Robert Collins <rbtcollins@hotmail.com>
1051
1052 * log.cc (log): Reimplement via LogSingleton.
1053 (log_save): Remove.
1054 (exit_setup): Remove.
1055 * log.h (log_save): Remove.
1056 (exit_setup): Remove.
1057 * LogSingleton.cc: New file.
1058 * LogSingleton.h: New file.
1059 * LogFile.cc: New file.
1060 * LogFile.h: New file.
1061 * Makefile.am (inilint_SOURCES): Add the new log interface.
1062 (setup_SOURCES): Add the new log interface and the concrete File
1063 implementation.
1064 * Makefile.in: Regenerate.
1065 * archive.cc: Use the new log interface thruout.
1066 * archive_tar.cc: Ditto.
1067 * main.cc: Ditto.
1068 * dialog.cc (fatal): Use the new log interface.
1069 * ini.cc (do_ini_thread): Use the log interface to exit.
1070 * isntall.cc (do_install_thread): Ditto.
1071 * netio.cc (auth_cmd): Ditto.
1072 * msg.cc (fatal): Ditto.
1073 * localdir.cc (save_local_dir): Save to different files depending on
1074 the mode, and if a root dir exists.
1075
076654e7
RC
10762002-05-04 Robert Collins <rbtcollins@hotmail.com>
1077
1078 * IniDBBuilder.cc: New file.
1079 * IniDBBuilder.h: New file.
1080 * IniDBBuilderPackage.cc: New file.
1081 * IniDBBuilderPackage.h: New file.
1082 * PackageTrust.h: New file.
1083 * IniState.h: Remove, wasn't thought out well enough.
1084 * Makefile.am (inilint_SOURCES): Add more requirements.
1085 (setup_SOURCES): Add new Builder base and concrete classes.
1086 * Makefile.in: Regenerate.
1087 * String++.cc (String::String): Implement int contructor.
1088 * String++.h (String): Declare int constructor.
1089 * archive_tar.cc (archive_tar::next_file_name): Return String() when
1090 no filename exists.
1091 * archive_tar.h (archive_tar_file): Remove get_next_filename method,
1092 it's not needed.
1093 * ini.cc: Replace IniState wuth IniDBBuilderPacakge.
1094 (find_routine): Use new IniDBBuilder to configure the parser.
1095 (do_local_ini): Ditto.
1096 (do_remote_ini): Ditto.
1097 * ini.h: Use IniDBBuilder to initialise parsing.
1098 * inilex.l (MD5): Parse the MD5 string correctly, we had the nibbles
1099 swapped.
1100 (ini_init): Use an IniDBBuilder rather than static variables.
1101 * iniparse.y: Hand off all the object creation to a builder, rather
1102 than hardcoding the behaviour. This allows run-time configured
1103 behaviour.
1104 * io_stream_cygfile.h (io_stream_cygfile): Remove get_next_filename
1105 method, it's not needed.
1106 * io_stream_file.h (io_stream_file): Ditto.
1107 * mount.cc (cygpath): Return String() for missing mounts.
1108 * package_meta.cc (packagemeta::SDesc): Return String() for blank
1109 descriptions.
1110 * package_meta.h (trusts): Remove - replaced by PackageTrust.h.
1111 (packagemeta::packagemeta): Fix incorrect syntax in String constructor
1112 usage.
1113 * cygpackage.cc (cygpackage::cygpackage): Fix incorrect syntax in
1114 String constructor usage.
1115 * site.h (site_list_type): Ditto.
1116
6391823e
RC
11172002-05-03 Robert Collins <rbtcollins@hotmail.com>
1118
1119 * String++.h: Declare a << operator that accepts String objects.
1120 * String++.cc: We need iostream for..
1121 (operator <<): this. Provide a << operator that accepts String objects.
1122 * ini.cc (yyerror): Remove the "C" classifier - it's not needed.
1123 Change from vargs to a String parameter.
1124 * inilintmail.cc: Remove the gui related headers.
1125 (yyerror): Implement this for parsing.
1126 * iniparse.y: Use the new yyerror syntax.
1127
b92028a4
RC
11282002-05-03 Robert Collins <rbtcollins@hotmail.com>
1129
1130 * Makefile.am: Add IniState.h.
1131 * Makefile.in: Regenerate.
1132 * IniState.h: New file.
1133 * choose.cc: Don't include ini.h - it's not needed.
1134 * configure: Regenerate.
1135 * desktop.cc: Don't include ini.h - it's not needed.
1136 * download.cc: Ditto.
1137 * fromcwd.cc: Ditto.
1138 * ini.cc: Use IniState.h to track each parsing calling.
1139 (find_routine): Ditto.
1140 (do_remote_ini): Ditto.
1141 (do_ini_thread): Ditto.
1142 * ini.h (ini_init): Adjust parameters to include state object.
1143 * inilex.l: Declare parser state variable.
1144 (ini_init): Adjust parameters to include state object.
1145 * iniparse.y: Remove obsolete setup_timestamp and setup_version
1146 declarations.
1147 (setup_header): Use new state variable to track time and version.
1148 (add_correct_version): Ditto.
1149 * install.cc: Don't include ini.h - it's not needed.
1150
e0a4db64
RC
11512002-05-03 Robert Collins <rbtcollins@hotmail.com>
1152
1153 * nio-files.cc (NetIO): Use io_stream syntax for get_file_size.
1154 * io_stream_file.cc: Don't include filemanip.h.
1155 (io_stream_file::get_size): Implement here to remove filemanip
1156 dependency.
1157 * io_stream_cygfile.cc: Don't include filemanip.h.
1158 (io_stream_cygfile::get_size): Implement here to remove filemanip
1159 dependency.
1160 Implement a stat based version for when win32 is not available.
1161 * filemanip.h (get_file_size): Return size_t - it's more appropriate.
1162 * filemanip.cc: Don't include win32.h - be platform independent.
1163 Include strings.h and io_stream.h as part of that.
1164 (get_file_size): Leverage io_streams and remove win32 implementation.
1165 * download.cc (check_for_cached): Use io_stream syntax for
1166 get_file_size.
1167 (download_one): Ditto.
1168
11692002-05-02 Robert Collins <rbtcollins@hotmail.com>
ac65f5c5
RC
1170
1171 * configure.in: Correct a typo in last change.
1172 * configure: Regenerate.
1173 * Makefile.in: Regenerate.
1174
e0a4db64 11752002-05-02 Robert Collins <rbtcollins@hotmail.com>
e06ded88
RC
1176
1177 * configure.in: Check for string.h and string.
1178 * configure: Regenerate.
1179 * Makefile.in: Regenerate.
1180
1fd0694a
RC
11812002-05-01 Robert Collins <rbtcollins@hotmail.com>
1182
1183 * res.rc (IDD_SPLASH): Remove white box.
1184
89ca06c0
RC
11852002-05-01 Robert Collins <rbtcollins@hotmail.com>
1186
1187 Oops! forgot to list these in the last checkin.
1188 * inilintmain.cc: New file.
1189 * md5.h: New file - imported md5 source, BSD style licence.
1190 * md5.cc: New file - imported md5 source, BSD style licence.
1191 * Exception.cc: New file.
1192 * Exception.h: New file.
1193 * MD5++.cc: New file.
1194 * MD5++.h: New file.
1195
58ee6135
RC
11962002-05-01 Robert Collins <rbtcollins@hotmail.com>
1197
1198 * Makefile.am (AM_CFLAGS): Remove -mwindows, it's a linker flag.
1199 Remove -fno-rtti, we need it for exceptions.
1200 (AM_CXXFLAGS): Ditto.
1201 (WARNONLY_CFLAGS): Ditto.
1202 (EXTRA_PROGRAMS): Add with initial linter sources - not functional yet.
1203 (setup_LDFLAGS): Add and set to -mwindows.
1204 (setup_SOURCES): Add new sources.
1205 * Makefile.in: Regenerate.
1206 * README: Update TODO.
1207 * choose.cc (scan_downloaded_files): Use ini information if it's
1208 available.
1209 * configure: Regenerate.
1210 * download.cc (check_for_cached): Make reusable from elsewhere.
1211 Throw exceptions on errors (as opposed to failures).
1212 Check MD5 sum when it's known.
1213 (download_one): Never force a download.
1214 Handle corrupt package exceptions.
1215 * ini.cc (find_routine): Reverse escape the URL to correctly identify
1216 the site URL.
1217 * inilex.l (MD5): Provide a parsing rule (note: lowercase is required).
1218 * iniparse.y: Allow calculation of MD5 sums, and allow src only
1219 packages.
1220 (process_src): New helper function.
1221 * isntall.cc (install_one_source): Check MD5 sums when possible.
1222 Throw exceptions on errors.
1223 (do_install_thread): Handle exceptions for installation calls.
1224 * package_source.h: Store MD5 information.
1225 * propsheet.cc (PropSheet::Create): Add a useful comment.
1226 * res.rc (IDS_INSTALL_ERROR): Define.
1227 (IDS_CORRUPT_PACKAGE): Define.
1228 * resource.h (IDS_INSTALL_ERROR): Define.
1229 (IDS_CORRUPT_PACKAGE): Define.
1230 * rfc1738.cc (rfc1738_unescape_part): Implement.
1231 * rfc1738.h (rfc1738_unescape_part): Declare.
1232
45e01f23
RC
12332002-04-29 Robert Collins <rbtcollins@hotmail.com>
1234
1235 * Makefile.am: Remove dependecy rules that automake emits.
1236 Correct badly copied dependency info for manually compiled files.
1237 (setup_SOURCES): Add all used headers.
1238 (EXTRA_DIST): Include non compilate but required sources.
1239 (setup_LDADD): Remove mingw32, it is autodetected.
1240 * Makefile.in: Regenerate.
1241 * String++.h: sys/types is a system header.
1242 * choose.cc (do_choose_thread): Make into a Win32 thread routine.
1243 Use ExitThread.
1244 (ChooserPage::OnMessageApp): Use Win32 threads. (_beginthread is not
1245 portable).
1246 * configure: Regenerate.
1247 * configure.in: Check for mingw32/cygwin specific headers and libraries.
1248 * cygpackage.h: Include the win32.h header to get correct macro
1249 definitions in all situations.
1250 * download.cc (do_download_reflector): Make into a Win32 thread routine.
1251 Use ExitThread.
1252 (do_download): Use Win32 threads.
1253 * ini.cc: Ditto.
1254 * install.cc: Ditto.
1255 * (WinMain): Adjust to build valid command line using application
1256 under both mingw32 and cygwin.
1257 * mount.cc (set)cygdrive_flags): Create new system flags if the
1258 user requests system and the value does not exist.
1259 * nio-http.cc: Define a _strnicmp for cygwin.
1260 * package_db.cc: Include <errno.h> if it exists.
1261 * site.cc (do_download_site_info_thread): Make into a Win32 thread
1262 routine.
1263 Use ExitThread.
1264 (do_download_site-Info): Use Win32 threads.
1265 * state.cc: Explicity declare variables to avoid header conflicts
1266 caused by '#define extern" on cygwin.
1267 * win32.h: Include <alloca.h> if it exists.
1268 (_MAX_PATH): Define as MAX_PATH when not defined by windows.h.
1269 (_access): Define as access if not defined by windows.h.
1270
8bb9dad9
RC
12712002-04-27 Robert Collins <rbtcollins@hotmail.com>
1272
1273 * compress_gz.cc (compress_gz::error): EOF is not an error condition.
1274
6908b7d7
RC
12752002-04-27 Robert Collins <rbtcollins@hotmail.com>
1276
1277 * Makefile.am: Add libgetopt++ to the subdirs list.
1278 Search the libgetopt++ header directory.
1279 Link against libgetopt++.la.
1280 (setup_SOURCES): Remove GetOption.cc and getopt.c and Option.cc.
1281 (setup_LDADD): Explicitly include res.o.
1282 * Makefile.in: Regenerate.
1283 * aclocal.m4: Regenerate.
1284 * bootstrap.sh: Call libtoolize.
1285 * configure: Regenerate.
1286 * configure.in: Add libtool support and configure libgetopt++.
1287 * desktop.cc (NoShortcutsOption): Turn into a BoolOption.
1288 (DesktopSetupPage::OnInit): Use the simpler syntax.
1289 * desktop.h: Remove dependency on Option.h, and remove NoShortcustOption
1290 declaration.
1291 * main.cc: Include getopt++/GetOption.h.
1292 (main): Use simpler syntax.
1293 * cdefs.h: Remove.
1294 * getopt.h: Remove.
1295 * getopt.c: Remove.
1296 * GetOption.h: Remove.
1297 * GetOption.cc: Remove.
1298 * Option.h: Remove.
1299 * Option.cc: Remove.
1300
9063358a
RC
13012002-04-26 Robert Collins <rbtcollins@hotmail.com>
1302
1303 * Makefile.am: Add zlib and bz2lib to SUBDIRS.
1304
f6100b6f
RC
13052002-04-26 Robert Collins <rbtcollins@hotmail.com>
1306
1307 * aclocal.m4: New file, cached macros.
1308 * bootstrap.sh: New file, calls required autotools in appropriate
1309 order.
1310 * Makefile.am: New file, input Makefile for automake.
1311 * Makefile,in: Now a generated file - regenerate.
1312 * configure: Regenerate.
1313 * configure.in: Add automake support.
1314 * inilex.l: Change VERSION to PACKAGEVERSION to avoid a collision with
1315 automake's VERSION define.
1316 * iniparse.y: Ditto.
1317
db04fc41
RC
13182002-04-26 Robert Collins <rbtcollins@hotmail.com>
1319
1320 * cdefs.h: New file, imported to allow getopt.c to build without
1321 cygwin headers.
1322 * getopt.h: New file, imported to allow building without cygwin headers.
1323 * getopt.c: Ditto.
1324 * bz2lib: New directory, contains copy of bz2lib.
1325 * cfgaux: New directory, contains autotool helper scripts.
1326 * Makefile,in: Adjust library and target definitions for building
1327 outside the sourceware tree.
1328 * compress_bz.h: Use new bz2lib header location.
1329 * mount.cc: Import key defines and enums to be independent of cygwin
1330 headers.
1331 * configure.in: Update to autoconf 2.53, and to be sourceware
1332 independent.
1333 * configure: Regenerate.
1334
931f2755
RC
13352002-04-12 Robert Collins <rbtcollins@hotmail.com>
1336
1337 * mklink2.cc (make_link_2): Tweak to work with current w32api
1338 headers.
1339
13402002-04-10 Pavel Tsekov <ptsekov@gmx.net>
1341
1342 * version.cc (canonicalize_version): Fix a call delete[]
1343 to delete the allocated address.
1344
13452002-03-29 Robert Collins <rbtcollins@hotmail.com>
1346
1347 * PickView.cc (PickView::set_headers): Set last_col correctly. Thanks
1348 to Ton van Overbeek for locating the bug area.
1349
49cf3899
RC
13502003-03-27 Robert Collins <rbtcollins@hotmail.com>
1351
1352 * PickView.cc (PickView::insert_pkg): Be more generic with
1353 object use.
1354 (PickView::insert_category): Ditto.
1355 (PickView::~PickView): Create.
1356 * PickView.h (PickView::~PickView): Declare.
1357
1be8f8fd
RC
13582003-03-27 Robert Collins <rbtcollins@hotmail.com>
1359
1360 * Makefile.in (OBJS): Add new commandline objects.
1361 * desktop.cc (NoShortCutsOption): New option code.
1362 (DesktopSetupPage::OnInit): Check whether to skip shortcuts.
1363 * desktop.h (NoShortCutsOption): New concrete command line option class.
1364 * main.cc (WinMain): Process command line options.
1365 * GetOption.h: New file, singleton command line class.
1366 * GetOption.cc: New file, implementation of the above.
1367 * Option.h : New file, abstract option for GetOption.
1368 * Option.cc: New file, implement constructor and destructor.
1369
f2e49cf8
RC
13702002-03-26 Pavel Tsekov <ptsekov@gmx.net>
1371
1372 * mkdir.cc (mkdir_p): Stop processing if the path is exhausted.
1373
13742002-03-26 Ton van Overbeek <tvoverbe@cistron.nl>
1375
1376 * PickPackageLine.cc (PickPackageline::paint): Adjust clipping rectangle
1377 to textheight, so large fonts work.
1378
13792003-03-26 Robert Collins <rbtcollins@hotmail.com>
1380
1381 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Don't translate
1382 symlinks.
1383
13842003-03-26 Robert Collins <rbtcollins@hotmail.com>
1385
1386 * io_stream_cygfile.cc (cwd): New static for cwd storage.
1387 (io_stream_cygfile::normalise): New method.
1388 (io_stream_cygfile::io_stream_cygfile): Use it.
1389 (io_stream_cygfile::exists): Ditto.
1390 (io_stream_cygfile::remove): Ditto.
1391 (io_stream_cygfile::mklink): And again.
1392 (cygmkdir_p): Yes, again.
1393 (io_stream_cygfile::move): And once more.
1394 * io_stream_cygfile.h (io_stream_cygfile::normalise): Declare.
1395 (io_stream_cygfile::cwd): Ditto.
1396
51ebb760
RC
13972003-03-26 Robert Collins <rbtcollins@hotmail.com>
1398
1399 * package_meta.cc (package_meta::~package_meta): Remove duplicate.
1400 (CategoryPackage::~CategoryPackage): Ditto. (Thanks to Ton van
1401 Overbeek for the report).
1402 * mklink2.cc: Moved from mklink2.c to avoid 'not a prototype error'.
1403 Make g++ compatible.
1404 * mklink2.c: Remove.
1405 * site.cc (site_list_type::init): Delete the correct memory addres.
1406 Thanks to Pavel Tsekov for tracking this down.
1407
e7d67c03
RC
14082002-03-20 Robert Collins <rbtcollins@hotmail.com>
1409
1410 * win32.h: Only define alloca if it's not already.
1411
2fa7c5a4
RC
14122002-03-20 Robert Collins <rbtcollins@hotmail.com>
1413
1414 * package_meta.h (packamgemeta::trustp): Make 'test' choice leave installed
1415 packages alone.
1416 * README: Update with latest requests.
1417 * Various: MTC fixes from setup200202 branch.
1418
7bf13fc9
CF
14192002-03-19 Christopher Faylor <cgf@redhat.com>
1420
1421 * Makefile.in (setup_version.c): Add back magic which allows detection
1422 of setup.exe version number.
1423
2fa7c5a4
RC
14242002-03-17 Robert Collins <rbtcollins@hotmail.com>
1425
1426 * * PickPackageLine.cc (PickPackageLine::paint): Fix incorrect clip region
1427 calculation on win9x systems.
1428
14292002-03-16 Robert Collins <rbtcollins@hotmail.com>
1430
1431 * install.cc (install_one_source): Write the correct length of a string to the
1432 lst file (Thanks to Pavel Tsekov for reporting the bug).
1433
14342002-03-15 Robert Collins <rbtcollins@hotmail.com>
1435
1436 * choose.cc (list_click): Always refresh the entire chooser, as our
1437 package state change mechanism is broken with the new improved list classes.
1438
14392002-03-15 Robert Collins <rbtcollins@hotmail.com>
1440
1441 * desktop.cc (make_passwd_group): Check for .lnk suffix on /etc/passwd and
1442 /etc/group.
1443
14442002-03-15 Robert Collins <rbtcollins@hotmail.com>
1445
1446 * PickPackageLine.cc (PickPackageLine::DrawCheck): New method factored out from
1447 paint().
1448 (PickPackageLine::paint): Use DrawCheck to draw the src tick box, and the new
1449 bin tickbox.
1450 (PickPackageLine::click): Handle the new bin tickbox.
1451 * PickPackageLine.h (PickPackageLine::DrawCheck): Declare this.
1452 * PickView.cc (pkg_headers): Add a Bin? column.
1453 (cat_headers): Ditto.
1454 (PickView::set_headers): Ditto.
1455 (PickView::init_headers): Ditto.
1456 * PickView.h (PickView): Ditto.
1457 * choose.cc (list_click): Use the new name for src_col to set the clip rectangle.
1458
14592002-02-24 Michael A Chase <mchase@ix.netcom.com>
1460
1461 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Fix up Robert's
1462 fixup.
1463
14642002-02-24 Michael A Chase <mchase@ix.netcom.com>
1465
1466 * desktop.cc (make_link): Add "file://" prefix to io_stream::mkpath_p()
1467 call.
1468 (make_passwd_group): Ditto.
1469 * localdir.cc (save_local_dir): Ditto.
1470 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Wrap long lines.
1471 Add "cygfile://" prefix to io_stream::open() calls.
1472
204315f9
RC
14732002-02-24 Robert Collins <rbtcollins@hotmail.com>
1474
1475 * log.cc (log_save): Fix creating /var/log.
1476 * packate_meta.cc (standard_dirs): Remove duplicate '/''s.
1477
58db1046
RC
14782002-02-24 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1479
1480 * res.rc (STRINGTABLE): Add IDS_CYGWIN_SETUP and
1481 IDS_CYGWIN_SETUP_WITH_PROGRESS strings.
1482 * resource.h: Add IDS_CYGWIN_SETUP and
1483 IDS_CYGWIN_SETUP_WITH_PROGRESS IDs.
1484
1485 * splash.cc (OnInit): Qualify SetWindowText() call with global scope
1486 operator (::SetWindowText()).
1487
1488 * threebar.cc: Run indent.
1489 (cistring.h): Add include.
1490 (SetText1, SetText2, SetText3): Qualify SetWindowText() call with
1491 global scope operator.
1492 (SetBar2): Add logic for writing percent complete into window title.
1493
1494 * window.h: Run indent.
1495 (SetWindowText): New function.
1496 (String): Add forward declaration.
1497 * window.cc: Run indent.
1498 (String++.h): Add include.
1499 (SetWindowText): New function.
1500
490717ef
RC
15012002-02-24 Robert Collins <rbtcollins@hotmail.com>
1502
1503 * README: Update TODO list.
1504 * install.cc (install_one): Fix src package location.
1505 (do_install_thread): Fix creating directories.
1506
7c6ef2c3
RC
15072002-02-19 Robert Collins <rbtcollins@hotmail.com>
1508
1509 * choose.cc: Include cygpackage.h for scan2 use.
1510 (set_existence): Ignore setup.ini mirrors when installing from cwd.
1511 (scan2): Process any valid file.
1512 Add cache entries when a file matching a setup.ini listed version is found.
1513 * filemanip.cc (parse_filename): Remove pkgtar - not used anywhere else.
1514 * filemanip.h (filemanip::pkgtar): Remove.
1515 * package_meta.cc (CategoryPackage::~CategoryPackage): New method.
1516 (packagemeta::~packagemeta): Move from package_meta.h
1517 Remove and delete all version and category information.
1518 * package_meta.h (CategoryPackage): Create a destructor.
1519 (packagemeta::~packagemeta): Move to .cc file.
1520
15212002-02-19 Robert Collins <rbtcollins@hotmail.com>
1522
1523 * install.cc (install_one_source): Make NULL cached package names cause
1524 errors.
1525
bb087dce
RC
15262002-02-18 Michael A Chase <mchase@ix.netcom.com>
1527
1528 * desktop.cc (make_passwd_group): Don't create passwd-grp.bat
1529 unnecessarily.
1530
15312002-02-18 Michael A Chase <mchase@ix.netcom.com>
1532
1533 * log.cc (log_save): Put "\n" at end of log lines instead of "'".
1534
c90bc3df
RC
15352002-02-19 Robert Collins <rbtcollins@hotmail.com>
1536
1537 * mount.cc (create_mount): Avoid a const char*->char* warning.
1538 (read_mounts): Ditto.
1539
3bab9a49
RC
15402002-02-05 Jason Tishler <jason@tishler.net>
1541
2fa7c5a4 1542 * download.cc (do_download_thread): Fix off-by-one error.
3bab9a49 1543
1ac649ed
RC
15442002-02-19 Robert Collins <rbtcollins@hotmail.com>
1545
1546 * configure.in (CXXFLAGS): Substitute at configure time, not runtime.
1547 * configure (CXXFLAGS): Regenerate.
1548 * Makefile.in (iniparse.o): Build via default rules - no errors now.
1549 * README: TODO list updates.
1550
15512002-02-19 Michael A Chase <mchase@ix.netcom.com>
1552
1553 * String++.cc (String::concat):: Remove.
1554 (String::vconcat):: Ditto.
1555 * String++.h (String::concat):: Remove.
1556 (String::vconcat):: Ditto.
1557 * archive_tar.cc: Don't include concat.h.
1558 * archive_tar_file.cc: Don't include concat.h.
1559 * compress_bz.cc (compress_bz::peek): Don't log unneeded messages.
1560 (compress_bz::seek): Ditto.
1561 (compress_bz::~compress_bz): Ditto.
1562 * compress_gz.cc (compress_gz::peek): Ditto.
1563 (compress_gz::error): Ditto.
1564 (compress_gz::~compress_gz): Ditto.
1565 * concat.cc (vconcat): Remove.
1566 (concat): Ditto.
1567 * concat.h (vconcat): Remove.
1568 (concat): Ditto.
1569 * desktop.cc (desktop_icon): Use new cygpath.
1570 (make_etc_profile): Ditto.
1571 (uexists): Ditto.
1572 (make_passwd_group): Ditto.
1573 (save_icon): Ditto.
1574 (check_desktop): Remove concat use.
1575 (check_start_menu): Ditto.
1576 * download.cc (download_one): Use new mkpath_p correctly.
1577 Use LOG_PLAIN.
1578 * fromcwd.cc: Don't include concat.h.
1579 * geturl.cc (get_url_to_membuf): Use String log() call.
1580 (get_url_to_file): Ditto.
1581 * install.cc: Don't include concat.h.
1582 (uninstall_one): Use LOG_PLAIN.
1583 (replace_one): Ditto.
1584 (install_one_source): Ditto.
1585 (install_one): More char to String conversion.
1586 (do_install_thread): Use new cygpath.
1587 Use new create_mount.
1588 * io_stream.cc (io_stream::move): Use new log().
1589 * io_stream_cygfile (io_stream_cygfile::io_stream_cygfile): Use new cygpath.
1590 (io_stream_cygfile::exists): Ditto.
1591 (io_stream_cygfile::remove): Ditto.
1592 (io_stream_cygfile::mklink): Ditto.
1593 (io_stream_cygfile::write): Ditto.
1594 (cygmkdir_p): Ditto.
1595 (io_stream_cygfile::move): Ditto.
1596 * io_stream_file.cc: Don't include log.h.
1597 (io_stream_file::write): Don't log unneeded messages.
1598 * localdir.cc: Don't include concat.h.
1599 (LocalDirPage::OnNext): Use LOG_PLAIN.
1600 * log.cc: Don't include log.h.
1601 (exit_setup): Use new cygpath.
1602 * log.h (log_level): Add new level LOG_PLAIN.
1603 * main.cc (WinMain): Use new log().
1604 * mount.cc (SLASH_P): New macro from concat.h.
1605 (cygpath): Make String version globally visible.
1606 Remove varargs version.
1607 * mount,h: Ditto.
1608 * msg.cc (mbox): Use LOG_PLAIN.
1609 * net.cc (NetPage::OnNext): Ditto.
1610 * nio-ftp.cc (ftp_line): Use new log().
1611 * nio-http.cc: Don't include log.h.
1612 (retry_get): Use alternative url variable.
1613 * package_db.cc: Don't include concat.h.
1614 (packagedb::flush): Don't use concat.
1615 * package_meta.cc: Don't include concat.h.
1616 (packagemeta::uninstall): Use new cygpath.
1617 * postinstall.cc (do_postinstall): Ditto.
1618 * root.cc (RootPage::OnNext): Use LOG_PLAIN.
1619 * script.cc: Don't include concat.h.
1620 (init_run_script): Use new cygpath.
1621 (run_script): More char * to String conversion.
1622 (try_run_script): Ditto.
1623 * site.cc: Don't include concat.h.
1624 (SitePage::OnNext): Use LOG_PLAIN.
1625 (SitePage::OnMessageCmd): Use new log().
1626 * source.cc (SourcePage::OnDeactivate): Use LOG_PLAIN.
1627
3c054baf
RC
16282002-02-19 Robert Collins <rbtcollins@hotmail.com>
1629
1630 * Makefile.in (OBJS): Add new object.
1631 * PickCategoryLine.cc (PickCategoryLine::paint): Print a "+" before the name.
1632 * PickCategoryLine.h (PickCategoryLine::bucket): Use the String class.
1633 * PickLine.h (Pickline::key): Change to a String to help plug leaks.
1634 (PickLine::Pickline): Accept a String for the key.
1635 * PickPackageLine.cc (PickPackageLine::paint): Convert all char use to Strings.
1636 * PickPackageLine.h (PickPackageLine::PickPackageLine): The key is automatically
1637 initialisednow.
1638 * PickView.cc (PickView::note_width): Convert all char * use to Strings.
1639 (PickView::init_header): Move category length checking out of the inner loop for
1640 efficiency.
1641 Convert all char use to Strings.
1642 * PickView.h: Include the String++ header.
1643 (PickView::note_width): Update the prototype.
1644 * String++.cc: New file, implements a reference counting string class.
1645 * String++.h: New file, declares a reference counting string class.
1646 * archive.cc: Include String++ instead of concat.
1647 (archive::extract_file): Convert char * usage to Strings.
1648 * archive.h: Inlude the String++ header.
1649 (archive::extract_file): Update prototype.
1650 (archive::next_file_name): Convert to a String.
1651 (archive::linktarget): Ditto.
1652 * archive_tar.cc (archive_tar::next_file_name): Convert to String usage.
1653 (archive_tar::linktarget): Ditto.
1654 * arhive_tar.h: Update the copyright.
1655 Explicitly include the relevant headers.
1656 (tar_map_result_type): Convert to String usage.
1657 (archive_tar::next_file_name): Update prototype.
1658 (archive_tar::linktarget): Ditto.
1659 * category.cc (Category::Category): Update initialisers.
1660 Convert to String usage.
1661 (Categorycmp): Update to String usage.
1662 * category.h: Include the String++ header.
1663 (Category::Category): Update to String usage.
1664 (Category::name): Ditto.
1665 (Category::key): Ditto.
1666 * choose.cc: Remove concat.h, it's not needed.
1667 (scan2): Update to String usage.
1668 (do_choose): Ditto.
1669 * cygpackage.cc: Update includes for use of String class.
1670 (cygpackage::cygpackage): Update for String usage.
1671 (cygpackage::set_canonical_version): Ditto.
1672 (cygpackage::destroy): Ditto.
1673 (cygpackage::getfirstfile): Ditto.
1674 (cygpackage::getnextfile): Ditto.
1675 (cygpackage::Name): Ditto.
1676 (cygpackage::Vendor_version): Ditto.
1677 (cygpackage::Package_version): Ditto.
1678 (cygpackage::Canonical_version): Ditto.
1679 (cygpackage::set_sdesc): Ditto.
1680 (cygpackage::set_ldesc): Ditto.
1681 * cygpackage.h: Include String++.h for parsing this file.
1682 (cygpackage::cygpackage): Update for String usage.
1683 (cygpackage::set_canonical_version): Ditto.
1684 (cygpackage::destroy): Ditto.
1685 (cygpackage::getfirstfile): Ditto.
1686 (cygpackage::getnextfile): Ditto.
1687 (cygpackage::Name): Ditto.
1688 (cygpackage::Vendor_version): Ditto.
1689 (cygpackage::Package_version): Ditto.
1690 (cygpackage::Canonical_version): Ditto.
1691 (cygpackage::set_sdesc): Ditto.
1692 (cygpackage::set_ldesc): Ditto.
1693 (cygpackage::name): Ditto.
1694 (cygpackage::vendor): Ditto.
1695 (cygpackage::packagev): Ditto.
1696 (cygpackage::canonical): Ditto.
1697 (cygpackage::fn): Ditto.
1698 (cygpackage::sdesc): Ditto.
1699 (cygpackage::ldesc): Ditto.
1700 * desktop.cc: Update includes for use of String class.
1701 (batname): Update for String usage.
1702 (iconname): Ditto.
1703 (make_link): Ditto.
1704 (start)menu): Ditto.
1705 (desktop_icon): Ditto.
1706 (make_cygwin_bat): Ditto.
1707 (make_etc_profile): Ditto.
1708 (uexists): Ditto.
1709 (make_passwd_group): Ditto.
1710 (save_icon): Ditto.
1711 (check_desktop): Ditto.
1712 (check_startmenu): Ditto.
1713 * dialog.cc (eget): Update for String usage.
1714 (egetString): New function.
1715 (eset): New variant for Strings.
1716 * dialog.h: Include String++.h for parsing this file.
1717 (egetString): New function.
1718 (eset): New variant for Strings.
1719 * diskfull.cc (diskfull): Update for String usage.
1720 * diskfull.h: Include String++.h for parsing this file.
1721 (diskfull): Update for String usage.
1722 * download.cc: Update includes for use of String class.
1723 (check_for_cached): Update for String usage.
1724 (download_one): Ditto.
1725 * filemanip.cc (get_file_size): Ditto.
1726 (base): Ditto.
1727 (parse_filename): Ditto.
1728 (backslash): Ditto.
1729 * filemanip.h: Include String++.h for parsing this file.
1730 (fileparse): Update for String usage.
1731 (base): Ditto.
1732 (parse_filename): Ditto.
1733 Don't consider '_' to be a separator.
1734 (backslash): Ditto.
1735 * find.cc: Update includes for use of String class.
1736 (find_sub): Make more flexible.
1737 (find): Update for String usage.
1738 * find.h (find): Use Strings.
1739 * fromcwd.cc (found_file): Update for String usage.
1740 * geturl.cc: Ditto.
1741 (init_dialog): Ditto.
1742 (get_url_to_membuf): Ditto.
1743 (get_url_to_string): Ditto.
1744 (get_url_to_file): Ditto.
1745 * geturl.h: Ditto.
1746 (get_url_to_membuf): Ditto.
1747 (get_url_to_string): Ditto.
1748 (get_url_to_file): Ditto.
1749 * hash.h: Ditto.
1750 (add_subdirs): Ditto.
1751 * ini.cc: Update includes for String usage.
1752 (find_routine): Update for String usage.
1753 (do_remote_ini): Ditto.
1754 (do_ini_thread): Ditto.
1755 * ini.h (ini_init): Ditto.
1756 * inilex.l: Update includes for String usage.
1757 (ini_init): Update for String usage.
1758 * iniparse.y: Ditto.
1759 (add_correct_version): Ditto.
1760 * install.cc: Update includes for String usage.
1761 (install_one_source): Update for String usage.
1762 (uninstall_one): Ditto.
1763 (replace_one): Ditto.
1764 (install_one_source): Ditto.
1765 (do_install_thread): Ditto.
1766 * io_stream.cc: Update includes for String usage.
1767 (io_stream::open): Update for String usage.
1768 (io_stream::mkpath_p): Ditto.
1769 (io_stream::remove): Ditto.
1770 (io_stream::mklink): Ditto.
1771 (io_stream::move_copy): Ditto.
1772 (io_stream::move): Ditto.
1773 (io_stream::exists): Ditto.
1774 * io_stream.h: Update includes to allow correct parsing.
1775 (io_stream::open): Update for String usage.
1776 (io_stream::mkpath_p): Ditto.
1777 (io_stream::remove): Ditto.
1778 (io_stream::mklink): Ditto.
1779 (io_stream::move_copy): Ditto.
1780 (io_stream::move): Ditto.
1781 (io_stream::exists): Ditto.
1782 * io_stream_cygfile.cc: Update includes for String usage.
1783 (get_root_dir_now): Update for String usage.
1784 (io_stream_cygfile::io_stream_cygfile): Ditto.
1785 (io_stream_cygfile::~io_stream_cygfile): Ditto.
1786 (io_stream_cygfile::exists): Ditto.
1787 (io_stream_cygfile::remove): Ditto.
1788 (io_stream_cygfile::mklink): Ditto.
1789 (cygmkdir_p): Ditto.
1790 (io_stream_cygfile::set_mtime): Ditto.
1791 (io_stream_cygfile::move): Ditto.
1792 (io_stream_cygfile::get_size): Ditto.
1793 * io_stream_cygfile.h: Update includes for String usage.
1794 (io_stream_cygfile::io_stream_cygfile): Update for String usage.
1795 (io_stream_cygfile::~io_stream_cygfile): Ditto.
1796 (io_stream_cygfile::exists): Ditto.
1797 (io_stream_cygfile::remove): Ditto.
1798 (io_stream_cygfile::mklink): Ditto.
1799 (cygmkdir_p): Ditto.
1800 (io_stream_cygfile::set_mtime): Ditto.
1801 (io_stream_cygfile::move): Ditto.
1802 (io_stream_cygfile::get_size): Ditto.
1803 (io_stream_cygfile::fname): Ditto.
1804 (io_stream_cygfile::lmode): Ditto.
1805 * io_stream_file.cc: Update includes for String usage.
1806 (io_stream_file::io_stream_file): Update for String usage.
1807 (io_stream_file::~io_stream_file): Ditto.
1808 (io_stream_file::exists): Ditto.
1809 (io_stream_file::remove): Ditto.
1810 (io_stream_file::mklink): Ditto.
1811 (io_stream_file::set_mtime): Ditto.
1812 (io_stream_file::move): Ditto.
1813 (io_stream_file::get_size): Ditto.
1814 * io_stream_file.h: Update includes for String usage.
1815 * io_stream_file.cc: Update includes for String usage.
1816 (io_stream_file::io_stream_file): Update for String usage.
1817 (io_stream_file::~io_stream_file): Ditto.
1818 (io_stream_file::exists): Ditto.
1819 (io_stream_file::remove): Ditto.
1820 (io_stream_file::mklink): Ditto.
1821 (io_stream_file::set_mtime): Ditto.
1822 (io_stream_file::move): Ditto.
1823 (io_stream_file::get_size): Ditto.
1824 (io_stream_file::fname): Ditto.
1825 (io_stream_file::lmode): Ditto.
1826 * localdir.cc: Update includes for String usage.
1827 (save_local_dir): Update for String usage.
1828 (check_if_enable_next): Ditto.
1829 (load_dialog): Ditto.
1830 (browse_cb): Ditto.
1831 (LocalDirPage::OnInit): Ditto.
1832 (LocalDirPage::OnNext): Ditto.
1833 * log.cc: Update includes for String usage.
1834 (struct LogEnt): Update for String usage.
1835 (log): Ditto.
1836 (log_save): Ditto.
1837 (exit_setup): Ditto.
1838 * log.h: Update includes for String usage.
1839 (log_level): Update for String usage.
1840 (log): Ditto.
1841 (log_save): Ditto.
1842 * main.cc (WinMain): Update for String usage.
1843 * mklink2.c (make_link_2): Update for String usage.
1844 * mklink2.h (make_link_2): Update for String usage.
1845 * mount.cc: Update includes for String usage.
1846 (mount_table): Update for String usage.
1847 (find2): Ditto.
1848 (create_mount): Ditto.
1849 (remove1): Ditto.
1850 (remove_mount): Ditto.
1851 (read_mounts): Ditto.
1852 (set_root_dir): Ditto.
1853 (get_root_dir): Ditto.
1854 (path_prefix_p): Ditto.
1855 (cygpath): Ditto.
1856 * mount.h: Update includes for String usage.
1857 (create_mount): Update for String usage.
1858 (remove_mount): Ditto.
1859 (cygpath): Ditto.
1860 (set_root_dir): Ditto.
1861 (get_root_dir): Ditto.
1862 * msg.cc (mbox): Ditto.
1863 * net.cc (NetPage::OnNext): Ditto.
1864 * package_db.cc (packagedb::flush): Ditto.
1865 (packagedb::packages): Ditto.
1866 (packagedb::categories): Ditto.
1867 * package_db.h: Update includes for String usage.
1868 (packagedb::packages): Update for String usage.
1869 (packagedb::categories): Ditto.
1870 * package_meta.cc: Update includes for String usage.
1871 (hash::add_subdirs): Update for String usage.
1872 (packagemeta::uninstall): Ditto.
1873 (packagemeta::SDesc): Ditto.
1874 (packagemeta::action_caption): Ditto.
1875 * package_meta.h: Update includes for String usage.
1876 (packagemeta::packagemeta): Update for String usage.
1877 (packagemeta::~packagemeta): Ditto.
1878 (packagemeta::uninstall): Ditto.
1879 (packagemeta::SDesc): Ditto.
1880 (packagemeta::action_caption): Ditto.
1881 (package_source.cc site::site): Ditto.
1882 (packagesource::set_canonical): Ditto.
1883 (packagesource::set_cached): Ditto.
1884 * package_source.h: Update includes for String usage.
1885 (site::site): Update for String usage.
1886 (packagesource::set_canonical): Ditto.
1887 (packagesource::set_cached): Ditto.
1888 (packagesource::packagesource): Ditto.
1889 (packagesource::sites): Ditto.
1890 (packagesource::cached): Ditto.
1891 * package_version.h: Update includes for String usage.
1892 (Dependency): Update for String usage.
1893 (packageversion): Ditto.
1894 * postinstall.cc: Update includes for String usage.
1895 (do_postinstall): Update for String usage.
1896 * res.rc (IDD_LOCAL_DIR): Fix typo again!
1897 * rfc1738.cc (rfc1738_escape_part): Update for String usage.
1898 * rfc1738.h: Update includes for String usage.
1899 (rfc1738_escape_part): Update for String usage.
1900 * root.cc: Update includes for String usage.
1901 (check_if_enable_next): Update for String usage.
1902 (save_dialog): Ditto.
1903 (browse_cb): Ditto.
1904 (directory_is_absolute): Ditto.
1905 (directory_is_rootdir): Ditto.
1906 (directory_has_spaces): Ditto.
1907 (RootPage::OnInit): Ditto.
1908 (RootPage::OnNext): Ditto.
1909 * script.cc: Update includes for String usage.
1910 (init_run_script): Update for String usage.
1911 (run): Ditto.
1912 (run_script): Ditto.
1913 (try_run_script): Ditto.
1914 * script.h: Update includes for String usage.
1915 (run_script): Update for String usage.
1916 (try_run_script): Ditto.
1917 * site.cc site_list): Ditto.
1918 (all_site_list): Ditto.
1919 (other_url): Eliminate.
1920 (site_list_type::init): Update for String usage.
1921 (site_list_type::site_list_type): Ditto.
1922 (get_site_list): Ditto.
1923 (get_saved_sites): Ditto.
1924 (do_download_site_info_thread): Ditto.
1925 (SitePage::OnNext): Ditto.
1926 (SitePage::OnActivate): Ditto.
1927 (SitePage::PopulateListBox): Ditto.
1928 (SitePage::OnMessageCmd): Handle empty url's.
1929 * site.h: Update includes for String usage.
1930 (site_list_type::site_list_type): Update for String usage.
1931 (site_list_type::init): Ditto.
1932 (site_list_type::~site_list_type): Ditto.
1933 (site_list_type::url): Ditto.
1934 (site_list_type::displayed_url): Ditto.
1935 (site_list_type::key): Ditto.
1936 * source.cc (SourcePage::OnDeactivate): Ditto.
1937 * state.h: Update includes for String usage.
1938 (local_dir): Update for String usage.
1939 (trust_level): Remove.
1940 * version.cc: Update includes for String usage.
1941 (canonicalize_version): Update for String usage.
1942 * version.h: Update includes for String usage.
1943 (canonicalize_version): Update for String usage.
1944
08233ec7
CF
19452002-02-15 Christopher Faylor <cgf@redhat.com>
1946
1947 * filemanip.c (parse_filename): Revert previous change.
1948
94dffbdd
CF
19492002-02-14 Christopher Faylor <cgf@redhat.com>
1950
1951 * filemanip.c (parse_filename): Don't treat '_' as a version number
1952 introducer.
1953
cef493d7
CF
19542002-01-29 Christopher Faylor <cgf@redhat.com>
1955
1956 * configure: Regenerate.
1957
57219197
RC
19582002-01-27 Robert Collins <rbtcollins@hotmail.com>
1959
94dffbdd
CF
1960 * res.rc (IDD_LOCAL_DIR): Fix typo reported by Rene
1961 <Hoeck@extern.lrz-muenchen.de>
57219197 1962
cc7493c3
RC
19632002-01-27 Robert Collins <rbtcollins@hotmail.com>
1964
1965 * README: Update Todo's.
1966 * list.h: Run indent.
1967 (list): New methods checksize and insert to reduce code duplication.
1968 (list::registerbykey): Use them.
1969 (list::registerbyobject): Ditto.
94dffbdd
CF
1970 (list::removebyindex): Copy each object individually - safe for non
1971 trivial objects.
cc7493c3
RC
1972 (list::checksize): Implement.
1973 (list::insert): Implement.
1974
a900d1fa
RC
19752002-01-27 Robert Collins <rbtcollins@hotmail.com>
1976
1977 * Makefile.in: Remove the dlmalloc object by default.
94dffbdd
CF
1978 * install.cc (do_install_thread): Remove the mallinfo call for 'working
1979 around' the crashing issue.
a900d1fa 1980 * package_db.h: Include <string.h> - it's needed to parse this.
94dffbdd 1981 * package_source.cc (site::site): Move here from the header file.
a900d1fa
RC
1982 * package_source.h (site): Stop the constructor being inlinable.
1983
9835fb4a
RC
19842002-01-26 Robert Collins <rbtcollins@hotmail.com>
1985
1986 * filemanip.cc (find_tar_ext): Add a descriptive comment.
1987
19882002-01-25 Michael A Chase <mchase@ix.netcom.com>
1989
1990 * filemanip.cc (find_tar_ext): Clean up tests for .tar.gz and .tar.
1991 * fromcwd.cc (do_fromcwd): Expand FIXME comment in source file check.
94dffbdd
CF
1992 * install.cc (install_one_source): Add space between words in log()
1993 call.
cef493d7 1994
77ba23d8
RC
19952002-01-22 Robert Collins <rbtcollins@hotmail.com>
1996
94dffbdd
CF
1997 * log.cc (exit_setup): When saving to the download dir, explicity
1998 specify the path.
77ba23d8 1999
6dc75764
RC
20002002-01-22 Robert Collins <rbtcollins@hotmail.com>
2001
94dffbdd
CF
2002 * archive.cc (extract_file): Separate out the prefix and the URL
2003 scheme.
6dc75764 2004 * archive.h (archive::extract_file): Ditto.
94dffbdd
CF
2005 * install.cc (install_one_source): Ditto. Use the new
2006 archive::extract_file syntax.
6dc75764
RC
2007 (replace_one): Use the new syntax.
2008 (io_stream.cc): Add some log info for links.
2009
7e8fc33c
RC
20102002-01-22 Robert Collins <rbtcollins@hotmail.com>
2011
2012 * PickCategoryLine.cc (PickCategoryLine::actiontext): Remove.
2013 (PickCategoryLine::paint): Use the new action method.
2014 (PickCategoryLine::click): Set the action for all children.
2015 (PickCategoryLine::set_action): New method.
2016 * PickCategoryLine.h (PickCategoryLine::-actions): Remove.
2017 (PickCategoryLine::current_default): Use packagemeta _actions class.
94dffbdd
CF
2018 * PickLine.h (PickLine::set_action): New abstract method that requires
2019 including package_meta.h.
7e8fc33c
RC
2020 * PickPackageLine.cc (PickPackageLine::set_action): New method.
2021 * PickPackageLine.h (PickPackageLine::set_action): Declare this.
2022 * list.h (getbykey): A const correctness fix.
2023 * package_meta.cc: Run indent.
2024 (packagemeta::Default_action): New const.
2025 (packagemeta::Install_action): Ditto.
2026 (packagemeta::Reinstall_action): Ditto.
2027 (packagemeta::Uninstall_action): Ditto.
2028 (packagemeta::_actions::caption): New method.
2029 (packagemeta::_actions::operator++): Ditto.
2030 (packagemeta::set_action): New overload.
2031 * package_meta.h (packagemeta::_actions): New class.
2032 (packagemeta::set_action): Declare this.
2033
2c9254b6
RC
20342002-01-22 Robert Collins <rbtcollins@hotmail.com>
2035
2036 * Makefile.in (OBJS): Remove supp.o - it appears accidental.
2037 * choose.cc: Don't define alloca anymore, it's done in win32.h
2038
97647369
RC
20392002-01-22 Robert Collins <rbtcollins@hotmail.com>
2040
2041 * PickPackageLine.cc: New file.
2042 * PickPackageLine.h: New file.
2043 * PickLine.cc: New file.
2044 * PickLine.h: New file.
2045 * PickCategoryLine.cc: New file.
2046 * PickCategoryLine.h: New file.
2047 * PickView.cc: New file.
2048 * PickView.h: New file.
2049 * Makefile.in: Add new objects to setup.exe.
2050 Backout -fno-exceptions option.
2051 * choose.cc: Include PickView.h.
2052 Remove view related defines and static variables.
2053 (_pkg_headers): Moved to PickView.cc.
2054 (_cat_headers): Ditto.
2055 (view::views::Unknown): Ditto.
2056 (view::views::PackageFull):
2057 (view::views::Package):
2058 (view::views::Category):
2059 (pkgtrustp): Moved to package_meta.cc.
2060 (add_required): Moved to package_meta.cc.
2061 (pick_category_line::empty): Moved to PickCategoryLine.cc
2062 (paint): Adjust for moved static variables.
2063 (view::scroll): Moved to PickView.cc.
2064 (list_vscroll): Adjust for moved static variables.
2065 (list_hscroll): Ditto.
2066 (list_click): Ditto.
2067 (note_width): Moved to PickView.cc.
2068 (view::view): Ditto.
2069 (view::set_view_mode): Ditto.
2070 (view::mode_caption): Ditto.
2071 (view::views::caption): Ditto.
2072 (view::set_headers): Ditto.
2073 (DoInsertItem): Ditto.
2074 (view::init_headers): Ditto.
2075 (view::insert_pkg): Ditto.
2076 (view::insert_category): Ditto.
2077 (view::clear_view): Ditto.
2078 (view::views::operator++): Ditto.
2079 (view::click): Ditto.
2080 (default_trust): Adjust for moved statics.
2081 (pick_pkg_line::paint): Moved to PickPackageLine.cc.
2082 (pick_pkg_line::click): Ditto.
2083 (pick_category_line::actiontext): Moved to PickCategoryLine.cc
2084 (pick_category_line::paint): Ditto.
2085 (pick_category_line::click): Ditto.
2086 (set_view_mode): Adjust for moved statics.
2087 (create_listview): Ditto.
2088 * choose.h: Remove Category and packagemeta forward defines - not needed.
2089 Don't include unneeded headers list and package_meta.
2090 (_header): Move to PickView.h.
2091 (pick_line): Move to PickLine.h.
2092 (pick_pkg_line): Move to PickPackageLine.h.
2093 (pick_category_line): Move to PickCategoryLine.h.
2094 (view): Move to PickView.h.
2095 * ini.h (trusts): Move to package_meta.h.
2096 * package_meta.h (trusts): New enum.
2097 (packagemeta::set_requirements): New helper method.
2098 (packagemeta::trustp): Ditto.
2099
b566778e
CF
21002002-01-21 Christopher Faylor <cgf@redhat.com>
2101
2102 * choose.h (view): Move forward declaration of views into public area
2103 or g++ v3 will complain.
2104
f71e9756
CF
21052002-01-21 Christopher Faylor <cgf@redhat.com>
2106
2107 * Makefile.in (CXXFLAGS): Add -fno-exceptions.
2108 * win32.h (alloca): Define as __builtin_alloca.
2109 * io_stream_memory.cc: Add include file.
2110
e9440f0f
RC
21112002-01-21 Robert Collins <rbtcollins@hotmail.com>
2112
2113 * archive_tar.cc (archive_tar::~archive_tar): Mark the stream as destroyed.
2114 * archive_tar_file.cc (archive_tar_file::~archive_tar_file): Ditto.
2115 * compress.cc (compress::~compress): Be less verbose.
2116 * compress_bz.cc (compress_bz::~compress_bz): Ditto.
2117 Mark the stream as destroyed.
2118 * compress_gz.cc (compress_gz::~compress_gz): Mark the stream as destroyed.
2119 * io_stream.cc (io_stream::~io_stream): Only warn when the stream is not marked
2120 as destroyed.
cef493d7 2121 * io_stream_cygfile.cc (io_stream_cygfile::~io_stream_cygfile): Mark the
e9440f0f
RC
2122 stream as destroyed.
2123 * io_stream_file.cc (io_stream_file::~io_stream_file): Ditto.
2124 * io_stream_memory.cc (io_stream_memory::~io_stream_memory): Ditto.
cef493d7 2125
5e0464a1
RC
21262002-01-21 Robert Collins <rbtcollins@hotmail.com>
2127
2128 * Makefile.in (CFLAGS): Allow customisable malloc debug flags.
2129 (OBJS): Link in malloc objects.
2130 * category.cc (category): Use new char, not strdup.
2131 * choose.cc (pick_pkg_line::paint): Allow for the regionsize to shrink.
2132 (do_choose): Use new char, not malloc.
2133 * concat.cc (vconcat): Ditto.
2134 * cygpackage.cc (cygpackage): Use new char, not strdup.
2135 (set_canonical_version): Ditto.
2136 (cygpackage::destroy): Use delete[], not free.
2137 * desktop.cc (uexists): Ditto.
2138 * dialog.cc (egest): Use new char, not strdup.
2139 * dlmalloc.c: New file - Doug Lea's malloc 2.7.0
2140 * hash.cc (hash::hash): Use delete instead of free.
2141 (hash::add): Use new char, not strdup.
2142 * ini.cc (do_remote_ini): Use delete[] not free.
2143 * inilex.l: Use new char, not strdup.
2144 (ini_init): Ditto.
2145 * iniparse.y: Ditto.
2146 Use a local package_db rather than a static one.
2147 * install.cc (struct mallinfo): Workaround an apparent dlmalloc bug.
2148 (do_install_thread): Call mallinfo to force a consistency check. Appears
2149 to fix a 'inuse' error in -DDEBUG builds.
2150 Use delete[] for strings.
2151 * io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile): Use new char,
2152 not strdup.
2153 (io_stream_cygfile::~io_stream_cygfile): Use delete[], not free.
2154 (io_stream_cygfile::remove): Use new char, not strdup.
2155 * io_stream_file.cc (io_stream_file::io_stream_file): Use new char, not strdup.
2156 (io_stream_file::io_stream_file): Use delete[], not free.
2157 (io_stream_file::remove): Use new char, not strdup.
2158 * io_stream_memory.cc (memblock::~memblock): Use delete[], not free.
2159 * io_stream_memory.h (memblock): Use new char, not malloc.
2160 * localdir.cc (LocalDirPage::OnInit): Use new char, not strdup.
2161 * main.cc (WinMain): Use new char, not strdup.
2162 * mount.cc (find2): Use new char, not malloc.
2163 (read_mounts): Ditto.
2164 (cygpath): Use new char, not strdup.
2165 * netio.cc (NetIO::~NetIO): Use delete[], not free.
2166 (NetIO::set_url): Use new char, not strdup.
2167 (NetIO::get_ftp_auth): Use delete[], not free.
2168 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
2169 Use new char instead of strdup.
2170 * nio-http.cc (base64_encode): Use new char, not malloc.
2171 * package_meta.cc (hash::add_subdirs): Use new char instead of strdup.
2172 * package_source.h (~ packagesource): Use delete[] instead of delete.
2173 * port.h (strdup): Deprecate the use of strdup.
2174 * rfc1738.cc (rfc1738_do_escape): Use new char, not calloc.
2175 * script.cc (init_run_script): Us delete[], not free.
2176 (run_script): Ditto.
2177 * simpsock.cc (SimpleSocket::fill): Use new char, not malloc.
2178 (SimpleSocket::invalidate): Use delete[], not free.
2179 * site.cc (site_list_type::init): Use new char instead of strdup.
2180 * site.h (~site_list_type): Use delete[], not free.
2181
ad3c7385
RC
21822002-01-20 Robert Collins <rbtcollins@hotmail.com>
2183
2184 * Makefile.in (OBJS): Add win32.o - win32 support functions.
2185 * README: Update todos.
2186 * archive.cc (extract_file): Support a suffix for appending to extracted files.
2187 * archive.h: Ditto.
2188 * choose.cc (set_view_mode): Use the new view::views class.
2189 (view::views::Unknown): New static for defaulting view::views variables.
2190 (view::views::PackageFull): New static for the current view.
2191 (view::views::Package): Ditto.
2192 (view::views::Category): Ditto.
2193 (topbucket::paint): Remove.
2194 (topbucket::empty): Rename to pick_category_line::empty.
2195 (topbucket::~topbucket): Remove.
2196 (paint): Use the new view::views class.
2197 Don't paint 'all' as a category when showing package categoies.
2198 (pick_category_line::actiontext): New method.
2199 (pick_category_line::paint): Make showing the category optional, and show the
2200 'category action'.
2201 (pick_category_line::click): Make showing the category optional, and
2202 differentiate between the name being clicked, and the action description.
2203 (view::view): Use the new view::views class.
2204 (view::set_view_mode): Ditto.
2205 (view::mode_caption): Ditto.
2206 (view::views::caption): New method.
2207 (view::set_headers): Use the new view::views class.
2208 (view::clear_view): Ditto.
cef493d7 2209 (viewsplusplus): Replaced by
ad3c7385
RC
2210 (view::views::operator++): New operator.
2211 (set_view_mode): Use the new view::views class.
2212 (create_listview): Ditto.
2213 (dialog_cmd): Ditto.
2214 * choose.h (actions): Remove.
2215 (views): Remove.
2216 (pick_line): Add a new convenience constructor.
2217 (top_bucket): Remove.
2218 (pick_category_line): Reparent under pick_line, and adsorb top_bucket.
2219 (view::views): New class.
2220 * ini.h: Don't include choose.h
2221 (is_download_action): Remove.
2222 (is_upgrade_action): Remove.
2223 (is_uninstall_action): Remove.
2224 (is_full_action): Remove.
2225 * install.cc (num_replacements): New static.
2226 (rebootneeded): Ditto.
2227 (replace_one): Handle upgrades separate from removal or new installs.
2228 (install_one_source): Handle in use files.
2229 (install_one): Don't repeat upgrades.
2230 (do_install_thread): Initialize new statics.
2231 Order actions as uninstall, replace, install.
2232 Warn about rebooting if needed.
2233 * res.rc (IDS_REBOOT_REQUIRED): New string.
2234 * resource.h (IDS_REBOOT_REQUIRED): Give value.
2235 * win32.h: Declare class Win32, and update copyright and intent message.
2236 * win32.cc: New file.
2237
edef4f57
CV
22382002-01-15 Corinna Vinschen <corinna@vinschen.de>
2239
2240 * io_stream.cc (io_stream::gets): Eliminate trailing new line chars.
2241 * package_meta.cc (packagemeta::uninstall): Check for additional
2242 Windows shortcut. Unset R/O file attribute before trying to delete
2243 file.
2244
21f325d7
RC
22452002-01-09 Robert Collins <rbtcollins@hotmail.com>
2246
2247 * choose.cc (pkgtrustp): Fall back to installed if a package is not present in
2248 the current trust level. For prev, fall back via curr.
2249 (set_existence): Allow sources with no sites, but cached files to be
2250 kept.
2251 (pick_category_line::paint): Start drawing clickable categories.
2252 * fromcwd.cc (found_file): Reinstate local file scanning.
2253
858f100d
RC
22542002-01-07 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2255
cef493d7 2256 * fromcwd.cc: Run indent.
858f100d
RC
2257 (do_fromcwd): Reverse sense of comment. Set next_dialog
2258 to IDD_CHOOSER instead of IDD_CHOOSE.
2259 * ini.cc (find_routine): Remove "/" from "/setup.ini".
cef493d7 2260
d343da15
RC
22612001-01-07 Robert Collins <rbtcollins@hotmail.com>
2262
2263 * category.cc (Categorycmp): Add a const safe version.
2264 * category.h (Categorycmp): Add a const safe version.
2265 (Category): Add operator ==.
2266 * choose.cc (fill_missing_category): Add every package to "All".
2267 (pick_category_line::paint): Add support for hidden labels, and a tree depth.
2268 (pick_category_line::click): Ditto.
2269 (view::view): Pass in a top level category to use.
2270 (view::insert_pkg): Special case - skip category "All".
2271 (view::insert_category): Ditto.
2272 (view::clear_view): Set the contents label state.
2273 (create_listview): Pass in a top level category to view().
2274 * choose.h (topbucket): Make bucket available to derived classes.
2275 (pick_category_line): Add support for hidden labels, and a tree depth.
2276 Remove our second copy of bucket.
2277 (view): Pass in a top level category to the constructor.
2278 Use pick_category_line to allow three level display.
2279
bcf20115
RC
22802001-01-06 Robert Collins <rbtcollins@hotmail.com>
2281
2282 * cygpackage.h (cygpackage): Make set_[s|l]desc virtual.
2283 * iniparse.y (add_correct_version): Copy descriptions across.
cef493d7 2284 * package_meta.cc (SDesc): Iterate through versions, return the first with a
bcf20115
RC
2285 description.
2286 * package_version.h (packageversion): Add new virtuals set_[l|s]desc.
2287
bc78a6d5
RC
22882001-01-04 Robert Collins <rbtcollins@hotmail.com>
2289
2290 * script.cc (run_script): Change cygpath:// to cygfile://.
2291 * install.cc (do_install_thread): Fix off-by-one errors.
2292
4f4e55c2
RC
22932001-01-04 Robert Collins <rbtcollins@hotmail.com>
2294
2295 * package_db.cc (packagedb::flush): Fix an off-by-one error.
2296
8e9aa511
RC
22972002-01-04 Jan Nieuwenhuizen <janneke@gnu.org>
2298
2299 * Makefile.in (realclean): more clean.
2300 (OBJS): Add script.o.
2301 * postinstall.cc (run_script_in_etc_postinstall): New function.
2302 (do_postinstall): Split off new funtion init_run_script ().
2303 (init_run_script):
2304 (run):
2305 (run_script): Move to script.cc. Replace some deprecated remove
2306 and move calls.
2307 * script.h:
2308 * script.cc: New file.
2309 * Forward port cygwin-20010707.jcn3.patch.
2310 * package_meta.cc (uninstall): Run pre- and postremove scripts.
2311 * install.cc: Typo fix.
2312 (do_install): Run script initialisation.
cef493d7 2313
b7301c43
RC
23142001-01-04 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2315
2316 * cistring.cc: Run d2u.
2317 * cistring.h: Run d2u.
2318
2319 * desktop.cc (etc_profile): Remove "test -f ./.bashrc && . ./.bashrc"
2320 from the generated /etc/profile. Bash will source this file
2321 automatically, and having this here merely results in .bashrc being
2322 executed twice. Run d2u.
2323 * desktop.h: Run d2u.
2324
2325 * propsheet.cc: Run d2u.
2326 (PropSheetProc): New function. Add minimize box here instead of in
2327 PropertyPage::DialogProc.
2328 (PropSheet::Create): Change to use creation callback PropSheetProc.
2329 (DLGTEMPLATEEX): Add 'hidden' Windows struct definition.
2330
2331 * propsheet.h: Run indent, d2u.
2332 * proppage.h: Run indent, d2u.
2333
2334 * proppage.cc: Run d2u.
2335 (PropertyPage::DialogProc): Remove minimize-box-adding
2336 functionality. Remove commented-out "PropSheet_SetWizButtons" calls.
2337 Add support for calling virtual OnMessageCmd. Add setting of fonts in
2338 WM_INITDIALOG handler.
2339 (resource.h): New include for resource IDs.
2340
2341 * res.rc: Resize and rearrange property page dialog templates
2342 to bring them in line with "Microsoft's Backward Compatible Wizard 97"
2343 specification. Run d2u.
2344 (IDD_SITE): Add an edit control and an "Add" button in order to
2345 combine the IDD_SITE and IDD_OTHER_URL functionality onto one page.
2346 (IDD_OTHER_URL): Remove dialog template.
2347 (IDD_DLSTATUS): Remove dialog template.
2348
2349 * site.cc: Run d2u.
2350 (SitePage::OnBack): Remove NEXT() macro invocation.
2351 (SitePage::OnActivate): New member function.
2352 (load_dialog): Remove. Functionality subsumed into
2353 SitePage::OnActivate.
2354 (save_dialog): Change to support both list and user URLs. Remove
2355 OTHER_IDX and mirror_idx logic.
2356 (SitePage::PopulateListBox): New member function.
2357 (SitePage::CheckControlsAndDisableAccordingly): New member function.
2358 (SitePage::OnMessageCmd): New override.
2359 (check_if_enable_next): Remove.
2360 (dialog_cmd): Remove.
2361 (do_download_site_info_thread): Remove calls to NEXT() macro.
2362 (SitePage::Create): Call the single-param PropertyPage::Create
2363 overload.
2364 (other_url): New static taken from other.cc.
2365 (SitePage::OnNext): Remove mirror_idx logic.
2366 (SitePage::OnInit): Remove "Other URL" entry from list box. Remove
2367 list box populating code, now handled in SitePage::PopulateListBox.
2368 (mirror_idx, NO_IDX, OTHER_IDX): Remove.
2369 (save_site_url): Fix potential buffer overflow problem. Switched to
2370 TCHAR in grossly premature preparation for multilingual support.
2371 * site.h: Run d2u.
2372 (SitePage::OnActivate): New member function.
2373 (SitePage::CheckControlsAndDisableAccordingly) New member.
2374 (SitePage::OnMessageCmd): New override.
2375 (do_download_site_info_thread): Add MessageBox call on failure to
2376 download site list.
2377
2378 * splash.cc: Run d2u.
2379 (SplashPage::OnInit): Set the font for the title.
2380 * splash.h: Run d2u.
2381
2382 * threebar.cc: Run d2u.
2383 * threebar.h: Run d2u.
2384
2385 * window.h: Run d2u.
2386 (Window::IsButtonChecked): New member function declaration.
2387 (Window::OnMessageCmd): New member function.
2388 (Window::SetDlgItemFont): New member function declaration.
2389 (Window::MAXFONTS, Window::Fonts, Window::FontCounter): New data
2390 members.
2391 * window.cc: Run d2u.
2392 (Window::IsButtonChecked): New member function definition.
2393 (Window::SetDlgItemFont): New member function definition.
2394 (Window::Window): Add initialization for FontCounter.
2395 (Window::~Window): Delete any fonts we created.
2396
2397 * geturl.cc: Run d2u.
2398 (progress): Remove the "3" field width from the "%3d"
2399 percent-complete format indicator. Causes line to not start at
2400 beginning of text box, and does little to help with "jumping", since
2401 the "bytes downloaded so far" field is variable-width anyway. Change
2402 kb/s format field to "%03.1" to 0-pad the kb/s number in the event of
2403 painfully slow connections, or temporary slowdowns in faster
2404 connections should such more-instantaneous functionality become
2405 available.
2406
2407 * net.h: Run d2u.
2408 (NetPage::OnMessageCmd): New member function declaration.
2409 (NetPage::CheckIfEnableNext): New member function declaration.
2410 * net.cc: Run d2u.
2411 (NetPage::OnMessageCmd): New member function definition.
2412 (dialog_cmd): Remove, subsumed into NetPage::OnMessageCmd.
2413 (check_if_enable_next): Remove.
2414 (NetPage::CheckIfEnableNext): New member function, subsumes
2415 check_if_enable_next.
2416 (propsheet.h): Add include.
2417 (NetPage::Init): Add call to CheckIfEnableNext.
2418 (load_dialog): Remove call to check_if_enable_next.
2419 (NetPage::Create): Call single-template-ID-parameter overload of
2420 PropertyPage::Create instead of three-parameter one.
2421
2422 * Makefile.in (OBJS): Remove other.o.
2423 * other.cc: Remove file.
2424
df62e023
RC
24252002-01-01 Robert Collins <rbtcollins@hotmail.com>
2426
2427 * README: Update TODO's.
2428 * choose.cc (set_existence): Delete non installed packages with no
2429 mirrors.
2430 (fill_missing_category): Fix an off-by-one error.
cef493d7 2431 (default_trust): Ditto. Also delete any unused categories.
df62e023
RC
2432 (view::init_headers): Fix an off-by-one error.
2433 (set_view_mode): Ditto.
2434 (set_view_mode): Ditto.
2435 (create_listview): Ditto.
2436 (dialog_cmd): Ditto.
2437 (do_choose): Ditto.
2438 * io_stream.cc: Indent.
2439 * io_stream.h: Ditto.
2440 * package_db.cc: Ditto.
2441 * package_meta.h: Const correctness for SDesc ();
2442 * proppage.cc: Run d2u and indent.
2443 * propsheet.cc: Run d2u and indent.
2444 * window.cc: Run d2u and indent.
2445 * window.h: Run d2u and indent.
2446
cec57ee1
CF
24472001-12-28 Christopher Faylor <cgf@redhat.com>
2448
e98c531e 2449 * Makefile.in (iniparse.o): Accommodate newer bisons.
cec57ee1 2450
ab57ceaa
RC
24512001-12-23 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2452
2453 * window.h (Window): New file, new class.
2454 * window.cc (Window): New file, new class.
2455
2456 * threebar.h (ThreeBarProgressPage): New file, new class.
2457 * threebar.cc (ThreeBarProgressPage): New file, new class.
2458
2459 * splash.h (SplashPage): New file, new class.
2460 * splash.cc (SplashPage): Replace file with implementation of new
2461 class.
2462
2463 * source.h (SourcePage): New file, new class.
2464 * source.cc: Run indent.
2465 (SourcePage): Add class implementation to this file.
2466 (do_source): Remove, functionality subsumed by SourcePage::Create()
2467 and SourcePage::OnDeactivate().
cef493d7 2468 (dialog_proc): Remove, functionality subsumed by
ab57ceaa
RC
2469 SourcePage::OnActivate().
2470
2471 * site.h: Run indent.
2472 (SitePage): Add class declaration.
2473 * site.cc: Run indent.
2474 (SitePage): Add class implementation.
2475 (do_download_site_info_thread): New function.
2476 (context): New var. Context info for do_download_site_info_thread().
2477 (do_download_site_info): New function.
2478 (SitePage::Create, SitePage::OnInit SitePage::OnNext)
2479 (SitePage::OnBack): SitePage class implementation..
2480 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers, now handled
2481 by SitePage members.
2482 (dialog_proc): Remove, now handled by SitePage::OnInit and base class
2483 functionality.
2484 (do_site): Remove, now handled by do_download_site_info_thread() and
2485 SitePage::OnNext functionality.
2486 (get_site_list): Remove dismiss_url_status_dialog() call.
2487
2488 * root.h (RootPage): New file, new class.
2489 * root.cc: Run indent.
2490 (dialog_cmd): Pass parent HWND parameter to note(), yesno().
2491 (dialog_proc): Remove.
2492 (do_root): Remove
2493 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL clauses from switch.
2494 (RootPage::OnInit): New member function. Move get_root_dir() logic to
2495 here from do_root().
2496 (RootPage::Create): New member function.
cef493d7 2497 (RootPage::OnNext): New member function. Move IDOK logic from
ab57ceaa
RC
2498 dialog_cmd() to here.
2499 (RootPage::OnBack): New member function.
2500
2501 * propsheet.h (PropSheet): New file, new class.
2502 * propsheet.cc (PropSheet): New file, new class.
2503
2504 * proppage.h (PropertyPage): New file, new class.
2505 * proppage.cc (PropertyPage): New file, new class.
2506
2507 * postinstall.cc (do_postinstall): Add owner parameter.
2508
2509 * other.cc (do_other): Add owner parameter.
2510
2511 * nio-file.cc (NetIO::Purl): Pass NULL parent param to note().
cef493d7 2512 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Pass NULL parent param to
ab57ceaa 2513 get_ftp_auth().
cef493d7 2514 * nio-http.cc (retry_get): Pass NULL parent param to get_auth(),
ab57ceaa
RC
2515 get_proxy_auth(),
2516 and get_ftp_auth().
cef493d7 2517 * nio-ie5.cc (NetIO::_url): Pass NULL parent param to note(),
ab57ceaa
RC
2518 get_auth(), get_proxy_auth().
2519
2520 * netio.h (get_auth, get_proxy_auth, get_ftp_auth): Add owner param.
cef493d7 2521 * netio.cc (auth_common, NetIO::get_auth, NetIO::get_proxy_auth,
ab57ceaa
RC
2522 NetIO::get_ftp_auth)
2523 (auth_common): Add owner param. Pass owner param to DialogBox.
cef493d7 2524 (NetIO::get_auth, NetIO::get_proxy_auth, NetIO::get_ftp_auth): Pass
ab57ceaa
RC
2525 owner param to auth_common().
2526
2527 * net.h (NetPage): New file, new class.
2528 * net.cc: Run indent.
2529 (net.h, threebar.h): Add includes.
2530 (Progress): Add extern.
2531 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, now handled by
2532 property sheet logic. Saved temporarily for reference.
cef493d7 2533 (NetPage::Create, NetPage::OnInit, NetPage::OnDeactivate,
ab57ceaa
RC
2534 NetPage::OnNext, NetPage::OnBack):
2535 New implementation of NetPage class members.
2536 (do_net): Remove.
2537 (dialog_proc): Remove.
2538
2539 * msg.h (fatal, note, yesno): Add owner param.
2540 * msg.c (fatal, note, yesno, mbox): Add owner param.
2541 (mbox): Remove MB_TOPMOST from MessageBox call. Unnecessary and wrong
2542 now that we have a parent.
2543
2544 * main.cc: Run indent.
cef493d7 2545 (commctrl.h, proppage.h, propsheet.h, splash.h, source.h)
ab57ceaa
RC
2546 (localdir.h, net.h, site.h, choose.h, threebar.h, desktop.h): Include
2547 headers.
2548 (root_dialog_proc): extern into this file.
2549 (Progress): Progress dialog defined here, used in several other files.
2550 (WinMain): Instantiate and create Splash, Source, Root, LocalDir, Net,
2551 Site, Chooser, Desktop pages and MainWindow sheet. Call
2552 InitCommonControls() to make sure Windows is set up for our use of
2553 property sheets. Add pages to sheet.
2554 Call MainWindow.Create() to "DoModal". Remove main loop, that logic is
2555 now handled by the PropSheet class.
2556 (root.h): Add include.
2557
2558 * log.cc (log_save): Pass NULL parent to fatal().
2559 (exit_setup): Pass NULL parent to note().
2560
2561 * localdir.h (LocalDirPage): New file, new class.
2562 * localdir.cc: Run indent.
2563 (localdir.h): New include.
2564 (threebar.h): New include.
2565 (Progress): extern into this file.
2566 (LocalDirPage::Create, LocalDirPage::OnInit, LocalDirPage::OnActivate)
cef493d7 2567 (LocalDirPage::OnNext, LocalDirPage::OnBack): Implementation of
ab57ceaa
RC
2568 LocalDirPage.
2569 (LocalDirPage::OnNext): Move log() call from do_local_dir() to here.
2570 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers.
2571 (do_local_dir): Remove.
2572 (dialog_proc): Remove.
2573 (cwd): Remove, not used by anything.
2574
2575 * install.cc: Run indent.
2576 (process.h, threebar.h): New includes.
2577 (Progress): extern into this file.
2578 (ins_dialog, ins_action, ins_pkgname, ins_filename, ins_pprogress)
2579 (ins_iprogress, ins_diskfull, init_event): Remove, now handled by
2580 ThreeBarProgressPage.
cef493d7 2581 (dialog_cmd, dialog_proc, dialog): Removed, handled in
ab57ceaa 2582 ThreeBarProgressPage.
cef493d7
CF
2583 (init_dialog): Remove all mention of the above ins_* handles. Now
2584 handled in ThreeBarProgressPage. Altered SetWindowText()s to call
ab57ceaa
RC
2585 ThreeBarProgressPage instance Progress directly.
2586 (progress): Alter bar update logic to call ThreeBarProgressPage
2587 instance Progress directly.
2588 (uninstall_one): Alter SetWindowText()s to call ThreeBarProgressPage
2589 instance Progress directly.
cef493d7 2590 (install_one_source): Alter SetWindowText()s to call
ab57ceaa
RC
2591 ThreeBarProgressPage
2592 instance Progress directly. Pass NULL parent to note().
cef493d7 2593 (do_install_thread): Rename from do_install(), added owner param.
ab57ceaa
RC
2594 Alter SetWindowText()s to call ThreeBarProgressPage instance Progress
2595 directly.
2596 Remove dismiss_url_status_dialog() call, no longer necessary. Remove
cef493d7 2597 ShowWindow(<hide>) call, also unnecessary now. Pass owner handle to
ab57ceaa
RC
2598 fatal().
2599 (do_install_reflector): New function.
2600 (do_install): New function.
2601
2602 * ini.cc (process.h, threebar.h): New includes.
2603 (Progress): externed into this file.
2604 (find_routine): Pass NULL parent to note().
2605 (do_local_ini): Add owner param.
cef493d7 2606 (do_remote_ini): Add owner param. Pass owner to get_url_to_membuf()
ab57ceaa
RC
2607 and note(). Remove call to dismiss_url_status_dialog().
2608 (do_ini_thread): Rename from do_ini(). Add owner param. Pass owner to
cef493d7 2609 do_local_ini(), do_remote_ini(), yesno(), and note(). Set next_dialog
ab57ceaa
RC
2610 to IDD_CHOOSER on exit.
2611 (do_ini_thread_reflector): New function.
2612 (context): New var. Context for do_ini_thread.
2613 (do_ini): New function.
2614
2615 * geturl.h (get_url_to_membuf, get_url_to_string, get_url_to_file): Add
2616 owner param.
cef493d7 2617 * geturl.cc (gw_dialog, gw_url, gw_rate, gw_progress, gw_pprogress,
ab57ceaa 2618 gw_iprogress)
cef493d7 2619 (gw_progress_text, gw_pprogress_text, gw_iprogress_text, init_event):
ab57ceaa
RC
2620 Removed.
2621 (threebar.h): New include.
2622 (Progress): externed into this file.
cef493d7 2623 (dialog_cmd, dialog_proc, dialog): Removed, handled by
ab57ceaa 2624 ThreeBarProgressPage now.
cef493d7 2625 (init_dialog): Remove "if (gw_dialog == 0)" clause. Alter
ab57ceaa 2626 SetWindowText()s
cef493d7 2627 and bar setting SendMessage()s to call ThreeBarProgressPage instance
ab57ceaa
RC
2628 Progress directly. Remove "one bar only" logic, this is now handled
2629 explicitly in the ThreeBarProgressPage class.
cef493d7 2630 (progress): Altered bar and text update logic to call
ab57ceaa
RC
2631 ThreeBarProgressPage instance Progress directly. Changed kbps
2632 calculation to floating point and now print out a single decimal
2633 place.
2634 (get_url_to_membuf): Add owner param. Pass it to init_dialog.
2635 (get_url_to_string): Add owner param. Pass it to get_url_to_membuf.
cef493d7 2636 (get_url_to_file): Add owner param. Pass it to init_dialog. Alter bar
ab57ceaa
RC
2637 update logic to call ThreeBarProgressPage instance Progress directly.
2638 (dismiss_url_status_dialog): Remove.
2639
2640 * fromcwd.cc (do_fromcwd): Add owner param. Initialize found_ini to
2641 false, was true.
2642
2643 * download.cc: Run indent.
2644 (process.h, threebar.h): New includes.
2645 (Progress): externed into this file.
2646 (download_one): Add owner param. Pass it to get_url_to_file().
2647 (do_download_thread): Renamed from do_download. Add owner param. When
2648 calculating total_download_bytes, take binpicked and srcpicked into
2649 account. Remove call to dismiss_url_status_dialog(), no longer needed.
2650 Pass owner handle to download_one() and yesno().
2651 (do_download_reflector, do_download): New functions.
2652 (context): New var. Context for do_download_thread().
2653
2654 * dialog.h (D(x)): Add owner param.
2655
2656 * desktop.h (DesktopSetupPage): New file, new class.
2657 * desktop.cc: Run indent.
2658 (desktop.h): Add include.
cef493d7 2659 (dialog_proc, do_desktop): Remove, now handled in
ab57ceaa
RC
2660 DesktopSetupPage::OnInit().
2661 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, handled in
2662 DesktopSetupPage::OnFinish(), DesktopSetupPage::OnBack(), and PropSheet
2663 resp.
2664 (DesktopSetupPage::Create, DesktopSetupPage::OnInit)
2665 (DesktopSetupPage::OnBack, DesktopSetupPage::OnFinish): Implementation
2666 of DesktopSetupPage.
2667
2668 * cistring.h: New file, new class.
2669 * cistring.cc: New file, new class.
2670
2671 * choose.h: Run indent.
2672 (Chooser): New class declaration.
2673 * choose.cc: Run indent.
cef493d7 2674 (do_choose): Add owner param. Pass it to DialogBox() and
ab57ceaa
RC
2675 fatal().
2676 (Chooser): New class implementation.
2677
2678 * res.rc (IDS_VERSION_INFO): New string.
2679 (IDD_SOURCE, IDD_LOCAL_DIR, IDD_ROOT, IDD_SITE, IDD_OTHER_URL)
2680 (IDD_DLSTATUS, IDD_INSTATUS, IDD_SPLASH, IDD_CHOOSE, IDD_DESKTOP):
2681 Change WS_POPUP to WS_CHILD. Numerous positioning/size changes
2682 throughout.
2683 (IDD_CHOOSE): Give template the WS_EX_CONTROLPARENT style to enable
2684 TAB control navigation etc. Give the controls a reasonable tab order.
2685 Grouped radio buttons. Something's still not right, can't tab away
2686 from back/next/cancel group reliably.
2687 * resource.h (IDD_CHOOSER): New dialog ID.
2688
2689 * Makefile.in (OBJS): Add cistring.o, proppage.o, propsheet.o,
2690 threebar.o, and window.o.
2691
cc41a057
RC
26922001-12-21 Robert Collins <rbtcollins@hotmail.com>
2693
2694 * choose.cc (listview_proc): Update the scrollbar when the headers are dragged.
2695 (pick_pkg_line::paint): Clip columns to prevent overlap.
2696
cbfc4215
RC
26972001-12-20 Robert Collins <rbtcollins@hotmail.com>
2698
2699 * Makefile.in: Add libcomctl32.a for setup.exe.
2700 * archive.h (archive): Prevent non-child direct creation of the class.
2701 * archive_tar.h (archive_tar): Prevent inaccurate synthetic copy and assignment.
2702 * choose.cc: Include commctrl for the choose header.
2703 (NEW_COL_SIZE_SLOP): Define without magic numbers.
2704 (pkgtrustp): Convert to function.
2705 (set_action): Remove.
cef493d7 2706 (add_required, fill_missing_category,default_trust): Use list syntax for
cbfc4215
RC
2707 package list.
2708 Use new set_action.
2709 (choose_caption): Remove.
2710 (topbucket::paint): New method.
2711 (topbucket::empty): Ditto.
2712 (topbucket::click): Ditto.
2713 (topbucket::~topbucket): Ditto.
2714 (paint): Remove i,ii and p as they are obsolete.
2715 Remove header drawing code.
2716 Use new chooser method to paint the chooser.
2717 Use new chooser itemcount method.
2718 (scroll_common): Rename to view::scroll.
2719 Scroll the header window separately.
2720 (list_vscroll, list_hscroll, list_click): Update for new chooser methods.
2721 (listview_proc): Look for header messages.
2722 (note_width): Accept stringless calls.
2723 (pick_line::set_line): Remove.
2724 (pick_line::paint): Remove.
2725 (pick_pkg_line::paint): Paint this one line, using the header column widths.
2726 (pick_category_line::paint): Paint this category, and anything in the bucket.
2727 (pick_line::click): Remove.
2728 (pick_pkg_line::click): Handle a click.
2729 (pick_category_line::click): Handle a click.
2730 (_view): Rename all to view.
2731 (view::view): Initialise the control contents.
2732 (view::set_headers): Work with the header control.
2733 (view::init_headers): Use list syntax for package list.
2734 Rearrange the width logic a little.
2735 (view::insert_pkg): Update to use the hierarchy.
2736 (view::insert_category): Ditto.
2737 (view::insert_at, view::insert_under): Remove.
2738 (view::clear_view): Update to use the hierarchy.
2739 (view::click): Update to use the hierarchy.
2740 (set_view_mode): Use list syntax for package list.
2741 Update for new chooser methods.
2742 (DoInsertItem): New helper function. (Needs a home somewhere).
2743 (create_listview): Remove choose control code and use the constructor instead.
2744 (dialog_cmd,scan2,do_choose): Use list syntax for package list.
2745 * choose.h: Include newly required headers list and package_meta.
2746 (_voew): Rename to view.
2747 (pick_line): Convert to an ABC.
2748 (pick_pkg_line): New class.
2749 (pick_catgory_line): New class.
2750 (topbucket): New class.
2751 (view::scroll): New method created from listview_scroll function.
2752 * desktop.cc (make_passwd_group): Use list syntax for package list.
2753 * download.cc (do_download): Use list syntax for package list.
2754 * fromcwd.cc (found_file): Use list syntax for package list.
2755 * iniparse.y (pacakges): Use list syntax for package list.
2756 * install.cc (uninstall_one): Use list syntax for package list.
2757 (do_install): Use list syntax for package list.
2758 * io_stream.h (io_stream): Prevent non-child direct creation of the class.
2759 Prevent inaccurate synthetic copy and assignment.
2760 * list.h: Include required header stdlib.
2761 Work on const correctness.
2762 * package_db.cc (packagedb::getpackagebyname): Remove.
2763 (packagedb::packagedb): Remove custom list code, and make db a local.
2764 (packagedb::getfirstpackage): Remove.
2765 (packagedb::getnextpackage): Remove.
2766 (packagedb::addpackage): Remove.
2767 (flush): Remove custom list code.
2768 (packagedb::registerpackage): Remove.
2769 (packagedb::packages): New static member.
2770 (packagedb::task): New static member.
2771 * package_db.h (PackageDBActions): New enum.
2772 (packagedb): Remove getfirstpackage, getnextpackage, getpackagebyname,
2773 addpackage, registerpackage, packages, packagecount, curr_package, db.
2774 Add packages, task.
2775 * pacakge_meta.cc: Include package_db.h.
2776 (packagemeta::action_caption): New method.
2777 (packagemeta::set_action): New method.
2778 * package_meta.h (CategoryPackage): Initialise key.
2779 (packagemeta): Initialise key.
2780 Add set_action and action_caption methods.
2781 Prevent inaccurate synthetic copy and assignment.
2782 * resource.h (IDC_CHOOSE_LISTHEADER): New ID.
2783 * source.cc: Include package_db for db manipulation.
2784 (save_dialog): Set the db task.
2785 * win32.h: Tell the w32 include headers what IE version to expect/require.
2786
cd8e5750
RC
27872001-12-06 Robert Collins <rbtcollins@hotmail.com>
2788
2789 * README: Wishlist updates.
2790
5519d243
RC
27912001-12-04 Robert Collins <rbtcollins@hotmail.com>
2792
2793 * package_db.cc (getnextpackage): Don't overrun the array.
2794
de6a1a64
RC
27952001-12-04 Robert Collins <rbtcollins@hotmail.com>
2796
2797 * Makefile.in (OBJS): Add setup_version.o.
2798 (version.c): Rename to setup_version.
2799 * choose.cc (set_action): Prevent NULL pointer dereference.
2800 (package_sort): Remove.
2801 * fromcwd.cc (canonicalize_version): Moved to version.cc.
2802 (check_ini): New function for use with find to see if there is a cached setup.ini.
2803 (do_fromcwd): Check for a cached setup.ini from any mirror site.
2804 * ini.cc (find_routine): New function, for finding cached setup.ini's.
2805 (do_local_ini): New function, drives parsing of local ini's.
2806 (do_remote_ini): New function, drives parsing and caching of remote ini's.
2807 (do_ini): Move guts to do_remote_ini and do_local_ini.
2808 * list.h (removebyindex): New method.
2809 * other.cc (save_dialog): Use new site_list and all_site_list to add the
2810 new site to the site picklist.
2811 (dialog_cmd): Only save the dialog when exiting the dialog.
2812 * res.rc (IDD_SITE): Make IDC_URL_LIST a multiple-selection control.
2813 * site.cc (site_list_type): Move to site.h
2814 (site_list): New global, sites chosen by the user.
2815 (all_site_list): New global, all potential sites.
cef493d7 2816 (site_list_type::init): New method, parses a mirror.lst URL string into a
de6a1a64
RC
2817 site_list_type object.
2818 (site_list_type::site_list_type): New method.
2819 (check_if_enable_next): Examine the control, not a local variable.
2820 (load_dialog): Select all the user chosen sites by default.
cef493d7 2821 (save_dialog): Adjust for multiple selection semantics.
de6a1a64 2822 (save_site_url): Save all user chosen sites.
cef493d7 2823 (dialog_cmd): Don't save the dialog when the listbox recieves a message -
de6a1a64
RC
2824 thats not needed.
2825 Remove obsolete other_url reference.
2826 (dialog_proc): Use all_site_list instead of site_list.
2827 (site_sort): Remove.
2828 (get_site_list): Remove malloc use - use list template instead.
2829 Move site_list_type initialisation to site_list_type::init().
2830 (get_initial_list_idx): Renamed to ...
2831 (get_saved_sites): this. Also read in multiple sites to the site_list.
2832 (do_site): Use all_site_list not site_list.
2833 Log all chosen sites.
2834 * site.h: New file, defines site related class, functions and variables.
2835 * state.h: Add comment about use of state.h
2836 (mirror_site): Remove.
2837 (other_url): Remove.
2838 (MIRROR_SITE): Remove.
2839 * version.cc: New file, for version-handling and related functions.
2840
341988b9
RC
28412001-12-02 Robert Collins <rbtcollins@hotmail.com>
2842
2843 * Makefile.in: Add filemanip.o to setup.
2844 * archive.cc (archive::extract_file): Use new io_stream method 'copy'.
2845 * archive_tar.h (archive_tar_file): Implement get_size virtual.
2846 (archive_tar): Ditto.
2847 * choose.cc (set_action): Use [] operator instead of getnth - its more readable.
2848 (paint): Ditto.
2849 (_view::init_headers): Ditto.
2850 (_view::insert_pkg): Ditto.
2851 (set_view_mode): Ditto.
2852 (scan2): Ditto.
2853 (do_choose): Ditto.
2854 (base): Moved to filemanip.cc.
2855 (find_tar_ext): Ditto.
2856 (parse_filename): Ditto.
2857 (_Info::_Info): Remove.
2858 * compress_bz.h (compress_bz): Implement get_size virtual.
2859 * compress_gz.h (compress_gz): Implement get_size virtual.
2860 * cygpackage.cc (cygpackage::destroy): Use array delete for char * objects.
2861 * download.cc (get_file_size): Move to filemanip.cc.
2862 (check_for_cached): Use [] operator instead of getnth - its more readable.
2863 (download_one): Ditto.
2864 * filemanip.cc: New file.
2865 * geturl.cc (init_dialog): Make url a pointer to const as it is not modified.
2866 (get_url_to_membuf): New function - contains get_url_to_string worker code.
2867 (get_url_to_string): Becomes a trivial wrapper to get_url_to_membuf.
2868 * geturl.h: Declare new prototype.
2869 * ini.cc (do_ini): Use get_url_to_membuf and pass ini_init an io_stream.
2870 Tidy up the error code a little.
2871 * ini.h: Remove __cplusplus protection for ini_init.
2872 (_Info): Remove.
2873 * inilex.l: Remove old globals.
2874 (ini_init): Use an io_stream for getting the characters.
2875 (ini_getchar): Ditto.
2876 * iniparse.y: Declare yylex as a C++ function.
2877 (add_correct_version): Use [] operator instead of getnth - its more readable.
2878 * io_stream.cc (io_stream::move_copy): Use the copy method.
2879 (io_stream::copy): New method to simply copy from one stream to another.
2880 * io_stream.h (io_stream): New static method copy, and virtual method get_size.
2881 * io_stream_cygfile.cc (io_stream_cygfile::get_size): Implement this.
2882 * io_stream_cygfile.h (io_stream_cygfile::get_size): Declare this.
2883 * io_stream_file.cc (io_stream_file::get_size): Implement this.
2884 * io_stream_file.h (io_stream_file::get_size): Declare this.
2885 * io_stream_memory.h: Include errno as it's neded to parse the header.
2886 (io_stream_memory::get_size): Implement this.
2887 (io_stream_memory::st_size): Delete this.
2888 * list.h: Change getnth into the [] operator.
2889 * netio.cc (NetIO::NetIO): Change prototype to reflect Purl not being modified.
2890 (NetIO::set_url): Ditto.
2891 (NetIO::open): Ditto.
2892 * netio.h: As for netio.cc.
2893 * nio-file.cc (NetIO_File::NetIO_File): Change prototype to reflect Purl not
2894 being modified.
2895 * nio-file.h: Ditto.
2896 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
2897 * nio-ftp.h (NetIO_FTP::NetIO_FTP): Ditto.
2898 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Ditto.
2899 * nio-http.h (NetIO_HTTP::NetIO_HTTP): Ditto.
2900 * nio-i5.cc (NetIO_IE5::NetIO_IE5): Ditto.
2901 * nio-i5.h (NetIO_IE5::NetIO_IE5): Ditto.
2902 * package_meta.cc (packagemeta::~packagemeta): Bugfix: use array delete.
2903 * package_source.cc (packagesource::set_canonical): Ditto.
2904 (packagesource::set_cached): Ditto.
2905 * package_source.h (site::~site): Ditto.
cef493d7 2906 * site.cc: Change site_list_type to a class, and search and replace sort_key to
341988b9
RC
2907 key globally.
2908
071c1c54
RC
29092001-12-01 Robert Collins <rbtcollins@hotmail.com>
2910
2911 * package_source.cc (packagesource::set_canonical): Filename was out by one.
2912
4fe323f9
RC
29132001-11-30 Robert Collins <rbtcollins@hotmail.com>
2914
2915 * Makefile.in (OBJS): Remove category_list - it's not needed.
2916 * README: More wishlist updates.
2917 * category.cc (Category::Category): Initialise new members.
2918 (Categorycmp): New function.
2919 * category.h (Category): New member key for template use.
2920 * category_list.cc: Remove.
2921 * category_list.h: Remove.
2922 (Categorycmp): New function prototype.
2923 * choose.cc: Remove category_list - not needed.
cef493d7 2924 (set_action): Only show the 'source' option when the source is actually
4fe323f9
RC
2925 available.
2926 (add_required): Fix recursion limiter to 5.
2927 (fill_missing_category): Use list access.
2928 (default_trust): Ditto.
2929 (pick_line::paint): Ditto.
2930 (_view::init_headers): Ditto.
2931 (_view::insert_pkg): Ditto.
2932 (_view::insert_category): Ditto.
2933 (_view::click): Ditto.
2934 (set_view_mode): Ditto.
2935 (do_choose): Ditto.
2936 * cygpackage.h: Remove category_list - not needed.
2937 * geturl.cc (get_url_to_string): Fix null byte insertion.
2938 * inipatse.y: Remove category_list - not needed.
2939 (categories): Use list access.
2940 * package_db.cc: Ditto.
2941 * package_db.h: Remove category_list - not needed.
2942 (packagedb): Use the list template for categories.
2943 * package_meta.cc (add_category): Ditto.
2944 * package_meta.h (CategoryPackage): Link to the category as well.
cef493d7 2945 (packagemeta): Use a list of CategoryPackages instead of Categories
4fe323f9
RC
2946 for more memory efficient cross-referencing.
2947
7d66d192
RC
29482001-11-30 Robert Collins <rbtcollins@hotmail.com>
2949
2950 * package_db.cc (packagedb::flush): Write a canonical version for all packages
2951 irrespective of the media they were installed from.
2952
bb849dbd
RC
29532001-11-29 Robert Collins <rbtcollins@hotmail.com>
2954
2955 * Makefile.in (OBJS): Add package_source and rfc1738.
2956 * README: Wishlist update.
2957 * category_list.cc (register_category): Use references.
2958 * category_list.h (CategoryList): Ditto.
2959 * choose.cc (isinstalled): Remove.
2960 (pkgtrustp): New macro.
2961 (set_action): Use packagemeta.
2962 (add_required): Ditto.
2963 (choose_caption): Example package to choose caption, rather than state flags.
2964 (check_existence): Remove.
2965 (set_existence): Remove old code.
2966 (fill_missing_category): Use packagemeta.
2967 (keep_or_skip): Remove.
2968 (default_trust): Use packagemeta and set trust values directly.
2969 (pick_line::set_line): Use packagemeta.
2970 (_view::insert_pkg): Ditto.
2971 (_view::insert_category): Ditto.
2972 (_view::click): Ditto.
2973 (set_view_mode): Ditto. Also remove "exclude" code.
2974 (create_listview): Use packagemeta.
2975 (dialog_cmd): Ditto.
2976 (getpkgbyname): Remove
2977 (scan2): Use packagemeta. Temporarily comment out the holefinding code.
2978 (read_installed_db): Remove.
2979 (package_sort): Use packagemeta.
2980 (do_choose): Use packagemeta. Don't sort the packages - the db does that.
2981 * choose.h: Use packagemeta.
2982 * cygpackage.cc (cygpackage::cygpackage): Initialise all variables.
2983 (cygpackage::cygpackage): Ditto.
2984 (cygpackage::set_canonical_version): Copy the passed string.
2985 (cygpackage::~cygpackage): Move cleanup code to destroy().
2986 (cygpackage::destroy): New function.
2987 (cygpackage::getfirstfile): Use a separate buffer.
2988 (cygpackage::getnextfile): Ditto.
2989 (cygpackage::Canonical_version): New function.
2990 (cygpackage::set_sdesc): Ditto.
2991 (cygpackage::set_ldesc): Ditto.
2992 * cygpackage.h (cygpackage::Canonical_version): New method.
2993 (cygpackage::set_sdesc): New method.
2994 (cygpackage::set_ldesc): New method.
2995 (cygpackage::SDesc): New method.
2996 (cygpackage::LDesc): New method.
2997 (cygpackage::set_canonical_version): New method.
2998 * desktop.cc: Include packagedb headers.
2999 (make_password_group): Use packagemeta.
3000 * download.cc: Include packagedb headers.
3001 (check_for_cached): New method to find any cached file and fill out the database
3002 info.
3003 (download_one): Take a packagesource, support multiple mirrors.
3004 (do_download): Use packagemeta.
3005 * from cwd.cc: Include packagedb headers.
3006 (found_file): Use packagemeta.
3007 * ini.cc (do_ini): Beginning of multiple-mirror support.
3008 * ini.h (CategoryPackage): Remove.
3009 (Dependency): Remove.
3010 (Package): Remove.
3011 (new_package,getpkgbyname,getpackagecategorybyname,add_category): Remove.
3012 * inilex.l: Support multiple mirrors.
3013 * iniparse.y: Include packagedb headers.
3014 (parser): Use packagemeta.
3015 (new_package): Remove.
3016 (add_correct_version): New function.
3017 (new_requirement): Remove.
3018 (add_category): Remove.
3019 * install.cc (uninstall_one): Use packagemeta.
3020 (install_one_source): New function.
3021 (install_one): Use packagemeta.
3022 (do_install): Use packagemeta.
3023 * io_stream.cc (io_stream::move): Bugfix on move/copy case.
3024 * io_stream_cygfile.cc (io-stream_cygfile::set_mtime): Do not reopen the file
3025 after setting the mtime, it makes no sense, and results in 0 length files.
3026 * io_stream_file.cc (io-stream_file::set_mtime): Ditto.
3027 * list.h: New file, template class for a form of list.
3028 * package_db.cc (packagedb::registerpackage): New function.
3029 * package_db.h (packagedb::npackages ()): New method.
3030 * package_meta.cc (packagemeta::add_version): Use list template.
3031 (packagemeta::set_installed): Ditto.
3032 (packagemeta::add_category): New method.
3033 * package_meta.h: Include necessary headers to parse the class.
3034 (CategoryPackage): New class.
3035 (packagemeta): Initialise all members.
3036 (packagemeta::SDesc): New method.
3037 (packagemeta::Categories): New method.
3038 (packagemeta::add_category): Ditto.
3039 (packagemeta::versions): Change to be a list instance.
3040 * package_source.cc (packagesource::set_canonical): New method.
3041 (packagesource::set_cached): New method.
3042 * package_source.h: Include necessary headers to parse the class.
3043 (site): New class.
3044 (packagesource::packagesource): Initialize all members.
3045 (packagesource): Make this class non-abstract.
3046 * package_version.cc (packageversion::packageversion): New method.
3047 * package_version.h (Dependency): New class.
3048 (packageversion::Canonical_vesion): New method.
3049 (packageversion::SDesc): New method.
3050 (packageversion::LDesc): New method.
3051 (packageversion::new_requirement): Ditto.
3052 (packageversion::srcpicked, binpicked): What to install.
3053 (packageversion::src, bin): Installation source data.
3054 * rfc1738.cc: New file. Escapes special characters in URL's.
3055 * rfc1738.h: Ditto.
3056
90d14922
RC
30572001-11-26 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3058
3059 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Stop header parsing when
3060 SimpleSocket::gets() returns a zero-length string, so that we
3061 don't end up eating the entire stream thinking it's all header info.
3062
7c7034e8
RC
30632001-11-23 Robert Collins <rbtcollins@hotmail.com>
3064
3065 * install.cc (badrename): Remove.
3066 (do_install): Use packagedb flush method to write /etc/setup/installed.db.
3067 * io_stream.cc (io_stream::move_copy): New method.
3068 (io_stream::move): New method.
3069 * io_stream.h (io_stream): New methods move and move_copy.
3070 * io_stream_cygfile.cc (io_stream_cygfile::move): New method.
3071 * io_stream_cygfile.h (io_stream_cygfile): New method move.
3072 * io_stream_file.cc (io_stream_file::move): New method.
3073 * io_stream_file.h (io_stream_file): New method move.
3074 * package_db.cc (packagedb::flush): New method.
3075 * package_db.h (packagedb): New method flush.
3076
fa0c0d10
RC
30772001-11-23 Robert Collins <rbtcollins@hotmail.com>
3078
3079 * Makefile.in (OBJS): Add package_version.
3080 * ategory.cc (Category::Category): Update constructors.
3081 * category_list.cc (CategoryList::register_category): Insert correctly.
3082 * choose.cc: Include package_version.h, not package.h.
3083 * cygpackage.cc: Ditto.
3084 (cygpackage::uninstall): New method.
3085 * cygpackage.h (cygpackage): Rename genericpackage to packageversion.
3086 New method uninstall.
3087 * hash.cc (add, has, enumerate): Change prototype to be accurate.
3088 * hash.h (hash): Change prototypes to be accurate.
3089 * ini.h (_Info): New parameterless constructor.
3090 (CategoryPackage): New constructor.
3091 (Package): Ditto.
3092 * install.cc: Don't include unneeded headers.
3093 Include package database headers.
3094 (hash::add_subdirs): Remove.
3095 (uninstall_one): Use packagemeta->uninstall to perform the uninstallation.
3096 Don't uninstall source packages.
3097 (do_install): Just can uninstall_one once as we ignore source packages now.
cef493d7 3098 Don't copy the installed.old database accross, instead iterate through the
fa0c0d10
RC
3099 packagedb packages list and write the isntalled packages out.
3100 * package_db.cc: Include package_version.h, not package.h.
3101 (packagedb::packagedb): Never let db be undefined.
3102 Record the installation filename, so we can reconstruct installed.db.
3103 (packagedb::addpackage): Insert packages in alpha sorted order.
3104 (packagedb::categories): Initialise correctly.
3105 * package_meta.cc: Include win32 and mount headers as a workaround to
3106 current io_stream limitations. Include a TODO about that.
3107 (standard_dirs): New, from install.cc.
3108 (hash::add_subdirs): New, from install.cc.
3109 (packagemeta::set_installed): Rename genericpackage to packageversion.
3110 (packagemeta::uninstall): New method.
3111 * package_meta.h: Rename genericpackage to packageversion.
3112 (packagemeta): Update constructor.
3113 (add_version, set_installed): Rename genericpackage to packageversion.
3114 (uninstall): New method.
3115 (installed_from): New member.
3116 * package_source.cc: New file.
3117 * package_source.h: New file.
3118 * package_version.cc: New file.
3119 * package_version.h: New file.
3120 * package.cc: Removed.
3121 * package.h: Removed.
cef493d7 3122
7b606ae5
RC
31232001-11-21 Robert Collins <rbtcollins@hotmail.com>
3124
3125 * Makefile.in (OBJS): Add category.o and category_list.o.
3126 * category.h: New file.
3127 * category.cc: New file.
3128 * category_list.h: New file.
3129 * category_list.cc: New file.
3130 * choose.cc: Include category headers.
3131 (fill_missing_category): Use package_db to access global categories.
3132 (_view::insert_pkg): Ditto.
3133 (_view::insert_category): Ditto.
3134 (set_view_mode): Ditto.
3135 (getcategorybyname): Remove.
3136 * cygpackage.h: Include category_list.h to parse this correctly.
3137 (cygpackage): New virtual &Categories.
3138 * ini.h (_CategoryPackage): More C to C++ conversion.
3139 (Category): Remove.
3140 (getcategorybyname): Remove.
3141 (register_category): Remove.
3142 * iniparse.y: Include package db and category headers.
3143 (categories): Use package_db to access global categories.
3144 (category): Remove.
3145 (ncategories): Remove.
3146 (register_category): Remove.
3147 * package.h: New virtual &Categories.
3148 * package_db.cc (packagedb::packagedb): Don't read the installed db twice.
3149 (packagedb::categories): Declare.
3150 * package_db.h (packagedb): New member categories for global categories list.
3151
d0fa1c4e
RC
31522001-11-21 Robert Collins <rbtcollins@hotmail.com>
3153
3154 * choose.h: Don't include ini.h
3155 * ini.h: Allow pure c++ in the header file.
3156
24cbae7f
RC
31572001-11-21 Robert Collins <rbtcollins@hotmail.com>
3158
3159 * install.cc (do_install): Write a version 2 installed.db file.
3160 * package_db.cc (packagedb::packagedb): Read version 1 and 2 installed.db files.
3161
7939f6d1
RC
31622001-11-21 Robert Collins <rbtcollins@hotmail.com>
3163
3164 * Makefile.in (OBJS): Add package abstraction objects.
3165 * choose.cc: Include package abstraction headers.
3166 (read_installed_db): Use packagedb class and ignore installed sources.
3167 * cygpackage.cc: New file.
3168 * cygpackage.h: New file.
3169 * filemanip.h (get_file_size): Use unixy types.
3170 * package.h: New file.
3171 * package.cc: New file.
3172 * package_db.cc: New file.
3173 * package_db.h: New file.
3174 * package_meta.cc: New file.
3175 * package_meta.h: New file.
3176
33bc0053
RC
31772001-11-21 Robert Collins <rbtcollins@hotmail.com>
3178
3179 * REAME: Updates to wishlist.
3180
12ccadc0
RC
31812001-11-16 Robert Collins <rbtcollins@hotmail.com>
3182
3183 * README: Updated and added my list of wishlist and todo items.
3184
ca9506cc
RC
31852001-11-14 Robert Collins <rbtcollins@hotmail.com>
3186
3187 * Makefile.in (OBJS): Include io_stream_memory in setup.exe.
3188 * archive_tar.cc (archive_tar::write): New prototype.
3189 (archive_tar::seek): New method.
3190 * archive.h (archive_tar_file): Update write() and add seek().
3191 (archive_tar): Ditto.
3192 * archive_tar_file.cc (archive_tar_file::write): New prototype.
3193 (archive_tar_file::seek): New method.
3194 * compress_bz.cc (compress_bz::write): New prototype.
3195 (compress_bz::seek): New function.
3196 * compress_bz.h (compress_bz): Update write() and add seek().
3197 * compress_gz.cc (compress_gz::write): New prototype.
3198 (compress_gz::seek): New function.
3199 * compress_gz.h (compress_gz): Update write() and add seek().
3200 * geturl.cc: Include io_stream headers.
3201 (GUBuf): Remove.
3202 (get_url_to_string): Use a io_stream_memory buffer instead of GUBuf.
3203 * io_stream.h (io_stream_seek_t): New enum.
3204 (io_stream): Update write() and add seek().
3205 * io_stream_cygfile.cc (io_stream_cygfile::write): New prototype.
3206 (io_stream_cygfile::seek): New function.
3207 * io_stream_cygfile.h (io_stream_cygfile): Update write() and add seek().
3208 * io_stream_file.cc (io_stream_file::write): New prototype.
3209 (io_stream_file::seek): New function.
3210 * io_stream_file.h (io_stream_file): Update write() and add seek().
3211
2db33f10
RC
32122001-11-13 Brian Keener <bkeener@thesoftwaresource.com>
3213
3214 * localdir.cc: Add headers unistd.h and port.h.
cef493d7 3215 (save_local_dir): Expand search logic to include local directory for
2db33f10
RC
3216 location of file last-cache.
3217 (dialog_cmd): Skip IDD_ROOT when downloading and use Back button.
cef493d7 3218 (do_local_dir): Expand search logic to include local directory for file
2db33f10
RC
3219 last-cache.
3220 * res.rc (IDD_CHOOSE_DIALOG): Add hotkey to View button.
cef493d7 3221 * Source.cc (dialog_cmd): Skip IDD_ROOT if select Download from
2db33f10 3222 Internet.
cef493d7 3223 (do_source): Default to Install from Internet on first entry or
2db33f10
RC
3224 previous selection if backing up from IDD_ROOT or IDD_LOCAL_DIR.
3225
03a6c5b1
RC
32262001-11-13 Robert Collins <rbtcollins@hotmail.com>
3227
3228 * choose.cc (find_tar_ext): Only match at the end of the string.
3229 (getpkgbyname): Prevent NULL pointer dereference.
3230
b24c88b3
RC
32312001-11-13 Robert Collins <rbtcollins@hotmail.com>
3232
3233 * Makefile.in (CFLAGS): Add warnings and -Werr.
3234 (WARNONLY_FLAGS): For sources that produce (harmless) errors no matter what.
3235 (OBJS): Add io_stream class' objects.
3236 (autoload.o): Use WARNONLY_FLAGS.
3237 (inilex.o): Ditto.
3238 (iniparse.o): Ditto.
3239 * archive.cc: New file.
3240 * archive.h: New file.
3241 * archive_tar.cc: New file.
3242 * archive_tar.h: New file.
3243 * archive_tar_file.cc: New file.
3244 * autoload.c: Fix compiler warnings (unused, deprecated conversion).
3245 * choose.cc: Use io_stream.h, not mount.h.
3246 Run indent.
3247 (find_tar_ext): Rewritten to use strstr, and to accept .tar as an extension.
3248 (read_installed_db): Use io_streams.
3249 * choose.h: Run indent.
3250 * compress.cc: New file.
3251 * compress.h: New file.
3252 * compress_bz.cc: New file.
3253 * compress_bz.h: New file.
3254 * compress_gz.cc: New file.
3255 * compress_gz.h: New file.
3256 * concat.cc: Run indent.
3257 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3258 * concat.h: Run indent.
3259 * desktop.cc: Run indent.
3260 Include mklink2.h rather than redefining by hand.
3261 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3262 (etc_profile): Fix compiler warning (deprecated conversion).
3263 (make_link): Fix compiler warning (deprecated conversion).
3264 Tidy up use of args variable - consolidate into argbuf.
3265 (start_menu): Fix compiler warning (deprecated conversion).
3266 (desktop_icon): Fix compiler warning (deprecated conversion).
3267 (make_etc_profile): Fix compiler warning (deprecated conversion).
3268 (uexists): Fix compiler warning (deprecated conversion).
3269 (check_desktop): Fix compiler warning (deprecated conversion).
3270 (check_startmenu): Fix compiler warning (deprecated conversion).
3271 * dialog.cc: Run indent.
3272 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3273 (fatal): Fix compiler warning (deprecated conversion).
3274 * dialog.h: Run indent.
3275 * diskfull.cc: Run indent.
3276 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3277 * download.cc: Run indent.
3278 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3279 (download_one): Fix compiler warning (signed vs unsigned comparison).
3280 * filemanip.h: Run indent.
3281 * find.cc: Run indent.
3282 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3283 (find): Fix compiler warning (deprecated conversion).
3284 * find.h: Run indent.
3285 * fromcwd.cc: Run indent.
3286 * geturl.cc: Run indent.
3287 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3288 (dialog_cmd): Return a value.
3289 (dialog_proc): Remove unused variables.
3290 Return a value.
3291 (get_url_to_file): Fix compiler warning (deprecated conversion).
3292 * geturl.h: Run indent.
3293 * hash.cc: Run indent.
3294 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3295 * hash.h: Run indent.
3296 * ini.cc: Run indent.
3297 Use io_streams.
3298 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3299 (do_ini): Use io_streams for local io.
3300 * ini.h: Run indent.
3301 * inilex.l (ignore_line): Fix compiler warning (is not a prototype).
3302 Fix compiler warning (brackets for truth assignment).
3303 * install.cc: Run indent.
3304 Fix compiler warning (/* in comment).
3305 Use io_streams.
3306 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3307 (dialog_cmd): Return a value.
3308 (dialog_proc): Return a value.
3309 (start_tics): Deleted - was unused.
3310 (badrename): Fix compiler warnings (unused, deprecated conversion).
3311 (standard_dirs): Fix compiler warning (deprecated conversion).
3312 (exists): Remove.
3313 (uninstall_one): Convert to io_streams.
3314 (install_one): Convert to io_streams.
3315 (do_install): Convert to io_streans.
3316 Fix compiler warning (deprecated conversion).
3317 * io_stream.cc: New file.
3318 * io_stream.h: New file.
3319 * io_stream_cygfile.cc: New file.
3320 * io_stream_cygfile.h: New file.
3321 * io_stream_file.cc: New file.
3322 * io_stream_file.h: New file.
3323 * localdir.cc: Run indent.
3324 Use io_streams.
3325 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3326 (get_root_dir_now): Remove.
3327 (save_local_dir): Convert to io_streams.
3328 (dialog_cmd): Return a value.
3329 (do_local_dir): Convert to io_streams.
3330 (log.cc): Run indent.
3331 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3332 (log): Fix compiler warning (deprecated conversion).
3333 (log_save): Fix compiler warning (deprecated conversion).
3334 * log.h: Run indent.
3335 (log): Fix compiler warning (deprecated conversion).
3336 (log_save): Fix compiler warning (deprecated conversion).
3337 * main.cc: Run indent.
3338 Don't include "netio.h".
3339 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3340 (netio_test): Remove.
3341 (sid_auth): Fix compiler warning (partially bracketed initialiser).
3342 (WinMain): Return a value.
3343 * mkdir.cc: Run indent.
3344 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3345 * mklink2.c: Run indent.
3346 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3347 (mkcygsymlink): New function.
3348 * mklink2.h: New file.
3349 * mount.cc: Run indent.
3350 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3351 (create_mount): Remove unused variables.
3352 (cygpath): Fix compiler warning (signed vs unsigned comparison).
3353 * mount.h: Run indent.
3354 * msg.cc: Run indent.
3355 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3356 (msg): Fix compiler warning (deprecated conversion).
3357 (mbox): Fix compiler warning (deprecated conversion).
3358 * msg.h: Run indent.
3359 (msg): Fix compiler warning (deprecated conversion).
3360 * net.cc: Run indent.
3361 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3362 (dialog_cmd): Return a value.
3363 * netio.cc: Run indent.
3364 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3365 (auth_cmd): Return a value.
3366 * netio.h: Run indent.
3367 * nio-file.cc: Run indent.
3368 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3369 (NetIO_File::NetIO_File): Fix compiler warning (deprecated conversion).
3370 * nio-file.h: Run indent.
3371 * nio-ftp.cc: Run indent.
3372 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3373 * nio-ftp.h: Run indent.
3374 * nio-http.cc: Run indent.
3375 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3376 * nio-http.h: Run indent.
3377 * nio-ie5.cc: Run indent.
3378 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3379 * nio-ie5.h: Run indent.
3380 * other.cc: Run indent.
3381 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3382 (dialog_cmd): Return a value.
3383 * port.h: Run indent.
3384 * postinstall.cc: Run indent.
3385 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3386 (cmd): Fix compiler warning (deprecated conversion).
3387 (eun): Fix compiler warning (deprecated conversion).
3388 * root.cc: Run indent.
3389 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3390 * simpsock.cc: Run indent.
3391 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3392 * simpsock.h: Run indent.
3393 * site.cc: Run indent.
3394 Use io_streams.
3395 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3396 (get_root_dir_now): Remove.
3397 (save_site_url): Convert to io_streams.
3398 (dialog_cmd): Return 0.
3399 (get_initial_list_idx): Convert to io_streans.
3400 * source.cc: Run indent.
3401 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3402 (check_if_enable_next): Remove.
3403 (load_dialog): Remove unused variables.
3404 (save_dialog): Ditto.
3405 (dialog_cmd): Return a value.
3406 * splash.cc: Return a value.
3407 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3408 (dialog_cmd): Return a value.
3409 * state.cc: Run indent.
3410 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3411 * state.h: Run indent.
3412 * tar.h: Remove.
3413 * tar.cc: Remove.
3414
398dd7b2
CF
34152001-11-12 Christopher Faylor <cgf@redhat.com>
3416
3417 * desktop.cc (start_menu): Change start menu name to "Cygwin".
3418 (check_startmenu): Ditto.
3419
c29ee141
CF
34202001-11-11 Christopher Faylor <cgf@redhat.com>
3421
3422 * choose.cc (parse_filename): Finish reorganization by correctly
3423 decrementing p in memmove.
3424
3a8276de
CF
34252001-11-11 Christopher Faylor <cgf@redhat.com>
3426
3427 * choose.cc (parse_filename): Reorganize code to work around gcc
3428 optimization problem.
3429
6eea52fb
RC
34302001-11-09 Gareth Pearce <tilps@hotmail.com>
3431
3432 * choose.cc (set_action): Allow skip as an option for installed
3433 packages that have version number not listed in setup.ini.
3434
cf99b153
RC
34352001-11-10 Robert Collins <rbtcollins@hotmail.com>
3436
3437 * choose.cc (set_cation): Backout last change.
3438 (choose_caption): Ditto.
3439
55e204f6
RC
34402001-11-10 Robert Collins <rbtcollins@hotmail.com>
3441
3442 * ini.h (actions): Remove - transferred to choose.h.
3443 (views): Ditto.
3444 * choose.h: Protect class's from "C" compilers.
3445 (actions): New enum, from ini.h. This may not be the 'right' place
3446 but that place doesn't exist yet.
3447 (_views): New enum, from ini.h.
cef493d7 3448 * choose.cc (set_action): Handle installed packages with a version not in
55e204f6
RC
3449 setup.ini.
3450 (choose_caption): Ditto.
3451 * iniparse.y: Rearrange header order to handle new ini.h.
3452
34532001-11-10 Robert Collins <rbtcollins@hotmail.com>
3454
3455 * ini.h (_Info): Fix compiler warnings (signed vs unsigned comparison).
3456 (registry_category): Fix compiler warning (deprecated conversion).
3457 * iniparse.y (registry_category): Ditto.
3458 * choose.cc (cvsid): Fix compiler warnings (unused, deprecated conversion).
3459 (add_requried): Remove unused variable.
3460 (choose_caption): Handle all enumeration values via a default.
3461 (paint): Fix compiler warnings (unused, deprecated conversion).
3462 (scroll_common): Fix compiler warnings (unused, signed vs unsigned comparison).
3463 (list_clicK): Fix compiler warnings (signed vs unsigned comparison).
3464 (note_width): Fix compiler warnings (deprecated conversion).
3465 (keep_or_skip): Fix compiler warnings (unused).
3466 (_view::mode_caption): Fix compiler warnings (deprecated conversion).
3467 (set_view_mode): Fix compiler warnings (unused).
3468 (create_listview): Fix compiler warnings (unused, incorrect format, reaches
3469 end of function).
3470 (dialog_proc): Fix compiler warnings (unused).
3471 (read_installed_db): Fix compiler warnings (unused, deprecated conversion).
3472 * choose.h (_header): Fix compiler warnings (deprecated conversion).
3473 (_view): Ditto.
3474
67a55ad9 34752001-11-08 Pavel Tsekov <ptsekov@syntrex.com>
cef493d7 3476
67a55ad9
RC
3477 * simpsock.h (SimpleSocket::invalidate): Declare new method.
3478 * simpsock.cc (SimpleSocket::invalidate): Implement new method.
3479 (SimpleSocket::SimpleSocket): Initialize buf to zero. Do not allocate
3480 memory for buf in the constructor.
3481 (SimpleSocket::~SimpleSocket): Use SimpleSocket::invalidate().
3482 (SimpleSocket::printf): Use SimpleSocket::write() instead of send().
3483 (SimpleSocket::write): Check object consistency - return -1 on error.
3484 invalidate() the object on socket write error.
3485 (SimpleSocket::fill): Check object consistency - return -1 on error.
3486 invalidate() the object if socket read error is encountered and there
3487 is no more data available in the internal read buffer.
3488 Allocate memory for the internal read buffer.
3489 (SimpleSocket::gets): Return zero (NULL pointer) if error is encountered
3490 during fill() and no more data is available in the internal read buffer.
3491 (SimpleSocket::read): Check object consistency - return -1 on error.
3492 invalidate() the object if socket read error is encountered.
3493 * nio-ftp.cc (NetIO_FTP:NetIO_FTP): Allow 125 as valid response code to
3494 the RETR command (fix for MS IIS ftp server 5 - possibly others too).
3495 (NetIO_FTP::ok): Check if the SimpleSocket object is ok().
3496 (NetIO_FTP::read): Use NetIO_FTP::ok().
3497 * nio-http.cc: Check for valid return value of SimpleSocket::gets().
3498 (NetIO_HTTP::ok): Check if the SimpleSocket object is ok().
3499
5898e300
RC
35002001-11-09 Robert Collins <rbtcollins@hotmail.com>
3501
3502 * simpsock.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3503 (SimpleSocket::SimpleSocket): Avoid compiler warnings (deprecated conversion).
3504 (SimpleSocket::printf): Ditto.
3505 (SimpleSocket::write): Ditto.
3506 * simpsock.h (SimpleSocket): Avoid compiler warnings for constructor,
3507 printf and write.
3508 * nio-ftp.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3509 (NetIO_FTP::NetIO_FTP): Remove unused variable done.
3510 * nio-http.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3511
8e58f8fd
RC
35122001-11-07 Charles Wilson <cwilson@ece.gatech.edu>
3513
3514 * geturl.cc (get_url_to_string): clean up memory leak
3515 (get_url_to_file): ditto
cef493d7 3516
4b4002ab
RC
35172001-11-06 Robert Collins <rbtcollins@hotmail.com>
3518
3519 * localdir.cc (dialog_cmd): Go back to IDD_ROOT in every case.
3520 * source.cc (dialog_cmd): Go forward to IDD_ROOT in every case.
3521
94525fd9
RC
35222001-11-06 Pavel Tsekov <ptsekov@syntrex.com>
3523
3524 * fromcwd.cc (found_file): Free() memory containing the version and
3525 filepath information for a given package, before replacing the pointers which
3526 reference this memory.
3527
35282001-11-06 Robert Collins <rbtcollins@hotmail.com>
ca83c665
RC
3529
3530 * fromcwd: Fix compiler warnings for cvsid.
3531 (canonicalize_version): Fix compilter warnings.
3532 (do_fromcwd): Ditto.
3533 * version.h: Fix compiler warnings for canonicalize_version.
3534
ce1f9ec2
RC
35352001-11-03 Robert Collins <rbtcollins@hotmail.com>
3536
3537 * res.rc (IDD_CHOOSE): Move the view caption to the right hand side.
3538
89d82ec7
RC
35392001-11-02 Robert Collins <rbtcollins@hotmail.com>
3540
3541 * res.rc (IDD_CHOOSE): Tweak for use on a 640x480 screen.
3542
c8fea72a
RC
35432001-11-02 Robert Collins <rbtcollins@hotmail.com>
3544
8114d309
RC
3545 * choose.cc (set_action): Correctly allow skip for any uninstalled package.
3546
35472001-11-02 Robert Collins <rbtcollins@hotmail.com>
3548
cef493d7 3549 * choose.cc (default_trust): Change the "Required" forced install category to
8114d309 3550 "Base".
c8fea72a 3551
f557695e
RC
35522001-11-02 Robert Collins <rbtcollins@hotmail.com>
3553
3554 * choose.cc: Ran indent.
3555 (set_action): When the requested trust level is missing and the level was not
3556 user requested, set the action to ACTION_SAME_CURR.
3557
9a60dafc
CF
35582001-11-01 Christopher Faylor <cgf@redhat.com>
3559
cef493d7 3560 * Makefile.in (mingw_getopt.o): Fix typo in non-verbose compilation.
f557695e
RC
3561
35622001-11-02 Robert Collins <rbtcollins@hotmail.com>
3563
3564 * choose.cc (_view::init_headers): Resync with the paint logic.
9a60dafc 3565
878faffd
RC
35662001-11-02 Robert Collins <rbtcollins@hotmail.com>
3567
cef493d7 3568 * choose.cc (add_required): Allow SKIP and SRC_ONLY for currently installed
878faffd
RC
3569 packages.
3570
05bfdf26
RC
35712001-11-02 Robert Collins <rbtcollins@hotmail.com>
3572
3573 * choose.cc (default_trust): Autoset currently installed packages per the user's
3574 selection of prev/curr/exp.
3575
0b9af00c
RC
35762001-11-02 Robert Collins <rbtcollins@hotmail.com>
3577
3578 * splash.cc (dialog_proc): Return TRUE as specified in the WIN32 API.
3579
7cefe128
RC
35802001-11-02 Pavel Tsekov <ptsekov@syntrex.com>
3581
3582 * geturl.cc (is_showing): Remove.
3583 (is_local_install): New static variable. Controls whether the
3584 progress dialog and the supporting thread will be created.
3585 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the WIN32 API.
3586 (init_dialog): Remove usage of SetForegroundWindow and is_showing.
cef493d7 3587 This prevents the progress dialog to gain control over the
7cefe128
RC
3588 application and fixes the "setup.exe going to background" problem.
3589 (progress): Use is_local_install.
3590 (get_url_to_string): Set is_local_install.
3591 (dismiss_url_status_dialog): Use is_local_install.
3592 * install.cc (dialog_proc): Return TRUE as specified in WIN32 API.
3593 (init_dialog): Remove usage of SetForegroundWindow.
cef493d7 3594 This prevents the progress dialog to gain control over the
7cefe128
RC
3595 application and fixes the "setup.exe going to background" problem.
3596
42a99ed1
RC
35972001-11-02 Robert Collins <rbtcollins@hotmail.com>
3598
3599 * choose.cc (list_click): Change r to row for clarity.
3600 When we shrink the list below 1 page, scroll to the top of the list.
3601 (_view::click): Return the actual change for contractions.
3602 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the Win32 API.
3603
45c2d7d3
RC
36042001-11-02 Robert Collins <rbtcollins@hotmail.com>
3605
3606 * choose.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
3607 * localdir.cc: Ran indent.
3608 (get_root_dir_now): New function.
3609 (save_local_dir): New function.
3610 (dialog_cmd): Use it and swap cygwin root selection and local dir selection order.
3611 (do_local_dir): If there is a saved local dir, read it in.
3612 * net.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
3613 * root.cc (dialog_cmd): Ditto.
3614 * source.cc (dialog_cmd): Ditto.
3615
2399c54d
RC
36162001-11-01 Robert Collins <rbtcollins@hotmail.com>
3617
3618 * choose.cc(list_vscroll): Return 0 as required by win32.
3619 (list_hscroll): Ditto.
3620 (list_click): Ditto.
3621
8e4402a9
RC
36222001-11-01 Robert Collins <rbtcollins@hotmail.com>
3623
3624 * argv.cc: Remove.
3625 * argv.h: Remove.
3626 * main.cc(WinMain): Use __argv to retrieve command line parameters.
3627 * Makefile,in: Remove argv.o.
3628
c168185f
RC
36292001-11-01 Matt Hargett <matt@use.net>
3630
cef493d7
CF
3631 * geturl.cc (progress): Change int to unsigned int to eliminate
3632 lint warnings.
3633 * (get_url_to_string): Check for NULL pointer.
3634 * mount.cc (find2): Use free instead of delete for malloc'd
3635 memory.
3636 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Fix memory leak.
c168185f 3637
f97a1ece
RC
36382001-10-31 Robert Collins <rbtcollins@hotmail.com>
3639
3640 * choose.cc(_view::insert_under): Handle linen > nlines and lines[linen] with neither
3641 a package nor a category. The lines[linen] bug was reported by Matt (matt@usa.net).
3642 (read_installed_db): Bugfix for testing whether a package has a source tarball.
3643 Reported by Matt (matt@usa.net).
cef493d7 3644 * geturl.cc(dialog): Rename gw_dialog to local_gw_dialog to avoid programmer
f97a1ece
RC
3645 confusion and lint errors. Reported by Matt (matt@usa.net).
3646
d52ed64b
RC
36472001-10-31 Robert Collins <rbtcollins@hotmail.com>
3648
cef493d7 3649 * argv.cc: New file, converts arguments for -mwindows programs. (Simplified derivation
d52ed64b
RC
3650 from dcrt0.cc.)
3651 * argv.h: New file.
3652 * Makefile,in: Add argv.o and mingw_getopt.o to setup.exe object list.
3653 Add mingw_getopt.o build rule.
3654 * main.cc(WinMain): Initialise argv and argc for use by getopt.
3655
392ba1ba
CF
36562001-10-27 Christopher Faylor <cgf@redhat.com>
3657
3658 * res.rc: Rearrange info on top line slightly.
3659
31324d15
CF
36602001-10-27 Christopher Faylor <cgf@redhat.com>
3661
3662 * desktop.cc (make_passwd_group): Move file creation earlier in the
3663 process to ensure that passwd-grp.bat reflects desired operation.
3664
36652001-27-10 Trevor Forbes <t4bs@hotmail.com>
3666
3667 * postinstall.cc (each): Remove "*.done" file else rename will fail.
3668
ee411d77
CF
36692001-10-16 Christopher Faylor <cgf@redhat.com>
3670
3671 * res.rc: Oops. Take 640x480 screen size into account.
3672
e74944da
CF
36732001-10-16 Christopher Faylor <cgf@redhat.com>
3674
3675 * res.rc: Enlarge chooser screen.
3676
e368cfb9
CF
36772001-10-12 Christopher Faylor <cgf@redhat.com>
3678
3679 * Makefile.in: Accomodate changes to w32api_include macro.
3680
a6ba3670
CF
36812001-10-12 Christopher Faylor <cgf@redhat.com>
3682
3683 * Makefile.in: Use correct flags for windres.
3684
683e96f6
CF
36852001-10-12 Christopher Faylor <cgf@redhat.com>
3686
3687 * Makefile.in (CFLAGS): Remove -nostdinc from CFLAGS.
3688
2c18c00b
CF
36892001-10-12 Christopher Faylor <cgf@redhat.com>
3690
3691 * choose.cc (pick_line::paint): Reorganize after botched patch.
3692
0f61a05a
CF
36932001-10-12 Christopher Faylor <cgf@redhat.com>
3694
3695 * choose.cc (pick_line::paint): Add missing declaration.
3696
308d6f3e
CF
36972001-10-10 Ralf Habacker <Ralf.Habacker@freenet.de>
3698
3699 * choose.cc (pick_line::paint): Add package name to sdesc for display.
3700
3bcf85be
RC
3701Wed Sep 26 21:39:00 Robert Collins rbtcollins@hotmail.com
3702
3703 * choose.cc (_view::insert_pkg): Correctly exit loop.
3704 * iniparse.y (register_category): Always insert new categories.
3705
fb2cd8f6
CF
3706Fri Sep 21 13:56:32 2001 Christopher Faylor <cgf@cygnus.com>
3707
3708 * inilex.l (yylex): For comments, eat all characters up to, but not
3709 including newline.
3710
127b32e1
CF
3711Sun Aug 26 12:50:01 2001 John Marshall <jmarshall@acm.org>
3712
3713 * fromcwd.cc (found_file): Use correct package name when adding an
3714 unknown package rather than random stack garbage.
3715
2cd555aa
CF
3716Sun Aug 12 14:25:21 2001 Christopher Faylor <cgf@cygnus.com>
3717
3718 * desktop.cc (make_passwd_group): .bat files need \r\n endings.
3719
4254cc64
CF
3720Wed Aug 8 13:53:47 2001 Christopher Faylor <cgf@cygnus.com>
3721
3722 * desktop.cc (etc_profile): Leave environment variables untouched.
3723
acbae401
CV
37242001-08-07 Corinna Vinschen <corinna@vinschen.de>
3725
3726 * autoload.c: Add dynamic load statements for NT/W2K
3727 advapi32 functions not available in 9x/ME.
3728 * main.cc (set_default_dacl): New function.
3729 (WinMain): Call `set_default_dacl' if running on NT/W2K.
3730
969a294c
CF
3731Sat Aug 4 21:35:53 2001 Christopher Faylor <cgf@cygnus.com>
3732
3733 * ini.h (_CategoryPackage): Change pkg field to pkgname for
3734 consistency.
3735 * choose.cc: Use pkgname field when referencing _CategoryPackage
3736 throughout.
3737 (fill_missing_category): Don't add excluded packages.
3738 (default_trust): Ditto.
3739 (_view::insert_pkg): Ditto.
3740 * iniparse.y (register_category): Use consistent variable name.
3741
9eeb0e83
ED
37422001-07-09 Egor Duda <deo@logos-m.ru>
3743
3744 * choose.cc: Use system foreground color for text output.
3745
06560feb
CF
3746Sat Jul 7 00:40:28 2001 Christopher Faylor <cgf@cygnus.com>
3747
3748 * choose.cc (set_action): Use default trust for determining reinstall
3749 and source only.
3750 (default_trust): Set default trust.
3751 (pick_line::paint): Allow source selection when reinstalling or
3752 retrieving.
3753
1fb09149
CF
3754Fri Jul 6 18:08:49 2001 Christopher Faylor <cgf@cygnus.com>
3755
3756 * choose.cc (isinstalled): Modify to properly accomodate special case
3757 of "download only".
3758 (set_action): Check downloaded components, not installed components if
3759 "download only".
3760 (set_existence): Always include full list of files when "download
3761 only".
3762
14cfffa5
CF
3763Fri Jul 6 00:37:05 2001 Christopher Faylor <cgf@cygnus.com>
3764
3765 * choose.cc (pick_line::paint): Properly display "na" field when no
3766 source exists.
3767
f54385f6
CF
3768Thu Jul 5 00:34:23 2001 Christopher Faylor <cgf@cygnus.com>
3769
3770 * choose.cc (scan2): Ensure that older versions do not show up in
3771 "Test" slot.
3772
85b1fb54
CF
3773Mon Jul 2 15:47:59 2001 Christopher Faylor <cgf@cygnus.com>
3774
3775 * choose.cc (set_action): Allow "Skip" action if trust != installed.
3776 * res.rc: Fix copyright.
3777
2dada532
CF
3778Sat Jun 30 14:05:21 2001 Michael A Chase <mchase@ix.netcom.com>
3779
3780 * res.rc (IDD_LOCAL_DIR): Change caption to match the other dialog
3781 boxes.
06c6d195 3782 (IDD_CHOOSE): Adjust horizontal size so package names are visible.
2dada532
CF
3783
3784 * choose.cc: Restore some more changes from 2001-06-25, throughout.
3785 (paint): Wrap some excessively long lines.
3786 (pick_line::paint): Ditto. Move the arrow in the "Current" column
3787 right to where it belongs. Move the source checkbox slightly to the
3788 right.
3789 (do_choose): List categories and required packages in setup.log.full.
3790
3791Sat Jun 30 23:04:59 2001 Christopher Faylor <cgf@cygnus.com>
3792
3793 * choose.cc (scan2): Restore source scanning eliminated by previous checkin.
3794
1b13eeec
CF
3795Sat Jun 30 15:18:33 2001 Christopher Faylor <cgf@cygnus.com>
3796
3797 * ini.h (struct _Info): Add "derived" element.
3798 * choose.cc (scan2): Try to place unknown tar files into proper slot
3799 when package exists in setup.ini but tar file does not.
3800
9307254d
RC
3801Sat Jun 30 13:39:00 2001 Robert Collins <rbtcollins@hotmail.com>
3802
3803 * choose.cc (create_listview): Call set_view_mode with VIEW_CATEGORY.
3804 (do_choose): Log the first category name.
3805
3467d79f
CF
3806Fri Jun 29 23:07:44 2001 Christopher Faylor <cgf@cygnus.com>
3807
3808 *ini.h: Reapply 2001-06-25 changes.
3809 * choose.cc (add_required): Ditto. Default to "Keep" state if
3810 UNINSTALL and product is installed. Default to curr state if SKIP,
3811 etc.
3812 (keep_or_skip): New function. Returns skip or keep state depending on
3813 installed state of package.
3814 (default_trust): Use keep_or_skip to set state.
3815 (_view::insert_pkg): Use calloc to allocate lines.
3816 (set_view_mode): Adapt 2001-06-25 change to set_full_list here.
3817
8f53e82a
RC
3818Sat Jun 30 11:01:00 2001 Robert Collins <rbtcollins@hotmail.com>
3819
1fb09149 3820 * choose.cc: Remove globals full_list, headers, package_indexes and
8f53e82a
RC
3821 nindexes.
3822 Add globals cat_headers, pkg_headers and chooser.
3823 (add_required): New function.
3824 (paint): Use the chooser for header details.
3825 Call into the chooser to paint each line.
1fb09149 3826 (list_click): Use new global variables.
8f53e82a
RC
3827 Call into the chooser to handle the click.
3828 Repaint the entire view if packages have been added or removed.
3829 (note_width): Get passed a headers struct rather than using a global
3830 variable.
3831 (fill_missing_category): New function.
3832 (default_trust): Skip non-"Required" or "Misc" packages.
3833 (pick_line::set_line (Package *)): New function.
3834 (pick_line::set_line (Category *)): New function.
3835 (pick_line::paint): New function.
3836 (pick_line::click): New function.
3837 (_view::_view): New function.
3838 (_view::set_view_mode): New function.
3839 (_view::mode_caption): New function.
3840 (_view::set_headers): New function.
3841 (_view::init_header): New function.
3842 (_view::insert_pkg): New function.
3843 (_view::insert_category): New function.
3844 (_view::insert_at): New function.
3845 (_view::insert_under): New function.
3846 (_view::clear_view): New function.
3847 (viewsplusplus): New function.
3848 (_view::client): New function.
3849 (set_view_mode): Use new chooser functionality.
3850 (set_full_list): Use new global variables.
3851 (create_listview): Instantiate chooser.
3852 Remove all hardcoded headers[] code.
3853 (dialog_cmd): On trust changes, check dependencies.
3854 (getcategorybyname): New function.
3855 (getpackagecategorybyname): New function.
3856 (scan2): Use case-insensitive package comparison.
3857 (do_choose): Use fill_missing_category ().
3858 Show some category data.
3859 * ini.h: Protect against multiple inclusion.
3860 (views) New enum.
3861 (_CategoryPackage): New struct.
3862 (_Category): New struct.
3863 (_Package): Change category to Category * from char *.
3864 (extern Category category): New global variable.
3865 (extern in ncategories): Ditto.
3866 (getcategorybyname): New prototype.
3867 (catpackagecategorybyname): New prototype.
3868 (register_category): New prototype.
3869 (add_category): New prototype.
3870 * iniparse.y: Parse multiple categories per package.
2dada532
CF
3871 (category): New global variable.
3872 (ncategories): New global variable.
8f53e82a
RC
3873 (new_package): Compare package against NULL, not 0.
3874 (new_requirement): Source formatting fix.
3875 (register_category): New function.
3876 (add_category): New function.
3877 * res.rc: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
3878 IDC_CHOOSE_VIEWCAPTION: New control.
3879 * resource.h: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
3880 IDC_CHOOSE_VIEWCAPTION: New control.
3881 Increment _APS_NEXT_CONTROL_VALUE.
3882
26a27c14
CF
3883Mon Jun 25 00:56:37 2001 Michael A Chase <mchase@ix.netcom.com>
3884
e19ad6a3 3885 * choose.cc (paint): Wrap excessively long lines.
26a27c14
CF
3886 (list_click): Ditto.
3887 (create_listview): Ditto.
3888 (do_choose): Ditto. Replace TABs and remove CRs in lines written to
3889 setup.log.full. Allow "Yes" for source exists in setup.log.full when
3890 installing from local directories.
3891
97312777
CF
3892Mon Jun 25 00:56:37 2001 Christopher Faylor <cgf@cygnus.com>
3893
5f9f0d8d
CF
3894 * choose.cc (set_action): Only clear srcpicked when moving to next
3895 state. Allow source installation if it exists in the current "trust"
3896 state. Don't move to skip state when package is installed.
97312777
CF
3897 (list_click): Don't allow source clicking when no source is available.
3898 (set_full_list): Display package when not is_full_action.
3899 * ini.h (is_full_action): Define.
3900
72fd1d1e
CF
3901Sun Jun 17 12:06:14 2001 Christopher Faylor <cgf@cygnus.com>
3902
3903 * install.cc (check_for_old_cygwin): New function. First stab at
3904 checking for old cygwin versions.
3905 (do_install): Call check_for_old_cygwin if there were no errors during
3906 the install.
3907
41ac91b5 3908Sat Jun 16 11:33:51 2001 Michael A Chase <mchase@ix.netcom.com>
86202506
CF
3909
3910 * choose.cc (_Info::_Info): Test _source paramenter for non-NULL rather
3911 than zeroed "source" element.
3912
80429b97
CF
3913Fri Jun 15 20:54:43 2001 Christopher Faylor <cgf@cygnus.com>
3914
3915 * choose.cc (scan2): Insert unknown tar archives, found on disk, into
3916 the highest available "hole" in the trust array.
3917
654ea642
CF
3918Fri Jun 15 00:20:48 2001 Christopher Faylor <cgf@cygnus.com>
3919
3920 * choose.cc (set_existence): Use pointer method for indexing in trust
3921 array.
3922 (create_listview): Ditto.
3923 (scan2): Ditto. Also, use consistent variable name for indexing into
3924 trust array.
3925 * ini.h (Package): Reorganize info array for easier scanning.
3926
e98d90bd
CF
3927Fri Jun 15 00:01:51 2001 Christopher Faylor <cgf@cygnus.com>
3928
3929 * choose.cc (isinstalled): Eliminate special download only test.
3930 (set_action): Don't move to next state if in ACTION_SAME range and not
3931 incrementing.
3932 (choose_caption): Display "Retrieve" rather than "Reinstall" when just
3933 downloading.
3934 (do_choose): Sort packages after all packages have been read.
3935 Accomodate the fact that first element in trust array is empty so that
3936 log files don't report the wrong trust value.
3937 * iniparse.y (new_package): Malloc space for package name or suffer
3938 memory corruption.
3939
38c97581
CF
3940Thu Jun 14 22:43:59 2001 Robert Collins <rbtcollins@hotmail.com>
3941
3942 * ini.h (Dependency): New structure. Declare new function.
3943 * inilex.l (yylex): Detect new setup.ini options - category and requires.
3944 * iniparse.y: Declare new setup.ini token values.
3945 (yyparse): Parse new token values.
3946 (new_requirement): New function.
3947
3948Thu Jun 14 22:43:26 2001 Christopher Faylor <cgf@cygnus.com>
3949
3950 * choose.cc (read_installed_db): Eliminate obsolete code.
3951
3ae6c15c
CF
3952Thu Jun 14 22:11:53 2001 Christopher Faylor <cgf@cygnus.com>
3953
3954 * choose.cc (set_action): Set trust on "redo".
3955 (_Info::_Info): New constructor.
3956 (read_installed_db): Use new constructor. Use trusts type for
3957 iterator.
3958 * ini.h (struct _Info): Label struct, add constructor.
3959 (Package): Make installed_ix a type 'trusts.'
3960 * install.cc (uninstall_one): Unset any installed info for current
3961 package.
3962 (install_one): Allocate new Info struct for installed reflecting new
3963 installed info.
3964 (do_install): Don't output line to installed.db if package is being
3965 uninstalled.
3966
9c0a9876
CF
3967Thu Jun 14 20:33:01 2001 Robert Collins <rbtcollins@hotmail.com>
3968
3969 * choose.cc (getpkgbyname): Use consistent method for scanning package
3970 array.
3971
68b27c12
CF
3972Wed Jun 13 23:33:08 2001 Christopher Faylor <cgf@cygnus.com>
3973
3974 * choose.cc: Add some comments.
3975 (getpkgbyname): Use strcasecmp for comparisons.
3976
07108cc2
CF
3977Wed Jun 13 16:07:00 2001 Christopher Faylor <cgf@cygnus.com>
3978
f0984dcb 3979 * install.cc (do_install): Avoid checking for download action if
07108cc2
CF
3980 package wasn't currently retrieved.
3981
c46a33a9
CF
3982Wed Jun 13 11:27:22 2001 Christopher Faylor <cgf@cygnus.com>
3983
3984 * choose.cc: Eliminate extra array throughout. Use element in package
3985 structure instead. Use pointers rather than array indexes where
3986 appropriate.
3987 (set_action): New function to set next action based on current.
3988 (choose_caption): New function. Returns display caption.
3989 (check_existence): Change arguments. Use pointer to 'info' structure.
3990 (set_existence): Use pointer rather than array index.
3991 (default_trust): Use trusts enum for second argument.
3992 (set_full_list): Honor exclude element in package structure.
3993 (build_labels): Eliminate.
3994 (base): Make global. Use const char * argument.
3995 (get_package_version): Eliminate.
3996 (getpkgbyname): New function.
3997 (read_installed_db): Use parse_filename to get version info.
3998 * desktop.cc (make_passwd_group): Use getpkgbyname function.
3999 * download.cc (get_file_size): const argument.
4000 (do_download): Use is_download_action to determine when something
4001 should be downloaded.
4002 * filemanip.h: Add some functions.
4003 * ini.cc (do_ini): Use NULL rather than 0 for pointer assignment.
4004 * ini.h: Use enums for actions and trusts.
4005 (is_download_action): New macro.
4006 (is_upgrade_action): Ditto.
4007 (is_uninstall_action): Ditto.
4008 (struct Package): Add new fields.
4009 * inilex.l (yylex): Detect new setup.ini options.
4010 * iniparse.y: Declare new tokens.
4011 (yyparse): Detect exclude keyword. Fill out version field even if
4012 version == 0.
4013 (new_package): Use greater granularity when allocating package array to
4014 avoid repeated calls to realloc.
4015 * install.cc (exists): const argument.
4016 (uninstall_one): Take pkg argument.
4017 (install_one): Ditto. Eliminate unneeded arguments which can be
4018 derived from package info.
4019 (do_install): Iterate over package array using a pointer. Use
4020 is_download_action to control when package should be downloaded.
4021 * tar.cc (tar_open): const argument.
4022 * tar.h: Refloect const argument.
4023
7cc06fd3
CF
40242001-05-31 Michael Chase mchase@ix.netcom.com
4025
4026 * main.cc (WinMain): Add setup version to starting setup.log entry
4027
9522028b
CF
4028Tue May 29 21:37:58 2001 Yukihiko Sohda <sohda@is.titech.ac.jp>
4029
4030 * inilex.l: Add + to list of valid string characters.
4031
e9b1aaa7
CF
4032Mon May 28 20:54:50 2001 Christopher Faylor <cgf@cygnus.com>
4033
4034 * Makefile.in: Remove more stuff in the clean target.
4035
8e1299fa
CF
4036Mon May 28 18:24:59 2001 Christopher Faylor <cgf@cygnus.com>
4037
4038 * Makefile.in: Correctly generate iniparse.h.
4039
85553593
CV
4040Tue Mar 6 19:14:00 2001 Corinna Vinschen <corinna@vinschen.de>
4041
4042 * geturl.cc (get_url_to_file): Add parameter `allow_ftp_auth'.
4043 * geturl.h: Change declaration of `get_url_to_file' accordingly.
4044 * netio.cc (NetIO::NetIO): Add parameter `allow_ftp_auth'.
4045 Set member `ftp_auth'.
4046 (NetIO::open): Add parameter `allow_ftp_auth'. Use it in calls
4047 to constructors of derived classes.
4048 (NetIO::get_ftp_auth): New method.
4049 * netio.h: Change class definition accordingly.
4050 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Add parameter `allow_ftp_auth'.
4051 Take global variables `net_ftp_user' and `net_ftp_passwd' into account.
4052 Add code for ftp authentication retry.
4053 * nio-ftp.h: Change class definition accordingly.
4054 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Add parameter `allow_ftp_auth'.
4055 Add code for ftp authentication retry in case of proxy connection.
4056 * nio-http.h: Change class definition accordingly.
4057 * res.rc: Add FTP authentication dialog.
4058 * resource.h: Add new constants used in res.rc.
4059 * state.h: Add variables `net_ftp_user' and `net_ftp_passwd'.
4060
c4174b9c
CF
4061Sun May 27 17:12:23 2001 Christopher Faylor <cgf@cygnus.com>
4062
4063 * res.rc (IDD_SPLASH): Add a copyright year.
4064
0af2d779
CF
4065Sun May 27 15:42:18 2001 Christopher Faylor <cgf@cygnus.com>
4066
4067 * Makefile.in: Make iniparse.y produce a c++ file.
4068 * choose.cc (set_existence): Revert 2001-05-27 change.
4069 * ini.cc: Remove "C" from declaration of yyparse.
4070 * iniparse.y (yyparse): Fill out version field by default when a binary
4071 install is detected and no version has been set yet.
4072 * install.cc (do_install): Mount things earlier so that we can use
4073 proper mount table settings. Don't remove mounts since they are now
4074 honored.
4075 * mount.cc (create_mount): Reread the mount table after establishing a
4076 new mount.
4077 (read_mounts): Explicitly clear root_here to allow multiple uses of
4078 this function. Ensure that there is no garbage in the table when we've
4079 exhausted all of the mounts in the registry.
4080 (cygpath): Accomodate ./ in path.
4081
85b43844
CF
4082Sun May 27 02:59:07 2001 Christopher Faylor <cgf@cygnus.com>
4083
0af2d779
CF
4084 Use parse_filename method to parse filenames throughout. Use
4085 get_root_dir to retrieve the current root directory throughout. Set
4086 const in argument list, where appropriate, throughout.
4087 * choose.cc (set_existence): Detect case of uninstalled package with no
4088 version.
85b43844
CF
4089 (parse_filename): New function.
4090 * filemanip.h (fileparse): New structure.
4091 * mount.cc (read_mounts): Remember where we found the root mount.
4092 (set_root_dir): New function.
4093 (get_root_dir): Ditto.
4094 * mount.h: Declare new functions.
4095 * site.cc (get_root_dir_now): Renamed from get_root_dir.
4096 (save_site_url): Use new function name.
4097 (get_initial_list_idx): Ditto.
4098
08f8c762
CF
4099Sat May 26 21:23:59 2001 Christopher Faylor <cgf@cygnus.com>
4100
4101 * choose.cc: Use a constant throughout to deal with chooser icon
4102 length.
4103 * res.rc (IDD_CHOOSE): Increase size of chooser box.
4104
47f8d8b3
CF
41052001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
4106
4107 * choose.cc (do_choose): Fix incorrect assignment of trust setting to
4108 use when Redownload or Sources Only selected.
4109
6a748750
CF
4110Thu May 10 22:35:59 2001 Christopher Faylor <cgf@cygnus.com>
4111
4112 Reformat file after botched patch formatting.
4113 * choose.cc (which_trust): Eliminate variable.
4114 (default_trust): Don't set which_trust.
4115 (do_choose): Use selected trust when reinstalling or installing source.
4116
a351e48c
CF
4117Thu May 10 21:04:18 2001 Christopher Faylor <cgf@cygnus.com>
4118
4119 Change concat to cygpath throughout.
4120 Change map_filename to cygpath throughout.
4121 * concat.cc (vconcat): New function.
4122 (concat): Use vconcat.
4123 * concat.h: Reflect above.
4124 * install.cc (map_filename): Eliminate.
4125 (install_one): Free dest_file.
4126 * mount.cc (find2): Expect input key to be pointing to mount record.
4127 (in_table): New function.
4128 (is_admin): Move from root.cc.
4129 (read_mounts): New function.
4130 (path_prefix_p): New function.
4131 (cygpath): New function.
4132 * mount.h: Define new functions and structure.
4133 * root.cc (in_table): Move to mount.cc.
4134 (do_root): Call read_mounts to initialize root stuff and mount table.
4135 * site.cc (get_root_dir): Ditto.
4136
e227ee24
CF
41372001-05-09 Matt Hargett <matt@use.net>
4138
4139 * Makefile.in: Remove *.rc from clean.
4140
25fd2965
CF
4141Tue May 8 23:33:38 2001 Christopher Faylor <cgf@cygnus.com>
4142
4143 * choose.cc (scan2): Fix incorrect setting of TRUST_CURR rather than
4144 TRUST_PREV which produced "0" versions.
4145
42bf5b92
CF
41462001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
4147
4148 * resource.h: Add new field IDC_CHOOSE_INST_TEXT. Modify
4149 _APS_NEXT_CONTROL_VALUE to account for addition of
4150 IDC_CHOOSE_INST_TEXT.
4151 * res.rc (IDD_CHOOSE): Modify choose dialog to use new field
4152 IDC_CHOOSE_INST_TEXT for screen text. Modify choose Dialog to allow
4153 hot keys to select Prev, Curr, Exp.
4154 * ini.h: Add new actions for ACTION_REDO and ACTION_SRC_ONLY. Modify
4155 define for LOOP_PACKAGES to include new actions ACTION_REDO and
4156 ACTION_SRC_ONLY.
4157 * choose.cc: Add new Trusts for TRUST_REDO and TRUST_SRC_ONLY.
4158 (paint): Modify to check TRUST_SRC_ONLY when determining Bitmap for
4159 source Checkbox to use.
4160 (build_labels): Add logic to allow for selection of Source only
4161 Download/ReDownload/Install/Reinstall and also to Redownload/Reinstall
4162 current version binary.
4163 (dialog_proc): Add conditional display for file selection prompt based
4164 on download vs install using IDC_CHOOSE_INST_TEXT.
4165 (do_choose): Add new logic for TRUST_REDO and TRUST_SRC_ONLY selection
4166 and modify logic for TRUST_UNINSTALL, TRUST_KEEP, and TRUST_NONE to
4167 handle the instance where Source Download/Install was selected. Modify
4168 log file to store appropriate information regarding Action selected and
4169 the new actions that were added (I.E.: ACTION_REDO and
4170 ACTION_SRC_ONLY).
4171 * download.cc: Add include for <unistd.h> and "port.h".
4172 (download_one): Modify parameter list to include the selected action
4173 for the file to be downloaded. Modify size check against expected size
4174 to include check for ACTION_REDO and ACTION_SRC_ONLY. Modify rename of
4175 .tmp file to also remove the destination file if exists due to ability
4176 to redownload source and binary now.
4177 (do_download): Modify to also use ACTION_REDO and ACTION_SRC_ONLY in
4178 calculation of Download Bytes. Modify to also use ACTION_REDO and
4179 ACTION_SRC_ONLY in determining files selected for download.
4180 * install.cc (uninstall_one): Add check to treat a Reinstall like an
4181 upgrade so current version will be uninstalled prior to reinstall.
4182 (do_install): Add logic to handle ACTION_REDO and ACTION_SRC_ONLY for
4183 uninstalling and installing binary and source packages.
4184 * desktop.cc (make_passwd_group): Modify logic to account for a Source
4185 only cygwin install when checking for cygwin to determine need for
4186 mkpasswd and mkgroup.
4187
4188Mon May 7 23:33:30 2001 Matt Hargett <matt@use.net>
8a09aa99
CF
4189
4190 * winsup/cinstall/res.rc: Added accelerators and improved focus order.
4191 Removed WS_DISABLED from "OK" buttons to accomodate default focus
4192 changes in net.cc and source.cc.
4193 * winsup/cinstall/net.cc (dialog_proc): If no radio button is selected,
4194 a default is selected.
4195 * winsup/cinstall/source.cc (dialog_proc): Ditto.
4196 (check_if_enable_next): Removed. No longer needed since a radio button
4197 will always be selected.
4198 (load_dialog): Removed call to check_if_enable_next.
4199 (dialog_cmd): Ditto. Also added default to switch.
4200
87bdba0c
CF
4201Tue Apr 24 23:42:02 2001 Christopher Faylor <cgf@cygnus.com>
4202
4203 * res.rc: Resize affected text.
4204
8293fc16
CF
4205Tue Apr 24 23:35:31 2001 Christopher Faylor <cgf@cygnus.com>
4206
4207 * net.cc (do_net): Default to direct download.
87bdba0c 4208 * res.rc: Move default selections to the top.
8293fc16 4209
ed96c6da
EB
42102001-04-18 Earnie Boyd <earnie@users.sourceforge.net>
4211
4212 * win32.h: Remove the definitions for _UNION_NAME and _STRUCT_NAME.
4213 Must now include <windows.h> and not the pieces.
4214 * choose.cc (create_listview): Clean up type mismatch problems.
4215 * dialog.h (NEXT(id)): Ditto.
4216 * geturl.cc (dialog): Ditto.
4217 * install.cc (dialog): Ditto.
4218 * splash.cc (load_dialog): Ditto.
4219
fe94cc29
CF
4220Wed Apr 18 18:59:21 2001 Christopher Faylor <cgf@cygnus.com>
4221
4222 * tar.cc (class gzbz): Define dummy virtual functions.
4223
fb087b80
CF
4224Wed Apr 18 16:01:21 2001 Christopher Faylor <cgf@cygnus.com>
4225
4226 * Makefile.in: Add bz2 include/library support.
4227 * filemanip.h: New file.
fe94cc29
CF
4228 * choose.cc (find_tar_ext): New function. Returns TRUE if .tar.gz or
4229 .tar.bz2 found.
fb087b80
CF
4230 (scan2): Reorganize to use find_tar_ext, accomodating .bz2 extension.
4231 (read_installed_db): Ditto.
4232 (do_choose): Ditto.
4233 * fromcwd.cc (found_file): Ditto.
4234 (do_fromcwd): Ditto.
4235 * tar.cc (class gzbz): New super class for uncompression support.
4236 (gz): New class for gzip support.
4237 (bz): New class for bzip2 support.
4238 (tar_open): Use gzbz class to control file opening.
4239 (tar_ftell): Ditto for returning position in file.
4240 (skip_file): Ditto for reading file.
4241 (tar_next_file): Ditto.
4242 (tar_read_file): Ditto.
4243 (tar_close): Ditto for close.
4244
4245 * zlib/configure.in: Force NM substitution.
4246
4247 * source.cc (do_source): Default to "Install from Internet".
4248
88bcaf07
CF
42492001-03-16 Brian Keener <bkeener@thesoftwaresource.com>
4250
4251 * nio-file.cc (NetIO_File::NetIO_File): Use `get_file_size' instead of
4252 `stat'.
4253 * choose.cc (list_click): Correct inability to select source code for
4254 download.
4255 (scan2): Modify to skip source tarballs when scanning disk for
4256 installable packages.
4257
ef45c299
CV
42582001-03-10 Chris Abbey <chris_abbey@yahoo.com>
4259
4260 * install.cc: install sources into /usr/src instead
4261 of /, also include the sizes of source tarballs
4262 in total_bytes.
4263 * download.cc: include sizes of source tarballs in
4264 total_download_bytes.
4265
9fe1181b
CV
4266Tue Mar 6 19:31:00 2000 Corinna Vinschen <corinna@vinschen.com>
4267
4268 * download.cc (get_file_size): Remove `static'.
4269
2bfdb848
CV
4270Tue Mar 6 19:11:00 2000 Corinna Vinschen <corinna@vinschen.com>
4271
4272 * tar.cc (tar_open): Use `get_file_size' instead of `stat'.
4273
60c632b3
CV
42742001-03-06 Brian Keener <bkeener@thesoftwaresource.com>
4275
4276 * choose.cc (paint): Modify message for nothing to download vs
4277 nothing to install/update based on installation method.
4278 (list_click): Modify to skip versions in selection process if
88bcaf07 4279 installing from local directory and installation file does not exist.
60c632b3
CV
4280 Also leaves Source Action set to N/A if the source file does not exist
4281 and installing from local directory.
4282 (check_existence): New method to check current existence of installation
4283 files based on selected installation method.
4284 (set_existence): New method to set the current existence of installation
4285 files based on selected installation method.
4286 (best_trust): Modify decision process for best trust to base decision on
4287 current trust selected (IE: Prev, Curr, or Test), existence of file and
4288 installation method selected.
4289 (default_trust): Add logic to capture the current trust level and the
4290 trust selected for the given package.
88bcaf07 4291 (set_full_list): Expand decision criteria for displaying a package in
60c632b3
CV
4292 the selection list to include file existence/non-existence and selected
4293 installation method.
4294 (build_labels): Modify criteria for label addition to include
4295 installation method and file existence/non-existence.
88bcaf07 4296 (create_listview): Modify to establish package trust level for each
60c632b3
CV
4297 package before setting up the display list. Also modification to set
4298 current trust button as the default.
88bcaf07 4299 (dialog_cmd): Set response for Prev, Curr, Test button push to perform
60c632b3
CV
4300 a reset of the selection list in addition to setting the default trust.
4301 (get_package_version): New method to provide reusable code for
4302 determining the package version from the file name for a specified
4303 trust.
4304 (scan2): Modify to use new method get_package_version and
4305 also enhance handling of the build for the structures package and
4306 extra.
4307 (read_installed_db): Modify to use the new method
4308 get_package_version and also enhance handling of the build for the
4309 structures package and extra.
88bcaf07 4310 (do_choose): Add additional initialization of package and extra
60c632b3
CV
4311 structures. Modify to use read_installed_db all the time despite
4312 install method. Modify output to setup.log.full log file to increase
4313 readability by adding additional spacing, expanded code and available
4314 versions.
4315 * ini.h: Add new fields install_exists, source_exists and
88bcaf07 4316 partial_list_display to the structure definition for package.
60c632b3
CV
4317 * res.rc (IDD_CHOOSE): Modify choose dialog Prev, Curr, and Test
4318 pushbuttons by replacing with Radio Buttons thus allowing the
4319 operator to better determine which is selected.
4320
2f9645a1
CV
43212001-02-20 Brian Keener <bkeener@thesoftwaresource.com>
4322
88bcaf07 4323 * download.cc (do_download): Add new variables total_download_bytes and
2f9645a1
CV
4324 total_download_bytes_sofar for download progress meter. Add loop
4325 to accumulate the total bytes to download from the selected packages.
4326 * geturl.cc: Add state.h and diskfull.h to include list. Add new
4327 variables gw_iprogress, gw_pprogress, gw_progress_text,
4328 gw_pprogress_text, and gw_iprogress_text to allow for addition of
4329 total packages download progress meter and disk full percent
4330 progress meter. Add variables total_download_bytes and
4331 total_download_bytes_sofar for use by progress meters.
88bcaf07
CF
4332 (dialog_proc): Add new variables gw_iprogress, gw_pprogress,
4333 gw_progress_text, gw_pprogress_text, and gw_iprogress_text to
4334 allow for addition of total packages download progress meter and disk
4335 full percent progress meter.
2f9645a1
CV
4336 (init_dialog): Ditto.
4337 (progress): Ditto.
4338 (get_url_to_file): Ditto.
4339 * geturl.h: Add external definition for total_download_bytes and
4340 total_download_bytes_sofar.
88bcaf07 4341 * res.rc: Add two additional progress meters (IDC_DLS_IPROGRESS)
2f9645a1
CV
4342 and (IDC_DLS_PPROGRESS) and three text objects (IDC_DLS_PROGRESS_TEXT)
4343 and (IDC_DLS_IPROGRESS_TEXT, IDC_DLS_PPROGRESS_TEXT) for use in the
4344 download meters.
88bcaf07 4345 * resource.h: Add new fields for progress meters and text and update
2f9645a1
CV
4346 _APS_NEXT_CONTROL_VALUE.
4347
b41962a3
CV
4348Wed Feb 21 13:05:00 2000 Corinna Vinschen <vinschen@redhat.com>
4349
4350 * download.cc (get_file_size): Check for INVALID_HANDLE_VALUE instead
4351 for NULL.
4352
4353Wed Feb 21 11:21:00 2000 Corinna Vinschen <vinschen@redhat.com>
01954c34
CV
4354
4355 * download.cc (download_one): Add missing parenthesis.
4356
88a77116
CV
4357Mon Feb 19 18:59:00 2000 Corinna Vinschen <vinschen@redhat.com>
4358
4359 * download.cc (get_file_size): New function. Eliminates the need
4360 to call `stat'.
4361 (download_one): Call `get_file_size' instead of `stat'. This
4362 workarounds a problem with mingw's `stat' call.
4363
577f35ed
EB
43642001-02-07 Earnie Boyd <earnie@users.sourceforge.net>
4365
4366 * Makefile.in: (%.o: %.rc): Specify --include-dir $(w32api_include).
4367 This is to allow cinstall to build with 2.95.2-7 and to make the
4368 use of headers consistent.
4369
38f5563e
DD
43702000-12-26 Earnie Boyd <earnie_boyd@yahoo.com>
4371
4372 * Makefile.in (autoload.o): Add target to specify -fno-inline-functions
4373
c0a7e0f2
DD
4374Tue Dec 26 03:46:00 2000 Matt Hargett <matt@use.net>
4375
4376 * winsup/cinstall/res.rc: Added accelerators and improved focus
4377 order.
4378
72826a5b
CF
43792000-12-10 Egor Duda <deo@logos-m.ru>
4380
4381 * choose.cc (paint): Use system background color for text output.
4382
4383Sun Dec 10 19:05:25 2000 Christopher Faylor <cgf@cygnus.com>
4384
4385 * Makefile.in: Use CXX for linking and for compiling .cc files.
4386 * configure.in: Find correct c++ compiler.
4387 * configure: Regenerate.
4388
67bebcb5
DD
43892000-11-17 DJ Delorie <dj@redhat.com>
4390
4391 * splash.cc (load_dialog): Make message more obvious.
4392 * res.rc: Ditto.
4393
25fb9139
CF
4394Fri Nov 17 17:15:21 2000 Christopher Faylor <cgf@cygnus.com>
4395
4396 * Makefile.in: Use g++ to link so that libstdc++.a gets used. This is
4397 necessary for newer compilers.
4398
ef2007fd
CV
4399Wed Nov 9 2:19:00 2000 Corinna Vinschen <vinschen@redhat.com>
4400
4401 * desktop.cc: Include "ini.h" and "version.h".
4402 (make_passwd_group): Skip the function on 9x/ME boxes when an
4403 older version of Cygwin has been installed which doesn't
4404 support mkpasswd/mkgroup on 9x/ME.
4405 * install.cc: Move the `LOOP_PACKAGES' and `pi' macros to...
4406 * ini.h: ...here.
4407
277b4d56
CV
4408Wed Nov 8 17:10:00 2000 Corinna Vinschen <vinschen@redhat.com>
4409
4410 * desktop.cc (make_passwd_group): Don't exit when started
4411 on 9x/ME since mkpasswd/mkgroup are usable on 9x/ME now.
4412
f8a6415f
DD
4413Sun Nov 5 12:51:42 2000 Jason Tishler <jt@dothill.com>
4414
4415 * install.cc (do_install): Add call to set_cygdrive_flags to sync
4416 the mount modes.
4417 * mount.cc (set_cygdrive_flags): New function.
4418 (get_cygdrive_flags): Ditto.
4419 (default_cygdrive): Ditto.
4420 (set_cygdrive_flags): Ditto.
4421 * mount.h: Add prototype for set_cygdrive_flags.
4422
3b9077d4
DD
44232000-10-23 DJ Delorie <dj@redhat.com>
4424
4425 * ini.h: add source actions
4426 * fromcwd.cc: check for available sources
4427 * res.rc: add checkbox bitmaps
4428 * resource.h: ditto
4429 * check-*.bmp: new
4430 * choose.cc: add source column
4431 * download.cc: download sources if called for
4432 * install.cc: [un]install sources too
4433
1b1b33ac
DD
44342000-10-22 DJ Delorie <dj@redhat.com>
4435
4436 * choose.cc (build_labels): Don't skip TRUST_PREV completely; only
4437 ignore it wrt full_list if there's already a version installed.
4438 (do_choose): Sort the list.
4439 (package_sort): New.
4440
2a1a01e0
DD
44412000-10-12 DJ Delorie <dj@redhat.com>
4442
4443 * res.rc: Add more error strings.
4444 * resource.h: Ditto.
4445 * iniparse.y (new_package): re-initialize if needed.
4446 * download.cc (do_download): Keep track of errors; notify and
4447 allow retry.
4448 * install.cc (do_install): Ditto.
4449
1a9886fe
DD
44502000-10-05 DJ Delorie <dj@redhat.com>
4451
4452 * Makefile.in: fix %.cc rule
4453
40aef45e
DD
44542000-10-04 DJ Delorie <dj@redhat.com>
4455
4456 * desktop.cc: quote HOME and USER, don't . ./.profile
4457
4458 * choose.cc (build_labels): don't include in partial list just
4459 because there's a *previous* version available.
4460
4461 * install.cc (do_install): if installing from local directory with
4462 setup.ini and the file isn't found, look in "." also. Note errors.
4463
dd3f7f9b
DD
44642000-10-02 DJ Delorie <dj@redhat.com>
4465
4466 * ini.cc (do_ini): save setup.ini locally
4467
44682000-10-02 Chris Abbey <cabbey@bresnanlink.net>
4469
4470 * desktop.cc: quote escapes in prompt
4471
fee2a8d0
DD
44722000-10-02 Jason Tishler <jt@dothill.com>
4473
4474 * root.cc (is_admin): New function.
4475 (read_mount_table): Check for administrative priviledges and set
4476 installation scope as appropriate.
4477
a03db251
DD
44782000-09-28 DJ Delorie <dj@redhat.com>
4479
4480 * nio-ftp.cc (ftp_line): handle continuations more robustly
4481
b151e01e 44822000-09-14 Brian Keener <bkeener@thesoftwaresource.com>
0b758d4c
DD
4483
4484 * res.rc: increased the size of the site dialog (IDD_SITE) & the
4485 corresponding list box to provide for more URL's to be listed.
4486 Modified the position of the Back, Next and Cancel buttons to
4487 correspond to the new size of the dialog.
4488
d07591a3
DD
44892000-09-13 DJ Delorie <dj@redhat.com>
4490
4491 * install.cc (do_install): update disk fullness once per package
4492 to improve performance
4493
4494 * choose.cc (create_listview): call ReleaseDC
4495
89725f30
DD
4496Mon Sep 11 22:40 2000 Harold L Hunt II <harold@compasstechnologies.com>
4497
4498 * mkdir.cc: Create directories when ERROR_FILE_NOT_FOUND is
4499 returned, as it seems Samba 2.0.6+ returns this instead of
4500 ERROR_PATH_NOT_FOUND
88bcaf07 4501
6fbc690d
CF
4502Mon Sep 11 19:35:24 2000 Christopher Faylor <cgf@cygnus.com>
4503
4504 * site.cc (get_initial_list_idx): Don't default to saved URL if it
4505 refers to sources.
4506
13d27274
DD
45072000-09-07 DJ Delorie <dj@redhat.com>
4508
4509 * splash.cc: use version.h, not local decl
4510 * res.rc: add "old version" message
4511 * resource.h: ditto
4512 * version.h: new
4513 * fromcwd.cc (canonicalize_version): make global
89725f30
DD
4514 * iniparse.y: add setup-version support, fix bug in blank line
4515 handling
4516
13d27274
DD
4517 * inilex.l: add [exp] as alias for [test], add setup-version
4518 * Makefile.in (version.c): add setup-version tag
4519
4520 * desktop.cc (do_desktop): remove 1.1 version number
4521 (do_desktop_setup): ditto
4522
4523 * ini.cc (do_ini): zero out package list just in case we redo it.
4524
8cfbc487
DD
45252000-09-07 Jeffrey Juliano <juliano@cs.unc.edu>
4526
4527 * choose.cc (list_click): Check for nindexes==0; if so, return.
4528
c92e1307
DD
45292000-09-06 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
4530
4531 * localdir.cc: new, local package directory selection dialog; cd
4532 into selected directory
4533 * Makefile.in (OBJS): add localdir.o
4534 * dialog.h: add prototype for do_local_dir
4535 * main.cc (WinMain): initialize local_dir to cwd; add call to
4536 do_local_dir
4537 * net.cc (dialog_cmd): make DO_LOCAL_DIR next dialog
4538 * source.cc (dialog_cmd): ditto
4539 * res.rc: add DO_LOCAL_DIR dialog; remove "current directory" from
4540 presented choices in IDD_SOURCE; add IDS_ERR_CHDIR error string
4541 * resource.h: defines for DO_LOCAL_DIR dialog; define IDS_ERR_CHDIR
4542 * root.cc (dialog_cmd): make DO_LOCAL_DIR previous dialog
4543 * state.h: add local_dir variable
4544
45452000-09-06 Brian Keener <bkeener@thesoftwaresource.com>
50225eae
DD
4546
4547 * desktop.cc: added logic to handle to the new dialog and to
4548 default the setting for the new checkboxes based on whether the
4549 desktop icon or start menu link already exist.
4550 (desktop_icon): correction to desktop directories for desktop icon
4551 creation. Additional logic added for Win95 which does not appear
4552 to have Common Directories so if Common selected and null uses
4553 normal directory.
4554 (start_menu): Additional logic added for Win95 which does not
4555 appear to have Common Directories so if Common selected and null
4556 uses normal directory.
4557 (do_desktop_setup): moved the saving of the icon, creation of the
4558 bat file, profile, passwd, Start Menu link and desktop shortcut to
4559 this method from do_desktop. Made the creation of the desktop
4560 icon and start menu link conditional on settings of new dialog
4561 created for desktop.
4562 * install.cc (do_install): changed next from IDD_S_DESKTOP to
4563 IDD_DESKTOP.
4564 * main.cc (WinMain): changed case IDD_S_DESKTOP to IDD_DESKTOP.
4565 * res.rc: added new resource to create a desktop dialog with 2
4566 checkboxes for creating the desktop icon and start menu link.
4567 * resource.h: changed IDD_S_DESKTOP to IDD_DESKTOP and added two
4568 new controls: IDC_ROOT_MENU and IDC_ROOT_DESKTOP for new dialog.
4569 * state.h: added root_menu and root_desktop for use in dialog.
4570
4a83b7b0
DD
45712000-08-29 DJ Delorie <dj@redhat.com>
4572
4573 * choose.cc (scan_downloaded_files): scan for existing files, so
4574 that the user only sees new downloads.
4575
4576 * nio-ie5.cc (NetIO_IE5): pre-check for wininet.dll, enable dial-up
4577 * site.cc (do_site): if we can't download the mirror list, go back
4578 to the net setup box to choose another transport.
4579 * autoload.c: add more functions
4580 * Makefile.in (ALL_DEP_LDLIBS): remove wininet.a
4581 * resource.h: add WININET message
4582
4583 * net.cc (do_net): no longer default to IE5
4584 * simpsock.h (class SimpleSocket): new, simplify socket operations
4585 * simpsock.cc: ditto
4586 * nio-http.h: new, for direct http protocol
4587 * nio-http.cc: ditto
4588 * nio-ftp.h: new, for direct http protocol
4589 * nio-ftp.cc: ditto
4590 * netio.cc (set_url): move initialization here to handle redirections
4591 (open): add direct http/ftp
4592 * netio.h (NetIO::set_url): new
4593
4594 * log.cc (log_save): create directory for log if needed
4595
4596 * hash.cc, hash.h: new
4597 * Makefile: add hash.o
4598 * choose.cc: enable "uninstall" option
4599 * download.cc: invert action test to accomodate uninstalling
4600 * ini.h: add ACTION_UNINSTALL
4601 * install.cc: add uninstall functionality
4602 * res.rc: make install tag changeable
4603 * resource.h: add uninstall resources
4604
4605 * res.rc: update mirror list URL
88bcaf07 4606
50f64a4b
DD
46072000-08-24 DJ Delorie <dj@redhat.com>
4608
89b1a15b
DD
4609 * log.cc, log.h: new files
4610 * Makefile.in (OBJS): add log.o
4611 * tar.cc: use exit_setup instead of exit
4612 * dialog.cc (fatal): use exit_setup instead of ExitProcess
4613 * msg.cc (fatal): ditto
4614 * install.cc (dialog_cmd): ditto
4615 * ini.cc (do_ini): ditto
4616 * main.cc (main): add logging
4617 * source.cc (do_source): ditto
4618 * root.cc (do_source): ditto
4619 * site.cc (do_site): ditto
4620 * other.cc (do_other): ditto
4621 * net.cc (do_net): ditto
4622 * choose.cc (do_choose): ditto
4623 * download.cc (do_download): ditto
4624 * install.cc (do_install): ditto
4625 * msg.cc (fatal): ditto
4626
4627 * res.rc: mark password boxes as *being* password boxes.
4628
50f64a4b
DD
4629 * fromcwd.cc (canonicalize_version): use multiple buffers so that multiple
4630 calls won't use the same buffer.
4631 * choose.cc (create_listview): don't default to full list if no changes
4632 (base): return computed value, not temporary :-(
4633 (do_choose): don't use installed.db if we're only downloading.
4634
348860fa
DD
46352000-08-23 DJ Delorie <dj@redhat.com>
4636
4637 * nio-ie5.cc (NetIO_IE5): Fix authentication logic
4638 * nio-ie5.h (flush_io): new
4639 * netio.cc (load_dialog): note when we're initializing the dialog
4640 box, and ignore changes to the edit fields then.
4641
5f48f258
DD
46422000-08-21 DJ Delorie <dj@redhat.com>
4643
4644 * README: Update
4645
4646 * fromcwd.cc (found_file): don't remember the canonicalized version
4647
4648 * choose.cc (paint): print "nothing to do" message when list is empty.
4649 (build_labels): Use version "0.0" if no version is available.
4650 (create_listview): default to full list if nothing to install/update.
4651 (base): new, returns basename of file
4652 (read_installed_db): compare base names, not full paths
4653
713bbe5f
DD
46542000-08-11 DJ Delorie <dj@redhat.com>
4655
4656 * choose.cc: add new chooser dialog
4657 * fromcwd.cc: use IDD_CHOOSE
4658 * ini.cc: use IDD_CHOOSE
4659 * main.cc: use IDD_CHOOSE
4660 * ini.h: cosmetic changes
4661 * res.rc: add choose dialog, bitmaps
4662 * choose-spin.bmp: new
4663 * choose-rtarrow.bmp: new
4664 * resource.h: add choose dialog controls
4665
4666 * mount.cc: remove debug statement
88bcaf07 4667
2e9cbac5
DD
46682000-08-08 DJ Delorie <dj@redhat.com>
4669
4670 * Makefile.in (version.c): make version checking more robust
4671 * splash.cc (load_dialog): handle case where there's no version
4672
8507f105
DD
46732000-08-07 DJ Delorie <dj@redhat.com>
4674
4675 * (all): add cvsid tags
4676 * Makefile.in: generate version.c from ChangeLog, add splash.o
4677 * splash.o: new
4678 * res.rc: add splash screen
88bcaf07 4679
f5d0464b
DD
46802000-08-02 DJ Delorie <dj@redhat.com>
4681
4e8ff53f
DD
4682 * net.cc: remove proxy password code
4683 * res.rc: remove proxy user/pass from net, add auth dialogs
4684 * netio.cc,h: add sys/proxy auth methods
4685 * nio-ie5: use them, check for http status codes
4686 * state.h: add system authorization
4687
f5d0464b
DD
4688 * concat.cc (concat): canonicalize x:// to x:/ (exception to ://
4689 meaning an url)
4690
76cbfa85
DD
46912000-08-02 Norman Vine <nhv@yahoo,com>
4692
4693 * msg.cc (mbox): added MB_TOPMOST to MessageBox type flags
4694
e92c4436
DD
46952000-08-01 DJ Delorie <dj@redhat.com>
4696
bf74c544
DD
4697 * postinstall.cc (each): don't rename files we ignore
4698 (do_postinstall): set CYGWINROOT to root_dir, chdir there
4699
e92c4436
DD
4700 * desktop.cc: have /etc/profile call ~/.profile and ~/.bashrc
4701
a6100861
DD
47022000-07-31 DJ Delorie <dj@redhat.com>
4703
4704 * desktop.cc: reverse PATH so /usr/bin precedes /bin
4705
b11b49f3
DD
47062000-07-18 DJ Delorie <dj@redhat.com>
4707
a99bdfd8
DD
4708 * autoload.c: new, autoload dlls that might not be available.
4709 * Makefile.in (OBJS): add autoload.o
4710
4711 * res.rc: rewrite root options (text/binary, system/user) to be
4712 more obvious.
4713
b5b282c4
DD
4714 * site.cc (get_site_list): trim displayed URL, sort by domain
4715
4716 * net.cc (do_net): make IE5 default to checked, for now
4717
b11b49f3
DD
4718 * choose.cc (do_choose): sort packages correctly
4719 * ini.cc (do_ini): handle parse errors more gracefully
4720 (yyerror): ditto
4721 (fprintf): line buffer output
b5b282c4 4722 (do_ini): if we can't load setup.ini, go back to the site list.
b11b49f3
DD
4723 * ini.h: add "unknown" trust level
4724 * inilex.l: absorb unknown trust levels and key/value pairs,
4725 add line number logic
4726 * iniparse.y: handle parse errors more gracefully.
4727 * install.cc: skip packages with no valid install entry
4728
1fd6d0a2
DD
47292000-07-17 DJ Delorie <dj@cygnus.com>
4730
4731 * coding standards fixups, many files
4732 * mkdir.cc: warn about deletions *before* deleting them
4733
ed3e8b9b
DD
47342000-07-17 Jeff Juliano <juliano@cs.unc.edu>
4735
4736 * res.rc (IDD_OTHER_URL): reorder to give default focus to entry
4737
4738 * other.cc (dialog_cmd): save download site URL
4739 * site.cc (get_root_dir): new
4740 (save_mirror_site): new
4741 (dialog_cmd): save download site URL
4742 (get_site_list): make list big enough to add prev site
4743 (get_initial_list_idx): new, read last-used URL from file and
4744 append it to site_list
4745 (do_site): call get_initial_list_idx
4746
4747 * concat.cc (concat): avoid segfault when first parm is null
88bcaf07 4748
f57c332f
DD
47492000-07-13 DJ Delorie <dj@cygnus.com>
4750
4751 * postinstall.cc: new
4752 * Makefile.in: add postinstall.o
4753 * concat.h: add backslash ()
4754 * concat.cc: ditto
4755 * desktop.cc (etc_profile): don't do postinstall
4756 (backslash): moved to concat.cc
4757 (uexists): new
4758 (make_postinstall_script): run directly
4759 (do_desktop): chain to do_postinstall
4760 * dialog.h: add exit_msg, do_postinstall
4761 * download.cc: use exit_msg
4762 * install.cc: ditto
4763 * main.cc: add postinstall, exit_msg
4764 * resource.h: add postinstall
d6cda811 4765 * README: add more to-do items
f57c332f 4766
3a8e3956
DD
47672000-07-12 DJ Delorie <dj@cygnus.com>
4768
4769 * desktop.cc: add /etc/postinstall/ support
1a18aed7 4770 * install.cc: add more "standard" directories
3a8e3956 4771
e0c3d906
DD
47722000-07-11 DJ Delorie <dj@cygnus.com>
4773
4774 * desktop.cc: create /etc/profile
ad09bcd9
DD
4775 * desktop.cc: fix include syntax
4776 * Makefile.in: add auto-dependencies
24e259bb
DD
4777 * root.cc: support system vs user
4778 * desktop.cc: ditto
4779 * mount.h: ditto
4780 * mount.cc: ditto
4781 * install.cc: ditto
4782 * res.rc: ditto
4783 * resource.h: ditto
4784 * state.h: ditto
84d58d4c 4785 * desktop.cc: make sure we use backslashes, not slashes.
bf1d5889
DD
4786 * desktop.cc: don't set PATH in cygwin.bat, create /etc/passwd
4787 * geturl.cc: change math for percentage to avoid overflow
4788 * install.cc: ditto
4789 * download.cc: post "download complete" message.
4790 * root.cc: pre-fill in defaults if needed, don't start
4791 browse at root_dir unless it's set.
a3f48e18 4792 * desktop.cc: quote $PATH in case it has spaces in it
88bcaf07 4793
904d24fe
DD
47942000-07-10 DJ Delorie <dj@cygnus.com>
4795
4796 * Makefile.in: add desktop.o and mklink2.o
4797 * dialog.h: add do_desktop
4798 * install.cc: create standard directories, call do_desktop
4799 * res.rc: add cygwin.ico as a file also
4800 * desktop.cc: new, do shortcuts, batch files, and icons
4801 * mklink2.c: new, for COM
1ab805b8 4802 * README: update to-do list
904d24fe 4803
04d6e06b
DD
48042000-07-10 DJ Delorie <dj@cygnus.com>
4805
4806 * ini.cc (do_ini): don't worry about timestamps if we're not
88bcaf07 4807 actually installing.
04d6e06b 4808
5601a13d
DD
48092000-07-09 DJ Delorie <dj@cygnus.com>
4810
4811 * Makefile.in: add -I$(srcdir) for ini.h
4812
23c9e63c
DD
48132000-07-06 DJ Delorie <dj@cygnus.com>
4814
4815 * Replace everything with a new GUI version
4816 * zlib/gzio.c: add gzctell() for progress displays
4817
48182000-06-22 DJ Delorie <dj@cygnus.com>
4819
4820 * setup.c (tarx): re-add call to write_pkg()
4821
aa32874b
DD
48222000-06-07 DJ Delorie <dj@cygnus.com>
4823
4824 * cygcalls.c: new, call cygwin1.dll functions directly
4825 * cygcalls.h: header for same
4826 * Makefile.in: add cygcalls.[ch], remove mount/cygpath/umount
4827 exes, fix cinstall.rc dependencies.
4828 * path.c: remove unneeded code
4829 * setup.c: use cygcalls instead of xcreate_process.
4830 uncompress embedded files with zlib
4831 add "-d" for "download only"
4832 add "-h" for help
4833 postpone mount changes until very end
4834 add download progress indicators
4835 pack multi-column listings more
4836 auto-delete temp files
4837 customize banner message according to options
4838 prompt user for text/binary mounts
4839 add warnings about empty setup directory, root installs, etc
4840
99d1bf2d
DD
48412000-05-24 DJ Delorie <dj@cygnus.com>
4842
4843 * tar.c: New file; built-in tar using zlib.
4844 * tar.h: New file; header for same.
4845 * ctar.c: New file; test program for same.
4846 * Makefile.in: add built-in tar, remove tar.exe and gzip.exe
4847 * path.c (pathcat): convert slashes and canonicalize, instead of aborting
4848 * setup.c (tarx): add support for built-in tar
4849 (main): accept unix-style slashes, check root dir for drive letters,
4850 warn about installing in /, make sure cwd is empty for internet installs,
4851 defer mounts to end of install, support built-in tar.
4852
55650749
CF
4853Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
4854
4855 Fix compiler warnings throughout.
4856 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
4857 get_pkg_stuff.
4858 * setup.c: Make 'root' global.
4859 (istargz): Return pointer to "stem" of matched .tar.gz file.
4860 (tarx): Special case cygwin-20000301 to == cygwin-1.1.0.tar.gz. Remove
4861 bogus check_for_installed check.
4862 (recurse_dirs): Add preliminary support for .bat file execution.
4863 (create_uninstall): Eliminate unneeded parameter.
4864 (do_start_menu): Ditto.
4865 (mkmount): Ditto.
4866 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
4867 scanning for the version number. Eliminate unneeded argument to
4868 create_uninstall.
4869 (getdownloadsource): Add 'name' to list of names rather than url.
4870 (main): Eliminate unneeded argument in get_pkg_stuff. Eliminate
4871 unneeded argument in mkmount and do_start_menu.
4872
f4dda8f0
DD
48732000-05-18 DJ Delorie <dj@cygnus.com>
4874
4875 * setup.c (optionprompt): allow multi-column, clean up message
4876 about more options, be more robust about user input.
4877 (getdownloadsource): make the mirror URL a macro.
4878 (main): do mounts after done prompting user.
4879
62844d84
CF
4880Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
4881
4882 * setup.c (cleanup): Inverse order of deletion stands a better chance
4883 of deleting cygpath.exe. Still seems to suffer from occasional races,
4884 though.
4885 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
4886 w2k.
4887 (output_file): Defend against an unlikely handle leak.
4888 (main): Don't set up signal handling until we have something special to
4889 do.
4890
ad6749c8
CF
4891Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
4892
4893 * path.c (kill_cygpath): Delete function.
4894 (exit_cygpath): Make more defensive so that it can be called at any
4895 time.
4896 (cygpath_pipe): Don't set up signal here. Do it in main().
4897 * setup.c (istargz): New function.
4898 (recurse_dirs): Look for *.gz pattern rather than *tar.gz since *tar.gz
4899 inexplicably fails on samba mounted partitions. Use istargz to match
4900 tar.gz tail.
4901 (processdirlisting) Use istargz to match tar.gz tail.
4902 (cleanup): Renamed from filedel.
4903 (cleanup_on_signal): New function. Called on CTRL-C.
4904 (main): Record handle of main thread so that it can be suspended when
4905 CTRL-C occurs. Set up cleanup_on_signal signal handler.
4906
460cf7b6
CF
4907Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
4908
4909 * setup.c (do_start_menu): Don't concatenate paths to already built
4910 paths.
4911
9e76799c
CF
4912Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
4913
4914 * path.c (exit_cygpath): Wait for subprocess to exit before returning.
4915 (cygpath_pipe): Don't call exit_cygpath. Let main atexit routine do
4916 that.
4917 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
4918 root"-specific.
4919 * setup.c (filedel): Call exit_cygpath here so that we can be assured
4920 that cygpath subprocess has died. This allows us to delete cygpath.exe
4921 and cygwin1.dll.
4922 (optionprompt): Initialize response to -1 so that second screen of
4923 mirrors will appear.
4924 (get_pkg_stuff): Don't attempt to use HKCLU. Pass root to init_pkgs.
4925 * setup.h: Reflect init_pkgs prototype change.
4926
2cf65e6e
CF
4927Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
4928
4929 * pkg.c (init_pkgs): Accept an argument to control what root registry
4930 key should be used.
4931 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
4932 * setup.h: Reflect init_pkgs prototype change.
4933
4934Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
4935
4936 * error.c (winerror): Respond to gcc warning.
4937 * path.c (cygpath_pipe): Ditto.
4938 * setup.c (filedel): Call sa_cleanup on deleteme.
4939 (create_shortcut): Coerce argument to eliminate compiler warning.
4940 (tarx): Use installed version of cygwin1.dll, overriding tar file name.
4941 (refmatches): New function. Tests if ref is contained in a list of
4942 packages to install.
4943 (filematches): New function. Tests if filename matches one of a list
4944 of packages to install.
4945 (recurse_dirs): Accept list of packages to install. Generalize tar.gz
4946 test to accomodate _tar.gz.
4947 (prompt): Ensure that stdout is flushed prior to asking for input.
4948 (findhref): Initialize variables to quiet a compiler warning.
4949 (processdirlisting): Accept list of packages to install. Special case
4950 cygwin tar file version number.
4951 (downloaddir): Accept list of packages to install.
4952 (downloadfrom): Ditto.
4953 (create_uninstall): Eliminate unneeded variables. Quote arguments to
4954 regtool.
4955 (do_start_menu): Don't create uninstall bat file if updating or user
4956 specified a list of packages.
4957 (mkmount): Eliminate unneeded variables.
4958 (get_pkg_stuff): New function. Checks for previous unversioned
4959 installation.
4960 (main): Accept -u and -f options and package names on the command line.
4961 Use get_pkg_stuff to initialize package information. Umount /etc.
4962 Call recurse_dirs and downloadfrom with list of package to install.
4963 Ensure that all /usr/local directories are created. Output
4964 installation time to setup.log.
4965 * setup.h: Add some prototypes.
4966 * xsystem.c (xcreate_process): Eliminate unneeded variable.
4967
4cf88dd9
CF
4968Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
4969
4970 * setup.c (optionprompt): Don't overlap display of already seen options
4971 on next page.
4972 (geturl): Print name of site which we're connecting to rather than "ftp
4973 site".
4974 (processdirlisting): Avoid URLs that contain a /. or ./ . Is this
4975 test too simplistic?
4976 (do_start_menu): Use pathcat to build path to <root>\bin to avoid
4977 problems when user chooses x:\ as their root.
4978 (main): For now, default to "non-update" mode. Allow -u option to
4979 signify an update.
4980
36591a07
CF
4981Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
4982
4983 * pkg.c: New file.
4984 * setup.c (tarx): Skip already installed or older packages. Report
4985 when a package has been updated.
4986 (processdirlisting): Skip already installed or older packages.
4987 (main): Detect -f option for forced installation. Initialize pkg stuff
4988 if appropriate.
4989 * setup.h: Add pkg definitions.
4990
c298ea4a
CF
4991Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
4992
4993 * setup.c (findhref): Return NULL on empty string. Eat any trailing
4994 ";something".
4995 (processdirlisting): Attempt to limit recursively processing the same
4996 directory.
4997
f4cafa7e
CF
4998Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
4999
5000 * setup.c (filedel): New function.
5001 (output_file): Keep track of files extracted from setup.exe for
5002 subsequent deletion.
5003 (tarx): Close process handle of child tar process or suffer handle
5004 leak.
5005 (getdownloadsource): Close mirror file so that it can be unlinked.
5006 (processdirlisting): Return total number of files extracted.
5007 (main): Initialize array of files to delete. Ensure that files are
5008 closed on exit. Make the directory that setup.exe is started from ==
5009 the directory where temporary files are placed. Issue an error if no
5010 files were found to download.
5011 * xsystem.c (xcreate_process): Close the thread handle. Close the
5012 process handle if we waited for it to exit.
5013
cd475210
CF
5014Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
5015
5016 * setup.c (main): Change version number output.
5017
7dff5e71
CF
5018Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
5019
5020 * setup.c (tarx): Use full path name to tar executable.
5021 (main): Build full pathname to tar executable. Create /usr/local/etc
5022 by default.
5023
99437fdb
CF
5024Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
5025
5026 * setup.c (findhref): Change method for scanning for href= to choose
5027 the last one on the line. This is still not foolproof and probably
5028 will need to be changed eventually. Don't abort if no "size" field is
5029 evident.
5030 (processdirlisting): Fix boolean algebra.
5031
0f562d55
CF
5032Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
5033
5034 * main.c (tarx): Add some code for future task of unmounting
5035 directories encountered in tar file.
5036
4356382d
CF
5037Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
5038
5039 * setup.c (findhref): Decode file size, when appropriate.
5040 (needfile): New function. Returns 1 when file should be
5041 downloaded.
5042 (processdirlisting): Always download if file size does not
5043 match. Prompt when download fails for some reason.
5044 (getdownloadsource): Accomodate findhref argument changes.
5045
6ab1ce6c
CF
5046Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
5047
5048 Throughout, use global session handle rather than reinitializing for
5049 each connect. Don't pass session as an argument to setup.c functions.
5050 * setup.c (geturl): Only issue "Connecting to.." message when using
5051 http or first time for ftp since subsequent connections will be fast.
5052 (processdirlisting): Allocate space for "N" when user has specified
5053 "N"ever option so that it can be subsequently freed.
5054 (main): Abort if we can't get the list of mirrors.
5055
37ee316b
CF
5056Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
5057
5058 * setup.c (main): Umount /bin and /lib.
5059
a59fb4fa
CF
5060Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
5061
5062 * setup.c (main): Create an empty /var/run/utmp.
5063
75f4b861
CF
5064Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
5065
5066 * Makefile.in: Add umount to list of files to include in setup.exe.
5067 * setup.c (xumount): New function for unmounting directories.
5068 (main): Unmount /usr.
5069 (mkmount): Unmount "unix directory" before trying to figure out where
5070 to create the directory.
5071
d4a66789
CF
5072Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
5073
5074 * setup.c (mkmount): Use xcreate_process to start mount process,
5075 avoiding the shell.
5076 (main): Don't do buffering on stdout or prompts won't be displayed
5077 correctly if running in a cygwin shell with CYGWIN=tty.
5078
a6c3982d
CF
5079Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
5080
5081 * setup.c (main): Remove the CYGWIN environment variable before
5082 starting any cygwin programs.
5083
0ffd5e3b
CF
5084Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
5085
5086 * setup.c (geturl): Use alternative method for finding filename part of
5087 a URL.
5088 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
5089 (downloaddir): Unlink file containing dir listing.
5090 (downloadfrom): Ditto.
5091
3e54bcf9
CF
5092Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
5093
5094 * setup.c (main): Disallow running setup.exe from the "root".
5095
005b73c4
CF
5096Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
5097
2cf65e6e 5098 Use "warning" function, where appropriate, to output warnings.
005b73c4
CF
5099 * setup.c (warning): New function -- outputs warning to console and log
5100 file.
5101 (tarx): Fix index used to reset file protection.
5102 (main): Open the log file earlier so that more stuff can be sent to it.
5103
36dc5fc8
CF
5104Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
5105
5106 * setup.c (processdirlisting): Make "N" option a little less aggressive.
5107
c73320de
CF
5108Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
5109
5110 * setup.c (tarx): Wait to after tar has completed to reset protections
5111 or suffer races with tar process.
5112
68cdfc92
CF
5113Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
5114
5115 * Makefile.in: Eliminate duplicate -nostdinc from CFLAGS.
5116 * setup.c (create_uninstall): Create the uninstall .bat file in the
5117 "root" so that we can remove the /bin directory. Add bin\cygwin.bat to
5118 list of files to be deleted. Fix directory detection for determining
5119 when to use 'rmdir'.
5120 (do_start_menu): Add /usr/local/bin to the path.
5121 (main): Add slop to files.array allocation so that we don't have to
5122 worry about reallocating the array when it grows too large when doing
5123 some trivial "pushes". Add /tmp and /usr/local/{bin,lib} to list of
5124 files.
5125
35d18861
CF
5126Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
5127
5128 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
5129 download.
5130
20904de1
CF
5131Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
5132
5133 * path.c (kill_cygpath): New cleanup function.
5134 (exit_cygpath): New cleanup function.
5135 (cygpath_pipe): New function. Sets up cygpath in the background for
5136 translating filenames.
5137 (pathcvt): Use background cygpath for file translation.
5138 * setup.c (tarx): New function. Called to extract tar files, capture
5139 logging output, and translate it to Windows format.
5140 (recurse_dirs): Use 'tarx' function to extract files.
5141 (create_uninstall): Use file list built up by tarx rather than reading
5142 the log file.
5143 (mkmount): Add ability to mount root.
5144 (main): Track elapsed install time. Mount root.
5145 * starry.h: Add index field to strarry for tracking of tarx's usage of
5146 this structure.
5147 * xsystem.c (xcreate_process): Return proces handle when not waiting.
5148
c1246750
CF
5149Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
5150
5151 * path.c: New file.
5152 (pathfp): New function. Preliminary work for new -f cygpath
5153 functionality.
5154 * Makefile.in: Add new file.
5155 (pathcvt): Move to new file.
5156 (dtoupath): Ditto.
5157 (utodpath): Ditto.
5158 (pathcat): Ditto.
5159 * setup.c (processdirlisting): Always open file in text mode.
5160 (create_uninstall): Ditto.
5161 (getdownloadsource): Ditto.
5162 (main): Ditto.
5163
4b40edd0
CF
5164Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
5165
5166 * xsystem.c: New file.
5167 * Makefile.in: Accomodate new file.
5168 * setup.c (xsystem): Move to new file.
5169 (recurse_dirs): Accept handle to output log file. Don't use ">"
5170 redirection to trap tar output. Use supplied handle instead.
5171 (create_uninstall): Accept FILE pointer to opened log file. Don't
5172 unlink log file here.
5173 (do_start_menu): Accept FILE pointer to pass to create_uninstall.
5174 (main): Open log file here and pass it to various functions. Unlink
5175 when done.
5176
6f8e3b45
CF
5177Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
5178
5179 Change occurrences of .usr.bin to .bin throughout.
5180 * setup.c (geturl): Increase number of retries to 20. Let user know
5181 what's going on during long connects.
5182 (processdirlisting): Accept "A"lways and "N"ever as update options.
5183 (create_uninstall): Load cygwin1.dll from the current directory rather
5184 than \bin.
5185 (main): Add some expository text.
5186
2a907b70
CF
5187Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
5188
5189 * Makefile.in: Change method for compressing cygwin1.dll to avoid
5190 creating a cygwin1.dll in the current directory. Ensure the addition
5191 of -nostdinc to MINGW_CFLAGS.
5192
c4285a3c
CF
5193Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
5194
5195 * Makefile.in: Augment clean target.
5196
ea615d51
RP
5197Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
5198
5199 * README: Added info about non-working mingw implementation
c1246750 5200 * gzip.exe.gz: Replace with a version from the same build as the other
ea615d51 5201 tools.
c1246750 5202 * tar.exe.gz: Replace with a version from the same build as the other
ea615d51 5203 tools.
c1246750 5204 * mount.exe.gz: Add to repository until, mingw can build setup.
ea615d51
RP
5205 * cygpath.exe.gz: ditto
5206 * cygwin1.dll.gz: ditto
c1246750
CF
5207 * setup.c: Overwrite /bin and /lib mounts. Generate working shortcut
5208 for Win9x. Display only a screenfull of options at a time. Call all
5209 tools with an absolute path.
5210 * setup.dsp: Restore the carriage returns, MS Developer Studio needs
5211 them.
ea615d51
RP
5212 * setup.dsw: ditto
5213 * zlib.dsw: ditto
5214
51954e74
CF
5215Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
5216
c1246750
CF
5217 * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab
5218 cygwin1.dll from ../cygwin subdirectory.
51954e74
CF
5219 * gzip.exe.gz: Update.
5220 * tar.exe.gz: Update.
5221
7b777418
CF
5222Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
5223
5224 * Makefile.in: Use ZLIB variable as a target.
5225
4306b490
CF
5226Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
5227
5e7eb909
CF
5228 * Makefile.in: Eliminate traces of cygwinisms. Don't link with
5229 libmsvcrt.a. It's unneeded. Build .rc file on the fly from various
5230 sources.
4306b490
CF
5231 * configure.in: Locate correct objcopy.
5232 * configure: Regenerate.
5233
739457f4
CF
5234Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
5235
5236 * Makefile.in: New file.
5237 * configure.in: New file.
5238 * configure: New file.
5239 * zlib/Makefile.am: New file.
5240 * zlib/configure.in: New file.
5241 * zlib/aclocal.m4: New file.
5242 * zlib/acinclude.m4: New file.
5243 * zlib/configure: Regenerate from configure.in.
5244 * zlib/Makefile.in: Regenerate from Makefile.am
8507f105
DD
5245
5246%%% $Id$
5247$Revision$
This page took 0.618196 seconds and 5 git commands to generate.