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