1 2002-04-27 Robert Collins <rbtcollins@hotmail.com>
3 * compress_gz.cc (compress_gz::error): EOF is not an error condition.
5 2002-04-27 Robert Collins <rbtcollins@hotmail.com>
7 * Makefile.am: Add libgetopt++ to the subdirs list.
8 Search the libgetopt++ header directory.
9 Link against libgetopt++.la.
10 (setup_SOURCES): Remove GetOption.cc and getopt.c and Option.cc.
11 (setup_LDADD): Explicitly include res.o.
12 * Makefile.in: Regenerate.
13 * aclocal.m4: Regenerate.
14 * bootstrap.sh: Call libtoolize.
15 * configure: Regenerate.
16 * configure.in: Add libtool support and configure libgetopt++.
17 * desktop.cc (NoShortcutsOption): Turn into a BoolOption.
18 (DesktopSetupPage::OnInit): Use the simpler syntax.
19 * desktop.h: Remove dependency on Option.h, and remove NoShortcustOption
21 * main.cc: Include getopt++/GetOption.h.
22 (main): Use simpler syntax.
26 * GetOption.h: Remove.
27 * GetOption.cc: Remove.
31 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
33 * Makefile.am: Add zlib and bz2lib to SUBDIRS.
35 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
37 * aclocal.m4: New file, cached macros.
38 * bootstrap.sh: New file, calls required autotools in appropriate
40 * Makefile.am: New file, input Makefile for automake.
41 * Makefile,in: Now a generated file - regenerate.
42 * configure: Regenerate.
43 * configure.in: Add automake support.
44 * inilex.l: Change VERSION to PACKAGEVERSION to avoid a collision with
45 automake's VERSION define.
48 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
50 * cdefs.h: New file, imported to allow getopt.c to build without
52 * getopt.h: New file, imported to allow building without cygwin headers.
54 * bz2lib: New directory, contains copy of bz2lib.
55 * cfgaux: New directory, contains autotool helper scripts.
56 * Makefile,in: Adjust library and target definitions for building
57 outside the sourceware tree.
58 * compress_bz.h: Use new bz2lib header location.
59 * mount.cc: Import key defines and enums to be independent of cygwin
61 * configure.in: Update to autoconf 2.53, and to be sourceware
63 * configure: Regenerate.
65 2002-04-12 Robert Collins <rbtcollins@hotmail.com>
67 * mklink2.cc (make_link_2): Tweak to work with current w32api
70 2002-04-10 Pavel Tsekov <ptsekov@gmx.net>
72 * version.cc (canonicalize_version): Fix a call delete[]
73 to delete the allocated address.
75 2002-03-29 Robert Collins <rbtcollins@hotmail.com>
77 * PickView.cc (PickView::set_headers): Set last_col correctly. Thanks
78 to Ton van Overbeek for locating the bug area.
80 2003-03-27 Robert Collins <rbtcollins@hotmail.com>
82 * PickView.cc (PickView::insert_pkg): Be more generic with
84 (PickView::insert_category): Ditto.
85 (PickView::~PickView): Create.
86 * PickView.h (PickView::~PickView): Declare.
88 2003-03-27 Robert Collins <rbtcollins@hotmail.com>
90 * Makefile.in (OBJS): Add new commandline objects.
91 * desktop.cc (NoShortCutsOption): New option code.
92 (DesktopSetupPage::OnInit): Check whether to skip shortcuts.
93 * desktop.h (NoShortCutsOption): New concrete command line option class.
94 * main.cc (WinMain): Process command line options.
95 * GetOption.h: New file, singleton command line class.
96 * GetOption.cc: New file, implementation of the above.
97 * Option.h : New file, abstract option for GetOption.
98 * Option.cc: New file, implement constructor and destructor.
100 2002-03-26 Pavel Tsekov <ptsekov@gmx.net>
102 * mkdir.cc (mkdir_p): Stop processing if the path is exhausted.
104 2002-03-26 Ton van Overbeek <tvoverbe@cistron.nl>
106 * PickPackageLine.cc (PickPackageline::paint): Adjust clipping rectangle
107 to textheight, so large fonts work.
109 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
111 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Don't translate
114 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
116 * io_stream_cygfile.cc (cwd): New static for cwd storage.
117 (io_stream_cygfile::normalise): New method.
118 (io_stream_cygfile::io_stream_cygfile): Use it.
119 (io_stream_cygfile::exists): Ditto.
120 (io_stream_cygfile::remove): Ditto.
121 (io_stream_cygfile::mklink): And again.
122 (cygmkdir_p): Yes, again.
123 (io_stream_cygfile::move): And once more.
124 * io_stream_cygfile.h (io_stream_cygfile::normalise): Declare.
125 (io_stream_cygfile::cwd): Ditto.
127 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
129 * package_meta.cc (package_meta::~package_meta): Remove duplicate.
130 (CategoryPackage::~CategoryPackage): Ditto. (Thanks to Ton van
131 Overbeek for the report).
132 * mklink2.cc: Moved from mklink2.c to avoid 'not a prototype error'.
135 * site.cc (site_list_type::init): Delete the correct memory addres.
136 Thanks to Pavel Tsekov for tracking this down.
138 2002-03-20 Robert Collins <rbtcollins@hotmail.com>
140 * win32.h: Only define alloca if it's not already.
142 2002-03-20 Robert Collins <rbtcollins@hotmail.com>
144 * package_meta.h (packamgemeta::trustp): Make 'test' choice leave installed
146 * README: Update with latest requests.
147 * Various: MTC fixes from setup200202 branch.
149 2002-03-19 Christopher Faylor <cgf@redhat.com>
151 * Makefile.in (setup_version.c): Add back magic which allows detection
152 of setup.exe version number.
154 2002-03-17 Robert Collins <rbtcollins@hotmail.com>
156 * * PickPackageLine.cc (PickPackageLine::paint): Fix incorrect clip region
157 calculation on win9x systems.
159 2002-03-16 Robert Collins <rbtcollins@hotmail.com>
161 * install.cc (install_one_source): Write the correct length of a string to the
162 lst file (Thanks to Pavel Tsekov for reporting the bug).
164 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
166 * choose.cc (list_click): Always refresh the entire chooser, as our
167 package state change mechanism is broken with the new improved list classes.
169 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
171 * desktop.cc (make_passwd_group): Check for .lnk suffix on /etc/passwd and
174 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
176 * PickPackageLine.cc (PickPackageLine::DrawCheck): New method factored out from
178 (PickPackageLine::paint): Use DrawCheck to draw the src tick box, and the new
180 (PickPackageLine::click): Handle the new bin tickbox.
181 * PickPackageLine.h (PickPackageLine::DrawCheck): Declare this.
182 * PickView.cc (pkg_headers): Add a Bin? column.
183 (cat_headers): Ditto.
184 (PickView::set_headers): Ditto.
185 (PickView::init_headers): Ditto.
186 * PickView.h (PickView): Ditto.
187 * choose.cc (list_click): Use the new name for src_col to set the clip rectangle.
189 2002-02-24 Michael A Chase <mchase@ix.netcom.com>
191 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Fix up Robert's
194 2002-02-24 Michael A Chase <mchase@ix.netcom.com>
196 * desktop.cc (make_link): Add "file://" prefix to io_stream::mkpath_p()
198 (make_passwd_group): Ditto.
199 * localdir.cc (save_local_dir): Ditto.
200 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Wrap long lines.
201 Add "cygfile://" prefix to io_stream::open() calls.
203 2002-02-24 Robert Collins <rbtcollins@hotmail.com>
205 * log.cc (log_save): Fix creating /var/log.
206 * packate_meta.cc (standard_dirs): Remove duplicate '/''s.
208 2002-02-24 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
210 * res.rc (STRINGTABLE): Add IDS_CYGWIN_SETUP and
211 IDS_CYGWIN_SETUP_WITH_PROGRESS strings.
212 * resource.h: Add IDS_CYGWIN_SETUP and
213 IDS_CYGWIN_SETUP_WITH_PROGRESS IDs.
215 * splash.cc (OnInit): Qualify SetWindowText() call with global scope
216 operator (::SetWindowText()).
218 * threebar.cc: Run indent.
219 (cistring.h): Add include.
220 (SetText1, SetText2, SetText3): Qualify SetWindowText() call with
221 global scope operator.
222 (SetBar2): Add logic for writing percent complete into window title.
224 * window.h: Run indent.
225 (SetWindowText): New function.
226 (String): Add forward declaration.
227 * window.cc: Run indent.
228 (String++.h): Add include.
229 (SetWindowText): New function.
231 2002-02-24 Robert Collins <rbtcollins@hotmail.com>
233 * README: Update TODO list.
234 * install.cc (install_one): Fix src package location.
235 (do_install_thread): Fix creating directories.
237 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
239 * choose.cc: Include cygpackage.h for scan2 use.
240 (set_existence): Ignore setup.ini mirrors when installing from cwd.
241 (scan2): Process any valid file.
242 Add cache entries when a file matching a setup.ini listed version is found.
243 * filemanip.cc (parse_filename): Remove pkgtar - not used anywhere else.
244 * filemanip.h (filemanip::pkgtar): Remove.
245 * package_meta.cc (CategoryPackage::~CategoryPackage): New method.
246 (packagemeta::~packagemeta): Move from package_meta.h
247 Remove and delete all version and category information.
248 * package_meta.h (CategoryPackage): Create a destructor.
249 (packagemeta::~packagemeta): Move to .cc file.
251 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
253 * install.cc (install_one_source): Make NULL cached package names cause
256 2002-02-18 Michael A Chase <mchase@ix.netcom.com>
258 * desktop.cc (make_passwd_group): Don't create passwd-grp.bat
261 2002-02-18 Michael A Chase <mchase@ix.netcom.com>
263 * log.cc (log_save): Put "\n" at end of log lines instead of "'".
265 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
267 * mount.cc (create_mount): Avoid a const char*->char* warning.
268 (read_mounts): Ditto.
270 2002-02-05 Jason Tishler <jason@tishler.net>
272 * download.cc (do_download_thread): Fix off-by-one error.
274 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
276 * configure.in (CXXFLAGS): Substitute at configure time, not runtime.
277 * configure (CXXFLAGS): Regenerate.
278 * Makefile.in (iniparse.o): Build via default rules - no errors now.
279 * README: TODO list updates.
281 2002-02-19 Michael A Chase <mchase@ix.netcom.com>
283 * String++.cc (String::concat):: Remove.
284 (String::vconcat):: Ditto.
285 * String++.h (String::concat):: Remove.
286 (String::vconcat):: Ditto.
287 * archive_tar.cc: Don't include concat.h.
288 * archive_tar_file.cc: Don't include concat.h.
289 * compress_bz.cc (compress_bz::peek): Don't log unneeded messages.
290 (compress_bz::seek): Ditto.
291 (compress_bz::~compress_bz): Ditto.
292 * compress_gz.cc (compress_gz::peek): Ditto.
293 (compress_gz::error): Ditto.
294 (compress_gz::~compress_gz): Ditto.
295 * concat.cc (vconcat): Remove.
297 * concat.h (vconcat): Remove.
299 * desktop.cc (desktop_icon): Use new cygpath.
300 (make_etc_profile): Ditto.
302 (make_passwd_group): Ditto.
304 (check_desktop): Remove concat use.
305 (check_start_menu): Ditto.
306 * download.cc (download_one): Use new mkpath_p correctly.
308 * fromcwd.cc: Don't include concat.h.
309 * geturl.cc (get_url_to_membuf): Use String log() call.
310 (get_url_to_file): Ditto.
311 * install.cc: Don't include concat.h.
312 (uninstall_one): Use LOG_PLAIN.
313 (replace_one): Ditto.
314 (install_one_source): Ditto.
315 (install_one): More char to String conversion.
316 (do_install_thread): Use new cygpath.
317 Use new create_mount.
318 * io_stream.cc (io_stream::move): Use new log().
319 * io_stream_cygfile (io_stream_cygfile::io_stream_cygfile): Use new cygpath.
320 (io_stream_cygfile::exists): Ditto.
321 (io_stream_cygfile::remove): Ditto.
322 (io_stream_cygfile::mklink): Ditto.
323 (io_stream_cygfile::write): Ditto.
325 (io_stream_cygfile::move): Ditto.
326 * io_stream_file.cc: Don't include log.h.
327 (io_stream_file::write): Don't log unneeded messages.
328 * localdir.cc: Don't include concat.h.
329 (LocalDirPage::OnNext): Use LOG_PLAIN.
330 * log.cc: Don't include log.h.
331 (exit_setup): Use new cygpath.
332 * log.h (log_level): Add new level LOG_PLAIN.
333 * main.cc (WinMain): Use new log().
334 * mount.cc (SLASH_P): New macro from concat.h.
335 (cygpath): Make String version globally visible.
336 Remove varargs version.
338 * msg.cc (mbox): Use LOG_PLAIN.
339 * net.cc (NetPage::OnNext): Ditto.
340 * nio-ftp.cc (ftp_line): Use new log().
341 * nio-http.cc: Don't include log.h.
342 (retry_get): Use alternative url variable.
343 * package_db.cc: Don't include concat.h.
344 (packagedb::flush): Don't use concat.
345 * package_meta.cc: Don't include concat.h.
346 (packagemeta::uninstall): Use new cygpath.
347 * postinstall.cc (do_postinstall): Ditto.
348 * root.cc (RootPage::OnNext): Use LOG_PLAIN.
349 * script.cc: Don't include concat.h.
350 (init_run_script): Use new cygpath.
351 (run_script): More char * to String conversion.
352 (try_run_script): Ditto.
353 * site.cc: Don't include concat.h.
354 (SitePage::OnNext): Use LOG_PLAIN.
355 (SitePage::OnMessageCmd): Use new log().
356 * source.cc (SourcePage::OnDeactivate): Use LOG_PLAIN.
358 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
360 * Makefile.in (OBJS): Add new object.
361 * PickCategoryLine.cc (PickCategoryLine::paint): Print a "+" before the name.
362 * PickCategoryLine.h (PickCategoryLine::bucket): Use the String class.
363 * PickLine.h (Pickline::key): Change to a String to help plug leaks.
364 (PickLine::Pickline): Accept a String for the key.
365 * PickPackageLine.cc (PickPackageLine::paint): Convert all char use to Strings.
366 * PickPackageLine.h (PickPackageLine::PickPackageLine): The key is automatically
368 * PickView.cc (PickView::note_width): Convert all char * use to Strings.
369 (PickView::init_header): Move category length checking out of the inner loop for
371 Convert all char use to Strings.
372 * PickView.h: Include the String++ header.
373 (PickView::note_width): Update the prototype.
374 * String++.cc: New file, implements a reference counting string class.
375 * String++.h: New file, declares a reference counting string class.
376 * archive.cc: Include String++ instead of concat.
377 (archive::extract_file): Convert char * usage to Strings.
378 * archive.h: Inlude the String++ header.
379 (archive::extract_file): Update prototype.
380 (archive::next_file_name): Convert to a String.
381 (archive::linktarget): Ditto.
382 * archive_tar.cc (archive_tar::next_file_name): Convert to String usage.
383 (archive_tar::linktarget): Ditto.
384 * arhive_tar.h: Update the copyright.
385 Explicitly include the relevant headers.
386 (tar_map_result_type): Convert to String usage.
387 (archive_tar::next_file_name): Update prototype.
388 (archive_tar::linktarget): Ditto.
389 * category.cc (Category::Category): Update initialisers.
390 Convert to String usage.
391 (Categorycmp): Update to String usage.
392 * category.h: Include the String++ header.
393 (Category::Category): Update to String usage.
394 (Category::name): Ditto.
395 (Category::key): Ditto.
396 * choose.cc: Remove concat.h, it's not needed.
397 (scan2): Update to String usage.
399 * cygpackage.cc: Update includes for use of String class.
400 (cygpackage::cygpackage): Update for String usage.
401 (cygpackage::set_canonical_version): Ditto.
402 (cygpackage::destroy): Ditto.
403 (cygpackage::getfirstfile): Ditto.
404 (cygpackage::getnextfile): Ditto.
405 (cygpackage::Name): Ditto.
406 (cygpackage::Vendor_version): Ditto.
407 (cygpackage::Package_version): Ditto.
408 (cygpackage::Canonical_version): Ditto.
409 (cygpackage::set_sdesc): Ditto.
410 (cygpackage::set_ldesc): Ditto.
411 * cygpackage.h: Include String++.h for parsing this file.
412 (cygpackage::cygpackage): Update for String usage.
413 (cygpackage::set_canonical_version): Ditto.
414 (cygpackage::destroy): Ditto.
415 (cygpackage::getfirstfile): Ditto.
416 (cygpackage::getnextfile): Ditto.
417 (cygpackage::Name): Ditto.
418 (cygpackage::Vendor_version): Ditto.
419 (cygpackage::Package_version): Ditto.
420 (cygpackage::Canonical_version): Ditto.
421 (cygpackage::set_sdesc): Ditto.
422 (cygpackage::set_ldesc): Ditto.
423 (cygpackage::name): Ditto.
424 (cygpackage::vendor): Ditto.
425 (cygpackage::packagev): Ditto.
426 (cygpackage::canonical): Ditto.
427 (cygpackage::fn): Ditto.
428 (cygpackage::sdesc): Ditto.
429 (cygpackage::ldesc): Ditto.
430 * desktop.cc: Update includes for use of String class.
431 (batname): Update for String usage.
435 (desktop_icon): Ditto.
436 (make_cygwin_bat): Ditto.
437 (make_etc_profile): Ditto.
439 (make_passwd_group): Ditto.
441 (check_desktop): Ditto.
442 (check_startmenu): Ditto.
443 * dialog.cc (eget): Update for String usage.
444 (egetString): New function.
445 (eset): New variant for Strings.
446 * dialog.h: Include String++.h for parsing this file.
447 (egetString): New function.
448 (eset): New variant for Strings.
449 * diskfull.cc (diskfull): Update for String usage.
450 * diskfull.h: Include String++.h for parsing this file.
451 (diskfull): Update for String usage.
452 * download.cc: Update includes for use of String class.
453 (check_for_cached): Update for String usage.
454 (download_one): Ditto.
455 * filemanip.cc (get_file_size): Ditto.
457 (parse_filename): Ditto.
459 * filemanip.h: Include String++.h for parsing this file.
460 (fileparse): Update for String usage.
462 (parse_filename): Ditto.
463 Don't consider '_' to be a separator.
465 * find.cc: Update includes for use of String class.
466 (find_sub): Make more flexible.
467 (find): Update for String usage.
468 * find.h (find): Use Strings.
469 * fromcwd.cc (found_file): Update for String usage.
471 (init_dialog): Ditto.
472 (get_url_to_membuf): Ditto.
473 (get_url_to_string): Ditto.
474 (get_url_to_file): Ditto.
476 (get_url_to_membuf): Ditto.
477 (get_url_to_string): Ditto.
478 (get_url_to_file): Ditto.
480 (add_subdirs): Ditto.
481 * ini.cc: Update includes for String usage.
482 (find_routine): Update for String usage.
483 (do_remote_ini): Ditto.
484 (do_ini_thread): Ditto.
485 * ini.h (ini_init): Ditto.
486 * inilex.l: Update includes for String usage.
487 (ini_init): Update for String usage.
489 (add_correct_version): Ditto.
490 * install.cc: Update includes for String usage.
491 (install_one_source): Update for String usage.
492 (uninstall_one): Ditto.
493 (replace_one): Ditto.
494 (install_one_source): Ditto.
495 (do_install_thread): Ditto.
496 * io_stream.cc: Update includes for String usage.
497 (io_stream::open): Update for String usage.
498 (io_stream::mkpath_p): Ditto.
499 (io_stream::remove): Ditto.
500 (io_stream::mklink): Ditto.
501 (io_stream::move_copy): Ditto.
502 (io_stream::move): Ditto.
503 (io_stream::exists): Ditto.
504 * io_stream.h: Update includes to allow correct parsing.
505 (io_stream::open): Update for String usage.
506 (io_stream::mkpath_p): Ditto.
507 (io_stream::remove): Ditto.
508 (io_stream::mklink): Ditto.
509 (io_stream::move_copy): Ditto.
510 (io_stream::move): Ditto.
511 (io_stream::exists): Ditto.
512 * io_stream_cygfile.cc: Update includes for String usage.
513 (get_root_dir_now): Update for String usage.
514 (io_stream_cygfile::io_stream_cygfile): Ditto.
515 (io_stream_cygfile::~io_stream_cygfile): Ditto.
516 (io_stream_cygfile::exists): Ditto.
517 (io_stream_cygfile::remove): Ditto.
518 (io_stream_cygfile::mklink): Ditto.
520 (io_stream_cygfile::set_mtime): Ditto.
521 (io_stream_cygfile::move): Ditto.
522 (io_stream_cygfile::get_size): Ditto.
523 * io_stream_cygfile.h: Update includes for String usage.
524 (io_stream_cygfile::io_stream_cygfile): Update for String usage.
525 (io_stream_cygfile::~io_stream_cygfile): Ditto.
526 (io_stream_cygfile::exists): Ditto.
527 (io_stream_cygfile::remove): Ditto.
528 (io_stream_cygfile::mklink): Ditto.
530 (io_stream_cygfile::set_mtime): Ditto.
531 (io_stream_cygfile::move): Ditto.
532 (io_stream_cygfile::get_size): Ditto.
533 (io_stream_cygfile::fname): Ditto.
534 (io_stream_cygfile::lmode): Ditto.
535 * io_stream_file.cc: Update includes for String usage.
536 (io_stream_file::io_stream_file): Update for String usage.
537 (io_stream_file::~io_stream_file): Ditto.
538 (io_stream_file::exists): Ditto.
539 (io_stream_file::remove): Ditto.
540 (io_stream_file::mklink): Ditto.
541 (io_stream_file::set_mtime): Ditto.
542 (io_stream_file::move): Ditto.
543 (io_stream_file::get_size): Ditto.
544 * io_stream_file.h: Update includes for String usage.
545 * io_stream_file.cc: Update includes for String usage.
546 (io_stream_file::io_stream_file): Update for String usage.
547 (io_stream_file::~io_stream_file): Ditto.
548 (io_stream_file::exists): Ditto.
549 (io_stream_file::remove): Ditto.
550 (io_stream_file::mklink): Ditto.
551 (io_stream_file::set_mtime): Ditto.
552 (io_stream_file::move): Ditto.
553 (io_stream_file::get_size): Ditto.
554 (io_stream_file::fname): Ditto.
555 (io_stream_file::lmode): Ditto.
556 * localdir.cc: Update includes for String usage.
557 (save_local_dir): Update for String usage.
558 (check_if_enable_next): Ditto.
559 (load_dialog): Ditto.
561 (LocalDirPage::OnInit): Ditto.
562 (LocalDirPage::OnNext): Ditto.
563 * log.cc: Update includes for String usage.
564 (struct LogEnt): Update for String usage.
568 * log.h: Update includes for String usage.
569 (log_level): Update for String usage.
572 * main.cc (WinMain): Update for String usage.
573 * mklink2.c (make_link_2): Update for String usage.
574 * mklink2.h (make_link_2): Update for String usage.
575 * mount.cc: Update includes for String usage.
576 (mount_table): Update for String usage.
578 (create_mount): Ditto.
580 (remove_mount): Ditto.
581 (read_mounts): Ditto.
582 (set_root_dir): Ditto.
583 (get_root_dir): Ditto.
584 (path_prefix_p): Ditto.
586 * mount.h: Update includes for String usage.
587 (create_mount): Update for String usage.
588 (remove_mount): Ditto.
590 (set_root_dir): Ditto.
591 (get_root_dir): Ditto.
592 * msg.cc (mbox): Ditto.
593 * net.cc (NetPage::OnNext): Ditto.
594 * package_db.cc (packagedb::flush): Ditto.
595 (packagedb::packages): Ditto.
596 (packagedb::categories): Ditto.
597 * package_db.h: Update includes for String usage.
598 (packagedb::packages): Update for String usage.
599 (packagedb::categories): Ditto.
600 * package_meta.cc: Update includes for String usage.
601 (hash::add_subdirs): Update for String usage.
602 (packagemeta::uninstall): Ditto.
603 (packagemeta::SDesc): Ditto.
604 (packagemeta::action_caption): Ditto.
605 * package_meta.h: Update includes for String usage.
606 (packagemeta::packagemeta): Update for String usage.
607 (packagemeta::~packagemeta): Ditto.
608 (packagemeta::uninstall): Ditto.
609 (packagemeta::SDesc): Ditto.
610 (packagemeta::action_caption): Ditto.
611 (package_source.cc site::site): Ditto.
612 (packagesource::set_canonical): Ditto.
613 (packagesource::set_cached): Ditto.
614 * package_source.h: Update includes for String usage.
615 (site::site): Update for String usage.
616 (packagesource::set_canonical): Ditto.
617 (packagesource::set_cached): Ditto.
618 (packagesource::packagesource): Ditto.
619 (packagesource::sites): Ditto.
620 (packagesource::cached): Ditto.
621 * package_version.h: Update includes for String usage.
622 (Dependency): Update for String usage.
623 (packageversion): Ditto.
624 * postinstall.cc: Update includes for String usage.
625 (do_postinstall): Update for String usage.
626 * res.rc (IDD_LOCAL_DIR): Fix typo again!
627 * rfc1738.cc (rfc1738_escape_part): Update for String usage.
628 * rfc1738.h: Update includes for String usage.
629 (rfc1738_escape_part): Update for String usage.
630 * root.cc: Update includes for String usage.
631 (check_if_enable_next): Update for String usage.
632 (save_dialog): Ditto.
634 (directory_is_absolute): Ditto.
635 (directory_is_rootdir): Ditto.
636 (directory_has_spaces): Ditto.
637 (RootPage::OnInit): Ditto.
638 (RootPage::OnNext): Ditto.
639 * script.cc: Update includes for String usage.
640 (init_run_script): Update for String usage.
643 (try_run_script): Ditto.
644 * script.h: Update includes for String usage.
645 (run_script): Update for String usage.
646 (try_run_script): Ditto.
647 * site.cc site_list): Ditto.
648 (all_site_list): Ditto.
649 (other_url): Eliminate.
650 (site_list_type::init): Update for String usage.
651 (site_list_type::site_list_type): Ditto.
652 (get_site_list): Ditto.
653 (get_saved_sites): Ditto.
654 (do_download_site_info_thread): Ditto.
655 (SitePage::OnNext): Ditto.
656 (SitePage::OnActivate): Ditto.
657 (SitePage::PopulateListBox): Ditto.
658 (SitePage::OnMessageCmd): Handle empty url's.
659 * site.h: Update includes for String usage.
660 (site_list_type::site_list_type): Update for String usage.
661 (site_list_type::init): Ditto.
662 (site_list_type::~site_list_type): Ditto.
663 (site_list_type::url): Ditto.
664 (site_list_type::displayed_url): Ditto.
665 (site_list_type::key): Ditto.
666 * source.cc (SourcePage::OnDeactivate): Ditto.
667 * state.h: Update includes for String usage.
668 (local_dir): Update for String usage.
669 (trust_level): Remove.
670 * version.cc: Update includes for String usage.
671 (canonicalize_version): Update for String usage.
672 * version.h: Update includes for String usage.
673 (canonicalize_version): Update for String usage.
675 2002-02-15 Christopher Faylor <cgf@redhat.com>
677 * filemanip.c (parse_filename): Revert previous change.
679 2002-02-14 Christopher Faylor <cgf@redhat.com>
681 * filemanip.c (parse_filename): Don't treat '_' as a version number
684 2002-01-29 Christopher Faylor <cgf@redhat.com>
686 * configure: Regenerate.
688 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
690 * res.rc (IDD_LOCAL_DIR): Fix typo reported by Rene
691 <Hoeck@extern.lrz-muenchen.de>
693 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
695 * README: Update Todo's.
696 * list.h: Run indent.
697 (list): New methods checksize and insert to reduce code duplication.
698 (list::registerbykey): Use them.
699 (list::registerbyobject): Ditto.
700 (list::removebyindex): Copy each object individually - safe for non
702 (list::checksize): Implement.
703 (list::insert): Implement.
705 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
707 * Makefile.in: Remove the dlmalloc object by default.
708 * install.cc (do_install_thread): Remove the mallinfo call for 'working
709 around' the crashing issue.
710 * package_db.h: Include <string.h> - it's needed to parse this.
711 * package_source.cc (site::site): Move here from the header file.
712 * package_source.h (site): Stop the constructor being inlinable.
714 2002-01-26 Robert Collins <rbtcollins@hotmail.com>
716 * filemanip.cc (find_tar_ext): Add a descriptive comment.
718 2002-01-25 Michael A Chase <mchase@ix.netcom.com>
720 * filemanip.cc (find_tar_ext): Clean up tests for .tar.gz and .tar.
721 * fromcwd.cc (do_fromcwd): Expand FIXME comment in source file check.
722 * install.cc (install_one_source): Add space between words in log()
725 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
727 * log.cc (exit_setup): When saving to the download dir, explicity
730 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
732 * archive.cc (extract_file): Separate out the prefix and the URL
734 * archive.h (archive::extract_file): Ditto.
735 * install.cc (install_one_source): Ditto. Use the new
736 archive::extract_file syntax.
737 (replace_one): Use the new syntax.
738 (io_stream.cc): Add some log info for links.
740 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
742 * PickCategoryLine.cc (PickCategoryLine::actiontext): Remove.
743 (PickCategoryLine::paint): Use the new action method.
744 (PickCategoryLine::click): Set the action for all children.
745 (PickCategoryLine::set_action): New method.
746 * PickCategoryLine.h (PickCategoryLine::-actions): Remove.
747 (PickCategoryLine::current_default): Use packagemeta _actions class.
748 * PickLine.h (PickLine::set_action): New abstract method that requires
749 including package_meta.h.
750 * PickPackageLine.cc (PickPackageLine::set_action): New method.
751 * PickPackageLine.h (PickPackageLine::set_action): Declare this.
752 * list.h (getbykey): A const correctness fix.
753 * package_meta.cc: Run indent.
754 (packagemeta::Default_action): New const.
755 (packagemeta::Install_action): Ditto.
756 (packagemeta::Reinstall_action): Ditto.
757 (packagemeta::Uninstall_action): Ditto.
758 (packagemeta::_actions::caption): New method.
759 (packagemeta::_actions::operator++): Ditto.
760 (packagemeta::set_action): New overload.
761 * package_meta.h (packagemeta::_actions): New class.
762 (packagemeta::set_action): Declare this.
764 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
766 * Makefile.in (OBJS): Remove supp.o - it appears accidental.
767 * choose.cc: Don't define alloca anymore, it's done in win32.h
769 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
771 * PickPackageLine.cc: New file.
772 * PickPackageLine.h: New file.
773 * PickLine.cc: New file.
774 * PickLine.h: New file.
775 * PickCategoryLine.cc: New file.
776 * PickCategoryLine.h: New file.
777 * PickView.cc: New file.
778 * PickView.h: New file.
779 * Makefile.in: Add new objects to setup.exe.
780 Backout -fno-exceptions option.
781 * choose.cc: Include PickView.h.
782 Remove view related defines and static variables.
783 (_pkg_headers): Moved to PickView.cc.
784 (_cat_headers): Ditto.
785 (view::views::Unknown): Ditto.
786 (view::views::PackageFull):
787 (view::views::Package):
788 (view::views::Category):
789 (pkgtrustp): Moved to package_meta.cc.
790 (add_required): Moved to package_meta.cc.
791 (pick_category_line::empty): Moved to PickCategoryLine.cc
792 (paint): Adjust for moved static variables.
793 (view::scroll): Moved to PickView.cc.
794 (list_vscroll): Adjust for moved static variables.
795 (list_hscroll): Ditto.
797 (note_width): Moved to PickView.cc.
799 (view::set_view_mode): Ditto.
800 (view::mode_caption): Ditto.
801 (view::views::caption): Ditto.
802 (view::set_headers): Ditto.
803 (DoInsertItem): Ditto.
804 (view::init_headers): Ditto.
805 (view::insert_pkg): Ditto.
806 (view::insert_category): Ditto.
807 (view::clear_view): Ditto.
808 (view::views::operator++): Ditto.
809 (view::click): Ditto.
810 (default_trust): Adjust for moved statics.
811 (pick_pkg_line::paint): Moved to PickPackageLine.cc.
812 (pick_pkg_line::click): Ditto.
813 (pick_category_line::actiontext): Moved to PickCategoryLine.cc
814 (pick_category_line::paint): Ditto.
815 (pick_category_line::click): Ditto.
816 (set_view_mode): Adjust for moved statics.
817 (create_listview): Ditto.
818 * choose.h: Remove Category and packagemeta forward defines - not needed.
819 Don't include unneeded headers list and package_meta.
820 (_header): Move to PickView.h.
821 (pick_line): Move to PickLine.h.
822 (pick_pkg_line): Move to PickPackageLine.h.
823 (pick_category_line): Move to PickCategoryLine.h.
824 (view): Move to PickView.h.
825 * ini.h (trusts): Move to package_meta.h.
826 * package_meta.h (trusts): New enum.
827 (packagemeta::set_requirements): New helper method.
828 (packagemeta::trustp): Ditto.
830 2002-01-21 Christopher Faylor <cgf@redhat.com>
832 * choose.h (view): Move forward declaration of views into public area
833 or g++ v3 will complain.
835 2002-01-21 Christopher Faylor <cgf@redhat.com>
837 * Makefile.in (CXXFLAGS): Add -fno-exceptions.
838 * win32.h (alloca): Define as __builtin_alloca.
839 * io_stream_memory.cc: Add include file.
841 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
843 * archive_tar.cc (archive_tar::~archive_tar): Mark the stream as destroyed.
844 * archive_tar_file.cc (archive_tar_file::~archive_tar_file): Ditto.
845 * compress.cc (compress::~compress): Be less verbose.
846 * compress_bz.cc (compress_bz::~compress_bz): Ditto.
847 Mark the stream as destroyed.
848 * compress_gz.cc (compress_gz::~compress_gz): Mark the stream as destroyed.
849 * io_stream.cc (io_stream::~io_stream): Only warn when the stream is not marked
851 * io_stream_cygfile.cc (io_stream_cygfile::~io_stream_cygfile): Mark the
853 * io_stream_file.cc (io_stream_file::~io_stream_file): Ditto.
854 * io_stream_memory.cc (io_stream_memory::~io_stream_memory): Ditto.
856 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
858 * Makefile.in (CFLAGS): Allow customisable malloc debug flags.
859 (OBJS): Link in malloc objects.
860 * category.cc (category): Use new char, not strdup.
861 * choose.cc (pick_pkg_line::paint): Allow for the regionsize to shrink.
862 (do_choose): Use new char, not malloc.
863 * concat.cc (vconcat): Ditto.
864 * cygpackage.cc (cygpackage): Use new char, not strdup.
865 (set_canonical_version): Ditto.
866 (cygpackage::destroy): Use delete[], not free.
867 * desktop.cc (uexists): Ditto.
868 * dialog.cc (egest): Use new char, not strdup.
869 * dlmalloc.c: New file - Doug Lea's malloc 2.7.0
870 * hash.cc (hash::hash): Use delete instead of free.
871 (hash::add): Use new char, not strdup.
872 * ini.cc (do_remote_ini): Use delete[] not free.
873 * inilex.l: Use new char, not strdup.
876 Use a local package_db rather than a static one.
877 * install.cc (struct mallinfo): Workaround an apparent dlmalloc bug.
878 (do_install_thread): Call mallinfo to force a consistency check. Appears
879 to fix a 'inuse' error in -DDEBUG builds.
880 Use delete[] for strings.
881 * io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile): Use new char,
883 (io_stream_cygfile::~io_stream_cygfile): Use delete[], not free.
884 (io_stream_cygfile::remove): Use new char, not strdup.
885 * io_stream_file.cc (io_stream_file::io_stream_file): Use new char, not strdup.
886 (io_stream_file::io_stream_file): Use delete[], not free.
887 (io_stream_file::remove): Use new char, not strdup.
888 * io_stream_memory.cc (memblock::~memblock): Use delete[], not free.
889 * io_stream_memory.h (memblock): Use new char, not malloc.
890 * localdir.cc (LocalDirPage::OnInit): Use new char, not strdup.
891 * main.cc (WinMain): Use new char, not strdup.
892 * mount.cc (find2): Use new char, not malloc.
893 (read_mounts): Ditto.
894 (cygpath): Use new char, not strdup.
895 * netio.cc (NetIO::~NetIO): Use delete[], not free.
896 (NetIO::set_url): Use new char, not strdup.
897 (NetIO::get_ftp_auth): Use delete[], not free.
898 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
899 Use new char instead of strdup.
900 * nio-http.cc (base64_encode): Use new char, not malloc.
901 * package_meta.cc (hash::add_subdirs): Use new char instead of strdup.
902 * package_source.h (~ packagesource): Use delete[] instead of delete.
903 * port.h (strdup): Deprecate the use of strdup.
904 * rfc1738.cc (rfc1738_do_escape): Use new char, not calloc.
905 * script.cc (init_run_script): Us delete[], not free.
907 * simpsock.cc (SimpleSocket::fill): Use new char, not malloc.
908 (SimpleSocket::invalidate): Use delete[], not free.
909 * site.cc (site_list_type::init): Use new char instead of strdup.
910 * site.h (~site_list_type): Use delete[], not free.
912 2002-01-20 Robert Collins <rbtcollins@hotmail.com>
914 * Makefile.in (OBJS): Add win32.o - win32 support functions.
915 * README: Update todos.
916 * archive.cc (extract_file): Support a suffix for appending to extracted files.
918 * choose.cc (set_view_mode): Use the new view::views class.
919 (view::views::Unknown): New static for defaulting view::views variables.
920 (view::views::PackageFull): New static for the current view.
921 (view::views::Package): Ditto.
922 (view::views::Category): Ditto.
923 (topbucket::paint): Remove.
924 (topbucket::empty): Rename to pick_category_line::empty.
925 (topbucket::~topbucket): Remove.
926 (paint): Use the new view::views class.
927 Don't paint 'all' as a category when showing package categoies.
928 (pick_category_line::actiontext): New method.
929 (pick_category_line::paint): Make showing the category optional, and show the
931 (pick_category_line::click): Make showing the category optional, and
932 differentiate between the name being clicked, and the action description.
933 (view::view): Use the new view::views class.
934 (view::set_view_mode): Ditto.
935 (view::mode_caption): Ditto.
936 (view::views::caption): New method.
937 (view::set_headers): Use the new view::views class.
938 (view::clear_view): Ditto.
939 (viewsplusplus): Replaced by
940 (view::views::operator++): New operator.
941 (set_view_mode): Use the new view::views class.
942 (create_listview): Ditto.
944 * choose.h (actions): Remove.
946 (pick_line): Add a new convenience constructor.
947 (top_bucket): Remove.
948 (pick_category_line): Reparent under pick_line, and adsorb top_bucket.
949 (view::views): New class.
950 * ini.h: Don't include choose.h
951 (is_download_action): Remove.
952 (is_upgrade_action): Remove.
953 (is_uninstall_action): Remove.
954 (is_full_action): Remove.
955 * install.cc (num_replacements): New static.
956 (rebootneeded): Ditto.
957 (replace_one): Handle upgrades separate from removal or new installs.
958 (install_one_source): Handle in use files.
959 (install_one): Don't repeat upgrades.
960 (do_install_thread): Initialize new statics.
961 Order actions as uninstall, replace, install.
962 Warn about rebooting if needed.
963 * res.rc (IDS_REBOOT_REQUIRED): New string.
964 * resource.h (IDS_REBOOT_REQUIRED): Give value.
965 * win32.h: Declare class Win32, and update copyright and intent message.
966 * win32.cc: New file.
968 2002-01-15 Corinna Vinschen <corinna@vinschen.de>
970 * io_stream.cc (io_stream::gets): Eliminate trailing new line chars.
971 * package_meta.cc (packagemeta::uninstall): Check for additional
972 Windows shortcut. Unset R/O file attribute before trying to delete
975 2002-01-09 Robert Collins <rbtcollins@hotmail.com>
977 * choose.cc (pkgtrustp): Fall back to installed if a package is not present in
978 the current trust level. For prev, fall back via curr.
979 (set_existence): Allow sources with no sites, but cached files to be
981 (pick_category_line::paint): Start drawing clickable categories.
982 * fromcwd.cc (found_file): Reinstate local file scanning.
984 2002-01-07 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
986 * fromcwd.cc: Run indent.
987 (do_fromcwd): Reverse sense of comment. Set next_dialog
988 to IDD_CHOOSER instead of IDD_CHOOSE.
989 * ini.cc (find_routine): Remove "/" from "/setup.ini".
991 2001-01-07 Robert Collins <rbtcollins@hotmail.com>
993 * category.cc (Categorycmp): Add a const safe version.
994 * category.h (Categorycmp): Add a const safe version.
995 (Category): Add operator ==.
996 * choose.cc (fill_missing_category): Add every package to "All".
997 (pick_category_line::paint): Add support for hidden labels, and a tree depth.
998 (pick_category_line::click): Ditto.
999 (view::view): Pass in a top level category to use.
1000 (view::insert_pkg): Special case - skip category "All".
1001 (view::insert_category): Ditto.
1002 (view::clear_view): Set the contents label state.
1003 (create_listview): Pass in a top level category to view().
1004 * choose.h (topbucket): Make bucket available to derived classes.
1005 (pick_category_line): Add support for hidden labels, and a tree depth.
1006 Remove our second copy of bucket.
1007 (view): Pass in a top level category to the constructor.
1008 Use pick_category_line to allow three level display.
1010 2001-01-06 Robert Collins <rbtcollins@hotmail.com>
1012 * cygpackage.h (cygpackage): Make set_[s|l]desc virtual.
1013 * iniparse.y (add_correct_version): Copy descriptions across.
1014 * package_meta.cc (SDesc): Iterate through versions, return the first with a
1016 * package_version.h (packageversion): Add new virtuals set_[l|s]desc.
1018 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
1020 * script.cc (run_script): Change cygpath:// to cygfile://.
1021 * install.cc (do_install_thread): Fix off-by-one errors.
1023 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
1025 * package_db.cc (packagedb::flush): Fix an off-by-one error.
1027 2002-01-04 Jan Nieuwenhuizen <janneke@gnu.org>
1029 * Makefile.in (realclean): more clean.
1030 (OBJS): Add script.o.
1031 * postinstall.cc (run_script_in_etc_postinstall): New function.
1032 (do_postinstall): Split off new funtion init_run_script ().
1035 (run_script): Move to script.cc. Replace some deprecated remove
1038 * script.cc: New file.
1039 * Forward port cygwin-20010707.jcn3.patch.
1040 * package_meta.cc (uninstall): Run pre- and postremove scripts.
1041 * install.cc: Typo fix.
1042 (do_install): Run script initialisation.
1044 2001-01-04 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1046 * cistring.cc: Run d2u.
1047 * cistring.h: Run d2u.
1049 * desktop.cc (etc_profile): Remove "test -f ./.bashrc && . ./.bashrc"
1050 from the generated /etc/profile. Bash will source this file
1051 automatically, and having this here merely results in .bashrc being
1052 executed twice. Run d2u.
1053 * desktop.h: Run d2u.
1055 * propsheet.cc: Run d2u.
1056 (PropSheetProc): New function. Add minimize box here instead of in
1057 PropertyPage::DialogProc.
1058 (PropSheet::Create): Change to use creation callback PropSheetProc.
1059 (DLGTEMPLATEEX): Add 'hidden' Windows struct definition.
1061 * propsheet.h: Run indent, d2u.
1062 * proppage.h: Run indent, d2u.
1064 * proppage.cc: Run d2u.
1065 (PropertyPage::DialogProc): Remove minimize-box-adding
1066 functionality. Remove commented-out "PropSheet_SetWizButtons" calls.
1067 Add support for calling virtual OnMessageCmd. Add setting of fonts in
1068 WM_INITDIALOG handler.
1069 (resource.h): New include for resource IDs.
1071 * res.rc: Resize and rearrange property page dialog templates
1072 to bring them in line with "Microsoft's Backward Compatible Wizard 97"
1073 specification. Run d2u.
1074 (IDD_SITE): Add an edit control and an "Add" button in order to
1075 combine the IDD_SITE and IDD_OTHER_URL functionality onto one page.
1076 (IDD_OTHER_URL): Remove dialog template.
1077 (IDD_DLSTATUS): Remove dialog template.
1080 (SitePage::OnBack): Remove NEXT() macro invocation.
1081 (SitePage::OnActivate): New member function.
1082 (load_dialog): Remove. Functionality subsumed into
1083 SitePage::OnActivate.
1084 (save_dialog): Change to support both list and user URLs. Remove
1085 OTHER_IDX and mirror_idx logic.
1086 (SitePage::PopulateListBox): New member function.
1087 (SitePage::CheckControlsAndDisableAccordingly): New member function.
1088 (SitePage::OnMessageCmd): New override.
1089 (check_if_enable_next): Remove.
1090 (dialog_cmd): Remove.
1091 (do_download_site_info_thread): Remove calls to NEXT() macro.
1092 (SitePage::Create): Call the single-param PropertyPage::Create
1094 (other_url): New static taken from other.cc.
1095 (SitePage::OnNext): Remove mirror_idx logic.
1096 (SitePage::OnInit): Remove "Other URL" entry from list box. Remove
1097 list box populating code, now handled in SitePage::PopulateListBox.
1098 (mirror_idx, NO_IDX, OTHER_IDX): Remove.
1099 (save_site_url): Fix potential buffer overflow problem. Switched to
1100 TCHAR in grossly premature preparation for multilingual support.
1102 (SitePage::OnActivate): New member function.
1103 (SitePage::CheckControlsAndDisableAccordingly) New member.
1104 (SitePage::OnMessageCmd): New override.
1105 (do_download_site_info_thread): Add MessageBox call on failure to
1108 * splash.cc: Run d2u.
1109 (SplashPage::OnInit): Set the font for the title.
1110 * splash.h: Run d2u.
1112 * threebar.cc: Run d2u.
1113 * threebar.h: Run d2u.
1115 * window.h: Run d2u.
1116 (Window::IsButtonChecked): New member function declaration.
1117 (Window::OnMessageCmd): New member function.
1118 (Window::SetDlgItemFont): New member function declaration.
1119 (Window::MAXFONTS, Window::Fonts, Window::FontCounter): New data
1121 * window.cc: Run d2u.
1122 (Window::IsButtonChecked): New member function definition.
1123 (Window::SetDlgItemFont): New member function definition.
1124 (Window::Window): Add initialization for FontCounter.
1125 (Window::~Window): Delete any fonts we created.
1127 * geturl.cc: Run d2u.
1128 (progress): Remove the "3" field width from the "%3d"
1129 percent-complete format indicator. Causes line to not start at
1130 beginning of text box, and does little to help with "jumping", since
1131 the "bytes downloaded so far" field is variable-width anyway. Change
1132 kb/s format field to "%03.1" to 0-pad the kb/s number in the event of
1133 painfully slow connections, or temporary slowdowns in faster
1134 connections should such more-instantaneous functionality become
1138 (NetPage::OnMessageCmd): New member function declaration.
1139 (NetPage::CheckIfEnableNext): New member function declaration.
1141 (NetPage::OnMessageCmd): New member function definition.
1142 (dialog_cmd): Remove, subsumed into NetPage::OnMessageCmd.
1143 (check_if_enable_next): Remove.
1144 (NetPage::CheckIfEnableNext): New member function, subsumes
1145 check_if_enable_next.
1146 (propsheet.h): Add include.
1147 (NetPage::Init): Add call to CheckIfEnableNext.
1148 (load_dialog): Remove call to check_if_enable_next.
1149 (NetPage::Create): Call single-template-ID-parameter overload of
1150 PropertyPage::Create instead of three-parameter one.
1152 * Makefile.in (OBJS): Remove other.o.
1153 * other.cc: Remove file.
1155 2002-01-01 Robert Collins <rbtcollins@hotmail.com>
1157 * README: Update TODO's.
1158 * choose.cc (set_existence): Delete non installed packages with no
1160 (fill_missing_category): Fix an off-by-one error.
1161 (default_trust): Ditto. Also delete any unused categories.
1162 (view::init_headers): Fix an off-by-one error.
1163 (set_view_mode): Ditto.
1164 (set_view_mode): Ditto.
1165 (create_listview): Ditto.
1166 (dialog_cmd): Ditto.
1168 * io_stream.cc: Indent.
1169 * io_stream.h: Ditto.
1170 * package_db.cc: Ditto.
1171 * package_meta.h: Const correctness for SDesc ();
1172 * proppage.cc: Run d2u and indent.
1173 * propsheet.cc: Run d2u and indent.
1174 * window.cc: Run d2u and indent.
1175 * window.h: Run d2u and indent.
1177 2001-12-28 Christopher Faylor <cgf@redhat.com>
1179 * Makefile.in (iniparse.o): Accommodate newer bisons.
1181 2001-12-23 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1183 * window.h (Window): New file, new class.
1184 * window.cc (Window): New file, new class.
1186 * threebar.h (ThreeBarProgressPage): New file, new class.
1187 * threebar.cc (ThreeBarProgressPage): New file, new class.
1189 * splash.h (SplashPage): New file, new class.
1190 * splash.cc (SplashPage): Replace file with implementation of new
1193 * source.h (SourcePage): New file, new class.
1194 * source.cc: Run indent.
1195 (SourcePage): Add class implementation to this file.
1196 (do_source): Remove, functionality subsumed by SourcePage::Create()
1197 and SourcePage::OnDeactivate().
1198 (dialog_proc): Remove, functionality subsumed by
1199 SourcePage::OnActivate().
1201 * site.h: Run indent.
1202 (SitePage): Add class declaration.
1203 * site.cc: Run indent.
1204 (SitePage): Add class implementation.
1205 (do_download_site_info_thread): New function.
1206 (context): New var. Context info for do_download_site_info_thread().
1207 (do_download_site_info): New function.
1208 (SitePage::Create, SitePage::OnInit SitePage::OnNext)
1209 (SitePage::OnBack): SitePage class implementation..
1210 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers, now handled
1211 by SitePage members.
1212 (dialog_proc): Remove, now handled by SitePage::OnInit and base class
1214 (do_site): Remove, now handled by do_download_site_info_thread() and
1215 SitePage::OnNext functionality.
1216 (get_site_list): Remove dismiss_url_status_dialog() call.
1218 * root.h (RootPage): New file, new class.
1219 * root.cc: Run indent.
1220 (dialog_cmd): Pass parent HWND parameter to note(), yesno().
1221 (dialog_proc): Remove.
1223 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL clauses from switch.
1224 (RootPage::OnInit): New member function. Move get_root_dir() logic to
1225 here from do_root().
1226 (RootPage::Create): New member function.
1227 (RootPage::OnNext): New member function. Move IDOK logic from
1228 dialog_cmd() to here.
1229 (RootPage::OnBack): New member function.
1231 * propsheet.h (PropSheet): New file, new class.
1232 * propsheet.cc (PropSheet): New file, new class.
1234 * proppage.h (PropertyPage): New file, new class.
1235 * proppage.cc (PropertyPage): New file, new class.
1237 * postinstall.cc (do_postinstall): Add owner parameter.
1239 * other.cc (do_other): Add owner parameter.
1241 * nio-file.cc (NetIO::Purl): Pass NULL parent param to note().
1242 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Pass NULL parent param to
1244 * nio-http.cc (retry_get): Pass NULL parent param to get_auth(),
1247 * nio-ie5.cc (NetIO::_url): Pass NULL parent param to note(),
1248 get_auth(), get_proxy_auth().
1250 * netio.h (get_auth, get_proxy_auth, get_ftp_auth): Add owner param.
1251 * netio.cc (auth_common, NetIO::get_auth, NetIO::get_proxy_auth,
1252 NetIO::get_ftp_auth)
1253 (auth_common): Add owner param. Pass owner param to DialogBox.
1254 (NetIO::get_auth, NetIO::get_proxy_auth, NetIO::get_ftp_auth): Pass
1255 owner param to auth_common().
1257 * net.h (NetPage): New file, new class.
1258 * net.cc: Run indent.
1259 (net.h, threebar.h): Add includes.
1260 (Progress): Add extern.
1261 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, now handled by
1262 property sheet logic. Saved temporarily for reference.
1263 (NetPage::Create, NetPage::OnInit, NetPage::OnDeactivate,
1264 NetPage::OnNext, NetPage::OnBack):
1265 New implementation of NetPage class members.
1267 (dialog_proc): Remove.
1269 * msg.h (fatal, note, yesno): Add owner param.
1270 * msg.c (fatal, note, yesno, mbox): Add owner param.
1271 (mbox): Remove MB_TOPMOST from MessageBox call. Unnecessary and wrong
1272 now that we have a parent.
1274 * main.cc: Run indent.
1275 (commctrl.h, proppage.h, propsheet.h, splash.h, source.h)
1276 (localdir.h, net.h, site.h, choose.h, threebar.h, desktop.h): Include
1278 (root_dialog_proc): extern into this file.
1279 (Progress): Progress dialog defined here, used in several other files.
1280 (WinMain): Instantiate and create Splash, Source, Root, LocalDir, Net,
1281 Site, Chooser, Desktop pages and MainWindow sheet. Call
1282 InitCommonControls() to make sure Windows is set up for our use of
1283 property sheets. Add pages to sheet.
1284 Call MainWindow.Create() to "DoModal". Remove main loop, that logic is
1285 now handled by the PropSheet class.
1286 (root.h): Add include.
1288 * log.cc (log_save): Pass NULL parent to fatal().
1289 (exit_setup): Pass NULL parent to note().
1291 * localdir.h (LocalDirPage): New file, new class.
1292 * localdir.cc: Run indent.
1293 (localdir.h): New include.
1294 (threebar.h): New include.
1295 (Progress): extern into this file.
1296 (LocalDirPage::Create, LocalDirPage::OnInit, LocalDirPage::OnActivate)
1297 (LocalDirPage::OnNext, LocalDirPage::OnBack): Implementation of
1299 (LocalDirPage::OnNext): Move log() call from do_local_dir() to here.
1300 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers.
1301 (do_local_dir): Remove.
1302 (dialog_proc): Remove.
1303 (cwd): Remove, not used by anything.
1305 * install.cc: Run indent.
1306 (process.h, threebar.h): New includes.
1307 (Progress): extern into this file.
1308 (ins_dialog, ins_action, ins_pkgname, ins_filename, ins_pprogress)
1309 (ins_iprogress, ins_diskfull, init_event): Remove, now handled by
1310 ThreeBarProgressPage.
1311 (dialog_cmd, dialog_proc, dialog): Removed, handled in
1312 ThreeBarProgressPage.
1313 (init_dialog): Remove all mention of the above ins_* handles. Now
1314 handled in ThreeBarProgressPage. Altered SetWindowText()s to call
1315 ThreeBarProgressPage instance Progress directly.
1316 (progress): Alter bar update logic to call ThreeBarProgressPage
1317 instance Progress directly.
1318 (uninstall_one): Alter SetWindowText()s to call ThreeBarProgressPage
1319 instance Progress directly.
1320 (install_one_source): Alter SetWindowText()s to call
1321 ThreeBarProgressPage
1322 instance Progress directly. Pass NULL parent to note().
1323 (do_install_thread): Rename from do_install(), added owner param.
1324 Alter SetWindowText()s to call ThreeBarProgressPage instance Progress
1326 Remove dismiss_url_status_dialog() call, no longer necessary. Remove
1327 ShowWindow(<hide>) call, also unnecessary now. Pass owner handle to
1329 (do_install_reflector): New function.
1330 (do_install): New function.
1332 * ini.cc (process.h, threebar.h): New includes.
1333 (Progress): externed into this file.
1334 (find_routine): Pass NULL parent to note().
1335 (do_local_ini): Add owner param.
1336 (do_remote_ini): Add owner param. Pass owner to get_url_to_membuf()
1337 and note(). Remove call to dismiss_url_status_dialog().
1338 (do_ini_thread): Rename from do_ini(). Add owner param. Pass owner to
1339 do_local_ini(), do_remote_ini(), yesno(), and note(). Set next_dialog
1340 to IDD_CHOOSER on exit.
1341 (do_ini_thread_reflector): New function.
1342 (context): New var. Context for do_ini_thread.
1343 (do_ini): New function.
1345 * geturl.h (get_url_to_membuf, get_url_to_string, get_url_to_file): Add
1347 * geturl.cc (gw_dialog, gw_url, gw_rate, gw_progress, gw_pprogress,
1349 (gw_progress_text, gw_pprogress_text, gw_iprogress_text, init_event):
1351 (threebar.h): New include.
1352 (Progress): externed into this file.
1353 (dialog_cmd, dialog_proc, dialog): Removed, handled by
1354 ThreeBarProgressPage now.
1355 (init_dialog): Remove "if (gw_dialog == 0)" clause. Alter
1357 and bar setting SendMessage()s to call ThreeBarProgressPage instance
1358 Progress directly. Remove "one bar only" logic, this is now handled
1359 explicitly in the ThreeBarProgressPage class.
1360 (progress): Altered bar and text update logic to call
1361 ThreeBarProgressPage instance Progress directly. Changed kbps
1362 calculation to floating point and now print out a single decimal
1364 (get_url_to_membuf): Add owner param. Pass it to init_dialog.
1365 (get_url_to_string): Add owner param. Pass it to get_url_to_membuf.
1366 (get_url_to_file): Add owner param. Pass it to init_dialog. Alter bar
1367 update logic to call ThreeBarProgressPage instance Progress directly.
1368 (dismiss_url_status_dialog): Remove.
1370 * fromcwd.cc (do_fromcwd): Add owner param. Initialize found_ini to
1373 * download.cc: Run indent.
1374 (process.h, threebar.h): New includes.
1375 (Progress): externed into this file.
1376 (download_one): Add owner param. Pass it to get_url_to_file().
1377 (do_download_thread): Renamed from do_download. Add owner param. When
1378 calculating total_download_bytes, take binpicked and srcpicked into
1379 account. Remove call to dismiss_url_status_dialog(), no longer needed.
1380 Pass owner handle to download_one() and yesno().
1381 (do_download_reflector, do_download): New functions.
1382 (context): New var. Context for do_download_thread().
1384 * dialog.h (D(x)): Add owner param.
1386 * desktop.h (DesktopSetupPage): New file, new class.
1387 * desktop.cc: Run indent.
1388 (desktop.h): Add include.
1389 (dialog_proc, do_desktop): Remove, now handled in
1390 DesktopSetupPage::OnInit().
1391 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, handled in
1392 DesktopSetupPage::OnFinish(), DesktopSetupPage::OnBack(), and PropSheet
1394 (DesktopSetupPage::Create, DesktopSetupPage::OnInit)
1395 (DesktopSetupPage::OnBack, DesktopSetupPage::OnFinish): Implementation
1396 of DesktopSetupPage.
1398 * cistring.h: New file, new class.
1399 * cistring.cc: New file, new class.
1401 * choose.h: Run indent.
1402 (Chooser): New class declaration.
1403 * choose.cc: Run indent.
1404 (do_choose): Add owner param. Pass it to DialogBox() and
1406 (Chooser): New class implementation.
1408 * res.rc (IDS_VERSION_INFO): New string.
1409 (IDD_SOURCE, IDD_LOCAL_DIR, IDD_ROOT, IDD_SITE, IDD_OTHER_URL)
1410 (IDD_DLSTATUS, IDD_INSTATUS, IDD_SPLASH, IDD_CHOOSE, IDD_DESKTOP):
1411 Change WS_POPUP to WS_CHILD. Numerous positioning/size changes
1413 (IDD_CHOOSE): Give template the WS_EX_CONTROLPARENT style to enable
1414 TAB control navigation etc. Give the controls a reasonable tab order.
1415 Grouped radio buttons. Something's still not right, can't tab away
1416 from back/next/cancel group reliably.
1417 * resource.h (IDD_CHOOSER): New dialog ID.
1419 * Makefile.in (OBJS): Add cistring.o, proppage.o, propsheet.o,
1420 threebar.o, and window.o.
1422 2001-12-21 Robert Collins <rbtcollins@hotmail.com>
1424 * choose.cc (listview_proc): Update the scrollbar when the headers are dragged.
1425 (pick_pkg_line::paint): Clip columns to prevent overlap.
1427 2001-12-20 Robert Collins <rbtcollins@hotmail.com>
1429 * Makefile.in: Add libcomctl32.a for setup.exe.
1430 * archive.h (archive): Prevent non-child direct creation of the class.
1431 * archive_tar.h (archive_tar): Prevent inaccurate synthetic copy and assignment.
1432 * choose.cc: Include commctrl for the choose header.
1433 (NEW_COL_SIZE_SLOP): Define without magic numbers.
1434 (pkgtrustp): Convert to function.
1435 (set_action): Remove.
1436 (add_required, fill_missing_category,default_trust): Use list syntax for
1439 (choose_caption): Remove.
1440 (topbucket::paint): New method.
1441 (topbucket::empty): Ditto.
1442 (topbucket::click): Ditto.
1443 (topbucket::~topbucket): Ditto.
1444 (paint): Remove i,ii and p as they are obsolete.
1445 Remove header drawing code.
1446 Use new chooser method to paint the chooser.
1447 Use new chooser itemcount method.
1448 (scroll_common): Rename to view::scroll.
1449 Scroll the header window separately.
1450 (list_vscroll, list_hscroll, list_click): Update for new chooser methods.
1451 (listview_proc): Look for header messages.
1452 (note_width): Accept stringless calls.
1453 (pick_line::set_line): Remove.
1454 (pick_line::paint): Remove.
1455 (pick_pkg_line::paint): Paint this one line, using the header column widths.
1456 (pick_category_line::paint): Paint this category, and anything in the bucket.
1457 (pick_line::click): Remove.
1458 (pick_pkg_line::click): Handle a click.
1459 (pick_category_line::click): Handle a click.
1460 (_view): Rename all to view.
1461 (view::view): Initialise the control contents.
1462 (view::set_headers): Work with the header control.
1463 (view::init_headers): Use list syntax for package list.
1464 Rearrange the width logic a little.
1465 (view::insert_pkg): Update to use the hierarchy.
1466 (view::insert_category): Ditto.
1467 (view::insert_at, view::insert_under): Remove.
1468 (view::clear_view): Update to use the hierarchy.
1469 (view::click): Update to use the hierarchy.
1470 (set_view_mode): Use list syntax for package list.
1471 Update for new chooser methods.
1472 (DoInsertItem): New helper function. (Needs a home somewhere).
1473 (create_listview): Remove choose control code and use the constructor instead.
1474 (dialog_cmd,scan2,do_choose): Use list syntax for package list.
1475 * choose.h: Include newly required headers list and package_meta.
1476 (_voew): Rename to view.
1477 (pick_line): Convert to an ABC.
1478 (pick_pkg_line): New class.
1479 (pick_catgory_line): New class.
1480 (topbucket): New class.
1481 (view::scroll): New method created from listview_scroll function.
1482 * desktop.cc (make_passwd_group): Use list syntax for package list.
1483 * download.cc (do_download): Use list syntax for package list.
1484 * fromcwd.cc (found_file): Use list syntax for package list.
1485 * iniparse.y (pacakges): Use list syntax for package list.
1486 * install.cc (uninstall_one): Use list syntax for package list.
1487 (do_install): Use list syntax for package list.
1488 * io_stream.h (io_stream): Prevent non-child direct creation of the class.
1489 Prevent inaccurate synthetic copy and assignment.
1490 * list.h: Include required header stdlib.
1491 Work on const correctness.
1492 * package_db.cc (packagedb::getpackagebyname): Remove.
1493 (packagedb::packagedb): Remove custom list code, and make db a local.
1494 (packagedb::getfirstpackage): Remove.
1495 (packagedb::getnextpackage): Remove.
1496 (packagedb::addpackage): Remove.
1497 (flush): Remove custom list code.
1498 (packagedb::registerpackage): Remove.
1499 (packagedb::packages): New static member.
1500 (packagedb::task): New static member.
1501 * package_db.h (PackageDBActions): New enum.
1502 (packagedb): Remove getfirstpackage, getnextpackage, getpackagebyname,
1503 addpackage, registerpackage, packages, packagecount, curr_package, db.
1505 * pacakge_meta.cc: Include package_db.h.
1506 (packagemeta::action_caption): New method.
1507 (packagemeta::set_action): New method.
1508 * package_meta.h (CategoryPackage): Initialise key.
1509 (packagemeta): Initialise key.
1510 Add set_action and action_caption methods.
1511 Prevent inaccurate synthetic copy and assignment.
1512 * resource.h (IDC_CHOOSE_LISTHEADER): New ID.
1513 * source.cc: Include package_db for db manipulation.
1514 (save_dialog): Set the db task.
1515 * win32.h: Tell the w32 include headers what IE version to expect/require.
1517 2001-12-06 Robert Collins <rbtcollins@hotmail.com>
1519 * README: Wishlist updates.
1521 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
1523 * package_db.cc (getnextpackage): Don't overrun the array.
1525 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
1527 * Makefile.in (OBJS): Add setup_version.o.
1528 (version.c): Rename to setup_version.
1529 * choose.cc (set_action): Prevent NULL pointer dereference.
1530 (package_sort): Remove.
1531 * fromcwd.cc (canonicalize_version): Moved to version.cc.
1532 (check_ini): New function for use with find to see if there is a cached setup.ini.
1533 (do_fromcwd): Check for a cached setup.ini from any mirror site.
1534 * ini.cc (find_routine): New function, for finding cached setup.ini's.
1535 (do_local_ini): New function, drives parsing of local ini's.
1536 (do_remote_ini): New function, drives parsing and caching of remote ini's.
1537 (do_ini): Move guts to do_remote_ini and do_local_ini.
1538 * list.h (removebyindex): New method.
1539 * other.cc (save_dialog): Use new site_list and all_site_list to add the
1540 new site to the site picklist.
1541 (dialog_cmd): Only save the dialog when exiting the dialog.
1542 * res.rc (IDD_SITE): Make IDC_URL_LIST a multiple-selection control.
1543 * site.cc (site_list_type): Move to site.h
1544 (site_list): New global, sites chosen by the user.
1545 (all_site_list): New global, all potential sites.
1546 (site_list_type::init): New method, parses a mirror.lst URL string into a
1547 site_list_type object.
1548 (site_list_type::site_list_type): New method.
1549 (check_if_enable_next): Examine the control, not a local variable.
1550 (load_dialog): Select all the user chosen sites by default.
1551 (save_dialog): Adjust for multiple selection semantics.
1552 (save_site_url): Save all user chosen sites.
1553 (dialog_cmd): Don't save the dialog when the listbox recieves a message -
1555 Remove obsolete other_url reference.
1556 (dialog_proc): Use all_site_list instead of site_list.
1557 (site_sort): Remove.
1558 (get_site_list): Remove malloc use - use list template instead.
1559 Move site_list_type initialisation to site_list_type::init().
1560 (get_initial_list_idx): Renamed to ...
1561 (get_saved_sites): this. Also read in multiple sites to the site_list.
1562 (do_site): Use all_site_list not site_list.
1563 Log all chosen sites.
1564 * site.h: New file, defines site related class, functions and variables.
1565 * state.h: Add comment about use of state.h
1566 (mirror_site): Remove.
1567 (other_url): Remove.
1568 (MIRROR_SITE): Remove.
1569 * version.cc: New file, for version-handling and related functions.
1571 2001-12-02 Robert Collins <rbtcollins@hotmail.com>
1573 * Makefile.in: Add filemanip.o to setup.
1574 * archive.cc (archive::extract_file): Use new io_stream method 'copy'.
1575 * archive_tar.h (archive_tar_file): Implement get_size virtual.
1576 (archive_tar): Ditto.
1577 * choose.cc (set_action): Use [] operator instead of getnth - its more readable.
1579 (_view::init_headers): Ditto.
1580 (_view::insert_pkg): Ditto.
1581 (set_view_mode): Ditto.
1584 (base): Moved to filemanip.cc.
1585 (find_tar_ext): Ditto.
1586 (parse_filename): Ditto.
1587 (_Info::_Info): Remove.
1588 * compress_bz.h (compress_bz): Implement get_size virtual.
1589 * compress_gz.h (compress_gz): Implement get_size virtual.
1590 * cygpackage.cc (cygpackage::destroy): Use array delete for char * objects.
1591 * download.cc (get_file_size): Move to filemanip.cc.
1592 (check_for_cached): Use [] operator instead of getnth - its more readable.
1593 (download_one): Ditto.
1594 * filemanip.cc: New file.
1595 * geturl.cc (init_dialog): Make url a pointer to const as it is not modified.
1596 (get_url_to_membuf): New function - contains get_url_to_string worker code.
1597 (get_url_to_string): Becomes a trivial wrapper to get_url_to_membuf.
1598 * geturl.h: Declare new prototype.
1599 * ini.cc (do_ini): Use get_url_to_membuf and pass ini_init an io_stream.
1600 Tidy up the error code a little.
1601 * ini.h: Remove __cplusplus protection for ini_init.
1603 * inilex.l: Remove old globals.
1604 (ini_init): Use an io_stream for getting the characters.
1605 (ini_getchar): Ditto.
1606 * iniparse.y: Declare yylex as a C++ function.
1607 (add_correct_version): Use [] operator instead of getnth - its more readable.
1608 * io_stream.cc (io_stream::move_copy): Use the copy method.
1609 (io_stream::copy): New method to simply copy from one stream to another.
1610 * io_stream.h (io_stream): New static method copy, and virtual method get_size.
1611 * io_stream_cygfile.cc (io_stream_cygfile::get_size): Implement this.
1612 * io_stream_cygfile.h (io_stream_cygfile::get_size): Declare this.
1613 * io_stream_file.cc (io_stream_file::get_size): Implement this.
1614 * io_stream_file.h (io_stream_file::get_size): Declare this.
1615 * io_stream_memory.h: Include errno as it's neded to parse the header.
1616 (io_stream_memory::get_size): Implement this.
1617 (io_stream_memory::st_size): Delete this.
1618 * list.h: Change getnth into the [] operator.
1619 * netio.cc (NetIO::NetIO): Change prototype to reflect Purl not being modified.
1620 (NetIO::set_url): Ditto.
1621 (NetIO::open): Ditto.
1622 * netio.h: As for netio.cc.
1623 * nio-file.cc (NetIO_File::NetIO_File): Change prototype to reflect Purl not
1625 * nio-file.h: Ditto.
1626 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
1627 * nio-ftp.h (NetIO_FTP::NetIO_FTP): Ditto.
1628 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Ditto.
1629 * nio-http.h (NetIO_HTTP::NetIO_HTTP): Ditto.
1630 * nio-i5.cc (NetIO_IE5::NetIO_IE5): Ditto.
1631 * nio-i5.h (NetIO_IE5::NetIO_IE5): Ditto.
1632 * package_meta.cc (packagemeta::~packagemeta): Bugfix: use array delete.
1633 * package_source.cc (packagesource::set_canonical): Ditto.
1634 (packagesource::set_cached): Ditto.
1635 * package_source.h (site::~site): Ditto.
1636 * site.cc: Change site_list_type to a class, and search and replace sort_key to
1639 2001-12-01 Robert Collins <rbtcollins@hotmail.com>
1641 * package_source.cc (packagesource::set_canonical): Filename was out by one.
1643 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
1645 * Makefile.in (OBJS): Remove category_list - it's not needed.
1646 * README: More wishlist updates.
1647 * category.cc (Category::Category): Initialise new members.
1648 (Categorycmp): New function.
1649 * category.h (Category): New member key for template use.
1650 * category_list.cc: Remove.
1651 * category_list.h: Remove.
1652 (Categorycmp): New function prototype.
1653 * choose.cc: Remove category_list - not needed.
1654 (set_action): Only show the 'source' option when the source is actually
1656 (add_required): Fix recursion limiter to 5.
1657 (fill_missing_category): Use list access.
1658 (default_trust): Ditto.
1659 (pick_line::paint): Ditto.
1660 (_view::init_headers): Ditto.
1661 (_view::insert_pkg): Ditto.
1662 (_view::insert_category): Ditto.
1663 (_view::click): Ditto.
1664 (set_view_mode): Ditto.
1666 * cygpackage.h: Remove category_list - not needed.
1667 * geturl.cc (get_url_to_string): Fix null byte insertion.
1668 * inipatse.y: Remove category_list - not needed.
1669 (categories): Use list access.
1670 * package_db.cc: Ditto.
1671 * package_db.h: Remove category_list - not needed.
1672 (packagedb): Use the list template for categories.
1673 * package_meta.cc (add_category): Ditto.
1674 * package_meta.h (CategoryPackage): Link to the category as well.
1675 (packagemeta): Use a list of CategoryPackages instead of Categories
1676 for more memory efficient cross-referencing.
1678 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
1680 * package_db.cc (packagedb::flush): Write a canonical version for all packages
1681 irrespective of the media they were installed from.
1683 2001-11-29 Robert Collins <rbtcollins@hotmail.com>
1685 * Makefile.in (OBJS): Add package_source and rfc1738.
1686 * README: Wishlist update.
1687 * category_list.cc (register_category): Use references.
1688 * category_list.h (CategoryList): Ditto.
1689 * choose.cc (isinstalled): Remove.
1690 (pkgtrustp): New macro.
1691 (set_action): Use packagemeta.
1692 (add_required): Ditto.
1693 (choose_caption): Example package to choose caption, rather than state flags.
1694 (check_existence): Remove.
1695 (set_existence): Remove old code.
1696 (fill_missing_category): Use packagemeta.
1697 (keep_or_skip): Remove.
1698 (default_trust): Use packagemeta and set trust values directly.
1699 (pick_line::set_line): Use packagemeta.
1700 (_view::insert_pkg): Ditto.
1701 (_view::insert_category): Ditto.
1702 (_view::click): Ditto.
1703 (set_view_mode): Ditto. Also remove "exclude" code.
1704 (create_listview): Use packagemeta.
1705 (dialog_cmd): Ditto.
1706 (getpkgbyname): Remove
1707 (scan2): Use packagemeta. Temporarily comment out the holefinding code.
1708 (read_installed_db): Remove.
1709 (package_sort): Use packagemeta.
1710 (do_choose): Use packagemeta. Don't sort the packages - the db does that.
1711 * choose.h: Use packagemeta.
1712 * cygpackage.cc (cygpackage::cygpackage): Initialise all variables.
1713 (cygpackage::cygpackage): Ditto.
1714 (cygpackage::set_canonical_version): Copy the passed string.
1715 (cygpackage::~cygpackage): Move cleanup code to destroy().
1716 (cygpackage::destroy): New function.
1717 (cygpackage::getfirstfile): Use a separate buffer.
1718 (cygpackage::getnextfile): Ditto.
1719 (cygpackage::Canonical_version): New function.
1720 (cygpackage::set_sdesc): Ditto.
1721 (cygpackage::set_ldesc): Ditto.
1722 * cygpackage.h (cygpackage::Canonical_version): New method.
1723 (cygpackage::set_sdesc): New method.
1724 (cygpackage::set_ldesc): New method.
1725 (cygpackage::SDesc): New method.
1726 (cygpackage::LDesc): New method.
1727 (cygpackage::set_canonical_version): New method.
1728 * desktop.cc: Include packagedb headers.
1729 (make_password_group): Use packagemeta.
1730 * download.cc: Include packagedb headers.
1731 (check_for_cached): New method to find any cached file and fill out the database
1733 (download_one): Take a packagesource, support multiple mirrors.
1734 (do_download): Use packagemeta.
1735 * from cwd.cc: Include packagedb headers.
1736 (found_file): Use packagemeta.
1737 * ini.cc (do_ini): Beginning of multiple-mirror support.
1738 * ini.h (CategoryPackage): Remove.
1739 (Dependency): Remove.
1741 (new_package,getpkgbyname,getpackagecategorybyname,add_category): Remove.
1742 * inilex.l: Support multiple mirrors.
1743 * iniparse.y: Include packagedb headers.
1744 (parser): Use packagemeta.
1745 (new_package): Remove.
1746 (add_correct_version): New function.
1747 (new_requirement): Remove.
1748 (add_category): Remove.
1749 * install.cc (uninstall_one): Use packagemeta.
1750 (install_one_source): New function.
1751 (install_one): Use packagemeta.
1752 (do_install): Use packagemeta.
1753 * io_stream.cc (io_stream::move): Bugfix on move/copy case.
1754 * io_stream_cygfile.cc (io-stream_cygfile::set_mtime): Do not reopen the file
1755 after setting the mtime, it makes no sense, and results in 0 length files.
1756 * io_stream_file.cc (io-stream_file::set_mtime): Ditto.
1757 * list.h: New file, template class for a form of list.
1758 * package_db.cc (packagedb::registerpackage): New function.
1759 * package_db.h (packagedb::npackages ()): New method.
1760 * package_meta.cc (packagemeta::add_version): Use list template.
1761 (packagemeta::set_installed): Ditto.
1762 (packagemeta::add_category): New method.
1763 * package_meta.h: Include necessary headers to parse the class.
1764 (CategoryPackage): New class.
1765 (packagemeta): Initialise all members.
1766 (packagemeta::SDesc): New method.
1767 (packagemeta::Categories): New method.
1768 (packagemeta::add_category): Ditto.
1769 (packagemeta::versions): Change to be a list instance.
1770 * package_source.cc (packagesource::set_canonical): New method.
1771 (packagesource::set_cached): New method.
1772 * package_source.h: Include necessary headers to parse the class.
1774 (packagesource::packagesource): Initialize all members.
1775 (packagesource): Make this class non-abstract.
1776 * package_version.cc (packageversion::packageversion): New method.
1777 * package_version.h (Dependency): New class.
1778 (packageversion::Canonical_vesion): New method.
1779 (packageversion::SDesc): New method.
1780 (packageversion::LDesc): New method.
1781 (packageversion::new_requirement): Ditto.
1782 (packageversion::srcpicked, binpicked): What to install.
1783 (packageversion::src, bin): Installation source data.
1784 * rfc1738.cc: New file. Escapes special characters in URL's.
1787 2001-11-26 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1789 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Stop header parsing when
1790 SimpleSocket::gets() returns a zero-length string, so that we
1791 don't end up eating the entire stream thinking it's all header info.
1793 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
1795 * install.cc (badrename): Remove.
1796 (do_install): Use packagedb flush method to write /etc/setup/installed.db.
1797 * io_stream.cc (io_stream::move_copy): New method.
1798 (io_stream::move): New method.
1799 * io_stream.h (io_stream): New methods move and move_copy.
1800 * io_stream_cygfile.cc (io_stream_cygfile::move): New method.
1801 * io_stream_cygfile.h (io_stream_cygfile): New method move.
1802 * io_stream_file.cc (io_stream_file::move): New method.
1803 * io_stream_file.h (io_stream_file): New method move.
1804 * package_db.cc (packagedb::flush): New method.
1805 * package_db.h (packagedb): New method flush.
1807 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
1809 * Makefile.in (OBJS): Add package_version.
1810 * ategory.cc (Category::Category): Update constructors.
1811 * category_list.cc (CategoryList::register_category): Insert correctly.
1812 * choose.cc: Include package_version.h, not package.h.
1813 * cygpackage.cc: Ditto.
1814 (cygpackage::uninstall): New method.
1815 * cygpackage.h (cygpackage): Rename genericpackage to packageversion.
1816 New method uninstall.
1817 * hash.cc (add, has, enumerate): Change prototype to be accurate.
1818 * hash.h (hash): Change prototypes to be accurate.
1819 * ini.h (_Info): New parameterless constructor.
1820 (CategoryPackage): New constructor.
1822 * install.cc: Don't include unneeded headers.
1823 Include package database headers.
1824 (hash::add_subdirs): Remove.
1825 (uninstall_one): Use packagemeta->uninstall to perform the uninstallation.
1826 Don't uninstall source packages.
1827 (do_install): Just can uninstall_one once as we ignore source packages now.
1828 Don't copy the installed.old database accross, instead iterate through the
1829 packagedb packages list and write the isntalled packages out.
1830 * package_db.cc: Include package_version.h, not package.h.
1831 (packagedb::packagedb): Never let db be undefined.
1832 Record the installation filename, so we can reconstruct installed.db.
1833 (packagedb::addpackage): Insert packages in alpha sorted order.
1834 (packagedb::categories): Initialise correctly.
1835 * package_meta.cc: Include win32 and mount headers as a workaround to
1836 current io_stream limitations. Include a TODO about that.
1837 (standard_dirs): New, from install.cc.
1838 (hash::add_subdirs): New, from install.cc.
1839 (packagemeta::set_installed): Rename genericpackage to packageversion.
1840 (packagemeta::uninstall): New method.
1841 * package_meta.h: Rename genericpackage to packageversion.
1842 (packagemeta): Update constructor.
1843 (add_version, set_installed): Rename genericpackage to packageversion.
1844 (uninstall): New method.
1845 (installed_from): New member.
1846 * package_source.cc: New file.
1847 * package_source.h: New file.
1848 * package_version.cc: New file.
1849 * package_version.h: New file.
1850 * package.cc: Removed.
1851 * package.h: Removed.
1853 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
1855 * Makefile.in (OBJS): Add category.o and category_list.o.
1856 * category.h: New file.
1857 * category.cc: New file.
1858 * category_list.h: New file.
1859 * category_list.cc: New file.
1860 * choose.cc: Include category headers.
1861 (fill_missing_category): Use package_db to access global categories.
1862 (_view::insert_pkg): Ditto.
1863 (_view::insert_category): Ditto.
1864 (set_view_mode): Ditto.
1865 (getcategorybyname): Remove.
1866 * cygpackage.h: Include category_list.h to parse this correctly.
1867 (cygpackage): New virtual &Categories.
1868 * ini.h (_CategoryPackage): More C to C++ conversion.
1870 (getcategorybyname): Remove.
1871 (register_category): Remove.
1872 * iniparse.y: Include package db and category headers.
1873 (categories): Use package_db to access global categories.
1875 (ncategories): Remove.
1876 (register_category): Remove.
1877 * package.h: New virtual &Categories.
1878 * package_db.cc (packagedb::packagedb): Don't read the installed db twice.
1879 (packagedb::categories): Declare.
1880 * package_db.h (packagedb): New member categories for global categories list.
1882 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
1884 * choose.h: Don't include ini.h
1885 * ini.h: Allow pure c++ in the header file.
1887 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
1889 * install.cc (do_install): Write a version 2 installed.db file.
1890 * package_db.cc (packagedb::packagedb): Read version 1 and 2 installed.db files.
1892 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
1894 * Makefile.in (OBJS): Add package abstraction objects.
1895 * choose.cc: Include package abstraction headers.
1896 (read_installed_db): Use packagedb class and ignore installed sources.
1897 * cygpackage.cc: New file.
1898 * cygpackage.h: New file.
1899 * filemanip.h (get_file_size): Use unixy types.
1900 * package.h: New file.
1901 * package.cc: New file.
1902 * package_db.cc: New file.
1903 * package_db.h: New file.
1904 * package_meta.cc: New file.
1905 * package_meta.h: New file.
1907 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
1909 * REAME: Updates to wishlist.
1911 2001-11-16 Robert Collins <rbtcollins@hotmail.com>
1913 * README: Updated and added my list of wishlist and todo items.
1915 2001-11-14 Robert Collins <rbtcollins@hotmail.com>
1917 * Makefile.in (OBJS): Include io_stream_memory in setup.exe.
1918 * archive_tar.cc (archive_tar::write): New prototype.
1919 (archive_tar::seek): New method.
1920 * archive.h (archive_tar_file): Update write() and add seek().
1921 (archive_tar): Ditto.
1922 * archive_tar_file.cc (archive_tar_file::write): New prototype.
1923 (archive_tar_file::seek): New method.
1924 * compress_bz.cc (compress_bz::write): New prototype.
1925 (compress_bz::seek): New function.
1926 * compress_bz.h (compress_bz): Update write() and add seek().
1927 * compress_gz.cc (compress_gz::write): New prototype.
1928 (compress_gz::seek): New function.
1929 * compress_gz.h (compress_gz): Update write() and add seek().
1930 * geturl.cc: Include io_stream headers.
1932 (get_url_to_string): Use a io_stream_memory buffer instead of GUBuf.
1933 * io_stream.h (io_stream_seek_t): New enum.
1934 (io_stream): Update write() and add seek().
1935 * io_stream_cygfile.cc (io_stream_cygfile::write): New prototype.
1936 (io_stream_cygfile::seek): New function.
1937 * io_stream_cygfile.h (io_stream_cygfile): Update write() and add seek().
1938 * io_stream_file.cc (io_stream_file::write): New prototype.
1939 (io_stream_file::seek): New function.
1940 * io_stream_file.h (io_stream_file): Update write() and add seek().
1942 2001-11-13 Brian Keener <bkeener@thesoftwaresource.com>
1944 * localdir.cc: Add headers unistd.h and port.h.
1945 (save_local_dir): Expand search logic to include local directory for
1946 location of file last-cache.
1947 (dialog_cmd): Skip IDD_ROOT when downloading and use Back button.
1948 (do_local_dir): Expand search logic to include local directory for file
1950 * res.rc (IDD_CHOOSE_DIALOG): Add hotkey to View button.
1951 * Source.cc (dialog_cmd): Skip IDD_ROOT if select Download from
1953 (do_source): Default to Install from Internet on first entry or
1954 previous selection if backing up from IDD_ROOT or IDD_LOCAL_DIR.
1956 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
1958 * choose.cc (find_tar_ext): Only match at the end of the string.
1959 (getpkgbyname): Prevent NULL pointer dereference.
1961 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
1963 * Makefile.in (CFLAGS): Add warnings and -Werr.
1964 (WARNONLY_FLAGS): For sources that produce (harmless) errors no matter what.
1965 (OBJS): Add io_stream class' objects.
1966 (autoload.o): Use WARNONLY_FLAGS.
1968 (iniparse.o): Ditto.
1969 * archive.cc: New file.
1970 * archive.h: New file.
1971 * archive_tar.cc: New file.
1972 * archive_tar.h: New file.
1973 * archive_tar_file.cc: New file.
1974 * autoload.c: Fix compiler warnings (unused, deprecated conversion).
1975 * choose.cc: Use io_stream.h, not mount.h.
1977 (find_tar_ext): Rewritten to use strstr, and to accept .tar as an extension.
1978 (read_installed_db): Use io_streams.
1979 * choose.h: Run indent.
1980 * compress.cc: New file.
1981 * compress.h: New file.
1982 * compress_bz.cc: New file.
1983 * compress_bz.h: New file.
1984 * compress_gz.cc: New file.
1985 * compress_gz.h: New file.
1986 * concat.cc: Run indent.
1987 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1988 * concat.h: Run indent.
1989 * desktop.cc: Run indent.
1990 Include mklink2.h rather than redefining by hand.
1991 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1992 (etc_profile): Fix compiler warning (deprecated conversion).
1993 (make_link): Fix compiler warning (deprecated conversion).
1994 Tidy up use of args variable - consolidate into argbuf.
1995 (start_menu): Fix compiler warning (deprecated conversion).
1996 (desktop_icon): Fix compiler warning (deprecated conversion).
1997 (make_etc_profile): Fix compiler warning (deprecated conversion).
1998 (uexists): Fix compiler warning (deprecated conversion).
1999 (check_desktop): Fix compiler warning (deprecated conversion).
2000 (check_startmenu): Fix compiler warning (deprecated conversion).
2001 * dialog.cc: Run indent.
2002 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2003 (fatal): Fix compiler warning (deprecated conversion).
2004 * dialog.h: Run indent.
2005 * diskfull.cc: Run indent.
2006 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2007 * download.cc: Run indent.
2008 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2009 (download_one): Fix compiler warning (signed vs unsigned comparison).
2010 * filemanip.h: Run indent.
2011 * find.cc: Run indent.
2012 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2013 (find): Fix compiler warning (deprecated conversion).
2014 * find.h: Run indent.
2015 * fromcwd.cc: Run indent.
2016 * geturl.cc: Run indent.
2017 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2018 (dialog_cmd): Return a value.
2019 (dialog_proc): Remove unused variables.
2021 (get_url_to_file): Fix compiler warning (deprecated conversion).
2022 * geturl.h: Run indent.
2023 * hash.cc: Run indent.
2024 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2025 * hash.h: Run indent.
2026 * ini.cc: Run indent.
2028 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2029 (do_ini): Use io_streams for local io.
2030 * ini.h: Run indent.
2031 * inilex.l (ignore_line): Fix compiler warning (is not a prototype).
2032 Fix compiler warning (brackets for truth assignment).
2033 * install.cc: Run indent.
2034 Fix compiler warning (/* in comment).
2036 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2037 (dialog_cmd): Return a value.
2038 (dialog_proc): Return a value.
2039 (start_tics): Deleted - was unused.
2040 (badrename): Fix compiler warnings (unused, deprecated conversion).
2041 (standard_dirs): Fix compiler warning (deprecated conversion).
2043 (uninstall_one): Convert to io_streams.
2044 (install_one): Convert to io_streams.
2045 (do_install): Convert to io_streans.
2046 Fix compiler warning (deprecated conversion).
2047 * io_stream.cc: New file.
2048 * io_stream.h: New file.
2049 * io_stream_cygfile.cc: New file.
2050 * io_stream_cygfile.h: New file.
2051 * io_stream_file.cc: New file.
2052 * io_stream_file.h: New file.
2053 * localdir.cc: Run indent.
2055 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2056 (get_root_dir_now): Remove.
2057 (save_local_dir): Convert to io_streams.
2058 (dialog_cmd): Return a value.
2059 (do_local_dir): Convert to io_streams.
2060 (log.cc): Run indent.
2061 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2062 (log): Fix compiler warning (deprecated conversion).
2063 (log_save): Fix compiler warning (deprecated conversion).
2064 * log.h: Run indent.
2065 (log): Fix compiler warning (deprecated conversion).
2066 (log_save): Fix compiler warning (deprecated conversion).
2067 * main.cc: Run indent.
2068 Don't include "netio.h".
2069 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2070 (netio_test): Remove.
2071 (sid_auth): Fix compiler warning (partially bracketed initialiser).
2072 (WinMain): Return a value.
2073 * mkdir.cc: Run indent.
2074 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2075 * mklink2.c: Run indent.
2076 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2077 (mkcygsymlink): New function.
2078 * mklink2.h: New file.
2079 * mount.cc: Run indent.
2080 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2081 (create_mount): Remove unused variables.
2082 (cygpath): Fix compiler warning (signed vs unsigned comparison).
2083 * mount.h: Run indent.
2084 * msg.cc: Run indent.
2085 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2086 (msg): Fix compiler warning (deprecated conversion).
2087 (mbox): Fix compiler warning (deprecated conversion).
2088 * msg.h: Run indent.
2089 (msg): Fix compiler warning (deprecated conversion).
2090 * net.cc: Run indent.
2091 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2092 (dialog_cmd): Return a value.
2093 * netio.cc: Run indent.
2094 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2095 (auth_cmd): Return a value.
2096 * netio.h: Run indent.
2097 * nio-file.cc: Run indent.
2098 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2099 (NetIO_File::NetIO_File): Fix compiler warning (deprecated conversion).
2100 * nio-file.h: Run indent.
2101 * nio-ftp.cc: Run indent.
2102 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2103 * nio-ftp.h: Run indent.
2104 * nio-http.cc: Run indent.
2105 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2106 * nio-http.h: Run indent.
2107 * nio-ie5.cc: Run indent.
2108 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2109 * nio-ie5.h: Run indent.
2110 * other.cc: Run indent.
2111 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2112 (dialog_cmd): Return a value.
2113 * port.h: Run indent.
2114 * postinstall.cc: Run indent.
2115 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2116 (cmd): Fix compiler warning (deprecated conversion).
2117 (eun): Fix compiler warning (deprecated conversion).
2118 * root.cc: Run indent.
2119 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2120 * simpsock.cc: Run indent.
2121 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2122 * simpsock.h: Run indent.
2123 * site.cc: Run indent.
2125 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2126 (get_root_dir_now): Remove.
2127 (save_site_url): Convert to io_streams.
2128 (dialog_cmd): Return 0.
2129 (get_initial_list_idx): Convert to io_streans.
2130 * source.cc: Run indent.
2131 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2132 (check_if_enable_next): Remove.
2133 (load_dialog): Remove unused variables.
2134 (save_dialog): Ditto.
2135 (dialog_cmd): Return a value.
2136 * splash.cc: Return a value.
2137 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2138 (dialog_cmd): Return a value.
2139 * state.cc: Run indent.
2140 (cvsid): Fix compiler warnings (unused, deprecated conversion).
2141 * state.h: Run indent.
2145 2001-11-12 Christopher Faylor <cgf@redhat.com>
2147 * desktop.cc (start_menu): Change start menu name to "Cygwin".
2148 (check_startmenu): Ditto.
2150 2001-11-11 Christopher Faylor <cgf@redhat.com>
2152 * choose.cc (parse_filename): Finish reorganization by correctly
2153 decrementing p in memmove.
2155 2001-11-11 Christopher Faylor <cgf@redhat.com>
2157 * choose.cc (parse_filename): Reorganize code to work around gcc
2158 optimization problem.
2160 2001-11-09 Gareth Pearce <tilps@hotmail.com>
2162 * choose.cc (set_action): Allow skip as an option for installed
2163 packages that have version number not listed in setup.ini.
2165 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
2167 * choose.cc (set_cation): Backout last change.
2168 (choose_caption): Ditto.
2170 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
2172 * ini.h (actions): Remove - transferred to choose.h.
2174 * choose.h: Protect class's from "C" compilers.
2175 (actions): New enum, from ini.h. This may not be the 'right' place
2176 but that place doesn't exist yet.
2177 (_views): New enum, from ini.h.
2178 * choose.cc (set_action): Handle installed packages with a version not in
2180 (choose_caption): Ditto.
2181 * iniparse.y: Rearrange header order to handle new ini.h.
2183 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
2185 * ini.h (_Info): Fix compiler warnings (signed vs unsigned comparison).
2186 (registry_category): Fix compiler warning (deprecated conversion).
2187 * iniparse.y (registry_category): Ditto.
2188 * choose.cc (cvsid): Fix compiler warnings (unused, deprecated conversion).
2189 (add_requried): Remove unused variable.
2190 (choose_caption): Handle all enumeration values via a default.
2191 (paint): Fix compiler warnings (unused, deprecated conversion).
2192 (scroll_common): Fix compiler warnings (unused, signed vs unsigned comparison).
2193 (list_clicK): Fix compiler warnings (signed vs unsigned comparison).
2194 (note_width): Fix compiler warnings (deprecated conversion).
2195 (keep_or_skip): Fix compiler warnings (unused).
2196 (_view::mode_caption): Fix compiler warnings (deprecated conversion).
2197 (set_view_mode): Fix compiler warnings (unused).
2198 (create_listview): Fix compiler warnings (unused, incorrect format, reaches
2200 (dialog_proc): Fix compiler warnings (unused).
2201 (read_installed_db): Fix compiler warnings (unused, deprecated conversion).
2202 * choose.h (_header): Fix compiler warnings (deprecated conversion).
2205 2001-11-08 Pavel Tsekov <ptsekov@syntrex.com>
2207 * simpsock.h (SimpleSocket::invalidate): Declare new method.
2208 * simpsock.cc (SimpleSocket::invalidate): Implement new method.
2209 (SimpleSocket::SimpleSocket): Initialize buf to zero. Do not allocate
2210 memory for buf in the constructor.
2211 (SimpleSocket::~SimpleSocket): Use SimpleSocket::invalidate().
2212 (SimpleSocket::printf): Use SimpleSocket::write() instead of send().
2213 (SimpleSocket::write): Check object consistency - return -1 on error.
2214 invalidate() the object on socket write error.
2215 (SimpleSocket::fill): Check object consistency - return -1 on error.
2216 invalidate() the object if socket read error is encountered and there
2217 is no more data available in the internal read buffer.
2218 Allocate memory for the internal read buffer.
2219 (SimpleSocket::gets): Return zero (NULL pointer) if error is encountered
2220 during fill() and no more data is available in the internal read buffer.
2221 (SimpleSocket::read): Check object consistency - return -1 on error.
2222 invalidate() the object if socket read error is encountered.
2223 * nio-ftp.cc (NetIO_FTP:NetIO_FTP): Allow 125 as valid response code to
2224 the RETR command (fix for MS IIS ftp server 5 - possibly others too).
2225 (NetIO_FTP::ok): Check if the SimpleSocket object is ok().
2226 (NetIO_FTP::read): Use NetIO_FTP::ok().
2227 * nio-http.cc: Check for valid return value of SimpleSocket::gets().
2228 (NetIO_HTTP::ok): Check if the SimpleSocket object is ok().
2230 2001-11-09 Robert Collins <rbtcollins@hotmail.com>
2232 * simpsock.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
2233 (SimpleSocket::SimpleSocket): Avoid compiler warnings (deprecated conversion).
2234 (SimpleSocket::printf): Ditto.
2235 (SimpleSocket::write): Ditto.
2236 * simpsock.h (SimpleSocket): Avoid compiler warnings for constructor,
2238 * nio-ftp.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
2239 (NetIO_FTP::NetIO_FTP): Remove unused variable done.
2240 * nio-http.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
2242 2001-11-07 Charles Wilson <cwilson@ece.gatech.edu>
2244 * geturl.cc (get_url_to_string): clean up memory leak
2245 (get_url_to_file): ditto
2247 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
2249 * localdir.cc (dialog_cmd): Go back to IDD_ROOT in every case.
2250 * source.cc (dialog_cmd): Go forward to IDD_ROOT in every case.
2252 2001-11-06 Pavel Tsekov <ptsekov@syntrex.com>
2254 * fromcwd.cc (found_file): Free() memory containing the version and
2255 filepath information for a given package, before replacing the pointers which
2256 reference this memory.
2258 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
2260 * fromcwd: Fix compiler warnings for cvsid.
2261 (canonicalize_version): Fix compilter warnings.
2262 (do_fromcwd): Ditto.
2263 * version.h: Fix compiler warnings for canonicalize_version.
2265 2001-11-03 Robert Collins <rbtcollins@hotmail.com>
2267 * res.rc (IDD_CHOOSE): Move the view caption to the right hand side.
2269 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2271 * res.rc (IDD_CHOOSE): Tweak for use on a 640x480 screen.
2273 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2275 * choose.cc (set_action): Correctly allow skip for any uninstalled package.
2277 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2279 * choose.cc (default_trust): Change the "Required" forced install category to
2282 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2284 * choose.cc: Ran indent.
2285 (set_action): When the requested trust level is missing and the level was not
2286 user requested, set the action to ACTION_SAME_CURR.
2288 2001-11-01 Christopher Faylor <cgf@redhat.com>
2290 * Makefile.in (mingw_getopt.o): Fix typo in non-verbose compilation.
2292 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2294 * choose.cc (_view::init_headers): Resync with the paint logic.
2296 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2298 * choose.cc (add_required): Allow SKIP and SRC_ONLY for currently installed
2301 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2303 * choose.cc (default_trust): Autoset currently installed packages per the user's
2304 selection of prev/curr/exp.
2306 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2308 * splash.cc (dialog_proc): Return TRUE as specified in the WIN32 API.
2310 2001-11-02 Pavel Tsekov <ptsekov@syntrex.com>
2312 * geturl.cc (is_showing): Remove.
2313 (is_local_install): New static variable. Controls whether the
2314 progress dialog and the supporting thread will be created.
2315 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the WIN32 API.
2316 (init_dialog): Remove usage of SetForegroundWindow and is_showing.
2317 This prevents the progress dialog to gain control over the
2318 application and fixes the "setup.exe going to background" problem.
2319 (progress): Use is_local_install.
2320 (get_url_to_string): Set is_local_install.
2321 (dismiss_url_status_dialog): Use is_local_install.
2322 * install.cc (dialog_proc): Return TRUE as specified in WIN32 API.
2323 (init_dialog): Remove usage of SetForegroundWindow.
2324 This prevents the progress dialog to gain control over the
2325 application and fixes the "setup.exe going to background" problem.
2327 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2329 * choose.cc (list_click): Change r to row for clarity.
2330 When we shrink the list below 1 page, scroll to the top of the list.
2331 (_view::click): Return the actual change for contractions.
2332 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the Win32 API.
2334 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2336 * choose.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
2337 * localdir.cc: Ran indent.
2338 (get_root_dir_now): New function.
2339 (save_local_dir): New function.
2340 (dialog_cmd): Use it and swap cygwin root selection and local dir selection order.
2341 (do_local_dir): If there is a saved local dir, read it in.
2342 * net.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
2343 * root.cc (dialog_cmd): Ditto.
2344 * source.cc (dialog_cmd): Ditto.
2346 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
2348 * choose.cc(list_vscroll): Return 0 as required by win32.
2349 (list_hscroll): Ditto.
2350 (list_click): Ditto.
2352 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
2356 * main.cc(WinMain): Use __argv to retrieve command line parameters.
2357 * Makefile,in: Remove argv.o.
2359 2001-11-01 Matt Hargett <matt@use.net>
2361 * geturl.cc (progress): Change int to unsigned int to eliminate
2363 * (get_url_to_string): Check for NULL pointer.
2364 * mount.cc (find2): Use free instead of delete for malloc'd
2366 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Fix memory leak.
2368 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
2370 * choose.cc(_view::insert_under): Handle linen > nlines and lines[linen] with neither
2371 a package nor a category. The lines[linen] bug was reported by Matt (matt@usa.net).
2372 (read_installed_db): Bugfix for testing whether a package has a source tarball.
2373 Reported by Matt (matt@usa.net).
2374 * geturl.cc(dialog): Rename gw_dialog to local_gw_dialog to avoid programmer
2375 confusion and lint errors. Reported by Matt (matt@usa.net).
2377 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
2379 * argv.cc: New file, converts arguments for -mwindows programs. (Simplified derivation
2382 * Makefile,in: Add argv.o and mingw_getopt.o to setup.exe object list.
2383 Add mingw_getopt.o build rule.
2384 * main.cc(WinMain): Initialise argv and argc for use by getopt.
2386 2001-10-27 Christopher Faylor <cgf@redhat.com>
2388 * res.rc: Rearrange info on top line slightly.
2390 2001-10-27 Christopher Faylor <cgf@redhat.com>
2392 * desktop.cc (make_passwd_group): Move file creation earlier in the
2393 process to ensure that passwd-grp.bat reflects desired operation.
2395 2001-27-10 Trevor Forbes <t4bs@hotmail.com>
2397 * postinstall.cc (each): Remove "*.done" file else rename will fail.
2399 2001-10-16 Christopher Faylor <cgf@redhat.com>
2401 * res.rc: Oops. Take 640x480 screen size into account.
2403 2001-10-16 Christopher Faylor <cgf@redhat.com>
2405 * res.rc: Enlarge chooser screen.
2407 2001-10-12 Christopher Faylor <cgf@redhat.com>
2409 * Makefile.in: Accomodate changes to w32api_include macro.
2411 2001-10-12 Christopher Faylor <cgf@redhat.com>
2413 * Makefile.in: Use correct flags for windres.
2415 2001-10-12 Christopher Faylor <cgf@redhat.com>
2417 * Makefile.in (CFLAGS): Remove -nostdinc from CFLAGS.
2419 2001-10-12 Christopher Faylor <cgf@redhat.com>
2421 * choose.cc (pick_line::paint): Reorganize after botched patch.
2423 2001-10-12 Christopher Faylor <cgf@redhat.com>
2425 * choose.cc (pick_line::paint): Add missing declaration.
2427 2001-10-10 Ralf Habacker <Ralf.Habacker@freenet.de>
2429 * choose.cc (pick_line::paint): Add package name to sdesc for display.
2431 Wed Sep 26 21:39:00 Robert Collins rbtcollins@hotmail.com
2433 * choose.cc (_view::insert_pkg): Correctly exit loop.
2434 * iniparse.y (register_category): Always insert new categories.
2436 Fri Sep 21 13:56:32 2001 Christopher Faylor <cgf@cygnus.com>
2438 * inilex.l (yylex): For comments, eat all characters up to, but not
2441 Sun Aug 26 12:50:01 2001 John Marshall <jmarshall@acm.org>
2443 * fromcwd.cc (found_file): Use correct package name when adding an
2444 unknown package rather than random stack garbage.
2446 Sun Aug 12 14:25:21 2001 Christopher Faylor <cgf@cygnus.com>
2448 * desktop.cc (make_passwd_group): .bat files need \r\n endings.
2450 Wed Aug 8 13:53:47 2001 Christopher Faylor <cgf@cygnus.com>
2452 * desktop.cc (etc_profile): Leave environment variables untouched.
2454 2001-08-07 Corinna Vinschen <corinna@vinschen.de>
2456 * autoload.c: Add dynamic load statements for NT/W2K
2457 advapi32 functions not available in 9x/ME.
2458 * main.cc (set_default_dacl): New function.
2459 (WinMain): Call `set_default_dacl' if running on NT/W2K.
2461 Sat Aug 4 21:35:53 2001 Christopher Faylor <cgf@cygnus.com>
2463 * ini.h (_CategoryPackage): Change pkg field to pkgname for
2465 * choose.cc: Use pkgname field when referencing _CategoryPackage
2467 (fill_missing_category): Don't add excluded packages.
2468 (default_trust): Ditto.
2469 (_view::insert_pkg): Ditto.
2470 * iniparse.y (register_category): Use consistent variable name.
2472 2001-07-09 Egor Duda <deo@logos-m.ru>
2474 * choose.cc: Use system foreground color for text output.
2476 Sat Jul 7 00:40:28 2001 Christopher Faylor <cgf@cygnus.com>
2478 * choose.cc (set_action): Use default trust for determining reinstall
2480 (default_trust): Set default trust.
2481 (pick_line::paint): Allow source selection when reinstalling or
2484 Fri Jul 6 18:08:49 2001 Christopher Faylor <cgf@cygnus.com>
2486 * choose.cc (isinstalled): Modify to properly accomodate special case
2488 (set_action): Check downloaded components, not installed components if
2490 (set_existence): Always include full list of files when "download
2493 Fri Jul 6 00:37:05 2001 Christopher Faylor <cgf@cygnus.com>
2495 * choose.cc (pick_line::paint): Properly display "na" field when no
2498 Thu Jul 5 00:34:23 2001 Christopher Faylor <cgf@cygnus.com>
2500 * choose.cc (scan2): Ensure that older versions do not show up in
2503 Mon Jul 2 15:47:59 2001 Christopher Faylor <cgf@cygnus.com>
2505 * choose.cc (set_action): Allow "Skip" action if trust != installed.
2506 * res.rc: Fix copyright.
2508 Sat Jun 30 14:05:21 2001 Michael A Chase <mchase@ix.netcom.com>
2510 * res.rc (IDD_LOCAL_DIR): Change caption to match the other dialog
2512 (IDD_CHOOSE): Adjust horizontal size so package names are visible.
2514 * choose.cc: Restore some more changes from 2001-06-25, throughout.
2515 (paint): Wrap some excessively long lines.
2516 (pick_line::paint): Ditto. Move the arrow in the "Current" column
2517 right to where it belongs. Move the source checkbox slightly to the
2519 (do_choose): List categories and required packages in setup.log.full.
2521 Sat Jun 30 23:04:59 2001 Christopher Faylor <cgf@cygnus.com>
2523 * choose.cc (scan2): Restore source scanning eliminated by previous checkin.
2525 Sat Jun 30 15:18:33 2001 Christopher Faylor <cgf@cygnus.com>
2527 * ini.h (struct _Info): Add "derived" element.
2528 * choose.cc (scan2): Try to place unknown tar files into proper slot
2529 when package exists in setup.ini but tar file does not.
2531 Sat Jun 30 13:39:00 2001 Robert Collins <rbtcollins@hotmail.com>
2533 * choose.cc (create_listview): Call set_view_mode with VIEW_CATEGORY.
2534 (do_choose): Log the first category name.
2536 Fri Jun 29 23:07:44 2001 Christopher Faylor <cgf@cygnus.com>
2538 *ini.h: Reapply 2001-06-25 changes.
2539 * choose.cc (add_required): Ditto. Default to "Keep" state if
2540 UNINSTALL and product is installed. Default to curr state if SKIP,
2542 (keep_or_skip): New function. Returns skip or keep state depending on
2543 installed state of package.
2544 (default_trust): Use keep_or_skip to set state.
2545 (_view::insert_pkg): Use calloc to allocate lines.
2546 (set_view_mode): Adapt 2001-06-25 change to set_full_list here.
2548 Sat Jun 30 11:01:00 2001 Robert Collins <rbtcollins@hotmail.com>
2550 * choose.cc: Remove globals full_list, headers, package_indexes and
2552 Add globals cat_headers, pkg_headers and chooser.
2553 (add_required): New function.
2554 (paint): Use the chooser for header details.
2555 Call into the chooser to paint each line.
2556 (list_click): Use new global variables.
2557 Call into the chooser to handle the click.
2558 Repaint the entire view if packages have been added or removed.
2559 (note_width): Get passed a headers struct rather than using a global
2561 (fill_missing_category): New function.
2562 (default_trust): Skip non-"Required" or "Misc" packages.
2563 (pick_line::set_line (Package *)): New function.
2564 (pick_line::set_line (Category *)): New function.
2565 (pick_line::paint): New function.
2566 (pick_line::click): New function.
2567 (_view::_view): New function.
2568 (_view::set_view_mode): New function.
2569 (_view::mode_caption): New function.
2570 (_view::set_headers): New function.
2571 (_view::init_header): New function.
2572 (_view::insert_pkg): New function.
2573 (_view::insert_category): New function.
2574 (_view::insert_at): New function.
2575 (_view::insert_under): New function.
2576 (_view::clear_view): New function.
2577 (viewsplusplus): New function.
2578 (_view::client): New function.
2579 (set_view_mode): Use new chooser functionality.
2580 (set_full_list): Use new global variables.
2581 (create_listview): Instantiate chooser.
2582 Remove all hardcoded headers[] code.
2583 (dialog_cmd): On trust changes, check dependencies.
2584 (getcategorybyname): New function.
2585 (getpackagecategorybyname): New function.
2586 (scan2): Use case-insensitive package comparison.
2587 (do_choose): Use fill_missing_category ().
2588 Show some category data.
2589 * ini.h: Protect against multiple inclusion.
2591 (_CategoryPackage): New struct.
2592 (_Category): New struct.
2593 (_Package): Change category to Category * from char *.
2594 (extern Category category): New global variable.
2595 (extern in ncategories): Ditto.
2596 (getcategorybyname): New prototype.
2597 (catpackagecategorybyname): New prototype.
2598 (register_category): New prototype.
2599 (add_category): New prototype.
2600 * iniparse.y: Parse multiple categories per package.
2601 (category): New global variable.
2602 (ncategories): New global variable.
2603 (new_package): Compare package against NULL, not 0.
2604 (new_requirement): Source formatting fix.
2605 (register_category): New function.
2606 (add_category): New function.
2607 * res.rc: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
2608 IDC_CHOOSE_VIEWCAPTION: New control.
2609 * resource.h: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
2610 IDC_CHOOSE_VIEWCAPTION: New control.
2611 Increment _APS_NEXT_CONTROL_VALUE.
2613 Mon Jun 25 00:56:37 2001 Michael A Chase <mchase@ix.netcom.com>
2615 * choose.cc (paint): Wrap excessively long lines.
2616 (list_click): Ditto.
2617 (create_listview): Ditto.
2618 (do_choose): Ditto. Replace TABs and remove CRs in lines written to
2619 setup.log.full. Allow "Yes" for source exists in setup.log.full when
2620 installing from local directories.
2622 Mon Jun 25 00:56:37 2001 Christopher Faylor <cgf@cygnus.com>
2624 * choose.cc (set_action): Only clear srcpicked when moving to next
2625 state. Allow source installation if it exists in the current "trust"
2626 state. Don't move to skip state when package is installed.
2627 (list_click): Don't allow source clicking when no source is available.
2628 (set_full_list): Display package when not is_full_action.
2629 * ini.h (is_full_action): Define.
2631 Sun Jun 17 12:06:14 2001 Christopher Faylor <cgf@cygnus.com>
2633 * install.cc (check_for_old_cygwin): New function. First stab at
2634 checking for old cygwin versions.
2635 (do_install): Call check_for_old_cygwin if there were no errors during
2638 Sat Jun 16 11:33:51 2001 Michael A Chase <mchase@ix.netcom.com>
2640 * choose.cc (_Info::_Info): Test _source paramenter for non-NULL rather
2641 than zeroed "source" element.
2643 Fri Jun 15 20:54:43 2001 Christopher Faylor <cgf@cygnus.com>
2645 * choose.cc (scan2): Insert unknown tar archives, found on disk, into
2646 the highest available "hole" in the trust array.
2648 Fri Jun 15 00:20:48 2001 Christopher Faylor <cgf@cygnus.com>
2650 * choose.cc (set_existence): Use pointer method for indexing in trust
2652 (create_listview): Ditto.
2653 (scan2): Ditto. Also, use consistent variable name for indexing into
2655 * ini.h (Package): Reorganize info array for easier scanning.
2657 Fri Jun 15 00:01:51 2001 Christopher Faylor <cgf@cygnus.com>
2659 * choose.cc (isinstalled): Eliminate special download only test.
2660 (set_action): Don't move to next state if in ACTION_SAME range and not
2662 (choose_caption): Display "Retrieve" rather than "Reinstall" when just
2664 (do_choose): Sort packages after all packages have been read.
2665 Accomodate the fact that first element in trust array is empty so that
2666 log files don't report the wrong trust value.
2667 * iniparse.y (new_package): Malloc space for package name or suffer
2670 Thu Jun 14 22:43:59 2001 Robert Collins <rbtcollins@hotmail.com>
2672 * ini.h (Dependency): New structure. Declare new function.
2673 * inilex.l (yylex): Detect new setup.ini options - category and requires.
2674 * iniparse.y: Declare new setup.ini token values.
2675 (yyparse): Parse new token values.
2676 (new_requirement): New function.
2678 Thu Jun 14 22:43:26 2001 Christopher Faylor <cgf@cygnus.com>
2680 * choose.cc (read_installed_db): Eliminate obsolete code.
2682 Thu Jun 14 22:11:53 2001 Christopher Faylor <cgf@cygnus.com>
2684 * choose.cc (set_action): Set trust on "redo".
2685 (_Info::_Info): New constructor.
2686 (read_installed_db): Use new constructor. Use trusts type for
2688 * ini.h (struct _Info): Label struct, add constructor.
2689 (Package): Make installed_ix a type 'trusts.'
2690 * install.cc (uninstall_one): Unset any installed info for current
2692 (install_one): Allocate new Info struct for installed reflecting new
2694 (do_install): Don't output line to installed.db if package is being
2697 Thu Jun 14 20:33:01 2001 Robert Collins <rbtcollins@hotmail.com>
2699 * choose.cc (getpkgbyname): Use consistent method for scanning package
2702 Wed Jun 13 23:33:08 2001 Christopher Faylor <cgf@cygnus.com>
2704 * choose.cc: Add some comments.
2705 (getpkgbyname): Use strcasecmp for comparisons.
2707 Wed Jun 13 16:07:00 2001 Christopher Faylor <cgf@cygnus.com>
2709 * install.cc (do_install): Avoid checking for download action if
2710 package wasn't currently retrieved.
2712 Wed Jun 13 11:27:22 2001 Christopher Faylor <cgf@cygnus.com>
2714 * choose.cc: Eliminate extra array throughout. Use element in package
2715 structure instead. Use pointers rather than array indexes where
2717 (set_action): New function to set next action based on current.
2718 (choose_caption): New function. Returns display caption.
2719 (check_existence): Change arguments. Use pointer to 'info' structure.
2720 (set_existence): Use pointer rather than array index.
2721 (default_trust): Use trusts enum for second argument.
2722 (set_full_list): Honor exclude element in package structure.
2723 (build_labels): Eliminate.
2724 (base): Make global. Use const char * argument.
2725 (get_package_version): Eliminate.
2726 (getpkgbyname): New function.
2727 (read_installed_db): Use parse_filename to get version info.
2728 * desktop.cc (make_passwd_group): Use getpkgbyname function.
2729 * download.cc (get_file_size): const argument.
2730 (do_download): Use is_download_action to determine when something
2731 should be downloaded.
2732 * filemanip.h: Add some functions.
2733 * ini.cc (do_ini): Use NULL rather than 0 for pointer assignment.
2734 * ini.h: Use enums for actions and trusts.
2735 (is_download_action): New macro.
2736 (is_upgrade_action): Ditto.
2737 (is_uninstall_action): Ditto.
2738 (struct Package): Add new fields.
2739 * inilex.l (yylex): Detect new setup.ini options.
2740 * iniparse.y: Declare new tokens.
2741 (yyparse): Detect exclude keyword. Fill out version field even if
2743 (new_package): Use greater granularity when allocating package array to
2744 avoid repeated calls to realloc.
2745 * install.cc (exists): const argument.
2746 (uninstall_one): Take pkg argument.
2747 (install_one): Ditto. Eliminate unneeded arguments which can be
2748 derived from package info.
2749 (do_install): Iterate over package array using a pointer. Use
2750 is_download_action to control when package should be downloaded.
2751 * tar.cc (tar_open): const argument.
2752 * tar.h: Refloect const argument.
2754 2001-05-31 Michael Chase mchase@ix.netcom.com
2756 * main.cc (WinMain): Add setup version to starting setup.log entry
2758 Tue May 29 21:37:58 2001 Yukihiko Sohda <sohda@is.titech.ac.jp>
2760 * inilex.l: Add + to list of valid string characters.
2762 Mon May 28 20:54:50 2001 Christopher Faylor <cgf@cygnus.com>
2764 * Makefile.in: Remove more stuff in the clean target.
2766 Mon May 28 18:24:59 2001 Christopher Faylor <cgf@cygnus.com>
2768 * Makefile.in: Correctly generate iniparse.h.
2770 Tue Mar 6 19:14:00 2001 Corinna Vinschen <corinna@vinschen.de>
2772 * geturl.cc (get_url_to_file): Add parameter `allow_ftp_auth'.
2773 * geturl.h: Change declaration of `get_url_to_file' accordingly.
2774 * netio.cc (NetIO::NetIO): Add parameter `allow_ftp_auth'.
2775 Set member `ftp_auth'.
2776 (NetIO::open): Add parameter `allow_ftp_auth'. Use it in calls
2777 to constructors of derived classes.
2778 (NetIO::get_ftp_auth): New method.
2779 * netio.h: Change class definition accordingly.
2780 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Add parameter `allow_ftp_auth'.
2781 Take global variables `net_ftp_user' and `net_ftp_passwd' into account.
2782 Add code for ftp authentication retry.
2783 * nio-ftp.h: Change class definition accordingly.
2784 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Add parameter `allow_ftp_auth'.
2785 Add code for ftp authentication retry in case of proxy connection.
2786 * nio-http.h: Change class definition accordingly.
2787 * res.rc: Add FTP authentication dialog.
2788 * resource.h: Add new constants used in res.rc.
2789 * state.h: Add variables `net_ftp_user' and `net_ftp_passwd'.
2791 Sun May 27 17:12:23 2001 Christopher Faylor <cgf@cygnus.com>
2793 * res.rc (IDD_SPLASH): Add a copyright year.
2795 Sun May 27 15:42:18 2001 Christopher Faylor <cgf@cygnus.com>
2797 * Makefile.in: Make iniparse.y produce a c++ file.
2798 * choose.cc (set_existence): Revert 2001-05-27 change.
2799 * ini.cc: Remove "C" from declaration of yyparse.
2800 * iniparse.y (yyparse): Fill out version field by default when a binary
2801 install is detected and no version has been set yet.
2802 * install.cc (do_install): Mount things earlier so that we can use
2803 proper mount table settings. Don't remove mounts since they are now
2805 * mount.cc (create_mount): Reread the mount table after establishing a
2807 (read_mounts): Explicitly clear root_here to allow multiple uses of
2808 this function. Ensure that there is no garbage in the table when we've
2809 exhausted all of the mounts in the registry.
2810 (cygpath): Accomodate ./ in path.
2812 Sun May 27 02:59:07 2001 Christopher Faylor <cgf@cygnus.com>
2814 Use parse_filename method to parse filenames throughout. Use
2815 get_root_dir to retrieve the current root directory throughout. Set
2816 const in argument list, where appropriate, throughout.
2817 * choose.cc (set_existence): Detect case of uninstalled package with no
2819 (parse_filename): New function.
2820 * filemanip.h (fileparse): New structure.
2821 * mount.cc (read_mounts): Remember where we found the root mount.
2822 (set_root_dir): New function.
2823 (get_root_dir): Ditto.
2824 * mount.h: Declare new functions.
2825 * site.cc (get_root_dir_now): Renamed from get_root_dir.
2826 (save_site_url): Use new function name.
2827 (get_initial_list_idx): Ditto.
2829 Sat May 26 21:23:59 2001 Christopher Faylor <cgf@cygnus.com>
2831 * choose.cc: Use a constant throughout to deal with chooser icon
2833 * res.rc (IDD_CHOOSE): Increase size of chooser box.
2835 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
2837 * choose.cc (do_choose): Fix incorrect assignment of trust setting to
2838 use when Redownload or Sources Only selected.
2840 Thu May 10 22:35:59 2001 Christopher Faylor <cgf@cygnus.com>
2842 Reformat file after botched patch formatting.
2843 * choose.cc (which_trust): Eliminate variable.
2844 (default_trust): Don't set which_trust.
2845 (do_choose): Use selected trust when reinstalling or installing source.
2847 Thu May 10 21:04:18 2001 Christopher Faylor <cgf@cygnus.com>
2849 Change concat to cygpath throughout.
2850 Change map_filename to cygpath throughout.
2851 * concat.cc (vconcat): New function.
2852 (concat): Use vconcat.
2853 * concat.h: Reflect above.
2854 * install.cc (map_filename): Eliminate.
2855 (install_one): Free dest_file.
2856 * mount.cc (find2): Expect input key to be pointing to mount record.
2857 (in_table): New function.
2858 (is_admin): Move from root.cc.
2859 (read_mounts): New function.
2860 (path_prefix_p): New function.
2861 (cygpath): New function.
2862 * mount.h: Define new functions and structure.
2863 * root.cc (in_table): Move to mount.cc.
2864 (do_root): Call read_mounts to initialize root stuff and mount table.
2865 * site.cc (get_root_dir): Ditto.
2867 2001-05-09 Matt Hargett <matt@use.net>
2869 * Makefile.in: Remove *.rc from clean.
2871 Tue May 8 23:33:38 2001 Christopher Faylor <cgf@cygnus.com>
2873 * choose.cc (scan2): Fix incorrect setting of TRUST_CURR rather than
2874 TRUST_PREV which produced "0" versions.
2876 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
2878 * resource.h: Add new field IDC_CHOOSE_INST_TEXT. Modify
2879 _APS_NEXT_CONTROL_VALUE to account for addition of
2880 IDC_CHOOSE_INST_TEXT.
2881 * res.rc (IDD_CHOOSE): Modify choose dialog to use new field
2882 IDC_CHOOSE_INST_TEXT for screen text. Modify choose Dialog to allow
2883 hot keys to select Prev, Curr, Exp.
2884 * ini.h: Add new actions for ACTION_REDO and ACTION_SRC_ONLY. Modify
2885 define for LOOP_PACKAGES to include new actions ACTION_REDO and
2887 * choose.cc: Add new Trusts for TRUST_REDO and TRUST_SRC_ONLY.
2888 (paint): Modify to check TRUST_SRC_ONLY when determining Bitmap for
2889 source Checkbox to use.
2890 (build_labels): Add logic to allow for selection of Source only
2891 Download/ReDownload/Install/Reinstall and also to Redownload/Reinstall
2892 current version binary.
2893 (dialog_proc): Add conditional display for file selection prompt based
2894 on download vs install using IDC_CHOOSE_INST_TEXT.
2895 (do_choose): Add new logic for TRUST_REDO and TRUST_SRC_ONLY selection
2896 and modify logic for TRUST_UNINSTALL, TRUST_KEEP, and TRUST_NONE to
2897 handle the instance where Source Download/Install was selected. Modify
2898 log file to store appropriate information regarding Action selected and
2899 the new actions that were added (I.E.: ACTION_REDO and
2901 * download.cc: Add include for <unistd.h> and "port.h".
2902 (download_one): Modify parameter list to include the selected action
2903 for the file to be downloaded. Modify size check against expected size
2904 to include check for ACTION_REDO and ACTION_SRC_ONLY. Modify rename of
2905 .tmp file to also remove the destination file if exists due to ability
2906 to redownload source and binary now.
2907 (do_download): Modify to also use ACTION_REDO and ACTION_SRC_ONLY in
2908 calculation of Download Bytes. Modify to also use ACTION_REDO and
2909 ACTION_SRC_ONLY in determining files selected for download.
2910 * install.cc (uninstall_one): Add check to treat a Reinstall like an
2911 upgrade so current version will be uninstalled prior to reinstall.
2912 (do_install): Add logic to handle ACTION_REDO and ACTION_SRC_ONLY for
2913 uninstalling and installing binary and source packages.
2914 * desktop.cc (make_passwd_group): Modify logic to account for a Source
2915 only cygwin install when checking for cygwin to determine need for
2916 mkpasswd and mkgroup.
2918 Mon May 7 23:33:30 2001 Matt Hargett <matt@use.net>
2920 * winsup/cinstall/res.rc: Added accelerators and improved focus order.
2921 Removed WS_DISABLED from "OK" buttons to accomodate default focus
2922 changes in net.cc and source.cc.
2923 * winsup/cinstall/net.cc (dialog_proc): If no radio button is selected,
2924 a default is selected.
2925 * winsup/cinstall/source.cc (dialog_proc): Ditto.
2926 (check_if_enable_next): Removed. No longer needed since a radio button
2927 will always be selected.
2928 (load_dialog): Removed call to check_if_enable_next.
2929 (dialog_cmd): Ditto. Also added default to switch.
2931 Tue Apr 24 23:42:02 2001 Christopher Faylor <cgf@cygnus.com>
2933 * res.rc: Resize affected text.
2935 Tue Apr 24 23:35:31 2001 Christopher Faylor <cgf@cygnus.com>
2937 * net.cc (do_net): Default to direct download.
2938 * res.rc: Move default selections to the top.
2940 2001-04-18 Earnie Boyd <earnie@users.sourceforge.net>
2942 * win32.h: Remove the definitions for _UNION_NAME and _STRUCT_NAME.
2943 Must now include <windows.h> and not the pieces.
2944 * choose.cc (create_listview): Clean up type mismatch problems.
2945 * dialog.h (NEXT(id)): Ditto.
2946 * geturl.cc (dialog): Ditto.
2947 * install.cc (dialog): Ditto.
2948 * splash.cc (load_dialog): Ditto.
2950 Wed Apr 18 18:59:21 2001 Christopher Faylor <cgf@cygnus.com>
2952 * tar.cc (class gzbz): Define dummy virtual functions.
2954 Wed Apr 18 16:01:21 2001 Christopher Faylor <cgf@cygnus.com>
2956 * Makefile.in: Add bz2 include/library support.
2957 * filemanip.h: New file.
2958 * choose.cc (find_tar_ext): New function. Returns TRUE if .tar.gz or
2960 (scan2): Reorganize to use find_tar_ext, accomodating .bz2 extension.
2961 (read_installed_db): Ditto.
2963 * fromcwd.cc (found_file): Ditto.
2964 (do_fromcwd): Ditto.
2965 * tar.cc (class gzbz): New super class for uncompression support.
2966 (gz): New class for gzip support.
2967 (bz): New class for bzip2 support.
2968 (tar_open): Use gzbz class to control file opening.
2969 (tar_ftell): Ditto for returning position in file.
2970 (skip_file): Ditto for reading file.
2971 (tar_next_file): Ditto.
2972 (tar_read_file): Ditto.
2973 (tar_close): Ditto for close.
2975 * zlib/configure.in: Force NM substitution.
2977 * source.cc (do_source): Default to "Install from Internet".
2979 2001-03-16 Brian Keener <bkeener@thesoftwaresource.com>
2981 * nio-file.cc (NetIO_File::NetIO_File): Use `get_file_size' instead of
2983 * choose.cc (list_click): Correct inability to select source code for
2985 (scan2): Modify to skip source tarballs when scanning disk for
2986 installable packages.
2988 2001-03-10 Chris Abbey <chris_abbey@yahoo.com>
2990 * install.cc: install sources into /usr/src instead
2991 of /, also include the sizes of source tarballs
2993 * download.cc: include sizes of source tarballs in
2994 total_download_bytes.
2996 Tue Mar 6 19:31:00 2000 Corinna Vinschen <corinna@vinschen.com>
2998 * download.cc (get_file_size): Remove `static'.
3000 Tue Mar 6 19:11:00 2000 Corinna Vinschen <corinna@vinschen.com>
3002 * tar.cc (tar_open): Use `get_file_size' instead of `stat'.
3004 2001-03-06 Brian Keener <bkeener@thesoftwaresource.com>
3006 * choose.cc (paint): Modify message for nothing to download vs
3007 nothing to install/update based on installation method.
3008 (list_click): Modify to skip versions in selection process if
3009 installing from local directory and installation file does not exist.
3010 Also leaves Source Action set to N/A if the source file does not exist
3011 and installing from local directory.
3012 (check_existence): New method to check current existence of installation
3013 files based on selected installation method.
3014 (set_existence): New method to set the current existence of installation
3015 files based on selected installation method.
3016 (best_trust): Modify decision process for best trust to base decision on
3017 current trust selected (IE: Prev, Curr, or Test), existence of file and
3018 installation method selected.
3019 (default_trust): Add logic to capture the current trust level and the
3020 trust selected for the given package.
3021 (set_full_list): Expand decision criteria for displaying a package in
3022 the selection list to include file existence/non-existence and selected
3023 installation method.
3024 (build_labels): Modify criteria for label addition to include
3025 installation method and file existence/non-existence.
3026 (create_listview): Modify to establish package trust level for each
3027 package before setting up the display list. Also modification to set
3028 current trust button as the default.
3029 (dialog_cmd): Set response for Prev, Curr, Test button push to perform
3030 a reset of the selection list in addition to setting the default trust.
3031 (get_package_version): New method to provide reusable code for
3032 determining the package version from the file name for a specified
3034 (scan2): Modify to use new method get_package_version and
3035 also enhance handling of the build for the structures package and
3037 (read_installed_db): Modify to use the new method
3038 get_package_version and also enhance handling of the build for the
3039 structures package and extra.
3040 (do_choose): Add additional initialization of package and extra
3041 structures. Modify to use read_installed_db all the time despite
3042 install method. Modify output to setup.log.full log file to increase
3043 readability by adding additional spacing, expanded code and available
3045 * ini.h: Add new fields install_exists, source_exists and
3046 partial_list_display to the structure definition for package.
3047 * res.rc (IDD_CHOOSE): Modify choose dialog Prev, Curr, and Test
3048 pushbuttons by replacing with Radio Buttons thus allowing the
3049 operator to better determine which is selected.
3051 2001-02-20 Brian Keener <bkeener@thesoftwaresource.com>
3053 * download.cc (do_download): Add new variables total_download_bytes and
3054 total_download_bytes_sofar for download progress meter. Add loop
3055 to accumulate the total bytes to download from the selected packages.
3056 * geturl.cc: Add state.h and diskfull.h to include list. Add new
3057 variables gw_iprogress, gw_pprogress, gw_progress_text,
3058 gw_pprogress_text, and gw_iprogress_text to allow for addition of
3059 total packages download progress meter and disk full percent
3060 progress meter. Add variables total_download_bytes and
3061 total_download_bytes_sofar for use by progress meters.
3062 (dialog_proc): Add new variables gw_iprogress, gw_pprogress,
3063 gw_progress_text, gw_pprogress_text, and gw_iprogress_text to
3064 allow for addition of total packages download progress meter and disk
3065 full percent progress meter.
3066 (init_dialog): Ditto.
3068 (get_url_to_file): Ditto.
3069 * geturl.h: Add external definition for total_download_bytes and
3070 total_download_bytes_sofar.
3071 * res.rc: Add two additional progress meters (IDC_DLS_IPROGRESS)
3072 and (IDC_DLS_PPROGRESS) and three text objects (IDC_DLS_PROGRESS_TEXT)
3073 and (IDC_DLS_IPROGRESS_TEXT, IDC_DLS_PPROGRESS_TEXT) for use in the
3075 * resource.h: Add new fields for progress meters and text and update
3076 _APS_NEXT_CONTROL_VALUE.
3078 Wed Feb 21 13:05:00 2000 Corinna Vinschen <vinschen@redhat.com>
3080 * download.cc (get_file_size): Check for INVALID_HANDLE_VALUE instead
3083 Wed Feb 21 11:21:00 2000 Corinna Vinschen <vinschen@redhat.com>
3085 * download.cc (download_one): Add missing parenthesis.
3087 Mon Feb 19 18:59:00 2000 Corinna Vinschen <vinschen@redhat.com>
3089 * download.cc (get_file_size): New function. Eliminates the need
3091 (download_one): Call `get_file_size' instead of `stat'. This
3092 workarounds a problem with mingw's `stat' call.
3094 2001-02-07 Earnie Boyd <earnie@users.sourceforge.net>
3096 * Makefile.in: (%.o: %.rc): Specify --include-dir $(w32api_include).
3097 This is to allow cinstall to build with 2.95.2-7 and to make the
3098 use of headers consistent.
3100 2000-12-26 Earnie Boyd <earnie_boyd@yahoo.com>
3102 * Makefile.in (autoload.o): Add target to specify -fno-inline-functions
3104 Tue Dec 26 03:46:00 2000 Matt Hargett <matt@use.net>
3106 * winsup/cinstall/res.rc: Added accelerators and improved focus
3109 2000-12-10 Egor Duda <deo@logos-m.ru>
3111 * choose.cc (paint): Use system background color for text output.
3113 Sun Dec 10 19:05:25 2000 Christopher Faylor <cgf@cygnus.com>
3115 * Makefile.in: Use CXX for linking and for compiling .cc files.
3116 * configure.in: Find correct c++ compiler.
3117 * configure: Regenerate.
3119 2000-11-17 DJ Delorie <dj@redhat.com>
3121 * splash.cc (load_dialog): Make message more obvious.
3124 Fri Nov 17 17:15:21 2000 Christopher Faylor <cgf@cygnus.com>
3126 * Makefile.in: Use g++ to link so that libstdc++.a gets used. This is
3127 necessary for newer compilers.
3129 Wed Nov 9 2:19:00 2000 Corinna Vinschen <vinschen@redhat.com>
3131 * desktop.cc: Include "ini.h" and "version.h".
3132 (make_passwd_group): Skip the function on 9x/ME boxes when an
3133 older version of Cygwin has been installed which doesn't
3134 support mkpasswd/mkgroup on 9x/ME.
3135 * install.cc: Move the `LOOP_PACKAGES' and `pi' macros to...
3138 Wed Nov 8 17:10:00 2000 Corinna Vinschen <vinschen@redhat.com>
3140 * desktop.cc (make_passwd_group): Don't exit when started
3141 on 9x/ME since mkpasswd/mkgroup are usable on 9x/ME now.
3143 Sun Nov 5 12:51:42 2000 Jason Tishler <jt@dothill.com>
3145 * install.cc (do_install): Add call to set_cygdrive_flags to sync
3147 * mount.cc (set_cygdrive_flags): New function.
3148 (get_cygdrive_flags): Ditto.
3149 (default_cygdrive): Ditto.
3150 (set_cygdrive_flags): Ditto.
3151 * mount.h: Add prototype for set_cygdrive_flags.
3153 2000-10-23 DJ Delorie <dj@redhat.com>
3155 * ini.h: add source actions
3156 * fromcwd.cc: check for available sources
3157 * res.rc: add checkbox bitmaps
3160 * choose.cc: add source column
3161 * download.cc: download sources if called for
3162 * install.cc: [un]install sources too
3164 2000-10-22 DJ Delorie <dj@redhat.com>
3166 * choose.cc (build_labels): Don't skip TRUST_PREV completely; only
3167 ignore it wrt full_list if there's already a version installed.
3168 (do_choose): Sort the list.
3169 (package_sort): New.
3171 2000-10-12 DJ Delorie <dj@redhat.com>
3173 * res.rc: Add more error strings.
3174 * resource.h: Ditto.
3175 * iniparse.y (new_package): re-initialize if needed.
3176 * download.cc (do_download): Keep track of errors; notify and
3178 * install.cc (do_install): Ditto.
3180 2000-10-05 DJ Delorie <dj@redhat.com>
3182 * Makefile.in: fix %.cc rule
3184 2000-10-04 DJ Delorie <dj@redhat.com>
3186 * desktop.cc: quote HOME and USER, don't . ./.profile
3188 * choose.cc (build_labels): don't include in partial list just
3189 because there's a *previous* version available.
3191 * install.cc (do_install): if installing from local directory with
3192 setup.ini and the file isn't found, look in "." also. Note errors.
3194 2000-10-02 DJ Delorie <dj@redhat.com>
3196 * ini.cc (do_ini): save setup.ini locally
3198 2000-10-02 Chris Abbey <cabbey@bresnanlink.net>
3200 * desktop.cc: quote escapes in prompt
3202 2000-10-02 Jason Tishler <jt@dothill.com>
3204 * root.cc (is_admin): New function.
3205 (read_mount_table): Check for administrative priviledges and set
3206 installation scope as appropriate.
3208 2000-09-28 DJ Delorie <dj@redhat.com>
3210 * nio-ftp.cc (ftp_line): handle continuations more robustly
3212 2000-09-14 Brian Keener <bkeener@thesoftwaresource.com>
3214 * res.rc: increased the size of the site dialog (IDD_SITE) & the
3215 corresponding list box to provide for more URL's to be listed.
3216 Modified the position of the Back, Next and Cancel buttons to
3217 correspond to the new size of the dialog.
3219 2000-09-13 DJ Delorie <dj@redhat.com>
3221 * install.cc (do_install): update disk fullness once per package
3222 to improve performance
3224 * choose.cc (create_listview): call ReleaseDC
3226 Mon Sep 11 22:40 2000 Harold L Hunt II <harold@compasstechnologies.com>
3228 * mkdir.cc: Create directories when ERROR_FILE_NOT_FOUND is
3229 returned, as it seems Samba 2.0.6+ returns this instead of
3230 ERROR_PATH_NOT_FOUND
3232 Mon Sep 11 19:35:24 2000 Christopher Faylor <cgf@cygnus.com>
3234 * site.cc (get_initial_list_idx): Don't default to saved URL if it
3237 2000-09-07 DJ Delorie <dj@redhat.com>
3239 * splash.cc: use version.h, not local decl
3240 * res.rc: add "old version" message
3243 * fromcwd.cc (canonicalize_version): make global
3244 * iniparse.y: add setup-version support, fix bug in blank line
3247 * inilex.l: add [exp] as alias for [test], add setup-version
3248 * Makefile.in (version.c): add setup-version tag
3250 * desktop.cc (do_desktop): remove 1.1 version number
3251 (do_desktop_setup): ditto
3253 * ini.cc (do_ini): zero out package list just in case we redo it.
3255 2000-09-07 Jeffrey Juliano <juliano@cs.unc.edu>
3257 * choose.cc (list_click): Check for nindexes==0; if so, return.
3259 2000-09-06 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
3261 * localdir.cc: new, local package directory selection dialog; cd
3262 into selected directory
3263 * Makefile.in (OBJS): add localdir.o
3264 * dialog.h: add prototype for do_local_dir
3265 * main.cc (WinMain): initialize local_dir to cwd; add call to
3267 * net.cc (dialog_cmd): make DO_LOCAL_DIR next dialog
3268 * source.cc (dialog_cmd): ditto
3269 * res.rc: add DO_LOCAL_DIR dialog; remove "current directory" from
3270 presented choices in IDD_SOURCE; add IDS_ERR_CHDIR error string
3271 * resource.h: defines for DO_LOCAL_DIR dialog; define IDS_ERR_CHDIR
3272 * root.cc (dialog_cmd): make DO_LOCAL_DIR previous dialog
3273 * state.h: add local_dir variable
3275 2000-09-06 Brian Keener <bkeener@thesoftwaresource.com>
3277 * desktop.cc: added logic to handle to the new dialog and to
3278 default the setting for the new checkboxes based on whether the
3279 desktop icon or start menu link already exist.
3280 (desktop_icon): correction to desktop directories for desktop icon
3281 creation. Additional logic added for Win95 which does not appear
3282 to have Common Directories so if Common selected and null uses
3284 (start_menu): Additional logic added for Win95 which does not
3285 appear to have Common Directories so if Common selected and null
3286 uses normal directory.
3287 (do_desktop_setup): moved the saving of the icon, creation of the
3288 bat file, profile, passwd, Start Menu link and desktop shortcut to
3289 this method from do_desktop. Made the creation of the desktop
3290 icon and start menu link conditional on settings of new dialog
3291 created for desktop.
3292 * install.cc (do_install): changed next from IDD_S_DESKTOP to
3294 * main.cc (WinMain): changed case IDD_S_DESKTOP to IDD_DESKTOP.
3295 * res.rc: added new resource to create a desktop dialog with 2
3296 checkboxes for creating the desktop icon and start menu link.
3297 * resource.h: changed IDD_S_DESKTOP to IDD_DESKTOP and added two
3298 new controls: IDC_ROOT_MENU and IDC_ROOT_DESKTOP for new dialog.
3299 * state.h: added root_menu and root_desktop for use in dialog.
3301 2000-08-29 DJ Delorie <dj@redhat.com>
3303 * choose.cc (scan_downloaded_files): scan for existing files, so
3304 that the user only sees new downloads.
3306 * nio-ie5.cc (NetIO_IE5): pre-check for wininet.dll, enable dial-up
3307 * site.cc (do_site): if we can't download the mirror list, go back
3308 to the net setup box to choose another transport.
3309 * autoload.c: add more functions
3310 * Makefile.in (ALL_DEP_LDLIBS): remove wininet.a
3311 * resource.h: add WININET message
3313 * net.cc (do_net): no longer default to IE5
3314 * simpsock.h (class SimpleSocket): new, simplify socket operations
3315 * simpsock.cc: ditto
3316 * nio-http.h: new, for direct http protocol
3317 * nio-http.cc: ditto
3318 * nio-ftp.h: new, for direct http protocol
3320 * netio.cc (set_url): move initialization here to handle redirections
3321 (open): add direct http/ftp
3322 * netio.h (NetIO::set_url): new
3324 * log.cc (log_save): create directory for log if needed
3326 * hash.cc, hash.h: new
3327 * Makefile: add hash.o
3328 * choose.cc: enable "uninstall" option
3329 * download.cc: invert action test to accomodate uninstalling
3330 * ini.h: add ACTION_UNINSTALL
3331 * install.cc: add uninstall functionality
3332 * res.rc: make install tag changeable
3333 * resource.h: add uninstall resources
3335 * res.rc: update mirror list URL
3337 2000-08-24 DJ Delorie <dj@redhat.com>
3339 * log.cc, log.h: new files
3340 * Makefile.in (OBJS): add log.o
3341 * tar.cc: use exit_setup instead of exit
3342 * dialog.cc (fatal): use exit_setup instead of ExitProcess
3343 * msg.cc (fatal): ditto
3344 * install.cc (dialog_cmd): ditto
3345 * ini.cc (do_ini): ditto
3346 * main.cc (main): add logging
3347 * source.cc (do_source): ditto
3348 * root.cc (do_source): ditto
3349 * site.cc (do_site): ditto
3350 * other.cc (do_other): ditto
3351 * net.cc (do_net): ditto
3352 * choose.cc (do_choose): ditto
3353 * download.cc (do_download): ditto
3354 * install.cc (do_install): ditto
3355 * msg.cc (fatal): ditto
3357 * res.rc: mark password boxes as *being* password boxes.
3359 * fromcwd.cc (canonicalize_version): use multiple buffers so that multiple
3360 calls won't use the same buffer.
3361 * choose.cc (create_listview): don't default to full list if no changes
3362 (base): return computed value, not temporary :-(
3363 (do_choose): don't use installed.db if we're only downloading.
3365 2000-08-23 DJ Delorie <dj@redhat.com>
3367 * nio-ie5.cc (NetIO_IE5): Fix authentication logic
3368 * nio-ie5.h (flush_io): new
3369 * netio.cc (load_dialog): note when we're initializing the dialog
3370 box, and ignore changes to the edit fields then.
3372 2000-08-21 DJ Delorie <dj@redhat.com>
3376 * fromcwd.cc (found_file): don't remember the canonicalized version
3378 * choose.cc (paint): print "nothing to do" message when list is empty.
3379 (build_labels): Use version "0.0" if no version is available.
3380 (create_listview): default to full list if nothing to install/update.
3381 (base): new, returns basename of file
3382 (read_installed_db): compare base names, not full paths
3384 2000-08-11 DJ Delorie <dj@redhat.com>
3386 * choose.cc: add new chooser dialog
3387 * fromcwd.cc: use IDD_CHOOSE
3388 * ini.cc: use IDD_CHOOSE
3389 * main.cc: use IDD_CHOOSE
3390 * ini.h: cosmetic changes
3391 * res.rc: add choose dialog, bitmaps
3392 * choose-spin.bmp: new
3393 * choose-rtarrow.bmp: new
3394 * resource.h: add choose dialog controls
3396 * mount.cc: remove debug statement
3398 2000-08-08 DJ Delorie <dj@redhat.com>
3400 * Makefile.in (version.c): make version checking more robust
3401 * splash.cc (load_dialog): handle case where there's no version
3403 2000-08-07 DJ Delorie <dj@redhat.com>
3405 * (all): add cvsid tags
3406 * Makefile.in: generate version.c from ChangeLog, add splash.o
3408 * res.rc: add splash screen
3410 2000-08-02 DJ Delorie <dj@redhat.com>
3412 * net.cc: remove proxy password code
3413 * res.rc: remove proxy user/pass from net, add auth dialogs
3414 * netio.cc,h: add sys/proxy auth methods
3415 * nio-ie5: use them, check for http status codes
3416 * state.h: add system authorization
3418 * concat.cc (concat): canonicalize x:// to x:/ (exception to ://
3421 2000-08-02 Norman Vine <nhv@yahoo,com>
3423 * msg.cc (mbox): added MB_TOPMOST to MessageBox type flags
3425 2000-08-01 DJ Delorie <dj@redhat.com>
3427 * postinstall.cc (each): don't rename files we ignore
3428 (do_postinstall): set CYGWINROOT to root_dir, chdir there
3430 * desktop.cc: have /etc/profile call ~/.profile and ~/.bashrc
3432 2000-07-31 DJ Delorie <dj@redhat.com>
3434 * desktop.cc: reverse PATH so /usr/bin precedes /bin
3436 2000-07-18 DJ Delorie <dj@redhat.com>
3438 * autoload.c: new, autoload dlls that might not be available.
3439 * Makefile.in (OBJS): add autoload.o
3441 * res.rc: rewrite root options (text/binary, system/user) to be
3444 * site.cc (get_site_list): trim displayed URL, sort by domain
3446 * net.cc (do_net): make IE5 default to checked, for now
3448 * choose.cc (do_choose): sort packages correctly
3449 * ini.cc (do_ini): handle parse errors more gracefully
3451 (fprintf): line buffer output
3452 (do_ini): if we can't load setup.ini, go back to the site list.
3453 * ini.h: add "unknown" trust level
3454 * inilex.l: absorb unknown trust levels and key/value pairs,
3455 add line number logic
3456 * iniparse.y: handle parse errors more gracefully.
3457 * install.cc: skip packages with no valid install entry
3459 2000-07-17 DJ Delorie <dj@cygnus.com>
3461 * coding standards fixups, many files
3462 * mkdir.cc: warn about deletions *before* deleting them
3464 2000-07-17 Jeff Juliano <juliano@cs.unc.edu>
3466 * res.rc (IDD_OTHER_URL): reorder to give default focus to entry
3468 * other.cc (dialog_cmd): save download site URL
3469 * site.cc (get_root_dir): new
3470 (save_mirror_site): new
3471 (dialog_cmd): save download site URL
3472 (get_site_list): make list big enough to add prev site
3473 (get_initial_list_idx): new, read last-used URL from file and
3474 append it to site_list
3475 (do_site): call get_initial_list_idx
3477 * concat.cc (concat): avoid segfault when first parm is null
3479 2000-07-13 DJ Delorie <dj@cygnus.com>
3481 * postinstall.cc: new
3482 * Makefile.in: add postinstall.o
3483 * concat.h: add backslash ()
3485 * desktop.cc (etc_profile): don't do postinstall
3486 (backslash): moved to concat.cc
3488 (make_postinstall_script): run directly
3489 (do_desktop): chain to do_postinstall
3490 * dialog.h: add exit_msg, do_postinstall
3491 * download.cc: use exit_msg
3493 * main.cc: add postinstall, exit_msg
3494 * resource.h: add postinstall
3495 * README: add more to-do items
3497 2000-07-12 DJ Delorie <dj@cygnus.com>
3499 * desktop.cc: add /etc/postinstall/ support
3500 * install.cc: add more "standard" directories
3502 2000-07-11 DJ Delorie <dj@cygnus.com>
3504 * desktop.cc: create /etc/profile
3505 * desktop.cc: fix include syntax
3506 * Makefile.in: add auto-dependencies
3507 * root.cc: support system vs user
3515 * desktop.cc: make sure we use backslashes, not slashes.
3516 * desktop.cc: don't set PATH in cygwin.bat, create /etc/passwd
3517 * geturl.cc: change math for percentage to avoid overflow
3519 * download.cc: post "download complete" message.
3520 * root.cc: pre-fill in defaults if needed, don't start
3521 browse at root_dir unless it's set.
3522 * desktop.cc: quote $PATH in case it has spaces in it
3524 2000-07-10 DJ Delorie <dj@cygnus.com>
3526 * Makefile.in: add desktop.o and mklink2.o
3527 * dialog.h: add do_desktop
3528 * install.cc: create standard directories, call do_desktop
3529 * res.rc: add cygwin.ico as a file also
3530 * desktop.cc: new, do shortcuts, batch files, and icons
3531 * mklink2.c: new, for COM
3532 * README: update to-do list
3534 2000-07-10 DJ Delorie <dj@cygnus.com>
3536 * ini.cc (do_ini): don't worry about timestamps if we're not
3537 actually installing.
3539 2000-07-09 DJ Delorie <dj@cygnus.com>
3541 * Makefile.in: add -I$(srcdir) for ini.h
3543 2000-07-06 DJ Delorie <dj@cygnus.com>
3545 * Replace everything with a new GUI version
3546 * zlib/gzio.c: add gzctell() for progress displays
3548 2000-06-22 DJ Delorie <dj@cygnus.com>
3550 * setup.c (tarx): re-add call to write_pkg()
3552 2000-06-07 DJ Delorie <dj@cygnus.com>
3554 * cygcalls.c: new, call cygwin1.dll functions directly
3555 * cygcalls.h: header for same
3556 * Makefile.in: add cygcalls.[ch], remove mount/cygpath/umount
3557 exes, fix cinstall.rc dependencies.
3558 * path.c: remove unneeded code
3559 * setup.c: use cygcalls instead of xcreate_process.
3560 uncompress embedded files with zlib
3561 add "-d" for "download only"
3563 postpone mount changes until very end
3564 add download progress indicators
3565 pack multi-column listings more
3566 auto-delete temp files
3567 customize banner message according to options
3568 prompt user for text/binary mounts
3569 add warnings about empty setup directory, root installs, etc
3571 2000-05-24 DJ Delorie <dj@cygnus.com>
3573 * tar.c: New file; built-in tar using zlib.
3574 * tar.h: New file; header for same.
3575 * ctar.c: New file; test program for same.
3576 * Makefile.in: add built-in tar, remove tar.exe and gzip.exe
3577 * path.c (pathcat): convert slashes and canonicalize, instead of aborting
3578 * setup.c (tarx): add support for built-in tar
3579 (main): accept unix-style slashes, check root dir for drive letters,
3580 warn about installing in /, make sure cwd is empty for internet installs,
3581 defer mounts to end of install, support built-in tar.
3583 Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
3585 Fix compiler warnings throughout.
3586 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
3588 * setup.c: Make 'root' global.
3589 (istargz): Return pointer to "stem" of matched .tar.gz file.
3590 (tarx): Special case cygwin-20000301 to == cygwin-1.1.0.tar.gz. Remove
3591 bogus check_for_installed check.
3592 (recurse_dirs): Add preliminary support for .bat file execution.
3593 (create_uninstall): Eliminate unneeded parameter.
3594 (do_start_menu): Ditto.
3596 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
3597 scanning for the version number. Eliminate unneeded argument to
3599 (getdownloadsource): Add 'name' to list of names rather than url.
3600 (main): Eliminate unneeded argument in get_pkg_stuff. Eliminate
3601 unneeded argument in mkmount and do_start_menu.
3603 2000-05-18 DJ Delorie <dj@cygnus.com>
3605 * setup.c (optionprompt): allow multi-column, clean up message
3606 about more options, be more robust about user input.
3607 (getdownloadsource): make the mirror URL a macro.
3608 (main): do mounts after done prompting user.
3610 Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
3612 * setup.c (cleanup): Inverse order of deletion stands a better chance
3613 of deleting cygpath.exe. Still seems to suffer from occasional races,
3615 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
3617 (output_file): Defend against an unlikely handle leak.
3618 (main): Don't set up signal handling until we have something special to
3621 Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
3623 * path.c (kill_cygpath): Delete function.
3624 (exit_cygpath): Make more defensive so that it can be called at any
3626 (cygpath_pipe): Don't set up signal here. Do it in main().
3627 * setup.c (istargz): New function.
3628 (recurse_dirs): Look for *.gz pattern rather than *tar.gz since *tar.gz
3629 inexplicably fails on samba mounted partitions. Use istargz to match
3631 (processdirlisting) Use istargz to match tar.gz tail.
3632 (cleanup): Renamed from filedel.
3633 (cleanup_on_signal): New function. Called on CTRL-C.
3634 (main): Record handle of main thread so that it can be suspended when
3635 CTRL-C occurs. Set up cleanup_on_signal signal handler.
3637 Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
3639 * setup.c (do_start_menu): Don't concatenate paths to already built
3642 Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
3644 * path.c (exit_cygpath): Wait for subprocess to exit before returning.
3645 (cygpath_pipe): Don't call exit_cygpath. Let main atexit routine do
3647 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
3649 * setup.c (filedel): Call exit_cygpath here so that we can be assured
3650 that cygpath subprocess has died. This allows us to delete cygpath.exe
3652 (optionprompt): Initialize response to -1 so that second screen of
3653 mirrors will appear.
3654 (get_pkg_stuff): Don't attempt to use HKCLU. Pass root to init_pkgs.
3655 * setup.h: Reflect init_pkgs prototype change.
3657 Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
3659 * pkg.c (init_pkgs): Accept an argument to control what root registry
3661 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
3662 * setup.h: Reflect init_pkgs prototype change.
3664 Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
3666 * error.c (winerror): Respond to gcc warning.
3667 * path.c (cygpath_pipe): Ditto.
3668 * setup.c (filedel): Call sa_cleanup on deleteme.
3669 (create_shortcut): Coerce argument to eliminate compiler warning.
3670 (tarx): Use installed version of cygwin1.dll, overriding tar file name.
3671 (refmatches): New function. Tests if ref is contained in a list of
3672 packages to install.
3673 (filematches): New function. Tests if filename matches one of a list
3674 of packages to install.
3675 (recurse_dirs): Accept list of packages to install. Generalize tar.gz
3676 test to accomodate _tar.gz.
3677 (prompt): Ensure that stdout is flushed prior to asking for input.
3678 (findhref): Initialize variables to quiet a compiler warning.
3679 (processdirlisting): Accept list of packages to install. Special case
3680 cygwin tar file version number.
3681 (downloaddir): Accept list of packages to install.
3682 (downloadfrom): Ditto.
3683 (create_uninstall): Eliminate unneeded variables. Quote arguments to
3685 (do_start_menu): Don't create uninstall bat file if updating or user
3686 specified a list of packages.
3687 (mkmount): Eliminate unneeded variables.
3688 (get_pkg_stuff): New function. Checks for previous unversioned
3690 (main): Accept -u and -f options and package names on the command line.
3691 Use get_pkg_stuff to initialize package information. Umount /etc.
3692 Call recurse_dirs and downloadfrom with list of package to install.
3693 Ensure that all /usr/local directories are created. Output
3694 installation time to setup.log.
3695 * setup.h: Add some prototypes.
3696 * xsystem.c (xcreate_process): Eliminate unneeded variable.
3698 Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
3700 * setup.c (optionprompt): Don't overlap display of already seen options
3702 (geturl): Print name of site which we're connecting to rather than "ftp
3704 (processdirlisting): Avoid URLs that contain a /. or ./ . Is this
3705 test too simplistic?
3706 (do_start_menu): Use pathcat to build path to <root>\bin to avoid
3707 problems when user chooses x:\ as their root.
3708 (main): For now, default to "non-update" mode. Allow -u option to
3711 Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
3714 * setup.c (tarx): Skip already installed or older packages. Report
3715 when a package has been updated.
3716 (processdirlisting): Skip already installed or older packages.
3717 (main): Detect -f option for forced installation. Initialize pkg stuff
3719 * setup.h: Add pkg definitions.
3721 Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
3723 * setup.c (findhref): Return NULL on empty string. Eat any trailing
3725 (processdirlisting): Attempt to limit recursively processing the same
3728 Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
3730 * setup.c (filedel): New function.
3731 (output_file): Keep track of files extracted from setup.exe for
3732 subsequent deletion.
3733 (tarx): Close process handle of child tar process or suffer handle
3735 (getdownloadsource): Close mirror file so that it can be unlinked.
3736 (processdirlisting): Return total number of files extracted.
3737 (main): Initialize array of files to delete. Ensure that files are
3738 closed on exit. Make the directory that setup.exe is started from ==
3739 the directory where temporary files are placed. Issue an error if no
3740 files were found to download.
3741 * xsystem.c (xcreate_process): Close the thread handle. Close the
3742 process handle if we waited for it to exit.
3744 Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
3746 * setup.c (main): Change version number output.
3748 Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
3750 * setup.c (tarx): Use full path name to tar executable.
3751 (main): Build full pathname to tar executable. Create /usr/local/etc
3754 Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
3756 * setup.c (findhref): Change method for scanning for href= to choose
3757 the last one on the line. This is still not foolproof and probably
3758 will need to be changed eventually. Don't abort if no "size" field is
3760 (processdirlisting): Fix boolean algebra.
3762 Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
3764 * main.c (tarx): Add some code for future task of unmounting
3765 directories encountered in tar file.
3767 Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
3769 * setup.c (findhref): Decode file size, when appropriate.
3770 (needfile): New function. Returns 1 when file should be
3772 (processdirlisting): Always download if file size does not
3773 match. Prompt when download fails for some reason.
3774 (getdownloadsource): Accomodate findhref argument changes.
3776 Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
3778 Throughout, use global session handle rather than reinitializing for
3779 each connect. Don't pass session as an argument to setup.c functions.
3780 * setup.c (geturl): Only issue "Connecting to.." message when using
3781 http or first time for ftp since subsequent connections will be fast.
3782 (processdirlisting): Allocate space for "N" when user has specified
3783 "N"ever option so that it can be subsequently freed.
3784 (main): Abort if we can't get the list of mirrors.
3786 Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
3788 * setup.c (main): Umount /bin and /lib.
3790 Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
3792 * setup.c (main): Create an empty /var/run/utmp.
3794 Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
3796 * Makefile.in: Add umount to list of files to include in setup.exe.
3797 * setup.c (xumount): New function for unmounting directories.
3798 (main): Unmount /usr.
3799 (mkmount): Unmount "unix directory" before trying to figure out where
3800 to create the directory.
3802 Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
3804 * setup.c (mkmount): Use xcreate_process to start mount process,
3806 (main): Don't do buffering on stdout or prompts won't be displayed
3807 correctly if running in a cygwin shell with CYGWIN=tty.
3809 Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
3811 * setup.c (main): Remove the CYGWIN environment variable before
3812 starting any cygwin programs.
3814 Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
3816 * setup.c (geturl): Use alternative method for finding filename part of
3818 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
3819 (downloaddir): Unlink file containing dir listing.
3820 (downloadfrom): Ditto.
3822 Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
3824 * setup.c (main): Disallow running setup.exe from the "root".
3826 Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
3828 Use "warning" function, where appropriate, to output warnings.
3829 * setup.c (warning): New function -- outputs warning to console and log
3831 (tarx): Fix index used to reset file protection.
3832 (main): Open the log file earlier so that more stuff can be sent to it.
3834 Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
3836 * setup.c (processdirlisting): Make "N" option a little less aggressive.
3838 Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
3840 * setup.c (tarx): Wait to after tar has completed to reset protections
3841 or suffer races with tar process.
3843 Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
3845 * Makefile.in: Eliminate duplicate -nostdinc from CFLAGS.
3846 * setup.c (create_uninstall): Create the uninstall .bat file in the
3847 "root" so that we can remove the /bin directory. Add bin\cygwin.bat to
3848 list of files to be deleted. Fix directory detection for determining
3849 when to use 'rmdir'.
3850 (do_start_menu): Add /usr/local/bin to the path.
3851 (main): Add slop to files.array allocation so that we don't have to
3852 worry about reallocating the array when it grows too large when doing
3853 some trivial "pushes". Add /tmp and /usr/local/{bin,lib} to list of
3856 Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
3858 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
3861 Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
3863 * path.c (kill_cygpath): New cleanup function.
3864 (exit_cygpath): New cleanup function.
3865 (cygpath_pipe): New function. Sets up cygpath in the background for
3866 translating filenames.
3867 (pathcvt): Use background cygpath for file translation.
3868 * setup.c (tarx): New function. Called to extract tar files, capture
3869 logging output, and translate it to Windows format.
3870 (recurse_dirs): Use 'tarx' function to extract files.
3871 (create_uninstall): Use file list built up by tarx rather than reading
3873 (mkmount): Add ability to mount root.
3874 (main): Track elapsed install time. Mount root.
3875 * starry.h: Add index field to strarry for tracking of tarx's usage of
3877 * xsystem.c (xcreate_process): Return proces handle when not waiting.
3879 Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
3882 (pathfp): New function. Preliminary work for new -f cygpath
3884 * Makefile.in: Add new file.
3885 (pathcvt): Move to new file.
3889 * setup.c (processdirlisting): Always open file in text mode.
3890 (create_uninstall): Ditto.
3891 (getdownloadsource): Ditto.
3894 Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
3896 * xsystem.c: New file.
3897 * Makefile.in: Accomodate new file.
3898 * setup.c (xsystem): Move to new file.
3899 (recurse_dirs): Accept handle to output log file. Don't use ">"
3900 redirection to trap tar output. Use supplied handle instead.
3901 (create_uninstall): Accept FILE pointer to opened log file. Don't
3902 unlink log file here.
3903 (do_start_menu): Accept FILE pointer to pass to create_uninstall.
3904 (main): Open log file here and pass it to various functions. Unlink
3907 Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
3909 Change occurrences of .usr.bin to .bin throughout.
3910 * setup.c (geturl): Increase number of retries to 20. Let user know
3911 what's going on during long connects.
3912 (processdirlisting): Accept "A"lways and "N"ever as update options.
3913 (create_uninstall): Load cygwin1.dll from the current directory rather
3915 (main): Add some expository text.
3917 Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
3919 * Makefile.in: Change method for compressing cygwin1.dll to avoid
3920 creating a cygwin1.dll in the current directory. Ensure the addition
3921 of -nostdinc to MINGW_CFLAGS.
3923 Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
3925 * Makefile.in: Augment clean target.
3927 Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
3929 * README: Added info about non-working mingw implementation
3930 * gzip.exe.gz: Replace with a version from the same build as the other
3932 * tar.exe.gz: Replace with a version from the same build as the other
3934 * mount.exe.gz: Add to repository until, mingw can build setup.
3935 * cygpath.exe.gz: ditto
3936 * cygwin1.dll.gz: ditto
3937 * setup.c: Overwrite /bin and /lib mounts. Generate working shortcut
3938 for Win9x. Display only a screenfull of options at a time. Call all
3939 tools with an absolute path.
3940 * setup.dsp: Restore the carriage returns, MS Developer Studio needs
3945 Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
3947 * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab
3948 cygwin1.dll from ../cygwin subdirectory.
3949 * gzip.exe.gz: Update.
3950 * tar.exe.gz: Update.
3952 Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
3954 * Makefile.in: Use ZLIB variable as a target.
3956 Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
3958 * Makefile.in: Eliminate traces of cygwinisms. Don't link with
3959 libmsvcrt.a. It's unneeded. Build .rc file on the fly from various
3961 * configure.in: Locate correct objcopy.
3962 * configure: Regenerate.
3964 Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
3966 * Makefile.in: New file.
3967 * configure.in: New file.
3968 * configure: New file.
3969 * zlib/Makefile.am: New file.
3970 * zlib/configure.in: New file.
3971 * zlib/aclocal.m4: New file.
3972 * zlib/acinclude.m4: New file.
3973 * zlib/configure: Regenerate from configure.in.
3974 * zlib/Makefile.in: Regenerate from Makefile.am