1 2002-02-24 Robert Collins <rbtcollins@hotmail.com>
3 * log.cc (log_save): Fix creating /var/log.
4 * packate_meta.cc (standard_dirs): Remove duplicate '/''s.
6 2002-02-24 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
8 * res.rc (STRINGTABLE): Add IDS_CYGWIN_SETUP and
9 IDS_CYGWIN_SETUP_WITH_PROGRESS strings.
10 * resource.h: Add IDS_CYGWIN_SETUP and
11 IDS_CYGWIN_SETUP_WITH_PROGRESS IDs.
13 * splash.cc (OnInit): Qualify SetWindowText() call with global scope
14 operator (::SetWindowText()).
16 * threebar.cc: Run indent.
17 (cistring.h): Add include.
18 (SetText1, SetText2, SetText3): Qualify SetWindowText() call with
19 global scope operator.
20 (SetBar2): Add logic for writing percent complete into window title.
22 * window.h: Run indent.
23 (SetWindowText): New function.
24 (String): Add forward declaration.
25 * window.cc: Run indent.
26 (String++.h): Add include.
27 (SetWindowText): New function.
29 2002-02-24 Robert Collins <rbtcollins@hotmail.com>
31 * README: Update TODO list.
32 * install.cc (install_one): Fix src package location.
33 (do_install_thread): Fix creating directories.
35 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
37 * choose.cc: Include cygpackage.h for scan2 use.
38 (set_existence): Ignore setup.ini mirrors when installing from cwd.
39 (scan2): Process any valid file.
40 Add cache entries when a file matching a setup.ini listed version is found.
41 * filemanip.cc (parse_filename): Remove pkgtar - not used anywhere else.
42 * filemanip.h (filemanip::pkgtar): Remove.
43 * package_meta.cc (CategoryPackage::~CategoryPackage): New method.
44 (packagemeta::~packagemeta): Move from package_meta.h
45 Remove and delete all version and category information.
46 * package_meta.h (CategoryPackage): Create a destructor.
47 (packagemeta::~packagemeta): Move to .cc file.
49 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
51 * install.cc (install_one_source): Make NULL cached package names cause
54 2002-02-18 Michael A Chase <mchase@ix.netcom.com>
56 * desktop.cc (make_passwd_group): Don't create passwd-grp.bat
59 2002-02-18 Michael A Chase <mchase@ix.netcom.com>
61 * log.cc (log_save): Put "\n" at end of log lines instead of "'".
63 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
65 * mount.cc (create_mount): Avoid a const char*->char* warning.
68 2002-02-05 Jason Tishler <jason@tishler.net>
70 * download.cc (do_download_thread): Fix off-by-one error.
72 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
74 * configure.in (CXXFLAGS): Substitute at configure time, not runtime.
75 * configure (CXXFLAGS): Regenerate.
76 * Makefile.in (iniparse.o): Build via default rules - no errors now.
77 * README: TODO list updates.
79 2002-02-19 Michael A Chase <mchase@ix.netcom.com>
81 * String++.cc (String::concat):: Remove.
82 (String::vconcat):: Ditto.
83 * String++.h (String::concat):: Remove.
84 (String::vconcat):: Ditto.
85 * archive_tar.cc: Don't include concat.h.
86 * archive_tar_file.cc: Don't include concat.h.
87 * compress_bz.cc (compress_bz::peek): Don't log unneeded messages.
88 (compress_bz::seek): Ditto.
89 (compress_bz::~compress_bz): Ditto.
90 * compress_gz.cc (compress_gz::peek): Ditto.
91 (compress_gz::error): Ditto.
92 (compress_gz::~compress_gz): Ditto.
93 * concat.cc (vconcat): Remove.
95 * concat.h (vconcat): Remove.
97 * desktop.cc (desktop_icon): Use new cygpath.
98 (make_etc_profile): Ditto.
100 (make_passwd_group): Ditto.
102 (check_desktop): Remove concat use.
103 (check_start_menu): Ditto.
104 * download.cc (download_one): Use new mkpath_p correctly.
106 * fromcwd.cc: Don't include concat.h.
107 * geturl.cc (get_url_to_membuf): Use String log() call.
108 (get_url_to_file): Ditto.
109 * install.cc: Don't include concat.h.
110 (uninstall_one): Use LOG_PLAIN.
111 (replace_one): Ditto.
112 (install_one_source): Ditto.
113 (install_one): More char to String conversion.
114 (do_install_thread): Use new cygpath.
115 Use new create_mount.
116 * io_stream.cc (io_stream::move): Use new log().
117 * io_stream_cygfile (io_stream_cygfile::io_stream_cygfile): Use new cygpath.
118 (io_stream_cygfile::exists): Ditto.
119 (io_stream_cygfile::remove): Ditto.
120 (io_stream_cygfile::mklink): Ditto.
121 (io_stream_cygfile::write): Ditto.
123 (io_stream_cygfile::move): Ditto.
124 * io_stream_file.cc: Don't include log.h.
125 (io_stream_file::write): Don't log unneeded messages.
126 * localdir.cc: Don't include concat.h.
127 (LocalDirPage::OnNext): Use LOG_PLAIN.
128 * log.cc: Don't include log.h.
129 (exit_setup): Use new cygpath.
130 * log.h (log_level): Add new level LOG_PLAIN.
131 * main.cc (WinMain): Use new log().
132 * mount.cc (SLASH_P): New macro from concat.h.
133 (cygpath): Make String version globally visible.
134 Remove varargs version.
136 * msg.cc (mbox): Use LOG_PLAIN.
137 * net.cc (NetPage::OnNext): Ditto.
138 * nio-ftp.cc (ftp_line): Use new log().
139 * nio-http.cc: Don't include log.h.
140 (retry_get): Use alternative url variable.
141 * package_db.cc: Don't include concat.h.
142 (packagedb::flush): Don't use concat.
143 * package_meta.cc: Don't include concat.h.
144 (packagemeta::uninstall): Use new cygpath.
145 * postinstall.cc (do_postinstall): Ditto.
146 * root.cc (RootPage::OnNext): Use LOG_PLAIN.
147 * script.cc: Don't include concat.h.
148 (init_run_script): Use new cygpath.
149 (run_script): More char * to String conversion.
150 (try_run_script): Ditto.
151 * site.cc: Don't include concat.h.
152 (SitePage::OnNext): Use LOG_PLAIN.
153 (SitePage::OnMessageCmd): Use new log().
154 * source.cc (SourcePage::OnDeactivate): Use LOG_PLAIN.
156 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
158 * Makefile.in (OBJS): Add new object.
159 * PickCategoryLine.cc (PickCategoryLine::paint): Print a "+" before the name.
160 * PickCategoryLine.h (PickCategoryLine::bucket): Use the String class.
161 * PickLine.h (Pickline::key): Change to a String to help plug leaks.
162 (PickLine::Pickline): Accept a String for the key.
163 * PickPackageLine.cc (PickPackageLine::paint): Convert all char use to Strings.
164 * PickPackageLine.h (PickPackageLine::PickPackageLine): The key is automatically
166 * PickView.cc (PickView::note_width): Convert all char * use to Strings.
167 (PickView::init_header): Move category length checking out of the inner loop for
169 Convert all char use to Strings.
170 * PickView.h: Include the String++ header.
171 (PickView::note_width): Update the prototype.
172 * String++.cc: New file, implements a reference counting string class.
173 * String++.h: New file, declares a reference counting string class.
174 * archive.cc: Include String++ instead of concat.
175 (archive::extract_file): Convert char * usage to Strings.
176 * archive.h: Inlude the String++ header.
177 (archive::extract_file): Update prototype.
178 (archive::next_file_name): Convert to a String.
179 (archive::linktarget): Ditto.
180 * archive_tar.cc (archive_tar::next_file_name): Convert to String usage.
181 (archive_tar::linktarget): Ditto.
182 * arhive_tar.h: Update the copyright.
183 Explicitly include the relevant headers.
184 (tar_map_result_type): Convert to String usage.
185 (archive_tar::next_file_name): Update prototype.
186 (archive_tar::linktarget): Ditto.
187 * category.cc (Category::Category): Update initialisers.
188 Convert to String usage.
189 (Categorycmp): Update to String usage.
190 * category.h: Include the String++ header.
191 (Category::Category): Update to String usage.
192 (Category::name): Ditto.
193 (Category::key): Ditto.
194 * choose.cc: Remove concat.h, it's not needed.
195 (scan2): Update to String usage.
197 * cygpackage.cc: Update includes for use of String class.
198 (cygpackage::cygpackage): Update for String usage.
199 (cygpackage::set_canonical_version): Ditto.
200 (cygpackage::destroy): Ditto.
201 (cygpackage::getfirstfile): Ditto.
202 (cygpackage::getnextfile): Ditto.
203 (cygpackage::Name): Ditto.
204 (cygpackage::Vendor_version): Ditto.
205 (cygpackage::Package_version): Ditto.
206 (cygpackage::Canonical_version): Ditto.
207 (cygpackage::set_sdesc): Ditto.
208 (cygpackage::set_ldesc): Ditto.
209 * cygpackage.h: Include String++.h for parsing this file.
210 (cygpackage::cygpackage): Update for String usage.
211 (cygpackage::set_canonical_version): Ditto.
212 (cygpackage::destroy): Ditto.
213 (cygpackage::getfirstfile): Ditto.
214 (cygpackage::getnextfile): Ditto.
215 (cygpackage::Name): Ditto.
216 (cygpackage::Vendor_version): Ditto.
217 (cygpackage::Package_version): Ditto.
218 (cygpackage::Canonical_version): Ditto.
219 (cygpackage::set_sdesc): Ditto.
220 (cygpackage::set_ldesc): Ditto.
221 (cygpackage::name): Ditto.
222 (cygpackage::vendor): Ditto.
223 (cygpackage::packagev): Ditto.
224 (cygpackage::canonical): Ditto.
225 (cygpackage::fn): Ditto.
226 (cygpackage::sdesc): Ditto.
227 (cygpackage::ldesc): Ditto.
228 * desktop.cc: Update includes for use of String class.
229 (batname): Update for String usage.
233 (desktop_icon): Ditto.
234 (make_cygwin_bat): Ditto.
235 (make_etc_profile): Ditto.
237 (make_passwd_group): Ditto.
239 (check_desktop): Ditto.
240 (check_startmenu): Ditto.
241 * dialog.cc (eget): Update for String usage.
242 (egetString): New function.
243 (eset): New variant for Strings.
244 * dialog.h: Include String++.h for parsing this file.
245 (egetString): New function.
246 (eset): New variant for Strings.
247 * diskfull.cc (diskfull): Update for String usage.
248 * diskfull.h: Include String++.h for parsing this file.
249 (diskfull): Update for String usage.
250 * download.cc: Update includes for use of String class.
251 (check_for_cached): Update for String usage.
252 (download_one): Ditto.
253 * filemanip.cc (get_file_size): Ditto.
255 (parse_filename): Ditto.
257 * filemanip.h: Include String++.h for parsing this file.
258 (fileparse): Update for String usage.
260 (parse_filename): Ditto.
261 Don't consider '_' to be a separator.
263 * find.cc: Update includes for use of String class.
264 (find_sub): Make more flexible.
265 (find): Update for String usage.
266 * find.h (find): Use Strings.
267 * fromcwd.cc (found_file): Update for String usage.
269 (init_dialog): Ditto.
270 (get_url_to_membuf): Ditto.
271 (get_url_to_string): Ditto.
272 (get_url_to_file): Ditto.
274 (get_url_to_membuf): Ditto.
275 (get_url_to_string): Ditto.
276 (get_url_to_file): Ditto.
278 (add_subdirs): Ditto.
279 * ini.cc: Update includes for String usage.
280 (find_routine): Update for String usage.
281 (do_remote_ini): Ditto.
282 (do_ini_thread): Ditto.
283 * ini.h (ini_init): Ditto.
284 * inilex.l: Update includes for String usage.
285 (ini_init): Update for String usage.
287 (add_correct_version): Ditto.
288 * install.cc: Update includes for String usage.
289 (install_one_source): Update for String usage.
290 (uninstall_one): Ditto.
291 (replace_one): Ditto.
292 (install_one_source): Ditto.
293 (do_install_thread): Ditto.
294 * io_stream.cc: Update includes for String usage.
295 (io_stream::open): Update for String usage.
296 (io_stream::mkpath_p): Ditto.
297 (io_stream::remove): Ditto.
298 (io_stream::mklink): Ditto.
299 (io_stream::move_copy): Ditto.
300 (io_stream::move): Ditto.
301 (io_stream::exists): Ditto.
302 * io_stream.h: Update includes to allow correct parsing.
303 (io_stream::open): Update for String usage.
304 (io_stream::mkpath_p): Ditto.
305 (io_stream::remove): Ditto.
306 (io_stream::mklink): Ditto.
307 (io_stream::move_copy): Ditto.
308 (io_stream::move): Ditto.
309 (io_stream::exists): Ditto.
310 * io_stream_cygfile.cc: Update includes for String usage.
311 (get_root_dir_now): Update for String usage.
312 (io_stream_cygfile::io_stream_cygfile): Ditto.
313 (io_stream_cygfile::~io_stream_cygfile): Ditto.
314 (io_stream_cygfile::exists): Ditto.
315 (io_stream_cygfile::remove): Ditto.
316 (io_stream_cygfile::mklink): Ditto.
318 (io_stream_cygfile::set_mtime): Ditto.
319 (io_stream_cygfile::move): Ditto.
320 (io_stream_cygfile::get_size): Ditto.
321 * io_stream_cygfile.h: Update includes for String usage.
322 (io_stream_cygfile::io_stream_cygfile): Update for String usage.
323 (io_stream_cygfile::~io_stream_cygfile): Ditto.
324 (io_stream_cygfile::exists): Ditto.
325 (io_stream_cygfile::remove): Ditto.
326 (io_stream_cygfile::mklink): Ditto.
328 (io_stream_cygfile::set_mtime): Ditto.
329 (io_stream_cygfile::move): Ditto.
330 (io_stream_cygfile::get_size): Ditto.
331 (io_stream_cygfile::fname): Ditto.
332 (io_stream_cygfile::lmode): Ditto.
333 * io_stream_file.cc: Update includes for String usage.
334 (io_stream_file::io_stream_file): Update for String usage.
335 (io_stream_file::~io_stream_file): Ditto.
336 (io_stream_file::exists): Ditto.
337 (io_stream_file::remove): Ditto.
338 (io_stream_file::mklink): Ditto.
339 (io_stream_file::set_mtime): Ditto.
340 (io_stream_file::move): Ditto.
341 (io_stream_file::get_size): Ditto.
342 * io_stream_file.h: Update includes for String usage.
343 * io_stream_file.cc: Update includes for String usage.
344 (io_stream_file::io_stream_file): Update for String usage.
345 (io_stream_file::~io_stream_file): Ditto.
346 (io_stream_file::exists): Ditto.
347 (io_stream_file::remove): Ditto.
348 (io_stream_file::mklink): Ditto.
349 (io_stream_file::set_mtime): Ditto.
350 (io_stream_file::move): Ditto.
351 (io_stream_file::get_size): Ditto.
352 (io_stream_file::fname): Ditto.
353 (io_stream_file::lmode): Ditto.
354 * localdir.cc: Update includes for String usage.
355 (save_local_dir): Update for String usage.
356 (check_if_enable_next): Ditto.
357 (load_dialog): Ditto.
359 (LocalDirPage::OnInit): Ditto.
360 (LocalDirPage::OnNext): Ditto.
361 * log.cc: Update includes for String usage.
362 (struct LogEnt): Update for String usage.
366 * log.h: Update includes for String usage.
367 (log_level): Update for String usage.
370 * main.cc (WinMain): Update for String usage.
371 * mklink2.c (make_link_2): Update for String usage.
372 * mklink2.h (make_link_2): Update for String usage.
373 * mount.cc: Update includes for String usage.
374 (mount_table): Update for String usage.
376 (create_mount): Ditto.
378 (remove_mount): Ditto.
379 (read_mounts): Ditto.
380 (set_root_dir): Ditto.
381 (get_root_dir): Ditto.
382 (path_prefix_p): Ditto.
384 * mount.h: Update includes for String usage.
385 (create_mount): Update for String usage.
386 (remove_mount): Ditto.
388 (set_root_dir): Ditto.
389 (get_root_dir): Ditto.
390 * msg.cc (mbox): Ditto.
391 * net.cc (NetPage::OnNext): Ditto.
392 * package_db.cc (packagedb::flush): Ditto.
393 (packagedb::packages): Ditto.
394 (packagedb::categories): Ditto.
395 * package_db.h: Update includes for String usage.
396 (packagedb::packages): Update for String usage.
397 (packagedb::categories): Ditto.
398 * package_meta.cc: Update includes for String usage.
399 (hash::add_subdirs): Update for String usage.
400 (packagemeta::uninstall): Ditto.
401 (packagemeta::SDesc): Ditto.
402 (packagemeta::action_caption): Ditto.
403 * package_meta.h: Update includes for String usage.
404 (packagemeta::packagemeta): Update for String usage.
405 (packagemeta::~packagemeta): Ditto.
406 (packagemeta::uninstall): Ditto.
407 (packagemeta::SDesc): Ditto.
408 (packagemeta::action_caption): Ditto.
409 (package_source.cc site::site): Ditto.
410 (packagesource::set_canonical): Ditto.
411 (packagesource::set_cached): Ditto.
412 * package_source.h: Update includes for String usage.
413 (site::site): Update for String usage.
414 (packagesource::set_canonical): Ditto.
415 (packagesource::set_cached): Ditto.
416 (packagesource::packagesource): Ditto.
417 (packagesource::sites): Ditto.
418 (packagesource::cached): Ditto.
419 * package_version.h: Update includes for String usage.
420 (Dependency): Update for String usage.
421 (packageversion): Ditto.
422 * postinstall.cc: Update includes for String usage.
423 (do_postinstall): Update for String usage.
424 * res.rc (IDD_LOCAL_DIR): Fix typo again!
425 * rfc1738.cc (rfc1738_escape_part): Update for String usage.
426 * rfc1738.h: Update includes for String usage.
427 (rfc1738_escape_part): Update for String usage.
428 * root.cc: Update includes for String usage.
429 (check_if_enable_next): Update for String usage.
430 (save_dialog): Ditto.
432 (directory_is_absolute): Ditto.
433 (directory_is_rootdir): Ditto.
434 (directory_has_spaces): Ditto.
435 (RootPage::OnInit): Ditto.
436 (RootPage::OnNext): Ditto.
437 * script.cc: Update includes for String usage.
438 (init_run_script): Update for String usage.
441 (try_run_script): Ditto.
442 * script.h: Update includes for String usage.
443 (run_script): Update for String usage.
444 (try_run_script): Ditto.
445 * site.cc site_list): Ditto.
446 (all_site_list): Ditto.
447 (other_url): Eliminate.
448 (site_list_type::init): Update for String usage.
449 (site_list_type::site_list_type): Ditto.
450 (get_site_list): Ditto.
451 (get_saved_sites): Ditto.
452 (do_download_site_info_thread): Ditto.
453 (SitePage::OnNext): Ditto.
454 (SitePage::OnActivate): Ditto.
455 (SitePage::PopulateListBox): Ditto.
456 (SitePage::OnMessageCmd): Handle empty url's.
457 * site.h: Update includes for String usage.
458 (site_list_type::site_list_type): Update for String usage.
459 (site_list_type::init): Ditto.
460 (site_list_type::~site_list_type): Ditto.
461 (site_list_type::url): Ditto.
462 (site_list_type::displayed_url): Ditto.
463 (site_list_type::key): Ditto.
464 * source.cc (SourcePage::OnDeactivate): Ditto.
465 * state.h: Update includes for String usage.
466 (local_dir): Update for String usage.
467 (trust_level): Remove.
468 * version.cc: Update includes for String usage.
469 (canonicalize_version): Update for String usage.
470 * version.h: Update includes for String usage.
471 (canonicalize_version): Update for String usage.
473 2002-02-15 Christopher Faylor <cgf@redhat.com>
475 * filemanip.c (parse_filename): Revert previous change.
477 2002-02-14 Christopher Faylor <cgf@redhat.com>
479 * filemanip.c (parse_filename): Don't treat '_' as a version number
482 2002-01-29 Christopher Faylor <cgf@redhat.com>
484 * configure: Regenerate.
486 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
488 * res.rc (IDD_LOCAL_DIR): Fix typo reported by Rene
489 <Hoeck@extern.lrz-muenchen.de>
491 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
493 * README: Update Todo's.
494 * list.h: Run indent.
495 (list): New methods checksize and insert to reduce code duplication.
496 (list::registerbykey): Use them.
497 (list::registerbyobject): Ditto.
498 (list::removebyindex): Copy each object individually - safe for non
500 (list::checksize): Implement.
501 (list::insert): Implement.
503 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
505 * Makefile.in: Remove the dlmalloc object by default.
506 * install.cc (do_install_thread): Remove the mallinfo call for 'working
507 around' the crashing issue.
508 * package_db.h: Include <string.h> - it's needed to parse this.
509 * package_source.cc (site::site): Move here from the header file.
510 * package_source.h (site): Stop the constructor being inlinable.
512 2002-01-26 Robert Collins <rbtcollins@hotmail.com>
514 * filemanip.cc (find_tar_ext): Add a descriptive comment.
516 2002-01-25 Michael A Chase <mchase@ix.netcom.com>
518 * filemanip.cc (find_tar_ext): Clean up tests for .tar.gz and .tar.
519 * fromcwd.cc (do_fromcwd): Expand FIXME comment in source file check.
520 * install.cc (install_one_source): Add space between words in log()
523 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
525 * log.cc (exit_setup): When saving to the download dir, explicity
528 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
530 * archive.cc (extract_file): Separate out the prefix and the URL
532 * archive.h (archive::extract_file): Ditto.
533 * install.cc (install_one_source): Ditto. Use the new
534 archive::extract_file syntax.
535 (replace_one): Use the new syntax.
536 (io_stream.cc): Add some log info for links.
538 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
540 * PickCategoryLine.cc (PickCategoryLine::actiontext): Remove.
541 (PickCategoryLine::paint): Use the new action method.
542 (PickCategoryLine::click): Set the action for all children.
543 (PickCategoryLine::set_action): New method.
544 * PickCategoryLine.h (PickCategoryLine::-actions): Remove.
545 (PickCategoryLine::current_default): Use packagemeta _actions class.
546 * PickLine.h (PickLine::set_action): New abstract method that requires
547 including package_meta.h.
548 * PickPackageLine.cc (PickPackageLine::set_action): New method.
549 * PickPackageLine.h (PickPackageLine::set_action): Declare this.
550 * list.h (getbykey): A const correctness fix.
551 * package_meta.cc: Run indent.
552 (packagemeta::Default_action): New const.
553 (packagemeta::Install_action): Ditto.
554 (packagemeta::Reinstall_action): Ditto.
555 (packagemeta::Uninstall_action): Ditto.
556 (packagemeta::_actions::caption): New method.
557 (packagemeta::_actions::operator++): Ditto.
558 (packagemeta::set_action): New overload.
559 * package_meta.h (packagemeta::_actions): New class.
560 (packagemeta::set_action): Declare this.
562 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
564 * Makefile.in (OBJS): Remove supp.o - it appears accidental.
565 * choose.cc: Don't define alloca anymore, it's done in win32.h
567 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
569 * PickPackageLine.cc: New file.
570 * PickPackageLine.h: New file.
571 * PickLine.cc: New file.
572 * PickLine.h: New file.
573 * PickCategoryLine.cc: New file.
574 * PickCategoryLine.h: New file.
575 * PickView.cc: New file.
576 * PickView.h: New file.
577 * Makefile.in: Add new objects to setup.exe.
578 Backout -fno-exceptions option.
579 * choose.cc: Include PickView.h.
580 Remove view related defines and static variables.
581 (_pkg_headers): Moved to PickView.cc.
582 (_cat_headers): Ditto.
583 (view::views::Unknown): Ditto.
584 (view::views::PackageFull):
585 (view::views::Package):
586 (view::views::Category):
587 (pkgtrustp): Moved to package_meta.cc.
588 (add_required): Moved to package_meta.cc.
589 (pick_category_line::empty): Moved to PickCategoryLine.cc
590 (paint): Adjust for moved static variables.
591 (view::scroll): Moved to PickView.cc.
592 (list_vscroll): Adjust for moved static variables.
593 (list_hscroll): Ditto.
595 (note_width): Moved to PickView.cc.
597 (view::set_view_mode): Ditto.
598 (view::mode_caption): Ditto.
599 (view::views::caption): Ditto.
600 (view::set_headers): Ditto.
601 (DoInsertItem): Ditto.
602 (view::init_headers): Ditto.
603 (view::insert_pkg): Ditto.
604 (view::insert_category): Ditto.
605 (view::clear_view): Ditto.
606 (view::views::operator++): Ditto.
607 (view::click): Ditto.
608 (default_trust): Adjust for moved statics.
609 (pick_pkg_line::paint): Moved to PickPackageLine.cc.
610 (pick_pkg_line::click): Ditto.
611 (pick_category_line::actiontext): Moved to PickCategoryLine.cc
612 (pick_category_line::paint): Ditto.
613 (pick_category_line::click): Ditto.
614 (set_view_mode): Adjust for moved statics.
615 (create_listview): Ditto.
616 * choose.h: Remove Category and packagemeta forward defines - not needed.
617 Don't include unneeded headers list and package_meta.
618 (_header): Move to PickView.h.
619 (pick_line): Move to PickLine.h.
620 (pick_pkg_line): Move to PickPackageLine.h.
621 (pick_category_line): Move to PickCategoryLine.h.
622 (view): Move to PickView.h.
623 * ini.h (trusts): Move to package_meta.h.
624 * package_meta.h (trusts): New enum.
625 (packagemeta::set_requirements): New helper method.
626 (packagemeta::trustp): Ditto.
628 2002-01-21 Christopher Faylor <cgf@redhat.com>
630 * choose.h (view): Move forward declaration of views into public area
631 or g++ v3 will complain.
633 2002-01-21 Christopher Faylor <cgf@redhat.com>
635 * Makefile.in (CXXFLAGS): Add -fno-exceptions.
636 * win32.h (alloca): Define as __builtin_alloca.
637 * io_stream_memory.cc: Add include file.
639 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
641 * archive_tar.cc (archive_tar::~archive_tar): Mark the stream as destroyed.
642 * archive_tar_file.cc (archive_tar_file::~archive_tar_file): Ditto.
643 * compress.cc (compress::~compress): Be less verbose.
644 * compress_bz.cc (compress_bz::~compress_bz): Ditto.
645 Mark the stream as destroyed.
646 * compress_gz.cc (compress_gz::~compress_gz): Mark the stream as destroyed.
647 * io_stream.cc (io_stream::~io_stream): Only warn when the stream is not marked
649 * io_stream_cygfile.cc (io_stream_cygfile::~io_stream_cygfile): Mark the
651 * io_stream_file.cc (io_stream_file::~io_stream_file): Ditto.
652 * io_stream_memory.cc (io_stream_memory::~io_stream_memory): Ditto.
654 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
656 * Makefile.in (CFLAGS): Allow customisable malloc debug flags.
657 (OBJS): Link in malloc objects.
658 * category.cc (category): Use new char, not strdup.
659 * choose.cc (pick_pkg_line::paint): Allow for the regionsize to shrink.
660 (do_choose): Use new char, not malloc.
661 * concat.cc (vconcat): Ditto.
662 * cygpackage.cc (cygpackage): Use new char, not strdup.
663 (set_canonical_version): Ditto.
664 (cygpackage::destroy): Use delete[], not free.
665 * desktop.cc (uexists): Ditto.
666 * dialog.cc (egest): Use new char, not strdup.
667 * dlmalloc.c: New file - Doug Lea's malloc 2.7.0
668 * hash.cc (hash::hash): Use delete instead of free.
669 (hash::add): Use new char, not strdup.
670 * ini.cc (do_remote_ini): Use delete[] not free.
671 * inilex.l: Use new char, not strdup.
674 Use a local package_db rather than a static one.
675 * install.cc (struct mallinfo): Workaround an apparent dlmalloc bug.
676 (do_install_thread): Call mallinfo to force a consistency check. Appears
677 to fix a 'inuse' error in -DDEBUG builds.
678 Use delete[] for strings.
679 * io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile): Use new char,
681 (io_stream_cygfile::~io_stream_cygfile): Use delete[], not free.
682 (io_stream_cygfile::remove): Use new char, not strdup.
683 * io_stream_file.cc (io_stream_file::io_stream_file): Use new char, not strdup.
684 (io_stream_file::io_stream_file): Use delete[], not free.
685 (io_stream_file::remove): Use new char, not strdup.
686 * io_stream_memory.cc (memblock::~memblock): Use delete[], not free.
687 * io_stream_memory.h (memblock): Use new char, not malloc.
688 * localdir.cc (LocalDirPage::OnInit): Use new char, not strdup.
689 * main.cc (WinMain): Use new char, not strdup.
690 * mount.cc (find2): Use new char, not malloc.
691 (read_mounts): Ditto.
692 (cygpath): Use new char, not strdup.
693 * netio.cc (NetIO::~NetIO): Use delete[], not free.
694 (NetIO::set_url): Use new char, not strdup.
695 (NetIO::get_ftp_auth): Use delete[], not free.
696 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
697 Use new char instead of strdup.
698 * nio-http.cc (base64_encode): Use new char, not malloc.
699 * package_meta.cc (hash::add_subdirs): Use new char instead of strdup.
700 * package_source.h (~ packagesource): Use delete[] instead of delete.
701 * port.h (strdup): Deprecate the use of strdup.
702 * rfc1738.cc (rfc1738_do_escape): Use new char, not calloc.
703 * script.cc (init_run_script): Us delete[], not free.
705 * simpsock.cc (SimpleSocket::fill): Use new char, not malloc.
706 (SimpleSocket::invalidate): Use delete[], not free.
707 * site.cc (site_list_type::init): Use new char instead of strdup.
708 * site.h (~site_list_type): Use delete[], not free.
710 2002-01-20 Robert Collins <rbtcollins@hotmail.com>
712 * Makefile.in (OBJS): Add win32.o - win32 support functions.
713 * README: Update todos.
714 * archive.cc (extract_file): Support a suffix for appending to extracted files.
716 * choose.cc (set_view_mode): Use the new view::views class.
717 (view::views::Unknown): New static for defaulting view::views variables.
718 (view::views::PackageFull): New static for the current view.
719 (view::views::Package): Ditto.
720 (view::views::Category): Ditto.
721 (topbucket::paint): Remove.
722 (topbucket::empty): Rename to pick_category_line::empty.
723 (topbucket::~topbucket): Remove.
724 (paint): Use the new view::views class.
725 Don't paint 'all' as a category when showing package categoies.
726 (pick_category_line::actiontext): New method.
727 (pick_category_line::paint): Make showing the category optional, and show the
729 (pick_category_line::click): Make showing the category optional, and
730 differentiate between the name being clicked, and the action description.
731 (view::view): Use the new view::views class.
732 (view::set_view_mode): Ditto.
733 (view::mode_caption): Ditto.
734 (view::views::caption): New method.
735 (view::set_headers): Use the new view::views class.
736 (view::clear_view): Ditto.
737 (viewsplusplus): Replaced by
738 (view::views::operator++): New operator.
739 (set_view_mode): Use the new view::views class.
740 (create_listview): Ditto.
742 * choose.h (actions): Remove.
744 (pick_line): Add a new convenience constructor.
745 (top_bucket): Remove.
746 (pick_category_line): Reparent under pick_line, and adsorb top_bucket.
747 (view::views): New class.
748 * ini.h: Don't include choose.h
749 (is_download_action): Remove.
750 (is_upgrade_action): Remove.
751 (is_uninstall_action): Remove.
752 (is_full_action): Remove.
753 * install.cc (num_replacements): New static.
754 (rebootneeded): Ditto.
755 (replace_one): Handle upgrades separate from removal or new installs.
756 (install_one_source): Handle in use files.
757 (install_one): Don't repeat upgrades.
758 (do_install_thread): Initialize new statics.
759 Order actions as uninstall, replace, install.
760 Warn about rebooting if needed.
761 * res.rc (IDS_REBOOT_REQUIRED): New string.
762 * resource.h (IDS_REBOOT_REQUIRED): Give value.
763 * win32.h: Declare class Win32, and update copyright and intent message.
764 * win32.cc: New file.
766 2002-01-15 Corinna Vinschen <corinna@vinschen.de>
768 * io_stream.cc (io_stream::gets): Eliminate trailing new line chars.
769 * package_meta.cc (packagemeta::uninstall): Check for additional
770 Windows shortcut. Unset R/O file attribute before trying to delete
773 2002-01-09 Robert Collins <rbtcollins@hotmail.com>
775 * choose.cc (pkgtrustp): Fall back to installed if a package is not present in
776 the current trust level. For prev, fall back via curr.
777 (set_existence): Allow sources with no sites, but cached files to be
779 (pick_category_line::paint): Start drawing clickable categories.
780 * fromcwd.cc (found_file): Reinstate local file scanning.
782 2002-01-07 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
784 * fromcwd.cc: Run indent.
785 (do_fromcwd): Reverse sense of comment. Set next_dialog
786 to IDD_CHOOSER instead of IDD_CHOOSE.
787 * ini.cc (find_routine): Remove "/" from "/setup.ini".
789 2001-01-07 Robert Collins <rbtcollins@hotmail.com>
791 * category.cc (Categorycmp): Add a const safe version.
792 * category.h (Categorycmp): Add a const safe version.
793 (Category): Add operator ==.
794 * choose.cc (fill_missing_category): Add every package to "All".
795 (pick_category_line::paint): Add support for hidden labels, and a tree depth.
796 (pick_category_line::click): Ditto.
797 (view::view): Pass in a top level category to use.
798 (view::insert_pkg): Special case - skip category "All".
799 (view::insert_category): Ditto.
800 (view::clear_view): Set the contents label state.
801 (create_listview): Pass in a top level category to view().
802 * choose.h (topbucket): Make bucket available to derived classes.
803 (pick_category_line): Add support for hidden labels, and a tree depth.
804 Remove our second copy of bucket.
805 (view): Pass in a top level category to the constructor.
806 Use pick_category_line to allow three level display.
808 2001-01-06 Robert Collins <rbtcollins@hotmail.com>
810 * cygpackage.h (cygpackage): Make set_[s|l]desc virtual.
811 * iniparse.y (add_correct_version): Copy descriptions across.
812 * package_meta.cc (SDesc): Iterate through versions, return the first with a
814 * package_version.h (packageversion): Add new virtuals set_[l|s]desc.
816 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
818 * script.cc (run_script): Change cygpath:// to cygfile://.
819 * install.cc (do_install_thread): Fix off-by-one errors.
821 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
823 * package_db.cc (packagedb::flush): Fix an off-by-one error.
825 2002-01-04 Jan Nieuwenhuizen <janneke@gnu.org>
827 * Makefile.in (realclean): more clean.
828 (OBJS): Add script.o.
829 * postinstall.cc (run_script_in_etc_postinstall): New function.
830 (do_postinstall): Split off new funtion init_run_script ().
833 (run_script): Move to script.cc. Replace some deprecated remove
836 * script.cc: New file.
837 * Forward port cygwin-20010707.jcn3.patch.
838 * package_meta.cc (uninstall): Run pre- and postremove scripts.
839 * install.cc: Typo fix.
840 (do_install): Run script initialisation.
842 2001-01-04 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
844 * cistring.cc: Run d2u.
845 * cistring.h: Run d2u.
847 * desktop.cc (etc_profile): Remove "test -f ./.bashrc && . ./.bashrc"
848 from the generated /etc/profile. Bash will source this file
849 automatically, and having this here merely results in .bashrc being
850 executed twice. Run d2u.
851 * desktop.h: Run d2u.
853 * propsheet.cc: Run d2u.
854 (PropSheetProc): New function. Add minimize box here instead of in
855 PropertyPage::DialogProc.
856 (PropSheet::Create): Change to use creation callback PropSheetProc.
857 (DLGTEMPLATEEX): Add 'hidden' Windows struct definition.
859 * propsheet.h: Run indent, d2u.
860 * proppage.h: Run indent, d2u.
862 * proppage.cc: Run d2u.
863 (PropertyPage::DialogProc): Remove minimize-box-adding
864 functionality. Remove commented-out "PropSheet_SetWizButtons" calls.
865 Add support for calling virtual OnMessageCmd. Add setting of fonts in
866 WM_INITDIALOG handler.
867 (resource.h): New include for resource IDs.
869 * res.rc: Resize and rearrange property page dialog templates
870 to bring them in line with "Microsoft's Backward Compatible Wizard 97"
871 specification. Run d2u.
872 (IDD_SITE): Add an edit control and an "Add" button in order to
873 combine the IDD_SITE and IDD_OTHER_URL functionality onto one page.
874 (IDD_OTHER_URL): Remove dialog template.
875 (IDD_DLSTATUS): Remove dialog template.
878 (SitePage::OnBack): Remove NEXT() macro invocation.
879 (SitePage::OnActivate): New member function.
880 (load_dialog): Remove. Functionality subsumed into
881 SitePage::OnActivate.
882 (save_dialog): Change to support both list and user URLs. Remove
883 OTHER_IDX and mirror_idx logic.
884 (SitePage::PopulateListBox): New member function.
885 (SitePage::CheckControlsAndDisableAccordingly): New member function.
886 (SitePage::OnMessageCmd): New override.
887 (check_if_enable_next): Remove.
888 (dialog_cmd): Remove.
889 (do_download_site_info_thread): Remove calls to NEXT() macro.
890 (SitePage::Create): Call the single-param PropertyPage::Create
892 (other_url): New static taken from other.cc.
893 (SitePage::OnNext): Remove mirror_idx logic.
894 (SitePage::OnInit): Remove "Other URL" entry from list box. Remove
895 list box populating code, now handled in SitePage::PopulateListBox.
896 (mirror_idx, NO_IDX, OTHER_IDX): Remove.
897 (save_site_url): Fix potential buffer overflow problem. Switched to
898 TCHAR in grossly premature preparation for multilingual support.
900 (SitePage::OnActivate): New member function.
901 (SitePage::CheckControlsAndDisableAccordingly) New member.
902 (SitePage::OnMessageCmd): New override.
903 (do_download_site_info_thread): Add MessageBox call on failure to
906 * splash.cc: Run d2u.
907 (SplashPage::OnInit): Set the font for the title.
910 * threebar.cc: Run d2u.
911 * threebar.h: Run d2u.
914 (Window::IsButtonChecked): New member function declaration.
915 (Window::OnMessageCmd): New member function.
916 (Window::SetDlgItemFont): New member function declaration.
917 (Window::MAXFONTS, Window::Fonts, Window::FontCounter): New data
919 * window.cc: Run d2u.
920 (Window::IsButtonChecked): New member function definition.
921 (Window::SetDlgItemFont): New member function definition.
922 (Window::Window): Add initialization for FontCounter.
923 (Window::~Window): Delete any fonts we created.
925 * geturl.cc: Run d2u.
926 (progress): Remove the "3" field width from the "%3d"
927 percent-complete format indicator. Causes line to not start at
928 beginning of text box, and does little to help with "jumping", since
929 the "bytes downloaded so far" field is variable-width anyway. Change
930 kb/s format field to "%03.1" to 0-pad the kb/s number in the event of
931 painfully slow connections, or temporary slowdowns in faster
932 connections should such more-instantaneous functionality become
936 (NetPage::OnMessageCmd): New member function declaration.
937 (NetPage::CheckIfEnableNext): New member function declaration.
939 (NetPage::OnMessageCmd): New member function definition.
940 (dialog_cmd): Remove, subsumed into NetPage::OnMessageCmd.
941 (check_if_enable_next): Remove.
942 (NetPage::CheckIfEnableNext): New member function, subsumes
943 check_if_enable_next.
944 (propsheet.h): Add include.
945 (NetPage::Init): Add call to CheckIfEnableNext.
946 (load_dialog): Remove call to check_if_enable_next.
947 (NetPage::Create): Call single-template-ID-parameter overload of
948 PropertyPage::Create instead of three-parameter one.
950 * Makefile.in (OBJS): Remove other.o.
951 * other.cc: Remove file.
953 2002-01-01 Robert Collins <rbtcollins@hotmail.com>
955 * README: Update TODO's.
956 * choose.cc (set_existence): Delete non installed packages with no
958 (fill_missing_category): Fix an off-by-one error.
959 (default_trust): Ditto. Also delete any unused categories.
960 (view::init_headers): Fix an off-by-one error.
961 (set_view_mode): Ditto.
962 (set_view_mode): Ditto.
963 (create_listview): Ditto.
966 * io_stream.cc: Indent.
967 * io_stream.h: Ditto.
968 * package_db.cc: Ditto.
969 * package_meta.h: Const correctness for SDesc ();
970 * proppage.cc: Run d2u and indent.
971 * propsheet.cc: Run d2u and indent.
972 * window.cc: Run d2u and indent.
973 * window.h: Run d2u and indent.
975 2001-12-28 Christopher Faylor <cgf@redhat.com>
977 * Makefile.in (iniparse.o): Accommodate newer bisons.
979 2001-12-23 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
981 * window.h (Window): New file, new class.
982 * window.cc (Window): New file, new class.
984 * threebar.h (ThreeBarProgressPage): New file, new class.
985 * threebar.cc (ThreeBarProgressPage): New file, new class.
987 * splash.h (SplashPage): New file, new class.
988 * splash.cc (SplashPage): Replace file with implementation of new
991 * source.h (SourcePage): New file, new class.
992 * source.cc: Run indent.
993 (SourcePage): Add class implementation to this file.
994 (do_source): Remove, functionality subsumed by SourcePage::Create()
995 and SourcePage::OnDeactivate().
996 (dialog_proc): Remove, functionality subsumed by
997 SourcePage::OnActivate().
999 * site.h: Run indent.
1000 (SitePage): Add class declaration.
1001 * site.cc: Run indent.
1002 (SitePage): Add class implementation.
1003 (do_download_site_info_thread): New function.
1004 (context): New var. Context info for do_download_site_info_thread().
1005 (do_download_site_info): New function.
1006 (SitePage::Create, SitePage::OnInit SitePage::OnNext)
1007 (SitePage::OnBack): SitePage class implementation..
1008 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers, now handled
1009 by SitePage members.
1010 (dialog_proc): Remove, now handled by SitePage::OnInit and base class
1012 (do_site): Remove, now handled by do_download_site_info_thread() and
1013 SitePage::OnNext functionality.
1014 (get_site_list): Remove dismiss_url_status_dialog() call.
1016 * root.h (RootPage): New file, new class.
1017 * root.cc: Run indent.
1018 (dialog_cmd): Pass parent HWND parameter to note(), yesno().
1019 (dialog_proc): Remove.
1021 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL clauses from switch.
1022 (RootPage::OnInit): New member function. Move get_root_dir() logic to
1023 here from do_root().
1024 (RootPage::Create): New member function.
1025 (RootPage::OnNext): New member function. Move IDOK logic from
1026 dialog_cmd() to here.
1027 (RootPage::OnBack): New member function.
1029 * propsheet.h (PropSheet): New file, new class.
1030 * propsheet.cc (PropSheet): New file, new class.
1032 * proppage.h (PropertyPage): New file, new class.
1033 * proppage.cc (PropertyPage): New file, new class.
1035 * postinstall.cc (do_postinstall): Add owner parameter.
1037 * other.cc (do_other): Add owner parameter.
1039 * nio-file.cc (NetIO::Purl): Pass NULL parent param to note().
1040 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Pass NULL parent param to
1042 * nio-http.cc (retry_get): Pass NULL parent param to get_auth(),
1045 * nio-ie5.cc (NetIO::_url): Pass NULL parent param to note(),
1046 get_auth(), get_proxy_auth().
1048 * netio.h (get_auth, get_proxy_auth, get_ftp_auth): Add owner param.
1049 * netio.cc (auth_common, NetIO::get_auth, NetIO::get_proxy_auth,
1050 NetIO::get_ftp_auth)
1051 (auth_common): Add owner param. Pass owner param to DialogBox.
1052 (NetIO::get_auth, NetIO::get_proxy_auth, NetIO::get_ftp_auth): Pass
1053 owner param to auth_common().
1055 * net.h (NetPage): New file, new class.
1056 * net.cc: Run indent.
1057 (net.h, threebar.h): Add includes.
1058 (Progress): Add extern.
1059 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, now handled by
1060 property sheet logic. Saved temporarily for reference.
1061 (NetPage::Create, NetPage::OnInit, NetPage::OnDeactivate,
1062 NetPage::OnNext, NetPage::OnBack):
1063 New implementation of NetPage class members.
1065 (dialog_proc): Remove.
1067 * msg.h (fatal, note, yesno): Add owner param.
1068 * msg.c (fatal, note, yesno, mbox): Add owner param.
1069 (mbox): Remove MB_TOPMOST from MessageBox call. Unnecessary and wrong
1070 now that we have a parent.
1072 * main.cc: Run indent.
1073 (commctrl.h, proppage.h, propsheet.h, splash.h, source.h)
1074 (localdir.h, net.h, site.h, choose.h, threebar.h, desktop.h): Include
1076 (root_dialog_proc): extern into this file.
1077 (Progress): Progress dialog defined here, used in several other files.
1078 (WinMain): Instantiate and create Splash, Source, Root, LocalDir, Net,
1079 Site, Chooser, Desktop pages and MainWindow sheet. Call
1080 InitCommonControls() to make sure Windows is set up for our use of
1081 property sheets. Add pages to sheet.
1082 Call MainWindow.Create() to "DoModal". Remove main loop, that logic is
1083 now handled by the PropSheet class.
1084 (root.h): Add include.
1086 * log.cc (log_save): Pass NULL parent to fatal().
1087 (exit_setup): Pass NULL parent to note().
1089 * localdir.h (LocalDirPage): New file, new class.
1090 * localdir.cc: Run indent.
1091 (localdir.h): New include.
1092 (threebar.h): New include.
1093 (Progress): extern into this file.
1094 (LocalDirPage::Create, LocalDirPage::OnInit, LocalDirPage::OnActivate)
1095 (LocalDirPage::OnNext, LocalDirPage::OnBack): Implementation of
1097 (LocalDirPage::OnNext): Move log() call from do_local_dir() to here.
1098 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers.
1099 (do_local_dir): Remove.
1100 (dialog_proc): Remove.
1101 (cwd): Remove, not used by anything.
1103 * install.cc: Run indent.
1104 (process.h, threebar.h): New includes.
1105 (Progress): extern into this file.
1106 (ins_dialog, ins_action, ins_pkgname, ins_filename, ins_pprogress)
1107 (ins_iprogress, ins_diskfull, init_event): Remove, now handled by
1108 ThreeBarProgressPage.
1109 (dialog_cmd, dialog_proc, dialog): Removed, handled in
1110 ThreeBarProgressPage.
1111 (init_dialog): Remove all mention of the above ins_* handles. Now
1112 handled in ThreeBarProgressPage. Altered SetWindowText()s to call
1113 ThreeBarProgressPage instance Progress directly.
1114 (progress): Alter bar update logic to call ThreeBarProgressPage
1115 instance Progress directly.
1116 (uninstall_one): Alter SetWindowText()s to call ThreeBarProgressPage
1117 instance Progress directly.
1118 (install_one_source): Alter SetWindowText()s to call
1119 ThreeBarProgressPage
1120 instance Progress directly. Pass NULL parent to note().
1121 (do_install_thread): Rename from do_install(), added owner param.
1122 Alter SetWindowText()s to call ThreeBarProgressPage instance Progress
1124 Remove dismiss_url_status_dialog() call, no longer necessary. Remove
1125 ShowWindow(<hide>) call, also unnecessary now. Pass owner handle to
1127 (do_install_reflector): New function.
1128 (do_install): New function.
1130 * ini.cc (process.h, threebar.h): New includes.
1131 (Progress): externed into this file.
1132 (find_routine): Pass NULL parent to note().
1133 (do_local_ini): Add owner param.
1134 (do_remote_ini): Add owner param. Pass owner to get_url_to_membuf()
1135 and note(). Remove call to dismiss_url_status_dialog().
1136 (do_ini_thread): Rename from do_ini(). Add owner param. Pass owner to
1137 do_local_ini(), do_remote_ini(), yesno(), and note(). Set next_dialog
1138 to IDD_CHOOSER on exit.
1139 (do_ini_thread_reflector): New function.
1140 (context): New var. Context for do_ini_thread.
1141 (do_ini): New function.
1143 * geturl.h (get_url_to_membuf, get_url_to_string, get_url_to_file): Add
1145 * geturl.cc (gw_dialog, gw_url, gw_rate, gw_progress, gw_pprogress,
1147 (gw_progress_text, gw_pprogress_text, gw_iprogress_text, init_event):
1149 (threebar.h): New include.
1150 (Progress): externed into this file.
1151 (dialog_cmd, dialog_proc, dialog): Removed, handled by
1152 ThreeBarProgressPage now.
1153 (init_dialog): Remove "if (gw_dialog == 0)" clause. Alter
1155 and bar setting SendMessage()s to call ThreeBarProgressPage instance
1156 Progress directly. Remove "one bar only" logic, this is now handled
1157 explicitly in the ThreeBarProgressPage class.
1158 (progress): Altered bar and text update logic to call
1159 ThreeBarProgressPage instance Progress directly. Changed kbps
1160 calculation to floating point and now print out a single decimal
1162 (get_url_to_membuf): Add owner param. Pass it to init_dialog.
1163 (get_url_to_string): Add owner param. Pass it to get_url_to_membuf.
1164 (get_url_to_file): Add owner param. Pass it to init_dialog. Alter bar
1165 update logic to call ThreeBarProgressPage instance Progress directly.
1166 (dismiss_url_status_dialog): Remove.
1168 * fromcwd.cc (do_fromcwd): Add owner param. Initialize found_ini to
1171 * download.cc: Run indent.
1172 (process.h, threebar.h): New includes.
1173 (Progress): externed into this file.
1174 (download_one): Add owner param. Pass it to get_url_to_file().
1175 (do_download_thread): Renamed from do_download. Add owner param. When
1176 calculating total_download_bytes, take binpicked and srcpicked into
1177 account. Remove call to dismiss_url_status_dialog(), no longer needed.
1178 Pass owner handle to download_one() and yesno().
1179 (do_download_reflector, do_download): New functions.
1180 (context): New var. Context for do_download_thread().
1182 * dialog.h (D(x)): Add owner param.
1184 * desktop.h (DesktopSetupPage): New file, new class.
1185 * desktop.cc: Run indent.
1186 (desktop.h): Add include.
1187 (dialog_proc, do_desktop): Remove, now handled in
1188 DesktopSetupPage::OnInit().
1189 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, handled in
1190 DesktopSetupPage::OnFinish(), DesktopSetupPage::OnBack(), and PropSheet
1192 (DesktopSetupPage::Create, DesktopSetupPage::OnInit)
1193 (DesktopSetupPage::OnBack, DesktopSetupPage::OnFinish): Implementation
1194 of DesktopSetupPage.
1196 * cistring.h: New file, new class.
1197 * cistring.cc: New file, new class.
1199 * choose.h: Run indent.
1200 (Chooser): New class declaration.
1201 * choose.cc: Run indent.
1202 (do_choose): Add owner param. Pass it to DialogBox() and
1204 (Chooser): New class implementation.
1206 * res.rc (IDS_VERSION_INFO): New string.
1207 (IDD_SOURCE, IDD_LOCAL_DIR, IDD_ROOT, IDD_SITE, IDD_OTHER_URL)
1208 (IDD_DLSTATUS, IDD_INSTATUS, IDD_SPLASH, IDD_CHOOSE, IDD_DESKTOP):
1209 Change WS_POPUP to WS_CHILD. Numerous positioning/size changes
1211 (IDD_CHOOSE): Give template the WS_EX_CONTROLPARENT style to enable
1212 TAB control navigation etc. Give the controls a reasonable tab order.
1213 Grouped radio buttons. Something's still not right, can't tab away
1214 from back/next/cancel group reliably.
1215 * resource.h (IDD_CHOOSER): New dialog ID.
1217 * Makefile.in (OBJS): Add cistring.o, proppage.o, propsheet.o,
1218 threebar.o, and window.o.
1220 2001-12-21 Robert Collins <rbtcollins@hotmail.com>
1222 * choose.cc (listview_proc): Update the scrollbar when the headers are dragged.
1223 (pick_pkg_line::paint): Clip columns to prevent overlap.
1225 2001-12-20 Robert Collins <rbtcollins@hotmail.com>
1227 * Makefile.in: Add libcomctl32.a for setup.exe.
1228 * archive.h (archive): Prevent non-child direct creation of the class.
1229 * archive_tar.h (archive_tar): Prevent inaccurate synthetic copy and assignment.
1230 * choose.cc: Include commctrl for the choose header.
1231 (NEW_COL_SIZE_SLOP): Define without magic numbers.
1232 (pkgtrustp): Convert to function.
1233 (set_action): Remove.
1234 (add_required, fill_missing_category,default_trust): Use list syntax for
1237 (choose_caption): Remove.
1238 (topbucket::paint): New method.
1239 (topbucket::empty): Ditto.
1240 (topbucket::click): Ditto.
1241 (topbucket::~topbucket): Ditto.
1242 (paint): Remove i,ii and p as they are obsolete.
1243 Remove header drawing code.
1244 Use new chooser method to paint the chooser.
1245 Use new chooser itemcount method.
1246 (scroll_common): Rename to view::scroll.
1247 Scroll the header window separately.
1248 (list_vscroll, list_hscroll, list_click): Update for new chooser methods.
1249 (listview_proc): Look for header messages.
1250 (note_width): Accept stringless calls.
1251 (pick_line::set_line): Remove.
1252 (pick_line::paint): Remove.
1253 (pick_pkg_line::paint): Paint this one line, using the header column widths.
1254 (pick_category_line::paint): Paint this category, and anything in the bucket.
1255 (pick_line::click): Remove.
1256 (pick_pkg_line::click): Handle a click.
1257 (pick_category_line::click): Handle a click.
1258 (_view): Rename all to view.
1259 (view::view): Initialise the control contents.
1260 (view::set_headers): Work with the header control.
1261 (view::init_headers): Use list syntax for package list.
1262 Rearrange the width logic a little.
1263 (view::insert_pkg): Update to use the hierarchy.
1264 (view::insert_category): Ditto.
1265 (view::insert_at, view::insert_under): Remove.
1266 (view::clear_view): Update to use the hierarchy.
1267 (view::click): Update to use the hierarchy.
1268 (set_view_mode): Use list syntax for package list.
1269 Update for new chooser methods.
1270 (DoInsertItem): New helper function. (Needs a home somewhere).
1271 (create_listview): Remove choose control code and use the constructor instead.
1272 (dialog_cmd,scan2,do_choose): Use list syntax for package list.
1273 * choose.h: Include newly required headers list and package_meta.
1274 (_voew): Rename to view.
1275 (pick_line): Convert to an ABC.
1276 (pick_pkg_line): New class.
1277 (pick_catgory_line): New class.
1278 (topbucket): New class.
1279 (view::scroll): New method created from listview_scroll function.
1280 * desktop.cc (make_passwd_group): Use list syntax for package list.
1281 * download.cc (do_download): Use list syntax for package list.
1282 * fromcwd.cc (found_file): Use list syntax for package list.
1283 * iniparse.y (pacakges): Use list syntax for package list.
1284 * install.cc (uninstall_one): Use list syntax for package list.
1285 (do_install): Use list syntax for package list.
1286 * io_stream.h (io_stream): Prevent non-child direct creation of the class.
1287 Prevent inaccurate synthetic copy and assignment.
1288 * list.h: Include required header stdlib.
1289 Work on const correctness.
1290 * package_db.cc (packagedb::getpackagebyname): Remove.
1291 (packagedb::packagedb): Remove custom list code, and make db a local.
1292 (packagedb::getfirstpackage): Remove.
1293 (packagedb::getnextpackage): Remove.
1294 (packagedb::addpackage): Remove.
1295 (flush): Remove custom list code.
1296 (packagedb::registerpackage): Remove.
1297 (packagedb::packages): New static member.
1298 (packagedb::task): New static member.
1299 * package_db.h (PackageDBActions): New enum.
1300 (packagedb): Remove getfirstpackage, getnextpackage, getpackagebyname,
1301 addpackage, registerpackage, packages, packagecount, curr_package, db.
1303 * pacakge_meta.cc: Include package_db.h.
1304 (packagemeta::action_caption): New method.
1305 (packagemeta::set_action): New method.
1306 * package_meta.h (CategoryPackage): Initialise key.
1307 (packagemeta): Initialise key.
1308 Add set_action and action_caption methods.
1309 Prevent inaccurate synthetic copy and assignment.
1310 * resource.h (IDC_CHOOSE_LISTHEADER): New ID.
1311 * source.cc: Include package_db for db manipulation.
1312 (save_dialog): Set the db task.
1313 * win32.h: Tell the w32 include headers what IE version to expect/require.
1315 2001-12-06 Robert Collins <rbtcollins@hotmail.com>
1317 * README: Wishlist updates.
1319 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
1321 * package_db.cc (getnextpackage): Don't overrun the array.
1323 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
1325 * Makefile.in (OBJS): Add setup_version.o.
1326 (version.c): Rename to setup_version.
1327 * choose.cc (set_action): Prevent NULL pointer dereference.
1328 (package_sort): Remove.
1329 * fromcwd.cc (canonicalize_version): Moved to version.cc.
1330 (check_ini): New function for use with find to see if there is a cached setup.ini.
1331 (do_fromcwd): Check for a cached setup.ini from any mirror site.
1332 * ini.cc (find_routine): New function, for finding cached setup.ini's.
1333 (do_local_ini): New function, drives parsing of local ini's.
1334 (do_remote_ini): New function, drives parsing and caching of remote ini's.
1335 (do_ini): Move guts to do_remote_ini and do_local_ini.
1336 * list.h (removebyindex): New method.
1337 * other.cc (save_dialog): Use new site_list and all_site_list to add the
1338 new site to the site picklist.
1339 (dialog_cmd): Only save the dialog when exiting the dialog.
1340 * res.rc (IDD_SITE): Make IDC_URL_LIST a multiple-selection control.
1341 * site.cc (site_list_type): Move to site.h
1342 (site_list): New global, sites chosen by the user.
1343 (all_site_list): New global, all potential sites.
1344 (site_list_type::init): New method, parses a mirror.lst URL string into a
1345 site_list_type object.
1346 (site_list_type::site_list_type): New method.
1347 (check_if_enable_next): Examine the control, not a local variable.
1348 (load_dialog): Select all the user chosen sites by default.
1349 (save_dialog): Adjust for multiple selection semantics.
1350 (save_site_url): Save all user chosen sites.
1351 (dialog_cmd): Don't save the dialog when the listbox recieves a message -
1353 Remove obsolete other_url reference.
1354 (dialog_proc): Use all_site_list instead of site_list.
1355 (site_sort): Remove.
1356 (get_site_list): Remove malloc use - use list template instead.
1357 Move site_list_type initialisation to site_list_type::init().
1358 (get_initial_list_idx): Renamed to ...
1359 (get_saved_sites): this. Also read in multiple sites to the site_list.
1360 (do_site): Use all_site_list not site_list.
1361 Log all chosen sites.
1362 * site.h: New file, defines site related class, functions and variables.
1363 * state.h: Add comment about use of state.h
1364 (mirror_site): Remove.
1365 (other_url): Remove.
1366 (MIRROR_SITE): Remove.
1367 * version.cc: New file, for version-handling and related functions.
1369 2001-12-02 Robert Collins <rbtcollins@hotmail.com>
1371 * Makefile.in: Add filemanip.o to setup.
1372 * archive.cc (archive::extract_file): Use new io_stream method 'copy'.
1373 * archive_tar.h (archive_tar_file): Implement get_size virtual.
1374 (archive_tar): Ditto.
1375 * choose.cc (set_action): Use [] operator instead of getnth - its more readable.
1377 (_view::init_headers): Ditto.
1378 (_view::insert_pkg): Ditto.
1379 (set_view_mode): Ditto.
1382 (base): Moved to filemanip.cc.
1383 (find_tar_ext): Ditto.
1384 (parse_filename): Ditto.
1385 (_Info::_Info): Remove.
1386 * compress_bz.h (compress_bz): Implement get_size virtual.
1387 * compress_gz.h (compress_gz): Implement get_size virtual.
1388 * cygpackage.cc (cygpackage::destroy): Use array delete for char * objects.
1389 * download.cc (get_file_size): Move to filemanip.cc.
1390 (check_for_cached): Use [] operator instead of getnth - its more readable.
1391 (download_one): Ditto.
1392 * filemanip.cc: New file.
1393 * geturl.cc (init_dialog): Make url a pointer to const as it is not modified.
1394 (get_url_to_membuf): New function - contains get_url_to_string worker code.
1395 (get_url_to_string): Becomes a trivial wrapper to get_url_to_membuf.
1396 * geturl.h: Declare new prototype.
1397 * ini.cc (do_ini): Use get_url_to_membuf and pass ini_init an io_stream.
1398 Tidy up the error code a little.
1399 * ini.h: Remove __cplusplus protection for ini_init.
1401 * inilex.l: Remove old globals.
1402 (ini_init): Use an io_stream for getting the characters.
1403 (ini_getchar): Ditto.
1404 * iniparse.y: Declare yylex as a C++ function.
1405 (add_correct_version): Use [] operator instead of getnth - its more readable.
1406 * io_stream.cc (io_stream::move_copy): Use the copy method.
1407 (io_stream::copy): New method to simply copy from one stream to another.
1408 * io_stream.h (io_stream): New static method copy, and virtual method get_size.
1409 * io_stream_cygfile.cc (io_stream_cygfile::get_size): Implement this.
1410 * io_stream_cygfile.h (io_stream_cygfile::get_size): Declare this.
1411 * io_stream_file.cc (io_stream_file::get_size): Implement this.
1412 * io_stream_file.h (io_stream_file::get_size): Declare this.
1413 * io_stream_memory.h: Include errno as it's neded to parse the header.
1414 (io_stream_memory::get_size): Implement this.
1415 (io_stream_memory::st_size): Delete this.
1416 * list.h: Change getnth into the [] operator.
1417 * netio.cc (NetIO::NetIO): Change prototype to reflect Purl not being modified.
1418 (NetIO::set_url): Ditto.
1419 (NetIO::open): Ditto.
1420 * netio.h: As for netio.cc.
1421 * nio-file.cc (NetIO_File::NetIO_File): Change prototype to reflect Purl not
1423 * nio-file.h: Ditto.
1424 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
1425 * nio-ftp.h (NetIO_FTP::NetIO_FTP): Ditto.
1426 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Ditto.
1427 * nio-http.h (NetIO_HTTP::NetIO_HTTP): Ditto.
1428 * nio-i5.cc (NetIO_IE5::NetIO_IE5): Ditto.
1429 * nio-i5.h (NetIO_IE5::NetIO_IE5): Ditto.
1430 * package_meta.cc (packagemeta::~packagemeta): Bugfix: use array delete.
1431 * package_source.cc (packagesource::set_canonical): Ditto.
1432 (packagesource::set_cached): Ditto.
1433 * package_source.h (site::~site): Ditto.
1434 * site.cc: Change site_list_type to a class, and search and replace sort_key to
1437 2001-12-01 Robert Collins <rbtcollins@hotmail.com>
1439 * package_source.cc (packagesource::set_canonical): Filename was out by one.
1441 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
1443 * Makefile.in (OBJS): Remove category_list - it's not needed.
1444 * README: More wishlist updates.
1445 * category.cc (Category::Category): Initialise new members.
1446 (Categorycmp): New function.
1447 * category.h (Category): New member key for template use.
1448 * category_list.cc: Remove.
1449 * category_list.h: Remove.
1450 (Categorycmp): New function prototype.
1451 * choose.cc: Remove category_list - not needed.
1452 (set_action): Only show the 'source' option when the source is actually
1454 (add_required): Fix recursion limiter to 5.
1455 (fill_missing_category): Use list access.
1456 (default_trust): Ditto.
1457 (pick_line::paint): Ditto.
1458 (_view::init_headers): Ditto.
1459 (_view::insert_pkg): Ditto.
1460 (_view::insert_category): Ditto.
1461 (_view::click): Ditto.
1462 (set_view_mode): Ditto.
1464 * cygpackage.h: Remove category_list - not needed.
1465 * geturl.cc (get_url_to_string): Fix null byte insertion.
1466 * inipatse.y: Remove category_list - not needed.
1467 (categories): Use list access.
1468 * package_db.cc: Ditto.
1469 * package_db.h: Remove category_list - not needed.
1470 (packagedb): Use the list template for categories.
1471 * package_meta.cc (add_category): Ditto.
1472 * package_meta.h (CategoryPackage): Link to the category as well.
1473 (packagemeta): Use a list of CategoryPackages instead of Categories
1474 for more memory efficient cross-referencing.
1476 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
1478 * package_db.cc (packagedb::flush): Write a canonical version for all packages
1479 irrespective of the media they were installed from.
1481 2001-11-29 Robert Collins <rbtcollins@hotmail.com>
1483 * Makefile.in (OBJS): Add package_source and rfc1738.
1484 * README: Wishlist update.
1485 * category_list.cc (register_category): Use references.
1486 * category_list.h (CategoryList): Ditto.
1487 * choose.cc (isinstalled): Remove.
1488 (pkgtrustp): New macro.
1489 (set_action): Use packagemeta.
1490 (add_required): Ditto.
1491 (choose_caption): Example package to choose caption, rather than state flags.
1492 (check_existence): Remove.
1493 (set_existence): Remove old code.
1494 (fill_missing_category): Use packagemeta.
1495 (keep_or_skip): Remove.
1496 (default_trust): Use packagemeta and set trust values directly.
1497 (pick_line::set_line): Use packagemeta.
1498 (_view::insert_pkg): Ditto.
1499 (_view::insert_category): Ditto.
1500 (_view::click): Ditto.
1501 (set_view_mode): Ditto. Also remove "exclude" code.
1502 (create_listview): Use packagemeta.
1503 (dialog_cmd): Ditto.
1504 (getpkgbyname): Remove
1505 (scan2): Use packagemeta. Temporarily comment out the holefinding code.
1506 (read_installed_db): Remove.
1507 (package_sort): Use packagemeta.
1508 (do_choose): Use packagemeta. Don't sort the packages - the db does that.
1509 * choose.h: Use packagemeta.
1510 * cygpackage.cc (cygpackage::cygpackage): Initialise all variables.
1511 (cygpackage::cygpackage): Ditto.
1512 (cygpackage::set_canonical_version): Copy the passed string.
1513 (cygpackage::~cygpackage): Move cleanup code to destroy().
1514 (cygpackage::destroy): New function.
1515 (cygpackage::getfirstfile): Use a separate buffer.
1516 (cygpackage::getnextfile): Ditto.
1517 (cygpackage::Canonical_version): New function.
1518 (cygpackage::set_sdesc): Ditto.
1519 (cygpackage::set_ldesc): Ditto.
1520 * cygpackage.h (cygpackage::Canonical_version): New method.
1521 (cygpackage::set_sdesc): New method.
1522 (cygpackage::set_ldesc): New method.
1523 (cygpackage::SDesc): New method.
1524 (cygpackage::LDesc): New method.
1525 (cygpackage::set_canonical_version): New method.
1526 * desktop.cc: Include packagedb headers.
1527 (make_password_group): Use packagemeta.
1528 * download.cc: Include packagedb headers.
1529 (check_for_cached): New method to find any cached file and fill out the database
1531 (download_one): Take a packagesource, support multiple mirrors.
1532 (do_download): Use packagemeta.
1533 * from cwd.cc: Include packagedb headers.
1534 (found_file): Use packagemeta.
1535 * ini.cc (do_ini): Beginning of multiple-mirror support.
1536 * ini.h (CategoryPackage): Remove.
1537 (Dependency): Remove.
1539 (new_package,getpkgbyname,getpackagecategorybyname,add_category): Remove.
1540 * inilex.l: Support multiple mirrors.
1541 * iniparse.y: Include packagedb headers.
1542 (parser): Use packagemeta.
1543 (new_package): Remove.
1544 (add_correct_version): New function.
1545 (new_requirement): Remove.
1546 (add_category): Remove.
1547 * install.cc (uninstall_one): Use packagemeta.
1548 (install_one_source): New function.
1549 (install_one): Use packagemeta.
1550 (do_install): Use packagemeta.
1551 * io_stream.cc (io_stream::move): Bugfix on move/copy case.
1552 * io_stream_cygfile.cc (io-stream_cygfile::set_mtime): Do not reopen the file
1553 after setting the mtime, it makes no sense, and results in 0 length files.
1554 * io_stream_file.cc (io-stream_file::set_mtime): Ditto.
1555 * list.h: New file, template class for a form of list.
1556 * package_db.cc (packagedb::registerpackage): New function.
1557 * package_db.h (packagedb::npackages ()): New method.
1558 * package_meta.cc (packagemeta::add_version): Use list template.
1559 (packagemeta::set_installed): Ditto.
1560 (packagemeta::add_category): New method.
1561 * package_meta.h: Include necessary headers to parse the class.
1562 (CategoryPackage): New class.
1563 (packagemeta): Initialise all members.
1564 (packagemeta::SDesc): New method.
1565 (packagemeta::Categories): New method.
1566 (packagemeta::add_category): Ditto.
1567 (packagemeta::versions): Change to be a list instance.
1568 * package_source.cc (packagesource::set_canonical): New method.
1569 (packagesource::set_cached): New method.
1570 * package_source.h: Include necessary headers to parse the class.
1572 (packagesource::packagesource): Initialize all members.
1573 (packagesource): Make this class non-abstract.
1574 * package_version.cc (packageversion::packageversion): New method.
1575 * package_version.h (Dependency): New class.
1576 (packageversion::Canonical_vesion): New method.
1577 (packageversion::SDesc): New method.
1578 (packageversion::LDesc): New method.
1579 (packageversion::new_requirement): Ditto.
1580 (packageversion::srcpicked, binpicked): What to install.
1581 (packageversion::src, bin): Installation source data.
1582 * rfc1738.cc: New file. Escapes special characters in URL's.
1585 2001-11-26 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1587 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Stop header parsing when
1588 SimpleSocket::gets() returns a zero-length string, so that we
1589 don't end up eating the entire stream thinking it's all header info.
1591 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
1593 * install.cc (badrename): Remove.
1594 (do_install): Use packagedb flush method to write /etc/setup/installed.db.
1595 * io_stream.cc (io_stream::move_copy): New method.
1596 (io_stream::move): New method.
1597 * io_stream.h (io_stream): New methods move and move_copy.
1598 * io_stream_cygfile.cc (io_stream_cygfile::move): New method.
1599 * io_stream_cygfile.h (io_stream_cygfile): New method move.
1600 * io_stream_file.cc (io_stream_file::move): New method.
1601 * io_stream_file.h (io_stream_file): New method move.
1602 * package_db.cc (packagedb::flush): New method.
1603 * package_db.h (packagedb): New method flush.
1605 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
1607 * Makefile.in (OBJS): Add package_version.
1608 * ategory.cc (Category::Category): Update constructors.
1609 * category_list.cc (CategoryList::register_category): Insert correctly.
1610 * choose.cc: Include package_version.h, not package.h.
1611 * cygpackage.cc: Ditto.
1612 (cygpackage::uninstall): New method.
1613 * cygpackage.h (cygpackage): Rename genericpackage to packageversion.
1614 New method uninstall.
1615 * hash.cc (add, has, enumerate): Change prototype to be accurate.
1616 * hash.h (hash): Change prototypes to be accurate.
1617 * ini.h (_Info): New parameterless constructor.
1618 (CategoryPackage): New constructor.
1620 * install.cc: Don't include unneeded headers.
1621 Include package database headers.
1622 (hash::add_subdirs): Remove.
1623 (uninstall_one): Use packagemeta->uninstall to perform the uninstallation.
1624 Don't uninstall source packages.
1625 (do_install): Just can uninstall_one once as we ignore source packages now.
1626 Don't copy the installed.old database accross, instead iterate through the
1627 packagedb packages list and write the isntalled packages out.
1628 * package_db.cc: Include package_version.h, not package.h.
1629 (packagedb::packagedb): Never let db be undefined.
1630 Record the installation filename, so we can reconstruct installed.db.
1631 (packagedb::addpackage): Insert packages in alpha sorted order.
1632 (packagedb::categories): Initialise correctly.
1633 * package_meta.cc: Include win32 and mount headers as a workaround to
1634 current io_stream limitations. Include a TODO about that.
1635 (standard_dirs): New, from install.cc.
1636 (hash::add_subdirs): New, from install.cc.
1637 (packagemeta::set_installed): Rename genericpackage to packageversion.
1638 (packagemeta::uninstall): New method.
1639 * package_meta.h: Rename genericpackage to packageversion.
1640 (packagemeta): Update constructor.
1641 (add_version, set_installed): Rename genericpackage to packageversion.
1642 (uninstall): New method.
1643 (installed_from): New member.
1644 * package_source.cc: New file.
1645 * package_source.h: New file.
1646 * package_version.cc: New file.
1647 * package_version.h: New file.
1648 * package.cc: Removed.
1649 * package.h: Removed.
1651 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
1653 * Makefile.in (OBJS): Add category.o and category_list.o.
1654 * category.h: New file.
1655 * category.cc: New file.
1656 * category_list.h: New file.
1657 * category_list.cc: New file.
1658 * choose.cc: Include category headers.
1659 (fill_missing_category): Use package_db to access global categories.
1660 (_view::insert_pkg): Ditto.
1661 (_view::insert_category): Ditto.
1662 (set_view_mode): Ditto.
1663 (getcategorybyname): Remove.
1664 * cygpackage.h: Include category_list.h to parse this correctly.
1665 (cygpackage): New virtual &Categories.
1666 * ini.h (_CategoryPackage): More C to C++ conversion.
1668 (getcategorybyname): Remove.
1669 (register_category): Remove.
1670 * iniparse.y: Include package db and category headers.
1671 (categories): Use package_db to access global categories.
1673 (ncategories): Remove.
1674 (register_category): Remove.
1675 * package.h: New virtual &Categories.
1676 * package_db.cc (packagedb::packagedb): Don't read the installed db twice.
1677 (packagedb::categories): Declare.
1678 * package_db.h (packagedb): New member categories for global categories list.
1680 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
1682 * choose.h: Don't include ini.h
1683 * ini.h: Allow pure c++ in the header file.
1685 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
1687 * install.cc (do_install): Write a version 2 installed.db file.
1688 * package_db.cc (packagedb::packagedb): Read version 1 and 2 installed.db files.
1690 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
1692 * Makefile.in (OBJS): Add package abstraction objects.
1693 * choose.cc: Include package abstraction headers.
1694 (read_installed_db): Use packagedb class and ignore installed sources.
1695 * cygpackage.cc: New file.
1696 * cygpackage.h: New file.
1697 * filemanip.h (get_file_size): Use unixy types.
1698 * package.h: New file.
1699 * package.cc: New file.
1700 * package_db.cc: New file.
1701 * package_db.h: New file.
1702 * package_meta.cc: New file.
1703 * package_meta.h: New file.
1705 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
1707 * REAME: Updates to wishlist.
1709 2001-11-16 Robert Collins <rbtcollins@hotmail.com>
1711 * README: Updated and added my list of wishlist and todo items.
1713 2001-11-14 Robert Collins <rbtcollins@hotmail.com>
1715 * Makefile.in (OBJS): Include io_stream_memory in setup.exe.
1716 * archive_tar.cc (archive_tar::write): New prototype.
1717 (archive_tar::seek): New method.
1718 * archive.h (archive_tar_file): Update write() and add seek().
1719 (archive_tar): Ditto.
1720 * archive_tar_file.cc (archive_tar_file::write): New prototype.
1721 (archive_tar_file::seek): New method.
1722 * compress_bz.cc (compress_bz::write): New prototype.
1723 (compress_bz::seek): New function.
1724 * compress_bz.h (compress_bz): Update write() and add seek().
1725 * compress_gz.cc (compress_gz::write): New prototype.
1726 (compress_gz::seek): New function.
1727 * compress_gz.h (compress_gz): Update write() and add seek().
1728 * geturl.cc: Include io_stream headers.
1730 (get_url_to_string): Use a io_stream_memory buffer instead of GUBuf.
1731 * io_stream.h (io_stream_seek_t): New enum.
1732 (io_stream): Update write() and add seek().
1733 * io_stream_cygfile.cc (io_stream_cygfile::write): New prototype.
1734 (io_stream_cygfile::seek): New function.
1735 * io_stream_cygfile.h (io_stream_cygfile): Update write() and add seek().
1736 * io_stream_file.cc (io_stream_file::write): New prototype.
1737 (io_stream_file::seek): New function.
1738 * io_stream_file.h (io_stream_file): Update write() and add seek().
1740 2001-11-13 Brian Keener <bkeener@thesoftwaresource.com>
1742 * localdir.cc: Add headers unistd.h and port.h.
1743 (save_local_dir): Expand search logic to include local directory for
1744 location of file last-cache.
1745 (dialog_cmd): Skip IDD_ROOT when downloading and use Back button.
1746 (do_local_dir): Expand search logic to include local directory for file
1748 * res.rc (IDD_CHOOSE_DIALOG): Add hotkey to View button.
1749 * Source.cc (dialog_cmd): Skip IDD_ROOT if select Download from
1751 (do_source): Default to Install from Internet on first entry or
1752 previous selection if backing up from IDD_ROOT or IDD_LOCAL_DIR.
1754 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
1756 * choose.cc (find_tar_ext): Only match at the end of the string.
1757 (getpkgbyname): Prevent NULL pointer dereference.
1759 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
1761 * Makefile.in (CFLAGS): Add warnings and -Werr.
1762 (WARNONLY_FLAGS): For sources that produce (harmless) errors no matter what.
1763 (OBJS): Add io_stream class' objects.
1764 (autoload.o): Use WARNONLY_FLAGS.
1766 (iniparse.o): Ditto.
1767 * archive.cc: New file.
1768 * archive.h: New file.
1769 * archive_tar.cc: New file.
1770 * archive_tar.h: New file.
1771 * archive_tar_file.cc: New file.
1772 * autoload.c: Fix compiler warnings (unused, deprecated conversion).
1773 * choose.cc: Use io_stream.h, not mount.h.
1775 (find_tar_ext): Rewritten to use strstr, and to accept .tar as an extension.
1776 (read_installed_db): Use io_streams.
1777 * choose.h: Run indent.
1778 * compress.cc: New file.
1779 * compress.h: New file.
1780 * compress_bz.cc: New file.
1781 * compress_bz.h: New file.
1782 * compress_gz.cc: New file.
1783 * compress_gz.h: New file.
1784 * concat.cc: Run indent.
1785 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1786 * concat.h: Run indent.
1787 * desktop.cc: Run indent.
1788 Include mklink2.h rather than redefining by hand.
1789 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1790 (etc_profile): Fix compiler warning (deprecated conversion).
1791 (make_link): Fix compiler warning (deprecated conversion).
1792 Tidy up use of args variable - consolidate into argbuf.
1793 (start_menu): Fix compiler warning (deprecated conversion).
1794 (desktop_icon): Fix compiler warning (deprecated conversion).
1795 (make_etc_profile): Fix compiler warning (deprecated conversion).
1796 (uexists): Fix compiler warning (deprecated conversion).
1797 (check_desktop): Fix compiler warning (deprecated conversion).
1798 (check_startmenu): Fix compiler warning (deprecated conversion).
1799 * dialog.cc: Run indent.
1800 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1801 (fatal): Fix compiler warning (deprecated conversion).
1802 * dialog.h: Run indent.
1803 * diskfull.cc: Run indent.
1804 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1805 * download.cc: Run indent.
1806 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1807 (download_one): Fix compiler warning (signed vs unsigned comparison).
1808 * filemanip.h: Run indent.
1809 * find.cc: Run indent.
1810 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1811 (find): Fix compiler warning (deprecated conversion).
1812 * find.h: Run indent.
1813 * fromcwd.cc: Run indent.
1814 * geturl.cc: Run indent.
1815 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1816 (dialog_cmd): Return a value.
1817 (dialog_proc): Remove unused variables.
1819 (get_url_to_file): Fix compiler warning (deprecated conversion).
1820 * geturl.h: Run indent.
1821 * hash.cc: Run indent.
1822 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1823 * hash.h: Run indent.
1824 * ini.cc: Run indent.
1826 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1827 (do_ini): Use io_streams for local io.
1828 * ini.h: Run indent.
1829 * inilex.l (ignore_line): Fix compiler warning (is not a prototype).
1830 Fix compiler warning (brackets for truth assignment).
1831 * install.cc: Run indent.
1832 Fix compiler warning (/* in comment).
1834 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1835 (dialog_cmd): Return a value.
1836 (dialog_proc): Return a value.
1837 (start_tics): Deleted - was unused.
1838 (badrename): Fix compiler warnings (unused, deprecated conversion).
1839 (standard_dirs): Fix compiler warning (deprecated conversion).
1841 (uninstall_one): Convert to io_streams.
1842 (install_one): Convert to io_streams.
1843 (do_install): Convert to io_streans.
1844 Fix compiler warning (deprecated conversion).
1845 * io_stream.cc: New file.
1846 * io_stream.h: New file.
1847 * io_stream_cygfile.cc: New file.
1848 * io_stream_cygfile.h: New file.
1849 * io_stream_file.cc: New file.
1850 * io_stream_file.h: New file.
1851 * localdir.cc: Run indent.
1853 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1854 (get_root_dir_now): Remove.
1855 (save_local_dir): Convert to io_streams.
1856 (dialog_cmd): Return a value.
1857 (do_local_dir): Convert to io_streams.
1858 (log.cc): Run indent.
1859 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1860 (log): Fix compiler warning (deprecated conversion).
1861 (log_save): Fix compiler warning (deprecated conversion).
1862 * log.h: Run indent.
1863 (log): Fix compiler warning (deprecated conversion).
1864 (log_save): Fix compiler warning (deprecated conversion).
1865 * main.cc: Run indent.
1866 Don't include "netio.h".
1867 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1868 (netio_test): Remove.
1869 (sid_auth): Fix compiler warning (partially bracketed initialiser).
1870 (WinMain): Return a value.
1871 * mkdir.cc: Run indent.
1872 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1873 * mklink2.c: Run indent.
1874 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1875 (mkcygsymlink): New function.
1876 * mklink2.h: New file.
1877 * mount.cc: Run indent.
1878 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1879 (create_mount): Remove unused variables.
1880 (cygpath): Fix compiler warning (signed vs unsigned comparison).
1881 * mount.h: Run indent.
1882 * msg.cc: Run indent.
1883 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1884 (msg): Fix compiler warning (deprecated conversion).
1885 (mbox): Fix compiler warning (deprecated conversion).
1886 * msg.h: Run indent.
1887 (msg): Fix compiler warning (deprecated conversion).
1888 * net.cc: Run indent.
1889 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1890 (dialog_cmd): Return a value.
1891 * netio.cc: Run indent.
1892 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1893 (auth_cmd): Return a value.
1894 * netio.h: Run indent.
1895 * nio-file.cc: Run indent.
1896 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1897 (NetIO_File::NetIO_File): Fix compiler warning (deprecated conversion).
1898 * nio-file.h: Run indent.
1899 * nio-ftp.cc: Run indent.
1900 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1901 * nio-ftp.h: Run indent.
1902 * nio-http.cc: Run indent.
1903 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1904 * nio-http.h: Run indent.
1905 * nio-ie5.cc: Run indent.
1906 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1907 * nio-ie5.h: Run indent.
1908 * other.cc: Run indent.
1909 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1910 (dialog_cmd): Return a value.
1911 * port.h: Run indent.
1912 * postinstall.cc: Run indent.
1913 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1914 (cmd): Fix compiler warning (deprecated conversion).
1915 (eun): Fix compiler warning (deprecated conversion).
1916 * root.cc: Run indent.
1917 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1918 * simpsock.cc: Run indent.
1919 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1920 * simpsock.h: Run indent.
1921 * site.cc: Run indent.
1923 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1924 (get_root_dir_now): Remove.
1925 (save_site_url): Convert to io_streams.
1926 (dialog_cmd): Return 0.
1927 (get_initial_list_idx): Convert to io_streans.
1928 * source.cc: Run indent.
1929 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1930 (check_if_enable_next): Remove.
1931 (load_dialog): Remove unused variables.
1932 (save_dialog): Ditto.
1933 (dialog_cmd): Return a value.
1934 * splash.cc: Return a value.
1935 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1936 (dialog_cmd): Return a value.
1937 * state.cc: Run indent.
1938 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1939 * state.h: Run indent.
1943 2001-11-12 Christopher Faylor <cgf@redhat.com>
1945 * desktop.cc (start_menu): Change start menu name to "Cygwin".
1946 (check_startmenu): Ditto.
1948 2001-11-11 Christopher Faylor <cgf@redhat.com>
1950 * choose.cc (parse_filename): Finish reorganization by correctly
1951 decrementing p in memmove.
1953 2001-11-11 Christopher Faylor <cgf@redhat.com>
1955 * choose.cc (parse_filename): Reorganize code to work around gcc
1956 optimization problem.
1958 2001-11-09 Gareth Pearce <tilps@hotmail.com>
1960 * choose.cc (set_action): Allow skip as an option for installed
1961 packages that have version number not listed in setup.ini.
1963 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
1965 * choose.cc (set_cation): Backout last change.
1966 (choose_caption): Ditto.
1968 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
1970 * ini.h (actions): Remove - transferred to choose.h.
1972 * choose.h: Protect class's from "C" compilers.
1973 (actions): New enum, from ini.h. This may not be the 'right' place
1974 but that place doesn't exist yet.
1975 (_views): New enum, from ini.h.
1976 * choose.cc (set_action): Handle installed packages with a version not in
1978 (choose_caption): Ditto.
1979 * iniparse.y: Rearrange header order to handle new ini.h.
1981 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
1983 * ini.h (_Info): Fix compiler warnings (signed vs unsigned comparison).
1984 (registry_category): Fix compiler warning (deprecated conversion).
1985 * iniparse.y (registry_category): Ditto.
1986 * choose.cc (cvsid): Fix compiler warnings (unused, deprecated conversion).
1987 (add_requried): Remove unused variable.
1988 (choose_caption): Handle all enumeration values via a default.
1989 (paint): Fix compiler warnings (unused, deprecated conversion).
1990 (scroll_common): Fix compiler warnings (unused, signed vs unsigned comparison).
1991 (list_clicK): Fix compiler warnings (signed vs unsigned comparison).
1992 (note_width): Fix compiler warnings (deprecated conversion).
1993 (keep_or_skip): Fix compiler warnings (unused).
1994 (_view::mode_caption): Fix compiler warnings (deprecated conversion).
1995 (set_view_mode): Fix compiler warnings (unused).
1996 (create_listview): Fix compiler warnings (unused, incorrect format, reaches
1998 (dialog_proc): Fix compiler warnings (unused).
1999 (read_installed_db): Fix compiler warnings (unused, deprecated conversion).
2000 * choose.h (_header): Fix compiler warnings (deprecated conversion).
2003 2001-11-08 Pavel Tsekov <ptsekov@syntrex.com>
2005 * simpsock.h (SimpleSocket::invalidate): Declare new method.
2006 * simpsock.cc (SimpleSocket::invalidate): Implement new method.
2007 (SimpleSocket::SimpleSocket): Initialize buf to zero. Do not allocate
2008 memory for buf in the constructor.
2009 (SimpleSocket::~SimpleSocket): Use SimpleSocket::invalidate().
2010 (SimpleSocket::printf): Use SimpleSocket::write() instead of send().
2011 (SimpleSocket::write): Check object consistency - return -1 on error.
2012 invalidate() the object on socket write error.
2013 (SimpleSocket::fill): Check object consistency - return -1 on error.
2014 invalidate() the object if socket read error is encountered and there
2015 is no more data available in the internal read buffer.
2016 Allocate memory for the internal read buffer.
2017 (SimpleSocket::gets): Return zero (NULL pointer) if error is encountered
2018 during fill() and no more data is available in the internal read buffer.
2019 (SimpleSocket::read): Check object consistency - return -1 on error.
2020 invalidate() the object if socket read error is encountered.
2021 * nio-ftp.cc (NetIO_FTP:NetIO_FTP): Allow 125 as valid response code to
2022 the RETR command (fix for MS IIS ftp server 5 - possibly others too).
2023 (NetIO_FTP::ok): Check if the SimpleSocket object is ok().
2024 (NetIO_FTP::read): Use NetIO_FTP::ok().
2025 * nio-http.cc: Check for valid return value of SimpleSocket::gets().
2026 (NetIO_HTTP::ok): Check if the SimpleSocket object is ok().
2028 2001-11-09 Robert Collins <rbtcollins@hotmail.com>
2030 * simpsock.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
2031 (SimpleSocket::SimpleSocket): Avoid compiler warnings (deprecated conversion).
2032 (SimpleSocket::printf): Ditto.
2033 (SimpleSocket::write): Ditto.
2034 * simpsock.h (SimpleSocket): Avoid compiler warnings for constructor,
2036 * nio-ftp.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
2037 (NetIO_FTP::NetIO_FTP): Remove unused variable done.
2038 * nio-http.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
2040 2001-11-07 Charles Wilson <cwilson@ece.gatech.edu>
2042 * geturl.cc (get_url_to_string): clean up memory leak
2043 (get_url_to_file): ditto
2045 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
2047 * localdir.cc (dialog_cmd): Go back to IDD_ROOT in every case.
2048 * source.cc (dialog_cmd): Go forward to IDD_ROOT in every case.
2050 2001-11-06 Pavel Tsekov <ptsekov@syntrex.com>
2052 * fromcwd.cc (found_file): Free() memory containing the version and
2053 filepath information for a given package, before replacing the pointers which
2054 reference this memory.
2056 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
2058 * fromcwd: Fix compiler warnings for cvsid.
2059 (canonicalize_version): Fix compilter warnings.
2060 (do_fromcwd): Ditto.
2061 * version.h: Fix compiler warnings for canonicalize_version.
2063 2001-11-03 Robert Collins <rbtcollins@hotmail.com>
2065 * res.rc (IDD_CHOOSE): Move the view caption to the right hand side.
2067 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2069 * res.rc (IDD_CHOOSE): Tweak for use on a 640x480 screen.
2071 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2073 * choose.cc (set_action): Correctly allow skip for any uninstalled package.
2075 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2077 * choose.cc (default_trust): Change the "Required" forced install category to
2080 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2082 * choose.cc: Ran indent.
2083 (set_action): When the requested trust level is missing and the level was not
2084 user requested, set the action to ACTION_SAME_CURR.
2086 2001-11-01 Christopher Faylor <cgf@redhat.com>
2088 * Makefile.in (mingw_getopt.o): Fix typo in non-verbose compilation.
2090 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2092 * choose.cc (_view::init_headers): Resync with the paint logic.
2094 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2096 * choose.cc (add_required): Allow SKIP and SRC_ONLY for currently installed
2099 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2101 * choose.cc (default_trust): Autoset currently installed packages per the user's
2102 selection of prev/curr/exp.
2104 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2106 * splash.cc (dialog_proc): Return TRUE as specified in the WIN32 API.
2108 2001-11-02 Pavel Tsekov <ptsekov@syntrex.com>
2110 * geturl.cc (is_showing): Remove.
2111 (is_local_install): New static variable. Controls whether the
2112 progress dialog and the supporting thread will be created.
2113 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the WIN32 API.
2114 (init_dialog): Remove usage of SetForegroundWindow and is_showing.
2115 This prevents the progress dialog to gain control over the
2116 application and fixes the "setup.exe going to background" problem.
2117 (progress): Use is_local_install.
2118 (get_url_to_string): Set is_local_install.
2119 (dismiss_url_status_dialog): Use is_local_install.
2120 * install.cc (dialog_proc): Return TRUE as specified in WIN32 API.
2121 (init_dialog): Remove usage of SetForegroundWindow.
2122 This prevents the progress dialog to gain control over the
2123 application and fixes the "setup.exe going to background" problem.
2125 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2127 * choose.cc (list_click): Change r to row for clarity.
2128 When we shrink the list below 1 page, scroll to the top of the list.
2129 (_view::click): Return the actual change for contractions.
2130 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the Win32 API.
2132 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2134 * choose.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
2135 * localdir.cc: Ran indent.
2136 (get_root_dir_now): New function.
2137 (save_local_dir): New function.
2138 (dialog_cmd): Use it and swap cygwin root selection and local dir selection order.
2139 (do_local_dir): If there is a saved local dir, read it in.
2140 * net.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
2141 * root.cc (dialog_cmd): Ditto.
2142 * source.cc (dialog_cmd): Ditto.
2144 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
2146 * choose.cc(list_vscroll): Return 0 as required by win32.
2147 (list_hscroll): Ditto.
2148 (list_click): Ditto.
2150 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
2154 * main.cc(WinMain): Use __argv to retrieve command line parameters.
2155 * Makefile,in: Remove argv.o.
2157 2001-11-01 Matt Hargett <matt@use.net>
2159 * geturl.cc (progress): Change int to unsigned int to eliminate
2161 * (get_url_to_string): Check for NULL pointer.
2162 * mount.cc (find2): Use free instead of delete for malloc'd
2164 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Fix memory leak.
2166 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
2168 * choose.cc(_view::insert_under): Handle linen > nlines and lines[linen] with neither
2169 a package nor a category. The lines[linen] bug was reported by Matt (matt@usa.net).
2170 (read_installed_db): Bugfix for testing whether a package has a source tarball.
2171 Reported by Matt (matt@usa.net).
2172 * geturl.cc(dialog): Rename gw_dialog to local_gw_dialog to avoid programmer
2173 confusion and lint errors. Reported by Matt (matt@usa.net).
2175 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
2177 * argv.cc: New file, converts arguments for -mwindows programs. (Simplified derivation
2180 * Makefile,in: Add argv.o and mingw_getopt.o to setup.exe object list.
2181 Add mingw_getopt.o build rule.
2182 * main.cc(WinMain): Initialise argv and argc for use by getopt.
2184 2001-10-27 Christopher Faylor <cgf@redhat.com>
2186 * res.rc: Rearrange info on top line slightly.
2188 2001-10-27 Christopher Faylor <cgf@redhat.com>
2190 * desktop.cc (make_passwd_group): Move file creation earlier in the
2191 process to ensure that passwd-grp.bat reflects desired operation.
2193 2001-27-10 Trevor Forbes <t4bs@hotmail.com>
2195 * postinstall.cc (each): Remove "*.done" file else rename will fail.
2197 2001-10-16 Christopher Faylor <cgf@redhat.com>
2199 * res.rc: Oops. Take 640x480 screen size into account.
2201 2001-10-16 Christopher Faylor <cgf@redhat.com>
2203 * res.rc: Enlarge chooser screen.
2205 2001-10-12 Christopher Faylor <cgf@redhat.com>
2207 * Makefile.in: Accomodate changes to w32api_include macro.
2209 2001-10-12 Christopher Faylor <cgf@redhat.com>
2211 * Makefile.in: Use correct flags for windres.
2213 2001-10-12 Christopher Faylor <cgf@redhat.com>
2215 * Makefile.in (CFLAGS): Remove -nostdinc from CFLAGS.
2217 2001-10-12 Christopher Faylor <cgf@redhat.com>
2219 * choose.cc (pick_line::paint): Reorganize after botched patch.
2221 2001-10-12 Christopher Faylor <cgf@redhat.com>
2223 * choose.cc (pick_line::paint): Add missing declaration.
2225 2001-10-10 Ralf Habacker <Ralf.Habacker@freenet.de>
2227 * choose.cc (pick_line::paint): Add package name to sdesc for display.
2229 Wed Sep 26 21:39:00 Robert Collins rbtcollins@hotmail.com
2231 * choose.cc (_view::insert_pkg): Correctly exit loop.
2232 * iniparse.y (register_category): Always insert new categories.
2234 Fri Sep 21 13:56:32 2001 Christopher Faylor <cgf@cygnus.com>
2236 * inilex.l (yylex): For comments, eat all characters up to, but not
2239 Sun Aug 26 12:50:01 2001 John Marshall <jmarshall@acm.org>
2241 * fromcwd.cc (found_file): Use correct package name when adding an
2242 unknown package rather than random stack garbage.
2244 Sun Aug 12 14:25:21 2001 Christopher Faylor <cgf@cygnus.com>
2246 * desktop.cc (make_passwd_group): .bat files need \r\n endings.
2248 Wed Aug 8 13:53:47 2001 Christopher Faylor <cgf@cygnus.com>
2250 * desktop.cc (etc_profile): Leave environment variables untouched.
2252 2001-08-07 Corinna Vinschen <corinna@vinschen.de>
2254 * autoload.c: Add dynamic load statements for NT/W2K
2255 advapi32 functions not available in 9x/ME.
2256 * main.cc (set_default_dacl): New function.
2257 (WinMain): Call `set_default_dacl' if running on NT/W2K.
2259 Sat Aug 4 21:35:53 2001 Christopher Faylor <cgf@cygnus.com>
2261 * ini.h (_CategoryPackage): Change pkg field to pkgname for
2263 * choose.cc: Use pkgname field when referencing _CategoryPackage
2265 (fill_missing_category): Don't add excluded packages.
2266 (default_trust): Ditto.
2267 (_view::insert_pkg): Ditto.
2268 * iniparse.y (register_category): Use consistent variable name.
2270 2001-07-09 Egor Duda <deo@logos-m.ru>
2272 * choose.cc: Use system foreground color for text output.
2274 Sat Jul 7 00:40:28 2001 Christopher Faylor <cgf@cygnus.com>
2276 * choose.cc (set_action): Use default trust for determining reinstall
2278 (default_trust): Set default trust.
2279 (pick_line::paint): Allow source selection when reinstalling or
2282 Fri Jul 6 18:08:49 2001 Christopher Faylor <cgf@cygnus.com>
2284 * choose.cc (isinstalled): Modify to properly accomodate special case
2286 (set_action): Check downloaded components, not installed components if
2288 (set_existence): Always include full list of files when "download
2291 Fri Jul 6 00:37:05 2001 Christopher Faylor <cgf@cygnus.com>
2293 * choose.cc (pick_line::paint): Properly display "na" field when no
2296 Thu Jul 5 00:34:23 2001 Christopher Faylor <cgf@cygnus.com>
2298 * choose.cc (scan2): Ensure that older versions do not show up in
2301 Mon Jul 2 15:47:59 2001 Christopher Faylor <cgf@cygnus.com>
2303 * choose.cc (set_action): Allow "Skip" action if trust != installed.
2304 * res.rc: Fix copyright.
2306 Sat Jun 30 14:05:21 2001 Michael A Chase <mchase@ix.netcom.com>
2308 * res.rc (IDD_LOCAL_DIR): Change caption to match the other dialog
2310 (IDD_CHOOSE): Adjust horizontal size so package names are visible.
2312 * choose.cc: Restore some more changes from 2001-06-25, throughout.
2313 (paint): Wrap some excessively long lines.
2314 (pick_line::paint): Ditto. Move the arrow in the "Current" column
2315 right to where it belongs. Move the source checkbox slightly to the
2317 (do_choose): List categories and required packages in setup.log.full.
2319 Sat Jun 30 23:04:59 2001 Christopher Faylor <cgf@cygnus.com>
2321 * choose.cc (scan2): Restore source scanning eliminated by previous checkin.
2323 Sat Jun 30 15:18:33 2001 Christopher Faylor <cgf@cygnus.com>
2325 * ini.h (struct _Info): Add "derived" element.
2326 * choose.cc (scan2): Try to place unknown tar files into proper slot
2327 when package exists in setup.ini but tar file does not.
2329 Sat Jun 30 13:39:00 2001 Robert Collins <rbtcollins@hotmail.com>
2331 * choose.cc (create_listview): Call set_view_mode with VIEW_CATEGORY.
2332 (do_choose): Log the first category name.
2334 Fri Jun 29 23:07:44 2001 Christopher Faylor <cgf@cygnus.com>
2336 *ini.h: Reapply 2001-06-25 changes.
2337 * choose.cc (add_required): Ditto. Default to "Keep" state if
2338 UNINSTALL and product is installed. Default to curr state if SKIP,
2340 (keep_or_skip): New function. Returns skip or keep state depending on
2341 installed state of package.
2342 (default_trust): Use keep_or_skip to set state.
2343 (_view::insert_pkg): Use calloc to allocate lines.
2344 (set_view_mode): Adapt 2001-06-25 change to set_full_list here.
2346 Sat Jun 30 11:01:00 2001 Robert Collins <rbtcollins@hotmail.com>
2348 * choose.cc: Remove globals full_list, headers, package_indexes and
2350 Add globals cat_headers, pkg_headers and chooser.
2351 (add_required): New function.
2352 (paint): Use the chooser for header details.
2353 Call into the chooser to paint each line.
2354 (list_click): Use new global variables.
2355 Call into the chooser to handle the click.
2356 Repaint the entire view if packages have been added or removed.
2357 (note_width): Get passed a headers struct rather than using a global
2359 (fill_missing_category): New function.
2360 (default_trust): Skip non-"Required" or "Misc" packages.
2361 (pick_line::set_line (Package *)): New function.
2362 (pick_line::set_line (Category *)): New function.
2363 (pick_line::paint): New function.
2364 (pick_line::click): New function.
2365 (_view::_view): New function.
2366 (_view::set_view_mode): New function.
2367 (_view::mode_caption): New function.
2368 (_view::set_headers): New function.
2369 (_view::init_header): New function.
2370 (_view::insert_pkg): New function.
2371 (_view::insert_category): New function.
2372 (_view::insert_at): New function.
2373 (_view::insert_under): New function.
2374 (_view::clear_view): New function.
2375 (viewsplusplus): New function.
2376 (_view::client): New function.
2377 (set_view_mode): Use new chooser functionality.
2378 (set_full_list): Use new global variables.
2379 (create_listview): Instantiate chooser.
2380 Remove all hardcoded headers[] code.
2381 (dialog_cmd): On trust changes, check dependencies.
2382 (getcategorybyname): New function.
2383 (getpackagecategorybyname): New function.
2384 (scan2): Use case-insensitive package comparison.
2385 (do_choose): Use fill_missing_category ().
2386 Show some category data.
2387 * ini.h: Protect against multiple inclusion.
2389 (_CategoryPackage): New struct.
2390 (_Category): New struct.
2391 (_Package): Change category to Category * from char *.
2392 (extern Category category): New global variable.
2393 (extern in ncategories): Ditto.
2394 (getcategorybyname): New prototype.
2395 (catpackagecategorybyname): New prototype.
2396 (register_category): New prototype.
2397 (add_category): New prototype.
2398 * iniparse.y: Parse multiple categories per package.
2399 (category): New global variable.
2400 (ncategories): New global variable.
2401 (new_package): Compare package against NULL, not 0.
2402 (new_requirement): Source formatting fix.
2403 (register_category): New function.
2404 (add_category): New function.
2405 * res.rc: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
2406 IDC_CHOOSE_VIEWCAPTION: New control.
2407 * resource.h: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
2408 IDC_CHOOSE_VIEWCAPTION: New control.
2409 Increment _APS_NEXT_CONTROL_VALUE.
2411 Mon Jun 25 00:56:37 2001 Michael A Chase <mchase@ix.netcom.com>
2413 * choose.cc (paint): Wrap excessively long lines.
2414 (list_click): Ditto.
2415 (create_listview): Ditto.
2416 (do_choose): Ditto. Replace TABs and remove CRs in lines written to
2417 setup.log.full. Allow "Yes" for source exists in setup.log.full when
2418 installing from local directories.
2420 Mon Jun 25 00:56:37 2001 Christopher Faylor <cgf@cygnus.com>
2422 * choose.cc (set_action): Only clear srcpicked when moving to next
2423 state. Allow source installation if it exists in the current "trust"
2424 state. Don't move to skip state when package is installed.
2425 (list_click): Don't allow source clicking when no source is available.
2426 (set_full_list): Display package when not is_full_action.
2427 * ini.h (is_full_action): Define.
2429 Sun Jun 17 12:06:14 2001 Christopher Faylor <cgf@cygnus.com>
2431 * install.cc (check_for_old_cygwin): New function. First stab at
2432 checking for old cygwin versions.
2433 (do_install): Call check_for_old_cygwin if there were no errors during
2436 Sat Jun 16 11:33:51 2001 Michael A Chase <mchase@ix.netcom.com>
2438 * choose.cc (_Info::_Info): Test _source paramenter for non-NULL rather
2439 than zeroed "source" element.
2441 Fri Jun 15 20:54:43 2001 Christopher Faylor <cgf@cygnus.com>
2443 * choose.cc (scan2): Insert unknown tar archives, found on disk, into
2444 the highest available "hole" in the trust array.
2446 Fri Jun 15 00:20:48 2001 Christopher Faylor <cgf@cygnus.com>
2448 * choose.cc (set_existence): Use pointer method for indexing in trust
2450 (create_listview): Ditto.
2451 (scan2): Ditto. Also, use consistent variable name for indexing into
2453 * ini.h (Package): Reorganize info array for easier scanning.
2455 Fri Jun 15 00:01:51 2001 Christopher Faylor <cgf@cygnus.com>
2457 * choose.cc (isinstalled): Eliminate special download only test.
2458 (set_action): Don't move to next state if in ACTION_SAME range and not
2460 (choose_caption): Display "Retrieve" rather than "Reinstall" when just
2462 (do_choose): Sort packages after all packages have been read.
2463 Accomodate the fact that first element in trust array is empty so that
2464 log files don't report the wrong trust value.
2465 * iniparse.y (new_package): Malloc space for package name or suffer
2468 Thu Jun 14 22:43:59 2001 Robert Collins <rbtcollins@hotmail.com>
2470 * ini.h (Dependency): New structure. Declare new function.
2471 * inilex.l (yylex): Detect new setup.ini options - category and requires.
2472 * iniparse.y: Declare new setup.ini token values.
2473 (yyparse): Parse new token values.
2474 (new_requirement): New function.
2476 Thu Jun 14 22:43:26 2001 Christopher Faylor <cgf@cygnus.com>
2478 * choose.cc (read_installed_db): Eliminate obsolete code.
2480 Thu Jun 14 22:11:53 2001 Christopher Faylor <cgf@cygnus.com>
2482 * choose.cc (set_action): Set trust on "redo".
2483 (_Info::_Info): New constructor.
2484 (read_installed_db): Use new constructor. Use trusts type for
2486 * ini.h (struct _Info): Label struct, add constructor.
2487 (Package): Make installed_ix a type 'trusts.'
2488 * install.cc (uninstall_one): Unset any installed info for current
2490 (install_one): Allocate new Info struct for installed reflecting new
2492 (do_install): Don't output line to installed.db if package is being
2495 Thu Jun 14 20:33:01 2001 Robert Collins <rbtcollins@hotmail.com>
2497 * choose.cc (getpkgbyname): Use consistent method for scanning package
2500 Wed Jun 13 23:33:08 2001 Christopher Faylor <cgf@cygnus.com>
2502 * choose.cc: Add some comments.
2503 (getpkgbyname): Use strcasecmp for comparisons.
2505 Wed Jun 13 16:07:00 2001 Christopher Faylor <cgf@cygnus.com>
2507 * install.cc (do_install): Avoid checking for download action if
2508 package wasn't currently retrieved.
2510 Wed Jun 13 11:27:22 2001 Christopher Faylor <cgf@cygnus.com>
2512 * choose.cc: Eliminate extra array throughout. Use element in package
2513 structure instead. Use pointers rather than array indexes where
2515 (set_action): New function to set next action based on current.
2516 (choose_caption): New function. Returns display caption.
2517 (check_existence): Change arguments. Use pointer to 'info' structure.
2518 (set_existence): Use pointer rather than array index.
2519 (default_trust): Use trusts enum for second argument.
2520 (set_full_list): Honor exclude element in package structure.
2521 (build_labels): Eliminate.
2522 (base): Make global. Use const char * argument.
2523 (get_package_version): Eliminate.
2524 (getpkgbyname): New function.
2525 (read_installed_db): Use parse_filename to get version info.
2526 * desktop.cc (make_passwd_group): Use getpkgbyname function.
2527 * download.cc (get_file_size): const argument.
2528 (do_download): Use is_download_action to determine when something
2529 should be downloaded.
2530 * filemanip.h: Add some functions.
2531 * ini.cc (do_ini): Use NULL rather than 0 for pointer assignment.
2532 * ini.h: Use enums for actions and trusts.
2533 (is_download_action): New macro.
2534 (is_upgrade_action): Ditto.
2535 (is_uninstall_action): Ditto.
2536 (struct Package): Add new fields.
2537 * inilex.l (yylex): Detect new setup.ini options.
2538 * iniparse.y: Declare new tokens.
2539 (yyparse): Detect exclude keyword. Fill out version field even if
2541 (new_package): Use greater granularity when allocating package array to
2542 avoid repeated calls to realloc.
2543 * install.cc (exists): const argument.
2544 (uninstall_one): Take pkg argument.
2545 (install_one): Ditto. Eliminate unneeded arguments which can be
2546 derived from package info.
2547 (do_install): Iterate over package array using a pointer. Use
2548 is_download_action to control when package should be downloaded.
2549 * tar.cc (tar_open): const argument.
2550 * tar.h: Refloect const argument.
2552 2001-05-31 Michael Chase mchase@ix.netcom.com
2554 * main.cc (WinMain): Add setup version to starting setup.log entry
2556 Tue May 29 21:37:58 2001 Yukihiko Sohda <sohda@is.titech.ac.jp>
2558 * inilex.l: Add + to list of valid string characters.
2560 Mon May 28 20:54:50 2001 Christopher Faylor <cgf@cygnus.com>
2562 * Makefile.in: Remove more stuff in the clean target.
2564 Mon May 28 18:24:59 2001 Christopher Faylor <cgf@cygnus.com>
2566 * Makefile.in: Correctly generate iniparse.h.
2568 Tue Mar 6 19:14:00 2001 Corinna Vinschen <corinna@vinschen.de>
2570 * geturl.cc (get_url_to_file): Add parameter `allow_ftp_auth'.
2571 * geturl.h: Change declaration of `get_url_to_file' accordingly.
2572 * netio.cc (NetIO::NetIO): Add parameter `allow_ftp_auth'.
2573 Set member `ftp_auth'.
2574 (NetIO::open): Add parameter `allow_ftp_auth'. Use it in calls
2575 to constructors of derived classes.
2576 (NetIO::get_ftp_auth): New method.
2577 * netio.h: Change class definition accordingly.
2578 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Add parameter `allow_ftp_auth'.
2579 Take global variables `net_ftp_user' and `net_ftp_passwd' into account.
2580 Add code for ftp authentication retry.
2581 * nio-ftp.h: Change class definition accordingly.
2582 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Add parameter `allow_ftp_auth'.
2583 Add code for ftp authentication retry in case of proxy connection.
2584 * nio-http.h: Change class definition accordingly.
2585 * res.rc: Add FTP authentication dialog.
2586 * resource.h: Add new constants used in res.rc.
2587 * state.h: Add variables `net_ftp_user' and `net_ftp_passwd'.
2589 Sun May 27 17:12:23 2001 Christopher Faylor <cgf@cygnus.com>
2591 * res.rc (IDD_SPLASH): Add a copyright year.
2593 Sun May 27 15:42:18 2001 Christopher Faylor <cgf@cygnus.com>
2595 * Makefile.in: Make iniparse.y produce a c++ file.
2596 * choose.cc (set_existence): Revert 2001-05-27 change.
2597 * ini.cc: Remove "C" from declaration of yyparse.
2598 * iniparse.y (yyparse): Fill out version field by default when a binary
2599 install is detected and no version has been set yet.
2600 * install.cc (do_install): Mount things earlier so that we can use
2601 proper mount table settings. Don't remove mounts since they are now
2603 * mount.cc (create_mount): Reread the mount table after establishing a
2605 (read_mounts): Explicitly clear root_here to allow multiple uses of
2606 this function. Ensure that there is no garbage in the table when we've
2607 exhausted all of the mounts in the registry.
2608 (cygpath): Accomodate ./ in path.
2610 Sun May 27 02:59:07 2001 Christopher Faylor <cgf@cygnus.com>
2612 Use parse_filename method to parse filenames throughout. Use
2613 get_root_dir to retrieve the current root directory throughout. Set
2614 const in argument list, where appropriate, throughout.
2615 * choose.cc (set_existence): Detect case of uninstalled package with no
2617 (parse_filename): New function.
2618 * filemanip.h (fileparse): New structure.
2619 * mount.cc (read_mounts): Remember where we found the root mount.
2620 (set_root_dir): New function.
2621 (get_root_dir): Ditto.
2622 * mount.h: Declare new functions.
2623 * site.cc (get_root_dir_now): Renamed from get_root_dir.
2624 (save_site_url): Use new function name.
2625 (get_initial_list_idx): Ditto.
2627 Sat May 26 21:23:59 2001 Christopher Faylor <cgf@cygnus.com>
2629 * choose.cc: Use a constant throughout to deal with chooser icon
2631 * res.rc (IDD_CHOOSE): Increase size of chooser box.
2633 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
2635 * choose.cc (do_choose): Fix incorrect assignment of trust setting to
2636 use when Redownload or Sources Only selected.
2638 Thu May 10 22:35:59 2001 Christopher Faylor <cgf@cygnus.com>
2640 Reformat file after botched patch formatting.
2641 * choose.cc (which_trust): Eliminate variable.
2642 (default_trust): Don't set which_trust.
2643 (do_choose): Use selected trust when reinstalling or installing source.
2645 Thu May 10 21:04:18 2001 Christopher Faylor <cgf@cygnus.com>
2647 Change concat to cygpath throughout.
2648 Change map_filename to cygpath throughout.
2649 * concat.cc (vconcat): New function.
2650 (concat): Use vconcat.
2651 * concat.h: Reflect above.
2652 * install.cc (map_filename): Eliminate.
2653 (install_one): Free dest_file.
2654 * mount.cc (find2): Expect input key to be pointing to mount record.
2655 (in_table): New function.
2656 (is_admin): Move from root.cc.
2657 (read_mounts): New function.
2658 (path_prefix_p): New function.
2659 (cygpath): New function.
2660 * mount.h: Define new functions and structure.
2661 * root.cc (in_table): Move to mount.cc.
2662 (do_root): Call read_mounts to initialize root stuff and mount table.
2663 * site.cc (get_root_dir): Ditto.
2665 2001-05-09 Matt Hargett <matt@use.net>
2667 * Makefile.in: Remove *.rc from clean.
2669 Tue May 8 23:33:38 2001 Christopher Faylor <cgf@cygnus.com>
2671 * choose.cc (scan2): Fix incorrect setting of TRUST_CURR rather than
2672 TRUST_PREV which produced "0" versions.
2674 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
2676 * resource.h: Add new field IDC_CHOOSE_INST_TEXT. Modify
2677 _APS_NEXT_CONTROL_VALUE to account for addition of
2678 IDC_CHOOSE_INST_TEXT.
2679 * res.rc (IDD_CHOOSE): Modify choose dialog to use new field
2680 IDC_CHOOSE_INST_TEXT for screen text. Modify choose Dialog to allow
2681 hot keys to select Prev, Curr, Exp.
2682 * ini.h: Add new actions for ACTION_REDO and ACTION_SRC_ONLY. Modify
2683 define for LOOP_PACKAGES to include new actions ACTION_REDO and
2685 * choose.cc: Add new Trusts for TRUST_REDO and TRUST_SRC_ONLY.
2686 (paint): Modify to check TRUST_SRC_ONLY when determining Bitmap for
2687 source Checkbox to use.
2688 (build_labels): Add logic to allow for selection of Source only
2689 Download/ReDownload/Install/Reinstall and also to Redownload/Reinstall
2690 current version binary.
2691 (dialog_proc): Add conditional display for file selection prompt based
2692 on download vs install using IDC_CHOOSE_INST_TEXT.
2693 (do_choose): Add new logic for TRUST_REDO and TRUST_SRC_ONLY selection
2694 and modify logic for TRUST_UNINSTALL, TRUST_KEEP, and TRUST_NONE to
2695 handle the instance where Source Download/Install was selected. Modify
2696 log file to store appropriate information regarding Action selected and
2697 the new actions that were added (I.E.: ACTION_REDO and
2699 * download.cc: Add include for <unistd.h> and "port.h".
2700 (download_one): Modify parameter list to include the selected action
2701 for the file to be downloaded. Modify size check against expected size
2702 to include check for ACTION_REDO and ACTION_SRC_ONLY. Modify rename of
2703 .tmp file to also remove the destination file if exists due to ability
2704 to redownload source and binary now.
2705 (do_download): Modify to also use ACTION_REDO and ACTION_SRC_ONLY in
2706 calculation of Download Bytes. Modify to also use ACTION_REDO and
2707 ACTION_SRC_ONLY in determining files selected for download.
2708 * install.cc (uninstall_one): Add check to treat a Reinstall like an
2709 upgrade so current version will be uninstalled prior to reinstall.
2710 (do_install): Add logic to handle ACTION_REDO and ACTION_SRC_ONLY for
2711 uninstalling and installing binary and source packages.
2712 * desktop.cc (make_passwd_group): Modify logic to account for a Source
2713 only cygwin install when checking for cygwin to determine need for
2714 mkpasswd and mkgroup.
2716 Mon May 7 23:33:30 2001 Matt Hargett <matt@use.net>
2718 * winsup/cinstall/res.rc: Added accelerators and improved focus order.
2719 Removed WS_DISABLED from "OK" buttons to accomodate default focus
2720 changes in net.cc and source.cc.
2721 * winsup/cinstall/net.cc (dialog_proc): If no radio button is selected,
2722 a default is selected.
2723 * winsup/cinstall/source.cc (dialog_proc): Ditto.
2724 (check_if_enable_next): Removed. No longer needed since a radio button
2725 will always be selected.
2726 (load_dialog): Removed call to check_if_enable_next.
2727 (dialog_cmd): Ditto. Also added default to switch.
2729 Tue Apr 24 23:42:02 2001 Christopher Faylor <cgf@cygnus.com>
2731 * res.rc: Resize affected text.
2733 Tue Apr 24 23:35:31 2001 Christopher Faylor <cgf@cygnus.com>
2735 * net.cc (do_net): Default to direct download.
2736 * res.rc: Move default selections to the top.
2738 2001-04-18 Earnie Boyd <earnie@users.sourceforge.net>
2740 * win32.h: Remove the definitions for _UNION_NAME and _STRUCT_NAME.
2741 Must now include <windows.h> and not the pieces.
2742 * choose.cc (create_listview): Clean up type mismatch problems.
2743 * dialog.h (NEXT(id)): Ditto.
2744 * geturl.cc (dialog): Ditto.
2745 * install.cc (dialog): Ditto.
2746 * splash.cc (load_dialog): Ditto.
2748 Wed Apr 18 18:59:21 2001 Christopher Faylor <cgf@cygnus.com>
2750 * tar.cc (class gzbz): Define dummy virtual functions.
2752 Wed Apr 18 16:01:21 2001 Christopher Faylor <cgf@cygnus.com>
2754 * Makefile.in: Add bz2 include/library support.
2755 * filemanip.h: New file.
2756 * choose.cc (find_tar_ext): New function. Returns TRUE if .tar.gz or
2758 (scan2): Reorganize to use find_tar_ext, accomodating .bz2 extension.
2759 (read_installed_db): Ditto.
2761 * fromcwd.cc (found_file): Ditto.
2762 (do_fromcwd): Ditto.
2763 * tar.cc (class gzbz): New super class for uncompression support.
2764 (gz): New class for gzip support.
2765 (bz): New class for bzip2 support.
2766 (tar_open): Use gzbz class to control file opening.
2767 (tar_ftell): Ditto for returning position in file.
2768 (skip_file): Ditto for reading file.
2769 (tar_next_file): Ditto.
2770 (tar_read_file): Ditto.
2771 (tar_close): Ditto for close.
2773 * zlib/configure.in: Force NM substitution.
2775 * source.cc (do_source): Default to "Install from Internet".
2777 2001-03-16 Brian Keener <bkeener@thesoftwaresource.com>
2779 * nio-file.cc (NetIO_File::NetIO_File): Use `get_file_size' instead of
2781 * choose.cc (list_click): Correct inability to select source code for
2783 (scan2): Modify to skip source tarballs when scanning disk for
2784 installable packages.
2786 2001-03-10 Chris Abbey <chris_abbey@yahoo.com>
2788 * install.cc: install sources into /usr/src instead
2789 of /, also include the sizes of source tarballs
2791 * download.cc: include sizes of source tarballs in
2792 total_download_bytes.
2794 Tue Mar 6 19:31:00 2000 Corinna Vinschen <corinna@vinschen.com>
2796 * download.cc (get_file_size): Remove `static'.
2798 Tue Mar 6 19:11:00 2000 Corinna Vinschen <corinna@vinschen.com>
2800 * tar.cc (tar_open): Use `get_file_size' instead of `stat'.
2802 2001-03-06 Brian Keener <bkeener@thesoftwaresource.com>
2804 * choose.cc (paint): Modify message for nothing to download vs
2805 nothing to install/update based on installation method.
2806 (list_click): Modify to skip versions in selection process if
2807 installing from local directory and installation file does not exist.
2808 Also leaves Source Action set to N/A if the source file does not exist
2809 and installing from local directory.
2810 (check_existence): New method to check current existence of installation
2811 files based on selected installation method.
2812 (set_existence): New method to set the current existence of installation
2813 files based on selected installation method.
2814 (best_trust): Modify decision process for best trust to base decision on
2815 current trust selected (IE: Prev, Curr, or Test), existence of file and
2816 installation method selected.
2817 (default_trust): Add logic to capture the current trust level and the
2818 trust selected for the given package.
2819 (set_full_list): Expand decision criteria for displaying a package in
2820 the selection list to include file existence/non-existence and selected
2821 installation method.
2822 (build_labels): Modify criteria for label addition to include
2823 installation method and file existence/non-existence.
2824 (create_listview): Modify to establish package trust level for each
2825 package before setting up the display list. Also modification to set
2826 current trust button as the default.
2827 (dialog_cmd): Set response for Prev, Curr, Test button push to perform
2828 a reset of the selection list in addition to setting the default trust.
2829 (get_package_version): New method to provide reusable code for
2830 determining the package version from the file name for a specified
2832 (scan2): Modify to use new method get_package_version and
2833 also enhance handling of the build for the structures package and
2835 (read_installed_db): Modify to use the new method
2836 get_package_version and also enhance handling of the build for the
2837 structures package and extra.
2838 (do_choose): Add additional initialization of package and extra
2839 structures. Modify to use read_installed_db all the time despite
2840 install method. Modify output to setup.log.full log file to increase
2841 readability by adding additional spacing, expanded code and available
2843 * ini.h: Add new fields install_exists, source_exists and
2844 partial_list_display to the structure definition for package.
2845 * res.rc (IDD_CHOOSE): Modify choose dialog Prev, Curr, and Test
2846 pushbuttons by replacing with Radio Buttons thus allowing the
2847 operator to better determine which is selected.
2849 2001-02-20 Brian Keener <bkeener@thesoftwaresource.com>
2851 * download.cc (do_download): Add new variables total_download_bytes and
2852 total_download_bytes_sofar for download progress meter. Add loop
2853 to accumulate the total bytes to download from the selected packages.
2854 * geturl.cc: Add state.h and diskfull.h to include list. Add new
2855 variables gw_iprogress, gw_pprogress, gw_progress_text,
2856 gw_pprogress_text, and gw_iprogress_text to allow for addition of
2857 total packages download progress meter and disk full percent
2858 progress meter. Add variables total_download_bytes and
2859 total_download_bytes_sofar for use by progress meters.
2860 (dialog_proc): Add new variables gw_iprogress, gw_pprogress,
2861 gw_progress_text, gw_pprogress_text, and gw_iprogress_text to
2862 allow for addition of total packages download progress meter and disk
2863 full percent progress meter.
2864 (init_dialog): Ditto.
2866 (get_url_to_file): Ditto.
2867 * geturl.h: Add external definition for total_download_bytes and
2868 total_download_bytes_sofar.
2869 * res.rc: Add two additional progress meters (IDC_DLS_IPROGRESS)
2870 and (IDC_DLS_PPROGRESS) and three text objects (IDC_DLS_PROGRESS_TEXT)
2871 and (IDC_DLS_IPROGRESS_TEXT, IDC_DLS_PPROGRESS_TEXT) for use in the
2873 * resource.h: Add new fields for progress meters and text and update
2874 _APS_NEXT_CONTROL_VALUE.
2876 Wed Feb 21 13:05:00 2000 Corinna Vinschen <vinschen@redhat.com>
2878 * download.cc (get_file_size): Check for INVALID_HANDLE_VALUE instead
2881 Wed Feb 21 11:21:00 2000 Corinna Vinschen <vinschen@redhat.com>
2883 * download.cc (download_one): Add missing parenthesis.
2885 Mon Feb 19 18:59:00 2000 Corinna Vinschen <vinschen@redhat.com>
2887 * download.cc (get_file_size): New function. Eliminates the need
2889 (download_one): Call `get_file_size' instead of `stat'. This
2890 workarounds a problem with mingw's `stat' call.
2892 2001-02-07 Earnie Boyd <earnie@users.sourceforge.net>
2894 * Makefile.in: (%.o: %.rc): Specify --include-dir $(w32api_include).
2895 This is to allow cinstall to build with 2.95.2-7 and to make the
2896 use of headers consistent.
2898 2000-12-26 Earnie Boyd <earnie_boyd@yahoo.com>
2900 * Makefile.in (autoload.o): Add target to specify -fno-inline-functions
2902 Tue Dec 26 03:46:00 2000 Matt Hargett <matt@use.net>
2904 * winsup/cinstall/res.rc: Added accelerators and improved focus
2907 2000-12-10 Egor Duda <deo@logos-m.ru>
2909 * choose.cc (paint): Use system background color for text output.
2911 Sun Dec 10 19:05:25 2000 Christopher Faylor <cgf@cygnus.com>
2913 * Makefile.in: Use CXX for linking and for compiling .cc files.
2914 * configure.in: Find correct c++ compiler.
2915 * configure: Regenerate.
2917 2000-11-17 DJ Delorie <dj@redhat.com>
2919 * splash.cc (load_dialog): Make message more obvious.
2922 Fri Nov 17 17:15:21 2000 Christopher Faylor <cgf@cygnus.com>
2924 * Makefile.in: Use g++ to link so that libstdc++.a gets used. This is
2925 necessary for newer compilers.
2927 Wed Nov 9 2:19:00 2000 Corinna Vinschen <vinschen@redhat.com>
2929 * desktop.cc: Include "ini.h" and "version.h".
2930 (make_passwd_group): Skip the function on 9x/ME boxes when an
2931 older version of Cygwin has been installed which doesn't
2932 support mkpasswd/mkgroup on 9x/ME.
2933 * install.cc: Move the `LOOP_PACKAGES' and `pi' macros to...
2936 Wed Nov 8 17:10:00 2000 Corinna Vinschen <vinschen@redhat.com>
2938 * desktop.cc (make_passwd_group): Don't exit when started
2939 on 9x/ME since mkpasswd/mkgroup are usable on 9x/ME now.
2941 Sun Nov 5 12:51:42 2000 Jason Tishler <jt@dothill.com>
2943 * install.cc (do_install): Add call to set_cygdrive_flags to sync
2945 * mount.cc (set_cygdrive_flags): New function.
2946 (get_cygdrive_flags): Ditto.
2947 (default_cygdrive): Ditto.
2948 (set_cygdrive_flags): Ditto.
2949 * mount.h: Add prototype for set_cygdrive_flags.
2951 2000-10-23 DJ Delorie <dj@redhat.com>
2953 * ini.h: add source actions
2954 * fromcwd.cc: check for available sources
2955 * res.rc: add checkbox bitmaps
2958 * choose.cc: add source column
2959 * download.cc: download sources if called for
2960 * install.cc: [un]install sources too
2962 2000-10-22 DJ Delorie <dj@redhat.com>
2964 * choose.cc (build_labels): Don't skip TRUST_PREV completely; only
2965 ignore it wrt full_list if there's already a version installed.
2966 (do_choose): Sort the list.
2967 (package_sort): New.
2969 2000-10-12 DJ Delorie <dj@redhat.com>
2971 * res.rc: Add more error strings.
2972 * resource.h: Ditto.
2973 * iniparse.y (new_package): re-initialize if needed.
2974 * download.cc (do_download): Keep track of errors; notify and
2976 * install.cc (do_install): Ditto.
2978 2000-10-05 DJ Delorie <dj@redhat.com>
2980 * Makefile.in: fix %.cc rule
2982 2000-10-04 DJ Delorie <dj@redhat.com>
2984 * desktop.cc: quote HOME and USER, don't . ./.profile
2986 * choose.cc (build_labels): don't include in partial list just
2987 because there's a *previous* version available.
2989 * install.cc (do_install): if installing from local directory with
2990 setup.ini and the file isn't found, look in "." also. Note errors.
2992 2000-10-02 DJ Delorie <dj@redhat.com>
2994 * ini.cc (do_ini): save setup.ini locally
2996 2000-10-02 Chris Abbey <cabbey@bresnanlink.net>
2998 * desktop.cc: quote escapes in prompt
3000 2000-10-02 Jason Tishler <jt@dothill.com>
3002 * root.cc (is_admin): New function.
3003 (read_mount_table): Check for administrative priviledges and set
3004 installation scope as appropriate.
3006 2000-09-28 DJ Delorie <dj@redhat.com>
3008 * nio-ftp.cc (ftp_line): handle continuations more robustly
3010 2000-09-14 Brian Keener <bkeener@thesoftwaresource.com>
3012 * res.rc: increased the size of the site dialog (IDD_SITE) & the
3013 corresponding list box to provide for more URL's to be listed.
3014 Modified the position of the Back, Next and Cancel buttons to
3015 correspond to the new size of the dialog.
3017 2000-09-13 DJ Delorie <dj@redhat.com>
3019 * install.cc (do_install): update disk fullness once per package
3020 to improve performance
3022 * choose.cc (create_listview): call ReleaseDC
3024 Mon Sep 11 22:40 2000 Harold L Hunt II <harold@compasstechnologies.com>
3026 * mkdir.cc: Create directories when ERROR_FILE_NOT_FOUND is
3027 returned, as it seems Samba 2.0.6+ returns this instead of
3028 ERROR_PATH_NOT_FOUND
3030 Mon Sep 11 19:35:24 2000 Christopher Faylor <cgf@cygnus.com>
3032 * site.cc (get_initial_list_idx): Don't default to saved URL if it
3035 2000-09-07 DJ Delorie <dj@redhat.com>
3037 * splash.cc: use version.h, not local decl
3038 * res.rc: add "old version" message
3041 * fromcwd.cc (canonicalize_version): make global
3042 * iniparse.y: add setup-version support, fix bug in blank line
3045 * inilex.l: add [exp] as alias for [test], add setup-version
3046 * Makefile.in (version.c): add setup-version tag
3048 * desktop.cc (do_desktop): remove 1.1 version number
3049 (do_desktop_setup): ditto
3051 * ini.cc (do_ini): zero out package list just in case we redo it.
3053 2000-09-07 Jeffrey Juliano <juliano@cs.unc.edu>
3055 * choose.cc (list_click): Check for nindexes==0; if so, return.
3057 2000-09-06 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
3059 * localdir.cc: new, local package directory selection dialog; cd
3060 into selected directory
3061 * Makefile.in (OBJS): add localdir.o
3062 * dialog.h: add prototype for do_local_dir
3063 * main.cc (WinMain): initialize local_dir to cwd; add call to
3065 * net.cc (dialog_cmd): make DO_LOCAL_DIR next dialog
3066 * source.cc (dialog_cmd): ditto
3067 * res.rc: add DO_LOCAL_DIR dialog; remove "current directory" from
3068 presented choices in IDD_SOURCE; add IDS_ERR_CHDIR error string
3069 * resource.h: defines for DO_LOCAL_DIR dialog; define IDS_ERR_CHDIR
3070 * root.cc (dialog_cmd): make DO_LOCAL_DIR previous dialog
3071 * state.h: add local_dir variable
3073 2000-09-06 Brian Keener <bkeener@thesoftwaresource.com>
3075 * desktop.cc: added logic to handle to the new dialog and to
3076 default the setting for the new checkboxes based on whether the
3077 desktop icon or start menu link already exist.
3078 (desktop_icon): correction to desktop directories for desktop icon
3079 creation. Additional logic added for Win95 which does not appear
3080 to have Common Directories so if Common selected and null uses
3082 (start_menu): Additional logic added for Win95 which does not
3083 appear to have Common Directories so if Common selected and null
3084 uses normal directory.
3085 (do_desktop_setup): moved the saving of the icon, creation of the
3086 bat file, profile, passwd, Start Menu link and desktop shortcut to
3087 this method from do_desktop. Made the creation of the desktop
3088 icon and start menu link conditional on settings of new dialog
3089 created for desktop.
3090 * install.cc (do_install): changed next from IDD_S_DESKTOP to
3092 * main.cc (WinMain): changed case IDD_S_DESKTOP to IDD_DESKTOP.
3093 * res.rc: added new resource to create a desktop dialog with 2
3094 checkboxes for creating the desktop icon and start menu link.
3095 * resource.h: changed IDD_S_DESKTOP to IDD_DESKTOP and added two
3096 new controls: IDC_ROOT_MENU and IDC_ROOT_DESKTOP for new dialog.
3097 * state.h: added root_menu and root_desktop for use in dialog.
3099 2000-08-29 DJ Delorie <dj@redhat.com>
3101 * choose.cc (scan_downloaded_files): scan for existing files, so
3102 that the user only sees new downloads.
3104 * nio-ie5.cc (NetIO_IE5): pre-check for wininet.dll, enable dial-up
3105 * site.cc (do_site): if we can't download the mirror list, go back
3106 to the net setup box to choose another transport.
3107 * autoload.c: add more functions
3108 * Makefile.in (ALL_DEP_LDLIBS): remove wininet.a
3109 * resource.h: add WININET message
3111 * net.cc (do_net): no longer default to IE5
3112 * simpsock.h (class SimpleSocket): new, simplify socket operations
3113 * simpsock.cc: ditto
3114 * nio-http.h: new, for direct http protocol
3115 * nio-http.cc: ditto
3116 * nio-ftp.h: new, for direct http protocol
3118 * netio.cc (set_url): move initialization here to handle redirections
3119 (open): add direct http/ftp
3120 * netio.h (NetIO::set_url): new
3122 * log.cc (log_save): create directory for log if needed
3124 * hash.cc, hash.h: new
3125 * Makefile: add hash.o
3126 * choose.cc: enable "uninstall" option
3127 * download.cc: invert action test to accomodate uninstalling
3128 * ini.h: add ACTION_UNINSTALL
3129 * install.cc: add uninstall functionality
3130 * res.rc: make install tag changeable
3131 * resource.h: add uninstall resources
3133 * res.rc: update mirror list URL
3135 2000-08-24 DJ Delorie <dj@redhat.com>
3137 * log.cc, log.h: new files
3138 * Makefile.in (OBJS): add log.o
3139 * tar.cc: use exit_setup instead of exit
3140 * dialog.cc (fatal): use exit_setup instead of ExitProcess
3141 * msg.cc (fatal): ditto
3142 * install.cc (dialog_cmd): ditto
3143 * ini.cc (do_ini): ditto
3144 * main.cc (main): add logging
3145 * source.cc (do_source): ditto
3146 * root.cc (do_source): ditto
3147 * site.cc (do_site): ditto
3148 * other.cc (do_other): ditto
3149 * net.cc (do_net): ditto
3150 * choose.cc (do_choose): ditto
3151 * download.cc (do_download): ditto
3152 * install.cc (do_install): ditto
3153 * msg.cc (fatal): ditto
3155 * res.rc: mark password boxes as *being* password boxes.
3157 * fromcwd.cc (canonicalize_version): use multiple buffers so that multiple
3158 calls won't use the same buffer.
3159 * choose.cc (create_listview): don't default to full list if no changes
3160 (base): return computed value, not temporary :-(
3161 (do_choose): don't use installed.db if we're only downloading.
3163 2000-08-23 DJ Delorie <dj@redhat.com>
3165 * nio-ie5.cc (NetIO_IE5): Fix authentication logic
3166 * nio-ie5.h (flush_io): new
3167 * netio.cc (load_dialog): note when we're initializing the dialog
3168 box, and ignore changes to the edit fields then.
3170 2000-08-21 DJ Delorie <dj@redhat.com>
3174 * fromcwd.cc (found_file): don't remember the canonicalized version
3176 * choose.cc (paint): print "nothing to do" message when list is empty.
3177 (build_labels): Use version "0.0" if no version is available.
3178 (create_listview): default to full list if nothing to install/update.
3179 (base): new, returns basename of file
3180 (read_installed_db): compare base names, not full paths
3182 2000-08-11 DJ Delorie <dj@redhat.com>
3184 * choose.cc: add new chooser dialog
3185 * fromcwd.cc: use IDD_CHOOSE
3186 * ini.cc: use IDD_CHOOSE
3187 * main.cc: use IDD_CHOOSE
3188 * ini.h: cosmetic changes
3189 * res.rc: add choose dialog, bitmaps
3190 * choose-spin.bmp: new
3191 * choose-rtarrow.bmp: new
3192 * resource.h: add choose dialog controls
3194 * mount.cc: remove debug statement
3196 2000-08-08 DJ Delorie <dj@redhat.com>
3198 * Makefile.in (version.c): make version checking more robust
3199 * splash.cc (load_dialog): handle case where there's no version
3201 2000-08-07 DJ Delorie <dj@redhat.com>
3203 * (all): add cvsid tags
3204 * Makefile.in: generate version.c from ChangeLog, add splash.o
3206 * res.rc: add splash screen
3208 2000-08-02 DJ Delorie <dj@redhat.com>
3210 * net.cc: remove proxy password code
3211 * res.rc: remove proxy user/pass from net, add auth dialogs
3212 * netio.cc,h: add sys/proxy auth methods
3213 * nio-ie5: use them, check for http status codes
3214 * state.h: add system authorization
3216 * concat.cc (concat): canonicalize x:// to x:/ (exception to ://
3219 2000-08-02 Norman Vine <nhv@yahoo,com>
3221 * msg.cc (mbox): added MB_TOPMOST to MessageBox type flags
3223 2000-08-01 DJ Delorie <dj@redhat.com>
3225 * postinstall.cc (each): don't rename files we ignore
3226 (do_postinstall): set CYGWINROOT to root_dir, chdir there
3228 * desktop.cc: have /etc/profile call ~/.profile and ~/.bashrc
3230 2000-07-31 DJ Delorie <dj@redhat.com>
3232 * desktop.cc: reverse PATH so /usr/bin precedes /bin
3234 2000-07-18 DJ Delorie <dj@redhat.com>
3236 * autoload.c: new, autoload dlls that might not be available.
3237 * Makefile.in (OBJS): add autoload.o
3239 * res.rc: rewrite root options (text/binary, system/user) to be
3242 * site.cc (get_site_list): trim displayed URL, sort by domain
3244 * net.cc (do_net): make IE5 default to checked, for now
3246 * choose.cc (do_choose): sort packages correctly
3247 * ini.cc (do_ini): handle parse errors more gracefully
3249 (fprintf): line buffer output
3250 (do_ini): if we can't load setup.ini, go back to the site list.
3251 * ini.h: add "unknown" trust level
3252 * inilex.l: absorb unknown trust levels and key/value pairs,
3253 add line number logic
3254 * iniparse.y: handle parse errors more gracefully.
3255 * install.cc: skip packages with no valid install entry
3257 2000-07-17 DJ Delorie <dj@cygnus.com>
3259 * coding standards fixups, many files
3260 * mkdir.cc: warn about deletions *before* deleting them
3262 2000-07-17 Jeff Juliano <juliano@cs.unc.edu>
3264 * res.rc (IDD_OTHER_URL): reorder to give default focus to entry
3266 * other.cc (dialog_cmd): save download site URL
3267 * site.cc (get_root_dir): new
3268 (save_mirror_site): new
3269 (dialog_cmd): save download site URL
3270 (get_site_list): make list big enough to add prev site
3271 (get_initial_list_idx): new, read last-used URL from file and
3272 append it to site_list
3273 (do_site): call get_initial_list_idx
3275 * concat.cc (concat): avoid segfault when first parm is null
3277 2000-07-13 DJ Delorie <dj@cygnus.com>
3279 * postinstall.cc: new
3280 * Makefile.in: add postinstall.o
3281 * concat.h: add backslash ()
3283 * desktop.cc (etc_profile): don't do postinstall
3284 (backslash): moved to concat.cc
3286 (make_postinstall_script): run directly
3287 (do_desktop): chain to do_postinstall
3288 * dialog.h: add exit_msg, do_postinstall
3289 * download.cc: use exit_msg
3291 * main.cc: add postinstall, exit_msg
3292 * resource.h: add postinstall
3293 * README: add more to-do items
3295 2000-07-12 DJ Delorie <dj@cygnus.com>
3297 * desktop.cc: add /etc/postinstall/ support
3298 * install.cc: add more "standard" directories
3300 2000-07-11 DJ Delorie <dj@cygnus.com>
3302 * desktop.cc: create /etc/profile
3303 * desktop.cc: fix include syntax
3304 * Makefile.in: add auto-dependencies
3305 * root.cc: support system vs user
3313 * desktop.cc: make sure we use backslashes, not slashes.
3314 * desktop.cc: don't set PATH in cygwin.bat, create /etc/passwd
3315 * geturl.cc: change math for percentage to avoid overflow
3317 * download.cc: post "download complete" message.
3318 * root.cc: pre-fill in defaults if needed, don't start
3319 browse at root_dir unless it's set.
3320 * desktop.cc: quote $PATH in case it has spaces in it
3322 2000-07-10 DJ Delorie <dj@cygnus.com>
3324 * Makefile.in: add desktop.o and mklink2.o
3325 * dialog.h: add do_desktop
3326 * install.cc: create standard directories, call do_desktop
3327 * res.rc: add cygwin.ico as a file also
3328 * desktop.cc: new, do shortcuts, batch files, and icons
3329 * mklink2.c: new, for COM
3330 * README: update to-do list
3332 2000-07-10 DJ Delorie <dj@cygnus.com>
3334 * ini.cc (do_ini): don't worry about timestamps if we're not
3335 actually installing.
3337 2000-07-09 DJ Delorie <dj@cygnus.com>
3339 * Makefile.in: add -I$(srcdir) for ini.h
3341 2000-07-06 DJ Delorie <dj@cygnus.com>
3343 * Replace everything with a new GUI version
3344 * zlib/gzio.c: add gzctell() for progress displays
3346 2000-06-22 DJ Delorie <dj@cygnus.com>
3348 * setup.c (tarx): re-add call to write_pkg()
3350 2000-06-07 DJ Delorie <dj@cygnus.com>
3352 * cygcalls.c: new, call cygwin1.dll functions directly
3353 * cygcalls.h: header for same
3354 * Makefile.in: add cygcalls.[ch], remove mount/cygpath/umount
3355 exes, fix cinstall.rc dependencies.
3356 * path.c: remove unneeded code
3357 * setup.c: use cygcalls instead of xcreate_process.
3358 uncompress embedded files with zlib
3359 add "-d" for "download only"
3361 postpone mount changes until very end
3362 add download progress indicators
3363 pack multi-column listings more
3364 auto-delete temp files
3365 customize banner message according to options
3366 prompt user for text/binary mounts
3367 add warnings about empty setup directory, root installs, etc
3369 2000-05-24 DJ Delorie <dj@cygnus.com>
3371 * tar.c: New file; built-in tar using zlib.
3372 * tar.h: New file; header for same.
3373 * ctar.c: New file; test program for same.
3374 * Makefile.in: add built-in tar, remove tar.exe and gzip.exe
3375 * path.c (pathcat): convert slashes and canonicalize, instead of aborting
3376 * setup.c (tarx): add support for built-in tar
3377 (main): accept unix-style slashes, check root dir for drive letters,
3378 warn about installing in /, make sure cwd is empty for internet installs,
3379 defer mounts to end of install, support built-in tar.
3381 Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
3383 Fix compiler warnings throughout.
3384 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
3386 * setup.c: Make 'root' global.
3387 (istargz): Return pointer to "stem" of matched .tar.gz file.
3388 (tarx): Special case cygwin-20000301 to == cygwin-1.1.0.tar.gz. Remove
3389 bogus check_for_installed check.
3390 (recurse_dirs): Add preliminary support for .bat file execution.
3391 (create_uninstall): Eliminate unneeded parameter.
3392 (do_start_menu): Ditto.
3394 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
3395 scanning for the version number. Eliminate unneeded argument to
3397 (getdownloadsource): Add 'name' to list of names rather than url.
3398 (main): Eliminate unneeded argument in get_pkg_stuff. Eliminate
3399 unneeded argument in mkmount and do_start_menu.
3401 2000-05-18 DJ Delorie <dj@cygnus.com>
3403 * setup.c (optionprompt): allow multi-column, clean up message
3404 about more options, be more robust about user input.
3405 (getdownloadsource): make the mirror URL a macro.
3406 (main): do mounts after done prompting user.
3408 Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
3410 * setup.c (cleanup): Inverse order of deletion stands a better chance
3411 of deleting cygpath.exe. Still seems to suffer from occasional races,
3413 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
3415 (output_file): Defend against an unlikely handle leak.
3416 (main): Don't set up signal handling until we have something special to
3419 Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
3421 * path.c (kill_cygpath): Delete function.
3422 (exit_cygpath): Make more defensive so that it can be called at any
3424 (cygpath_pipe): Don't set up signal here. Do it in main().
3425 * setup.c (istargz): New function.
3426 (recurse_dirs): Look for *.gz pattern rather than *tar.gz since *tar.gz
3427 inexplicably fails on samba mounted partitions. Use istargz to match
3429 (processdirlisting) Use istargz to match tar.gz tail.
3430 (cleanup): Renamed from filedel.
3431 (cleanup_on_signal): New function. Called on CTRL-C.
3432 (main): Record handle of main thread so that it can be suspended when
3433 CTRL-C occurs. Set up cleanup_on_signal signal handler.
3435 Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
3437 * setup.c (do_start_menu): Don't concatenate paths to already built
3440 Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
3442 * path.c (exit_cygpath): Wait for subprocess to exit before returning.
3443 (cygpath_pipe): Don't call exit_cygpath. Let main atexit routine do
3445 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
3447 * setup.c (filedel): Call exit_cygpath here so that we can be assured
3448 that cygpath subprocess has died. This allows us to delete cygpath.exe
3450 (optionprompt): Initialize response to -1 so that second screen of
3451 mirrors will appear.
3452 (get_pkg_stuff): Don't attempt to use HKCLU. Pass root to init_pkgs.
3453 * setup.h: Reflect init_pkgs prototype change.
3455 Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
3457 * pkg.c (init_pkgs): Accept an argument to control what root registry
3459 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
3460 * setup.h: Reflect init_pkgs prototype change.
3462 Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
3464 * error.c (winerror): Respond to gcc warning.
3465 * path.c (cygpath_pipe): Ditto.
3466 * setup.c (filedel): Call sa_cleanup on deleteme.
3467 (create_shortcut): Coerce argument to eliminate compiler warning.
3468 (tarx): Use installed version of cygwin1.dll, overriding tar file name.
3469 (refmatches): New function. Tests if ref is contained in a list of
3470 packages to install.
3471 (filematches): New function. Tests if filename matches one of a list
3472 of packages to install.
3473 (recurse_dirs): Accept list of packages to install. Generalize tar.gz
3474 test to accomodate _tar.gz.
3475 (prompt): Ensure that stdout is flushed prior to asking for input.
3476 (findhref): Initialize variables to quiet a compiler warning.
3477 (processdirlisting): Accept list of packages to install. Special case
3478 cygwin tar file version number.
3479 (downloaddir): Accept list of packages to install.
3480 (downloadfrom): Ditto.
3481 (create_uninstall): Eliminate unneeded variables. Quote arguments to
3483 (do_start_menu): Don't create uninstall bat file if updating or user
3484 specified a list of packages.
3485 (mkmount): Eliminate unneeded variables.
3486 (get_pkg_stuff): New function. Checks for previous unversioned
3488 (main): Accept -u and -f options and package names on the command line.
3489 Use get_pkg_stuff to initialize package information. Umount /etc.
3490 Call recurse_dirs and downloadfrom with list of package to install.
3491 Ensure that all /usr/local directories are created. Output
3492 installation time to setup.log.
3493 * setup.h: Add some prototypes.
3494 * xsystem.c (xcreate_process): Eliminate unneeded variable.
3496 Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
3498 * setup.c (optionprompt): Don't overlap display of already seen options
3500 (geturl): Print name of site which we're connecting to rather than "ftp
3502 (processdirlisting): Avoid URLs that contain a /. or ./ . Is this
3503 test too simplistic?
3504 (do_start_menu): Use pathcat to build path to <root>\bin to avoid
3505 problems when user chooses x:\ as their root.
3506 (main): For now, default to "non-update" mode. Allow -u option to
3509 Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
3512 * setup.c (tarx): Skip already installed or older packages. Report
3513 when a package has been updated.
3514 (processdirlisting): Skip already installed or older packages.
3515 (main): Detect -f option for forced installation. Initialize pkg stuff
3517 * setup.h: Add pkg definitions.
3519 Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
3521 * setup.c (findhref): Return NULL on empty string. Eat any trailing
3523 (processdirlisting): Attempt to limit recursively processing the same
3526 Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
3528 * setup.c (filedel): New function.
3529 (output_file): Keep track of files extracted from setup.exe for
3530 subsequent deletion.
3531 (tarx): Close process handle of child tar process or suffer handle
3533 (getdownloadsource): Close mirror file so that it can be unlinked.
3534 (processdirlisting): Return total number of files extracted.
3535 (main): Initialize array of files to delete. Ensure that files are
3536 closed on exit. Make the directory that setup.exe is started from ==
3537 the directory where temporary files are placed. Issue an error if no
3538 files were found to download.
3539 * xsystem.c (xcreate_process): Close the thread handle. Close the
3540 process handle if we waited for it to exit.
3542 Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
3544 * setup.c (main): Change version number output.
3546 Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
3548 * setup.c (tarx): Use full path name to tar executable.
3549 (main): Build full pathname to tar executable. Create /usr/local/etc
3552 Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
3554 * setup.c (findhref): Change method for scanning for href= to choose
3555 the last one on the line. This is still not foolproof and probably
3556 will need to be changed eventually. Don't abort if no "size" field is
3558 (processdirlisting): Fix boolean algebra.
3560 Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
3562 * main.c (tarx): Add some code for future task of unmounting
3563 directories encountered in tar file.
3565 Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
3567 * setup.c (findhref): Decode file size, when appropriate.
3568 (needfile): New function. Returns 1 when file should be
3570 (processdirlisting): Always download if file size does not
3571 match. Prompt when download fails for some reason.
3572 (getdownloadsource): Accomodate findhref argument changes.
3574 Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
3576 Throughout, use global session handle rather than reinitializing for
3577 each connect. Don't pass session as an argument to setup.c functions.
3578 * setup.c (geturl): Only issue "Connecting to.." message when using
3579 http or first time for ftp since subsequent connections will be fast.
3580 (processdirlisting): Allocate space for "N" when user has specified
3581 "N"ever option so that it can be subsequently freed.
3582 (main): Abort if we can't get the list of mirrors.
3584 Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
3586 * setup.c (main): Umount /bin and /lib.
3588 Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
3590 * setup.c (main): Create an empty /var/run/utmp.
3592 Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
3594 * Makefile.in: Add umount to list of files to include in setup.exe.
3595 * setup.c (xumount): New function for unmounting directories.
3596 (main): Unmount /usr.
3597 (mkmount): Unmount "unix directory" before trying to figure out where
3598 to create the directory.
3600 Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
3602 * setup.c (mkmount): Use xcreate_process to start mount process,
3604 (main): Don't do buffering on stdout or prompts won't be displayed
3605 correctly if running in a cygwin shell with CYGWIN=tty.
3607 Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
3609 * setup.c (main): Remove the CYGWIN environment variable before
3610 starting any cygwin programs.
3612 Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
3614 * setup.c (geturl): Use alternative method for finding filename part of
3616 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
3617 (downloaddir): Unlink file containing dir listing.
3618 (downloadfrom): Ditto.
3620 Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
3622 * setup.c (main): Disallow running setup.exe from the "root".
3624 Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
3626 Use "warning" function, where appropriate, to output warnings.
3627 * setup.c (warning): New function -- outputs warning to console and log
3629 (tarx): Fix index used to reset file protection.
3630 (main): Open the log file earlier so that more stuff can be sent to it.
3632 Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
3634 * setup.c (processdirlisting): Make "N" option a little less aggressive.
3636 Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
3638 * setup.c (tarx): Wait to after tar has completed to reset protections
3639 or suffer races with tar process.
3641 Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
3643 * Makefile.in: Eliminate duplicate -nostdinc from CFLAGS.
3644 * setup.c (create_uninstall): Create the uninstall .bat file in the
3645 "root" so that we can remove the /bin directory. Add bin\cygwin.bat to
3646 list of files to be deleted. Fix directory detection for determining
3647 when to use 'rmdir'.
3648 (do_start_menu): Add /usr/local/bin to the path.
3649 (main): Add slop to files.array allocation so that we don't have to
3650 worry about reallocating the array when it grows too large when doing
3651 some trivial "pushes". Add /tmp and /usr/local/{bin,lib} to list of
3654 Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
3656 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
3659 Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
3661 * path.c (kill_cygpath): New cleanup function.
3662 (exit_cygpath): New cleanup function.
3663 (cygpath_pipe): New function. Sets up cygpath in the background for
3664 translating filenames.
3665 (pathcvt): Use background cygpath for file translation.
3666 * setup.c (tarx): New function. Called to extract tar files, capture
3667 logging output, and translate it to Windows format.
3668 (recurse_dirs): Use 'tarx' function to extract files.
3669 (create_uninstall): Use file list built up by tarx rather than reading
3671 (mkmount): Add ability to mount root.
3672 (main): Track elapsed install time. Mount root.
3673 * starry.h: Add index field to strarry for tracking of tarx's usage of
3675 * xsystem.c (xcreate_process): Return proces handle when not waiting.
3677 Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
3680 (pathfp): New function. Preliminary work for new -f cygpath
3682 * Makefile.in: Add new file.
3683 (pathcvt): Move to new file.
3687 * setup.c (processdirlisting): Always open file in text mode.
3688 (create_uninstall): Ditto.
3689 (getdownloadsource): Ditto.
3692 Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
3694 * xsystem.c: New file.
3695 * Makefile.in: Accomodate new file.
3696 * setup.c (xsystem): Move to new file.
3697 (recurse_dirs): Accept handle to output log file. Don't use ">"
3698 redirection to trap tar output. Use supplied handle instead.
3699 (create_uninstall): Accept FILE pointer to opened log file. Don't
3700 unlink log file here.
3701 (do_start_menu): Accept FILE pointer to pass to create_uninstall.
3702 (main): Open log file here and pass it to various functions. Unlink
3705 Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
3707 Change occurrences of .usr.bin to .bin throughout.
3708 * setup.c (geturl): Increase number of retries to 20. Let user know
3709 what's going on during long connects.
3710 (processdirlisting): Accept "A"lways and "N"ever as update options.
3711 (create_uninstall): Load cygwin1.dll from the current directory rather
3713 (main): Add some expository text.
3715 Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
3717 * Makefile.in: Change method for compressing cygwin1.dll to avoid
3718 creating a cygwin1.dll in the current directory. Ensure the addition
3719 of -nostdinc to MINGW_CFLAGS.
3721 Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
3723 * Makefile.in: Augment clean target.
3725 Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
3727 * README: Added info about non-working mingw implementation
3728 * gzip.exe.gz: Replace with a version from the same build as the other
3730 * tar.exe.gz: Replace with a version from the same build as the other
3732 * mount.exe.gz: Add to repository until, mingw can build setup.
3733 * cygpath.exe.gz: ditto
3734 * cygwin1.dll.gz: ditto
3735 * setup.c: Overwrite /bin and /lib mounts. Generate working shortcut
3736 for Win9x. Display only a screenfull of options at a time. Call all
3737 tools with an absolute path.
3738 * setup.dsp: Restore the carriage returns, MS Developer Studio needs
3743 Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
3745 * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab
3746 cygwin1.dll from ../cygwin subdirectory.
3747 * gzip.exe.gz: Update.
3748 * tar.exe.gz: Update.
3750 Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
3752 * Makefile.in: Use ZLIB variable as a target.
3754 Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
3756 * Makefile.in: Eliminate traces of cygwinisms. Don't link with
3757 libmsvcrt.a. It's unneeded. Build .rc file on the fly from various
3759 * configure.in: Locate correct objcopy.
3760 * configure: Regenerate.
3762 Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
3764 * Makefile.in: New file.
3765 * configure.in: New file.
3766 * configure: New file.
3767 * zlib/Makefile.am: New file.
3768 * zlib/configure.in: New file.
3769 * zlib/aclocal.m4: New file.
3770 * zlib/acinclude.m4: New file.
3771 * zlib/configure: Regenerate from configure.in.
3772 * zlib/Makefile.in: Regenerate from Makefile.am