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