1 2002-04-12 Robert Collins <rbtcollins@hotmail.com>
3 * mklink2.cc (make_link_2): Tweak to work with current w32api
6 2002-04-10 Pavel Tsekov <ptsekov@gmx.net>
8 * version.cc (canonicalize_version): Fix a call delete[]
9 to delete the allocated address.
11 2002-03-29 Robert Collins <rbtcollins@hotmail.com>
13 * PickView.cc (PickView::set_headers): Set last_col correctly. Thanks
14 to Ton van Overbeek for locating the bug area.
16 2003-03-27 Robert Collins <rbtcollins@hotmail.com>
18 * PickView.cc (PickView::insert_pkg): Be more generic with
20 (PickView::insert_category): Ditto.
21 (PickView::~PickView): Create.
22 * PickView.h (PickView::~PickView): Declare.
24 2003-03-27 Robert Collins <rbtcollins@hotmail.com>
26 * Makefile.in (OBJS): Add new commandline objects.
27 * desktop.cc (NoShortCutsOption): New option code.
28 (DesktopSetupPage::OnInit): Check whether to skip shortcuts.
29 * desktop.h (NoShortCutsOption): New concrete command line option class.
30 * main.cc (WinMain): Process command line options.
31 * GetOption.h: New file, singleton command line class.
32 * GetOption.cc: New file, implementation of the above.
33 * Option.h : New file, abstract option for GetOption.
34 * Option.cc: New file, implement constructor and destructor.
36 2002-03-26 Pavel Tsekov <ptsekov@gmx.net>
38 * mkdir.cc (mkdir_p): Stop processing if the path is exhausted.
40 2002-03-26 Ton van Overbeek <tvoverbe@cistron.nl>
42 * PickPackageLine.cc (PickPackageline::paint): Adjust clipping rectangle
43 to textheight, so large fonts work.
45 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
47 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Don't translate
50 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
52 * io_stream_cygfile.cc (cwd): New static for cwd storage.
53 (io_stream_cygfile::normalise): New method.
54 (io_stream_cygfile::io_stream_cygfile): Use it.
55 (io_stream_cygfile::exists): Ditto.
56 (io_stream_cygfile::remove): Ditto.
57 (io_stream_cygfile::mklink): And again.
58 (cygmkdir_p): Yes, again.
59 (io_stream_cygfile::move): And once more.
60 * io_stream_cygfile.h (io_stream_cygfile::normalise): Declare.
61 (io_stream_cygfile::cwd): Ditto.
63 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
65 * package_meta.cc (package_meta::~package_meta): Remove duplicate.
66 (CategoryPackage::~CategoryPackage): Ditto. (Thanks to Ton van
67 Overbeek for the report).
68 * mklink2.cc: Moved from mklink2.c to avoid 'not a prototype error'.
71 * site.cc (site_list_type::init): Delete the correct memory addres.
72 Thanks to Pavel Tsekov for tracking this down.
74 2002-03-20 Robert Collins <rbtcollins@hotmail.com>
76 * win32.h: Only define alloca if it's not already.
78 2002-03-20 Robert Collins <rbtcollins@hotmail.com>
80 * package_meta.h (packamgemeta::trustp): Make 'test' choice leave installed
82 * README: Update with latest requests.
83 * Various: MTC fixes from setup200202 branch.
85 2002-03-19 Christopher Faylor <cgf@redhat.com>
87 * Makefile.in (setup_version.c): Add back magic which allows detection
88 of setup.exe version number.
90 2002-03-17 Robert Collins <rbtcollins@hotmail.com>
92 * * PickPackageLine.cc (PickPackageLine::paint): Fix incorrect clip region
93 calculation on win9x systems.
95 2002-03-16 Robert Collins <rbtcollins@hotmail.com>
97 * install.cc (install_one_source): Write the correct length of a string to the
98 lst file (Thanks to Pavel Tsekov for reporting the bug).
100 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
102 * choose.cc (list_click): Always refresh the entire chooser, as our
103 package state change mechanism is broken with the new improved list classes.
105 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
107 * desktop.cc (make_passwd_group): Check for .lnk suffix on /etc/passwd and
110 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
112 * PickPackageLine.cc (PickPackageLine::DrawCheck): New method factored out from
114 (PickPackageLine::paint): Use DrawCheck to draw the src tick box, and the new
116 (PickPackageLine::click): Handle the new bin tickbox.
117 * PickPackageLine.h (PickPackageLine::DrawCheck): Declare this.
118 * PickView.cc (pkg_headers): Add a Bin? column.
119 (cat_headers): Ditto.
120 (PickView::set_headers): Ditto.
121 (PickView::init_headers): Ditto.
122 * PickView.h (PickView): Ditto.
123 * choose.cc (list_click): Use the new name for src_col to set the clip rectangle.
125 2002-02-24 Michael A Chase <mchase@ix.netcom.com>
127 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Fix up Robert's
130 2002-02-24 Michael A Chase <mchase@ix.netcom.com>
132 * desktop.cc (make_link): Add "file://" prefix to io_stream::mkpath_p()
134 (make_passwd_group): Ditto.
135 * localdir.cc (save_local_dir): Ditto.
136 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Wrap long lines.
137 Add "cygfile://" prefix to io_stream::open() calls.
139 2002-02-24 Robert Collins <rbtcollins@hotmail.com>
141 * log.cc (log_save): Fix creating /var/log.
142 * packate_meta.cc (standard_dirs): Remove duplicate '/''s.
144 2002-02-24 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
146 * res.rc (STRINGTABLE): Add IDS_CYGWIN_SETUP and
147 IDS_CYGWIN_SETUP_WITH_PROGRESS strings.
148 * resource.h: Add IDS_CYGWIN_SETUP and
149 IDS_CYGWIN_SETUP_WITH_PROGRESS IDs.
151 * splash.cc (OnInit): Qualify SetWindowText() call with global scope
152 operator (::SetWindowText()).
154 * threebar.cc: Run indent.
155 (cistring.h): Add include.
156 (SetText1, SetText2, SetText3): Qualify SetWindowText() call with
157 global scope operator.
158 (SetBar2): Add logic for writing percent complete into window title.
160 * window.h: Run indent.
161 (SetWindowText): New function.
162 (String): Add forward declaration.
163 * window.cc: Run indent.
164 (String++.h): Add include.
165 (SetWindowText): New function.
167 2002-02-24 Robert Collins <rbtcollins@hotmail.com>
169 * README: Update TODO list.
170 * install.cc (install_one): Fix src package location.
171 (do_install_thread): Fix creating directories.
173 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
175 * choose.cc: Include cygpackage.h for scan2 use.
176 (set_existence): Ignore setup.ini mirrors when installing from cwd.
177 (scan2): Process any valid file.
178 Add cache entries when a file matching a setup.ini listed version is found.
179 * filemanip.cc (parse_filename): Remove pkgtar - not used anywhere else.
180 * filemanip.h (filemanip::pkgtar): Remove.
181 * package_meta.cc (CategoryPackage::~CategoryPackage): New method.
182 (packagemeta::~packagemeta): Move from package_meta.h
183 Remove and delete all version and category information.
184 * package_meta.h (CategoryPackage): Create a destructor.
185 (packagemeta::~packagemeta): Move to .cc file.
187 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
189 * install.cc (install_one_source): Make NULL cached package names cause
192 2002-02-18 Michael A Chase <mchase@ix.netcom.com>
194 * desktop.cc (make_passwd_group): Don't create passwd-grp.bat
197 2002-02-18 Michael A Chase <mchase@ix.netcom.com>
199 * log.cc (log_save): Put "\n" at end of log lines instead of "'".
201 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
203 * mount.cc (create_mount): Avoid a const char*->char* warning.
204 (read_mounts): Ditto.
206 2002-02-05 Jason Tishler <jason@tishler.net>
208 * download.cc (do_download_thread): Fix off-by-one error.
210 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
212 * configure.in (CXXFLAGS): Substitute at configure time, not runtime.
213 * configure (CXXFLAGS): Regenerate.
214 * Makefile.in (iniparse.o): Build via default rules - no errors now.
215 * README: TODO list updates.
217 2002-02-19 Michael A Chase <mchase@ix.netcom.com>
219 * String++.cc (String::concat):: Remove.
220 (String::vconcat):: Ditto.
221 * String++.h (String::concat):: Remove.
222 (String::vconcat):: Ditto.
223 * archive_tar.cc: Don't include concat.h.
224 * archive_tar_file.cc: Don't include concat.h.
225 * compress_bz.cc (compress_bz::peek): Don't log unneeded messages.
226 (compress_bz::seek): Ditto.
227 (compress_bz::~compress_bz): Ditto.
228 * compress_gz.cc (compress_gz::peek): Ditto.
229 (compress_gz::error): Ditto.
230 (compress_gz::~compress_gz): Ditto.
231 * concat.cc (vconcat): Remove.
233 * concat.h (vconcat): Remove.
235 * desktop.cc (desktop_icon): Use new cygpath.
236 (make_etc_profile): Ditto.
238 (make_passwd_group): Ditto.
240 (check_desktop): Remove concat use.
241 (check_start_menu): Ditto.
242 * download.cc (download_one): Use new mkpath_p correctly.
244 * fromcwd.cc: Don't include concat.h.
245 * geturl.cc (get_url_to_membuf): Use String log() call.
246 (get_url_to_file): Ditto.
247 * install.cc: Don't include concat.h.
248 (uninstall_one): Use LOG_PLAIN.
249 (replace_one): Ditto.
250 (install_one_source): Ditto.
251 (install_one): More char to String conversion.
252 (do_install_thread): Use new cygpath.
253 Use new create_mount.
254 * io_stream.cc (io_stream::move): Use new log().
255 * io_stream_cygfile (io_stream_cygfile::io_stream_cygfile): Use new cygpath.
256 (io_stream_cygfile::exists): Ditto.
257 (io_stream_cygfile::remove): Ditto.
258 (io_stream_cygfile::mklink): Ditto.
259 (io_stream_cygfile::write): Ditto.
261 (io_stream_cygfile::move): Ditto.
262 * io_stream_file.cc: Don't include log.h.
263 (io_stream_file::write): Don't log unneeded messages.
264 * localdir.cc: Don't include concat.h.
265 (LocalDirPage::OnNext): Use LOG_PLAIN.
266 * log.cc: Don't include log.h.
267 (exit_setup): Use new cygpath.
268 * log.h (log_level): Add new level LOG_PLAIN.
269 * main.cc (WinMain): Use new log().
270 * mount.cc (SLASH_P): New macro from concat.h.
271 (cygpath): Make String version globally visible.
272 Remove varargs version.
274 * msg.cc (mbox): Use LOG_PLAIN.
275 * net.cc (NetPage::OnNext): Ditto.
276 * nio-ftp.cc (ftp_line): Use new log().
277 * nio-http.cc: Don't include log.h.
278 (retry_get): Use alternative url variable.
279 * package_db.cc: Don't include concat.h.
280 (packagedb::flush): Don't use concat.
281 * package_meta.cc: Don't include concat.h.
282 (packagemeta::uninstall): Use new cygpath.
283 * postinstall.cc (do_postinstall): Ditto.
284 * root.cc (RootPage::OnNext): Use LOG_PLAIN.
285 * script.cc: Don't include concat.h.
286 (init_run_script): Use new cygpath.
287 (run_script): More char * to String conversion.
288 (try_run_script): Ditto.
289 * site.cc: Don't include concat.h.
290 (SitePage::OnNext): Use LOG_PLAIN.
291 (SitePage::OnMessageCmd): Use new log().
292 * source.cc (SourcePage::OnDeactivate): Use LOG_PLAIN.
294 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
296 * Makefile.in (OBJS): Add new object.
297 * PickCategoryLine.cc (PickCategoryLine::paint): Print a "+" before the name.
298 * PickCategoryLine.h (PickCategoryLine::bucket): Use the String class.
299 * PickLine.h (Pickline::key): Change to a String to help plug leaks.
300 (PickLine::Pickline): Accept a String for the key.
301 * PickPackageLine.cc (PickPackageLine::paint): Convert all char use to Strings.
302 * PickPackageLine.h (PickPackageLine::PickPackageLine): The key is automatically
304 * PickView.cc (PickView::note_width): Convert all char * use to Strings.
305 (PickView::init_header): Move category length checking out of the inner loop for
307 Convert all char use to Strings.
308 * PickView.h: Include the String++ header.
309 (PickView::note_width): Update the prototype.
310 * String++.cc: New file, implements a reference counting string class.
311 * String++.h: New file, declares a reference counting string class.
312 * archive.cc: Include String++ instead of concat.
313 (archive::extract_file): Convert char * usage to Strings.
314 * archive.h: Inlude the String++ header.
315 (archive::extract_file): Update prototype.
316 (archive::next_file_name): Convert to a String.
317 (archive::linktarget): Ditto.
318 * archive_tar.cc (archive_tar::next_file_name): Convert to String usage.
319 (archive_tar::linktarget): Ditto.
320 * arhive_tar.h: Update the copyright.
321 Explicitly include the relevant headers.
322 (tar_map_result_type): Convert to String usage.
323 (archive_tar::next_file_name): Update prototype.
324 (archive_tar::linktarget): Ditto.
325 * category.cc (Category::Category): Update initialisers.
326 Convert to String usage.
327 (Categorycmp): Update to String usage.
328 * category.h: Include the String++ header.
329 (Category::Category): Update to String usage.
330 (Category::name): Ditto.
331 (Category::key): Ditto.
332 * choose.cc: Remove concat.h, it's not needed.
333 (scan2): Update to String usage.
335 * cygpackage.cc: Update includes for use of String class.
336 (cygpackage::cygpackage): Update for String usage.
337 (cygpackage::set_canonical_version): Ditto.
338 (cygpackage::destroy): Ditto.
339 (cygpackage::getfirstfile): Ditto.
340 (cygpackage::getnextfile): Ditto.
341 (cygpackage::Name): Ditto.
342 (cygpackage::Vendor_version): Ditto.
343 (cygpackage::Package_version): Ditto.
344 (cygpackage::Canonical_version): Ditto.
345 (cygpackage::set_sdesc): Ditto.
346 (cygpackage::set_ldesc): Ditto.
347 * cygpackage.h: Include String++.h for parsing this file.
348 (cygpackage::cygpackage): Update for String usage.
349 (cygpackage::set_canonical_version): Ditto.
350 (cygpackage::destroy): Ditto.
351 (cygpackage::getfirstfile): Ditto.
352 (cygpackage::getnextfile): Ditto.
353 (cygpackage::Name): Ditto.
354 (cygpackage::Vendor_version): Ditto.
355 (cygpackage::Package_version): Ditto.
356 (cygpackage::Canonical_version): Ditto.
357 (cygpackage::set_sdesc): Ditto.
358 (cygpackage::set_ldesc): Ditto.
359 (cygpackage::name): Ditto.
360 (cygpackage::vendor): Ditto.
361 (cygpackage::packagev): Ditto.
362 (cygpackage::canonical): Ditto.
363 (cygpackage::fn): Ditto.
364 (cygpackage::sdesc): Ditto.
365 (cygpackage::ldesc): Ditto.
366 * desktop.cc: Update includes for use of String class.
367 (batname): Update for String usage.
371 (desktop_icon): Ditto.
372 (make_cygwin_bat): Ditto.
373 (make_etc_profile): Ditto.
375 (make_passwd_group): Ditto.
377 (check_desktop): Ditto.
378 (check_startmenu): Ditto.
379 * dialog.cc (eget): Update for String usage.
380 (egetString): New function.
381 (eset): New variant for Strings.
382 * dialog.h: Include String++.h for parsing this file.
383 (egetString): New function.
384 (eset): New variant for Strings.
385 * diskfull.cc (diskfull): Update for String usage.
386 * diskfull.h: Include String++.h for parsing this file.
387 (diskfull): Update for String usage.
388 * download.cc: Update includes for use of String class.
389 (check_for_cached): Update for String usage.
390 (download_one): Ditto.
391 * filemanip.cc (get_file_size): Ditto.
393 (parse_filename): Ditto.
395 * filemanip.h: Include String++.h for parsing this file.
396 (fileparse): Update for String usage.
398 (parse_filename): Ditto.
399 Don't consider '_' to be a separator.
401 * find.cc: Update includes for use of String class.
402 (find_sub): Make more flexible.
403 (find): Update for String usage.
404 * find.h (find): Use Strings.
405 * fromcwd.cc (found_file): Update for String usage.
407 (init_dialog): Ditto.
408 (get_url_to_membuf): Ditto.
409 (get_url_to_string): Ditto.
410 (get_url_to_file): Ditto.
412 (get_url_to_membuf): Ditto.
413 (get_url_to_string): Ditto.
414 (get_url_to_file): Ditto.
416 (add_subdirs): Ditto.
417 * ini.cc: Update includes for String usage.
418 (find_routine): Update for String usage.
419 (do_remote_ini): Ditto.
420 (do_ini_thread): Ditto.
421 * ini.h (ini_init): Ditto.
422 * inilex.l: Update includes for String usage.
423 (ini_init): Update for String usage.
425 (add_correct_version): Ditto.
426 * install.cc: Update includes for String usage.
427 (install_one_source): Update for String usage.
428 (uninstall_one): Ditto.
429 (replace_one): Ditto.
430 (install_one_source): Ditto.
431 (do_install_thread): Ditto.
432 * io_stream.cc: Update includes for String usage.
433 (io_stream::open): Update for String usage.
434 (io_stream::mkpath_p): Ditto.
435 (io_stream::remove): Ditto.
436 (io_stream::mklink): Ditto.
437 (io_stream::move_copy): Ditto.
438 (io_stream::move): Ditto.
439 (io_stream::exists): Ditto.
440 * io_stream.h: Update includes to allow correct parsing.
441 (io_stream::open): Update for String usage.
442 (io_stream::mkpath_p): Ditto.
443 (io_stream::remove): Ditto.
444 (io_stream::mklink): Ditto.
445 (io_stream::move_copy): Ditto.
446 (io_stream::move): Ditto.
447 (io_stream::exists): Ditto.
448 * io_stream_cygfile.cc: Update includes for String usage.
449 (get_root_dir_now): Update for String usage.
450 (io_stream_cygfile::io_stream_cygfile): Ditto.
451 (io_stream_cygfile::~io_stream_cygfile): Ditto.
452 (io_stream_cygfile::exists): Ditto.
453 (io_stream_cygfile::remove): Ditto.
454 (io_stream_cygfile::mklink): Ditto.
456 (io_stream_cygfile::set_mtime): Ditto.
457 (io_stream_cygfile::move): Ditto.
458 (io_stream_cygfile::get_size): Ditto.
459 * io_stream_cygfile.h: Update includes for String usage.
460 (io_stream_cygfile::io_stream_cygfile): Update for String usage.
461 (io_stream_cygfile::~io_stream_cygfile): Ditto.
462 (io_stream_cygfile::exists): Ditto.
463 (io_stream_cygfile::remove): Ditto.
464 (io_stream_cygfile::mklink): Ditto.
466 (io_stream_cygfile::set_mtime): Ditto.
467 (io_stream_cygfile::move): Ditto.
468 (io_stream_cygfile::get_size): Ditto.
469 (io_stream_cygfile::fname): Ditto.
470 (io_stream_cygfile::lmode): Ditto.
471 * io_stream_file.cc: Update includes for String usage.
472 (io_stream_file::io_stream_file): Update for String usage.
473 (io_stream_file::~io_stream_file): Ditto.
474 (io_stream_file::exists): Ditto.
475 (io_stream_file::remove): Ditto.
476 (io_stream_file::mklink): Ditto.
477 (io_stream_file::set_mtime): Ditto.
478 (io_stream_file::move): Ditto.
479 (io_stream_file::get_size): Ditto.
480 * io_stream_file.h: Update includes for String usage.
481 * io_stream_file.cc: Update includes for String usage.
482 (io_stream_file::io_stream_file): Update for String usage.
483 (io_stream_file::~io_stream_file): Ditto.
484 (io_stream_file::exists): Ditto.
485 (io_stream_file::remove): Ditto.
486 (io_stream_file::mklink): Ditto.
487 (io_stream_file::set_mtime): Ditto.
488 (io_stream_file::move): Ditto.
489 (io_stream_file::get_size): Ditto.
490 (io_stream_file::fname): Ditto.
491 (io_stream_file::lmode): Ditto.
492 * localdir.cc: Update includes for String usage.
493 (save_local_dir): Update for String usage.
494 (check_if_enable_next): Ditto.
495 (load_dialog): Ditto.
497 (LocalDirPage::OnInit): Ditto.
498 (LocalDirPage::OnNext): Ditto.
499 * log.cc: Update includes for String usage.
500 (struct LogEnt): Update for String usage.
504 * log.h: Update includes for String usage.
505 (log_level): Update for String usage.
508 * main.cc (WinMain): Update for String usage.
509 * mklink2.c (make_link_2): Update for String usage.
510 * mklink2.h (make_link_2): Update for String usage.
511 * mount.cc: Update includes for String usage.
512 (mount_table): Update for String usage.
514 (create_mount): Ditto.
516 (remove_mount): Ditto.
517 (read_mounts): Ditto.
518 (set_root_dir): Ditto.
519 (get_root_dir): Ditto.
520 (path_prefix_p): Ditto.
522 * mount.h: Update includes for String usage.
523 (create_mount): Update for String usage.
524 (remove_mount): Ditto.
526 (set_root_dir): Ditto.
527 (get_root_dir): Ditto.
528 * msg.cc (mbox): Ditto.
529 * net.cc (NetPage::OnNext): Ditto.
530 * package_db.cc (packagedb::flush): Ditto.
531 (packagedb::packages): Ditto.
532 (packagedb::categories): Ditto.
533 * package_db.h: Update includes for String usage.
534 (packagedb::packages): Update for String usage.
535 (packagedb::categories): Ditto.
536 * package_meta.cc: Update includes for String usage.
537 (hash::add_subdirs): Update for String usage.
538 (packagemeta::uninstall): Ditto.
539 (packagemeta::SDesc): Ditto.
540 (packagemeta::action_caption): Ditto.
541 * package_meta.h: Update includes for String usage.
542 (packagemeta::packagemeta): Update for String usage.
543 (packagemeta::~packagemeta): Ditto.
544 (packagemeta::uninstall): Ditto.
545 (packagemeta::SDesc): Ditto.
546 (packagemeta::action_caption): Ditto.
547 (package_source.cc site::site): Ditto.
548 (packagesource::set_canonical): Ditto.
549 (packagesource::set_cached): Ditto.
550 * package_source.h: Update includes for String usage.
551 (site::site): Update for String usage.
552 (packagesource::set_canonical): Ditto.
553 (packagesource::set_cached): Ditto.
554 (packagesource::packagesource): Ditto.
555 (packagesource::sites): Ditto.
556 (packagesource::cached): Ditto.
557 * package_version.h: Update includes for String usage.
558 (Dependency): Update for String usage.
559 (packageversion): Ditto.
560 * postinstall.cc: Update includes for String usage.
561 (do_postinstall): Update for String usage.
562 * res.rc (IDD_LOCAL_DIR): Fix typo again!
563 * rfc1738.cc (rfc1738_escape_part): Update for String usage.
564 * rfc1738.h: Update includes for String usage.
565 (rfc1738_escape_part): Update for String usage.
566 * root.cc: Update includes for String usage.
567 (check_if_enable_next): Update for String usage.
568 (save_dialog): Ditto.
570 (directory_is_absolute): Ditto.
571 (directory_is_rootdir): Ditto.
572 (directory_has_spaces): Ditto.
573 (RootPage::OnInit): Ditto.
574 (RootPage::OnNext): Ditto.
575 * script.cc: Update includes for String usage.
576 (init_run_script): Update for String usage.
579 (try_run_script): Ditto.
580 * script.h: Update includes for String usage.
581 (run_script): Update for String usage.
582 (try_run_script): Ditto.
583 * site.cc site_list): Ditto.
584 (all_site_list): Ditto.
585 (other_url): Eliminate.
586 (site_list_type::init): Update for String usage.
587 (site_list_type::site_list_type): Ditto.
588 (get_site_list): Ditto.
589 (get_saved_sites): Ditto.
590 (do_download_site_info_thread): Ditto.
591 (SitePage::OnNext): Ditto.
592 (SitePage::OnActivate): Ditto.
593 (SitePage::PopulateListBox): Ditto.
594 (SitePage::OnMessageCmd): Handle empty url's.
595 * site.h: Update includes for String usage.
596 (site_list_type::site_list_type): Update for String usage.
597 (site_list_type::init): Ditto.
598 (site_list_type::~site_list_type): Ditto.
599 (site_list_type::url): Ditto.
600 (site_list_type::displayed_url): Ditto.
601 (site_list_type::key): Ditto.
602 * source.cc (SourcePage::OnDeactivate): Ditto.
603 * state.h: Update includes for String usage.
604 (local_dir): Update for String usage.
605 (trust_level): Remove.
606 * version.cc: Update includes for String usage.
607 (canonicalize_version): Update for String usage.
608 * version.h: Update includes for String usage.
609 (canonicalize_version): Update for String usage.
611 2002-02-15 Christopher Faylor <cgf@redhat.com>
613 * filemanip.c (parse_filename): Revert previous change.
615 2002-02-14 Christopher Faylor <cgf@redhat.com>
617 * filemanip.c (parse_filename): Don't treat '_' as a version number
620 2002-01-29 Christopher Faylor <cgf@redhat.com>
622 * configure: Regenerate.
624 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
626 * res.rc (IDD_LOCAL_DIR): Fix typo reported by Rene
627 <Hoeck@extern.lrz-muenchen.de>
629 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
631 * README: Update Todo's.
632 * list.h: Run indent.
633 (list): New methods checksize and insert to reduce code duplication.
634 (list::registerbykey): Use them.
635 (list::registerbyobject): Ditto.
636 (list::removebyindex): Copy each object individually - safe for non
638 (list::checksize): Implement.
639 (list::insert): Implement.
641 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
643 * Makefile.in: Remove the dlmalloc object by default.
644 * install.cc (do_install_thread): Remove the mallinfo call for 'working
645 around' the crashing issue.
646 * package_db.h: Include <string.h> - it's needed to parse this.
647 * package_source.cc (site::site): Move here from the header file.
648 * package_source.h (site): Stop the constructor being inlinable.
650 2002-01-26 Robert Collins <rbtcollins@hotmail.com>
652 * filemanip.cc (find_tar_ext): Add a descriptive comment.
654 2002-01-25 Michael A Chase <mchase@ix.netcom.com>
656 * filemanip.cc (find_tar_ext): Clean up tests for .tar.gz and .tar.
657 * fromcwd.cc (do_fromcwd): Expand FIXME comment in source file check.
658 * install.cc (install_one_source): Add space between words in log()
661 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
663 * log.cc (exit_setup): When saving to the download dir, explicity
666 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
668 * archive.cc (extract_file): Separate out the prefix and the URL
670 * archive.h (archive::extract_file): Ditto.
671 * install.cc (install_one_source): Ditto. Use the new
672 archive::extract_file syntax.
673 (replace_one): Use the new syntax.
674 (io_stream.cc): Add some log info for links.
676 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
678 * PickCategoryLine.cc (PickCategoryLine::actiontext): Remove.
679 (PickCategoryLine::paint): Use the new action method.
680 (PickCategoryLine::click): Set the action for all children.
681 (PickCategoryLine::set_action): New method.
682 * PickCategoryLine.h (PickCategoryLine::-actions): Remove.
683 (PickCategoryLine::current_default): Use packagemeta _actions class.
684 * PickLine.h (PickLine::set_action): New abstract method that requires
685 including package_meta.h.
686 * PickPackageLine.cc (PickPackageLine::set_action): New method.
687 * PickPackageLine.h (PickPackageLine::set_action): Declare this.
688 * list.h (getbykey): A const correctness fix.
689 * package_meta.cc: Run indent.
690 (packagemeta::Default_action): New const.
691 (packagemeta::Install_action): Ditto.
692 (packagemeta::Reinstall_action): Ditto.
693 (packagemeta::Uninstall_action): Ditto.
694 (packagemeta::_actions::caption): New method.
695 (packagemeta::_actions::operator++): Ditto.
696 (packagemeta::set_action): New overload.
697 * package_meta.h (packagemeta::_actions): New class.
698 (packagemeta::set_action): Declare this.
700 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
702 * Makefile.in (OBJS): Remove supp.o - it appears accidental.
703 * choose.cc: Don't define alloca anymore, it's done in win32.h
705 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
707 * PickPackageLine.cc: New file.
708 * PickPackageLine.h: New file.
709 * PickLine.cc: New file.
710 * PickLine.h: New file.
711 * PickCategoryLine.cc: New file.
712 * PickCategoryLine.h: New file.
713 * PickView.cc: New file.
714 * PickView.h: New file.
715 * Makefile.in: Add new objects to setup.exe.
716 Backout -fno-exceptions option.
717 * choose.cc: Include PickView.h.
718 Remove view related defines and static variables.
719 (_pkg_headers): Moved to PickView.cc.
720 (_cat_headers): Ditto.
721 (view::views::Unknown): Ditto.
722 (view::views::PackageFull):
723 (view::views::Package):
724 (view::views::Category):
725 (pkgtrustp): Moved to package_meta.cc.
726 (add_required): Moved to package_meta.cc.
727 (pick_category_line::empty): Moved to PickCategoryLine.cc
728 (paint): Adjust for moved static variables.
729 (view::scroll): Moved to PickView.cc.
730 (list_vscroll): Adjust for moved static variables.
731 (list_hscroll): Ditto.
733 (note_width): Moved to PickView.cc.
735 (view::set_view_mode): Ditto.
736 (view::mode_caption): Ditto.
737 (view::views::caption): Ditto.
738 (view::set_headers): Ditto.
739 (DoInsertItem): Ditto.
740 (view::init_headers): Ditto.
741 (view::insert_pkg): Ditto.
742 (view::insert_category): Ditto.
743 (view::clear_view): Ditto.
744 (view::views::operator++): Ditto.
745 (view::click): Ditto.
746 (default_trust): Adjust for moved statics.
747 (pick_pkg_line::paint): Moved to PickPackageLine.cc.
748 (pick_pkg_line::click): Ditto.
749 (pick_category_line::actiontext): Moved to PickCategoryLine.cc
750 (pick_category_line::paint): Ditto.
751 (pick_category_line::click): Ditto.
752 (set_view_mode): Adjust for moved statics.
753 (create_listview): Ditto.
754 * choose.h: Remove Category and packagemeta forward defines - not needed.
755 Don't include unneeded headers list and package_meta.
756 (_header): Move to PickView.h.
757 (pick_line): Move to PickLine.h.
758 (pick_pkg_line): Move to PickPackageLine.h.
759 (pick_category_line): Move to PickCategoryLine.h.
760 (view): Move to PickView.h.
761 * ini.h (trusts): Move to package_meta.h.
762 * package_meta.h (trusts): New enum.
763 (packagemeta::set_requirements): New helper method.
764 (packagemeta::trustp): Ditto.
766 2002-01-21 Christopher Faylor <cgf@redhat.com>
768 * choose.h (view): Move forward declaration of views into public area
769 or g++ v3 will complain.
771 2002-01-21 Christopher Faylor <cgf@redhat.com>
773 * Makefile.in (CXXFLAGS): Add -fno-exceptions.
774 * win32.h (alloca): Define as __builtin_alloca.
775 * io_stream_memory.cc: Add include file.
777 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
779 * archive_tar.cc (archive_tar::~archive_tar): Mark the stream as destroyed.
780 * archive_tar_file.cc (archive_tar_file::~archive_tar_file): Ditto.
781 * compress.cc (compress::~compress): Be less verbose.
782 * compress_bz.cc (compress_bz::~compress_bz): Ditto.
783 Mark the stream as destroyed.
784 * compress_gz.cc (compress_gz::~compress_gz): Mark the stream as destroyed.
785 * io_stream.cc (io_stream::~io_stream): Only warn when the stream is not marked
787 * io_stream_cygfile.cc (io_stream_cygfile::~io_stream_cygfile): Mark the
789 * io_stream_file.cc (io_stream_file::~io_stream_file): Ditto.
790 * io_stream_memory.cc (io_stream_memory::~io_stream_memory): Ditto.
792 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
794 * Makefile.in (CFLAGS): Allow customisable malloc debug flags.
795 (OBJS): Link in malloc objects.
796 * category.cc (category): Use new char, not strdup.
797 * choose.cc (pick_pkg_line::paint): Allow for the regionsize to shrink.
798 (do_choose): Use new char, not malloc.
799 * concat.cc (vconcat): Ditto.
800 * cygpackage.cc (cygpackage): Use new char, not strdup.
801 (set_canonical_version): Ditto.
802 (cygpackage::destroy): Use delete[], not free.
803 * desktop.cc (uexists): Ditto.
804 * dialog.cc (egest): Use new char, not strdup.
805 * dlmalloc.c: New file - Doug Lea's malloc 2.7.0
806 * hash.cc (hash::hash): Use delete instead of free.
807 (hash::add): Use new char, not strdup.
808 * ini.cc (do_remote_ini): Use delete[] not free.
809 * inilex.l: Use new char, not strdup.
812 Use a local package_db rather than a static one.
813 * install.cc (struct mallinfo): Workaround an apparent dlmalloc bug.
814 (do_install_thread): Call mallinfo to force a consistency check. Appears
815 to fix a 'inuse' error in -DDEBUG builds.
816 Use delete[] for strings.
817 * io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile): Use new char,
819 (io_stream_cygfile::~io_stream_cygfile): Use delete[], not free.
820 (io_stream_cygfile::remove): Use new char, not strdup.
821 * io_stream_file.cc (io_stream_file::io_stream_file): Use new char, not strdup.
822 (io_stream_file::io_stream_file): Use delete[], not free.
823 (io_stream_file::remove): Use new char, not strdup.
824 * io_stream_memory.cc (memblock::~memblock): Use delete[], not free.
825 * io_stream_memory.h (memblock): Use new char, not malloc.
826 * localdir.cc (LocalDirPage::OnInit): Use new char, not strdup.
827 * main.cc (WinMain): Use new char, not strdup.
828 * mount.cc (find2): Use new char, not malloc.
829 (read_mounts): Ditto.
830 (cygpath): Use new char, not strdup.
831 * netio.cc (NetIO::~NetIO): Use delete[], not free.
832 (NetIO::set_url): Use new char, not strdup.
833 (NetIO::get_ftp_auth): Use delete[], not free.
834 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
835 Use new char instead of strdup.
836 * nio-http.cc (base64_encode): Use new char, not malloc.
837 * package_meta.cc (hash::add_subdirs): Use new char instead of strdup.
838 * package_source.h (~ packagesource): Use delete[] instead of delete.
839 * port.h (strdup): Deprecate the use of strdup.
840 * rfc1738.cc (rfc1738_do_escape): Use new char, not calloc.
841 * script.cc (init_run_script): Us delete[], not free.
843 * simpsock.cc (SimpleSocket::fill): Use new char, not malloc.
844 (SimpleSocket::invalidate): Use delete[], not free.
845 * site.cc (site_list_type::init): Use new char instead of strdup.
846 * site.h (~site_list_type): Use delete[], not free.
848 2002-01-20 Robert Collins <rbtcollins@hotmail.com>
850 * Makefile.in (OBJS): Add win32.o - win32 support functions.
851 * README: Update todos.
852 * archive.cc (extract_file): Support a suffix for appending to extracted files.
854 * choose.cc (set_view_mode): Use the new view::views class.
855 (view::views::Unknown): New static for defaulting view::views variables.
856 (view::views::PackageFull): New static for the current view.
857 (view::views::Package): Ditto.
858 (view::views::Category): Ditto.
859 (topbucket::paint): Remove.
860 (topbucket::empty): Rename to pick_category_line::empty.
861 (topbucket::~topbucket): Remove.
862 (paint): Use the new view::views class.
863 Don't paint 'all' as a category when showing package categoies.
864 (pick_category_line::actiontext): New method.
865 (pick_category_line::paint): Make showing the category optional, and show the
867 (pick_category_line::click): Make showing the category optional, and
868 differentiate between the name being clicked, and the action description.
869 (view::view): Use the new view::views class.
870 (view::set_view_mode): Ditto.
871 (view::mode_caption): Ditto.
872 (view::views::caption): New method.
873 (view::set_headers): Use the new view::views class.
874 (view::clear_view): Ditto.
875 (viewsplusplus): Replaced by
876 (view::views::operator++): New operator.
877 (set_view_mode): Use the new view::views class.
878 (create_listview): Ditto.
880 * choose.h (actions): Remove.
882 (pick_line): Add a new convenience constructor.
883 (top_bucket): Remove.
884 (pick_category_line): Reparent under pick_line, and adsorb top_bucket.
885 (view::views): New class.
886 * ini.h: Don't include choose.h
887 (is_download_action): Remove.
888 (is_upgrade_action): Remove.
889 (is_uninstall_action): Remove.
890 (is_full_action): Remove.
891 * install.cc (num_replacements): New static.
892 (rebootneeded): Ditto.
893 (replace_one): Handle upgrades separate from removal or new installs.
894 (install_one_source): Handle in use files.
895 (install_one): Don't repeat upgrades.
896 (do_install_thread): Initialize new statics.
897 Order actions as uninstall, replace, install.
898 Warn about rebooting if needed.
899 * res.rc (IDS_REBOOT_REQUIRED): New string.
900 * resource.h (IDS_REBOOT_REQUIRED): Give value.
901 * win32.h: Declare class Win32, and update copyright and intent message.
902 * win32.cc: New file.
904 2002-01-15 Corinna Vinschen <corinna@vinschen.de>
906 * io_stream.cc (io_stream::gets): Eliminate trailing new line chars.
907 * package_meta.cc (packagemeta::uninstall): Check for additional
908 Windows shortcut. Unset R/O file attribute before trying to delete
911 2002-01-09 Robert Collins <rbtcollins@hotmail.com>
913 * choose.cc (pkgtrustp): Fall back to installed if a package is not present in
914 the current trust level. For prev, fall back via curr.
915 (set_existence): Allow sources with no sites, but cached files to be
917 (pick_category_line::paint): Start drawing clickable categories.
918 * fromcwd.cc (found_file): Reinstate local file scanning.
920 2002-01-07 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
922 * fromcwd.cc: Run indent.
923 (do_fromcwd): Reverse sense of comment. Set next_dialog
924 to IDD_CHOOSER instead of IDD_CHOOSE.
925 * ini.cc (find_routine): Remove "/" from "/setup.ini".
927 2001-01-07 Robert Collins <rbtcollins@hotmail.com>
929 * category.cc (Categorycmp): Add a const safe version.
930 * category.h (Categorycmp): Add a const safe version.
931 (Category): Add operator ==.
932 * choose.cc (fill_missing_category): Add every package to "All".
933 (pick_category_line::paint): Add support for hidden labels, and a tree depth.
934 (pick_category_line::click): Ditto.
935 (view::view): Pass in a top level category to use.
936 (view::insert_pkg): Special case - skip category "All".
937 (view::insert_category): Ditto.
938 (view::clear_view): Set the contents label state.
939 (create_listview): Pass in a top level category to view().
940 * choose.h (topbucket): Make bucket available to derived classes.
941 (pick_category_line): Add support for hidden labels, and a tree depth.
942 Remove our second copy of bucket.
943 (view): Pass in a top level category to the constructor.
944 Use pick_category_line to allow three level display.
946 2001-01-06 Robert Collins <rbtcollins@hotmail.com>
948 * cygpackage.h (cygpackage): Make set_[s|l]desc virtual.
949 * iniparse.y (add_correct_version): Copy descriptions across.
950 * package_meta.cc (SDesc): Iterate through versions, return the first with a
952 * package_version.h (packageversion): Add new virtuals set_[l|s]desc.
954 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
956 * script.cc (run_script): Change cygpath:// to cygfile://.
957 * install.cc (do_install_thread): Fix off-by-one errors.
959 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
961 * package_db.cc (packagedb::flush): Fix an off-by-one error.
963 2002-01-04 Jan Nieuwenhuizen <janneke@gnu.org>
965 * Makefile.in (realclean): more clean.
966 (OBJS): Add script.o.
967 * postinstall.cc (run_script_in_etc_postinstall): New function.
968 (do_postinstall): Split off new funtion init_run_script ().
971 (run_script): Move to script.cc. Replace some deprecated remove
974 * script.cc: New file.
975 * Forward port cygwin-20010707.jcn3.patch.
976 * package_meta.cc (uninstall): Run pre- and postremove scripts.
977 * install.cc: Typo fix.
978 (do_install): Run script initialisation.
980 2001-01-04 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
982 * cistring.cc: Run d2u.
983 * cistring.h: Run d2u.
985 * desktop.cc (etc_profile): Remove "test -f ./.bashrc && . ./.bashrc"
986 from the generated /etc/profile. Bash will source this file
987 automatically, and having this here merely results in .bashrc being
988 executed twice. Run d2u.
989 * desktop.h: Run d2u.
991 * propsheet.cc: Run d2u.
992 (PropSheetProc): New function. Add minimize box here instead of in
993 PropertyPage::DialogProc.
994 (PropSheet::Create): Change to use creation callback PropSheetProc.
995 (DLGTEMPLATEEX): Add 'hidden' Windows struct definition.
997 * propsheet.h: Run indent, d2u.
998 * proppage.h: Run indent, d2u.
1000 * proppage.cc: Run d2u.
1001 (PropertyPage::DialogProc): Remove minimize-box-adding
1002 functionality. Remove commented-out "PropSheet_SetWizButtons" calls.
1003 Add support for calling virtual OnMessageCmd. Add setting of fonts in
1004 WM_INITDIALOG handler.
1005 (resource.h): New include for resource IDs.
1007 * res.rc: Resize and rearrange property page dialog templates
1008 to bring them in line with "Microsoft's Backward Compatible Wizard 97"
1009 specification. Run d2u.
1010 (IDD_SITE): Add an edit control and an "Add" button in order to
1011 combine the IDD_SITE and IDD_OTHER_URL functionality onto one page.
1012 (IDD_OTHER_URL): Remove dialog template.
1013 (IDD_DLSTATUS): Remove dialog template.
1016 (SitePage::OnBack): Remove NEXT() macro invocation.
1017 (SitePage::OnActivate): New member function.
1018 (load_dialog): Remove. Functionality subsumed into
1019 SitePage::OnActivate.
1020 (save_dialog): Change to support both list and user URLs. Remove
1021 OTHER_IDX and mirror_idx logic.
1022 (SitePage::PopulateListBox): New member function.
1023 (SitePage::CheckControlsAndDisableAccordingly): New member function.
1024 (SitePage::OnMessageCmd): New override.
1025 (check_if_enable_next): Remove.
1026 (dialog_cmd): Remove.
1027 (do_download_site_info_thread): Remove calls to NEXT() macro.
1028 (SitePage::Create): Call the single-param PropertyPage::Create
1030 (other_url): New static taken from other.cc.
1031 (SitePage::OnNext): Remove mirror_idx logic.
1032 (SitePage::OnInit): Remove "Other URL" entry from list box. Remove
1033 list box populating code, now handled in SitePage::PopulateListBox.
1034 (mirror_idx, NO_IDX, OTHER_IDX): Remove.
1035 (save_site_url): Fix potential buffer overflow problem. Switched to
1036 TCHAR in grossly premature preparation for multilingual support.
1038 (SitePage::OnActivate): New member function.
1039 (SitePage::CheckControlsAndDisableAccordingly) New member.
1040 (SitePage::OnMessageCmd): New override.
1041 (do_download_site_info_thread): Add MessageBox call on failure to
1044 * splash.cc: Run d2u.
1045 (SplashPage::OnInit): Set the font for the title.
1046 * splash.h: Run d2u.
1048 * threebar.cc: Run d2u.
1049 * threebar.h: Run d2u.
1051 * window.h: Run d2u.
1052 (Window::IsButtonChecked): New member function declaration.
1053 (Window::OnMessageCmd): New member function.
1054 (Window::SetDlgItemFont): New member function declaration.
1055 (Window::MAXFONTS, Window::Fonts, Window::FontCounter): New data
1057 * window.cc: Run d2u.
1058 (Window::IsButtonChecked): New member function definition.
1059 (Window::SetDlgItemFont): New member function definition.
1060 (Window::Window): Add initialization for FontCounter.
1061 (Window::~Window): Delete any fonts we created.
1063 * geturl.cc: Run d2u.
1064 (progress): Remove the "3" field width from the "%3d"
1065 percent-complete format indicator. Causes line to not start at
1066 beginning of text box, and does little to help with "jumping", since
1067 the "bytes downloaded so far" field is variable-width anyway. Change
1068 kb/s format field to "%03.1" to 0-pad the kb/s number in the event of
1069 painfully slow connections, or temporary slowdowns in faster
1070 connections should such more-instantaneous functionality become
1074 (NetPage::OnMessageCmd): New member function declaration.
1075 (NetPage::CheckIfEnableNext): New member function declaration.
1077 (NetPage::OnMessageCmd): New member function definition.
1078 (dialog_cmd): Remove, subsumed into NetPage::OnMessageCmd.
1079 (check_if_enable_next): Remove.
1080 (NetPage::CheckIfEnableNext): New member function, subsumes
1081 check_if_enable_next.
1082 (propsheet.h): Add include.
1083 (NetPage::Init): Add call to CheckIfEnableNext.
1084 (load_dialog): Remove call to check_if_enable_next.
1085 (NetPage::Create): Call single-template-ID-parameter overload of
1086 PropertyPage::Create instead of three-parameter one.
1088 * Makefile.in (OBJS): Remove other.o.
1089 * other.cc: Remove file.
1091 2002-01-01 Robert Collins <rbtcollins@hotmail.com>
1093 * README: Update TODO's.
1094 * choose.cc (set_existence): Delete non installed packages with no
1096 (fill_missing_category): Fix an off-by-one error.
1097 (default_trust): Ditto. Also delete any unused categories.
1098 (view::init_headers): Fix an off-by-one error.
1099 (set_view_mode): Ditto.
1100 (set_view_mode): Ditto.
1101 (create_listview): Ditto.
1102 (dialog_cmd): Ditto.
1104 * io_stream.cc: Indent.
1105 * io_stream.h: Ditto.
1106 * package_db.cc: Ditto.
1107 * package_meta.h: Const correctness for SDesc ();
1108 * proppage.cc: Run d2u and indent.
1109 * propsheet.cc: Run d2u and indent.
1110 * window.cc: Run d2u and indent.
1111 * window.h: Run d2u and indent.
1113 2001-12-28 Christopher Faylor <cgf@redhat.com>
1115 * Makefile.in (iniparse.o): Accommodate newer bisons.
1117 2001-12-23 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1119 * window.h (Window): New file, new class.
1120 * window.cc (Window): New file, new class.
1122 * threebar.h (ThreeBarProgressPage): New file, new class.
1123 * threebar.cc (ThreeBarProgressPage): New file, new class.
1125 * splash.h (SplashPage): New file, new class.
1126 * splash.cc (SplashPage): Replace file with implementation of new
1129 * source.h (SourcePage): New file, new class.
1130 * source.cc: Run indent.
1131 (SourcePage): Add class implementation to this file.
1132 (do_source): Remove, functionality subsumed by SourcePage::Create()
1133 and SourcePage::OnDeactivate().
1134 (dialog_proc): Remove, functionality subsumed by
1135 SourcePage::OnActivate().
1137 * site.h: Run indent.
1138 (SitePage): Add class declaration.
1139 * site.cc: Run indent.
1140 (SitePage): Add class implementation.
1141 (do_download_site_info_thread): New function.
1142 (context): New var. Context info for do_download_site_info_thread().
1143 (do_download_site_info): New function.
1144 (SitePage::Create, SitePage::OnInit SitePage::OnNext)
1145 (SitePage::OnBack): SitePage class implementation..
1146 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers, now handled
1147 by SitePage members.
1148 (dialog_proc): Remove, now handled by SitePage::OnInit and base class
1150 (do_site): Remove, now handled by do_download_site_info_thread() and
1151 SitePage::OnNext functionality.
1152 (get_site_list): Remove dismiss_url_status_dialog() call.
1154 * root.h (RootPage): New file, new class.
1155 * root.cc: Run indent.
1156 (dialog_cmd): Pass parent HWND parameter to note(), yesno().
1157 (dialog_proc): Remove.
1159 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL clauses from switch.
1160 (RootPage::OnInit): New member function. Move get_root_dir() logic to
1161 here from do_root().
1162 (RootPage::Create): New member function.
1163 (RootPage::OnNext): New member function. Move IDOK logic from
1164 dialog_cmd() to here.
1165 (RootPage::OnBack): New member function.
1167 * propsheet.h (PropSheet): New file, new class.
1168 * propsheet.cc (PropSheet): New file, new class.
1170 * proppage.h (PropertyPage): New file, new class.
1171 * proppage.cc (PropertyPage): New file, new class.
1173 * postinstall.cc (do_postinstall): Add owner parameter.
1175 * other.cc (do_other): Add owner parameter.
1177 * nio-file.cc (NetIO::Purl): Pass NULL parent param to note().
1178 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Pass NULL parent param to
1180 * nio-http.cc (retry_get): Pass NULL parent param to get_auth(),
1183 * nio-ie5.cc (NetIO::_url): Pass NULL parent param to note(),
1184 get_auth(), get_proxy_auth().
1186 * netio.h (get_auth, get_proxy_auth, get_ftp_auth): Add owner param.
1187 * netio.cc (auth_common, NetIO::get_auth, NetIO::get_proxy_auth,
1188 NetIO::get_ftp_auth)
1189 (auth_common): Add owner param. Pass owner param to DialogBox.
1190 (NetIO::get_auth, NetIO::get_proxy_auth, NetIO::get_ftp_auth): Pass
1191 owner param to auth_common().
1193 * net.h (NetPage): New file, new class.
1194 * net.cc: Run indent.
1195 (net.h, threebar.h): Add includes.
1196 (Progress): Add extern.
1197 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, now handled by
1198 property sheet logic. Saved temporarily for reference.
1199 (NetPage::Create, NetPage::OnInit, NetPage::OnDeactivate,
1200 NetPage::OnNext, NetPage::OnBack):
1201 New implementation of NetPage class members.
1203 (dialog_proc): Remove.
1205 * msg.h (fatal, note, yesno): Add owner param.
1206 * msg.c (fatal, note, yesno, mbox): Add owner param.
1207 (mbox): Remove MB_TOPMOST from MessageBox call. Unnecessary and wrong
1208 now that we have a parent.
1210 * main.cc: Run indent.
1211 (commctrl.h, proppage.h, propsheet.h, splash.h, source.h)
1212 (localdir.h, net.h, site.h, choose.h, threebar.h, desktop.h): Include
1214 (root_dialog_proc): extern into this file.
1215 (Progress): Progress dialog defined here, used in several other files.
1216 (WinMain): Instantiate and create Splash, Source, Root, LocalDir, Net,
1217 Site, Chooser, Desktop pages and MainWindow sheet. Call
1218 InitCommonControls() to make sure Windows is set up for our use of
1219 property sheets. Add pages to sheet.
1220 Call MainWindow.Create() to "DoModal". Remove main loop, that logic is
1221 now handled by the PropSheet class.
1222 (root.h): Add include.
1224 * log.cc (log_save): Pass NULL parent to fatal().
1225 (exit_setup): Pass NULL parent to note().
1227 * localdir.h (LocalDirPage): New file, new class.
1228 * localdir.cc: Run indent.
1229 (localdir.h): New include.
1230 (threebar.h): New include.
1231 (Progress): extern into this file.
1232 (LocalDirPage::Create, LocalDirPage::OnInit, LocalDirPage::OnActivate)
1233 (LocalDirPage::OnNext, LocalDirPage::OnBack): Implementation of
1235 (LocalDirPage::OnNext): Move log() call from do_local_dir() to here.
1236 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers.
1237 (do_local_dir): Remove.
1238 (dialog_proc): Remove.
1239 (cwd): Remove, not used by anything.
1241 * install.cc: Run indent.
1242 (process.h, threebar.h): New includes.
1243 (Progress): extern into this file.
1244 (ins_dialog, ins_action, ins_pkgname, ins_filename, ins_pprogress)
1245 (ins_iprogress, ins_diskfull, init_event): Remove, now handled by
1246 ThreeBarProgressPage.
1247 (dialog_cmd, dialog_proc, dialog): Removed, handled in
1248 ThreeBarProgressPage.
1249 (init_dialog): Remove all mention of the above ins_* handles. Now
1250 handled in ThreeBarProgressPage. Altered SetWindowText()s to call
1251 ThreeBarProgressPage instance Progress directly.
1252 (progress): Alter bar update logic to call ThreeBarProgressPage
1253 instance Progress directly.
1254 (uninstall_one): Alter SetWindowText()s to call ThreeBarProgressPage
1255 instance Progress directly.
1256 (install_one_source): Alter SetWindowText()s to call
1257 ThreeBarProgressPage
1258 instance Progress directly. Pass NULL parent to note().
1259 (do_install_thread): Rename from do_install(), added owner param.
1260 Alter SetWindowText()s to call ThreeBarProgressPage instance Progress
1262 Remove dismiss_url_status_dialog() call, no longer necessary. Remove
1263 ShowWindow(<hide>) call, also unnecessary now. Pass owner handle to
1265 (do_install_reflector): New function.
1266 (do_install): New function.
1268 * ini.cc (process.h, threebar.h): New includes.
1269 (Progress): externed into this file.
1270 (find_routine): Pass NULL parent to note().
1271 (do_local_ini): Add owner param.
1272 (do_remote_ini): Add owner param. Pass owner to get_url_to_membuf()
1273 and note(). Remove call to dismiss_url_status_dialog().
1274 (do_ini_thread): Rename from do_ini(). Add owner param. Pass owner to
1275 do_local_ini(), do_remote_ini(), yesno(), and note(). Set next_dialog
1276 to IDD_CHOOSER on exit.
1277 (do_ini_thread_reflector): New function.
1278 (context): New var. Context for do_ini_thread.
1279 (do_ini): New function.
1281 * geturl.h (get_url_to_membuf, get_url_to_string, get_url_to_file): Add
1283 * geturl.cc (gw_dialog, gw_url, gw_rate, gw_progress, gw_pprogress,
1285 (gw_progress_text, gw_pprogress_text, gw_iprogress_text, init_event):
1287 (threebar.h): New include.
1288 (Progress): externed into this file.
1289 (dialog_cmd, dialog_proc, dialog): Removed, handled by
1290 ThreeBarProgressPage now.
1291 (init_dialog): Remove "if (gw_dialog == 0)" clause. Alter
1293 and bar setting SendMessage()s to call ThreeBarProgressPage instance
1294 Progress directly. Remove "one bar only" logic, this is now handled
1295 explicitly in the ThreeBarProgressPage class.
1296 (progress): Altered bar and text update logic to call
1297 ThreeBarProgressPage instance Progress directly. Changed kbps
1298 calculation to floating point and now print out a single decimal
1300 (get_url_to_membuf): Add owner param. Pass it to init_dialog.
1301 (get_url_to_string): Add owner param. Pass it to get_url_to_membuf.
1302 (get_url_to_file): Add owner param. Pass it to init_dialog. Alter bar
1303 update logic to call ThreeBarProgressPage instance Progress directly.
1304 (dismiss_url_status_dialog): Remove.
1306 * fromcwd.cc (do_fromcwd): Add owner param. Initialize found_ini to
1309 * download.cc: Run indent.
1310 (process.h, threebar.h): New includes.
1311 (Progress): externed into this file.
1312 (download_one): Add owner param. Pass it to get_url_to_file().
1313 (do_download_thread): Renamed from do_download. Add owner param. When
1314 calculating total_download_bytes, take binpicked and srcpicked into
1315 account. Remove call to dismiss_url_status_dialog(), no longer needed.
1316 Pass owner handle to download_one() and yesno().
1317 (do_download_reflector, do_download): New functions.
1318 (context): New var. Context for do_download_thread().
1320 * dialog.h (D(x)): Add owner param.
1322 * desktop.h (DesktopSetupPage): New file, new class.
1323 * desktop.cc: Run indent.
1324 (desktop.h): Add include.
1325 (dialog_proc, do_desktop): Remove, now handled in
1326 DesktopSetupPage::OnInit().
1327 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, handled in
1328 DesktopSetupPage::OnFinish(), DesktopSetupPage::OnBack(), and PropSheet
1330 (DesktopSetupPage::Create, DesktopSetupPage::OnInit)
1331 (DesktopSetupPage::OnBack, DesktopSetupPage::OnFinish): Implementation
1332 of DesktopSetupPage.
1334 * cistring.h: New file, new class.
1335 * cistring.cc: New file, new class.
1337 * choose.h: Run indent.
1338 (Chooser): New class declaration.
1339 * choose.cc: Run indent.
1340 (do_choose): Add owner param. Pass it to DialogBox() and
1342 (Chooser): New class implementation.
1344 * res.rc (IDS_VERSION_INFO): New string.
1345 (IDD_SOURCE, IDD_LOCAL_DIR, IDD_ROOT, IDD_SITE, IDD_OTHER_URL)
1346 (IDD_DLSTATUS, IDD_INSTATUS, IDD_SPLASH, IDD_CHOOSE, IDD_DESKTOP):
1347 Change WS_POPUP to WS_CHILD. Numerous positioning/size changes
1349 (IDD_CHOOSE): Give template the WS_EX_CONTROLPARENT style to enable
1350 TAB control navigation etc. Give the controls a reasonable tab order.
1351 Grouped radio buttons. Something's still not right, can't tab away
1352 from back/next/cancel group reliably.
1353 * resource.h (IDD_CHOOSER): New dialog ID.
1355 * Makefile.in (OBJS): Add cistring.o, proppage.o, propsheet.o,
1356 threebar.o, and window.o.
1358 2001-12-21 Robert Collins <rbtcollins@hotmail.com>
1360 * choose.cc (listview_proc): Update the scrollbar when the headers are dragged.
1361 (pick_pkg_line::paint): Clip columns to prevent overlap.
1363 2001-12-20 Robert Collins <rbtcollins@hotmail.com>
1365 * Makefile.in: Add libcomctl32.a for setup.exe.
1366 * archive.h (archive): Prevent non-child direct creation of the class.
1367 * archive_tar.h (archive_tar): Prevent inaccurate synthetic copy and assignment.
1368 * choose.cc: Include commctrl for the choose header.
1369 (NEW_COL_SIZE_SLOP): Define without magic numbers.
1370 (pkgtrustp): Convert to function.
1371 (set_action): Remove.
1372 (add_required, fill_missing_category,default_trust): Use list syntax for
1375 (choose_caption): Remove.
1376 (topbucket::paint): New method.
1377 (topbucket::empty): Ditto.
1378 (topbucket::click): Ditto.
1379 (topbucket::~topbucket): Ditto.
1380 (paint): Remove i,ii and p as they are obsolete.
1381 Remove header drawing code.
1382 Use new chooser method to paint the chooser.
1383 Use new chooser itemcount method.
1384 (scroll_common): Rename to view::scroll.
1385 Scroll the header window separately.
1386 (list_vscroll, list_hscroll, list_click): Update for new chooser methods.
1387 (listview_proc): Look for header messages.
1388 (note_width): Accept stringless calls.
1389 (pick_line::set_line): Remove.
1390 (pick_line::paint): Remove.
1391 (pick_pkg_line::paint): Paint this one line, using the header column widths.
1392 (pick_category_line::paint): Paint this category, and anything in the bucket.
1393 (pick_line::click): Remove.
1394 (pick_pkg_line::click): Handle a click.
1395 (pick_category_line::click): Handle a click.
1396 (_view): Rename all to view.
1397 (view::view): Initialise the control contents.
1398 (view::set_headers): Work with the header control.
1399 (view::init_headers): Use list syntax for package list.
1400 Rearrange the width logic a little.
1401 (view::insert_pkg): Update to use the hierarchy.
1402 (view::insert_category): Ditto.
1403 (view::insert_at, view::insert_under): Remove.
1404 (view::clear_view): Update to use the hierarchy.
1405 (view::click): Update to use the hierarchy.
1406 (set_view_mode): Use list syntax for package list.
1407 Update for new chooser methods.
1408 (DoInsertItem): New helper function. (Needs a home somewhere).
1409 (create_listview): Remove choose control code and use the constructor instead.
1410 (dialog_cmd,scan2,do_choose): Use list syntax for package list.
1411 * choose.h: Include newly required headers list and package_meta.
1412 (_voew): Rename to view.
1413 (pick_line): Convert to an ABC.
1414 (pick_pkg_line): New class.
1415 (pick_catgory_line): New class.
1416 (topbucket): New class.
1417 (view::scroll): New method created from listview_scroll function.
1418 * desktop.cc (make_passwd_group): Use list syntax for package list.
1419 * download.cc (do_download): Use list syntax for package list.
1420 * fromcwd.cc (found_file): Use list syntax for package list.
1421 * iniparse.y (pacakges): Use list syntax for package list.
1422 * install.cc (uninstall_one): Use list syntax for package list.
1423 (do_install): Use list syntax for package list.
1424 * io_stream.h (io_stream): Prevent non-child direct creation of the class.
1425 Prevent inaccurate synthetic copy and assignment.
1426 * list.h: Include required header stdlib.
1427 Work on const correctness.
1428 * package_db.cc (packagedb::getpackagebyname): Remove.
1429 (packagedb::packagedb): Remove custom list code, and make db a local.
1430 (packagedb::getfirstpackage): Remove.
1431 (packagedb::getnextpackage): Remove.
1432 (packagedb::addpackage): Remove.
1433 (flush): Remove custom list code.
1434 (packagedb::registerpackage): Remove.
1435 (packagedb::packages): New static member.
1436 (packagedb::task): New static member.
1437 * package_db.h (PackageDBActions): New enum.
1438 (packagedb): Remove getfirstpackage, getnextpackage, getpackagebyname,
1439 addpackage, registerpackage, packages, packagecount, curr_package, db.
1441 * pacakge_meta.cc: Include package_db.h.
1442 (packagemeta::action_caption): New method.
1443 (packagemeta::set_action): New method.
1444 * package_meta.h (CategoryPackage): Initialise key.
1445 (packagemeta): Initialise key.
1446 Add set_action and action_caption methods.
1447 Prevent inaccurate synthetic copy and assignment.
1448 * resource.h (IDC_CHOOSE_LISTHEADER): New ID.
1449 * source.cc: Include package_db for db manipulation.
1450 (save_dialog): Set the db task.
1451 * win32.h: Tell the w32 include headers what IE version to expect/require.
1453 2001-12-06 Robert Collins <rbtcollins@hotmail.com>
1455 * README: Wishlist updates.
1457 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
1459 * package_db.cc (getnextpackage): Don't overrun the array.
1461 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
1463 * Makefile.in (OBJS): Add setup_version.o.
1464 (version.c): Rename to setup_version.
1465 * choose.cc (set_action): Prevent NULL pointer dereference.
1466 (package_sort): Remove.
1467 * fromcwd.cc (canonicalize_version): Moved to version.cc.
1468 (check_ini): New function for use with find to see if there is a cached setup.ini.
1469 (do_fromcwd): Check for a cached setup.ini from any mirror site.
1470 * ini.cc (find_routine): New function, for finding cached setup.ini's.
1471 (do_local_ini): New function, drives parsing of local ini's.
1472 (do_remote_ini): New function, drives parsing and caching of remote ini's.
1473 (do_ini): Move guts to do_remote_ini and do_local_ini.
1474 * list.h (removebyindex): New method.
1475 * other.cc (save_dialog): Use new site_list and all_site_list to add the
1476 new site to the site picklist.
1477 (dialog_cmd): Only save the dialog when exiting the dialog.
1478 * res.rc (IDD_SITE): Make IDC_URL_LIST a multiple-selection control.
1479 * site.cc (site_list_type): Move to site.h
1480 (site_list): New global, sites chosen by the user.
1481 (all_site_list): New global, all potential sites.
1482 (site_list_type::init): New method, parses a mirror.lst URL string into a
1483 site_list_type object.
1484 (site_list_type::site_list_type): New method.
1485 (check_if_enable_next): Examine the control, not a local variable.
1486 (load_dialog): Select all the user chosen sites by default.
1487 (save_dialog): Adjust for multiple selection semantics.
1488 (save_site_url): Save all user chosen sites.
1489 (dialog_cmd): Don't save the dialog when the listbox recieves a message -
1491 Remove obsolete other_url reference.
1492 (dialog_proc): Use all_site_list instead of site_list.
1493 (site_sort): Remove.
1494 (get_site_list): Remove malloc use - use list template instead.
1495 Move site_list_type initialisation to site_list_type::init().
1496 (get_initial_list_idx): Renamed to ...
1497 (get_saved_sites): this. Also read in multiple sites to the site_list.
1498 (do_site): Use all_site_list not site_list.
1499 Log all chosen sites.
1500 * site.h: New file, defines site related class, functions and variables.
1501 * state.h: Add comment about use of state.h
1502 (mirror_site): Remove.
1503 (other_url): Remove.
1504 (MIRROR_SITE): Remove.
1505 * version.cc: New file, for version-handling and related functions.
1507 2001-12-02 Robert Collins <rbtcollins@hotmail.com>
1509 * Makefile.in: Add filemanip.o to setup.
1510 * archive.cc (archive::extract_file): Use new io_stream method 'copy'.
1511 * archive_tar.h (archive_tar_file): Implement get_size virtual.
1512 (archive_tar): Ditto.
1513 * choose.cc (set_action): Use [] operator instead of getnth - its more readable.
1515 (_view::init_headers): Ditto.
1516 (_view::insert_pkg): Ditto.
1517 (set_view_mode): Ditto.
1520 (base): Moved to filemanip.cc.
1521 (find_tar_ext): Ditto.
1522 (parse_filename): Ditto.
1523 (_Info::_Info): Remove.
1524 * compress_bz.h (compress_bz): Implement get_size virtual.
1525 * compress_gz.h (compress_gz): Implement get_size virtual.
1526 * cygpackage.cc (cygpackage::destroy): Use array delete for char * objects.
1527 * download.cc (get_file_size): Move to filemanip.cc.
1528 (check_for_cached): Use [] operator instead of getnth - its more readable.
1529 (download_one): Ditto.
1530 * filemanip.cc: New file.
1531 * geturl.cc (init_dialog): Make url a pointer to const as it is not modified.
1532 (get_url_to_membuf): New function - contains get_url_to_string worker code.
1533 (get_url_to_string): Becomes a trivial wrapper to get_url_to_membuf.
1534 * geturl.h: Declare new prototype.
1535 * ini.cc (do_ini): Use get_url_to_membuf and pass ini_init an io_stream.
1536 Tidy up the error code a little.
1537 * ini.h: Remove __cplusplus protection for ini_init.
1539 * inilex.l: Remove old globals.
1540 (ini_init): Use an io_stream for getting the characters.
1541 (ini_getchar): Ditto.
1542 * iniparse.y: Declare yylex as a C++ function.
1543 (add_correct_version): Use [] operator instead of getnth - its more readable.
1544 * io_stream.cc (io_stream::move_copy): Use the copy method.
1545 (io_stream::copy): New method to simply copy from one stream to another.
1546 * io_stream.h (io_stream): New static method copy, and virtual method get_size.
1547 * io_stream_cygfile.cc (io_stream_cygfile::get_size): Implement this.
1548 * io_stream_cygfile.h (io_stream_cygfile::get_size): Declare this.
1549 * io_stream_file.cc (io_stream_file::get_size): Implement this.
1550 * io_stream_file.h (io_stream_file::get_size): Declare this.
1551 * io_stream_memory.h: Include errno as it's neded to parse the header.
1552 (io_stream_memory::get_size): Implement this.
1553 (io_stream_memory::st_size): Delete this.
1554 * list.h: Change getnth into the [] operator.
1555 * netio.cc (NetIO::NetIO): Change prototype to reflect Purl not being modified.
1556 (NetIO::set_url): Ditto.
1557 (NetIO::open): Ditto.
1558 * netio.h: As for netio.cc.
1559 * nio-file.cc (NetIO_File::NetIO_File): Change prototype to reflect Purl not
1561 * nio-file.h: Ditto.
1562 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
1563 * nio-ftp.h (NetIO_FTP::NetIO_FTP): Ditto.
1564 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Ditto.
1565 * nio-http.h (NetIO_HTTP::NetIO_HTTP): Ditto.
1566 * nio-i5.cc (NetIO_IE5::NetIO_IE5): Ditto.
1567 * nio-i5.h (NetIO_IE5::NetIO_IE5): Ditto.
1568 * package_meta.cc (packagemeta::~packagemeta): Bugfix: use array delete.
1569 * package_source.cc (packagesource::set_canonical): Ditto.
1570 (packagesource::set_cached): Ditto.
1571 * package_source.h (site::~site): Ditto.
1572 * site.cc: Change site_list_type to a class, and search and replace sort_key to
1575 2001-12-01 Robert Collins <rbtcollins@hotmail.com>
1577 * package_source.cc (packagesource::set_canonical): Filename was out by one.
1579 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
1581 * Makefile.in (OBJS): Remove category_list - it's not needed.
1582 * README: More wishlist updates.
1583 * category.cc (Category::Category): Initialise new members.
1584 (Categorycmp): New function.
1585 * category.h (Category): New member key for template use.
1586 * category_list.cc: Remove.
1587 * category_list.h: Remove.
1588 (Categorycmp): New function prototype.
1589 * choose.cc: Remove category_list - not needed.
1590 (set_action): Only show the 'source' option when the source is actually
1592 (add_required): Fix recursion limiter to 5.
1593 (fill_missing_category): Use list access.
1594 (default_trust): Ditto.
1595 (pick_line::paint): Ditto.
1596 (_view::init_headers): Ditto.
1597 (_view::insert_pkg): Ditto.
1598 (_view::insert_category): Ditto.
1599 (_view::click): Ditto.
1600 (set_view_mode): Ditto.
1602 * cygpackage.h: Remove category_list - not needed.
1603 * geturl.cc (get_url_to_string): Fix null byte insertion.
1604 * inipatse.y: Remove category_list - not needed.
1605 (categories): Use list access.
1606 * package_db.cc: Ditto.
1607 * package_db.h: Remove category_list - not needed.
1608 (packagedb): Use the list template for categories.
1609 * package_meta.cc (add_category): Ditto.
1610 * package_meta.h (CategoryPackage): Link to the category as well.
1611 (packagemeta): Use a list of CategoryPackages instead of Categories
1612 for more memory efficient cross-referencing.
1614 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
1616 * package_db.cc (packagedb::flush): Write a canonical version for all packages
1617 irrespective of the media they were installed from.
1619 2001-11-29 Robert Collins <rbtcollins@hotmail.com>
1621 * Makefile.in (OBJS): Add package_source and rfc1738.
1622 * README: Wishlist update.
1623 * category_list.cc (register_category): Use references.
1624 * category_list.h (CategoryList): Ditto.
1625 * choose.cc (isinstalled): Remove.
1626 (pkgtrustp): New macro.
1627 (set_action): Use packagemeta.
1628 (add_required): Ditto.
1629 (choose_caption): Example package to choose caption, rather than state flags.
1630 (check_existence): Remove.
1631 (set_existence): Remove old code.
1632 (fill_missing_category): Use packagemeta.
1633 (keep_or_skip): Remove.
1634 (default_trust): Use packagemeta and set trust values directly.
1635 (pick_line::set_line): Use packagemeta.
1636 (_view::insert_pkg): Ditto.
1637 (_view::insert_category): Ditto.
1638 (_view::click): Ditto.
1639 (set_view_mode): Ditto. Also remove "exclude" code.
1640 (create_listview): Use packagemeta.
1641 (dialog_cmd): Ditto.
1642 (getpkgbyname): Remove
1643 (scan2): Use packagemeta. Temporarily comment out the holefinding code.
1644 (read_installed_db): Remove.
1645 (package_sort): Use packagemeta.
1646 (do_choose): Use packagemeta. Don't sort the packages - the db does that.
1647 * choose.h: Use packagemeta.
1648 * cygpackage.cc (cygpackage::cygpackage): Initialise all variables.
1649 (cygpackage::cygpackage): Ditto.
1650 (cygpackage::set_canonical_version): Copy the passed string.
1651 (cygpackage::~cygpackage): Move cleanup code to destroy().
1652 (cygpackage::destroy): New function.
1653 (cygpackage::getfirstfile): Use a separate buffer.
1654 (cygpackage::getnextfile): Ditto.
1655 (cygpackage::Canonical_version): New function.
1656 (cygpackage::set_sdesc): Ditto.
1657 (cygpackage::set_ldesc): Ditto.
1658 * cygpackage.h (cygpackage::Canonical_version): New method.
1659 (cygpackage::set_sdesc): New method.
1660 (cygpackage::set_ldesc): New method.
1661 (cygpackage::SDesc): New method.
1662 (cygpackage::LDesc): New method.
1663 (cygpackage::set_canonical_version): New method.
1664 * desktop.cc: Include packagedb headers.
1665 (make_password_group): Use packagemeta.
1666 * download.cc: Include packagedb headers.
1667 (check_for_cached): New method to find any cached file and fill out the database
1669 (download_one): Take a packagesource, support multiple mirrors.
1670 (do_download): Use packagemeta.
1671 * from cwd.cc: Include packagedb headers.
1672 (found_file): Use packagemeta.
1673 * ini.cc (do_ini): Beginning of multiple-mirror support.
1674 * ini.h (CategoryPackage): Remove.
1675 (Dependency): Remove.
1677 (new_package,getpkgbyname,getpackagecategorybyname,add_category): Remove.
1678 * inilex.l: Support multiple mirrors.
1679 * iniparse.y: Include packagedb headers.
1680 (parser): Use packagemeta.
1681 (new_package): Remove.
1682 (add_correct_version): New function.
1683 (new_requirement): Remove.
1684 (add_category): Remove.
1685 * install.cc (uninstall_one): Use packagemeta.
1686 (install_one_source): New function.
1687 (install_one): Use packagemeta.
1688 (do_install): Use packagemeta.
1689 * io_stream.cc (io_stream::move): Bugfix on move/copy case.
1690 * io_stream_cygfile.cc (io-stream_cygfile::set_mtime): Do not reopen the file
1691 after setting the mtime, it makes no sense, and results in 0 length files.
1692 * io_stream_file.cc (io-stream_file::set_mtime): Ditto.
1693 * list.h: New file, template class for a form of list.
1694 * package_db.cc (packagedb::registerpackage): New function.
1695 * package_db.h (packagedb::npackages ()): New method.
1696 * package_meta.cc (packagemeta::add_version): Use list template.
1697 (packagemeta::set_installed): Ditto.
1698 (packagemeta::add_category): New method.
1699 * package_meta.h: Include necessary headers to parse the class.
1700 (CategoryPackage): New class.
1701 (packagemeta): Initialise all members.
1702 (packagemeta::SDesc): New method.
1703 (packagemeta::Categories): New method.
1704 (packagemeta::add_category): Ditto.
1705 (packagemeta::versions): Change to be a list instance.
1706 * package_source.cc (packagesource::set_canonical): New method.
1707 (packagesource::set_cached): New method.
1708 * package_source.h: Include necessary headers to parse the class.
1710 (packagesource::packagesource): Initialize all members.
1711 (packagesource): Make this class non-abstract.
1712 * package_version.cc (packageversion::packageversion): New method.
1713 * package_version.h (Dependency): New class.
1714 (packageversion::Canonical_vesion): New method.
1715 (packageversion::SDesc): New method.
1716 (packageversion::LDesc): New method.
1717 (packageversion::new_requirement): Ditto.
1718 (packageversion::srcpicked, binpicked): What to install.
1719 (packageversion::src, bin): Installation source data.
1720 * rfc1738.cc: New file. Escapes special characters in URL's.
1723 2001-11-26 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1725 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Stop header parsing when
1726 SimpleSocket::gets() returns a zero-length string, so that we
1727 don't end up eating the entire stream thinking it's all header info.
1729 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
1731 * install.cc (badrename): Remove.
1732 (do_install): Use packagedb flush method to write /etc/setup/installed.db.
1733 * io_stream.cc (io_stream::move_copy): New method.
1734 (io_stream::move): New method.
1735 * io_stream.h (io_stream): New methods move and move_copy.
1736 * io_stream_cygfile.cc (io_stream_cygfile::move): New method.
1737 * io_stream_cygfile.h (io_stream_cygfile): New method move.
1738 * io_stream_file.cc (io_stream_file::move): New method.
1739 * io_stream_file.h (io_stream_file): New method move.
1740 * package_db.cc (packagedb::flush): New method.
1741 * package_db.h (packagedb): New method flush.
1743 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
1745 * Makefile.in (OBJS): Add package_version.
1746 * ategory.cc (Category::Category): Update constructors.
1747 * category_list.cc (CategoryList::register_category): Insert correctly.
1748 * choose.cc: Include package_version.h, not package.h.
1749 * cygpackage.cc: Ditto.
1750 (cygpackage::uninstall): New method.
1751 * cygpackage.h (cygpackage): Rename genericpackage to packageversion.
1752 New method uninstall.
1753 * hash.cc (add, has, enumerate): Change prototype to be accurate.
1754 * hash.h (hash): Change prototypes to be accurate.
1755 * ini.h (_Info): New parameterless constructor.
1756 (CategoryPackage): New constructor.
1758 * install.cc: Don't include unneeded headers.
1759 Include package database headers.
1760 (hash::add_subdirs): Remove.
1761 (uninstall_one): Use packagemeta->uninstall to perform the uninstallation.
1762 Don't uninstall source packages.
1763 (do_install): Just can uninstall_one once as we ignore source packages now.
1764 Don't copy the installed.old database accross, instead iterate through the
1765 packagedb packages list and write the isntalled packages out.
1766 * package_db.cc: Include package_version.h, not package.h.
1767 (packagedb::packagedb): Never let db be undefined.
1768 Record the installation filename, so we can reconstruct installed.db.
1769 (packagedb::addpackage): Insert packages in alpha sorted order.
1770 (packagedb::categories): Initialise correctly.
1771 * package_meta.cc: Include win32 and mount headers as a workaround to
1772 current io_stream limitations. Include a TODO about that.
1773 (standard_dirs): New, from install.cc.
1774 (hash::add_subdirs): New, from install.cc.
1775 (packagemeta::set_installed): Rename genericpackage to packageversion.
1776 (packagemeta::uninstall): New method.
1777 * package_meta.h: Rename genericpackage to packageversion.
1778 (packagemeta): Update constructor.
1779 (add_version, set_installed): Rename genericpackage to packageversion.
1780 (uninstall): New method.
1781 (installed_from): New member.
1782 * package_source.cc: New file.
1783 * package_source.h: New file.
1784 * package_version.cc: New file.
1785 * package_version.h: New file.
1786 * package.cc: Removed.
1787 * package.h: Removed.
1789 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
1791 * Makefile.in (OBJS): Add category.o and category_list.o.
1792 * category.h: New file.
1793 * category.cc: New file.
1794 * category_list.h: New file.
1795 * category_list.cc: New file.
1796 * choose.cc: Include category headers.
1797 (fill_missing_category): Use package_db to access global categories.
1798 (_view::insert_pkg): Ditto.
1799 (_view::insert_category): Ditto.
1800 (set_view_mode): Ditto.
1801 (getcategorybyname): Remove.
1802 * cygpackage.h: Include category_list.h to parse this correctly.
1803 (cygpackage): New virtual &Categories.
1804 * ini.h (_CategoryPackage): More C to C++ conversion.
1806 (getcategorybyname): Remove.
1807 (register_category): Remove.
1808 * iniparse.y: Include package db and category headers.
1809 (categories): Use package_db to access global categories.
1811 (ncategories): Remove.
1812 (register_category): Remove.
1813 * package.h: New virtual &Categories.
1814 * package_db.cc (packagedb::packagedb): Don't read the installed db twice.
1815 (packagedb::categories): Declare.
1816 * package_db.h (packagedb): New member categories for global categories list.
1818 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
1820 * choose.h: Don't include ini.h
1821 * ini.h: Allow pure c++ in the header file.
1823 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
1825 * install.cc (do_install): Write a version 2 installed.db file.
1826 * package_db.cc (packagedb::packagedb): Read version 1 and 2 installed.db files.
1828 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
1830 * Makefile.in (OBJS): Add package abstraction objects.
1831 * choose.cc: Include package abstraction headers.
1832 (read_installed_db): Use packagedb class and ignore installed sources.
1833 * cygpackage.cc: New file.
1834 * cygpackage.h: New file.
1835 * filemanip.h (get_file_size): Use unixy types.
1836 * package.h: New file.
1837 * package.cc: New file.
1838 * package_db.cc: New file.
1839 * package_db.h: New file.
1840 * package_meta.cc: New file.
1841 * package_meta.h: New file.
1843 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
1845 * REAME: Updates to wishlist.
1847 2001-11-16 Robert Collins <rbtcollins@hotmail.com>
1849 * README: Updated and added my list of wishlist and todo items.
1851 2001-11-14 Robert Collins <rbtcollins@hotmail.com>
1853 * Makefile.in (OBJS): Include io_stream_memory in setup.exe.
1854 * archive_tar.cc (archive_tar::write): New prototype.
1855 (archive_tar::seek): New method.
1856 * archive.h (archive_tar_file): Update write() and add seek().
1857 (archive_tar): Ditto.
1858 * archive_tar_file.cc (archive_tar_file::write): New prototype.
1859 (archive_tar_file::seek): New method.
1860 * compress_bz.cc (compress_bz::write): New prototype.
1861 (compress_bz::seek): New function.
1862 * compress_bz.h (compress_bz): Update write() and add seek().
1863 * compress_gz.cc (compress_gz::write): New prototype.
1864 (compress_gz::seek): New function.
1865 * compress_gz.h (compress_gz): Update write() and add seek().
1866 * geturl.cc: Include io_stream headers.
1868 (get_url_to_string): Use a io_stream_memory buffer instead of GUBuf.
1869 * io_stream.h (io_stream_seek_t): New enum.
1870 (io_stream): Update write() and add seek().
1871 * io_stream_cygfile.cc (io_stream_cygfile::write): New prototype.
1872 (io_stream_cygfile::seek): New function.
1873 * io_stream_cygfile.h (io_stream_cygfile): Update write() and add seek().
1874 * io_stream_file.cc (io_stream_file::write): New prototype.
1875 (io_stream_file::seek): New function.
1876 * io_stream_file.h (io_stream_file): Update write() and add seek().
1878 2001-11-13 Brian Keener <bkeener@thesoftwaresource.com>
1880 * localdir.cc: Add headers unistd.h and port.h.
1881 (save_local_dir): Expand search logic to include local directory for
1882 location of file last-cache.
1883 (dialog_cmd): Skip IDD_ROOT when downloading and use Back button.
1884 (do_local_dir): Expand search logic to include local directory for file
1886 * res.rc (IDD_CHOOSE_DIALOG): Add hotkey to View button.
1887 * Source.cc (dialog_cmd): Skip IDD_ROOT if select Download from
1889 (do_source): Default to Install from Internet on first entry or
1890 previous selection if backing up from IDD_ROOT or IDD_LOCAL_DIR.
1892 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
1894 * choose.cc (find_tar_ext): Only match at the end of the string.
1895 (getpkgbyname): Prevent NULL pointer dereference.
1897 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
1899 * Makefile.in (CFLAGS): Add warnings and -Werr.
1900 (WARNONLY_FLAGS): For sources that produce (harmless) errors no matter what.
1901 (OBJS): Add io_stream class' objects.
1902 (autoload.o): Use WARNONLY_FLAGS.
1904 (iniparse.o): Ditto.
1905 * archive.cc: New file.
1906 * archive.h: New file.
1907 * archive_tar.cc: New file.
1908 * archive_tar.h: New file.
1909 * archive_tar_file.cc: New file.
1910 * autoload.c: Fix compiler warnings (unused, deprecated conversion).
1911 * choose.cc: Use io_stream.h, not mount.h.
1913 (find_tar_ext): Rewritten to use strstr, and to accept .tar as an extension.
1914 (read_installed_db): Use io_streams.
1915 * choose.h: Run indent.
1916 * compress.cc: New file.
1917 * compress.h: New file.
1918 * compress_bz.cc: New file.
1919 * compress_bz.h: New file.
1920 * compress_gz.cc: New file.
1921 * compress_gz.h: New file.
1922 * concat.cc: Run indent.
1923 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1924 * concat.h: Run indent.
1925 * desktop.cc: Run indent.
1926 Include mklink2.h rather than redefining by hand.
1927 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1928 (etc_profile): Fix compiler warning (deprecated conversion).
1929 (make_link): Fix compiler warning (deprecated conversion).
1930 Tidy up use of args variable - consolidate into argbuf.
1931 (start_menu): Fix compiler warning (deprecated conversion).
1932 (desktop_icon): Fix compiler warning (deprecated conversion).
1933 (make_etc_profile): Fix compiler warning (deprecated conversion).
1934 (uexists): Fix compiler warning (deprecated conversion).
1935 (check_desktop): Fix compiler warning (deprecated conversion).
1936 (check_startmenu): Fix compiler warning (deprecated conversion).
1937 * dialog.cc: Run indent.
1938 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1939 (fatal): Fix compiler warning (deprecated conversion).
1940 * dialog.h: Run indent.
1941 * diskfull.cc: Run indent.
1942 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1943 * download.cc: Run indent.
1944 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1945 (download_one): Fix compiler warning (signed vs unsigned comparison).
1946 * filemanip.h: Run indent.
1947 * find.cc: Run indent.
1948 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1949 (find): Fix compiler warning (deprecated conversion).
1950 * find.h: Run indent.
1951 * fromcwd.cc: Run indent.
1952 * geturl.cc: Run indent.
1953 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1954 (dialog_cmd): Return a value.
1955 (dialog_proc): Remove unused variables.
1957 (get_url_to_file): Fix compiler warning (deprecated conversion).
1958 * geturl.h: Run indent.
1959 * hash.cc: Run indent.
1960 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1961 * hash.h: Run indent.
1962 * ini.cc: Run indent.
1964 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1965 (do_ini): Use io_streams for local io.
1966 * ini.h: Run indent.
1967 * inilex.l (ignore_line): Fix compiler warning (is not a prototype).
1968 Fix compiler warning (brackets for truth assignment).
1969 * install.cc: Run indent.
1970 Fix compiler warning (/* in comment).
1972 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1973 (dialog_cmd): Return a value.
1974 (dialog_proc): Return a value.
1975 (start_tics): Deleted - was unused.
1976 (badrename): Fix compiler warnings (unused, deprecated conversion).
1977 (standard_dirs): Fix compiler warning (deprecated conversion).
1979 (uninstall_one): Convert to io_streams.
1980 (install_one): Convert to io_streams.
1981 (do_install): Convert to io_streans.
1982 Fix compiler warning (deprecated conversion).
1983 * io_stream.cc: New file.
1984 * io_stream.h: New file.
1985 * io_stream_cygfile.cc: New file.
1986 * io_stream_cygfile.h: New file.
1987 * io_stream_file.cc: New file.
1988 * io_stream_file.h: New file.
1989 * localdir.cc: Run indent.
1991 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1992 (get_root_dir_now): Remove.
1993 (save_local_dir): Convert to io_streams.
1994 (dialog_cmd): Return a value.
1995 (do_local_dir): Convert to io_streams.
1996 (log.cc): Run indent.
1997 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1998 (log): Fix compiler warning (deprecated conversion).
1999 (log_save): Fix compiler warning (deprecated conversion).
2000 * log.h: Run indent.
2001 (log): Fix compiler warning (deprecated conversion).
2002 (log_save): Fix compiler warning (deprecated conversion).
2003 * main.cc: Run indent.
2004 Don't include "netio.h".
2005 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2006 (netio_test): Remove.
2007 (sid_auth): Fix compiler warning (partially bracketed initialiser).
2008 (WinMain): Return a value.
2009 * mkdir.cc: Run indent.
2010 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2011 * mklink2.c: Run indent.
2012 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2013 (mkcygsymlink): New function.
2014 * mklink2.h: New file.
2015 * mount.cc: Run indent.
2016 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2017 (create_mount): Remove unused variables.
2018 (cygpath): Fix compiler warning (signed vs unsigned comparison).
2019 * mount.h: Run indent.
2020 * msg.cc: Run indent.
2021 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2022 (msg): Fix compiler warning (deprecated conversion).
2023 (mbox): Fix compiler warning (deprecated conversion).
2024 * msg.h: Run indent.
2025 (msg): Fix compiler warning (deprecated conversion).
2026 * net.cc: Run indent.
2027 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2028 (dialog_cmd): Return a value.
2029 * netio.cc: Run indent.
2030 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2031 (auth_cmd): Return a value.
2032 * netio.h: Run indent.
2033 * nio-file.cc: Run indent.
2034 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2035 (NetIO_File::NetIO_File): Fix compiler warning (deprecated conversion).
2036 * nio-file.h: Run indent.
2037 * nio-ftp.cc: Run indent.
2038 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2039 * nio-ftp.h: Run indent.
2040 * nio-http.cc: Run indent.
2041 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2042 * nio-http.h: Run indent.
2043 * nio-ie5.cc: Run indent.
2044 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2045 * nio-ie5.h: Run indent.
2046 * other.cc: Run indent.
2047 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2048 (dialog_cmd): Return a value.
2049 * port.h: Run indent.
2050 * postinstall.cc: Run indent.
2051 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2052 (cmd): Fix compiler warning (deprecated conversion).
2053 (eun): Fix compiler warning (deprecated conversion).
2054 * root.cc: Run indent.
2055 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2056 * simpsock.cc: Run indent.
2057 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2058 * simpsock.h: Run indent.
2059 * site.cc: Run indent.
2061 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2062 (get_root_dir_now): Remove.
2063 (save_site_url): Convert to io_streams.
2064 (dialog_cmd): Return 0.
2065 (get_initial_list_idx): Convert to io_streans.
2066 * source.cc: Run indent.
2067 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2068 (check_if_enable_next): Remove.
2069 (load_dialog): Remove unused variables.
2070 (save_dialog): Ditto.
2071 (dialog_cmd): Return a value.
2072 * splash.cc: Return a value.
2073 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2074 (dialog_cmd): Return a value.
2075 * state.cc: Run indent.
2076 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2077 * state.h: Run indent.
2081 2001-11-12 Christopher Faylor <cgf@redhat.com>
2083 * desktop.cc (start_menu): Change start menu name to "Cygwin".
2084 (check_startmenu): Ditto.
2086 2001-11-11 Christopher Faylor <cgf@redhat.com>
2088 * choose.cc (parse_filename): Finish reorganization by correctly
2089 decrementing p in memmove.
2091 2001-11-11 Christopher Faylor <cgf@redhat.com>
2093 * choose.cc (parse_filename): Reorganize code to work around gcc
2094 optimization problem.
2096 2001-11-09 Gareth Pearce <tilps@hotmail.com>
2098 * choose.cc (set_action): Allow skip as an option for installed
2099 packages that have version number not listed in setup.ini.
2101 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
2103 * choose.cc (set_cation): Backout last change.
2104 (choose_caption): Ditto.
2106 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
2108 * ini.h (actions): Remove - transferred to choose.h.
2110 * choose.h: Protect class's from "C" compilers.
2111 (actions): New enum, from ini.h. This may not be the 'right' place
2112 but that place doesn't exist yet.
2113 (_views): New enum, from ini.h.
2114 * choose.cc (set_action): Handle installed packages with a version not in
2116 (choose_caption): Ditto.
2117 * iniparse.y: Rearrange header order to handle new ini.h.
2119 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
2121 * ini.h (_Info): Fix compiler warnings (signed vs unsigned comparison).
2122 (registry_category): Fix compiler warning (deprecated conversion).
2123 * iniparse.y (registry_category): Ditto.
2124 * choose.cc (cvsid): Fix compiler warnings (unused, deprecated conversion).
2125 (add_requried): Remove unused variable.
2126 (choose_caption): Handle all enumeration values via a default.
2127 (paint): Fix compiler warnings (unused, deprecated conversion).
2128 (scroll_common): Fix compiler warnings (unused, signed vs unsigned comparison).
2129 (list_clicK): Fix compiler warnings (signed vs unsigned comparison).
2130 (note_width): Fix compiler warnings (deprecated conversion).
2131 (keep_or_skip): Fix compiler warnings (unused).
2132 (_view::mode_caption): Fix compiler warnings (deprecated conversion).
2133 (set_view_mode): Fix compiler warnings (unused).
2134 (create_listview): Fix compiler warnings (unused, incorrect format, reaches
2136 (dialog_proc): Fix compiler warnings (unused).
2137 (read_installed_db): Fix compiler warnings (unused, deprecated conversion).
2138 * choose.h (_header): Fix compiler warnings (deprecated conversion).
2141 2001-11-08 Pavel Tsekov <ptsekov@syntrex.com>
2143 * simpsock.h (SimpleSocket::invalidate): Declare new method.
2144 * simpsock.cc (SimpleSocket::invalidate): Implement new method.
2145 (SimpleSocket::SimpleSocket): Initialize buf to zero. Do not allocate
2146 memory for buf in the constructor.
2147 (SimpleSocket::~SimpleSocket): Use SimpleSocket::invalidate().
2148 (SimpleSocket::printf): Use SimpleSocket::write() instead of send().
2149 (SimpleSocket::write): Check object consistency - return -1 on error.
2150 invalidate() the object on socket write error.
2151 (SimpleSocket::fill): Check object consistency - return -1 on error.
2152 invalidate() the object if socket read error is encountered and there
2153 is no more data available in the internal read buffer.
2154 Allocate memory for the internal read buffer.
2155 (SimpleSocket::gets): Return zero (NULL pointer) if error is encountered
2156 during fill() and no more data is available in the internal read buffer.
2157 (SimpleSocket::read): Check object consistency - return -1 on error.
2158 invalidate() the object if socket read error is encountered.
2159 * nio-ftp.cc (NetIO_FTP:NetIO_FTP): Allow 125 as valid response code to
2160 the RETR command (fix for MS IIS ftp server 5 - possibly others too).
2161 (NetIO_FTP::ok): Check if the SimpleSocket object is ok().
2162 (NetIO_FTP::read): Use NetIO_FTP::ok().
2163 * nio-http.cc: Check for valid return value of SimpleSocket::gets().
2164 (NetIO_HTTP::ok): Check if the SimpleSocket object is ok().
2166 2001-11-09 Robert Collins <rbtcollins@hotmail.com>
2168 * simpsock.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
2169 (SimpleSocket::SimpleSocket): Avoid compiler warnings (deprecated conversion).
2170 (SimpleSocket::printf): Ditto.
2171 (SimpleSocket::write): Ditto.
2172 * simpsock.h (SimpleSocket): Avoid compiler warnings for constructor,
2174 * nio-ftp.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
2175 (NetIO_FTP::NetIO_FTP): Remove unused variable done.
2176 * nio-http.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
2178 2001-11-07 Charles Wilson <cwilson@ece.gatech.edu>
2180 * geturl.cc (get_url_to_string): clean up memory leak
2181 (get_url_to_file): ditto
2183 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
2185 * localdir.cc (dialog_cmd): Go back to IDD_ROOT in every case.
2186 * source.cc (dialog_cmd): Go forward to IDD_ROOT in every case.
2188 2001-11-06 Pavel Tsekov <ptsekov@syntrex.com>
2190 * fromcwd.cc (found_file): Free() memory containing the version and
2191 filepath information for a given package, before replacing the pointers which
2192 reference this memory.
2194 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
2196 * fromcwd: Fix compiler warnings for cvsid.
2197 (canonicalize_version): Fix compilter warnings.
2198 (do_fromcwd): Ditto.
2199 * version.h: Fix compiler warnings for canonicalize_version.
2201 2001-11-03 Robert Collins <rbtcollins@hotmail.com>
2203 * res.rc (IDD_CHOOSE): Move the view caption to the right hand side.
2205 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2207 * res.rc (IDD_CHOOSE): Tweak for use on a 640x480 screen.
2209 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2211 * choose.cc (set_action): Correctly allow skip for any uninstalled package.
2213 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2215 * choose.cc (default_trust): Change the "Required" forced install category to
2218 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2220 * choose.cc: Ran indent.
2221 (set_action): When the requested trust level is missing and the level was not
2222 user requested, set the action to ACTION_SAME_CURR.
2224 2001-11-01 Christopher Faylor <cgf@redhat.com>
2226 * Makefile.in (mingw_getopt.o): Fix typo in non-verbose compilation.
2228 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2230 * choose.cc (_view::init_headers): Resync with the paint logic.
2232 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2234 * choose.cc (add_required): Allow SKIP and SRC_ONLY for currently installed
2237 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2239 * choose.cc (default_trust): Autoset currently installed packages per the user's
2240 selection of prev/curr/exp.
2242 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2244 * splash.cc (dialog_proc): Return TRUE as specified in the WIN32 API.
2246 2001-11-02 Pavel Tsekov <ptsekov@syntrex.com>
2248 * geturl.cc (is_showing): Remove.
2249 (is_local_install): New static variable. Controls whether the
2250 progress dialog and the supporting thread will be created.
2251 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the WIN32 API.
2252 (init_dialog): Remove usage of SetForegroundWindow and is_showing.
2253 This prevents the progress dialog to gain control over the
2254 application and fixes the "setup.exe going to background" problem.
2255 (progress): Use is_local_install.
2256 (get_url_to_string): Set is_local_install.
2257 (dismiss_url_status_dialog): Use is_local_install.
2258 * install.cc (dialog_proc): Return TRUE as specified in WIN32 API.
2259 (init_dialog): Remove usage of SetForegroundWindow.
2260 This prevents the progress dialog to gain control over the
2261 application and fixes the "setup.exe going to background" problem.
2263 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2265 * choose.cc (list_click): Change r to row for clarity.
2266 When we shrink the list below 1 page, scroll to the top of the list.
2267 (_view::click): Return the actual change for contractions.
2268 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the Win32 API.
2270 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2272 * choose.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
2273 * localdir.cc: Ran indent.
2274 (get_root_dir_now): New function.
2275 (save_local_dir): New function.
2276 (dialog_cmd): Use it and swap cygwin root selection and local dir selection order.
2277 (do_local_dir): If there is a saved local dir, read it in.
2278 * net.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
2279 * root.cc (dialog_cmd): Ditto.
2280 * source.cc (dialog_cmd): Ditto.
2282 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
2284 * choose.cc(list_vscroll): Return 0 as required by win32.
2285 (list_hscroll): Ditto.
2286 (list_click): Ditto.
2288 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
2292 * main.cc(WinMain): Use __argv to retrieve command line parameters.
2293 * Makefile,in: Remove argv.o.
2295 2001-11-01 Matt Hargett <matt@use.net>
2297 * geturl.cc (progress): Change int to unsigned int to eliminate
2299 * (get_url_to_string): Check for NULL pointer.
2300 * mount.cc (find2): Use free instead of delete for malloc'd
2302 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Fix memory leak.
2304 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
2306 * choose.cc(_view::insert_under): Handle linen > nlines and lines[linen] with neither
2307 a package nor a category. The lines[linen] bug was reported by Matt (matt@usa.net).
2308 (read_installed_db): Bugfix for testing whether a package has a source tarball.
2309 Reported by Matt (matt@usa.net).
2310 * geturl.cc(dialog): Rename gw_dialog to local_gw_dialog to avoid programmer
2311 confusion and lint errors. Reported by Matt (matt@usa.net).
2313 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
2315 * argv.cc: New file, converts arguments for -mwindows programs. (Simplified derivation
2318 * Makefile,in: Add argv.o and mingw_getopt.o to setup.exe object list.
2319 Add mingw_getopt.o build rule.
2320 * main.cc(WinMain): Initialise argv and argc for use by getopt.
2322 2001-10-27 Christopher Faylor <cgf@redhat.com>
2324 * res.rc: Rearrange info on top line slightly.
2326 2001-10-27 Christopher Faylor <cgf@redhat.com>
2328 * desktop.cc (make_passwd_group): Move file creation earlier in the
2329 process to ensure that passwd-grp.bat reflects desired operation.
2331 2001-27-10 Trevor Forbes <t4bs@hotmail.com>
2333 * postinstall.cc (each): Remove "*.done" file else rename will fail.
2335 2001-10-16 Christopher Faylor <cgf@redhat.com>
2337 * res.rc: Oops. Take 640x480 screen size into account.
2339 2001-10-16 Christopher Faylor <cgf@redhat.com>
2341 * res.rc: Enlarge chooser screen.
2343 2001-10-12 Christopher Faylor <cgf@redhat.com>
2345 * Makefile.in: Accomodate changes to w32api_include macro.
2347 2001-10-12 Christopher Faylor <cgf@redhat.com>
2349 * Makefile.in: Use correct flags for windres.
2351 2001-10-12 Christopher Faylor <cgf@redhat.com>
2353 * Makefile.in (CFLAGS): Remove -nostdinc from CFLAGS.
2355 2001-10-12 Christopher Faylor <cgf@redhat.com>
2357 * choose.cc (pick_line::paint): Reorganize after botched patch.
2359 2001-10-12 Christopher Faylor <cgf@redhat.com>
2361 * choose.cc (pick_line::paint): Add missing declaration.
2363 2001-10-10 Ralf Habacker <Ralf.Habacker@freenet.de>
2365 * choose.cc (pick_line::paint): Add package name to sdesc for display.
2367 Wed Sep 26 21:39:00 Robert Collins rbtcollins@hotmail.com
2369 * choose.cc (_view::insert_pkg): Correctly exit loop.
2370 * iniparse.y (register_category): Always insert new categories.
2372 Fri Sep 21 13:56:32 2001 Christopher Faylor <cgf@cygnus.com>
2374 * inilex.l (yylex): For comments, eat all characters up to, but not
2377 Sun Aug 26 12:50:01 2001 John Marshall <jmarshall@acm.org>
2379 * fromcwd.cc (found_file): Use correct package name when adding an
2380 unknown package rather than random stack garbage.
2382 Sun Aug 12 14:25:21 2001 Christopher Faylor <cgf@cygnus.com>
2384 * desktop.cc (make_passwd_group): .bat files need \r\n endings.
2386 Wed Aug 8 13:53:47 2001 Christopher Faylor <cgf@cygnus.com>
2388 * desktop.cc (etc_profile): Leave environment variables untouched.
2390 2001-08-07 Corinna Vinschen <corinna@vinschen.de>
2392 * autoload.c: Add dynamic load statements for NT/W2K
2393 advapi32 functions not available in 9x/ME.
2394 * main.cc (set_default_dacl): New function.
2395 (WinMain): Call `set_default_dacl' if running on NT/W2K.
2397 Sat Aug 4 21:35:53 2001 Christopher Faylor <cgf@cygnus.com>
2399 * ini.h (_CategoryPackage): Change pkg field to pkgname for
2401 * choose.cc: Use pkgname field when referencing _CategoryPackage
2403 (fill_missing_category): Don't add excluded packages.
2404 (default_trust): Ditto.
2405 (_view::insert_pkg): Ditto.
2406 * iniparse.y (register_category): Use consistent variable name.
2408 2001-07-09 Egor Duda <deo@logos-m.ru>
2410 * choose.cc: Use system foreground color for text output.
2412 Sat Jul 7 00:40:28 2001 Christopher Faylor <cgf@cygnus.com>
2414 * choose.cc (set_action): Use default trust for determining reinstall
2416 (default_trust): Set default trust.
2417 (pick_line::paint): Allow source selection when reinstalling or
2420 Fri Jul 6 18:08:49 2001 Christopher Faylor <cgf@cygnus.com>
2422 * choose.cc (isinstalled): Modify to properly accomodate special case
2424 (set_action): Check downloaded components, not installed components if
2426 (set_existence): Always include full list of files when "download
2429 Fri Jul 6 00:37:05 2001 Christopher Faylor <cgf@cygnus.com>
2431 * choose.cc (pick_line::paint): Properly display "na" field when no
2434 Thu Jul 5 00:34:23 2001 Christopher Faylor <cgf@cygnus.com>
2436 * choose.cc (scan2): Ensure that older versions do not show up in
2439 Mon Jul 2 15:47:59 2001 Christopher Faylor <cgf@cygnus.com>
2441 * choose.cc (set_action): Allow "Skip" action if trust != installed.
2442 * res.rc: Fix copyright.
2444 Sat Jun 30 14:05:21 2001 Michael A Chase <mchase@ix.netcom.com>
2446 * res.rc (IDD_LOCAL_DIR): Change caption to match the other dialog
2448 (IDD_CHOOSE): Adjust horizontal size so package names are visible.
2450 * choose.cc: Restore some more changes from 2001-06-25, throughout.
2451 (paint): Wrap some excessively long lines.
2452 (pick_line::paint): Ditto. Move the arrow in the "Current" column
2453 right to where it belongs. Move the source checkbox slightly to the
2455 (do_choose): List categories and required packages in setup.log.full.
2457 Sat Jun 30 23:04:59 2001 Christopher Faylor <cgf@cygnus.com>
2459 * choose.cc (scan2): Restore source scanning eliminated by previous checkin.
2461 Sat Jun 30 15:18:33 2001 Christopher Faylor <cgf@cygnus.com>
2463 * ini.h (struct _Info): Add "derived" element.
2464 * choose.cc (scan2): Try to place unknown tar files into proper slot
2465 when package exists in setup.ini but tar file does not.
2467 Sat Jun 30 13:39:00 2001 Robert Collins <rbtcollins@hotmail.com>
2469 * choose.cc (create_listview): Call set_view_mode with VIEW_CATEGORY.
2470 (do_choose): Log the first category name.
2472 Fri Jun 29 23:07:44 2001 Christopher Faylor <cgf@cygnus.com>
2474 *ini.h: Reapply 2001-06-25 changes.
2475 * choose.cc (add_required): Ditto. Default to "Keep" state if
2476 UNINSTALL and product is installed. Default to curr state if SKIP,
2478 (keep_or_skip): New function. Returns skip or keep state depending on
2479 installed state of package.
2480 (default_trust): Use keep_or_skip to set state.
2481 (_view::insert_pkg): Use calloc to allocate lines.
2482 (set_view_mode): Adapt 2001-06-25 change to set_full_list here.
2484 Sat Jun 30 11:01:00 2001 Robert Collins <rbtcollins@hotmail.com>
2486 * choose.cc: Remove globals full_list, headers, package_indexes and
2488 Add globals cat_headers, pkg_headers and chooser.
2489 (add_required): New function.
2490 (paint): Use the chooser for header details.
2491 Call into the chooser to paint each line.
2492 (list_click): Use new global variables.
2493 Call into the chooser to handle the click.
2494 Repaint the entire view if packages have been added or removed.
2495 (note_width): Get passed a headers struct rather than using a global
2497 (fill_missing_category): New function.
2498 (default_trust): Skip non-"Required" or "Misc" packages.
2499 (pick_line::set_line (Package *)): New function.
2500 (pick_line::set_line (Category *)): New function.
2501 (pick_line::paint): New function.
2502 (pick_line::click): New function.
2503 (_view::_view): New function.
2504 (_view::set_view_mode): New function.
2505 (_view::mode_caption): New function.
2506 (_view::set_headers): New function.
2507 (_view::init_header): New function.
2508 (_view::insert_pkg): New function.
2509 (_view::insert_category): New function.
2510 (_view::insert_at): New function.
2511 (_view::insert_under): New function.
2512 (_view::clear_view): New function.
2513 (viewsplusplus): New function.
2514 (_view::client): New function.
2515 (set_view_mode): Use new chooser functionality.
2516 (set_full_list): Use new global variables.
2517 (create_listview): Instantiate chooser.
2518 Remove all hardcoded headers[] code.
2519 (dialog_cmd): On trust changes, check dependencies.
2520 (getcategorybyname): New function.
2521 (getpackagecategorybyname): New function.
2522 (scan2): Use case-insensitive package comparison.
2523 (do_choose): Use fill_missing_category ().
2524 Show some category data.
2525 * ini.h: Protect against multiple inclusion.
2527 (_CategoryPackage): New struct.
2528 (_Category): New struct.
2529 (_Package): Change category to Category * from char *.
2530 (extern Category category): New global variable.
2531 (extern in ncategories): Ditto.
2532 (getcategorybyname): New prototype.
2533 (catpackagecategorybyname): New prototype.
2534 (register_category): New prototype.
2535 (add_category): New prototype.
2536 * iniparse.y: Parse multiple categories per package.
2537 (category): New global variable.
2538 (ncategories): New global variable.
2539 (new_package): Compare package against NULL, not 0.
2540 (new_requirement): Source formatting fix.
2541 (register_category): New function.
2542 (add_category): New function.
2543 * res.rc: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
2544 IDC_CHOOSE_VIEWCAPTION: New control.
2545 * resource.h: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
2546 IDC_CHOOSE_VIEWCAPTION: New control.
2547 Increment _APS_NEXT_CONTROL_VALUE.
2549 Mon Jun 25 00:56:37 2001 Michael A Chase <mchase@ix.netcom.com>
2551 * choose.cc (paint): Wrap excessively long lines.
2552 (list_click): Ditto.
2553 (create_listview): Ditto.
2554 (do_choose): Ditto. Replace TABs and remove CRs in lines written to
2555 setup.log.full. Allow "Yes" for source exists in setup.log.full when
2556 installing from local directories.
2558 Mon Jun 25 00:56:37 2001 Christopher Faylor <cgf@cygnus.com>
2560 * choose.cc (set_action): Only clear srcpicked when moving to next
2561 state. Allow source installation if it exists in the current "trust"
2562 state. Don't move to skip state when package is installed.
2563 (list_click): Don't allow source clicking when no source is available.
2564 (set_full_list): Display package when not is_full_action.
2565 * ini.h (is_full_action): Define.
2567 Sun Jun 17 12:06:14 2001 Christopher Faylor <cgf@cygnus.com>
2569 * install.cc (check_for_old_cygwin): New function. First stab at
2570 checking for old cygwin versions.
2571 (do_install): Call check_for_old_cygwin if there were no errors during
2574 Sat Jun 16 11:33:51 2001 Michael A Chase <mchase@ix.netcom.com>
2576 * choose.cc (_Info::_Info): Test _source paramenter for non-NULL rather
2577 than zeroed "source" element.
2579 Fri Jun 15 20:54:43 2001 Christopher Faylor <cgf@cygnus.com>
2581 * choose.cc (scan2): Insert unknown tar archives, found on disk, into
2582 the highest available "hole" in the trust array.
2584 Fri Jun 15 00:20:48 2001 Christopher Faylor <cgf@cygnus.com>
2586 * choose.cc (set_existence): Use pointer method for indexing in trust
2588 (create_listview): Ditto.
2589 (scan2): Ditto. Also, use consistent variable name for indexing into
2591 * ini.h (Package): Reorganize info array for easier scanning.
2593 Fri Jun 15 00:01:51 2001 Christopher Faylor <cgf@cygnus.com>
2595 * choose.cc (isinstalled): Eliminate special download only test.
2596 (set_action): Don't move to next state if in ACTION_SAME range and not
2598 (choose_caption): Display "Retrieve" rather than "Reinstall" when just
2600 (do_choose): Sort packages after all packages have been read.
2601 Accomodate the fact that first element in trust array is empty so that
2602 log files don't report the wrong trust value.
2603 * iniparse.y (new_package): Malloc space for package name or suffer
2606 Thu Jun 14 22:43:59 2001 Robert Collins <rbtcollins@hotmail.com>
2608 * ini.h (Dependency): New structure. Declare new function.
2609 * inilex.l (yylex): Detect new setup.ini options - category and requires.
2610 * iniparse.y: Declare new setup.ini token values.
2611 (yyparse): Parse new token values.
2612 (new_requirement): New function.
2614 Thu Jun 14 22:43:26 2001 Christopher Faylor <cgf@cygnus.com>
2616 * choose.cc (read_installed_db): Eliminate obsolete code.
2618 Thu Jun 14 22:11:53 2001 Christopher Faylor <cgf@cygnus.com>
2620 * choose.cc (set_action): Set trust on "redo".
2621 (_Info::_Info): New constructor.
2622 (read_installed_db): Use new constructor. Use trusts type for
2624 * ini.h (struct _Info): Label struct, add constructor.
2625 (Package): Make installed_ix a type 'trusts.'
2626 * install.cc (uninstall_one): Unset any installed info for current
2628 (install_one): Allocate new Info struct for installed reflecting new
2630 (do_install): Don't output line to installed.db if package is being
2633 Thu Jun 14 20:33:01 2001 Robert Collins <rbtcollins@hotmail.com>
2635 * choose.cc (getpkgbyname): Use consistent method for scanning package
2638 Wed Jun 13 23:33:08 2001 Christopher Faylor <cgf@cygnus.com>
2640 * choose.cc: Add some comments.
2641 (getpkgbyname): Use strcasecmp for comparisons.
2643 Wed Jun 13 16:07:00 2001 Christopher Faylor <cgf@cygnus.com>
2645 * install.cc (do_install): Avoid checking for download action if
2646 package wasn't currently retrieved.
2648 Wed Jun 13 11:27:22 2001 Christopher Faylor <cgf@cygnus.com>
2650 * choose.cc: Eliminate extra array throughout. Use element in package
2651 structure instead. Use pointers rather than array indexes where
2653 (set_action): New function to set next action based on current.
2654 (choose_caption): New function. Returns display caption.
2655 (check_existence): Change arguments. Use pointer to 'info' structure.
2656 (set_existence): Use pointer rather than array index.
2657 (default_trust): Use trusts enum for second argument.
2658 (set_full_list): Honor exclude element in package structure.
2659 (build_labels): Eliminate.
2660 (base): Make global. Use const char * argument.
2661 (get_package_version): Eliminate.
2662 (getpkgbyname): New function.
2663 (read_installed_db): Use parse_filename to get version info.
2664 * desktop.cc (make_passwd_group): Use getpkgbyname function.
2665 * download.cc (get_file_size): const argument.
2666 (do_download): Use is_download_action to determine when something
2667 should be downloaded.
2668 * filemanip.h: Add some functions.
2669 * ini.cc (do_ini): Use NULL rather than 0 for pointer assignment.
2670 * ini.h: Use enums for actions and trusts.
2671 (is_download_action): New macro.
2672 (is_upgrade_action): Ditto.
2673 (is_uninstall_action): Ditto.
2674 (struct Package): Add new fields.
2675 * inilex.l (yylex): Detect new setup.ini options.
2676 * iniparse.y: Declare new tokens.
2677 (yyparse): Detect exclude keyword. Fill out version field even if
2679 (new_package): Use greater granularity when allocating package array to
2680 avoid repeated calls to realloc.
2681 * install.cc (exists): const argument.
2682 (uninstall_one): Take pkg argument.
2683 (install_one): Ditto. Eliminate unneeded arguments which can be
2684 derived from package info.
2685 (do_install): Iterate over package array using a pointer. Use
2686 is_download_action to control when package should be downloaded.
2687 * tar.cc (tar_open): const argument.
2688 * tar.h: Refloect const argument.
2690 2001-05-31 Michael Chase mchase@ix.netcom.com
2692 * main.cc (WinMain): Add setup version to starting setup.log entry
2694 Tue May 29 21:37:58 2001 Yukihiko Sohda <sohda@is.titech.ac.jp>
2696 * inilex.l: Add + to list of valid string characters.
2698 Mon May 28 20:54:50 2001 Christopher Faylor <cgf@cygnus.com>
2700 * Makefile.in: Remove more stuff in the clean target.
2702 Mon May 28 18:24:59 2001 Christopher Faylor <cgf@cygnus.com>
2704 * Makefile.in: Correctly generate iniparse.h.
2706 Tue Mar 6 19:14:00 2001 Corinna Vinschen <corinna@vinschen.de>
2708 * geturl.cc (get_url_to_file): Add parameter `allow_ftp_auth'.
2709 * geturl.h: Change declaration of `get_url_to_file' accordingly.
2710 * netio.cc (NetIO::NetIO): Add parameter `allow_ftp_auth'.
2711 Set member `ftp_auth'.
2712 (NetIO::open): Add parameter `allow_ftp_auth'. Use it in calls
2713 to constructors of derived classes.
2714 (NetIO::get_ftp_auth): New method.
2715 * netio.h: Change class definition accordingly.
2716 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Add parameter `allow_ftp_auth'.
2717 Take global variables `net_ftp_user' and `net_ftp_passwd' into account.
2718 Add code for ftp authentication retry.
2719 * nio-ftp.h: Change class definition accordingly.
2720 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Add parameter `allow_ftp_auth'.
2721 Add code for ftp authentication retry in case of proxy connection.
2722 * nio-http.h: Change class definition accordingly.
2723 * res.rc: Add FTP authentication dialog.
2724 * resource.h: Add new constants used in res.rc.
2725 * state.h: Add variables `net_ftp_user' and `net_ftp_passwd'.
2727 Sun May 27 17:12:23 2001 Christopher Faylor <cgf@cygnus.com>
2729 * res.rc (IDD_SPLASH): Add a copyright year.
2731 Sun May 27 15:42:18 2001 Christopher Faylor <cgf@cygnus.com>
2733 * Makefile.in: Make iniparse.y produce a c++ file.
2734 * choose.cc (set_existence): Revert 2001-05-27 change.
2735 * ini.cc: Remove "C" from declaration of yyparse.
2736 * iniparse.y (yyparse): Fill out version field by default when a binary
2737 install is detected and no version has been set yet.
2738 * install.cc (do_install): Mount things earlier so that we can use
2739 proper mount table settings. Don't remove mounts since they are now
2741 * mount.cc (create_mount): Reread the mount table after establishing a
2743 (read_mounts): Explicitly clear root_here to allow multiple uses of
2744 this function. Ensure that there is no garbage in the table when we've
2745 exhausted all of the mounts in the registry.
2746 (cygpath): Accomodate ./ in path.
2748 Sun May 27 02:59:07 2001 Christopher Faylor <cgf@cygnus.com>
2750 Use parse_filename method to parse filenames throughout. Use
2751 get_root_dir to retrieve the current root directory throughout. Set
2752 const in argument list, where appropriate, throughout.
2753 * choose.cc (set_existence): Detect case of uninstalled package with no
2755 (parse_filename): New function.
2756 * filemanip.h (fileparse): New structure.
2757 * mount.cc (read_mounts): Remember where we found the root mount.
2758 (set_root_dir): New function.
2759 (get_root_dir): Ditto.
2760 * mount.h: Declare new functions.
2761 * site.cc (get_root_dir_now): Renamed from get_root_dir.
2762 (save_site_url): Use new function name.
2763 (get_initial_list_idx): Ditto.
2765 Sat May 26 21:23:59 2001 Christopher Faylor <cgf@cygnus.com>
2767 * choose.cc: Use a constant throughout to deal with chooser icon
2769 * res.rc (IDD_CHOOSE): Increase size of chooser box.
2771 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
2773 * choose.cc (do_choose): Fix incorrect assignment of trust setting to
2774 use when Redownload or Sources Only selected.
2776 Thu May 10 22:35:59 2001 Christopher Faylor <cgf@cygnus.com>
2778 Reformat file after botched patch formatting.
2779 * choose.cc (which_trust): Eliminate variable.
2780 (default_trust): Don't set which_trust.
2781 (do_choose): Use selected trust when reinstalling or installing source.
2783 Thu May 10 21:04:18 2001 Christopher Faylor <cgf@cygnus.com>
2785 Change concat to cygpath throughout.
2786 Change map_filename to cygpath throughout.
2787 * concat.cc (vconcat): New function.
2788 (concat): Use vconcat.
2789 * concat.h: Reflect above.
2790 * install.cc (map_filename): Eliminate.
2791 (install_one): Free dest_file.
2792 * mount.cc (find2): Expect input key to be pointing to mount record.
2793 (in_table): New function.
2794 (is_admin): Move from root.cc.
2795 (read_mounts): New function.
2796 (path_prefix_p): New function.
2797 (cygpath): New function.
2798 * mount.h: Define new functions and structure.
2799 * root.cc (in_table): Move to mount.cc.
2800 (do_root): Call read_mounts to initialize root stuff and mount table.
2801 * site.cc (get_root_dir): Ditto.
2803 2001-05-09 Matt Hargett <matt@use.net>
2805 * Makefile.in: Remove *.rc from clean.
2807 Tue May 8 23:33:38 2001 Christopher Faylor <cgf@cygnus.com>
2809 * choose.cc (scan2): Fix incorrect setting of TRUST_CURR rather than
2810 TRUST_PREV which produced "0" versions.
2812 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
2814 * resource.h: Add new field IDC_CHOOSE_INST_TEXT. Modify
2815 _APS_NEXT_CONTROL_VALUE to account for addition of
2816 IDC_CHOOSE_INST_TEXT.
2817 * res.rc (IDD_CHOOSE): Modify choose dialog to use new field
2818 IDC_CHOOSE_INST_TEXT for screen text. Modify choose Dialog to allow
2819 hot keys to select Prev, Curr, Exp.
2820 * ini.h: Add new actions for ACTION_REDO and ACTION_SRC_ONLY. Modify
2821 define for LOOP_PACKAGES to include new actions ACTION_REDO and
2823 * choose.cc: Add new Trusts for TRUST_REDO and TRUST_SRC_ONLY.
2824 (paint): Modify to check TRUST_SRC_ONLY when determining Bitmap for
2825 source Checkbox to use.
2826 (build_labels): Add logic to allow for selection of Source only
2827 Download/ReDownload/Install/Reinstall and also to Redownload/Reinstall
2828 current version binary.
2829 (dialog_proc): Add conditional display for file selection prompt based
2830 on download vs install using IDC_CHOOSE_INST_TEXT.
2831 (do_choose): Add new logic for TRUST_REDO and TRUST_SRC_ONLY selection
2832 and modify logic for TRUST_UNINSTALL, TRUST_KEEP, and TRUST_NONE to
2833 handle the instance where Source Download/Install was selected. Modify
2834 log file to store appropriate information regarding Action selected and
2835 the new actions that were added (I.E.: ACTION_REDO and
2837 * download.cc: Add include for <unistd.h> and "port.h".
2838 (download_one): Modify parameter list to include the selected action
2839 for the file to be downloaded. Modify size check against expected size
2840 to include check for ACTION_REDO and ACTION_SRC_ONLY. Modify rename of
2841 .tmp file to also remove the destination file if exists due to ability
2842 to redownload source and binary now.
2843 (do_download): Modify to also use ACTION_REDO and ACTION_SRC_ONLY in
2844 calculation of Download Bytes. Modify to also use ACTION_REDO and
2845 ACTION_SRC_ONLY in determining files selected for download.
2846 * install.cc (uninstall_one): Add check to treat a Reinstall like an
2847 upgrade so current version will be uninstalled prior to reinstall.
2848 (do_install): Add logic to handle ACTION_REDO and ACTION_SRC_ONLY for
2849 uninstalling and installing binary and source packages.
2850 * desktop.cc (make_passwd_group): Modify logic to account for a Source
2851 only cygwin install when checking for cygwin to determine need for
2852 mkpasswd and mkgroup.
2854 Mon May 7 23:33:30 2001 Matt Hargett <matt@use.net>
2856 * winsup/cinstall/res.rc: Added accelerators and improved focus order.
2857 Removed WS_DISABLED from "OK" buttons to accomodate default focus
2858 changes in net.cc and source.cc.
2859 * winsup/cinstall/net.cc (dialog_proc): If no radio button is selected,
2860 a default is selected.
2861 * winsup/cinstall/source.cc (dialog_proc): Ditto.
2862 (check_if_enable_next): Removed. No longer needed since a radio button
2863 will always be selected.
2864 (load_dialog): Removed call to check_if_enable_next.
2865 (dialog_cmd): Ditto. Also added default to switch.
2867 Tue Apr 24 23:42:02 2001 Christopher Faylor <cgf@cygnus.com>
2869 * res.rc: Resize affected text.
2871 Tue Apr 24 23:35:31 2001 Christopher Faylor <cgf@cygnus.com>
2873 * net.cc (do_net): Default to direct download.
2874 * res.rc: Move default selections to the top.
2876 2001-04-18 Earnie Boyd <earnie@users.sourceforge.net>
2878 * win32.h: Remove the definitions for _UNION_NAME and _STRUCT_NAME.
2879 Must now include <windows.h> and not the pieces.
2880 * choose.cc (create_listview): Clean up type mismatch problems.
2881 * dialog.h (NEXT(id)): Ditto.
2882 * geturl.cc (dialog): Ditto.
2883 * install.cc (dialog): Ditto.
2884 * splash.cc (load_dialog): Ditto.
2886 Wed Apr 18 18:59:21 2001 Christopher Faylor <cgf@cygnus.com>
2888 * tar.cc (class gzbz): Define dummy virtual functions.
2890 Wed Apr 18 16:01:21 2001 Christopher Faylor <cgf@cygnus.com>
2892 * Makefile.in: Add bz2 include/library support.
2893 * filemanip.h: New file.
2894 * choose.cc (find_tar_ext): New function. Returns TRUE if .tar.gz or
2896 (scan2): Reorganize to use find_tar_ext, accomodating .bz2 extension.
2897 (read_installed_db): Ditto.
2899 * fromcwd.cc (found_file): Ditto.
2900 (do_fromcwd): Ditto.
2901 * tar.cc (class gzbz): New super class for uncompression support.
2902 (gz): New class for gzip support.
2903 (bz): New class for bzip2 support.
2904 (tar_open): Use gzbz class to control file opening.
2905 (tar_ftell): Ditto for returning position in file.
2906 (skip_file): Ditto for reading file.
2907 (tar_next_file): Ditto.
2908 (tar_read_file): Ditto.
2909 (tar_close): Ditto for close.
2911 * zlib/configure.in: Force NM substitution.
2913 * source.cc (do_source): Default to "Install from Internet".
2915 2001-03-16 Brian Keener <bkeener@thesoftwaresource.com>
2917 * nio-file.cc (NetIO_File::NetIO_File): Use `get_file_size' instead of
2919 * choose.cc (list_click): Correct inability to select source code for
2921 (scan2): Modify to skip source tarballs when scanning disk for
2922 installable packages.
2924 2001-03-10 Chris Abbey <chris_abbey@yahoo.com>
2926 * install.cc: install sources into /usr/src instead
2927 of /, also include the sizes of source tarballs
2929 * download.cc: include sizes of source tarballs in
2930 total_download_bytes.
2932 Tue Mar 6 19:31:00 2000 Corinna Vinschen <corinna@vinschen.com>
2934 * download.cc (get_file_size): Remove `static'.
2936 Tue Mar 6 19:11:00 2000 Corinna Vinschen <corinna@vinschen.com>
2938 * tar.cc (tar_open): Use `get_file_size' instead of `stat'.
2940 2001-03-06 Brian Keener <bkeener@thesoftwaresource.com>
2942 * choose.cc (paint): Modify message for nothing to download vs
2943 nothing to install/update based on installation method.
2944 (list_click): Modify to skip versions in selection process if
2945 installing from local directory and installation file does not exist.
2946 Also leaves Source Action set to N/A if the source file does not exist
2947 and installing from local directory.
2948 (check_existence): New method to check current existence of installation
2949 files based on selected installation method.
2950 (set_existence): New method to set the current existence of installation
2951 files based on selected installation method.
2952 (best_trust): Modify decision process for best trust to base decision on
2953 current trust selected (IE: Prev, Curr, or Test), existence of file and
2954 installation method selected.
2955 (default_trust): Add logic to capture the current trust level and the
2956 trust selected for the given package.
2957 (set_full_list): Expand decision criteria for displaying a package in
2958 the selection list to include file existence/non-existence and selected
2959 installation method.
2960 (build_labels): Modify criteria for label addition to include
2961 installation method and file existence/non-existence.
2962 (create_listview): Modify to establish package trust level for each
2963 package before setting up the display list. Also modification to set
2964 current trust button as the default.
2965 (dialog_cmd): Set response for Prev, Curr, Test button push to perform
2966 a reset of the selection list in addition to setting the default trust.
2967 (get_package_version): New method to provide reusable code for
2968 determining the package version from the file name for a specified
2970 (scan2): Modify to use new method get_package_version and
2971 also enhance handling of the build for the structures package and
2973 (read_installed_db): Modify to use the new method
2974 get_package_version and also enhance handling of the build for the
2975 structures package and extra.
2976 (do_choose): Add additional initialization of package and extra
2977 structures. Modify to use read_installed_db all the time despite
2978 install method. Modify output to setup.log.full log file to increase
2979 readability by adding additional spacing, expanded code and available
2981 * ini.h: Add new fields install_exists, source_exists and
2982 partial_list_display to the structure definition for package.
2983 * res.rc (IDD_CHOOSE): Modify choose dialog Prev, Curr, and Test
2984 pushbuttons by replacing with Radio Buttons thus allowing the
2985 operator to better determine which is selected.
2987 2001-02-20 Brian Keener <bkeener@thesoftwaresource.com>
2989 * download.cc (do_download): Add new variables total_download_bytes and
2990 total_download_bytes_sofar for download progress meter. Add loop
2991 to accumulate the total bytes to download from the selected packages.
2992 * geturl.cc: Add state.h and diskfull.h to include list. Add new
2993 variables gw_iprogress, gw_pprogress, gw_progress_text,
2994 gw_pprogress_text, and gw_iprogress_text to allow for addition of
2995 total packages download progress meter and disk full percent
2996 progress meter. Add variables total_download_bytes and
2997 total_download_bytes_sofar for use by progress meters.
2998 (dialog_proc): Add new variables gw_iprogress, gw_pprogress,
2999 gw_progress_text, gw_pprogress_text, and gw_iprogress_text to
3000 allow for addition of total packages download progress meter and disk
3001 full percent progress meter.
3002 (init_dialog): Ditto.
3004 (get_url_to_file): Ditto.
3005 * geturl.h: Add external definition for total_download_bytes and
3006 total_download_bytes_sofar.
3007 * res.rc: Add two additional progress meters (IDC_DLS_IPROGRESS)
3008 and (IDC_DLS_PPROGRESS) and three text objects (IDC_DLS_PROGRESS_TEXT)
3009 and (IDC_DLS_IPROGRESS_TEXT, IDC_DLS_PPROGRESS_TEXT) for use in the
3011 * resource.h: Add new fields for progress meters and text and update
3012 _APS_NEXT_CONTROL_VALUE.
3014 Wed Feb 21 13:05:00 2000 Corinna Vinschen <vinschen@redhat.com>
3016 * download.cc (get_file_size): Check for INVALID_HANDLE_VALUE instead
3019 Wed Feb 21 11:21:00 2000 Corinna Vinschen <vinschen@redhat.com>
3021 * download.cc (download_one): Add missing parenthesis.
3023 Mon Feb 19 18:59:00 2000 Corinna Vinschen <vinschen@redhat.com>
3025 * download.cc (get_file_size): New function. Eliminates the need
3027 (download_one): Call `get_file_size' instead of `stat'. This
3028 workarounds a problem with mingw's `stat' call.
3030 2001-02-07 Earnie Boyd <earnie@users.sourceforge.net>
3032 * Makefile.in: (%.o: %.rc): Specify --include-dir $(w32api_include).
3033 This is to allow cinstall to build with 2.95.2-7 and to make the
3034 use of headers consistent.
3036 2000-12-26 Earnie Boyd <earnie_boyd@yahoo.com>
3038 * Makefile.in (autoload.o): Add target to specify -fno-inline-functions
3040 Tue Dec 26 03:46:00 2000 Matt Hargett <matt@use.net>
3042 * winsup/cinstall/res.rc: Added accelerators and improved focus
3045 2000-12-10 Egor Duda <deo@logos-m.ru>
3047 * choose.cc (paint): Use system background color for text output.
3049 Sun Dec 10 19:05:25 2000 Christopher Faylor <cgf@cygnus.com>
3051 * Makefile.in: Use CXX for linking and for compiling .cc files.
3052 * configure.in: Find correct c++ compiler.
3053 * configure: Regenerate.
3055 2000-11-17 DJ Delorie <dj@redhat.com>
3057 * splash.cc (load_dialog): Make message more obvious.
3060 Fri Nov 17 17:15:21 2000 Christopher Faylor <cgf@cygnus.com>
3062 * Makefile.in: Use g++ to link so that libstdc++.a gets used. This is
3063 necessary for newer compilers.
3065 Wed Nov 9 2:19:00 2000 Corinna Vinschen <vinschen@redhat.com>
3067 * desktop.cc: Include "ini.h" and "version.h".
3068 (make_passwd_group): Skip the function on 9x/ME boxes when an
3069 older version of Cygwin has been installed which doesn't
3070 support mkpasswd/mkgroup on 9x/ME.
3071 * install.cc: Move the `LOOP_PACKAGES' and `pi' macros to...
3074 Wed Nov 8 17:10:00 2000 Corinna Vinschen <vinschen@redhat.com>
3076 * desktop.cc (make_passwd_group): Don't exit when started
3077 on 9x/ME since mkpasswd/mkgroup are usable on 9x/ME now.
3079 Sun Nov 5 12:51:42 2000 Jason Tishler <jt@dothill.com>
3081 * install.cc (do_install): Add call to set_cygdrive_flags to sync
3083 * mount.cc (set_cygdrive_flags): New function.
3084 (get_cygdrive_flags): Ditto.
3085 (default_cygdrive): Ditto.
3086 (set_cygdrive_flags): Ditto.
3087 * mount.h: Add prototype for set_cygdrive_flags.
3089 2000-10-23 DJ Delorie <dj@redhat.com>
3091 * ini.h: add source actions
3092 * fromcwd.cc: check for available sources
3093 * res.rc: add checkbox bitmaps
3096 * choose.cc: add source column
3097 * download.cc: download sources if called for
3098 * install.cc: [un]install sources too
3100 2000-10-22 DJ Delorie <dj@redhat.com>
3102 * choose.cc (build_labels): Don't skip TRUST_PREV completely; only
3103 ignore it wrt full_list if there's already a version installed.
3104 (do_choose): Sort the list.
3105 (package_sort): New.
3107 2000-10-12 DJ Delorie <dj@redhat.com>
3109 * res.rc: Add more error strings.
3110 * resource.h: Ditto.
3111 * iniparse.y (new_package): re-initialize if needed.
3112 * download.cc (do_download): Keep track of errors; notify and
3114 * install.cc (do_install): Ditto.
3116 2000-10-05 DJ Delorie <dj@redhat.com>
3118 * Makefile.in: fix %.cc rule
3120 2000-10-04 DJ Delorie <dj@redhat.com>
3122 * desktop.cc: quote HOME and USER, don't . ./.profile
3124 * choose.cc (build_labels): don't include in partial list just
3125 because there's a *previous* version available.
3127 * install.cc (do_install): if installing from local directory with
3128 setup.ini and the file isn't found, look in "." also. Note errors.
3130 2000-10-02 DJ Delorie <dj@redhat.com>
3132 * ini.cc (do_ini): save setup.ini locally
3134 2000-10-02 Chris Abbey <cabbey@bresnanlink.net>
3136 * desktop.cc: quote escapes in prompt
3138 2000-10-02 Jason Tishler <jt@dothill.com>
3140 * root.cc (is_admin): New function.
3141 (read_mount_table): Check for administrative priviledges and set
3142 installation scope as appropriate.
3144 2000-09-28 DJ Delorie <dj@redhat.com>
3146 * nio-ftp.cc (ftp_line): handle continuations more robustly
3148 2000-09-14 Brian Keener <bkeener@thesoftwaresource.com>
3150 * res.rc: increased the size of the site dialog (IDD_SITE) & the
3151 corresponding list box to provide for more URL's to be listed.
3152 Modified the position of the Back, Next and Cancel buttons to
3153 correspond to the new size of the dialog.
3155 2000-09-13 DJ Delorie <dj@redhat.com>
3157 * install.cc (do_install): update disk fullness once per package
3158 to improve performance
3160 * choose.cc (create_listview): call ReleaseDC
3162 Mon Sep 11 22:40 2000 Harold L Hunt II <harold@compasstechnologies.com>
3164 * mkdir.cc: Create directories when ERROR_FILE_NOT_FOUND is
3165 returned, as it seems Samba 2.0.6+ returns this instead of
3166 ERROR_PATH_NOT_FOUND
3168 Mon Sep 11 19:35:24 2000 Christopher Faylor <cgf@cygnus.com>
3170 * site.cc (get_initial_list_idx): Don't default to saved URL if it
3173 2000-09-07 DJ Delorie <dj@redhat.com>
3175 * splash.cc: use version.h, not local decl
3176 * res.rc: add "old version" message
3179 * fromcwd.cc (canonicalize_version): make global
3180 * iniparse.y: add setup-version support, fix bug in blank line
3183 * inilex.l: add [exp] as alias for [test], add setup-version
3184 * Makefile.in (version.c): add setup-version tag
3186 * desktop.cc (do_desktop): remove 1.1 version number
3187 (do_desktop_setup): ditto
3189 * ini.cc (do_ini): zero out package list just in case we redo it.
3191 2000-09-07 Jeffrey Juliano <juliano@cs.unc.edu>
3193 * choose.cc (list_click): Check for nindexes==0; if so, return.
3195 2000-09-06 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
3197 * localdir.cc: new, local package directory selection dialog; cd
3198 into selected directory
3199 * Makefile.in (OBJS): add localdir.o
3200 * dialog.h: add prototype for do_local_dir
3201 * main.cc (WinMain): initialize local_dir to cwd; add call to
3203 * net.cc (dialog_cmd): make DO_LOCAL_DIR next dialog
3204 * source.cc (dialog_cmd): ditto
3205 * res.rc: add DO_LOCAL_DIR dialog; remove "current directory" from
3206 presented choices in IDD_SOURCE; add IDS_ERR_CHDIR error string
3207 * resource.h: defines for DO_LOCAL_DIR dialog; define IDS_ERR_CHDIR
3208 * root.cc (dialog_cmd): make DO_LOCAL_DIR previous dialog
3209 * state.h: add local_dir variable
3211 2000-09-06 Brian Keener <bkeener@thesoftwaresource.com>
3213 * desktop.cc: added logic to handle to the new dialog and to
3214 default the setting for the new checkboxes based on whether the
3215 desktop icon or start menu link already exist.
3216 (desktop_icon): correction to desktop directories for desktop icon
3217 creation. Additional logic added for Win95 which does not appear
3218 to have Common Directories so if Common selected and null uses
3220 (start_menu): Additional logic added for Win95 which does not
3221 appear to have Common Directories so if Common selected and null
3222 uses normal directory.
3223 (do_desktop_setup): moved the saving of the icon, creation of the
3224 bat file, profile, passwd, Start Menu link and desktop shortcut to
3225 this method from do_desktop. Made the creation of the desktop
3226 icon and start menu link conditional on settings of new dialog
3227 created for desktop.
3228 * install.cc (do_install): changed next from IDD_S_DESKTOP to
3230 * main.cc (WinMain): changed case IDD_S_DESKTOP to IDD_DESKTOP.
3231 * res.rc: added new resource to create a desktop dialog with 2
3232 checkboxes for creating the desktop icon and start menu link.
3233 * resource.h: changed IDD_S_DESKTOP to IDD_DESKTOP and added two
3234 new controls: IDC_ROOT_MENU and IDC_ROOT_DESKTOP for new dialog.
3235 * state.h: added root_menu and root_desktop for use in dialog.
3237 2000-08-29 DJ Delorie <dj@redhat.com>
3239 * choose.cc (scan_downloaded_files): scan for existing files, so
3240 that the user only sees new downloads.
3242 * nio-ie5.cc (NetIO_IE5): pre-check for wininet.dll, enable dial-up
3243 * site.cc (do_site): if we can't download the mirror list, go back
3244 to the net setup box to choose another transport.
3245 * autoload.c: add more functions
3246 * Makefile.in (ALL_DEP_LDLIBS): remove wininet.a
3247 * resource.h: add WININET message
3249 * net.cc (do_net): no longer default to IE5
3250 * simpsock.h (class SimpleSocket): new, simplify socket operations
3251 * simpsock.cc: ditto
3252 * nio-http.h: new, for direct http protocol
3253 * nio-http.cc: ditto
3254 * nio-ftp.h: new, for direct http protocol
3256 * netio.cc (set_url): move initialization here to handle redirections
3257 (open): add direct http/ftp
3258 * netio.h (NetIO::set_url): new
3260 * log.cc (log_save): create directory for log if needed
3262 * hash.cc, hash.h: new
3263 * Makefile: add hash.o
3264 * choose.cc: enable "uninstall" option
3265 * download.cc: invert action test to accomodate uninstalling
3266 * ini.h: add ACTION_UNINSTALL
3267 * install.cc: add uninstall functionality
3268 * res.rc: make install tag changeable
3269 * resource.h: add uninstall resources
3271 * res.rc: update mirror list URL
3273 2000-08-24 DJ Delorie <dj@redhat.com>
3275 * log.cc, log.h: new files
3276 * Makefile.in (OBJS): add log.o
3277 * tar.cc: use exit_setup instead of exit
3278 * dialog.cc (fatal): use exit_setup instead of ExitProcess
3279 * msg.cc (fatal): ditto
3280 * install.cc (dialog_cmd): ditto
3281 * ini.cc (do_ini): ditto
3282 * main.cc (main): add logging
3283 * source.cc (do_source): ditto
3284 * root.cc (do_source): ditto
3285 * site.cc (do_site): ditto
3286 * other.cc (do_other): ditto
3287 * net.cc (do_net): ditto
3288 * choose.cc (do_choose): ditto
3289 * download.cc (do_download): ditto
3290 * install.cc (do_install): ditto
3291 * msg.cc (fatal): ditto
3293 * res.rc: mark password boxes as *being* password boxes.
3295 * fromcwd.cc (canonicalize_version): use multiple buffers so that multiple
3296 calls won't use the same buffer.
3297 * choose.cc (create_listview): don't default to full list if no changes
3298 (base): return computed value, not temporary :-(
3299 (do_choose): don't use installed.db if we're only downloading.
3301 2000-08-23 DJ Delorie <dj@redhat.com>
3303 * nio-ie5.cc (NetIO_IE5): Fix authentication logic
3304 * nio-ie5.h (flush_io): new
3305 * netio.cc (load_dialog): note when we're initializing the dialog
3306 box, and ignore changes to the edit fields then.
3308 2000-08-21 DJ Delorie <dj@redhat.com>
3312 * fromcwd.cc (found_file): don't remember the canonicalized version
3314 * choose.cc (paint): print "nothing to do" message when list is empty.
3315 (build_labels): Use version "0.0" if no version is available.
3316 (create_listview): default to full list if nothing to install/update.
3317 (base): new, returns basename of file
3318 (read_installed_db): compare base names, not full paths
3320 2000-08-11 DJ Delorie <dj@redhat.com>
3322 * choose.cc: add new chooser dialog
3323 * fromcwd.cc: use IDD_CHOOSE
3324 * ini.cc: use IDD_CHOOSE
3325 * main.cc: use IDD_CHOOSE
3326 * ini.h: cosmetic changes
3327 * res.rc: add choose dialog, bitmaps
3328 * choose-spin.bmp: new
3329 * choose-rtarrow.bmp: new
3330 * resource.h: add choose dialog controls
3332 * mount.cc: remove debug statement
3334 2000-08-08 DJ Delorie <dj@redhat.com>
3336 * Makefile.in (version.c): make version checking more robust
3337 * splash.cc (load_dialog): handle case where there's no version
3339 2000-08-07 DJ Delorie <dj@redhat.com>
3341 * (all): add cvsid tags
3342 * Makefile.in: generate version.c from ChangeLog, add splash.o
3344 * res.rc: add splash screen
3346 2000-08-02 DJ Delorie <dj@redhat.com>
3348 * net.cc: remove proxy password code
3349 * res.rc: remove proxy user/pass from net, add auth dialogs
3350 * netio.cc,h: add sys/proxy auth methods
3351 * nio-ie5: use them, check for http status codes
3352 * state.h: add system authorization
3354 * concat.cc (concat): canonicalize x:// to x:/ (exception to ://
3357 2000-08-02 Norman Vine <nhv@yahoo,com>
3359 * msg.cc (mbox): added MB_TOPMOST to MessageBox type flags
3361 2000-08-01 DJ Delorie <dj@redhat.com>
3363 * postinstall.cc (each): don't rename files we ignore
3364 (do_postinstall): set CYGWINROOT to root_dir, chdir there
3366 * desktop.cc: have /etc/profile call ~/.profile and ~/.bashrc
3368 2000-07-31 DJ Delorie <dj@redhat.com>
3370 * desktop.cc: reverse PATH so /usr/bin precedes /bin
3372 2000-07-18 DJ Delorie <dj@redhat.com>
3374 * autoload.c: new, autoload dlls that might not be available.
3375 * Makefile.in (OBJS): add autoload.o
3377 * res.rc: rewrite root options (text/binary, system/user) to be
3380 * site.cc (get_site_list): trim displayed URL, sort by domain
3382 * net.cc (do_net): make IE5 default to checked, for now
3384 * choose.cc (do_choose): sort packages correctly
3385 * ini.cc (do_ini): handle parse errors more gracefully
3387 (fprintf): line buffer output
3388 (do_ini): if we can't load setup.ini, go back to the site list.
3389 * ini.h: add "unknown" trust level
3390 * inilex.l: absorb unknown trust levels and key/value pairs,
3391 add line number logic
3392 * iniparse.y: handle parse errors more gracefully.
3393 * install.cc: skip packages with no valid install entry
3395 2000-07-17 DJ Delorie <dj@cygnus.com>
3397 * coding standards fixups, many files
3398 * mkdir.cc: warn about deletions *before* deleting them
3400 2000-07-17 Jeff Juliano <juliano@cs.unc.edu>
3402 * res.rc (IDD_OTHER_URL): reorder to give default focus to entry
3404 * other.cc (dialog_cmd): save download site URL
3405 * site.cc (get_root_dir): new
3406 (save_mirror_site): new
3407 (dialog_cmd): save download site URL
3408 (get_site_list): make list big enough to add prev site
3409 (get_initial_list_idx): new, read last-used URL from file and
3410 append it to site_list
3411 (do_site): call get_initial_list_idx
3413 * concat.cc (concat): avoid segfault when first parm is null
3415 2000-07-13 DJ Delorie <dj@cygnus.com>
3417 * postinstall.cc: new
3418 * Makefile.in: add postinstall.o
3419 * concat.h: add backslash ()
3421 * desktop.cc (etc_profile): don't do postinstall
3422 (backslash): moved to concat.cc
3424 (make_postinstall_script): run directly
3425 (do_desktop): chain to do_postinstall
3426 * dialog.h: add exit_msg, do_postinstall
3427 * download.cc: use exit_msg
3429 * main.cc: add postinstall, exit_msg
3430 * resource.h: add postinstall
3431 * README: add more to-do items
3433 2000-07-12 DJ Delorie <dj@cygnus.com>
3435 * desktop.cc: add /etc/postinstall/ support
3436 * install.cc: add more "standard" directories
3438 2000-07-11 DJ Delorie <dj@cygnus.com>
3440 * desktop.cc: create /etc/profile
3441 * desktop.cc: fix include syntax
3442 * Makefile.in: add auto-dependencies
3443 * root.cc: support system vs user
3451 * desktop.cc: make sure we use backslashes, not slashes.
3452 * desktop.cc: don't set PATH in cygwin.bat, create /etc/passwd
3453 * geturl.cc: change math for percentage to avoid overflow
3455 * download.cc: post "download complete" message.
3456 * root.cc: pre-fill in defaults if needed, don't start
3457 browse at root_dir unless it's set.
3458 * desktop.cc: quote $PATH in case it has spaces in it
3460 2000-07-10 DJ Delorie <dj@cygnus.com>
3462 * Makefile.in: add desktop.o and mklink2.o
3463 * dialog.h: add do_desktop
3464 * install.cc: create standard directories, call do_desktop
3465 * res.rc: add cygwin.ico as a file also
3466 * desktop.cc: new, do shortcuts, batch files, and icons
3467 * mklink2.c: new, for COM
3468 * README: update to-do list
3470 2000-07-10 DJ Delorie <dj@cygnus.com>
3472 * ini.cc (do_ini): don't worry about timestamps if we're not
3473 actually installing.
3475 2000-07-09 DJ Delorie <dj@cygnus.com>
3477 * Makefile.in: add -I$(srcdir) for ini.h
3479 2000-07-06 DJ Delorie <dj@cygnus.com>
3481 * Replace everything with a new GUI version
3482 * zlib/gzio.c: add gzctell() for progress displays
3484 2000-06-22 DJ Delorie <dj@cygnus.com>
3486 * setup.c (tarx): re-add call to write_pkg()
3488 2000-06-07 DJ Delorie <dj@cygnus.com>
3490 * cygcalls.c: new, call cygwin1.dll functions directly
3491 * cygcalls.h: header for same
3492 * Makefile.in: add cygcalls.[ch], remove mount/cygpath/umount
3493 exes, fix cinstall.rc dependencies.
3494 * path.c: remove unneeded code
3495 * setup.c: use cygcalls instead of xcreate_process.
3496 uncompress embedded files with zlib
3497 add "-d" for "download only"
3499 postpone mount changes until very end
3500 add download progress indicators
3501 pack multi-column listings more
3502 auto-delete temp files
3503 customize banner message according to options
3504 prompt user for text/binary mounts
3505 add warnings about empty setup directory, root installs, etc
3507 2000-05-24 DJ Delorie <dj@cygnus.com>
3509 * tar.c: New file; built-in tar using zlib.
3510 * tar.h: New file; header for same.
3511 * ctar.c: New file; test program for same.
3512 * Makefile.in: add built-in tar, remove tar.exe and gzip.exe
3513 * path.c (pathcat): convert slashes and canonicalize, instead of aborting
3514 * setup.c (tarx): add support for built-in tar
3515 (main): accept unix-style slashes, check root dir for drive letters,
3516 warn about installing in /, make sure cwd is empty for internet installs,
3517 defer mounts to end of install, support built-in tar.
3519 Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
3521 Fix compiler warnings throughout.
3522 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
3524 * setup.c: Make 'root' global.
3525 (istargz): Return pointer to "stem" of matched .tar.gz file.
3526 (tarx): Special case cygwin-20000301 to == cygwin-1.1.0.tar.gz. Remove
3527 bogus check_for_installed check.
3528 (recurse_dirs): Add preliminary support for .bat file execution.
3529 (create_uninstall): Eliminate unneeded parameter.
3530 (do_start_menu): Ditto.
3532 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
3533 scanning for the version number. Eliminate unneeded argument to
3535 (getdownloadsource): Add 'name' to list of names rather than url.
3536 (main): Eliminate unneeded argument in get_pkg_stuff. Eliminate
3537 unneeded argument in mkmount and do_start_menu.
3539 2000-05-18 DJ Delorie <dj@cygnus.com>
3541 * setup.c (optionprompt): allow multi-column, clean up message
3542 about more options, be more robust about user input.
3543 (getdownloadsource): make the mirror URL a macro.
3544 (main): do mounts after done prompting user.
3546 Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
3548 * setup.c (cleanup): Inverse order of deletion stands a better chance
3549 of deleting cygpath.exe. Still seems to suffer from occasional races,
3551 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
3553 (output_file): Defend against an unlikely handle leak.
3554 (main): Don't set up signal handling until we have something special to
3557 Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
3559 * path.c (kill_cygpath): Delete function.
3560 (exit_cygpath): Make more defensive so that it can be called at any
3562 (cygpath_pipe): Don't set up signal here. Do it in main().
3563 * setup.c (istargz): New function.
3564 (recurse_dirs): Look for *.gz pattern rather than *tar.gz since *tar.gz
3565 inexplicably fails on samba mounted partitions. Use istargz to match
3567 (processdirlisting) Use istargz to match tar.gz tail.
3568 (cleanup): Renamed from filedel.
3569 (cleanup_on_signal): New function. Called on CTRL-C.
3570 (main): Record handle of main thread so that it can be suspended when
3571 CTRL-C occurs. Set up cleanup_on_signal signal handler.
3573 Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
3575 * setup.c (do_start_menu): Don't concatenate paths to already built
3578 Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
3580 * path.c (exit_cygpath): Wait for subprocess to exit before returning.
3581 (cygpath_pipe): Don't call exit_cygpath. Let main atexit routine do
3583 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
3585 * setup.c (filedel): Call exit_cygpath here so that we can be assured
3586 that cygpath subprocess has died. This allows us to delete cygpath.exe
3588 (optionprompt): Initialize response to -1 so that second screen of
3589 mirrors will appear.
3590 (get_pkg_stuff): Don't attempt to use HKCLU. Pass root to init_pkgs.
3591 * setup.h: Reflect init_pkgs prototype change.
3593 Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
3595 * pkg.c (init_pkgs): Accept an argument to control what root registry
3597 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
3598 * setup.h: Reflect init_pkgs prototype change.
3600 Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
3602 * error.c (winerror): Respond to gcc warning.
3603 * path.c (cygpath_pipe): Ditto.
3604 * setup.c (filedel): Call sa_cleanup on deleteme.
3605 (create_shortcut): Coerce argument to eliminate compiler warning.
3606 (tarx): Use installed version of cygwin1.dll, overriding tar file name.
3607 (refmatches): New function. Tests if ref is contained in a list of
3608 packages to install.
3609 (filematches): New function. Tests if filename matches one of a list
3610 of packages to install.
3611 (recurse_dirs): Accept list of packages to install. Generalize tar.gz
3612 test to accomodate _tar.gz.
3613 (prompt): Ensure that stdout is flushed prior to asking for input.
3614 (findhref): Initialize variables to quiet a compiler warning.
3615 (processdirlisting): Accept list of packages to install. Special case
3616 cygwin tar file version number.
3617 (downloaddir): Accept list of packages to install.
3618 (downloadfrom): Ditto.
3619 (create_uninstall): Eliminate unneeded variables. Quote arguments to
3621 (do_start_menu): Don't create uninstall bat file if updating or user
3622 specified a list of packages.
3623 (mkmount): Eliminate unneeded variables.
3624 (get_pkg_stuff): New function. Checks for previous unversioned
3626 (main): Accept -u and -f options and package names on the command line.
3627 Use get_pkg_stuff to initialize package information. Umount /etc.
3628 Call recurse_dirs and downloadfrom with list of package to install.
3629 Ensure that all /usr/local directories are created. Output
3630 installation time to setup.log.
3631 * setup.h: Add some prototypes.
3632 * xsystem.c (xcreate_process): Eliminate unneeded variable.
3634 Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
3636 * setup.c (optionprompt): Don't overlap display of already seen options
3638 (geturl): Print name of site which we're connecting to rather than "ftp
3640 (processdirlisting): Avoid URLs that contain a /. or ./ . Is this
3641 test too simplistic?
3642 (do_start_menu): Use pathcat to build path to <root>\bin to avoid
3643 problems when user chooses x:\ as their root.
3644 (main): For now, default to "non-update" mode. Allow -u option to
3647 Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
3650 * setup.c (tarx): Skip already installed or older packages. Report
3651 when a package has been updated.
3652 (processdirlisting): Skip already installed or older packages.
3653 (main): Detect -f option for forced installation. Initialize pkg stuff
3655 * setup.h: Add pkg definitions.
3657 Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
3659 * setup.c (findhref): Return NULL on empty string. Eat any trailing
3661 (processdirlisting): Attempt to limit recursively processing the same
3664 Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
3666 * setup.c (filedel): New function.
3667 (output_file): Keep track of files extracted from setup.exe for
3668 subsequent deletion.
3669 (tarx): Close process handle of child tar process or suffer handle
3671 (getdownloadsource): Close mirror file so that it can be unlinked.
3672 (processdirlisting): Return total number of files extracted.
3673 (main): Initialize array of files to delete. Ensure that files are
3674 closed on exit. Make the directory that setup.exe is started from ==
3675 the directory where temporary files are placed. Issue an error if no
3676 files were found to download.
3677 * xsystem.c (xcreate_process): Close the thread handle. Close the
3678 process handle if we waited for it to exit.
3680 Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
3682 * setup.c (main): Change version number output.
3684 Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
3686 * setup.c (tarx): Use full path name to tar executable.
3687 (main): Build full pathname to tar executable. Create /usr/local/etc
3690 Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
3692 * setup.c (findhref): Change method for scanning for href= to choose
3693 the last one on the line. This is still not foolproof and probably
3694 will need to be changed eventually. Don't abort if no "size" field is
3696 (processdirlisting): Fix boolean algebra.
3698 Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
3700 * main.c (tarx): Add some code for future task of unmounting
3701 directories encountered in tar file.
3703 Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
3705 * setup.c (findhref): Decode file size, when appropriate.
3706 (needfile): New function. Returns 1 when file should be
3708 (processdirlisting): Always download if file size does not
3709 match. Prompt when download fails for some reason.
3710 (getdownloadsource): Accomodate findhref argument changes.
3712 Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
3714 Throughout, use global session handle rather than reinitializing for
3715 each connect. Don't pass session as an argument to setup.c functions.
3716 * setup.c (geturl): Only issue "Connecting to.." message when using
3717 http or first time for ftp since subsequent connections will be fast.
3718 (processdirlisting): Allocate space for "N" when user has specified
3719 "N"ever option so that it can be subsequently freed.
3720 (main): Abort if we can't get the list of mirrors.
3722 Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
3724 * setup.c (main): Umount /bin and /lib.
3726 Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
3728 * setup.c (main): Create an empty /var/run/utmp.
3730 Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
3732 * Makefile.in: Add umount to list of files to include in setup.exe.
3733 * setup.c (xumount): New function for unmounting directories.
3734 (main): Unmount /usr.
3735 (mkmount): Unmount "unix directory" before trying to figure out where
3736 to create the directory.
3738 Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
3740 * setup.c (mkmount): Use xcreate_process to start mount process,
3742 (main): Don't do buffering on stdout or prompts won't be displayed
3743 correctly if running in a cygwin shell with CYGWIN=tty.
3745 Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
3747 * setup.c (main): Remove the CYGWIN environment variable before
3748 starting any cygwin programs.
3750 Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
3752 * setup.c (geturl): Use alternative method for finding filename part of
3754 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
3755 (downloaddir): Unlink file containing dir listing.
3756 (downloadfrom): Ditto.
3758 Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
3760 * setup.c (main): Disallow running setup.exe from the "root".
3762 Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
3764 Use "warning" function, where appropriate, to output warnings.
3765 * setup.c (warning): New function -- outputs warning to console and log
3767 (tarx): Fix index used to reset file protection.
3768 (main): Open the log file earlier so that more stuff can be sent to it.
3770 Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
3772 * setup.c (processdirlisting): Make "N" option a little less aggressive.
3774 Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
3776 * setup.c (tarx): Wait to after tar has completed to reset protections
3777 or suffer races with tar process.
3779 Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
3781 * Makefile.in: Eliminate duplicate -nostdinc from CFLAGS.
3782 * setup.c (create_uninstall): Create the uninstall .bat file in the
3783 "root" so that we can remove the /bin directory. Add bin\cygwin.bat to
3784 list of files to be deleted. Fix directory detection for determining
3785 when to use 'rmdir'.
3786 (do_start_menu): Add /usr/local/bin to the path.
3787 (main): Add slop to files.array allocation so that we don't have to
3788 worry about reallocating the array when it grows too large when doing
3789 some trivial "pushes". Add /tmp and /usr/local/{bin,lib} to list of
3792 Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
3794 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
3797 Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
3799 * path.c (kill_cygpath): New cleanup function.
3800 (exit_cygpath): New cleanup function.
3801 (cygpath_pipe): New function. Sets up cygpath in the background for
3802 translating filenames.
3803 (pathcvt): Use background cygpath for file translation.
3804 * setup.c (tarx): New function. Called to extract tar files, capture
3805 logging output, and translate it to Windows format.
3806 (recurse_dirs): Use 'tarx' function to extract files.
3807 (create_uninstall): Use file list built up by tarx rather than reading
3809 (mkmount): Add ability to mount root.
3810 (main): Track elapsed install time. Mount root.
3811 * starry.h: Add index field to strarry for tracking of tarx's usage of
3813 * xsystem.c (xcreate_process): Return proces handle when not waiting.
3815 Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
3818 (pathfp): New function. Preliminary work for new -f cygpath
3820 * Makefile.in: Add new file.
3821 (pathcvt): Move to new file.
3825 * setup.c (processdirlisting): Always open file in text mode.
3826 (create_uninstall): Ditto.
3827 (getdownloadsource): Ditto.
3830 Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
3832 * xsystem.c: New file.
3833 * Makefile.in: Accomodate new file.
3834 * setup.c (xsystem): Move to new file.
3835 (recurse_dirs): Accept handle to output log file. Don't use ">"
3836 redirection to trap tar output. Use supplied handle instead.
3837 (create_uninstall): Accept FILE pointer to opened log file. Don't
3838 unlink log file here.
3839 (do_start_menu): Accept FILE pointer to pass to create_uninstall.
3840 (main): Open log file here and pass it to various functions. Unlink
3843 Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
3845 Change occurrences of .usr.bin to .bin throughout.
3846 * setup.c (geturl): Increase number of retries to 20. Let user know
3847 what's going on during long connects.
3848 (processdirlisting): Accept "A"lways and "N"ever as update options.
3849 (create_uninstall): Load cygwin1.dll from the current directory rather
3851 (main): Add some expository text.
3853 Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
3855 * Makefile.in: Change method for compressing cygwin1.dll to avoid
3856 creating a cygwin1.dll in the current directory. Ensure the addition
3857 of -nostdinc to MINGW_CFLAGS.
3859 Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
3861 * Makefile.in: Augment clean target.
3863 Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
3865 * README: Added info about non-working mingw implementation
3866 * gzip.exe.gz: Replace with a version from the same build as the other
3868 * tar.exe.gz: Replace with a version from the same build as the other
3870 * mount.exe.gz: Add to repository until, mingw can build setup.
3871 * cygpath.exe.gz: ditto
3872 * cygwin1.dll.gz: ditto
3873 * setup.c: Overwrite /bin and /lib mounts. Generate working shortcut
3874 for Win9x. Display only a screenfull of options at a time. Call all
3875 tools with an absolute path.
3876 * setup.dsp: Restore the carriage returns, MS Developer Studio needs
3881 Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
3883 * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab
3884 cygwin1.dll from ../cygwin subdirectory.
3885 * gzip.exe.gz: Update.
3886 * tar.exe.gz: Update.
3888 Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
3890 * Makefile.in: Use ZLIB variable as a target.
3892 Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
3894 * Makefile.in: Eliminate traces of cygwinisms. Don't link with
3895 libmsvcrt.a. It's unneeded. Build .rc file on the fly from various
3897 * configure.in: Locate correct objcopy.
3898 * configure: Regenerate.
3900 Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
3902 * Makefile.in: New file.
3903 * configure.in: New file.
3904 * configure: New file.
3905 * zlib/Makefile.am: New file.
3906 * zlib/configure.in: New file.
3907 * zlib/aclocal.m4: New file.
3908 * zlib/acinclude.m4: New file.
3909 * zlib/configure: Regenerate from configure.in.
3910 * zlib/Makefile.in: Regenerate from Makefile.am