1 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
3 * mount.cc (create_mount): Avoid a const char*->char* warning.
6 2002-02-05 Jason Tishler <jason@tishler.net>
8 * download.cc (do_download_thread): Fix off-by-one error.
10 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
12 * configure.in (CXXFLAGS): Substitute at configure time, not runtime.
13 * configure (CXXFLAGS): Regenerate.
14 * Makefile.in (iniparse.o): Build via default rules - no errors now.
15 * README: TODO list updates.
17 2002-02-19 Michael A Chase <mchase@ix.netcom.com>
19 * String++.cc (String::concat):: Remove.
20 (String::vconcat):: Ditto.
21 * String++.h (String::concat):: Remove.
22 (String::vconcat):: Ditto.
23 * archive_tar.cc: Don't include concat.h.
24 * archive_tar_file.cc: Don't include concat.h.
25 * compress_bz.cc (compress_bz::peek): Don't log unneeded messages.
26 (compress_bz::seek): Ditto.
27 (compress_bz::~compress_bz): Ditto.
28 * compress_gz.cc (compress_gz::peek): Ditto.
29 (compress_gz::error): Ditto.
30 (compress_gz::~compress_gz): Ditto.
31 * concat.cc (vconcat): Remove.
33 * concat.h (vconcat): Remove.
35 * desktop.cc (desktop_icon): Use new cygpath.
36 (make_etc_profile): Ditto.
38 (make_passwd_group): Ditto.
40 (check_desktop): Remove concat use.
41 (check_start_menu): Ditto.
42 * download.cc (download_one): Use new mkpath_p correctly.
44 * fromcwd.cc: Don't include concat.h.
45 * geturl.cc (get_url_to_membuf): Use String log() call.
46 (get_url_to_file): Ditto.
47 * install.cc: Don't include concat.h.
48 (uninstall_one): Use LOG_PLAIN.
50 (install_one_source): Ditto.
51 (install_one): More char to String conversion.
52 (do_install_thread): Use new cygpath.
54 * io_stream.cc (io_stream::move): Use new log().
55 * io_stream_cygfile (io_stream_cygfile::io_stream_cygfile): Use new cygpath.
56 (io_stream_cygfile::exists): Ditto.
57 (io_stream_cygfile::remove): Ditto.
58 (io_stream_cygfile::mklink): Ditto.
59 (io_stream_cygfile::write): Ditto.
61 (io_stream_cygfile::move): Ditto.
62 * io_stream_file.cc: Don't include log.h.
63 (io_stream_file::write): Don't log unneeded messages.
64 * localdir.cc: Don't include concat.h.
65 (LocalDirPage::OnNext): Use LOG_PLAIN.
66 * log.cc: Don't include log.h.
67 (exit_setup): Use new cygpath.
68 * log.h (log_level): Add new level LOG_PLAIN.
69 * main.cc (WinMain): Use new log().
70 * mount.cc (SLASH_P): New macro from concat.h.
71 (cygpath): Make String version globally visible.
72 Remove varargs version.
74 * msg.cc (mbox): Use LOG_PLAIN.
75 * net.cc (NetPage::OnNext): Ditto.
76 * nio-ftp.cc (ftp_line): Use new log().
77 * nio-http.cc: Don't include log.h.
78 (retry_get): Use alternative url variable.
79 * package_db.cc: Don't include concat.h.
80 (packagedb::flush): Don't use concat.
81 * package_meta.cc: Don't include concat.h.
82 (packagemeta::uninstall): Use new cygpath.
83 * postinstall.cc (do_postinstall): Ditto.
84 * root.cc (RootPage::OnNext): Use LOG_PLAIN.
85 * script.cc: Don't include concat.h.
86 (init_run_script): Use new cygpath.
87 (run_script): More char * to String conversion.
88 (try_run_script): Ditto.
89 * site.cc: Don't include concat.h.
90 (SitePage::OnNext): Use LOG_PLAIN.
91 (SitePage::OnMessageCmd): Use new log().
92 * source.cc (SourcePage::OnDeactivate): Use LOG_PLAIN.
94 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
96 * Makefile.in (OBJS): Add new object.
97 * PickCategoryLine.cc (PickCategoryLine::paint): Print a "+" before the name.
98 * PickCategoryLine.h (PickCategoryLine::bucket): Use the String class.
99 * PickLine.h (Pickline::key): Change to a String to help plug leaks.
100 (PickLine::Pickline): Accept a String for the key.
101 * PickPackageLine.cc (PickPackageLine::paint): Convert all char use to Strings.
102 * PickPackageLine.h (PickPackageLine::PickPackageLine): The key is automatically
104 * PickView.cc (PickView::note_width): Convert all char * use to Strings.
105 (PickView::init_header): Move category length checking out of the inner loop for
107 Convert all char use to Strings.
108 * PickView.h: Include the String++ header.
109 (PickView::note_width): Update the prototype.
110 * String++.cc: New file, implements a reference counting string class.
111 * String++.h: New file, declares a reference counting string class.
112 * archive.cc: Include String++ instead of concat.
113 (archive::extract_file): Convert char * usage to Strings.
114 * archive.h: Inlude the String++ header.
115 (archive::extract_file): Update prototype.
116 (archive::next_file_name): Convert to a String.
117 (archive::linktarget): Ditto.
118 * archive_tar.cc (archive_tar::next_file_name): Convert to String usage.
119 (archive_tar::linktarget): Ditto.
120 * arhive_tar.h: Update the copyright.
121 Explicitly include the relevant headers.
122 (tar_map_result_type): Convert to String usage.
123 (archive_tar::next_file_name): Update prototype.
124 (archive_tar::linktarget): Ditto.
125 * category.cc (Category::Category): Update initialisers.
126 Convert to String usage.
127 (Categorycmp): Update to String usage.
128 * category.h: Include the String++ header.
129 (Category::Category): Update to String usage.
130 (Category::name): Ditto.
131 (Category::key): Ditto.
132 * choose.cc: Remove concat.h, it's not needed.
133 (scan2): Update to String usage.
135 * cygpackage.cc: Update includes for use of String class.
136 (cygpackage::cygpackage): Update for String usage.
137 (cygpackage::set_canonical_version): Ditto.
138 (cygpackage::destroy): Ditto.
139 (cygpackage::getfirstfile): Ditto.
140 (cygpackage::getnextfile): Ditto.
141 (cygpackage::Name): Ditto.
142 (cygpackage::Vendor_version): Ditto.
143 (cygpackage::Package_version): Ditto.
144 (cygpackage::Canonical_version): Ditto.
145 (cygpackage::set_sdesc): Ditto.
146 (cygpackage::set_ldesc): Ditto.
147 * cygpackage.h: Include String++.h for parsing this file.
148 (cygpackage::cygpackage): Update for String usage.
149 (cygpackage::set_canonical_version): Ditto.
150 (cygpackage::destroy): Ditto.
151 (cygpackage::getfirstfile): Ditto.
152 (cygpackage::getnextfile): Ditto.
153 (cygpackage::Name): Ditto.
154 (cygpackage::Vendor_version): Ditto.
155 (cygpackage::Package_version): Ditto.
156 (cygpackage::Canonical_version): Ditto.
157 (cygpackage::set_sdesc): Ditto.
158 (cygpackage::set_ldesc): Ditto.
159 (cygpackage::name): Ditto.
160 (cygpackage::vendor): Ditto.
161 (cygpackage::packagev): Ditto.
162 (cygpackage::canonical): Ditto.
163 (cygpackage::fn): Ditto.
164 (cygpackage::sdesc): Ditto.
165 (cygpackage::ldesc): Ditto.
166 * desktop.cc: Update includes for use of String class.
167 (batname): Update for String usage.
171 (desktop_icon): Ditto.
172 (make_cygwin_bat): Ditto.
173 (make_etc_profile): Ditto.
175 (make_passwd_group): Ditto.
177 (check_desktop): Ditto.
178 (check_startmenu): Ditto.
179 * dialog.cc (eget): Update for String usage.
180 (egetString): New function.
181 (eset): New variant for Strings.
182 * dialog.h: Include String++.h for parsing this file.
183 (egetString): New function.
184 (eset): New variant for Strings.
185 * diskfull.cc (diskfull): Update for String usage.
186 * diskfull.h: Include String++.h for parsing this file.
187 (diskfull): Update for String usage.
188 * download.cc: Update includes for use of String class.
189 (check_for_cached): Update for String usage.
190 (download_one): Ditto.
191 * filemanip.cc (get_file_size): Ditto.
193 (parse_filename): Ditto.
195 * filemanip.h: Include String++.h for parsing this file.
196 (fileparse): Update for String usage.
198 (parse_filename): Ditto.
199 Don't consider '_' to be a separator.
201 * find.cc: Update includes for use of String class.
202 (find_sub): Make more flexible.
203 (find): Update for String usage.
204 * find.h (find): Use Strings.
205 * fromcwd.cc (found_file): Update for String usage.
207 (init_dialog): Ditto.
208 (get_url_to_membuf): Ditto.
209 (get_url_to_string): Ditto.
210 (get_url_to_file): Ditto.
212 (get_url_to_membuf): Ditto.
213 (get_url_to_string): Ditto.
214 (get_url_to_file): Ditto.
216 (add_subdirs): Ditto.
217 * ini.cc: Update includes for String usage.
218 (find_routine): Update for String usage.
219 (do_remote_ini): Ditto.
220 (do_ini_thread): Ditto.
221 * ini.h (ini_init): Ditto.
222 * inilex.l: Update includes for String usage.
223 (ini_init): Update for String usage.
225 (add_correct_version): Ditto.
226 * install.cc: Update includes for String usage.
227 (install_one_source): Update for String usage.
228 (uninstall_one): Ditto.
229 (replace_one): Ditto.
230 (install_one_source): Ditto.
231 (do_install_thread): Ditto.
232 * io_stream.cc: Update includes for String usage.
233 (io_stream::open): Update for String usage.
234 (io_stream::mkpath_p): Ditto.
235 (io_stream::remove): Ditto.
236 (io_stream::mklink): Ditto.
237 (io_stream::move_copy): Ditto.
238 (io_stream::move): Ditto.
239 (io_stream::exists): Ditto.
240 * io_stream.h: Update includes to allow correct parsing.
241 (io_stream::open): Update for String usage.
242 (io_stream::mkpath_p): Ditto.
243 (io_stream::remove): Ditto.
244 (io_stream::mklink): Ditto.
245 (io_stream::move_copy): Ditto.
246 (io_stream::move): Ditto.
247 (io_stream::exists): Ditto.
248 * io_stream_cygfile.cc: Update includes for String usage.
249 (get_root_dir_now): Update for String usage.
250 (io_stream_cygfile::io_stream_cygfile): Ditto.
251 (io_stream_cygfile::~io_stream_cygfile): Ditto.
252 (io_stream_cygfile::exists): Ditto.
253 (io_stream_cygfile::remove): Ditto.
254 (io_stream_cygfile::mklink): Ditto.
256 (io_stream_cygfile::set_mtime): Ditto.
257 (io_stream_cygfile::move): Ditto.
258 (io_stream_cygfile::get_size): Ditto.
259 * io_stream_cygfile.h: Update includes for String usage.
260 (io_stream_cygfile::io_stream_cygfile): Update for String usage.
261 (io_stream_cygfile::~io_stream_cygfile): Ditto.
262 (io_stream_cygfile::exists): Ditto.
263 (io_stream_cygfile::remove): Ditto.
264 (io_stream_cygfile::mklink): Ditto.
266 (io_stream_cygfile::set_mtime): Ditto.
267 (io_stream_cygfile::move): Ditto.
268 (io_stream_cygfile::get_size): Ditto.
269 (io_stream_cygfile::fname): Ditto.
270 (io_stream_cygfile::lmode): Ditto.
271 * io_stream_file.cc: Update includes for String usage.
272 (io_stream_file::io_stream_file): Update for String usage.
273 (io_stream_file::~io_stream_file): Ditto.
274 (io_stream_file::exists): Ditto.
275 (io_stream_file::remove): Ditto.
276 (io_stream_file::mklink): Ditto.
277 (io_stream_file::set_mtime): Ditto.
278 (io_stream_file::move): Ditto.
279 (io_stream_file::get_size): Ditto.
280 * io_stream_file.h: Update includes for String usage.
281 * io_stream_file.cc: Update includes for String usage.
282 (io_stream_file::io_stream_file): Update for String usage.
283 (io_stream_file::~io_stream_file): Ditto.
284 (io_stream_file::exists): Ditto.
285 (io_stream_file::remove): Ditto.
286 (io_stream_file::mklink): Ditto.
287 (io_stream_file::set_mtime): Ditto.
288 (io_stream_file::move): Ditto.
289 (io_stream_file::get_size): Ditto.
290 (io_stream_file::fname): Ditto.
291 (io_stream_file::lmode): Ditto.
292 * localdir.cc: Update includes for String usage.
293 (save_local_dir): Update for String usage.
294 (check_if_enable_next): Ditto.
295 (load_dialog): Ditto.
297 (LocalDirPage::OnInit): Ditto.
298 (LocalDirPage::OnNext): Ditto.
299 * log.cc: Update includes for String usage.
300 (struct LogEnt): Update for String usage.
304 * log.h: Update includes for String usage.
305 (log_level): Update for String usage.
308 * main.cc (WinMain): Update for String usage.
309 * mklink2.c (make_link_2): Update for String usage.
310 * mklink2.h (make_link_2): Update for String usage.
311 * mount.cc: Update includes for String usage.
312 (mount_table): Update for String usage.
314 (create_mount): Ditto.
316 (remove_mount): Ditto.
317 (read_mounts): Ditto.
318 (set_root_dir): Ditto.
319 (get_root_dir): Ditto.
320 (path_prefix_p): Ditto.
322 * mount.h: Update includes for String usage.
323 (create_mount): Update for String usage.
324 (remove_mount): Ditto.
326 (set_root_dir): Ditto.
327 (get_root_dir): Ditto.
328 * msg.cc (mbox): Ditto.
329 * net.cc (NetPage::OnNext): Ditto.
330 * package_db.cc (packagedb::flush): Ditto.
331 (packagedb::packages): Ditto.
332 (packagedb::categories): Ditto.
333 * package_db.h: Update includes for String usage.
334 (packagedb::packages): Update for String usage.
335 (packagedb::categories): Ditto.
336 * package_meta.cc: Update includes for String usage.
337 (hash::add_subdirs): Update for String usage.
338 (packagemeta::uninstall): Ditto.
339 (packagemeta::SDesc): Ditto.
340 (packagemeta::action_caption): Ditto.
341 * package_meta.h: Update includes for String usage.
342 (packagemeta::packagemeta): Update for String usage.
343 (packagemeta::~packagemeta): Ditto.
344 (packagemeta::uninstall): Ditto.
345 (packagemeta::SDesc): Ditto.
346 (packagemeta::action_caption): Ditto.
347 (package_source.cc site::site): Ditto.
348 (packagesource::set_canonical): Ditto.
349 (packagesource::set_cached): Ditto.
350 * package_source.h: Update includes for String usage.
351 (site::site): Update for String usage.
352 (packagesource::set_canonical): Ditto.
353 (packagesource::set_cached): Ditto.
354 (packagesource::packagesource): Ditto.
355 (packagesource::sites): Ditto.
356 (packagesource::cached): Ditto.
357 * package_version.h: Update includes for String usage.
358 (Dependency): Update for String usage.
359 (packageversion): Ditto.
360 * postinstall.cc: Update includes for String usage.
361 (do_postinstall): Update for String usage.
362 * res.rc (IDD_LOCAL_DIR): Fix typo again!
363 * rfc1738.cc (rfc1738_escape_part): Update for String usage.
364 * rfc1738.h: Update includes for String usage.
365 (rfc1738_escape_part): Update for String usage.
366 * root.cc: Update includes for String usage.
367 (check_if_enable_next): Update for String usage.
368 (save_dialog): Ditto.
370 (directory_is_absolute): Ditto.
371 (directory_is_rootdir): Ditto.
372 (directory_has_spaces): Ditto.
373 (RootPage::OnInit): Ditto.
374 (RootPage::OnNext): Ditto.
375 * script.cc: Update includes for String usage.
376 (init_run_script): Update for String usage.
379 (try_run_script): Ditto.
380 * script.h: Update includes for String usage.
381 (run_script): Update for String usage.
382 (try_run_script): Ditto.
383 * site.cc site_list): Ditto.
384 (all_site_list): Ditto.
385 (other_url): Eliminate.
386 (site_list_type::init): Update for String usage.
387 (site_list_type::site_list_type): Ditto.
388 (get_site_list): Ditto.
389 (get_saved_sites): Ditto.
390 (do_download_site_info_thread): Ditto.
391 (SitePage::OnNext): Ditto.
392 (SitePage::OnActivate): Ditto.
393 (SitePage::PopulateListBox): Ditto.
394 (SitePage::OnMessageCmd): Handle empty url's.
395 * site.h: Update includes for String usage.
396 (site_list_type::site_list_type): Update for String usage.
397 (site_list_type::init): Ditto.
398 (site_list_type::~site_list_type): Ditto.
399 (site_list_type::url): Ditto.
400 (site_list_type::displayed_url): Ditto.
401 (site_list_type::key): Ditto.
402 * source.cc (SourcePage::OnDeactivate): Ditto.
403 * state.h: Update includes for String usage.
404 (local_dir): Update for String usage.
405 (trust_level): Remove.
406 * version.cc: Update includes for String usage.
407 (canonicalize_version): Update for String usage.
408 * version.h: Update includes for String usage.
409 (canonicalize_version): Update for String usage.
411 2002-02-15 Christopher Faylor <cgf@redhat.com>
413 * filemanip.c (parse_filename): Revert previous change.
415 2002-02-14 Christopher Faylor <cgf@redhat.com>
417 * filemanip.c (parse_filename): Don't treat '_' as a version number
420 2002-01-29 Christopher Faylor <cgf@redhat.com>
422 * configure: Regenerate.
424 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
426 * res.rc (IDD_LOCAL_DIR): Fix typo reported by Rene
427 <Hoeck@extern.lrz-muenchen.de>
429 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
431 * README: Update Todo's.
432 * list.h: Run indent.
433 (list): New methods checksize and insert to reduce code duplication.
434 (list::registerbykey): Use them.
435 (list::registerbyobject): Ditto.
436 (list::removebyindex): Copy each object individually - safe for non
438 (list::checksize): Implement.
439 (list::insert): Implement.
441 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
443 * Makefile.in: Remove the dlmalloc object by default.
444 * install.cc (do_install_thread): Remove the mallinfo call for 'working
445 around' the crashing issue.
446 * package_db.h: Include <string.h> - it's needed to parse this.
447 * package_source.cc (site::site): Move here from the header file.
448 * package_source.h (site): Stop the constructor being inlinable.
450 2002-01-26 Robert Collins <rbtcollins@hotmail.com>
452 * filemanip.cc (find_tar_ext): Add a descriptive comment.
454 2002-01-25 Michael A Chase <mchase@ix.netcom.com>
456 * filemanip.cc (find_tar_ext): Clean up tests for .tar.gz and .tar.
457 * fromcwd.cc (do_fromcwd): Expand FIXME comment in source file check.
458 * install.cc (install_one_source): Add space between words in log()
461 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
463 * log.cc (exit_setup): When saving to the download dir, explicity
466 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
468 * archive.cc (extract_file): Separate out the prefix and the URL
470 * archive.h (archive::extract_file): Ditto.
471 * install.cc (install_one_source): Ditto. Use the new
472 archive::extract_file syntax.
473 (replace_one): Use the new syntax.
474 (io_stream.cc): Add some log info for links.
476 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
478 * PickCategoryLine.cc (PickCategoryLine::actiontext): Remove.
479 (PickCategoryLine::paint): Use the new action method.
480 (PickCategoryLine::click): Set the action for all children.
481 (PickCategoryLine::set_action): New method.
482 * PickCategoryLine.h (PickCategoryLine::-actions): Remove.
483 (PickCategoryLine::current_default): Use packagemeta _actions class.
484 * PickLine.h (PickLine::set_action): New abstract method that requires
485 including package_meta.h.
486 * PickPackageLine.cc (PickPackageLine::set_action): New method.
487 * PickPackageLine.h (PickPackageLine::set_action): Declare this.
488 * list.h (getbykey): A const correctness fix.
489 * package_meta.cc: Run indent.
490 (packagemeta::Default_action): New const.
491 (packagemeta::Install_action): Ditto.
492 (packagemeta::Reinstall_action): Ditto.
493 (packagemeta::Uninstall_action): Ditto.
494 (packagemeta::_actions::caption): New method.
495 (packagemeta::_actions::operator++): Ditto.
496 (packagemeta::set_action): New overload.
497 * package_meta.h (packagemeta::_actions): New class.
498 (packagemeta::set_action): Declare this.
500 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
502 * Makefile.in (OBJS): Remove supp.o - it appears accidental.
503 * choose.cc: Don't define alloca anymore, it's done in win32.h
505 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
507 * PickPackageLine.cc: New file.
508 * PickPackageLine.h: New file.
509 * PickLine.cc: New file.
510 * PickLine.h: New file.
511 * PickCategoryLine.cc: New file.
512 * PickCategoryLine.h: New file.
513 * PickView.cc: New file.
514 * PickView.h: New file.
515 * Makefile.in: Add new objects to setup.exe.
516 Backout -fno-exceptions option.
517 * choose.cc: Include PickView.h.
518 Remove view related defines and static variables.
519 (_pkg_headers): Moved to PickView.cc.
520 (_cat_headers): Ditto.
521 (view::views::Unknown): Ditto.
522 (view::views::PackageFull):
523 (view::views::Package):
524 (view::views::Category):
525 (pkgtrustp): Moved to package_meta.cc.
526 (add_required): Moved to package_meta.cc.
527 (pick_category_line::empty): Moved to PickCategoryLine.cc
528 (paint): Adjust for moved static variables.
529 (view::scroll): Moved to PickView.cc.
530 (list_vscroll): Adjust for moved static variables.
531 (list_hscroll): Ditto.
533 (note_width): Moved to PickView.cc.
535 (view::set_view_mode): Ditto.
536 (view::mode_caption): Ditto.
537 (view::views::caption): Ditto.
538 (view::set_headers): Ditto.
539 (DoInsertItem): Ditto.
540 (view::init_headers): Ditto.
541 (view::insert_pkg): Ditto.
542 (view::insert_category): Ditto.
543 (view::clear_view): Ditto.
544 (view::views::operator++): Ditto.
545 (view::click): Ditto.
546 (default_trust): Adjust for moved statics.
547 (pick_pkg_line::paint): Moved to PickPackageLine.cc.
548 (pick_pkg_line::click): Ditto.
549 (pick_category_line::actiontext): Moved to PickCategoryLine.cc
550 (pick_category_line::paint): Ditto.
551 (pick_category_line::click): Ditto.
552 (set_view_mode): Adjust for moved statics.
553 (create_listview): Ditto.
554 * choose.h: Remove Category and packagemeta forward defines - not needed.
555 Don't include unneeded headers list and package_meta.
556 (_header): Move to PickView.h.
557 (pick_line): Move to PickLine.h.
558 (pick_pkg_line): Move to PickPackageLine.h.
559 (pick_category_line): Move to PickCategoryLine.h.
560 (view): Move to PickView.h.
561 * ini.h (trusts): Move to package_meta.h.
562 * package_meta.h (trusts): New enum.
563 (packagemeta::set_requirements): New helper method.
564 (packagemeta::trustp): Ditto.
566 2002-01-21 Christopher Faylor <cgf@redhat.com>
568 * choose.h (view): Move forward declaration of views into public area
569 or g++ v3 will complain.
571 2002-01-21 Christopher Faylor <cgf@redhat.com>
573 * Makefile.in (CXXFLAGS): Add -fno-exceptions.
574 * win32.h (alloca): Define as __builtin_alloca.
575 * io_stream_memory.cc: Add include file.
577 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
579 * archive_tar.cc (archive_tar::~archive_tar): Mark the stream as destroyed.
580 * archive_tar_file.cc (archive_tar_file::~archive_tar_file): Ditto.
581 * compress.cc (compress::~compress): Be less verbose.
582 * compress_bz.cc (compress_bz::~compress_bz): Ditto.
583 Mark the stream as destroyed.
584 * compress_gz.cc (compress_gz::~compress_gz): Mark the stream as destroyed.
585 * io_stream.cc (io_stream::~io_stream): Only warn when the stream is not marked
587 * io_stream_cygfile.cc (io_stream_cygfile::~io_stream_cygfile): Mark the
589 * io_stream_file.cc (io_stream_file::~io_stream_file): Ditto.
590 * io_stream_memory.cc (io_stream_memory::~io_stream_memory): Ditto.
592 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
594 * Makefile.in (CFLAGS): Allow customisable malloc debug flags.
595 (OBJS): Link in malloc objects.
596 * category.cc (category): Use new char, not strdup.
597 * choose.cc (pick_pkg_line::paint): Allow for the regionsize to shrink.
598 (do_choose): Use new char, not malloc.
599 * concat.cc (vconcat): Ditto.
600 * cygpackage.cc (cygpackage): Use new char, not strdup.
601 (set_canonical_version): Ditto.
602 (cygpackage::destroy): Use delete[], not free.
603 * desktop.cc (uexists): Ditto.
604 * dialog.cc (egest): Use new char, not strdup.
605 * dlmalloc.c: New file - Doug Lea's malloc 2.7.0
606 * hash.cc (hash::hash): Use delete instead of free.
607 (hash::add): Use new char, not strdup.
608 * ini.cc (do_remote_ini): Use delete[] not free.
609 * inilex.l: Use new char, not strdup.
612 Use a local package_db rather than a static one.
613 * install.cc (struct mallinfo): Workaround an apparent dlmalloc bug.
614 (do_install_thread): Call mallinfo to force a consistency check. Appears
615 to fix a 'inuse' error in -DDEBUG builds.
616 Use delete[] for strings.
617 * io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile): Use new char,
619 (io_stream_cygfile::~io_stream_cygfile): Use delete[], not free.
620 (io_stream_cygfile::remove): Use new char, not strdup.
621 * io_stream_file.cc (io_stream_file::io_stream_file): Use new char, not strdup.
622 (io_stream_file::io_stream_file): Use delete[], not free.
623 (io_stream_file::remove): Use new char, not strdup.
624 * io_stream_memory.cc (memblock::~memblock): Use delete[], not free.
625 * io_stream_memory.h (memblock): Use new char, not malloc.
626 * localdir.cc (LocalDirPage::OnInit): Use new char, not strdup.
627 * main.cc (WinMain): Use new char, not strdup.
628 * mount.cc (find2): Use new char, not malloc.
629 (read_mounts): Ditto.
630 (cygpath): Use new char, not strdup.
631 * netio.cc (NetIO::~NetIO): Use delete[], not free.
632 (NetIO::set_url): Use new char, not strdup.
633 (NetIO::get_ftp_auth): Use delete[], not free.
634 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
635 Use new char instead of strdup.
636 * nio-http.cc (base64_encode): Use new char, not malloc.
637 * package_meta.cc (hash::add_subdirs): Use new char instead of strdup.
638 * package_source.h (~ packagesource): Use delete[] instead of delete.
639 * port.h (strdup): Deprecate the use of strdup.
640 * rfc1738.cc (rfc1738_do_escape): Use new char, not calloc.
641 * script.cc (init_run_script): Us delete[], not free.
643 * simpsock.cc (SimpleSocket::fill): Use new char, not malloc.
644 (SimpleSocket::invalidate): Use delete[], not free.
645 * site.cc (site_list_type::init): Use new char instead of strdup.
646 * site.h (~site_list_type): Use delete[], not free.
648 2002-01-20 Robert Collins <rbtcollins@hotmail.com>
650 * Makefile.in (OBJS): Add win32.o - win32 support functions.
651 * README: Update todos.
652 * archive.cc (extract_file): Support a suffix for appending to extracted files.
654 * choose.cc (set_view_mode): Use the new view::views class.
655 (view::views::Unknown): New static for defaulting view::views variables.
656 (view::views::PackageFull): New static for the current view.
657 (view::views::Package): Ditto.
658 (view::views::Category): Ditto.
659 (topbucket::paint): Remove.
660 (topbucket::empty): Rename to pick_category_line::empty.
661 (topbucket::~topbucket): Remove.
662 (paint): Use the new view::views class.
663 Don't paint 'all' as a category when showing package categoies.
664 (pick_category_line::actiontext): New method.
665 (pick_category_line::paint): Make showing the category optional, and show the
667 (pick_category_line::click): Make showing the category optional, and
668 differentiate between the name being clicked, and the action description.
669 (view::view): Use the new view::views class.
670 (view::set_view_mode): Ditto.
671 (view::mode_caption): Ditto.
672 (view::views::caption): New method.
673 (view::set_headers): Use the new view::views class.
674 (view::clear_view): Ditto.
675 (viewsplusplus): Replaced by
676 (view::views::operator++): New operator.
677 (set_view_mode): Use the new view::views class.
678 (create_listview): Ditto.
680 * choose.h (actions): Remove.
682 (pick_line): Add a new convenience constructor.
683 (top_bucket): Remove.
684 (pick_category_line): Reparent under pick_line, and adsorb top_bucket.
685 (view::views): New class.
686 * ini.h: Don't include choose.h
687 (is_download_action): Remove.
688 (is_upgrade_action): Remove.
689 (is_uninstall_action): Remove.
690 (is_full_action): Remove.
691 * install.cc (num_replacements): New static.
692 (rebootneeded): Ditto.
693 (replace_one): Handle upgrades separate from removal or new installs.
694 (install_one_source): Handle in use files.
695 (install_one): Don't repeat upgrades.
696 (do_install_thread): Initialize new statics.
697 Order actions as uninstall, replace, install.
698 Warn about rebooting if needed.
699 * res.rc (IDS_REBOOT_REQUIRED): New string.
700 * resource.h (IDS_REBOOT_REQUIRED): Give value.
701 * win32.h: Declare class Win32, and update copyright and intent message.
702 * win32.cc: New file.
704 2002-01-15 Corinna Vinschen <corinna@vinschen.de>
706 * io_stream.cc (io_stream::gets): Eliminate trailing new line chars.
707 * package_meta.cc (packagemeta::uninstall): Check for additional
708 Windows shortcut. Unset R/O file attribute before trying to delete
711 2002-01-09 Robert Collins <rbtcollins@hotmail.com>
713 * choose.cc (pkgtrustp): Fall back to installed if a package is not present in
714 the current trust level. For prev, fall back via curr.
715 (set_existence): Allow sources with no sites, but cached files to be
717 (pick_category_line::paint): Start drawing clickable categories.
718 * fromcwd.cc (found_file): Reinstate local file scanning.
720 2002-01-07 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
722 * fromcwd.cc: Run indent.
723 (do_fromcwd): Reverse sense of comment. Set next_dialog
724 to IDD_CHOOSER instead of IDD_CHOOSE.
725 * ini.cc (find_routine): Remove "/" from "/setup.ini".
727 2001-01-07 Robert Collins <rbtcollins@hotmail.com>
729 * category.cc (Categorycmp): Add a const safe version.
730 * category.h (Categorycmp): Add a const safe version.
731 (Category): Add operator ==.
732 * choose.cc (fill_missing_category): Add every package to "All".
733 (pick_category_line::paint): Add support for hidden labels, and a tree depth.
734 (pick_category_line::click): Ditto.
735 (view::view): Pass in a top level category to use.
736 (view::insert_pkg): Special case - skip category "All".
737 (view::insert_category): Ditto.
738 (view::clear_view): Set the contents label state.
739 (create_listview): Pass in a top level category to view().
740 * choose.h (topbucket): Make bucket available to derived classes.
741 (pick_category_line): Add support for hidden labels, and a tree depth.
742 Remove our second copy of bucket.
743 (view): Pass in a top level category to the constructor.
744 Use pick_category_line to allow three level display.
746 2001-01-06 Robert Collins <rbtcollins@hotmail.com>
748 * cygpackage.h (cygpackage): Make set_[s|l]desc virtual.
749 * iniparse.y (add_correct_version): Copy descriptions across.
750 * package_meta.cc (SDesc): Iterate through versions, return the first with a
752 * package_version.h (packageversion): Add new virtuals set_[l|s]desc.
754 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
756 * script.cc (run_script): Change cygpath:// to cygfile://.
757 * install.cc (do_install_thread): Fix off-by-one errors.
759 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
761 * package_db.cc (packagedb::flush): Fix an off-by-one error.
763 2002-01-04 Jan Nieuwenhuizen <janneke@gnu.org>
765 * Makefile.in (realclean): more clean.
766 (OBJS): Add script.o.
767 * postinstall.cc (run_script_in_etc_postinstall): New function.
768 (do_postinstall): Split off new funtion init_run_script ().
771 (run_script): Move to script.cc. Replace some deprecated remove
774 * script.cc: New file.
775 * Forward port cygwin-20010707.jcn3.patch.
776 * package_meta.cc (uninstall): Run pre- and postremove scripts.
777 * install.cc: Typo fix.
778 (do_install): Run script initialisation.
780 2001-01-04 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
782 * cistring.cc: Run d2u.
783 * cistring.h: Run d2u.
785 * desktop.cc (etc_profile): Remove "test -f ./.bashrc && . ./.bashrc"
786 from the generated /etc/profile. Bash will source this file
787 automatically, and having this here merely results in .bashrc being
788 executed twice. Run d2u.
789 * desktop.h: Run d2u.
791 * propsheet.cc: Run d2u.
792 (PropSheetProc): New function. Add minimize box here instead of in
793 PropertyPage::DialogProc.
794 (PropSheet::Create): Change to use creation callback PropSheetProc.
795 (DLGTEMPLATEEX): Add 'hidden' Windows struct definition.
797 * propsheet.h: Run indent, d2u.
798 * proppage.h: Run indent, d2u.
800 * proppage.cc: Run d2u.
801 (PropertyPage::DialogProc): Remove minimize-box-adding
802 functionality. Remove commented-out "PropSheet_SetWizButtons" calls.
803 Add support for calling virtual OnMessageCmd. Add setting of fonts in
804 WM_INITDIALOG handler.
805 (resource.h): New include for resource IDs.
807 * res.rc: Resize and rearrange property page dialog templates
808 to bring them in line with "Microsoft's Backward Compatible Wizard 97"
809 specification. Run d2u.
810 (IDD_SITE): Add an edit control and an "Add" button in order to
811 combine the IDD_SITE and IDD_OTHER_URL functionality onto one page.
812 (IDD_OTHER_URL): Remove dialog template.
813 (IDD_DLSTATUS): Remove dialog template.
816 (SitePage::OnBack): Remove NEXT() macro invocation.
817 (SitePage::OnActivate): New member function.
818 (load_dialog): Remove. Functionality subsumed into
819 SitePage::OnActivate.
820 (save_dialog): Change to support both list and user URLs. Remove
821 OTHER_IDX and mirror_idx logic.
822 (SitePage::PopulateListBox): New member function.
823 (SitePage::CheckControlsAndDisableAccordingly): New member function.
824 (SitePage::OnMessageCmd): New override.
825 (check_if_enable_next): Remove.
826 (dialog_cmd): Remove.
827 (do_download_site_info_thread): Remove calls to NEXT() macro.
828 (SitePage::Create): Call the single-param PropertyPage::Create
830 (other_url): New static taken from other.cc.
831 (SitePage::OnNext): Remove mirror_idx logic.
832 (SitePage::OnInit): Remove "Other URL" entry from list box. Remove
833 list box populating code, now handled in SitePage::PopulateListBox.
834 (mirror_idx, NO_IDX, OTHER_IDX): Remove.
835 (save_site_url): Fix potential buffer overflow problem. Switched to
836 TCHAR in grossly premature preparation for multilingual support.
838 (SitePage::OnActivate): New member function.
839 (SitePage::CheckControlsAndDisableAccordingly) New member.
840 (SitePage::OnMessageCmd): New override.
841 (do_download_site_info_thread): Add MessageBox call on failure to
844 * splash.cc: Run d2u.
845 (SplashPage::OnInit): Set the font for the title.
848 * threebar.cc: Run d2u.
849 * threebar.h: Run d2u.
852 (Window::IsButtonChecked): New member function declaration.
853 (Window::OnMessageCmd): New member function.
854 (Window::SetDlgItemFont): New member function declaration.
855 (Window::MAXFONTS, Window::Fonts, Window::FontCounter): New data
857 * window.cc: Run d2u.
858 (Window::IsButtonChecked): New member function definition.
859 (Window::SetDlgItemFont): New member function definition.
860 (Window::Window): Add initialization for FontCounter.
861 (Window::~Window): Delete any fonts we created.
863 * geturl.cc: Run d2u.
864 (progress): Remove the "3" field width from the "%3d"
865 percent-complete format indicator. Causes line to not start at
866 beginning of text box, and does little to help with "jumping", since
867 the "bytes downloaded so far" field is variable-width anyway. Change
868 kb/s format field to "%03.1" to 0-pad the kb/s number in the event of
869 painfully slow connections, or temporary slowdowns in faster
870 connections should such more-instantaneous functionality become
874 (NetPage::OnMessageCmd): New member function declaration.
875 (NetPage::CheckIfEnableNext): New member function declaration.
877 (NetPage::OnMessageCmd): New member function definition.
878 (dialog_cmd): Remove, subsumed into NetPage::OnMessageCmd.
879 (check_if_enable_next): Remove.
880 (NetPage::CheckIfEnableNext): New member function, subsumes
881 check_if_enable_next.
882 (propsheet.h): Add include.
883 (NetPage::Init): Add call to CheckIfEnableNext.
884 (load_dialog): Remove call to check_if_enable_next.
885 (NetPage::Create): Call single-template-ID-parameter overload of
886 PropertyPage::Create instead of three-parameter one.
888 * Makefile.in (OBJS): Remove other.o.
889 * other.cc: Remove file.
891 2002-01-01 Robert Collins <rbtcollins@hotmail.com>
893 * README: Update TODO's.
894 * choose.cc (set_existence): Delete non installed packages with no
896 (fill_missing_category): Fix an off-by-one error.
897 (default_trust): Ditto. Also delete any unused categories.
898 (view::init_headers): Fix an off-by-one error.
899 (set_view_mode): Ditto.
900 (set_view_mode): Ditto.
901 (create_listview): Ditto.
904 * io_stream.cc: Indent.
905 * io_stream.h: Ditto.
906 * package_db.cc: Ditto.
907 * package_meta.h: Const correctness for SDesc ();
908 * proppage.cc: Run d2u and indent.
909 * propsheet.cc: Run d2u and indent.
910 * window.cc: Run d2u and indent.
911 * window.h: Run d2u and indent.
913 2001-12-28 Christopher Faylor <cgf@redhat.com>
915 * Makefile.in (iniparse.o): Accommodate newer bisons.
917 2001-12-23 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
919 * window.h (Window): New file, new class.
920 * window.cc (Window): New file, new class.
922 * threebar.h (ThreeBarProgressPage): New file, new class.
923 * threebar.cc (ThreeBarProgressPage): New file, new class.
925 * splash.h (SplashPage): New file, new class.
926 * splash.cc (SplashPage): Replace file with implementation of new
929 * source.h (SourcePage): New file, new class.
930 * source.cc: Run indent.
931 (SourcePage): Add class implementation to this file.
932 (do_source): Remove, functionality subsumed by SourcePage::Create()
933 and SourcePage::OnDeactivate().
934 (dialog_proc): Remove, functionality subsumed by
935 SourcePage::OnActivate().
937 * site.h: Run indent.
938 (SitePage): Add class declaration.
939 * site.cc: Run indent.
940 (SitePage): Add class implementation.
941 (do_download_site_info_thread): New function.
942 (context): New var. Context info for do_download_site_info_thread().
943 (do_download_site_info): New function.
944 (SitePage::Create, SitePage::OnInit SitePage::OnNext)
945 (SitePage::OnBack): SitePage class implementation..
946 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers, now handled
948 (dialog_proc): Remove, now handled by SitePage::OnInit and base class
950 (do_site): Remove, now handled by do_download_site_info_thread() and
951 SitePage::OnNext functionality.
952 (get_site_list): Remove dismiss_url_status_dialog() call.
954 * root.h (RootPage): New file, new class.
955 * root.cc: Run indent.
956 (dialog_cmd): Pass parent HWND parameter to note(), yesno().
957 (dialog_proc): Remove.
959 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL clauses from switch.
960 (RootPage::OnInit): New member function. Move get_root_dir() logic to
962 (RootPage::Create): New member function.
963 (RootPage::OnNext): New member function. Move IDOK logic from
964 dialog_cmd() to here.
965 (RootPage::OnBack): New member function.
967 * propsheet.h (PropSheet): New file, new class.
968 * propsheet.cc (PropSheet): New file, new class.
970 * proppage.h (PropertyPage): New file, new class.
971 * proppage.cc (PropertyPage): New file, new class.
973 * postinstall.cc (do_postinstall): Add owner parameter.
975 * other.cc (do_other): Add owner parameter.
977 * nio-file.cc (NetIO::Purl): Pass NULL parent param to note().
978 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Pass NULL parent param to
980 * nio-http.cc (retry_get): Pass NULL parent param to get_auth(),
983 * nio-ie5.cc (NetIO::_url): Pass NULL parent param to note(),
984 get_auth(), get_proxy_auth().
986 * netio.h (get_auth, get_proxy_auth, get_ftp_auth): Add owner param.
987 * netio.cc (auth_common, NetIO::get_auth, NetIO::get_proxy_auth,
989 (auth_common): Add owner param. Pass owner param to DialogBox.
990 (NetIO::get_auth, NetIO::get_proxy_auth, NetIO::get_ftp_auth): Pass
991 owner param to auth_common().
993 * net.h (NetPage): New file, new class.
994 * net.cc: Run indent.
995 (net.h, threebar.h): Add includes.
996 (Progress): Add extern.
997 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, now handled by
998 property sheet logic. Saved temporarily for reference.
999 (NetPage::Create, NetPage::OnInit, NetPage::OnDeactivate,
1000 NetPage::OnNext, NetPage::OnBack):
1001 New implementation of NetPage class members.
1003 (dialog_proc): Remove.
1005 * msg.h (fatal, note, yesno): Add owner param.
1006 * msg.c (fatal, note, yesno, mbox): Add owner param.
1007 (mbox): Remove MB_TOPMOST from MessageBox call. Unnecessary and wrong
1008 now that we have a parent.
1010 * main.cc: Run indent.
1011 (commctrl.h, proppage.h, propsheet.h, splash.h, source.h)
1012 (localdir.h, net.h, site.h, choose.h, threebar.h, desktop.h): Include
1014 (root_dialog_proc): extern into this file.
1015 (Progress): Progress dialog defined here, used in several other files.
1016 (WinMain): Instantiate and create Splash, Source, Root, LocalDir, Net,
1017 Site, Chooser, Desktop pages and MainWindow sheet. Call
1018 InitCommonControls() to make sure Windows is set up for our use of
1019 property sheets. Add pages to sheet.
1020 Call MainWindow.Create() to "DoModal". Remove main loop, that logic is
1021 now handled by the PropSheet class.
1022 (root.h): Add include.
1024 * log.cc (log_save): Pass NULL parent to fatal().
1025 (exit_setup): Pass NULL parent to note().
1027 * localdir.h (LocalDirPage): New file, new class.
1028 * localdir.cc: Run indent.
1029 (localdir.h): New include.
1030 (threebar.h): New include.
1031 (Progress): extern into this file.
1032 (LocalDirPage::Create, LocalDirPage::OnInit, LocalDirPage::OnActivate)
1033 (LocalDirPage::OnNext, LocalDirPage::OnBack): Implementation of
1035 (LocalDirPage::OnNext): Move log() call from do_local_dir() to here.
1036 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers.
1037 (do_local_dir): Remove.
1038 (dialog_proc): Remove.
1039 (cwd): Remove, not used by anything.
1041 * install.cc: Run indent.
1042 (process.h, threebar.h): New includes.
1043 (Progress): extern into this file.
1044 (ins_dialog, ins_action, ins_pkgname, ins_filename, ins_pprogress)
1045 (ins_iprogress, ins_diskfull, init_event): Remove, now handled by
1046 ThreeBarProgressPage.
1047 (dialog_cmd, dialog_proc, dialog): Removed, handled in
1048 ThreeBarProgressPage.
1049 (init_dialog): Remove all mention of the above ins_* handles. Now
1050 handled in ThreeBarProgressPage. Altered SetWindowText()s to call
1051 ThreeBarProgressPage instance Progress directly.
1052 (progress): Alter bar update logic to call ThreeBarProgressPage
1053 instance Progress directly.
1054 (uninstall_one): Alter SetWindowText()s to call ThreeBarProgressPage
1055 instance Progress directly.
1056 (install_one_source): Alter SetWindowText()s to call
1057 ThreeBarProgressPage
1058 instance Progress directly. Pass NULL parent to note().
1059 (do_install_thread): Rename from do_install(), added owner param.
1060 Alter SetWindowText()s to call ThreeBarProgressPage instance Progress
1062 Remove dismiss_url_status_dialog() call, no longer necessary. Remove
1063 ShowWindow(<hide>) call, also unnecessary now. Pass owner handle to
1065 (do_install_reflector): New function.
1066 (do_install): New function.
1068 * ini.cc (process.h, threebar.h): New includes.
1069 (Progress): externed into this file.
1070 (find_routine): Pass NULL parent to note().
1071 (do_local_ini): Add owner param.
1072 (do_remote_ini): Add owner param. Pass owner to get_url_to_membuf()
1073 and note(). Remove call to dismiss_url_status_dialog().
1074 (do_ini_thread): Rename from do_ini(). Add owner param. Pass owner to
1075 do_local_ini(), do_remote_ini(), yesno(), and note(). Set next_dialog
1076 to IDD_CHOOSER on exit.
1077 (do_ini_thread_reflector): New function.
1078 (context): New var. Context for do_ini_thread.
1079 (do_ini): New function.
1081 * geturl.h (get_url_to_membuf, get_url_to_string, get_url_to_file): Add
1083 * geturl.cc (gw_dialog, gw_url, gw_rate, gw_progress, gw_pprogress,
1085 (gw_progress_text, gw_pprogress_text, gw_iprogress_text, init_event):
1087 (threebar.h): New include.
1088 (Progress): externed into this file.
1089 (dialog_cmd, dialog_proc, dialog): Removed, handled by
1090 ThreeBarProgressPage now.
1091 (init_dialog): Remove "if (gw_dialog == 0)" clause. Alter
1093 and bar setting SendMessage()s to call ThreeBarProgressPage instance
1094 Progress directly. Remove "one bar only" logic, this is now handled
1095 explicitly in the ThreeBarProgressPage class.
1096 (progress): Altered bar and text update logic to call
1097 ThreeBarProgressPage instance Progress directly. Changed kbps
1098 calculation to floating point and now print out a single decimal
1100 (get_url_to_membuf): Add owner param. Pass it to init_dialog.
1101 (get_url_to_string): Add owner param. Pass it to get_url_to_membuf.
1102 (get_url_to_file): Add owner param. Pass it to init_dialog. Alter bar
1103 update logic to call ThreeBarProgressPage instance Progress directly.
1104 (dismiss_url_status_dialog): Remove.
1106 * fromcwd.cc (do_fromcwd): Add owner param. Initialize found_ini to
1109 * download.cc: Run indent.
1110 (process.h, threebar.h): New includes.
1111 (Progress): externed into this file.
1112 (download_one): Add owner param. Pass it to get_url_to_file().
1113 (do_download_thread): Renamed from do_download. Add owner param. When
1114 calculating total_download_bytes, take binpicked and srcpicked into
1115 account. Remove call to dismiss_url_status_dialog(), no longer needed.
1116 Pass owner handle to download_one() and yesno().
1117 (do_download_reflector, do_download): New functions.
1118 (context): New var. Context for do_download_thread().
1120 * dialog.h (D(x)): Add owner param.
1122 * desktop.h (DesktopSetupPage): New file, new class.
1123 * desktop.cc: Run indent.
1124 (desktop.h): Add include.
1125 (dialog_proc, do_desktop): Remove, now handled in
1126 DesktopSetupPage::OnInit().
1127 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, handled in
1128 DesktopSetupPage::OnFinish(), DesktopSetupPage::OnBack(), and PropSheet
1130 (DesktopSetupPage::Create, DesktopSetupPage::OnInit)
1131 (DesktopSetupPage::OnBack, DesktopSetupPage::OnFinish): Implementation
1132 of DesktopSetupPage.
1134 * cistring.h: New file, new class.
1135 * cistring.cc: New file, new class.
1137 * choose.h: Run indent.
1138 (Chooser): New class declaration.
1139 * choose.cc: Run indent.
1140 (do_choose): Add owner param. Pass it to DialogBox() and
1142 (Chooser): New class implementation.
1144 * res.rc (IDS_VERSION_INFO): New string.
1145 (IDD_SOURCE, IDD_LOCAL_DIR, IDD_ROOT, IDD_SITE, IDD_OTHER_URL)
1146 (IDD_DLSTATUS, IDD_INSTATUS, IDD_SPLASH, IDD_CHOOSE, IDD_DESKTOP):
1147 Change WS_POPUP to WS_CHILD. Numerous positioning/size changes
1149 (IDD_CHOOSE): Give template the WS_EX_CONTROLPARENT style to enable
1150 TAB control navigation etc. Give the controls a reasonable tab order.
1151 Grouped radio buttons. Something's still not right, can't tab away
1152 from back/next/cancel group reliably.
1153 * resource.h (IDD_CHOOSER): New dialog ID.
1155 * Makefile.in (OBJS): Add cistring.o, proppage.o, propsheet.o,
1156 threebar.o, and window.o.
1158 2001-12-21 Robert Collins <rbtcollins@hotmail.com>
1160 * choose.cc (listview_proc): Update the scrollbar when the headers are dragged.
1161 (pick_pkg_line::paint): Clip columns to prevent overlap.
1163 2001-12-20 Robert Collins <rbtcollins@hotmail.com>
1165 * Makefile.in: Add libcomctl32.a for setup.exe.
1166 * archive.h (archive): Prevent non-child direct creation of the class.
1167 * archive_tar.h (archive_tar): Prevent inaccurate synthetic copy and assignment.
1168 * choose.cc: Include commctrl for the choose header.
1169 (NEW_COL_SIZE_SLOP): Define without magic numbers.
1170 (pkgtrustp): Convert to function.
1171 (set_action): Remove.
1172 (add_required, fill_missing_category,default_trust): Use list syntax for
1175 (choose_caption): Remove.
1176 (topbucket::paint): New method.
1177 (topbucket::empty): Ditto.
1178 (topbucket::click): Ditto.
1179 (topbucket::~topbucket): Ditto.
1180 (paint): Remove i,ii and p as they are obsolete.
1181 Remove header drawing code.
1182 Use new chooser method to paint the chooser.
1183 Use new chooser itemcount method.
1184 (scroll_common): Rename to view::scroll.
1185 Scroll the header window separately.
1186 (list_vscroll, list_hscroll, list_click): Update for new chooser methods.
1187 (listview_proc): Look for header messages.
1188 (note_width): Accept stringless calls.
1189 (pick_line::set_line): Remove.
1190 (pick_line::paint): Remove.
1191 (pick_pkg_line::paint): Paint this one line, using the header column widths.
1192 (pick_category_line::paint): Paint this category, and anything in the bucket.
1193 (pick_line::click): Remove.
1194 (pick_pkg_line::click): Handle a click.
1195 (pick_category_line::click): Handle a click.
1196 (_view): Rename all to view.
1197 (view::view): Initialise the control contents.
1198 (view::set_headers): Work with the header control.
1199 (view::init_headers): Use list syntax for package list.
1200 Rearrange the width logic a little.
1201 (view::insert_pkg): Update to use the hierarchy.
1202 (view::insert_category): Ditto.
1203 (view::insert_at, view::insert_under): Remove.
1204 (view::clear_view): Update to use the hierarchy.
1205 (view::click): Update to use the hierarchy.
1206 (set_view_mode): Use list syntax for package list.
1207 Update for new chooser methods.
1208 (DoInsertItem): New helper function. (Needs a home somewhere).
1209 (create_listview): Remove choose control code and use the constructor instead.
1210 (dialog_cmd,scan2,do_choose): Use list syntax for package list.
1211 * choose.h: Include newly required headers list and package_meta.
1212 (_voew): Rename to view.
1213 (pick_line): Convert to an ABC.
1214 (pick_pkg_line): New class.
1215 (pick_catgory_line): New class.
1216 (topbucket): New class.
1217 (view::scroll): New method created from listview_scroll function.
1218 * desktop.cc (make_passwd_group): Use list syntax for package list.
1219 * download.cc (do_download): Use list syntax for package list.
1220 * fromcwd.cc (found_file): Use list syntax for package list.
1221 * iniparse.y (pacakges): Use list syntax for package list.
1222 * install.cc (uninstall_one): Use list syntax for package list.
1223 (do_install): Use list syntax for package list.
1224 * io_stream.h (io_stream): Prevent non-child direct creation of the class.
1225 Prevent inaccurate synthetic copy and assignment.
1226 * list.h: Include required header stdlib.
1227 Work on const correctness.
1228 * package_db.cc (packagedb::getpackagebyname): Remove.
1229 (packagedb::packagedb): Remove custom list code, and make db a local.
1230 (packagedb::getfirstpackage): Remove.
1231 (packagedb::getnextpackage): Remove.
1232 (packagedb::addpackage): Remove.
1233 (flush): Remove custom list code.
1234 (packagedb::registerpackage): Remove.
1235 (packagedb::packages): New static member.
1236 (packagedb::task): New static member.
1237 * package_db.h (PackageDBActions): New enum.
1238 (packagedb): Remove getfirstpackage, getnextpackage, getpackagebyname,
1239 addpackage, registerpackage, packages, packagecount, curr_package, db.
1241 * pacakge_meta.cc: Include package_db.h.
1242 (packagemeta::action_caption): New method.
1243 (packagemeta::set_action): New method.
1244 * package_meta.h (CategoryPackage): Initialise key.
1245 (packagemeta): Initialise key.
1246 Add set_action and action_caption methods.
1247 Prevent inaccurate synthetic copy and assignment.
1248 * resource.h (IDC_CHOOSE_LISTHEADER): New ID.
1249 * source.cc: Include package_db for db manipulation.
1250 (save_dialog): Set the db task.
1251 * win32.h: Tell the w32 include headers what IE version to expect/require.
1253 2001-12-06 Robert Collins <rbtcollins@hotmail.com>
1255 * README: Wishlist updates.
1257 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
1259 * package_db.cc (getnextpackage): Don't overrun the array.
1261 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
1263 * Makefile.in (OBJS): Add setup_version.o.
1264 (version.c): Rename to setup_version.
1265 * choose.cc (set_action): Prevent NULL pointer dereference.
1266 (package_sort): Remove.
1267 * fromcwd.cc (canonicalize_version): Moved to version.cc.
1268 (check_ini): New function for use with find to see if there is a cached setup.ini.
1269 (do_fromcwd): Check for a cached setup.ini from any mirror site.
1270 * ini.cc (find_routine): New function, for finding cached setup.ini's.
1271 (do_local_ini): New function, drives parsing of local ini's.
1272 (do_remote_ini): New function, drives parsing and caching of remote ini's.
1273 (do_ini): Move guts to do_remote_ini and do_local_ini.
1274 * list.h (removebyindex): New method.
1275 * other.cc (save_dialog): Use new site_list and all_site_list to add the
1276 new site to the site picklist.
1277 (dialog_cmd): Only save the dialog when exiting the dialog.
1278 * res.rc (IDD_SITE): Make IDC_URL_LIST a multiple-selection control.
1279 * site.cc (site_list_type): Move to site.h
1280 (site_list): New global, sites chosen by the user.
1281 (all_site_list): New global, all potential sites.
1282 (site_list_type::init): New method, parses a mirror.lst URL string into a
1283 site_list_type object.
1284 (site_list_type::site_list_type): New method.
1285 (check_if_enable_next): Examine the control, not a local variable.
1286 (load_dialog): Select all the user chosen sites by default.
1287 (save_dialog): Adjust for multiple selection semantics.
1288 (save_site_url): Save all user chosen sites.
1289 (dialog_cmd): Don't save the dialog when the listbox recieves a message -
1291 Remove obsolete other_url reference.
1292 (dialog_proc): Use all_site_list instead of site_list.
1293 (site_sort): Remove.
1294 (get_site_list): Remove malloc use - use list template instead.
1295 Move site_list_type initialisation to site_list_type::init().
1296 (get_initial_list_idx): Renamed to ...
1297 (get_saved_sites): this. Also read in multiple sites to the site_list.
1298 (do_site): Use all_site_list not site_list.
1299 Log all chosen sites.
1300 * site.h: New file, defines site related class, functions and variables.
1301 * state.h: Add comment about use of state.h
1302 (mirror_site): Remove.
1303 (other_url): Remove.
1304 (MIRROR_SITE): Remove.
1305 * version.cc: New file, for version-handling and related functions.
1307 2001-12-02 Robert Collins <rbtcollins@hotmail.com>
1309 * Makefile.in: Add filemanip.o to setup.
1310 * archive.cc (archive::extract_file): Use new io_stream method 'copy'.
1311 * archive_tar.h (archive_tar_file): Implement get_size virtual.
1312 (archive_tar): Ditto.
1313 * choose.cc (set_action): Use [] operator instead of getnth - its more readable.
1315 (_view::init_headers): Ditto.
1316 (_view::insert_pkg): Ditto.
1317 (set_view_mode): Ditto.
1320 (base): Moved to filemanip.cc.
1321 (find_tar_ext): Ditto.
1322 (parse_filename): Ditto.
1323 (_Info::_Info): Remove.
1324 * compress_bz.h (compress_bz): Implement get_size virtual.
1325 * compress_gz.h (compress_gz): Implement get_size virtual.
1326 * cygpackage.cc (cygpackage::destroy): Use array delete for char * objects.
1327 * download.cc (get_file_size): Move to filemanip.cc.
1328 (check_for_cached): Use [] operator instead of getnth - its more readable.
1329 (download_one): Ditto.
1330 * filemanip.cc: New file.
1331 * geturl.cc (init_dialog): Make url a pointer to const as it is not modified.
1332 (get_url_to_membuf): New function - contains get_url_to_string worker code.
1333 (get_url_to_string): Becomes a trivial wrapper to get_url_to_membuf.
1334 * geturl.h: Declare new prototype.
1335 * ini.cc (do_ini): Use get_url_to_membuf and pass ini_init an io_stream.
1336 Tidy up the error code a little.
1337 * ini.h: Remove __cplusplus protection for ini_init.
1339 * inilex.l: Remove old globals.
1340 (ini_init): Use an io_stream for getting the characters.
1341 (ini_getchar): Ditto.
1342 * iniparse.y: Declare yylex as a C++ function.
1343 (add_correct_version): Use [] operator instead of getnth - its more readable.
1344 * io_stream.cc (io_stream::move_copy): Use the copy method.
1345 (io_stream::copy): New method to simply copy from one stream to another.
1346 * io_stream.h (io_stream): New static method copy, and virtual method get_size.
1347 * io_stream_cygfile.cc (io_stream_cygfile::get_size): Implement this.
1348 * io_stream_cygfile.h (io_stream_cygfile::get_size): Declare this.
1349 * io_stream_file.cc (io_stream_file::get_size): Implement this.
1350 * io_stream_file.h (io_stream_file::get_size): Declare this.
1351 * io_stream_memory.h: Include errno as it's neded to parse the header.
1352 (io_stream_memory::get_size): Implement this.
1353 (io_stream_memory::st_size): Delete this.
1354 * list.h: Change getnth into the [] operator.
1355 * netio.cc (NetIO::NetIO): Change prototype to reflect Purl not being modified.
1356 (NetIO::set_url): Ditto.
1357 (NetIO::open): Ditto.
1358 * netio.h: As for netio.cc.
1359 * nio-file.cc (NetIO_File::NetIO_File): Change prototype to reflect Purl not
1361 * nio-file.h: Ditto.
1362 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
1363 * nio-ftp.h (NetIO_FTP::NetIO_FTP): Ditto.
1364 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Ditto.
1365 * nio-http.h (NetIO_HTTP::NetIO_HTTP): Ditto.
1366 * nio-i5.cc (NetIO_IE5::NetIO_IE5): Ditto.
1367 * nio-i5.h (NetIO_IE5::NetIO_IE5): Ditto.
1368 * package_meta.cc (packagemeta::~packagemeta): Bugfix: use array delete.
1369 * package_source.cc (packagesource::set_canonical): Ditto.
1370 (packagesource::set_cached): Ditto.
1371 * package_source.h (site::~site): Ditto.
1372 * site.cc: Change site_list_type to a class, and search and replace sort_key to
1375 2001-12-01 Robert Collins <rbtcollins@hotmail.com>
1377 * package_source.cc (packagesource::set_canonical): Filename was out by one.
1379 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
1381 * Makefile.in (OBJS): Remove category_list - it's not needed.
1382 * README: More wishlist updates.
1383 * category.cc (Category::Category): Initialise new members.
1384 (Categorycmp): New function.
1385 * category.h (Category): New member key for template use.
1386 * category_list.cc: Remove.
1387 * category_list.h: Remove.
1388 (Categorycmp): New function prototype.
1389 * choose.cc: Remove category_list - not needed.
1390 (set_action): Only show the 'source' option when the source is actually
1392 (add_required): Fix recursion limiter to 5.
1393 (fill_missing_category): Use list access.
1394 (default_trust): Ditto.
1395 (pick_line::paint): Ditto.
1396 (_view::init_headers): Ditto.
1397 (_view::insert_pkg): Ditto.
1398 (_view::insert_category): Ditto.
1399 (_view::click): Ditto.
1400 (set_view_mode): Ditto.
1402 * cygpackage.h: Remove category_list - not needed.
1403 * geturl.cc (get_url_to_string): Fix null byte insertion.
1404 * inipatse.y: Remove category_list - not needed.
1405 (categories): Use list access.
1406 * package_db.cc: Ditto.
1407 * package_db.h: Remove category_list - not needed.
1408 (packagedb): Use the list template for categories.
1409 * package_meta.cc (add_category): Ditto.
1410 * package_meta.h (CategoryPackage): Link to the category as well.
1411 (packagemeta): Use a list of CategoryPackages instead of Categories
1412 for more memory efficient cross-referencing.
1414 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
1416 * package_db.cc (packagedb::flush): Write a canonical version for all packages
1417 irrespective of the media they were installed from.
1419 2001-11-29 Robert Collins <rbtcollins@hotmail.com>
1421 * Makefile.in (OBJS): Add package_source and rfc1738.
1422 * README: Wishlist update.
1423 * category_list.cc (register_category): Use references.
1424 * category_list.h (CategoryList): Ditto.
1425 * choose.cc (isinstalled): Remove.
1426 (pkgtrustp): New macro.
1427 (set_action): Use packagemeta.
1428 (add_required): Ditto.
1429 (choose_caption): Example package to choose caption, rather than state flags.
1430 (check_existence): Remove.
1431 (set_existence): Remove old code.
1432 (fill_missing_category): Use packagemeta.
1433 (keep_or_skip): Remove.
1434 (default_trust): Use packagemeta and set trust values directly.
1435 (pick_line::set_line): Use packagemeta.
1436 (_view::insert_pkg): Ditto.
1437 (_view::insert_category): Ditto.
1438 (_view::click): Ditto.
1439 (set_view_mode): Ditto. Also remove "exclude" code.
1440 (create_listview): Use packagemeta.
1441 (dialog_cmd): Ditto.
1442 (getpkgbyname): Remove
1443 (scan2): Use packagemeta. Temporarily comment out the holefinding code.
1444 (read_installed_db): Remove.
1445 (package_sort): Use packagemeta.
1446 (do_choose): Use packagemeta. Don't sort the packages - the db does that.
1447 * choose.h: Use packagemeta.
1448 * cygpackage.cc (cygpackage::cygpackage): Initialise all variables.
1449 (cygpackage::cygpackage): Ditto.
1450 (cygpackage::set_canonical_version): Copy the passed string.
1451 (cygpackage::~cygpackage): Move cleanup code to destroy().
1452 (cygpackage::destroy): New function.
1453 (cygpackage::getfirstfile): Use a separate buffer.
1454 (cygpackage::getnextfile): Ditto.
1455 (cygpackage::Canonical_version): New function.
1456 (cygpackage::set_sdesc): Ditto.
1457 (cygpackage::set_ldesc): Ditto.
1458 * cygpackage.h (cygpackage::Canonical_version): New method.
1459 (cygpackage::set_sdesc): New method.
1460 (cygpackage::set_ldesc): New method.
1461 (cygpackage::SDesc): New method.
1462 (cygpackage::LDesc): New method.
1463 (cygpackage::set_canonical_version): New method.
1464 * desktop.cc: Include packagedb headers.
1465 (make_password_group): Use packagemeta.
1466 * download.cc: Include packagedb headers.
1467 (check_for_cached): New method to find any cached file and fill out the database
1469 (download_one): Take a packagesource, support multiple mirrors.
1470 (do_download): Use packagemeta.
1471 * from cwd.cc: Include packagedb headers.
1472 (found_file): Use packagemeta.
1473 * ini.cc (do_ini): Beginning of multiple-mirror support.
1474 * ini.h (CategoryPackage): Remove.
1475 (Dependency): Remove.
1477 (new_package,getpkgbyname,getpackagecategorybyname,add_category): Remove.
1478 * inilex.l: Support multiple mirrors.
1479 * iniparse.y: Include packagedb headers.
1480 (parser): Use packagemeta.
1481 (new_package): Remove.
1482 (add_correct_version): New function.
1483 (new_requirement): Remove.
1484 (add_category): Remove.
1485 * install.cc (uninstall_one): Use packagemeta.
1486 (install_one_source): New function.
1487 (install_one): Use packagemeta.
1488 (do_install): Use packagemeta.
1489 * io_stream.cc (io_stream::move): Bugfix on move/copy case.
1490 * io_stream_cygfile.cc (io-stream_cygfile::set_mtime): Do not reopen the file
1491 after setting the mtime, it makes no sense, and results in 0 length files.
1492 * io_stream_file.cc (io-stream_file::set_mtime): Ditto.
1493 * list.h: New file, template class for a form of list.
1494 * package_db.cc (packagedb::registerpackage): New function.
1495 * package_db.h (packagedb::npackages ()): New method.
1496 * package_meta.cc (packagemeta::add_version): Use list template.
1497 (packagemeta::set_installed): Ditto.
1498 (packagemeta::add_category): New method.
1499 * package_meta.h: Include necessary headers to parse the class.
1500 (CategoryPackage): New class.
1501 (packagemeta): Initialise all members.
1502 (packagemeta::SDesc): New method.
1503 (packagemeta::Categories): New method.
1504 (packagemeta::add_category): Ditto.
1505 (packagemeta::versions): Change to be a list instance.
1506 * package_source.cc (packagesource::set_canonical): New method.
1507 (packagesource::set_cached): New method.
1508 * package_source.h: Include necessary headers to parse the class.
1510 (packagesource::packagesource): Initialize all members.
1511 (packagesource): Make this class non-abstract.
1512 * package_version.cc (packageversion::packageversion): New method.
1513 * package_version.h (Dependency): New class.
1514 (packageversion::Canonical_vesion): New method.
1515 (packageversion::SDesc): New method.
1516 (packageversion::LDesc): New method.
1517 (packageversion::new_requirement): Ditto.
1518 (packageversion::srcpicked, binpicked): What to install.
1519 (packageversion::src, bin): Installation source data.
1520 * rfc1738.cc: New file. Escapes special characters in URL's.
1523 2001-11-26 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1525 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Stop header parsing when
1526 SimpleSocket::gets() returns a zero-length string, so that we
1527 don't end up eating the entire stream thinking it's all header info.
1529 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
1531 * install.cc (badrename): Remove.
1532 (do_install): Use packagedb flush method to write /etc/setup/installed.db.
1533 * io_stream.cc (io_stream::move_copy): New method.
1534 (io_stream::move): New method.
1535 * io_stream.h (io_stream): New methods move and move_copy.
1536 * io_stream_cygfile.cc (io_stream_cygfile::move): New method.
1537 * io_stream_cygfile.h (io_stream_cygfile): New method move.
1538 * io_stream_file.cc (io_stream_file::move): New method.
1539 * io_stream_file.h (io_stream_file): New method move.
1540 * package_db.cc (packagedb::flush): New method.
1541 * package_db.h (packagedb): New method flush.
1543 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
1545 * Makefile.in (OBJS): Add package_version.
1546 * ategory.cc (Category::Category): Update constructors.
1547 * category_list.cc (CategoryList::register_category): Insert correctly.
1548 * choose.cc: Include package_version.h, not package.h.
1549 * cygpackage.cc: Ditto.
1550 (cygpackage::uninstall): New method.
1551 * cygpackage.h (cygpackage): Rename genericpackage to packageversion.
1552 New method uninstall.
1553 * hash.cc (add, has, enumerate): Change prototype to be accurate.
1554 * hash.h (hash): Change prototypes to be accurate.
1555 * ini.h (_Info): New parameterless constructor.
1556 (CategoryPackage): New constructor.
1558 * install.cc: Don't include unneeded headers.
1559 Include package database headers.
1560 (hash::add_subdirs): Remove.
1561 (uninstall_one): Use packagemeta->uninstall to perform the uninstallation.
1562 Don't uninstall source packages.
1563 (do_install): Just can uninstall_one once as we ignore source packages now.
1564 Don't copy the installed.old database accross, instead iterate through the
1565 packagedb packages list and write the isntalled packages out.
1566 * package_db.cc: Include package_version.h, not package.h.
1567 (packagedb::packagedb): Never let db be undefined.
1568 Record the installation filename, so we can reconstruct installed.db.
1569 (packagedb::addpackage): Insert packages in alpha sorted order.
1570 (packagedb::categories): Initialise correctly.
1571 * package_meta.cc: Include win32 and mount headers as a workaround to
1572 current io_stream limitations. Include a TODO about that.
1573 (standard_dirs): New, from install.cc.
1574 (hash::add_subdirs): New, from install.cc.
1575 (packagemeta::set_installed): Rename genericpackage to packageversion.
1576 (packagemeta::uninstall): New method.
1577 * package_meta.h: Rename genericpackage to packageversion.
1578 (packagemeta): Update constructor.
1579 (add_version, set_installed): Rename genericpackage to packageversion.
1580 (uninstall): New method.
1581 (installed_from): New member.
1582 * package_source.cc: New file.
1583 * package_source.h: New file.
1584 * package_version.cc: New file.
1585 * package_version.h: New file.
1586 * package.cc: Removed.
1587 * package.h: Removed.
1589 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
1591 * Makefile.in (OBJS): Add category.o and category_list.o.
1592 * category.h: New file.
1593 * category.cc: New file.
1594 * category_list.h: New file.
1595 * category_list.cc: New file.
1596 * choose.cc: Include category headers.
1597 (fill_missing_category): Use package_db to access global categories.
1598 (_view::insert_pkg): Ditto.
1599 (_view::insert_category): Ditto.
1600 (set_view_mode): Ditto.
1601 (getcategorybyname): Remove.
1602 * cygpackage.h: Include category_list.h to parse this correctly.
1603 (cygpackage): New virtual &Categories.
1604 * ini.h (_CategoryPackage): More C to C++ conversion.
1606 (getcategorybyname): Remove.
1607 (register_category): Remove.
1608 * iniparse.y: Include package db and category headers.
1609 (categories): Use package_db to access global categories.
1611 (ncategories): Remove.
1612 (register_category): Remove.
1613 * package.h: New virtual &Categories.
1614 * package_db.cc (packagedb::packagedb): Don't read the installed db twice.
1615 (packagedb::categories): Declare.
1616 * package_db.h (packagedb): New member categories for global categories list.
1618 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
1620 * choose.h: Don't include ini.h
1621 * ini.h: Allow pure c++ in the header file.
1623 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
1625 * install.cc (do_install): Write a version 2 installed.db file.
1626 * package_db.cc (packagedb::packagedb): Read version 1 and 2 installed.db files.
1628 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
1630 * Makefile.in (OBJS): Add package abstraction objects.
1631 * choose.cc: Include package abstraction headers.
1632 (read_installed_db): Use packagedb class and ignore installed sources.
1633 * cygpackage.cc: New file.
1634 * cygpackage.h: New file.
1635 * filemanip.h (get_file_size): Use unixy types.
1636 * package.h: New file.
1637 * package.cc: New file.
1638 * package_db.cc: New file.
1639 * package_db.h: New file.
1640 * package_meta.cc: New file.
1641 * package_meta.h: New file.
1643 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
1645 * REAME: Updates to wishlist.
1647 2001-11-16 Robert Collins <rbtcollins@hotmail.com>
1649 * README: Updated and added my list of wishlist and todo items.
1651 2001-11-14 Robert Collins <rbtcollins@hotmail.com>
1653 * Makefile.in (OBJS): Include io_stream_memory in setup.exe.
1654 * archive_tar.cc (archive_tar::write): New prototype.
1655 (archive_tar::seek): New method.
1656 * archive.h (archive_tar_file): Update write() and add seek().
1657 (archive_tar): Ditto.
1658 * archive_tar_file.cc (archive_tar_file::write): New prototype.
1659 (archive_tar_file::seek): New method.
1660 * compress_bz.cc (compress_bz::write): New prototype.
1661 (compress_bz::seek): New function.
1662 * compress_bz.h (compress_bz): Update write() and add seek().
1663 * compress_gz.cc (compress_gz::write): New prototype.
1664 (compress_gz::seek): New function.
1665 * compress_gz.h (compress_gz): Update write() and add seek().
1666 * geturl.cc: Include io_stream headers.
1668 (get_url_to_string): Use a io_stream_memory buffer instead of GUBuf.
1669 * io_stream.h (io_stream_seek_t): New enum.
1670 (io_stream): Update write() and add seek().
1671 * io_stream_cygfile.cc (io_stream_cygfile::write): New prototype.
1672 (io_stream_cygfile::seek): New function.
1673 * io_stream_cygfile.h (io_stream_cygfile): Update write() and add seek().
1674 * io_stream_file.cc (io_stream_file::write): New prototype.
1675 (io_stream_file::seek): New function.
1676 * io_stream_file.h (io_stream_file): Update write() and add seek().
1678 2001-11-13 Brian Keener <bkeener@thesoftwaresource.com>
1680 * localdir.cc: Add headers unistd.h and port.h.
1681 (save_local_dir): Expand search logic to include local directory for
1682 location of file last-cache.
1683 (dialog_cmd): Skip IDD_ROOT when downloading and use Back button.
1684 (do_local_dir): Expand search logic to include local directory for file
1686 * res.rc (IDD_CHOOSE_DIALOG): Add hotkey to View button.
1687 * Source.cc (dialog_cmd): Skip IDD_ROOT if select Download from
1689 (do_source): Default to Install from Internet on first entry or
1690 previous selection if backing up from IDD_ROOT or IDD_LOCAL_DIR.
1692 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
1694 * choose.cc (find_tar_ext): Only match at the end of the string.
1695 (getpkgbyname): Prevent NULL pointer dereference.
1697 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
1699 * Makefile.in (CFLAGS): Add warnings and -Werr.
1700 (WARNONLY_FLAGS): For sources that produce (harmless) errors no matter what.
1701 (OBJS): Add io_stream class' objects.
1702 (autoload.o): Use WARNONLY_FLAGS.
1704 (iniparse.o): Ditto.
1705 * archive.cc: New file.
1706 * archive.h: New file.
1707 * archive_tar.cc: New file.
1708 * archive_tar.h: New file.
1709 * archive_tar_file.cc: New file.
1710 * autoload.c: Fix compiler warnings (unused, deprecated conversion).
1711 * choose.cc: Use io_stream.h, not mount.h.
1713 (find_tar_ext): Rewritten to use strstr, and to accept .tar as an extension.
1714 (read_installed_db): Use io_streams.
1715 * choose.h: Run indent.
1716 * compress.cc: New file.
1717 * compress.h: New file.
1718 * compress_bz.cc: New file.
1719 * compress_bz.h: New file.
1720 * compress_gz.cc: New file.
1721 * compress_gz.h: New file.
1722 * concat.cc: Run indent.
1723 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1724 * concat.h: Run indent.
1725 * desktop.cc: Run indent.
1726 Include mklink2.h rather than redefining by hand.
1727 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1728 (etc_profile): Fix compiler warning (deprecated conversion).
1729 (make_link): Fix compiler warning (deprecated conversion).
1730 Tidy up use of args variable - consolidate into argbuf.
1731 (start_menu): Fix compiler warning (deprecated conversion).
1732 (desktop_icon): Fix compiler warning (deprecated conversion).
1733 (make_etc_profile): Fix compiler warning (deprecated conversion).
1734 (uexists): Fix compiler warning (deprecated conversion).
1735 (check_desktop): Fix compiler warning (deprecated conversion).
1736 (check_startmenu): Fix compiler warning (deprecated conversion).
1737 * dialog.cc: Run indent.
1738 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1739 (fatal): Fix compiler warning (deprecated conversion).
1740 * dialog.h: Run indent.
1741 * diskfull.cc: Run indent.
1742 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1743 * download.cc: Run indent.
1744 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1745 (download_one): Fix compiler warning (signed vs unsigned comparison).
1746 * filemanip.h: Run indent.
1747 * find.cc: Run indent.
1748 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1749 (find): Fix compiler warning (deprecated conversion).
1750 * find.h: Run indent.
1751 * fromcwd.cc: Run indent.
1752 * geturl.cc: Run indent.
1753 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1754 (dialog_cmd): Return a value.
1755 (dialog_proc): Remove unused variables.
1757 (get_url_to_file): Fix compiler warning (deprecated conversion).
1758 * geturl.h: Run indent.
1759 * hash.cc: Run indent.
1760 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1761 * hash.h: Run indent.
1762 * ini.cc: Run indent.
1764 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1765 (do_ini): Use io_streams for local io.
1766 * ini.h: Run indent.
1767 * inilex.l (ignore_line): Fix compiler warning (is not a prototype).
1768 Fix compiler warning (brackets for truth assignment).
1769 * install.cc: Run indent.
1770 Fix compiler warning (/* in comment).
1772 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1773 (dialog_cmd): Return a value.
1774 (dialog_proc): Return a value.
1775 (start_tics): Deleted - was unused.
1776 (badrename): Fix compiler warnings (unused, deprecated conversion).
1777 (standard_dirs): Fix compiler warning (deprecated conversion).
1779 (uninstall_one): Convert to io_streams.
1780 (install_one): Convert to io_streams.
1781 (do_install): Convert to io_streans.
1782 Fix compiler warning (deprecated conversion).
1783 * io_stream.cc: New file.
1784 * io_stream.h: New file.
1785 * io_stream_cygfile.cc: New file.
1786 * io_stream_cygfile.h: New file.
1787 * io_stream_file.cc: New file.
1788 * io_stream_file.h: New file.
1789 * localdir.cc: Run indent.
1791 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1792 (get_root_dir_now): Remove.
1793 (save_local_dir): Convert to io_streams.
1794 (dialog_cmd): Return a value.
1795 (do_local_dir): Convert to io_streams.
1796 (log.cc): Run indent.
1797 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1798 (log): Fix compiler warning (deprecated conversion).
1799 (log_save): Fix compiler warning (deprecated conversion).
1800 * log.h: Run indent.
1801 (log): Fix compiler warning (deprecated conversion).
1802 (log_save): Fix compiler warning (deprecated conversion).
1803 * main.cc: Run indent.
1804 Don't include "netio.h".
1805 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1806 (netio_test): Remove.
1807 (sid_auth): Fix compiler warning (partially bracketed initialiser).
1808 (WinMain): Return a value.
1809 * mkdir.cc: Run indent.
1810 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1811 * mklink2.c: Run indent.
1812 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1813 (mkcygsymlink): New function.
1814 * mklink2.h: New file.
1815 * mount.cc: Run indent.
1816 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1817 (create_mount): Remove unused variables.
1818 (cygpath): Fix compiler warning (signed vs unsigned comparison).
1819 * mount.h: Run indent.
1820 * msg.cc: Run indent.
1821 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1822 (msg): Fix compiler warning (deprecated conversion).
1823 (mbox): Fix compiler warning (deprecated conversion).
1824 * msg.h: Run indent.
1825 (msg): Fix compiler warning (deprecated conversion).
1826 * net.cc: Run indent.
1827 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1828 (dialog_cmd): Return a value.
1829 * netio.cc: Run indent.
1830 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1831 (auth_cmd): Return a value.
1832 * netio.h: Run indent.
1833 * nio-file.cc: Run indent.
1834 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1835 (NetIO_File::NetIO_File): Fix compiler warning (deprecated conversion).
1836 * nio-file.h: Run indent.
1837 * nio-ftp.cc: Run indent.
1838 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1839 * nio-ftp.h: Run indent.
1840 * nio-http.cc: Run indent.
1841 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1842 * nio-http.h: Run indent.
1843 * nio-ie5.cc: Run indent.
1844 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1845 * nio-ie5.h: Run indent.
1846 * other.cc: Run indent.
1847 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1848 (dialog_cmd): Return a value.
1849 * port.h: Run indent.
1850 * postinstall.cc: Run indent.
1851 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1852 (cmd): Fix compiler warning (deprecated conversion).
1853 (eun): Fix compiler warning (deprecated conversion).
1854 * root.cc: Run indent.
1855 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1856 * simpsock.cc: Run indent.
1857 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1858 * simpsock.h: Run indent.
1859 * site.cc: Run indent.
1861 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1862 (get_root_dir_now): Remove.
1863 (save_site_url): Convert to io_streams.
1864 (dialog_cmd): Return 0.
1865 (get_initial_list_idx): Convert to io_streans.
1866 * source.cc: Run indent.
1867 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1868 (check_if_enable_next): Remove.
1869 (load_dialog): Remove unused variables.
1870 (save_dialog): Ditto.
1871 (dialog_cmd): Return a value.
1872 * splash.cc: Return a value.
1873 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1874 (dialog_cmd): Return a value.
1875 * state.cc: Run indent.
1876 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1877 * state.h: Run indent.
1881 2001-11-12 Christopher Faylor <cgf@redhat.com>
1883 * desktop.cc (start_menu): Change start menu name to "Cygwin".
1884 (check_startmenu): Ditto.
1886 2001-11-11 Christopher Faylor <cgf@redhat.com>
1888 * choose.cc (parse_filename): Finish reorganization by correctly
1889 decrementing p in memmove.
1891 2001-11-11 Christopher Faylor <cgf@redhat.com>
1893 * choose.cc (parse_filename): Reorganize code to work around gcc
1894 optimization problem.
1896 2001-11-09 Gareth Pearce <tilps@hotmail.com>
1898 * choose.cc (set_action): Allow skip as an option for installed
1899 packages that have version number not listed in setup.ini.
1901 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
1903 * choose.cc (set_cation): Backout last change.
1904 (choose_caption): Ditto.
1906 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
1908 * ini.h (actions): Remove - transferred to choose.h.
1910 * choose.h: Protect class's from "C" compilers.
1911 (actions): New enum, from ini.h. This may not be the 'right' place
1912 but that place doesn't exist yet.
1913 (_views): New enum, from ini.h.
1914 * choose.cc (set_action): Handle installed packages with a version not in
1916 (choose_caption): Ditto.
1917 * iniparse.y: Rearrange header order to handle new ini.h.
1919 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
1921 * ini.h (_Info): Fix compiler warnings (signed vs unsigned comparison).
1922 (registry_category): Fix compiler warning (deprecated conversion).
1923 * iniparse.y (registry_category): Ditto.
1924 * choose.cc (cvsid): Fix compiler warnings (unused, deprecated conversion).
1925 (add_requried): Remove unused variable.
1926 (choose_caption): Handle all enumeration values via a default.
1927 (paint): Fix compiler warnings (unused, deprecated conversion).
1928 (scroll_common): Fix compiler warnings (unused, signed vs unsigned comparison).
1929 (list_clicK): Fix compiler warnings (signed vs unsigned comparison).
1930 (note_width): Fix compiler warnings (deprecated conversion).
1931 (keep_or_skip): Fix compiler warnings (unused).
1932 (_view::mode_caption): Fix compiler warnings (deprecated conversion).
1933 (set_view_mode): Fix compiler warnings (unused).
1934 (create_listview): Fix compiler warnings (unused, incorrect format, reaches
1936 (dialog_proc): Fix compiler warnings (unused).
1937 (read_installed_db): Fix compiler warnings (unused, deprecated conversion).
1938 * choose.h (_header): Fix compiler warnings (deprecated conversion).
1941 2001-11-08 Pavel Tsekov <ptsekov@syntrex.com>
1943 * simpsock.h (SimpleSocket::invalidate): Declare new method.
1944 * simpsock.cc (SimpleSocket::invalidate): Implement new method.
1945 (SimpleSocket::SimpleSocket): Initialize buf to zero. Do not allocate
1946 memory for buf in the constructor.
1947 (SimpleSocket::~SimpleSocket): Use SimpleSocket::invalidate().
1948 (SimpleSocket::printf): Use SimpleSocket::write() instead of send().
1949 (SimpleSocket::write): Check object consistency - return -1 on error.
1950 invalidate() the object on socket write error.
1951 (SimpleSocket::fill): Check object consistency - return -1 on error.
1952 invalidate() the object if socket read error is encountered and there
1953 is no more data available in the internal read buffer.
1954 Allocate memory for the internal read buffer.
1955 (SimpleSocket::gets): Return zero (NULL pointer) if error is encountered
1956 during fill() and no more data is available in the internal read buffer.
1957 (SimpleSocket::read): Check object consistency - return -1 on error.
1958 invalidate() the object if socket read error is encountered.
1959 * nio-ftp.cc (NetIO_FTP:NetIO_FTP): Allow 125 as valid response code to
1960 the RETR command (fix for MS IIS ftp server 5 - possibly others too).
1961 (NetIO_FTP::ok): Check if the SimpleSocket object is ok().
1962 (NetIO_FTP::read): Use NetIO_FTP::ok().
1963 * nio-http.cc: Check for valid return value of SimpleSocket::gets().
1964 (NetIO_HTTP::ok): Check if the SimpleSocket object is ok().
1966 2001-11-09 Robert Collins <rbtcollins@hotmail.com>
1968 * simpsock.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
1969 (SimpleSocket::SimpleSocket): Avoid compiler warnings (deprecated conversion).
1970 (SimpleSocket::printf): Ditto.
1971 (SimpleSocket::write): Ditto.
1972 * simpsock.h (SimpleSocket): Avoid compiler warnings for constructor,
1974 * nio-ftp.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
1975 (NetIO_FTP::NetIO_FTP): Remove unused variable done.
1976 * nio-http.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
1978 2001-11-07 Charles Wilson <cwilson@ece.gatech.edu>
1980 * geturl.cc (get_url_to_string): clean up memory leak
1981 (get_url_to_file): ditto
1983 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
1985 * localdir.cc (dialog_cmd): Go back to IDD_ROOT in every case.
1986 * source.cc (dialog_cmd): Go forward to IDD_ROOT in every case.
1988 2001-11-06 Pavel Tsekov <ptsekov@syntrex.com>
1990 * fromcwd.cc (found_file): Free() memory containing the version and
1991 filepath information for a given package, before replacing the pointers which
1992 reference this memory.
1994 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
1996 * fromcwd: Fix compiler warnings for cvsid.
1997 (canonicalize_version): Fix compilter warnings.
1998 (do_fromcwd): Ditto.
1999 * version.h: Fix compiler warnings for canonicalize_version.
2001 2001-11-03 Robert Collins <rbtcollins@hotmail.com>
2003 * res.rc (IDD_CHOOSE): Move the view caption to the right hand side.
2005 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2007 * res.rc (IDD_CHOOSE): Tweak for use on a 640x480 screen.
2009 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2011 * choose.cc (set_action): Correctly allow skip for any uninstalled package.
2013 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2015 * choose.cc (default_trust): Change the "Required" forced install category to
2018 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2020 * choose.cc: Ran indent.
2021 (set_action): When the requested trust level is missing and the level was not
2022 user requested, set the action to ACTION_SAME_CURR.
2024 2001-11-01 Christopher Faylor <cgf@redhat.com>
2026 * Makefile.in (mingw_getopt.o): Fix typo in non-verbose compilation.
2028 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2030 * choose.cc (_view::init_headers): Resync with the paint logic.
2032 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2034 * choose.cc (add_required): Allow SKIP and SRC_ONLY for currently installed
2037 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2039 * choose.cc (default_trust): Autoset currently installed packages per the user's
2040 selection of prev/curr/exp.
2042 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2044 * splash.cc (dialog_proc): Return TRUE as specified in the WIN32 API.
2046 2001-11-02 Pavel Tsekov <ptsekov@syntrex.com>
2048 * geturl.cc (is_showing): Remove.
2049 (is_local_install): New static variable. Controls whether the
2050 progress dialog and the supporting thread will be created.
2051 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the WIN32 API.
2052 (init_dialog): Remove usage of SetForegroundWindow and is_showing.
2053 This prevents the progress dialog to gain control over the
2054 application and fixes the "setup.exe going to background" problem.
2055 (progress): Use is_local_install.
2056 (get_url_to_string): Set is_local_install.
2057 (dismiss_url_status_dialog): Use is_local_install.
2058 * install.cc (dialog_proc): Return TRUE as specified in WIN32 API.
2059 (init_dialog): Remove usage of SetForegroundWindow.
2060 This prevents the progress dialog to gain control over the
2061 application and fixes the "setup.exe going to background" problem.
2063 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2065 * choose.cc (list_click): Change r to row for clarity.
2066 When we shrink the list below 1 page, scroll to the top of the list.
2067 (_view::click): Return the actual change for contractions.
2068 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the Win32 API.
2070 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2072 * choose.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
2073 * localdir.cc: Ran indent.
2074 (get_root_dir_now): New function.
2075 (save_local_dir): New function.
2076 (dialog_cmd): Use it and swap cygwin root selection and local dir selection order.
2077 (do_local_dir): If there is a saved local dir, read it in.
2078 * net.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
2079 * root.cc (dialog_cmd): Ditto.
2080 * source.cc (dialog_cmd): Ditto.
2082 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
2084 * choose.cc(list_vscroll): Return 0 as required by win32.
2085 (list_hscroll): Ditto.
2086 (list_click): Ditto.
2088 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
2092 * main.cc(WinMain): Use __argv to retrieve command line parameters.
2093 * Makefile,in: Remove argv.o.
2095 2001-11-01 Matt Hargett <matt@use.net>
2097 * geturl.cc (progress): Change int to unsigned int to eliminate
2099 * (get_url_to_string): Check for NULL pointer.
2100 * mount.cc (find2): Use free instead of delete for malloc'd
2102 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Fix memory leak.
2104 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
2106 * choose.cc(_view::insert_under): Handle linen > nlines and lines[linen] with neither
2107 a package nor a category. The lines[linen] bug was reported by Matt (matt@usa.net).
2108 (read_installed_db): Bugfix for testing whether a package has a source tarball.
2109 Reported by Matt (matt@usa.net).
2110 * geturl.cc(dialog): Rename gw_dialog to local_gw_dialog to avoid programmer
2111 confusion and lint errors. Reported by Matt (matt@usa.net).
2113 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
2115 * argv.cc: New file, converts arguments for -mwindows programs. (Simplified derivation
2118 * Makefile,in: Add argv.o and mingw_getopt.o to setup.exe object list.
2119 Add mingw_getopt.o build rule.
2120 * main.cc(WinMain): Initialise argv and argc for use by getopt.
2122 2001-10-27 Christopher Faylor <cgf@redhat.com>
2124 * res.rc: Rearrange info on top line slightly.
2126 2001-10-27 Christopher Faylor <cgf@redhat.com>
2128 * desktop.cc (make_passwd_group): Move file creation earlier in the
2129 process to ensure that passwd-grp.bat reflects desired operation.
2131 2001-27-10 Trevor Forbes <t4bs@hotmail.com>
2133 * postinstall.cc (each): Remove "*.done" file else rename will fail.
2135 2001-10-16 Christopher Faylor <cgf@redhat.com>
2137 * res.rc: Oops. Take 640x480 screen size into account.
2139 2001-10-16 Christopher Faylor <cgf@redhat.com>
2141 * res.rc: Enlarge chooser screen.
2143 2001-10-12 Christopher Faylor <cgf@redhat.com>
2145 * Makefile.in: Accomodate changes to w32api_include macro.
2147 2001-10-12 Christopher Faylor <cgf@redhat.com>
2149 * Makefile.in: Use correct flags for windres.
2151 2001-10-12 Christopher Faylor <cgf@redhat.com>
2153 * Makefile.in (CFLAGS): Remove -nostdinc from CFLAGS.
2155 2001-10-12 Christopher Faylor <cgf@redhat.com>
2157 * choose.cc (pick_line::paint): Reorganize after botched patch.
2159 2001-10-12 Christopher Faylor <cgf@redhat.com>
2161 * choose.cc (pick_line::paint): Add missing declaration.
2163 2001-10-10 Ralf Habacker <Ralf.Habacker@freenet.de>
2165 * choose.cc (pick_line::paint): Add package name to sdesc for display.
2167 Wed Sep 26 21:39:00 Robert Collins rbtcollins@hotmail.com
2169 * choose.cc (_view::insert_pkg): Correctly exit loop.
2170 * iniparse.y (register_category): Always insert new categories.
2172 Fri Sep 21 13:56:32 2001 Christopher Faylor <cgf@cygnus.com>
2174 * inilex.l (yylex): For comments, eat all characters up to, but not
2177 Sun Aug 26 12:50:01 2001 John Marshall <jmarshall@acm.org>
2179 * fromcwd.cc (found_file): Use correct package name when adding an
2180 unknown package rather than random stack garbage.
2182 Sun Aug 12 14:25:21 2001 Christopher Faylor <cgf@cygnus.com>
2184 * desktop.cc (make_passwd_group): .bat files need \r\n endings.
2186 Wed Aug 8 13:53:47 2001 Christopher Faylor <cgf@cygnus.com>
2188 * desktop.cc (etc_profile): Leave environment variables untouched.
2190 2001-08-07 Corinna Vinschen <corinna@vinschen.de>
2192 * autoload.c: Add dynamic load statements for NT/W2K
2193 advapi32 functions not available in 9x/ME.
2194 * main.cc (set_default_dacl): New function.
2195 (WinMain): Call `set_default_dacl' if running on NT/W2K.
2197 Sat Aug 4 21:35:53 2001 Christopher Faylor <cgf@cygnus.com>
2199 * ini.h (_CategoryPackage): Change pkg field to pkgname for
2201 * choose.cc: Use pkgname field when referencing _CategoryPackage
2203 (fill_missing_category): Don't add excluded packages.
2204 (default_trust): Ditto.
2205 (_view::insert_pkg): Ditto.
2206 * iniparse.y (register_category): Use consistent variable name.
2208 2001-07-09 Egor Duda <deo@logos-m.ru>
2210 * choose.cc: Use system foreground color for text output.
2212 Sat Jul 7 00:40:28 2001 Christopher Faylor <cgf@cygnus.com>
2214 * choose.cc (set_action): Use default trust for determining reinstall
2216 (default_trust): Set default trust.
2217 (pick_line::paint): Allow source selection when reinstalling or
2220 Fri Jul 6 18:08:49 2001 Christopher Faylor <cgf@cygnus.com>
2222 * choose.cc (isinstalled): Modify to properly accomodate special case
2224 (set_action): Check downloaded components, not installed components if
2226 (set_existence): Always include full list of files when "download
2229 Fri Jul 6 00:37:05 2001 Christopher Faylor <cgf@cygnus.com>
2231 * choose.cc (pick_line::paint): Properly display "na" field when no
2234 Thu Jul 5 00:34:23 2001 Christopher Faylor <cgf@cygnus.com>
2236 * choose.cc (scan2): Ensure that older versions do not show up in
2239 Mon Jul 2 15:47:59 2001 Christopher Faylor <cgf@cygnus.com>
2241 * choose.cc (set_action): Allow "Skip" action if trust != installed.
2242 * res.rc: Fix copyright.
2244 Sat Jun 30 14:05:21 2001 Michael A Chase <mchase@ix.netcom.com>
2246 * res.rc (IDD_LOCAL_DIR): Change caption to match the other dialog
2248 (IDD_CHOOSE): Adjust horizontal size so package names are visible.
2250 * choose.cc: Restore some more changes from 2001-06-25, throughout.
2251 (paint): Wrap some excessively long lines.
2252 (pick_line::paint): Ditto. Move the arrow in the "Current" column
2253 right to where it belongs. Move the source checkbox slightly to the
2255 (do_choose): List categories and required packages in setup.log.full.
2257 Sat Jun 30 23:04:59 2001 Christopher Faylor <cgf@cygnus.com>
2259 * choose.cc (scan2): Restore source scanning eliminated by previous checkin.
2261 Sat Jun 30 15:18:33 2001 Christopher Faylor <cgf@cygnus.com>
2263 * ini.h (struct _Info): Add "derived" element.
2264 * choose.cc (scan2): Try to place unknown tar files into proper slot
2265 when package exists in setup.ini but tar file does not.
2267 Sat Jun 30 13:39:00 2001 Robert Collins <rbtcollins@hotmail.com>
2269 * choose.cc (create_listview): Call set_view_mode with VIEW_CATEGORY.
2270 (do_choose): Log the first category name.
2272 Fri Jun 29 23:07:44 2001 Christopher Faylor <cgf@cygnus.com>
2274 *ini.h: Reapply 2001-06-25 changes.
2275 * choose.cc (add_required): Ditto. Default to "Keep" state if
2276 UNINSTALL and product is installed. Default to curr state if SKIP,
2278 (keep_or_skip): New function. Returns skip or keep state depending on
2279 installed state of package.
2280 (default_trust): Use keep_or_skip to set state.
2281 (_view::insert_pkg): Use calloc to allocate lines.
2282 (set_view_mode): Adapt 2001-06-25 change to set_full_list here.
2284 Sat Jun 30 11:01:00 2001 Robert Collins <rbtcollins@hotmail.com>
2286 * choose.cc: Remove globals full_list, headers, package_indexes and
2288 Add globals cat_headers, pkg_headers and chooser.
2289 (add_required): New function.
2290 (paint): Use the chooser for header details.
2291 Call into the chooser to paint each line.
2292 (list_click): Use new global variables.
2293 Call into the chooser to handle the click.
2294 Repaint the entire view if packages have been added or removed.
2295 (note_width): Get passed a headers struct rather than using a global
2297 (fill_missing_category): New function.
2298 (default_trust): Skip non-"Required" or "Misc" packages.
2299 (pick_line::set_line (Package *)): New function.
2300 (pick_line::set_line (Category *)): New function.
2301 (pick_line::paint): New function.
2302 (pick_line::click): New function.
2303 (_view::_view): New function.
2304 (_view::set_view_mode): New function.
2305 (_view::mode_caption): New function.
2306 (_view::set_headers): New function.
2307 (_view::init_header): New function.
2308 (_view::insert_pkg): New function.
2309 (_view::insert_category): New function.
2310 (_view::insert_at): New function.
2311 (_view::insert_under): New function.
2312 (_view::clear_view): New function.
2313 (viewsplusplus): New function.
2314 (_view::client): New function.
2315 (set_view_mode): Use new chooser functionality.
2316 (set_full_list): Use new global variables.
2317 (create_listview): Instantiate chooser.
2318 Remove all hardcoded headers[] code.
2319 (dialog_cmd): On trust changes, check dependencies.
2320 (getcategorybyname): New function.
2321 (getpackagecategorybyname): New function.
2322 (scan2): Use case-insensitive package comparison.
2323 (do_choose): Use fill_missing_category ().
2324 Show some category data.
2325 * ini.h: Protect against multiple inclusion.
2327 (_CategoryPackage): New struct.
2328 (_Category): New struct.
2329 (_Package): Change category to Category * from char *.
2330 (extern Category category): New global variable.
2331 (extern in ncategories): Ditto.
2332 (getcategorybyname): New prototype.
2333 (catpackagecategorybyname): New prototype.
2334 (register_category): New prototype.
2335 (add_category): New prototype.
2336 * iniparse.y: Parse multiple categories per package.
2337 (category): New global variable.
2338 (ncategories): New global variable.
2339 (new_package): Compare package against NULL, not 0.
2340 (new_requirement): Source formatting fix.
2341 (register_category): New function.
2342 (add_category): New function.
2343 * res.rc: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
2344 IDC_CHOOSE_VIEWCAPTION: New control.
2345 * resource.h: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
2346 IDC_CHOOSE_VIEWCAPTION: New control.
2347 Increment _APS_NEXT_CONTROL_VALUE.
2349 Mon Jun 25 00:56:37 2001 Michael A Chase <mchase@ix.netcom.com>
2351 * choose.cc (paint): Wrap excessively long lines.
2352 (list_click): Ditto.
2353 (create_listview): Ditto.
2354 (do_choose): Ditto. Replace TABs and remove CRs in lines written to
2355 setup.log.full. Allow "Yes" for source exists in setup.log.full when
2356 installing from local directories.
2358 Mon Jun 25 00:56:37 2001 Christopher Faylor <cgf@cygnus.com>
2360 * choose.cc (set_action): Only clear srcpicked when moving to next
2361 state. Allow source installation if it exists in the current "trust"
2362 state. Don't move to skip state when package is installed.
2363 (list_click): Don't allow source clicking when no source is available.
2364 (set_full_list): Display package when not is_full_action.
2365 * ini.h (is_full_action): Define.
2367 Sun Jun 17 12:06:14 2001 Christopher Faylor <cgf@cygnus.com>
2369 * install.cc (check_for_old_cygwin): New function. First stab at
2370 checking for old cygwin versions.
2371 (do_install): Call check_for_old_cygwin if there were no errors during
2374 Sat Jun 16 11:33:51 2001 Michael A Chase <mchase@ix.netcom.com>
2376 * choose.cc (_Info::_Info): Test _source paramenter for non-NULL rather
2377 than zeroed "source" element.
2379 Fri Jun 15 20:54:43 2001 Christopher Faylor <cgf@cygnus.com>
2381 * choose.cc (scan2): Insert unknown tar archives, found on disk, into
2382 the highest available "hole" in the trust array.
2384 Fri Jun 15 00:20:48 2001 Christopher Faylor <cgf@cygnus.com>
2386 * choose.cc (set_existence): Use pointer method for indexing in trust
2388 (create_listview): Ditto.
2389 (scan2): Ditto. Also, use consistent variable name for indexing into
2391 * ini.h (Package): Reorganize info array for easier scanning.
2393 Fri Jun 15 00:01:51 2001 Christopher Faylor <cgf@cygnus.com>
2395 * choose.cc (isinstalled): Eliminate special download only test.
2396 (set_action): Don't move to next state if in ACTION_SAME range and not
2398 (choose_caption): Display "Retrieve" rather than "Reinstall" when just
2400 (do_choose): Sort packages after all packages have been read.
2401 Accomodate the fact that first element in trust array is empty so that
2402 log files don't report the wrong trust value.
2403 * iniparse.y (new_package): Malloc space for package name or suffer
2406 Thu Jun 14 22:43:59 2001 Robert Collins <rbtcollins@hotmail.com>
2408 * ini.h (Dependency): New structure. Declare new function.
2409 * inilex.l (yylex): Detect new setup.ini options - category and requires.
2410 * iniparse.y: Declare new setup.ini token values.
2411 (yyparse): Parse new token values.
2412 (new_requirement): New function.
2414 Thu Jun 14 22:43:26 2001 Christopher Faylor <cgf@cygnus.com>
2416 * choose.cc (read_installed_db): Eliminate obsolete code.
2418 Thu Jun 14 22:11:53 2001 Christopher Faylor <cgf@cygnus.com>
2420 * choose.cc (set_action): Set trust on "redo".
2421 (_Info::_Info): New constructor.
2422 (read_installed_db): Use new constructor. Use trusts type for
2424 * ini.h (struct _Info): Label struct, add constructor.
2425 (Package): Make installed_ix a type 'trusts.'
2426 * install.cc (uninstall_one): Unset any installed info for current
2428 (install_one): Allocate new Info struct for installed reflecting new
2430 (do_install): Don't output line to installed.db if package is being
2433 Thu Jun 14 20:33:01 2001 Robert Collins <rbtcollins@hotmail.com>
2435 * choose.cc (getpkgbyname): Use consistent method for scanning package
2438 Wed Jun 13 23:33:08 2001 Christopher Faylor <cgf@cygnus.com>
2440 * choose.cc: Add some comments.
2441 (getpkgbyname): Use strcasecmp for comparisons.
2443 Wed Jun 13 16:07:00 2001 Christopher Faylor <cgf@cygnus.com>
2445 * install.cc (do_install): Avoid checking for download action if
2446 package wasn't currently retrieved.
2448 Wed Jun 13 11:27:22 2001 Christopher Faylor <cgf@cygnus.com>
2450 * choose.cc: Eliminate extra array throughout. Use element in package
2451 structure instead. Use pointers rather than array indexes where
2453 (set_action): New function to set next action based on current.
2454 (choose_caption): New function. Returns display caption.
2455 (check_existence): Change arguments. Use pointer to 'info' structure.
2456 (set_existence): Use pointer rather than array index.
2457 (default_trust): Use trusts enum for second argument.
2458 (set_full_list): Honor exclude element in package structure.
2459 (build_labels): Eliminate.
2460 (base): Make global. Use const char * argument.
2461 (get_package_version): Eliminate.
2462 (getpkgbyname): New function.
2463 (read_installed_db): Use parse_filename to get version info.
2464 * desktop.cc (make_passwd_group): Use getpkgbyname function.
2465 * download.cc (get_file_size): const argument.
2466 (do_download): Use is_download_action to determine when something
2467 should be downloaded.
2468 * filemanip.h: Add some functions.
2469 * ini.cc (do_ini): Use NULL rather than 0 for pointer assignment.
2470 * ini.h: Use enums for actions and trusts.
2471 (is_download_action): New macro.
2472 (is_upgrade_action): Ditto.
2473 (is_uninstall_action): Ditto.
2474 (struct Package): Add new fields.
2475 * inilex.l (yylex): Detect new setup.ini options.
2476 * iniparse.y: Declare new tokens.
2477 (yyparse): Detect exclude keyword. Fill out version field even if
2479 (new_package): Use greater granularity when allocating package array to
2480 avoid repeated calls to realloc.
2481 * install.cc (exists): const argument.
2482 (uninstall_one): Take pkg argument.
2483 (install_one): Ditto. Eliminate unneeded arguments which can be
2484 derived from package info.
2485 (do_install): Iterate over package array using a pointer. Use
2486 is_download_action to control when package should be downloaded.
2487 * tar.cc (tar_open): const argument.
2488 * tar.h: Refloect const argument.
2490 2001-05-31 Michael Chase mchase@ix.netcom.com
2492 * main.cc (WinMain): Add setup version to starting setup.log entry
2494 Tue May 29 21:37:58 2001 Yukihiko Sohda <sohda@is.titech.ac.jp>
2496 * inilex.l: Add + to list of valid string characters.
2498 Mon May 28 20:54:50 2001 Christopher Faylor <cgf@cygnus.com>
2500 * Makefile.in: Remove more stuff in the clean target.
2502 Mon May 28 18:24:59 2001 Christopher Faylor <cgf@cygnus.com>
2504 * Makefile.in: Correctly generate iniparse.h.
2506 Tue Mar 6 19:14:00 2001 Corinna Vinschen <corinna@vinschen.de>
2508 * geturl.cc (get_url_to_file): Add parameter `allow_ftp_auth'.
2509 * geturl.h: Change declaration of `get_url_to_file' accordingly.
2510 * netio.cc (NetIO::NetIO): Add parameter `allow_ftp_auth'.
2511 Set member `ftp_auth'.
2512 (NetIO::open): Add parameter `allow_ftp_auth'. Use it in calls
2513 to constructors of derived classes.
2514 (NetIO::get_ftp_auth): New method.
2515 * netio.h: Change class definition accordingly.
2516 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Add parameter `allow_ftp_auth'.
2517 Take global variables `net_ftp_user' and `net_ftp_passwd' into account.
2518 Add code for ftp authentication retry.
2519 * nio-ftp.h: Change class definition accordingly.
2520 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Add parameter `allow_ftp_auth'.
2521 Add code for ftp authentication retry in case of proxy connection.
2522 * nio-http.h: Change class definition accordingly.
2523 * res.rc: Add FTP authentication dialog.
2524 * resource.h: Add new constants used in res.rc.
2525 * state.h: Add variables `net_ftp_user' and `net_ftp_passwd'.
2527 Sun May 27 17:12:23 2001 Christopher Faylor <cgf@cygnus.com>
2529 * res.rc (IDD_SPLASH): Add a copyright year.
2531 Sun May 27 15:42:18 2001 Christopher Faylor <cgf@cygnus.com>
2533 * Makefile.in: Make iniparse.y produce a c++ file.
2534 * choose.cc (set_existence): Revert 2001-05-27 change.
2535 * ini.cc: Remove "C" from declaration of yyparse.
2536 * iniparse.y (yyparse): Fill out version field by default when a binary
2537 install is detected and no version has been set yet.
2538 * install.cc (do_install): Mount things earlier so that we can use
2539 proper mount table settings. Don't remove mounts since they are now
2541 * mount.cc (create_mount): Reread the mount table after establishing a
2543 (read_mounts): Explicitly clear root_here to allow multiple uses of
2544 this function. Ensure that there is no garbage in the table when we've
2545 exhausted all of the mounts in the registry.
2546 (cygpath): Accomodate ./ in path.
2548 Sun May 27 02:59:07 2001 Christopher Faylor <cgf@cygnus.com>
2550 Use parse_filename method to parse filenames throughout. Use
2551 get_root_dir to retrieve the current root directory throughout. Set
2552 const in argument list, where appropriate, throughout.
2553 * choose.cc (set_existence): Detect case of uninstalled package with no
2555 (parse_filename): New function.
2556 * filemanip.h (fileparse): New structure.
2557 * mount.cc (read_mounts): Remember where we found the root mount.
2558 (set_root_dir): New function.
2559 (get_root_dir): Ditto.
2560 * mount.h: Declare new functions.
2561 * site.cc (get_root_dir_now): Renamed from get_root_dir.
2562 (save_site_url): Use new function name.
2563 (get_initial_list_idx): Ditto.
2565 Sat May 26 21:23:59 2001 Christopher Faylor <cgf@cygnus.com>
2567 * choose.cc: Use a constant throughout to deal with chooser icon
2569 * res.rc (IDD_CHOOSE): Increase size of chooser box.
2571 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
2573 * choose.cc (do_choose): Fix incorrect assignment of trust setting to
2574 use when Redownload or Sources Only selected.
2576 Thu May 10 22:35:59 2001 Christopher Faylor <cgf@cygnus.com>
2578 Reformat file after botched patch formatting.
2579 * choose.cc (which_trust): Eliminate variable.
2580 (default_trust): Don't set which_trust.
2581 (do_choose): Use selected trust when reinstalling or installing source.
2583 Thu May 10 21:04:18 2001 Christopher Faylor <cgf@cygnus.com>
2585 Change concat to cygpath throughout.
2586 Change map_filename to cygpath throughout.
2587 * concat.cc (vconcat): New function.
2588 (concat): Use vconcat.
2589 * concat.h: Reflect above.
2590 * install.cc (map_filename): Eliminate.
2591 (install_one): Free dest_file.
2592 * mount.cc (find2): Expect input key to be pointing to mount record.
2593 (in_table): New function.
2594 (is_admin): Move from root.cc.
2595 (read_mounts): New function.
2596 (path_prefix_p): New function.
2597 (cygpath): New function.
2598 * mount.h: Define new functions and structure.
2599 * root.cc (in_table): Move to mount.cc.
2600 (do_root): Call read_mounts to initialize root stuff and mount table.
2601 * site.cc (get_root_dir): Ditto.
2603 2001-05-09 Matt Hargett <matt@use.net>
2605 * Makefile.in: Remove *.rc from clean.
2607 Tue May 8 23:33:38 2001 Christopher Faylor <cgf@cygnus.com>
2609 * choose.cc (scan2): Fix incorrect setting of TRUST_CURR rather than
2610 TRUST_PREV which produced "0" versions.
2612 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
2614 * resource.h: Add new field IDC_CHOOSE_INST_TEXT. Modify
2615 _APS_NEXT_CONTROL_VALUE to account for addition of
2616 IDC_CHOOSE_INST_TEXT.
2617 * res.rc (IDD_CHOOSE): Modify choose dialog to use new field
2618 IDC_CHOOSE_INST_TEXT for screen text. Modify choose Dialog to allow
2619 hot keys to select Prev, Curr, Exp.
2620 * ini.h: Add new actions for ACTION_REDO and ACTION_SRC_ONLY. Modify
2621 define for LOOP_PACKAGES to include new actions ACTION_REDO and
2623 * choose.cc: Add new Trusts for TRUST_REDO and TRUST_SRC_ONLY.
2624 (paint): Modify to check TRUST_SRC_ONLY when determining Bitmap for
2625 source Checkbox to use.
2626 (build_labels): Add logic to allow for selection of Source only
2627 Download/ReDownload/Install/Reinstall and also to Redownload/Reinstall
2628 current version binary.
2629 (dialog_proc): Add conditional display for file selection prompt based
2630 on download vs install using IDC_CHOOSE_INST_TEXT.
2631 (do_choose): Add new logic for TRUST_REDO and TRUST_SRC_ONLY selection
2632 and modify logic for TRUST_UNINSTALL, TRUST_KEEP, and TRUST_NONE to
2633 handle the instance where Source Download/Install was selected. Modify
2634 log file to store appropriate information regarding Action selected and
2635 the new actions that were added (I.E.: ACTION_REDO and
2637 * download.cc: Add include for <unistd.h> and "port.h".
2638 (download_one): Modify parameter list to include the selected action
2639 for the file to be downloaded. Modify size check against expected size
2640 to include check for ACTION_REDO and ACTION_SRC_ONLY. Modify rename of
2641 .tmp file to also remove the destination file if exists due to ability
2642 to redownload source and binary now.
2643 (do_download): Modify to also use ACTION_REDO and ACTION_SRC_ONLY in
2644 calculation of Download Bytes. Modify to also use ACTION_REDO and
2645 ACTION_SRC_ONLY in determining files selected for download.
2646 * install.cc (uninstall_one): Add check to treat a Reinstall like an
2647 upgrade so current version will be uninstalled prior to reinstall.
2648 (do_install): Add logic to handle ACTION_REDO and ACTION_SRC_ONLY for
2649 uninstalling and installing binary and source packages.
2650 * desktop.cc (make_passwd_group): Modify logic to account for a Source
2651 only cygwin install when checking for cygwin to determine need for
2652 mkpasswd and mkgroup.
2654 Mon May 7 23:33:30 2001 Matt Hargett <matt@use.net>
2656 * winsup/cinstall/res.rc: Added accelerators and improved focus order.
2657 Removed WS_DISABLED from "OK" buttons to accomodate default focus
2658 changes in net.cc and source.cc.
2659 * winsup/cinstall/net.cc (dialog_proc): If no radio button is selected,
2660 a default is selected.
2661 * winsup/cinstall/source.cc (dialog_proc): Ditto.
2662 (check_if_enable_next): Removed. No longer needed since a radio button
2663 will always be selected.
2664 (load_dialog): Removed call to check_if_enable_next.
2665 (dialog_cmd): Ditto. Also added default to switch.
2667 Tue Apr 24 23:42:02 2001 Christopher Faylor <cgf@cygnus.com>
2669 * res.rc: Resize affected text.
2671 Tue Apr 24 23:35:31 2001 Christopher Faylor <cgf@cygnus.com>
2673 * net.cc (do_net): Default to direct download.
2674 * res.rc: Move default selections to the top.
2676 2001-04-18 Earnie Boyd <earnie@users.sourceforge.net>
2678 * win32.h: Remove the definitions for _UNION_NAME and _STRUCT_NAME.
2679 Must now include <windows.h> and not the pieces.
2680 * choose.cc (create_listview): Clean up type mismatch problems.
2681 * dialog.h (NEXT(id)): Ditto.
2682 * geturl.cc (dialog): Ditto.
2683 * install.cc (dialog): Ditto.
2684 * splash.cc (load_dialog): Ditto.
2686 Wed Apr 18 18:59:21 2001 Christopher Faylor <cgf@cygnus.com>
2688 * tar.cc (class gzbz): Define dummy virtual functions.
2690 Wed Apr 18 16:01:21 2001 Christopher Faylor <cgf@cygnus.com>
2692 * Makefile.in: Add bz2 include/library support.
2693 * filemanip.h: New file.
2694 * choose.cc (find_tar_ext): New function. Returns TRUE if .tar.gz or
2696 (scan2): Reorganize to use find_tar_ext, accomodating .bz2 extension.
2697 (read_installed_db): Ditto.
2699 * fromcwd.cc (found_file): Ditto.
2700 (do_fromcwd): Ditto.
2701 * tar.cc (class gzbz): New super class for uncompression support.
2702 (gz): New class for gzip support.
2703 (bz): New class for bzip2 support.
2704 (tar_open): Use gzbz class to control file opening.
2705 (tar_ftell): Ditto for returning position in file.
2706 (skip_file): Ditto for reading file.
2707 (tar_next_file): Ditto.
2708 (tar_read_file): Ditto.
2709 (tar_close): Ditto for close.
2711 * zlib/configure.in: Force NM substitution.
2713 * source.cc (do_source): Default to "Install from Internet".
2715 2001-03-16 Brian Keener <bkeener@thesoftwaresource.com>
2717 * nio-file.cc (NetIO_File::NetIO_File): Use `get_file_size' instead of
2719 * choose.cc (list_click): Correct inability to select source code for
2721 (scan2): Modify to skip source tarballs when scanning disk for
2722 installable packages.
2724 2001-03-10 Chris Abbey <chris_abbey@yahoo.com>
2726 * install.cc: install sources into /usr/src instead
2727 of /, also include the sizes of source tarballs
2729 * download.cc: include sizes of source tarballs in
2730 total_download_bytes.
2732 Tue Mar 6 19:31:00 2000 Corinna Vinschen <corinna@vinschen.com>
2734 * download.cc (get_file_size): Remove `static'.
2736 Tue Mar 6 19:11:00 2000 Corinna Vinschen <corinna@vinschen.com>
2738 * tar.cc (tar_open): Use `get_file_size' instead of `stat'.
2740 2001-03-06 Brian Keener <bkeener@thesoftwaresource.com>
2742 * choose.cc (paint): Modify message for nothing to download vs
2743 nothing to install/update based on installation method.
2744 (list_click): Modify to skip versions in selection process if
2745 installing from local directory and installation file does not exist.
2746 Also leaves Source Action set to N/A if the source file does not exist
2747 and installing from local directory.
2748 (check_existence): New method to check current existence of installation
2749 files based on selected installation method.
2750 (set_existence): New method to set the current existence of installation
2751 files based on selected installation method.
2752 (best_trust): Modify decision process for best trust to base decision on
2753 current trust selected (IE: Prev, Curr, or Test), existence of file and
2754 installation method selected.
2755 (default_trust): Add logic to capture the current trust level and the
2756 trust selected for the given package.
2757 (set_full_list): Expand decision criteria for displaying a package in
2758 the selection list to include file existence/non-existence and selected
2759 installation method.
2760 (build_labels): Modify criteria for label addition to include
2761 installation method and file existence/non-existence.
2762 (create_listview): Modify to establish package trust level for each
2763 package before setting up the display list. Also modification to set
2764 current trust button as the default.
2765 (dialog_cmd): Set response for Prev, Curr, Test button push to perform
2766 a reset of the selection list in addition to setting the default trust.
2767 (get_package_version): New method to provide reusable code for
2768 determining the package version from the file name for a specified
2770 (scan2): Modify to use new method get_package_version and
2771 also enhance handling of the build for the structures package and
2773 (read_installed_db): Modify to use the new method
2774 get_package_version and also enhance handling of the build for the
2775 structures package and extra.
2776 (do_choose): Add additional initialization of package and extra
2777 structures. Modify to use read_installed_db all the time despite
2778 install method. Modify output to setup.log.full log file to increase
2779 readability by adding additional spacing, expanded code and available
2781 * ini.h: Add new fields install_exists, source_exists and
2782 partial_list_display to the structure definition for package.
2783 * res.rc (IDD_CHOOSE): Modify choose dialog Prev, Curr, and Test
2784 pushbuttons by replacing with Radio Buttons thus allowing the
2785 operator to better determine which is selected.
2787 2001-02-20 Brian Keener <bkeener@thesoftwaresource.com>
2789 * download.cc (do_download): Add new variables total_download_bytes and
2790 total_download_bytes_sofar for download progress meter. Add loop
2791 to accumulate the total bytes to download from the selected packages.
2792 * geturl.cc: Add state.h and diskfull.h to include list. Add new
2793 variables gw_iprogress, gw_pprogress, gw_progress_text,
2794 gw_pprogress_text, and gw_iprogress_text to allow for addition of
2795 total packages download progress meter and disk full percent
2796 progress meter. Add variables total_download_bytes and
2797 total_download_bytes_sofar for use by progress meters.
2798 (dialog_proc): Add new variables gw_iprogress, gw_pprogress,
2799 gw_progress_text, gw_pprogress_text, and gw_iprogress_text to
2800 allow for addition of total packages download progress meter and disk
2801 full percent progress meter.
2802 (init_dialog): Ditto.
2804 (get_url_to_file): Ditto.
2805 * geturl.h: Add external definition for total_download_bytes and
2806 total_download_bytes_sofar.
2807 * res.rc: Add two additional progress meters (IDC_DLS_IPROGRESS)
2808 and (IDC_DLS_PPROGRESS) and three text objects (IDC_DLS_PROGRESS_TEXT)
2809 and (IDC_DLS_IPROGRESS_TEXT, IDC_DLS_PPROGRESS_TEXT) for use in the
2811 * resource.h: Add new fields for progress meters and text and update
2812 _APS_NEXT_CONTROL_VALUE.
2814 Wed Feb 21 13:05:00 2000 Corinna Vinschen <vinschen@redhat.com>
2816 * download.cc (get_file_size): Check for INVALID_HANDLE_VALUE instead
2819 Wed Feb 21 11:21:00 2000 Corinna Vinschen <vinschen@redhat.com>
2821 * download.cc (download_one): Add missing parenthesis.
2823 Mon Feb 19 18:59:00 2000 Corinna Vinschen <vinschen@redhat.com>
2825 * download.cc (get_file_size): New function. Eliminates the need
2827 (download_one): Call `get_file_size' instead of `stat'. This
2828 workarounds a problem with mingw's `stat' call.
2830 2001-02-07 Earnie Boyd <earnie@users.sourceforge.net>
2832 * Makefile.in: (%.o: %.rc): Specify --include-dir $(w32api_include).
2833 This is to allow cinstall to build with 2.95.2-7 and to make the
2834 use of headers consistent.
2836 2000-12-26 Earnie Boyd <earnie_boyd@yahoo.com>
2838 * Makefile.in (autoload.o): Add target to specify -fno-inline-functions
2840 Tue Dec 26 03:46:00 2000 Matt Hargett <matt@use.net>
2842 * winsup/cinstall/res.rc: Added accelerators and improved focus
2845 2000-12-10 Egor Duda <deo@logos-m.ru>
2847 * choose.cc (paint): Use system background color for text output.
2849 Sun Dec 10 19:05:25 2000 Christopher Faylor <cgf@cygnus.com>
2851 * Makefile.in: Use CXX for linking and for compiling .cc files.
2852 * configure.in: Find correct c++ compiler.
2853 * configure: Regenerate.
2855 2000-11-17 DJ Delorie <dj@redhat.com>
2857 * splash.cc (load_dialog): Make message more obvious.
2860 Fri Nov 17 17:15:21 2000 Christopher Faylor <cgf@cygnus.com>
2862 * Makefile.in: Use g++ to link so that libstdc++.a gets used. This is
2863 necessary for newer compilers.
2865 Wed Nov 9 2:19:00 2000 Corinna Vinschen <vinschen@redhat.com>
2867 * desktop.cc: Include "ini.h" and "version.h".
2868 (make_passwd_group): Skip the function on 9x/ME boxes when an
2869 older version of Cygwin has been installed which doesn't
2870 support mkpasswd/mkgroup on 9x/ME.
2871 * install.cc: Move the `LOOP_PACKAGES' and `pi' macros to...
2874 Wed Nov 8 17:10:00 2000 Corinna Vinschen <vinschen@redhat.com>
2876 * desktop.cc (make_passwd_group): Don't exit when started
2877 on 9x/ME since mkpasswd/mkgroup are usable on 9x/ME now.
2879 Sun Nov 5 12:51:42 2000 Jason Tishler <jt@dothill.com>
2881 * install.cc (do_install): Add call to set_cygdrive_flags to sync
2883 * mount.cc (set_cygdrive_flags): New function.
2884 (get_cygdrive_flags): Ditto.
2885 (default_cygdrive): Ditto.
2886 (set_cygdrive_flags): Ditto.
2887 * mount.h: Add prototype for set_cygdrive_flags.
2889 2000-10-23 DJ Delorie <dj@redhat.com>
2891 * ini.h: add source actions
2892 * fromcwd.cc: check for available sources
2893 * res.rc: add checkbox bitmaps
2896 * choose.cc: add source column
2897 * download.cc: download sources if called for
2898 * install.cc: [un]install sources too
2900 2000-10-22 DJ Delorie <dj@redhat.com>
2902 * choose.cc (build_labels): Don't skip TRUST_PREV completely; only
2903 ignore it wrt full_list if there's already a version installed.
2904 (do_choose): Sort the list.
2905 (package_sort): New.
2907 2000-10-12 DJ Delorie <dj@redhat.com>
2909 * res.rc: Add more error strings.
2910 * resource.h: Ditto.
2911 * iniparse.y (new_package): re-initialize if needed.
2912 * download.cc (do_download): Keep track of errors; notify and
2914 * install.cc (do_install): Ditto.
2916 2000-10-05 DJ Delorie <dj@redhat.com>
2918 * Makefile.in: fix %.cc rule
2920 2000-10-04 DJ Delorie <dj@redhat.com>
2922 * desktop.cc: quote HOME and USER, don't . ./.profile
2924 * choose.cc (build_labels): don't include in partial list just
2925 because there's a *previous* version available.
2927 * install.cc (do_install): if installing from local directory with
2928 setup.ini and the file isn't found, look in "." also. Note errors.
2930 2000-10-02 DJ Delorie <dj@redhat.com>
2932 * ini.cc (do_ini): save setup.ini locally
2934 2000-10-02 Chris Abbey <cabbey@bresnanlink.net>
2936 * desktop.cc: quote escapes in prompt
2938 2000-10-02 Jason Tishler <jt@dothill.com>
2940 * root.cc (is_admin): New function.
2941 (read_mount_table): Check for administrative priviledges and set
2942 installation scope as appropriate.
2944 2000-09-28 DJ Delorie <dj@redhat.com>
2946 * nio-ftp.cc (ftp_line): handle continuations more robustly
2948 2000-09-14 Brian Keener <bkeener@thesoftwaresource.com>
2950 * res.rc: increased the size of the site dialog (IDD_SITE) & the
2951 corresponding list box to provide for more URL's to be listed.
2952 Modified the position of the Back, Next and Cancel buttons to
2953 correspond to the new size of the dialog.
2955 2000-09-13 DJ Delorie <dj@redhat.com>
2957 * install.cc (do_install): update disk fullness once per package
2958 to improve performance
2960 * choose.cc (create_listview): call ReleaseDC
2962 Mon Sep 11 22:40 2000 Harold L Hunt II <harold@compasstechnologies.com>
2964 * mkdir.cc: Create directories when ERROR_FILE_NOT_FOUND is
2965 returned, as it seems Samba 2.0.6+ returns this instead of
2966 ERROR_PATH_NOT_FOUND
2968 Mon Sep 11 19:35:24 2000 Christopher Faylor <cgf@cygnus.com>
2970 * site.cc (get_initial_list_idx): Don't default to saved URL if it
2973 2000-09-07 DJ Delorie <dj@redhat.com>
2975 * splash.cc: use version.h, not local decl
2976 * res.rc: add "old version" message
2979 * fromcwd.cc (canonicalize_version): make global
2980 * iniparse.y: add setup-version support, fix bug in blank line
2983 * inilex.l: add [exp] as alias for [test], add setup-version
2984 * Makefile.in (version.c): add setup-version tag
2986 * desktop.cc (do_desktop): remove 1.1 version number
2987 (do_desktop_setup): ditto
2989 * ini.cc (do_ini): zero out package list just in case we redo it.
2991 2000-09-07 Jeffrey Juliano <juliano@cs.unc.edu>
2993 * choose.cc (list_click): Check for nindexes==0; if so, return.
2995 2000-09-06 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
2997 * localdir.cc: new, local package directory selection dialog; cd
2998 into selected directory
2999 * Makefile.in (OBJS): add localdir.o
3000 * dialog.h: add prototype for do_local_dir
3001 * main.cc (WinMain): initialize local_dir to cwd; add call to
3003 * net.cc (dialog_cmd): make DO_LOCAL_DIR next dialog
3004 * source.cc (dialog_cmd): ditto
3005 * res.rc: add DO_LOCAL_DIR dialog; remove "current directory" from
3006 presented choices in IDD_SOURCE; add IDS_ERR_CHDIR error string
3007 * resource.h: defines for DO_LOCAL_DIR dialog; define IDS_ERR_CHDIR
3008 * root.cc (dialog_cmd): make DO_LOCAL_DIR previous dialog
3009 * state.h: add local_dir variable
3011 2000-09-06 Brian Keener <bkeener@thesoftwaresource.com>
3013 * desktop.cc: added logic to handle to the new dialog and to
3014 default the setting for the new checkboxes based on whether the
3015 desktop icon or start menu link already exist.
3016 (desktop_icon): correction to desktop directories for desktop icon
3017 creation. Additional logic added for Win95 which does not appear
3018 to have Common Directories so if Common selected and null uses
3020 (start_menu): Additional logic added for Win95 which does not
3021 appear to have Common Directories so if Common selected and null
3022 uses normal directory.
3023 (do_desktop_setup): moved the saving of the icon, creation of the
3024 bat file, profile, passwd, Start Menu link and desktop shortcut to
3025 this method from do_desktop. Made the creation of the desktop
3026 icon and start menu link conditional on settings of new dialog
3027 created for desktop.
3028 * install.cc (do_install): changed next from IDD_S_DESKTOP to
3030 * main.cc (WinMain): changed case IDD_S_DESKTOP to IDD_DESKTOP.
3031 * res.rc: added new resource to create a desktop dialog with 2
3032 checkboxes for creating the desktop icon and start menu link.
3033 * resource.h: changed IDD_S_DESKTOP to IDD_DESKTOP and added two
3034 new controls: IDC_ROOT_MENU and IDC_ROOT_DESKTOP for new dialog.
3035 * state.h: added root_menu and root_desktop for use in dialog.
3037 2000-08-29 DJ Delorie <dj@redhat.com>
3039 * choose.cc (scan_downloaded_files): scan for existing files, so
3040 that the user only sees new downloads.
3042 * nio-ie5.cc (NetIO_IE5): pre-check for wininet.dll, enable dial-up
3043 * site.cc (do_site): if we can't download the mirror list, go back
3044 to the net setup box to choose another transport.
3045 * autoload.c: add more functions
3046 * Makefile.in (ALL_DEP_LDLIBS): remove wininet.a
3047 * resource.h: add WININET message
3049 * net.cc (do_net): no longer default to IE5
3050 * simpsock.h (class SimpleSocket): new, simplify socket operations
3051 * simpsock.cc: ditto
3052 * nio-http.h: new, for direct http protocol
3053 * nio-http.cc: ditto
3054 * nio-ftp.h: new, for direct http protocol
3056 * netio.cc (set_url): move initialization here to handle redirections
3057 (open): add direct http/ftp
3058 * netio.h (NetIO::set_url): new
3060 * log.cc (log_save): create directory for log if needed
3062 * hash.cc, hash.h: new
3063 * Makefile: add hash.o
3064 * choose.cc: enable "uninstall" option
3065 * download.cc: invert action test to accomodate uninstalling
3066 * ini.h: add ACTION_UNINSTALL
3067 * install.cc: add uninstall functionality
3068 * res.rc: make install tag changeable
3069 * resource.h: add uninstall resources
3071 * res.rc: update mirror list URL
3073 2000-08-24 DJ Delorie <dj@redhat.com>
3075 * log.cc, log.h: new files
3076 * Makefile.in (OBJS): add log.o
3077 * tar.cc: use exit_setup instead of exit
3078 * dialog.cc (fatal): use exit_setup instead of ExitProcess
3079 * msg.cc (fatal): ditto
3080 * install.cc (dialog_cmd): ditto
3081 * ini.cc (do_ini): ditto
3082 * main.cc (main): add logging
3083 * source.cc (do_source): ditto
3084 * root.cc (do_source): ditto
3085 * site.cc (do_site): ditto
3086 * other.cc (do_other): ditto
3087 * net.cc (do_net): ditto
3088 * choose.cc (do_choose): ditto
3089 * download.cc (do_download): ditto
3090 * install.cc (do_install): ditto
3091 * msg.cc (fatal): ditto
3093 * res.rc: mark password boxes as *being* password boxes.
3095 * fromcwd.cc (canonicalize_version): use multiple buffers so that multiple
3096 calls won't use the same buffer.
3097 * choose.cc (create_listview): don't default to full list if no changes
3098 (base): return computed value, not temporary :-(
3099 (do_choose): don't use installed.db if we're only downloading.
3101 2000-08-23 DJ Delorie <dj@redhat.com>
3103 * nio-ie5.cc (NetIO_IE5): Fix authentication logic
3104 * nio-ie5.h (flush_io): new
3105 * netio.cc (load_dialog): note when we're initializing the dialog
3106 box, and ignore changes to the edit fields then.
3108 2000-08-21 DJ Delorie <dj@redhat.com>
3112 * fromcwd.cc (found_file): don't remember the canonicalized version
3114 * choose.cc (paint): print "nothing to do" message when list is empty.
3115 (build_labels): Use version "0.0" if no version is available.
3116 (create_listview): default to full list if nothing to install/update.
3117 (base): new, returns basename of file
3118 (read_installed_db): compare base names, not full paths
3120 2000-08-11 DJ Delorie <dj@redhat.com>
3122 * choose.cc: add new chooser dialog
3123 * fromcwd.cc: use IDD_CHOOSE
3124 * ini.cc: use IDD_CHOOSE
3125 * main.cc: use IDD_CHOOSE
3126 * ini.h: cosmetic changes
3127 * res.rc: add choose dialog, bitmaps
3128 * choose-spin.bmp: new
3129 * choose-rtarrow.bmp: new
3130 * resource.h: add choose dialog controls
3132 * mount.cc: remove debug statement
3134 2000-08-08 DJ Delorie <dj@redhat.com>
3136 * Makefile.in (version.c): make version checking more robust
3137 * splash.cc (load_dialog): handle case where there's no version
3139 2000-08-07 DJ Delorie <dj@redhat.com>
3141 * (all): add cvsid tags
3142 * Makefile.in: generate version.c from ChangeLog, add splash.o
3144 * res.rc: add splash screen
3146 2000-08-02 DJ Delorie <dj@redhat.com>
3148 * net.cc: remove proxy password code
3149 * res.rc: remove proxy user/pass from net, add auth dialogs
3150 * netio.cc,h: add sys/proxy auth methods
3151 * nio-ie5: use them, check for http status codes
3152 * state.h: add system authorization
3154 * concat.cc (concat): canonicalize x:// to x:/ (exception to ://
3157 2000-08-02 Norman Vine <nhv@yahoo,com>
3159 * msg.cc (mbox): added MB_TOPMOST to MessageBox type flags
3161 2000-08-01 DJ Delorie <dj@redhat.com>
3163 * postinstall.cc (each): don't rename files we ignore
3164 (do_postinstall): set CYGWINROOT to root_dir, chdir there
3166 * desktop.cc: have /etc/profile call ~/.profile and ~/.bashrc
3168 2000-07-31 DJ Delorie <dj@redhat.com>
3170 * desktop.cc: reverse PATH so /usr/bin precedes /bin
3172 2000-07-18 DJ Delorie <dj@redhat.com>
3174 * autoload.c: new, autoload dlls that might not be available.
3175 * Makefile.in (OBJS): add autoload.o
3177 * res.rc: rewrite root options (text/binary, system/user) to be
3180 * site.cc (get_site_list): trim displayed URL, sort by domain
3182 * net.cc (do_net): make IE5 default to checked, for now
3184 * choose.cc (do_choose): sort packages correctly
3185 * ini.cc (do_ini): handle parse errors more gracefully
3187 (fprintf): line buffer output
3188 (do_ini): if we can't load setup.ini, go back to the site list.
3189 * ini.h: add "unknown" trust level
3190 * inilex.l: absorb unknown trust levels and key/value pairs,
3191 add line number logic
3192 * iniparse.y: handle parse errors more gracefully.
3193 * install.cc: skip packages with no valid install entry
3195 2000-07-17 DJ Delorie <dj@cygnus.com>
3197 * coding standards fixups, many files
3198 * mkdir.cc: warn about deletions *before* deleting them
3200 2000-07-17 Jeff Juliano <juliano@cs.unc.edu>
3202 * res.rc (IDD_OTHER_URL): reorder to give default focus to entry
3204 * other.cc (dialog_cmd): save download site URL
3205 * site.cc (get_root_dir): new
3206 (save_mirror_site): new
3207 (dialog_cmd): save download site URL
3208 (get_site_list): make list big enough to add prev site
3209 (get_initial_list_idx): new, read last-used URL from file and
3210 append it to site_list
3211 (do_site): call get_initial_list_idx
3213 * concat.cc (concat): avoid segfault when first parm is null
3215 2000-07-13 DJ Delorie <dj@cygnus.com>
3217 * postinstall.cc: new
3218 * Makefile.in: add postinstall.o
3219 * concat.h: add backslash ()
3221 * desktop.cc (etc_profile): don't do postinstall
3222 (backslash): moved to concat.cc
3224 (make_postinstall_script): run directly
3225 (do_desktop): chain to do_postinstall
3226 * dialog.h: add exit_msg, do_postinstall
3227 * download.cc: use exit_msg
3229 * main.cc: add postinstall, exit_msg
3230 * resource.h: add postinstall
3231 * README: add more to-do items
3233 2000-07-12 DJ Delorie <dj@cygnus.com>
3235 * desktop.cc: add /etc/postinstall/ support
3236 * install.cc: add more "standard" directories
3238 2000-07-11 DJ Delorie <dj@cygnus.com>
3240 * desktop.cc: create /etc/profile
3241 * desktop.cc: fix include syntax
3242 * Makefile.in: add auto-dependencies
3243 * root.cc: support system vs user
3251 * desktop.cc: make sure we use backslashes, not slashes.
3252 * desktop.cc: don't set PATH in cygwin.bat, create /etc/passwd
3253 * geturl.cc: change math for percentage to avoid overflow
3255 * download.cc: post "download complete" message.
3256 * root.cc: pre-fill in defaults if needed, don't start
3257 browse at root_dir unless it's set.
3258 * desktop.cc: quote $PATH in case it has spaces in it
3260 2000-07-10 DJ Delorie <dj@cygnus.com>
3262 * Makefile.in: add desktop.o and mklink2.o
3263 * dialog.h: add do_desktop
3264 * install.cc: create standard directories, call do_desktop
3265 * res.rc: add cygwin.ico as a file also
3266 * desktop.cc: new, do shortcuts, batch files, and icons
3267 * mklink2.c: new, for COM
3268 * README: update to-do list
3270 2000-07-10 DJ Delorie <dj@cygnus.com>
3272 * ini.cc (do_ini): don't worry about timestamps if we're not
3273 actually installing.
3275 2000-07-09 DJ Delorie <dj@cygnus.com>
3277 * Makefile.in: add -I$(srcdir) for ini.h
3279 2000-07-06 DJ Delorie <dj@cygnus.com>
3281 * Replace everything with a new GUI version
3282 * zlib/gzio.c: add gzctell() for progress displays
3284 2000-06-22 DJ Delorie <dj@cygnus.com>
3286 * setup.c (tarx): re-add call to write_pkg()
3288 2000-06-07 DJ Delorie <dj@cygnus.com>
3290 * cygcalls.c: new, call cygwin1.dll functions directly
3291 * cygcalls.h: header for same
3292 * Makefile.in: add cygcalls.[ch], remove mount/cygpath/umount
3293 exes, fix cinstall.rc dependencies.
3294 * path.c: remove unneeded code
3295 * setup.c: use cygcalls instead of xcreate_process.
3296 uncompress embedded files with zlib
3297 add "-d" for "download only"
3299 postpone mount changes until very end
3300 add download progress indicators
3301 pack multi-column listings more
3302 auto-delete temp files
3303 customize banner message according to options
3304 prompt user for text/binary mounts
3305 add warnings about empty setup directory, root installs, etc
3307 2000-05-24 DJ Delorie <dj@cygnus.com>
3309 * tar.c: New file; built-in tar using zlib.
3310 * tar.h: New file; header for same.
3311 * ctar.c: New file; test program for same.
3312 * Makefile.in: add built-in tar, remove tar.exe and gzip.exe
3313 * path.c (pathcat): convert slashes and canonicalize, instead of aborting
3314 * setup.c (tarx): add support for built-in tar
3315 (main): accept unix-style slashes, check root dir for drive letters,
3316 warn about installing in /, make sure cwd is empty for internet installs,
3317 defer mounts to end of install, support built-in tar.
3319 Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
3321 Fix compiler warnings throughout.
3322 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
3324 * setup.c: Make 'root' global.
3325 (istargz): Return pointer to "stem" of matched .tar.gz file.
3326 (tarx): Special case cygwin-20000301 to == cygwin-1.1.0.tar.gz. Remove
3327 bogus check_for_installed check.
3328 (recurse_dirs): Add preliminary support for .bat file execution.
3329 (create_uninstall): Eliminate unneeded parameter.
3330 (do_start_menu): Ditto.
3332 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
3333 scanning for the version number. Eliminate unneeded argument to
3335 (getdownloadsource): Add 'name' to list of names rather than url.
3336 (main): Eliminate unneeded argument in get_pkg_stuff. Eliminate
3337 unneeded argument in mkmount and do_start_menu.
3339 2000-05-18 DJ Delorie <dj@cygnus.com>
3341 * setup.c (optionprompt): allow multi-column, clean up message
3342 about more options, be more robust about user input.
3343 (getdownloadsource): make the mirror URL a macro.
3344 (main): do mounts after done prompting user.
3346 Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
3348 * setup.c (cleanup): Inverse order of deletion stands a better chance
3349 of deleting cygpath.exe. Still seems to suffer from occasional races,
3351 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
3353 (output_file): Defend against an unlikely handle leak.
3354 (main): Don't set up signal handling until we have something special to
3357 Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
3359 * path.c (kill_cygpath): Delete function.
3360 (exit_cygpath): Make more defensive so that it can be called at any
3362 (cygpath_pipe): Don't set up signal here. Do it in main().
3363 * setup.c (istargz): New function.
3364 (recurse_dirs): Look for *.gz pattern rather than *tar.gz since *tar.gz
3365 inexplicably fails on samba mounted partitions. Use istargz to match
3367 (processdirlisting) Use istargz to match tar.gz tail.
3368 (cleanup): Renamed from filedel.
3369 (cleanup_on_signal): New function. Called on CTRL-C.
3370 (main): Record handle of main thread so that it can be suspended when
3371 CTRL-C occurs. Set up cleanup_on_signal signal handler.
3373 Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
3375 * setup.c (do_start_menu): Don't concatenate paths to already built
3378 Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
3380 * path.c (exit_cygpath): Wait for subprocess to exit before returning.
3381 (cygpath_pipe): Don't call exit_cygpath. Let main atexit routine do
3383 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
3385 * setup.c (filedel): Call exit_cygpath here so that we can be assured
3386 that cygpath subprocess has died. This allows us to delete cygpath.exe
3388 (optionprompt): Initialize response to -1 so that second screen of
3389 mirrors will appear.
3390 (get_pkg_stuff): Don't attempt to use HKCLU. Pass root to init_pkgs.
3391 * setup.h: Reflect init_pkgs prototype change.
3393 Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
3395 * pkg.c (init_pkgs): Accept an argument to control what root registry
3397 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
3398 * setup.h: Reflect init_pkgs prototype change.
3400 Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
3402 * error.c (winerror): Respond to gcc warning.
3403 * path.c (cygpath_pipe): Ditto.
3404 * setup.c (filedel): Call sa_cleanup on deleteme.
3405 (create_shortcut): Coerce argument to eliminate compiler warning.
3406 (tarx): Use installed version of cygwin1.dll, overriding tar file name.
3407 (refmatches): New function. Tests if ref is contained in a list of
3408 packages to install.
3409 (filematches): New function. Tests if filename matches one of a list
3410 of packages to install.
3411 (recurse_dirs): Accept list of packages to install. Generalize tar.gz
3412 test to accomodate _tar.gz.
3413 (prompt): Ensure that stdout is flushed prior to asking for input.
3414 (findhref): Initialize variables to quiet a compiler warning.
3415 (processdirlisting): Accept list of packages to install. Special case
3416 cygwin tar file version number.
3417 (downloaddir): Accept list of packages to install.
3418 (downloadfrom): Ditto.
3419 (create_uninstall): Eliminate unneeded variables. Quote arguments to
3421 (do_start_menu): Don't create uninstall bat file if updating or user
3422 specified a list of packages.
3423 (mkmount): Eliminate unneeded variables.
3424 (get_pkg_stuff): New function. Checks for previous unversioned
3426 (main): Accept -u and -f options and package names on the command line.
3427 Use get_pkg_stuff to initialize package information. Umount /etc.
3428 Call recurse_dirs and downloadfrom with list of package to install.
3429 Ensure that all /usr/local directories are created. Output
3430 installation time to setup.log.
3431 * setup.h: Add some prototypes.
3432 * xsystem.c (xcreate_process): Eliminate unneeded variable.
3434 Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
3436 * setup.c (optionprompt): Don't overlap display of already seen options
3438 (geturl): Print name of site which we're connecting to rather than "ftp
3440 (processdirlisting): Avoid URLs that contain a /. or ./ . Is this
3441 test too simplistic?
3442 (do_start_menu): Use pathcat to build path to <root>\bin to avoid
3443 problems when user chooses x:\ as their root.
3444 (main): For now, default to "non-update" mode. Allow -u option to
3447 Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
3450 * setup.c (tarx): Skip already installed or older packages. Report
3451 when a package has been updated.
3452 (processdirlisting): Skip already installed or older packages.
3453 (main): Detect -f option for forced installation. Initialize pkg stuff
3455 * setup.h: Add pkg definitions.
3457 Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
3459 * setup.c (findhref): Return NULL on empty string. Eat any trailing
3461 (processdirlisting): Attempt to limit recursively processing the same
3464 Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
3466 * setup.c (filedel): New function.
3467 (output_file): Keep track of files extracted from setup.exe for
3468 subsequent deletion.
3469 (tarx): Close process handle of child tar process or suffer handle
3471 (getdownloadsource): Close mirror file so that it can be unlinked.
3472 (processdirlisting): Return total number of files extracted.
3473 (main): Initialize array of files to delete. Ensure that files are
3474 closed on exit. Make the directory that setup.exe is started from ==
3475 the directory where temporary files are placed. Issue an error if no
3476 files were found to download.
3477 * xsystem.c (xcreate_process): Close the thread handle. Close the
3478 process handle if we waited for it to exit.
3480 Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
3482 * setup.c (main): Change version number output.
3484 Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
3486 * setup.c (tarx): Use full path name to tar executable.
3487 (main): Build full pathname to tar executable. Create /usr/local/etc
3490 Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
3492 * setup.c (findhref): Change method for scanning for href= to choose
3493 the last one on the line. This is still not foolproof and probably
3494 will need to be changed eventually. Don't abort if no "size" field is
3496 (processdirlisting): Fix boolean algebra.
3498 Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
3500 * main.c (tarx): Add some code for future task of unmounting
3501 directories encountered in tar file.
3503 Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
3505 * setup.c (findhref): Decode file size, when appropriate.
3506 (needfile): New function. Returns 1 when file should be
3508 (processdirlisting): Always download if file size does not
3509 match. Prompt when download fails for some reason.
3510 (getdownloadsource): Accomodate findhref argument changes.
3512 Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
3514 Throughout, use global session handle rather than reinitializing for
3515 each connect. Don't pass session as an argument to setup.c functions.
3516 * setup.c (geturl): Only issue "Connecting to.." message when using
3517 http or first time for ftp since subsequent connections will be fast.
3518 (processdirlisting): Allocate space for "N" when user has specified
3519 "N"ever option so that it can be subsequently freed.
3520 (main): Abort if we can't get the list of mirrors.
3522 Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
3524 * setup.c (main): Umount /bin and /lib.
3526 Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
3528 * setup.c (main): Create an empty /var/run/utmp.
3530 Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
3532 * Makefile.in: Add umount to list of files to include in setup.exe.
3533 * setup.c (xumount): New function for unmounting directories.
3534 (main): Unmount /usr.
3535 (mkmount): Unmount "unix directory" before trying to figure out where
3536 to create the directory.
3538 Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
3540 * setup.c (mkmount): Use xcreate_process to start mount process,
3542 (main): Don't do buffering on stdout or prompts won't be displayed
3543 correctly if running in a cygwin shell with CYGWIN=tty.
3545 Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
3547 * setup.c (main): Remove the CYGWIN environment variable before
3548 starting any cygwin programs.
3550 Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
3552 * setup.c (geturl): Use alternative method for finding filename part of
3554 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
3555 (downloaddir): Unlink file containing dir listing.
3556 (downloadfrom): Ditto.
3558 Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
3560 * setup.c (main): Disallow running setup.exe from the "root".
3562 Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
3564 Use "warning" function, where appropriate, to output warnings.
3565 * setup.c (warning): New function -- outputs warning to console and log
3567 (tarx): Fix index used to reset file protection.
3568 (main): Open the log file earlier so that more stuff can be sent to it.
3570 Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
3572 * setup.c (processdirlisting): Make "N" option a little less aggressive.
3574 Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
3576 * setup.c (tarx): Wait to after tar has completed to reset protections
3577 or suffer races with tar process.
3579 Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
3581 * Makefile.in: Eliminate duplicate -nostdinc from CFLAGS.
3582 * setup.c (create_uninstall): Create the uninstall .bat file in the
3583 "root" so that we can remove the /bin directory. Add bin\cygwin.bat to
3584 list of files to be deleted. Fix directory detection for determining
3585 when to use 'rmdir'.
3586 (do_start_menu): Add /usr/local/bin to the path.
3587 (main): Add slop to files.array allocation so that we don't have to
3588 worry about reallocating the array when it grows too large when doing
3589 some trivial "pushes". Add /tmp and /usr/local/{bin,lib} to list of
3592 Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
3594 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
3597 Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
3599 * path.c (kill_cygpath): New cleanup function.
3600 (exit_cygpath): New cleanup function.
3601 (cygpath_pipe): New function. Sets up cygpath in the background for
3602 translating filenames.
3603 (pathcvt): Use background cygpath for file translation.
3604 * setup.c (tarx): New function. Called to extract tar files, capture
3605 logging output, and translate it to Windows format.
3606 (recurse_dirs): Use 'tarx' function to extract files.
3607 (create_uninstall): Use file list built up by tarx rather than reading
3609 (mkmount): Add ability to mount root.
3610 (main): Track elapsed install time. Mount root.
3611 * starry.h: Add index field to strarry for tracking of tarx's usage of
3613 * xsystem.c (xcreate_process): Return proces handle when not waiting.
3615 Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
3618 (pathfp): New function. Preliminary work for new -f cygpath
3620 * Makefile.in: Add new file.
3621 (pathcvt): Move to new file.
3625 * setup.c (processdirlisting): Always open file in text mode.
3626 (create_uninstall): Ditto.
3627 (getdownloadsource): Ditto.
3630 Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
3632 * xsystem.c: New file.
3633 * Makefile.in: Accomodate new file.
3634 * setup.c (xsystem): Move to new file.
3635 (recurse_dirs): Accept handle to output log file. Don't use ">"
3636 redirection to trap tar output. Use supplied handle instead.
3637 (create_uninstall): Accept FILE pointer to opened log file. Don't
3638 unlink log file here.
3639 (do_start_menu): Accept FILE pointer to pass to create_uninstall.
3640 (main): Open log file here and pass it to various functions. Unlink
3643 Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
3645 Change occurrences of .usr.bin to .bin throughout.
3646 * setup.c (geturl): Increase number of retries to 20. Let user know
3647 what's going on during long connects.
3648 (processdirlisting): Accept "A"lways and "N"ever as update options.
3649 (create_uninstall): Load cygwin1.dll from the current directory rather
3651 (main): Add some expository text.
3653 Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
3655 * Makefile.in: Change method for compressing cygwin1.dll to avoid
3656 creating a cygwin1.dll in the current directory. Ensure the addition
3657 of -nostdinc to MINGW_CFLAGS.
3659 Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
3661 * Makefile.in: Augment clean target.
3663 Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
3665 * README: Added info about non-working mingw implementation
3666 * gzip.exe.gz: Replace with a version from the same build as the other
3668 * tar.exe.gz: Replace with a version from the same build as the other
3670 * mount.exe.gz: Add to repository until, mingw can build setup.
3671 * cygpath.exe.gz: ditto
3672 * cygwin1.dll.gz: ditto
3673 * setup.c: Overwrite /bin and /lib mounts. Generate working shortcut
3674 for Win9x. Display only a screenfull of options at a time. Call all
3675 tools with an absolute path.
3676 * setup.dsp: Restore the carriage returns, MS Developer Studio needs
3681 Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
3683 * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab
3684 cygwin1.dll from ../cygwin subdirectory.
3685 * gzip.exe.gz: Update.
3686 * tar.exe.gz: Update.
3688 Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
3690 * Makefile.in: Use ZLIB variable as a target.
3692 Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
3694 * Makefile.in: Eliminate traces of cygwinisms. Don't link with
3695 libmsvcrt.a. It's unneeded. Build .rc file on the fly from various
3697 * configure.in: Locate correct objcopy.
3698 * configure: Regenerate.
3700 Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
3702 * Makefile.in: New file.
3703 * configure.in: New file.
3704 * configure: New file.
3705 * zlib/Makefile.am: New file.
3706 * zlib/configure.in: New file.
3707 * zlib/aclocal.m4: New file.
3708 * zlib/acinclude.m4: New file.
3709 * zlib/configure: Regenerate from configure.in.
3710 * zlib/Makefile.in: Regenerate from Makefile.am