1 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
3 * configure.in (CXXFLAGS): Substitute at configure time, not runtime.
4 * configure (CXXFLAGS): Regenerate.
5 * Makefile.in (iniparse.o): Build via default rules - no errors now.
6 * README: TODO list updates.
8 2002-02-19 Michael A Chase <mchase@ix.netcom.com>
10 * String++.cc (String::concat):: Remove.
11 (String::vconcat):: Ditto.
12 * String++.h (String::concat):: Remove.
13 (String::vconcat):: Ditto.
14 * archive_tar.cc: Don't include concat.h.
15 * archive_tar_file.cc: Don't include concat.h.
16 * compress_bz.cc (compress_bz::peek): Don't log unneeded messages.
17 (compress_bz::seek): Ditto.
18 (compress_bz::~compress_bz): Ditto.
19 * compress_gz.cc (compress_gz::peek): Ditto.
20 (compress_gz::error): Ditto.
21 (compress_gz::~compress_gz): Ditto.
22 * concat.cc (vconcat): Remove.
24 * concat.h (vconcat): Remove.
26 * desktop.cc (desktop_icon): Use new cygpath.
27 (make_etc_profile): Ditto.
29 (make_passwd_group): Ditto.
31 (check_desktop): Remove concat use.
32 (check_start_menu): Ditto.
33 * download.cc (download_one): Use new mkpath_p correctly.
35 * fromcwd.cc: Don't include concat.h.
36 * geturl.cc (get_url_to_membuf): Use String log() call.
37 (get_url_to_file): Ditto.
38 * install.cc: Don't include concat.h.
39 (uninstall_one): Use LOG_PLAIN.
41 (install_one_source): Ditto.
42 (install_one): More char to String conversion.
43 (do_install_thread): Use new cygpath.
45 * io_stream.cc (io_stream::move): Use new log().
46 * io_stream_cygfile (io_stream_cygfile::io_stream_cygfile): Use new cygpath.
47 (io_stream_cygfile::exists): Ditto.
48 (io_stream_cygfile::remove): Ditto.
49 (io_stream_cygfile::mklink): Ditto.
50 (io_stream_cygfile::write): Ditto.
52 (io_stream_cygfile::move): Ditto.
53 * io_stream_file.cc: Don't include log.h.
54 (io_stream_file::write): Don't log unneeded messages.
55 * localdir.cc: Don't include concat.h.
56 (LocalDirPage::OnNext): Use LOG_PLAIN.
57 * log.cc: Don't include log.h.
58 (exit_setup): Use new cygpath.
59 * log.h (log_level): Add new level LOG_PLAIN.
60 * main.cc (WinMain): Use new log().
61 * mount.cc (SLASH_P): New macro from concat.h.
62 (cygpath): Make String version globally visible.
63 Remove varargs version.
65 * msg.cc (mbox): Use LOG_PLAIN.
66 * net.cc (NetPage::OnNext): Ditto.
67 * nio-ftp.cc (ftp_line): Use new log().
68 * nio-http.cc: Don't include log.h.
69 (retry_get): Use alternative url variable.
70 * package_db.cc: Don't include concat.h.
71 (packagedb::flush): Don't use concat.
72 * package_meta.cc: Don't include concat.h.
73 (packagemeta::uninstall): Use new cygpath.
74 * postinstall.cc (do_postinstall): Ditto.
75 * root.cc (RootPage::OnNext): Use LOG_PLAIN.
76 * script.cc: Don't include concat.h.
77 (init_run_script): Use new cygpath.
78 (run_script): More char * to String conversion.
79 (try_run_script): Ditto.
80 * site.cc: Don't include concat.h.
81 (SitePage::OnNext): Use LOG_PLAIN.
82 (SitePage::OnMessageCmd): Use new log().
83 * source.cc (SourcePage::OnDeactivate): Use LOG_PLAIN.
85 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
87 * Makefile.in (OBJS): Add new object.
88 * PickCategoryLine.cc (PickCategoryLine::paint): Print a "+" before the name.
89 * PickCategoryLine.h (PickCategoryLine::bucket): Use the String class.
90 * PickLine.h (Pickline::key): Change to a String to help plug leaks.
91 (PickLine::Pickline): Accept a String for the key.
92 * PickPackageLine.cc (PickPackageLine::paint): Convert all char use to Strings.
93 * PickPackageLine.h (PickPackageLine::PickPackageLine): The key is automatically
95 * PickView.cc (PickView::note_width): Convert all char * use to Strings.
96 (PickView::init_header): Move category length checking out of the inner loop for
98 Convert all char use to Strings.
99 * PickView.h: Include the String++ header.
100 (PickView::note_width): Update the prototype.
101 * String++.cc: New file, implements a reference counting string class.
102 * String++.h: New file, declares a reference counting string class.
103 * archive.cc: Include String++ instead of concat.
104 (archive::extract_file): Convert char * usage to Strings.
105 * archive.h: Inlude the String++ header.
106 (archive::extract_file): Update prototype.
107 (archive::next_file_name): Convert to a String.
108 (archive::linktarget): Ditto.
109 * archive_tar.cc (archive_tar::next_file_name): Convert to String usage.
110 (archive_tar::linktarget): Ditto.
111 * arhive_tar.h: Update the copyright.
112 Explicitly include the relevant headers.
113 (tar_map_result_type): Convert to String usage.
114 (archive_tar::next_file_name): Update prototype.
115 (archive_tar::linktarget): Ditto.
116 * category.cc (Category::Category): Update initialisers.
117 Convert to String usage.
118 (Categorycmp): Update to String usage.
119 * category.h: Include the String++ header.
120 (Category::Category): Update to String usage.
121 (Category::name): Ditto.
122 (Category::key): Ditto.
123 * choose.cc: Remove concat.h, it's not needed.
124 (scan2): Update to String usage.
126 * cygpackage.cc: Update includes for use of String class.
127 (cygpackage::cygpackage): Update for String usage.
128 (cygpackage::set_canonical_version): Ditto.
129 (cygpackage::destroy): Ditto.
130 (cygpackage::getfirstfile): Ditto.
131 (cygpackage::getnextfile): Ditto.
132 (cygpackage::Name): Ditto.
133 (cygpackage::Vendor_version): Ditto.
134 (cygpackage::Package_version): Ditto.
135 (cygpackage::Canonical_version): Ditto.
136 (cygpackage::set_sdesc): Ditto.
137 (cygpackage::set_ldesc): Ditto.
138 * cygpackage.h: Include String++.h for parsing this file.
139 (cygpackage::cygpackage): Update for String usage.
140 (cygpackage::set_canonical_version): Ditto.
141 (cygpackage::destroy): Ditto.
142 (cygpackage::getfirstfile): Ditto.
143 (cygpackage::getnextfile): Ditto.
144 (cygpackage::Name): Ditto.
145 (cygpackage::Vendor_version): Ditto.
146 (cygpackage::Package_version): Ditto.
147 (cygpackage::Canonical_version): Ditto.
148 (cygpackage::set_sdesc): Ditto.
149 (cygpackage::set_ldesc): Ditto.
150 (cygpackage::name): Ditto.
151 (cygpackage::vendor): Ditto.
152 (cygpackage::packagev): Ditto.
153 (cygpackage::canonical): Ditto.
154 (cygpackage::fn): Ditto.
155 (cygpackage::sdesc): Ditto.
156 (cygpackage::ldesc): Ditto.
157 * desktop.cc: Update includes for use of String class.
158 (batname): Update for String usage.
162 (desktop_icon): Ditto.
163 (make_cygwin_bat): Ditto.
164 (make_etc_profile): Ditto.
166 (make_passwd_group): Ditto.
168 (check_desktop): Ditto.
169 (check_startmenu): Ditto.
170 * dialog.cc (eget): Update for String usage.
171 (egetString): New function.
172 (eset): New variant for Strings.
173 * dialog.h: Include String++.h for parsing this file.
174 (egetString): New function.
175 (eset): New variant for Strings.
176 * diskfull.cc (diskfull): Update for String usage.
177 * diskfull.h: Include String++.h for parsing this file.
178 (diskfull): Update for String usage.
179 * download.cc: Update includes for use of String class.
180 (check_for_cached): Update for String usage.
181 (download_one): Ditto.
182 * filemanip.cc (get_file_size): Ditto.
184 (parse_filename): Ditto.
186 * filemanip.h: Include String++.h for parsing this file.
187 (fileparse): Update for String usage.
189 (parse_filename): Ditto.
190 Don't consider '_' to be a separator.
192 * find.cc: Update includes for use of String class.
193 (find_sub): Make more flexible.
194 (find): Update for String usage.
195 * find.h (find): Use Strings.
196 * fromcwd.cc (found_file): Update for String usage.
198 (init_dialog): Ditto.
199 (get_url_to_membuf): Ditto.
200 (get_url_to_string): Ditto.
201 (get_url_to_file): Ditto.
203 (get_url_to_membuf): Ditto.
204 (get_url_to_string): Ditto.
205 (get_url_to_file): Ditto.
207 (add_subdirs): Ditto.
208 * ini.cc: Update includes for String usage.
209 (find_routine): Update for String usage.
210 (do_remote_ini): Ditto.
211 (do_ini_thread): Ditto.
212 * ini.h (ini_init): Ditto.
213 * inilex.l: Update includes for String usage.
214 (ini_init): Update for String usage.
216 (add_correct_version): Ditto.
217 * install.cc: Update includes for String usage.
218 (install_one_source): Update for String usage.
219 (uninstall_one): Ditto.
220 (replace_one): Ditto.
221 (install_one_source): Ditto.
222 (do_install_thread): Ditto.
223 * io_stream.cc: Update includes for String usage.
224 (io_stream::open): Update for String usage.
225 (io_stream::mkpath_p): Ditto.
226 (io_stream::remove): Ditto.
227 (io_stream::mklink): Ditto.
228 (io_stream::move_copy): Ditto.
229 (io_stream::move): Ditto.
230 (io_stream::exists): Ditto.
231 * io_stream.h: Update includes to allow correct parsing.
232 (io_stream::open): Update for String usage.
233 (io_stream::mkpath_p): Ditto.
234 (io_stream::remove): Ditto.
235 (io_stream::mklink): Ditto.
236 (io_stream::move_copy): Ditto.
237 (io_stream::move): Ditto.
238 (io_stream::exists): Ditto.
239 * io_stream_cygfile.cc: Update includes for String usage.
240 (get_root_dir_now): Update for String usage.
241 (io_stream_cygfile::io_stream_cygfile): Ditto.
242 (io_stream_cygfile::~io_stream_cygfile): Ditto.
243 (io_stream_cygfile::exists): Ditto.
244 (io_stream_cygfile::remove): Ditto.
245 (io_stream_cygfile::mklink): Ditto.
247 (io_stream_cygfile::set_mtime): Ditto.
248 (io_stream_cygfile::move): Ditto.
249 (io_stream_cygfile::get_size): Ditto.
250 * io_stream_cygfile.h: Update includes for String usage.
251 (io_stream_cygfile::io_stream_cygfile): Update for String usage.
252 (io_stream_cygfile::~io_stream_cygfile): Ditto.
253 (io_stream_cygfile::exists): Ditto.
254 (io_stream_cygfile::remove): Ditto.
255 (io_stream_cygfile::mklink): Ditto.
257 (io_stream_cygfile::set_mtime): Ditto.
258 (io_stream_cygfile::move): Ditto.
259 (io_stream_cygfile::get_size): Ditto.
260 (io_stream_cygfile::fname): Ditto.
261 (io_stream_cygfile::lmode): Ditto.
262 * io_stream_file.cc: Update includes for String usage.
263 (io_stream_file::io_stream_file): Update for String usage.
264 (io_stream_file::~io_stream_file): Ditto.
265 (io_stream_file::exists): Ditto.
266 (io_stream_file::remove): Ditto.
267 (io_stream_file::mklink): Ditto.
268 (io_stream_file::set_mtime): Ditto.
269 (io_stream_file::move): Ditto.
270 (io_stream_file::get_size): Ditto.
271 * io_stream_file.h: Update includes for String usage.
272 * io_stream_file.cc: Update includes for String usage.
273 (io_stream_file::io_stream_file): Update for String usage.
274 (io_stream_file::~io_stream_file): Ditto.
275 (io_stream_file::exists): Ditto.
276 (io_stream_file::remove): Ditto.
277 (io_stream_file::mklink): Ditto.
278 (io_stream_file::set_mtime): Ditto.
279 (io_stream_file::move): Ditto.
280 (io_stream_file::get_size): Ditto.
281 (io_stream_file::fname): Ditto.
282 (io_stream_file::lmode): Ditto.
283 * localdir.cc: Update includes for String usage.
284 (save_local_dir): Update for String usage.
285 (check_if_enable_next): Ditto.
286 (load_dialog): Ditto.
288 (LocalDirPage::OnInit): Ditto.
289 (LocalDirPage::OnNext): Ditto.
290 * log.cc: Update includes for String usage.
291 (struct LogEnt): Update for String usage.
295 * log.h: Update includes for String usage.
296 (log_level): Update for String usage.
299 * main.cc (WinMain): Update for String usage.
300 * mklink2.c (make_link_2): Update for String usage.
301 * mklink2.h (make_link_2): Update for String usage.
302 * mount.cc: Update includes for String usage.
303 (mount_table): Update for String usage.
305 (create_mount): Ditto.
307 (remove_mount): Ditto.
308 (read_mounts): Ditto.
309 (set_root_dir): Ditto.
310 (get_root_dir): Ditto.
311 (path_prefix_p): Ditto.
313 * mount.h: Update includes for String usage.
314 (create_mount): Update for String usage.
315 (remove_mount): Ditto.
317 (set_root_dir): Ditto.
318 (get_root_dir): Ditto.
319 * msg.cc (mbox): Ditto.
320 * net.cc (NetPage::OnNext): Ditto.
321 * package_db.cc (packagedb::flush): Ditto.
322 (packagedb::packages): Ditto.
323 (packagedb::categories): Ditto.
324 * package_db.h: Update includes for String usage.
325 (packagedb::packages): Update for String usage.
326 (packagedb::categories): Ditto.
327 * package_meta.cc: Update includes for String usage.
328 (hash::add_subdirs): Update for String usage.
329 (packagemeta::uninstall): Ditto.
330 (packagemeta::SDesc): Ditto.
331 (packagemeta::action_caption): Ditto.
332 * package_meta.h: Update includes for String usage.
333 (packagemeta::packagemeta): Update for String usage.
334 (packagemeta::~packagemeta): Ditto.
335 (packagemeta::uninstall): Ditto.
336 (packagemeta::SDesc): Ditto.
337 (packagemeta::action_caption): Ditto.
338 (package_source.cc site::site): Ditto.
339 (packagesource::set_canonical): Ditto.
340 (packagesource::set_cached): Ditto.
341 * package_source.h: Update includes for String usage.
342 (site::site): Update for String usage.
343 (packagesource::set_canonical): Ditto.
344 (packagesource::set_cached): Ditto.
345 (packagesource::packagesource): Ditto.
346 (packagesource::sites): Ditto.
347 (packagesource::cached): Ditto.
348 * package_version.h: Update includes for String usage.
349 (Dependency): Update for String usage.
350 (packageversion): Ditto.
351 * postinstall.cc: Update includes for String usage.
352 (do_postinstall): Update for String usage.
353 * res.rc (IDD_LOCAL_DIR): Fix typo again!
354 * rfc1738.cc (rfc1738_escape_part): Update for String usage.
355 * rfc1738.h: Update includes for String usage.
356 (rfc1738_escape_part): Update for String usage.
357 * root.cc: Update includes for String usage.
358 (check_if_enable_next): Update for String usage.
359 (save_dialog): Ditto.
361 (directory_is_absolute): Ditto.
362 (directory_is_rootdir): Ditto.
363 (directory_has_spaces): Ditto.
364 (RootPage::OnInit): Ditto.
365 (RootPage::OnNext): Ditto.
366 * script.cc: Update includes for String usage.
367 (init_run_script): Update for String usage.
370 (try_run_script): Ditto.
371 * script.h: Update includes for String usage.
372 (run_script): Update for String usage.
373 (try_run_script): Ditto.
374 * site.cc site_list): Ditto.
375 (all_site_list): Ditto.
376 (other_url): Eliminate.
377 (site_list_type::init): Update for String usage.
378 (site_list_type::site_list_type): Ditto.
379 (get_site_list): Ditto.
380 (get_saved_sites): Ditto.
381 (do_download_site_info_thread): Ditto.
382 (SitePage::OnNext): Ditto.
383 (SitePage::OnActivate): Ditto.
384 (SitePage::PopulateListBox): Ditto.
385 (SitePage::OnMessageCmd): Handle empty url's.
386 * site.h: Update includes for String usage.
387 (site_list_type::site_list_type): Update for String usage.
388 (site_list_type::init): Ditto.
389 (site_list_type::~site_list_type): Ditto.
390 (site_list_type::url): Ditto.
391 (site_list_type::displayed_url): Ditto.
392 (site_list_type::key): Ditto.
393 * source.cc (SourcePage::OnDeactivate): Ditto.
394 * state.h: Update includes for String usage.
395 (local_dir): Update for String usage.
396 (trust_level): Remove.
397 * version.cc: Update includes for String usage.
398 (canonicalize_version): Update for String usage.
399 * version.h: Update includes for String usage.
400 (canonicalize_version): Update for String usage.
402 2002-02-15 Christopher Faylor <cgf@redhat.com>
404 * filemanip.c (parse_filename): Revert previous change.
406 2002-02-14 Christopher Faylor <cgf@redhat.com>
408 * filemanip.c (parse_filename): Don't treat '_' as a version number
411 2002-01-29 Christopher Faylor <cgf@redhat.com>
413 * configure: Regenerate.
415 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
417 * res.rc (IDD_LOCAL_DIR): Fix typo reported by Rene
418 <Hoeck@extern.lrz-muenchen.de>
420 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
422 * README: Update Todo's.
423 * list.h: Run indent.
424 (list): New methods checksize and insert to reduce code duplication.
425 (list::registerbykey): Use them.
426 (list::registerbyobject): Ditto.
427 (list::removebyindex): Copy each object individually - safe for non
429 (list::checksize): Implement.
430 (list::insert): Implement.
432 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
434 * Makefile.in: Remove the dlmalloc object by default.
435 * install.cc (do_install_thread): Remove the mallinfo call for 'working
436 around' the crashing issue.
437 * package_db.h: Include <string.h> - it's needed to parse this.
438 * package_source.cc (site::site): Move here from the header file.
439 * package_source.h (site): Stop the constructor being inlinable.
441 2002-01-26 Robert Collins <rbtcollins@hotmail.com>
443 * filemanip.cc (find_tar_ext): Add a descriptive comment.
445 2002-01-25 Michael A Chase <mchase@ix.netcom.com>
447 * filemanip.cc (find_tar_ext): Clean up tests for .tar.gz and .tar.
448 * fromcwd.cc (do_fromcwd): Expand FIXME comment in source file check.
449 * install.cc (install_one_source): Add space between words in log()
452 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
454 * log.cc (exit_setup): When saving to the download dir, explicity
457 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
459 * archive.cc (extract_file): Separate out the prefix and the URL
461 * archive.h (archive::extract_file): Ditto.
462 * install.cc (install_one_source): Ditto. Use the new
463 archive::extract_file syntax.
464 (replace_one): Use the new syntax.
465 (io_stream.cc): Add some log info for links.
467 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
469 * PickCategoryLine.cc (PickCategoryLine::actiontext): Remove.
470 (PickCategoryLine::paint): Use the new action method.
471 (PickCategoryLine::click): Set the action for all children.
472 (PickCategoryLine::set_action): New method.
473 * PickCategoryLine.h (PickCategoryLine::-actions): Remove.
474 (PickCategoryLine::current_default): Use packagemeta _actions class.
475 * PickLine.h (PickLine::set_action): New abstract method that requires
476 including package_meta.h.
477 * PickPackageLine.cc (PickPackageLine::set_action): New method.
478 * PickPackageLine.h (PickPackageLine::set_action): Declare this.
479 * list.h (getbykey): A const correctness fix.
480 * package_meta.cc: Run indent.
481 (packagemeta::Default_action): New const.
482 (packagemeta::Install_action): Ditto.
483 (packagemeta::Reinstall_action): Ditto.
484 (packagemeta::Uninstall_action): Ditto.
485 (packagemeta::_actions::caption): New method.
486 (packagemeta::_actions::operator++): Ditto.
487 (packagemeta::set_action): New overload.
488 * package_meta.h (packagemeta::_actions): New class.
489 (packagemeta::set_action): Declare this.
491 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
493 * Makefile.in (OBJS): Remove supp.o - it appears accidental.
494 * choose.cc: Don't define alloca anymore, it's done in win32.h
496 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
498 * PickPackageLine.cc: New file.
499 * PickPackageLine.h: New file.
500 * PickLine.cc: New file.
501 * PickLine.h: New file.
502 * PickCategoryLine.cc: New file.
503 * PickCategoryLine.h: New file.
504 * PickView.cc: New file.
505 * PickView.h: New file.
506 * Makefile.in: Add new objects to setup.exe.
507 Backout -fno-exceptions option.
508 * choose.cc: Include PickView.h.
509 Remove view related defines and static variables.
510 (_pkg_headers): Moved to PickView.cc.
511 (_cat_headers): Ditto.
512 (view::views::Unknown): Ditto.
513 (view::views::PackageFull):
514 (view::views::Package):
515 (view::views::Category):
516 (pkgtrustp): Moved to package_meta.cc.
517 (add_required): Moved to package_meta.cc.
518 (pick_category_line::empty): Moved to PickCategoryLine.cc
519 (paint): Adjust for moved static variables.
520 (view::scroll): Moved to PickView.cc.
521 (list_vscroll): Adjust for moved static variables.
522 (list_hscroll): Ditto.
524 (note_width): Moved to PickView.cc.
526 (view::set_view_mode): Ditto.
527 (view::mode_caption): Ditto.
528 (view::views::caption): Ditto.
529 (view::set_headers): Ditto.
530 (DoInsertItem): Ditto.
531 (view::init_headers): Ditto.
532 (view::insert_pkg): Ditto.
533 (view::insert_category): Ditto.
534 (view::clear_view): Ditto.
535 (view::views::operator++): Ditto.
536 (view::click): Ditto.
537 (default_trust): Adjust for moved statics.
538 (pick_pkg_line::paint): Moved to PickPackageLine.cc.
539 (pick_pkg_line::click): Ditto.
540 (pick_category_line::actiontext): Moved to PickCategoryLine.cc
541 (pick_category_line::paint): Ditto.
542 (pick_category_line::click): Ditto.
543 (set_view_mode): Adjust for moved statics.
544 (create_listview): Ditto.
545 * choose.h: Remove Category and packagemeta forward defines - not needed.
546 Don't include unneeded headers list and package_meta.
547 (_header): Move to PickView.h.
548 (pick_line): Move to PickLine.h.
549 (pick_pkg_line): Move to PickPackageLine.h.
550 (pick_category_line): Move to PickCategoryLine.h.
551 (view): Move to PickView.h.
552 * ini.h (trusts): Move to package_meta.h.
553 * package_meta.h (trusts): New enum.
554 (packagemeta::set_requirements): New helper method.
555 (packagemeta::trustp): Ditto.
557 2002-01-21 Christopher Faylor <cgf@redhat.com>
559 * choose.h (view): Move forward declaration of views into public area
560 or g++ v3 will complain.
562 2002-01-21 Christopher Faylor <cgf@redhat.com>
564 * Makefile.in (CXXFLAGS): Add -fno-exceptions.
565 * win32.h (alloca): Define as __builtin_alloca.
566 * io_stream_memory.cc: Add include file.
568 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
570 * archive_tar.cc (archive_tar::~archive_tar): Mark the stream as destroyed.
571 * archive_tar_file.cc (archive_tar_file::~archive_tar_file): Ditto.
572 * compress.cc (compress::~compress): Be less verbose.
573 * compress_bz.cc (compress_bz::~compress_bz): Ditto.
574 Mark the stream as destroyed.
575 * compress_gz.cc (compress_gz::~compress_gz): Mark the stream as destroyed.
576 * io_stream.cc (io_stream::~io_stream): Only warn when the stream is not marked
578 * io_stream_cygfile.cc (io_stream_cygfile::~io_stream_cygfile): Mark the
580 * io_stream_file.cc (io_stream_file::~io_stream_file): Ditto.
581 * io_stream_memory.cc (io_stream_memory::~io_stream_memory): Ditto.
583 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
585 * Makefile.in (CFLAGS): Allow customisable malloc debug flags.
586 (OBJS): Link in malloc objects.
587 * category.cc (category): Use new char, not strdup.
588 * choose.cc (pick_pkg_line::paint): Allow for the regionsize to shrink.
589 (do_choose): Use new char, not malloc.
590 * concat.cc (vconcat): Ditto.
591 * cygpackage.cc (cygpackage): Use new char, not strdup.
592 (set_canonical_version): Ditto.
593 (cygpackage::destroy): Use delete[], not free.
594 * desktop.cc (uexists): Ditto.
595 * dialog.cc (egest): Use new char, not strdup.
596 * dlmalloc.c: New file - Doug Lea's malloc 2.7.0
597 * hash.cc (hash::hash): Use delete instead of free.
598 (hash::add): Use new char, not strdup.
599 * ini.cc (do_remote_ini): Use delete[] not free.
600 * inilex.l: Use new char, not strdup.
603 Use a local package_db rather than a static one.
604 * install.cc (struct mallinfo): Workaround an apparent dlmalloc bug.
605 (do_install_thread): Call mallinfo to force a consistency check. Appears
606 to fix a 'inuse' error in -DDEBUG builds.
607 Use delete[] for strings.
608 * io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile): Use new char,
610 (io_stream_cygfile::~io_stream_cygfile): Use delete[], not free.
611 (io_stream_cygfile::remove): Use new char, not strdup.
612 * io_stream_file.cc (io_stream_file::io_stream_file): Use new char, not strdup.
613 (io_stream_file::io_stream_file): Use delete[], not free.
614 (io_stream_file::remove): Use new char, not strdup.
615 * io_stream_memory.cc (memblock::~memblock): Use delete[], not free.
616 * io_stream_memory.h (memblock): Use new char, not malloc.
617 * localdir.cc (LocalDirPage::OnInit): Use new char, not strdup.
618 * main.cc (WinMain): Use new char, not strdup.
619 * mount.cc (find2): Use new char, not malloc.
620 (read_mounts): Ditto.
621 (cygpath): Use new char, not strdup.
622 * netio.cc (NetIO::~NetIO): Use delete[], not free.
623 (NetIO::set_url): Use new char, not strdup.
624 (NetIO::get_ftp_auth): Use delete[], not free.
625 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
626 Use new char instead of strdup.
627 * nio-http.cc (base64_encode): Use new char, not malloc.
628 * package_meta.cc (hash::add_subdirs): Use new char instead of strdup.
629 * package_source.h (~ packagesource): Use delete[] instead of delete.
630 * port.h (strdup): Deprecate the use of strdup.
631 * rfc1738.cc (rfc1738_do_escape): Use new char, not calloc.
632 * script.cc (init_run_script): Us delete[], not free.
634 * simpsock.cc (SimpleSocket::fill): Use new char, not malloc.
635 (SimpleSocket::invalidate): Use delete[], not free.
636 * site.cc (site_list_type::init): Use new char instead of strdup.
637 * site.h (~site_list_type): Use delete[], not free.
639 2002-01-20 Robert Collins <rbtcollins@hotmail.com>
641 * Makefile.in (OBJS): Add win32.o - win32 support functions.
642 * README: Update todos.
643 * archive.cc (extract_file): Support a suffix for appending to extracted files.
645 * choose.cc (set_view_mode): Use the new view::views class.
646 (view::views::Unknown): New static for defaulting view::views variables.
647 (view::views::PackageFull): New static for the current view.
648 (view::views::Package): Ditto.
649 (view::views::Category): Ditto.
650 (topbucket::paint): Remove.
651 (topbucket::empty): Rename to pick_category_line::empty.
652 (topbucket::~topbucket): Remove.
653 (paint): Use the new view::views class.
654 Don't paint 'all' as a category when showing package categoies.
655 (pick_category_line::actiontext): New method.
656 (pick_category_line::paint): Make showing the category optional, and show the
658 (pick_category_line::click): Make showing the category optional, and
659 differentiate between the name being clicked, and the action description.
660 (view::view): Use the new view::views class.
661 (view::set_view_mode): Ditto.
662 (view::mode_caption): Ditto.
663 (view::views::caption): New method.
664 (view::set_headers): Use the new view::views class.
665 (view::clear_view): Ditto.
666 (viewsplusplus): Replaced by
667 (view::views::operator++): New operator.
668 (set_view_mode): Use the new view::views class.
669 (create_listview): Ditto.
671 * choose.h (actions): Remove.
673 (pick_line): Add a new convenience constructor.
674 (top_bucket): Remove.
675 (pick_category_line): Reparent under pick_line, and adsorb top_bucket.
676 (view::views): New class.
677 * ini.h: Don't include choose.h
678 (is_download_action): Remove.
679 (is_upgrade_action): Remove.
680 (is_uninstall_action): Remove.
681 (is_full_action): Remove.
682 * install.cc (num_replacements): New static.
683 (rebootneeded): Ditto.
684 (replace_one): Handle upgrades separate from removal or new installs.
685 (install_one_source): Handle in use files.
686 (install_one): Don't repeat upgrades.
687 (do_install_thread): Initialize new statics.
688 Order actions as uninstall, replace, install.
689 Warn about rebooting if needed.
690 * res.rc (IDS_REBOOT_REQUIRED): New string.
691 * resource.h (IDS_REBOOT_REQUIRED): Give value.
692 * win32.h: Declare class Win32, and update copyright and intent message.
693 * win32.cc: New file.
695 2002-01-15 Corinna Vinschen <corinna@vinschen.de>
697 * io_stream.cc (io_stream::gets): Eliminate trailing new line chars.
698 * package_meta.cc (packagemeta::uninstall): Check for additional
699 Windows shortcut. Unset R/O file attribute before trying to delete
702 2002-01-09 Robert Collins <rbtcollins@hotmail.com>
704 * choose.cc (pkgtrustp): Fall back to installed if a package is not present in
705 the current trust level. For prev, fall back via curr.
706 (set_existence): Allow sources with no sites, but cached files to be
708 (pick_category_line::paint): Start drawing clickable categories.
709 * fromcwd.cc (found_file): Reinstate local file scanning.
711 2002-01-07 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
713 * fromcwd.cc: Run indent.
714 (do_fromcwd): Reverse sense of comment. Set next_dialog
715 to IDD_CHOOSER instead of IDD_CHOOSE.
716 * ini.cc (find_routine): Remove "/" from "/setup.ini".
718 2001-01-07 Robert Collins <rbtcollins@hotmail.com>
720 * category.cc (Categorycmp): Add a const safe version.
721 * category.h (Categorycmp): Add a const safe version.
722 (Category): Add operator ==.
723 * choose.cc (fill_missing_category): Add every package to "All".
724 (pick_category_line::paint): Add support for hidden labels, and a tree depth.
725 (pick_category_line::click): Ditto.
726 (view::view): Pass in a top level category to use.
727 (view::insert_pkg): Special case - skip category "All".
728 (view::insert_category): Ditto.
729 (view::clear_view): Set the contents label state.
730 (create_listview): Pass in a top level category to view().
731 * choose.h (topbucket): Make bucket available to derived classes.
732 (pick_category_line): Add support for hidden labels, and a tree depth.
733 Remove our second copy of bucket.
734 (view): Pass in a top level category to the constructor.
735 Use pick_category_line to allow three level display.
737 2001-01-06 Robert Collins <rbtcollins@hotmail.com>
739 * cygpackage.h (cygpackage): Make set_[s|l]desc virtual.
740 * iniparse.y (add_correct_version): Copy descriptions across.
741 * package_meta.cc (SDesc): Iterate through versions, return the first with a
743 * package_version.h (packageversion): Add new virtuals set_[l|s]desc.
745 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
747 * script.cc (run_script): Change cygpath:// to cygfile://.
748 * install.cc (do_install_thread): Fix off-by-one errors.
750 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
752 * package_db.cc (packagedb::flush): Fix an off-by-one error.
754 2002-01-04 Jan Nieuwenhuizen <janneke@gnu.org>
756 * Makefile.in (realclean): more clean.
757 (OBJS): Add script.o.
758 * postinstall.cc (run_script_in_etc_postinstall): New function.
759 (do_postinstall): Split off new funtion init_run_script ().
762 (run_script): Move to script.cc. Replace some deprecated remove
765 * script.cc: New file.
766 * Forward port cygwin-20010707.jcn3.patch.
767 * package_meta.cc (uninstall): Run pre- and postremove scripts.
768 * install.cc: Typo fix.
769 (do_install): Run script initialisation.
771 2001-01-04 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
773 * cistring.cc: Run d2u.
774 * cistring.h: Run d2u.
776 * desktop.cc (etc_profile): Remove "test -f ./.bashrc && . ./.bashrc"
777 from the generated /etc/profile. Bash will source this file
778 automatically, and having this here merely results in .bashrc being
779 executed twice. Run d2u.
780 * desktop.h: Run d2u.
782 * propsheet.cc: Run d2u.
783 (PropSheetProc): New function. Add minimize box here instead of in
784 PropertyPage::DialogProc.
785 (PropSheet::Create): Change to use creation callback PropSheetProc.
786 (DLGTEMPLATEEX): Add 'hidden' Windows struct definition.
788 * propsheet.h: Run indent, d2u.
789 * proppage.h: Run indent, d2u.
791 * proppage.cc: Run d2u.
792 (PropertyPage::DialogProc): Remove minimize-box-adding
793 functionality. Remove commented-out "PropSheet_SetWizButtons" calls.
794 Add support for calling virtual OnMessageCmd. Add setting of fonts in
795 WM_INITDIALOG handler.
796 (resource.h): New include for resource IDs.
798 * res.rc: Resize and rearrange property page dialog templates
799 to bring them in line with "Microsoft's Backward Compatible Wizard 97"
800 specification. Run d2u.
801 (IDD_SITE): Add an edit control and an "Add" button in order to
802 combine the IDD_SITE and IDD_OTHER_URL functionality onto one page.
803 (IDD_OTHER_URL): Remove dialog template.
804 (IDD_DLSTATUS): Remove dialog template.
807 (SitePage::OnBack): Remove NEXT() macro invocation.
808 (SitePage::OnActivate): New member function.
809 (load_dialog): Remove. Functionality subsumed into
810 SitePage::OnActivate.
811 (save_dialog): Change to support both list and user URLs. Remove
812 OTHER_IDX and mirror_idx logic.
813 (SitePage::PopulateListBox): New member function.
814 (SitePage::CheckControlsAndDisableAccordingly): New member function.
815 (SitePage::OnMessageCmd): New override.
816 (check_if_enable_next): Remove.
817 (dialog_cmd): Remove.
818 (do_download_site_info_thread): Remove calls to NEXT() macro.
819 (SitePage::Create): Call the single-param PropertyPage::Create
821 (other_url): New static taken from other.cc.
822 (SitePage::OnNext): Remove mirror_idx logic.
823 (SitePage::OnInit): Remove "Other URL" entry from list box. Remove
824 list box populating code, now handled in SitePage::PopulateListBox.
825 (mirror_idx, NO_IDX, OTHER_IDX): Remove.
826 (save_site_url): Fix potential buffer overflow problem. Switched to
827 TCHAR in grossly premature preparation for multilingual support.
829 (SitePage::OnActivate): New member function.
830 (SitePage::CheckControlsAndDisableAccordingly) New member.
831 (SitePage::OnMessageCmd): New override.
832 (do_download_site_info_thread): Add MessageBox call on failure to
835 * splash.cc: Run d2u.
836 (SplashPage::OnInit): Set the font for the title.
839 * threebar.cc: Run d2u.
840 * threebar.h: Run d2u.
843 (Window::IsButtonChecked): New member function declaration.
844 (Window::OnMessageCmd): New member function.
845 (Window::SetDlgItemFont): New member function declaration.
846 (Window::MAXFONTS, Window::Fonts, Window::FontCounter): New data
848 * window.cc: Run d2u.
849 (Window::IsButtonChecked): New member function definition.
850 (Window::SetDlgItemFont): New member function definition.
851 (Window::Window): Add initialization for FontCounter.
852 (Window::~Window): Delete any fonts we created.
854 * geturl.cc: Run d2u.
855 (progress): Remove the "3" field width from the "%3d"
856 percent-complete format indicator. Causes line to not start at
857 beginning of text box, and does little to help with "jumping", since
858 the "bytes downloaded so far" field is variable-width anyway. Change
859 kb/s format field to "%03.1" to 0-pad the kb/s number in the event of
860 painfully slow connections, or temporary slowdowns in faster
861 connections should such more-instantaneous functionality become
865 (NetPage::OnMessageCmd): New member function declaration.
866 (NetPage::CheckIfEnableNext): New member function declaration.
868 (NetPage::OnMessageCmd): New member function definition.
869 (dialog_cmd): Remove, subsumed into NetPage::OnMessageCmd.
870 (check_if_enable_next): Remove.
871 (NetPage::CheckIfEnableNext): New member function, subsumes
872 check_if_enable_next.
873 (propsheet.h): Add include.
874 (NetPage::Init): Add call to CheckIfEnableNext.
875 (load_dialog): Remove call to check_if_enable_next.
876 (NetPage::Create): Call single-template-ID-parameter overload of
877 PropertyPage::Create instead of three-parameter one.
879 * Makefile.in (OBJS): Remove other.o.
880 * other.cc: Remove file.
882 2002-01-01 Robert Collins <rbtcollins@hotmail.com>
884 * README: Update TODO's.
885 * choose.cc (set_existence): Delete non installed packages with no
887 (fill_missing_category): Fix an off-by-one error.
888 (default_trust): Ditto. Also delete any unused categories.
889 (view::init_headers): Fix an off-by-one error.
890 (set_view_mode): Ditto.
891 (set_view_mode): Ditto.
892 (create_listview): Ditto.
895 * io_stream.cc: Indent.
896 * io_stream.h: Ditto.
897 * package_db.cc: Ditto.
898 * package_meta.h: Const correctness for SDesc ();
899 * proppage.cc: Run d2u and indent.
900 * propsheet.cc: Run d2u and indent.
901 * window.cc: Run d2u and indent.
902 * window.h: Run d2u and indent.
904 2001-12-28 Christopher Faylor <cgf@redhat.com>
906 * Makefile.in (iniparse.o): Accommodate newer bisons.
908 2001-12-23 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
910 * window.h (Window): New file, new class.
911 * window.cc (Window): New file, new class.
913 * threebar.h (ThreeBarProgressPage): New file, new class.
914 * threebar.cc (ThreeBarProgressPage): New file, new class.
916 * splash.h (SplashPage): New file, new class.
917 * splash.cc (SplashPage): Replace file with implementation of new
920 * source.h (SourcePage): New file, new class.
921 * source.cc: Run indent.
922 (SourcePage): Add class implementation to this file.
923 (do_source): Remove, functionality subsumed by SourcePage::Create()
924 and SourcePage::OnDeactivate().
925 (dialog_proc): Remove, functionality subsumed by
926 SourcePage::OnActivate().
928 * site.h: Run indent.
929 (SitePage): Add class declaration.
930 * site.cc: Run indent.
931 (SitePage): Add class implementation.
932 (do_download_site_info_thread): New function.
933 (context): New var. Context info for do_download_site_info_thread().
934 (do_download_site_info): New function.
935 (SitePage::Create, SitePage::OnInit SitePage::OnNext)
936 (SitePage::OnBack): SitePage class implementation..
937 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers, now handled
939 (dialog_proc): Remove, now handled by SitePage::OnInit and base class
941 (do_site): Remove, now handled by do_download_site_info_thread() and
942 SitePage::OnNext functionality.
943 (get_site_list): Remove dismiss_url_status_dialog() call.
945 * root.h (RootPage): New file, new class.
946 * root.cc: Run indent.
947 (dialog_cmd): Pass parent HWND parameter to note(), yesno().
948 (dialog_proc): Remove.
950 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL clauses from switch.
951 (RootPage::OnInit): New member function. Move get_root_dir() logic to
953 (RootPage::Create): New member function.
954 (RootPage::OnNext): New member function. Move IDOK logic from
955 dialog_cmd() to here.
956 (RootPage::OnBack): New member function.
958 * propsheet.h (PropSheet): New file, new class.
959 * propsheet.cc (PropSheet): New file, new class.
961 * proppage.h (PropertyPage): New file, new class.
962 * proppage.cc (PropertyPage): New file, new class.
964 * postinstall.cc (do_postinstall): Add owner parameter.
966 * other.cc (do_other): Add owner parameter.
968 * nio-file.cc (NetIO::Purl): Pass NULL parent param to note().
969 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Pass NULL parent param to
971 * nio-http.cc (retry_get): Pass NULL parent param to get_auth(),
974 * nio-ie5.cc (NetIO::_url): Pass NULL parent param to note(),
975 get_auth(), get_proxy_auth().
977 * netio.h (get_auth, get_proxy_auth, get_ftp_auth): Add owner param.
978 * netio.cc (auth_common, NetIO::get_auth, NetIO::get_proxy_auth,
980 (auth_common): Add owner param. Pass owner param to DialogBox.
981 (NetIO::get_auth, NetIO::get_proxy_auth, NetIO::get_ftp_auth): Pass
982 owner param to auth_common().
984 * net.h (NetPage): New file, new class.
985 * net.cc: Run indent.
986 (net.h, threebar.h): Add includes.
987 (Progress): Add extern.
988 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, now handled by
989 property sheet logic. Saved temporarily for reference.
990 (NetPage::Create, NetPage::OnInit, NetPage::OnDeactivate,
991 NetPage::OnNext, NetPage::OnBack):
992 New implementation of NetPage class members.
994 (dialog_proc): Remove.
996 * msg.h (fatal, note, yesno): Add owner param.
997 * msg.c (fatal, note, yesno, mbox): Add owner param.
998 (mbox): Remove MB_TOPMOST from MessageBox call. Unnecessary and wrong
999 now that we have a parent.
1001 * main.cc: Run indent.
1002 (commctrl.h, proppage.h, propsheet.h, splash.h, source.h)
1003 (localdir.h, net.h, site.h, choose.h, threebar.h, desktop.h): Include
1005 (root_dialog_proc): extern into this file.
1006 (Progress): Progress dialog defined here, used in several other files.
1007 (WinMain): Instantiate and create Splash, Source, Root, LocalDir, Net,
1008 Site, Chooser, Desktop pages and MainWindow sheet. Call
1009 InitCommonControls() to make sure Windows is set up for our use of
1010 property sheets. Add pages to sheet.
1011 Call MainWindow.Create() to "DoModal". Remove main loop, that logic is
1012 now handled by the PropSheet class.
1013 (root.h): Add include.
1015 * log.cc (log_save): Pass NULL parent to fatal().
1016 (exit_setup): Pass NULL parent to note().
1018 * localdir.h (LocalDirPage): New file, new class.
1019 * localdir.cc: Run indent.
1020 (localdir.h): New include.
1021 (threebar.h): New include.
1022 (Progress): extern into this file.
1023 (LocalDirPage::Create, LocalDirPage::OnInit, LocalDirPage::OnActivate)
1024 (LocalDirPage::OnNext, LocalDirPage::OnBack): Implementation of
1026 (LocalDirPage::OnNext): Move log() call from do_local_dir() to here.
1027 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers.
1028 (do_local_dir): Remove.
1029 (dialog_proc): Remove.
1030 (cwd): Remove, not used by anything.
1032 * install.cc: Run indent.
1033 (process.h, threebar.h): New includes.
1034 (Progress): extern into this file.
1035 (ins_dialog, ins_action, ins_pkgname, ins_filename, ins_pprogress)
1036 (ins_iprogress, ins_diskfull, init_event): Remove, now handled by
1037 ThreeBarProgressPage.
1038 (dialog_cmd, dialog_proc, dialog): Removed, handled in
1039 ThreeBarProgressPage.
1040 (init_dialog): Remove all mention of the above ins_* handles. Now
1041 handled in ThreeBarProgressPage. Altered SetWindowText()s to call
1042 ThreeBarProgressPage instance Progress directly.
1043 (progress): Alter bar update logic to call ThreeBarProgressPage
1044 instance Progress directly.
1045 (uninstall_one): Alter SetWindowText()s to call ThreeBarProgressPage
1046 instance Progress directly.
1047 (install_one_source): Alter SetWindowText()s to call
1048 ThreeBarProgressPage
1049 instance Progress directly. Pass NULL parent to note().
1050 (do_install_thread): Rename from do_install(), added owner param.
1051 Alter SetWindowText()s to call ThreeBarProgressPage instance Progress
1053 Remove dismiss_url_status_dialog() call, no longer necessary. Remove
1054 ShowWindow(<hide>) call, also unnecessary now. Pass owner handle to
1056 (do_install_reflector): New function.
1057 (do_install): New function.
1059 * ini.cc (process.h, threebar.h): New includes.
1060 (Progress): externed into this file.
1061 (find_routine): Pass NULL parent to note().
1062 (do_local_ini): Add owner param.
1063 (do_remote_ini): Add owner param. Pass owner to get_url_to_membuf()
1064 and note(). Remove call to dismiss_url_status_dialog().
1065 (do_ini_thread): Rename from do_ini(). Add owner param. Pass owner to
1066 do_local_ini(), do_remote_ini(), yesno(), and note(). Set next_dialog
1067 to IDD_CHOOSER on exit.
1068 (do_ini_thread_reflector): New function.
1069 (context): New var. Context for do_ini_thread.
1070 (do_ini): New function.
1072 * geturl.h (get_url_to_membuf, get_url_to_string, get_url_to_file): Add
1074 * geturl.cc (gw_dialog, gw_url, gw_rate, gw_progress, gw_pprogress,
1076 (gw_progress_text, gw_pprogress_text, gw_iprogress_text, init_event):
1078 (threebar.h): New include.
1079 (Progress): externed into this file.
1080 (dialog_cmd, dialog_proc, dialog): Removed, handled by
1081 ThreeBarProgressPage now.
1082 (init_dialog): Remove "if (gw_dialog == 0)" clause. Alter
1084 and bar setting SendMessage()s to call ThreeBarProgressPage instance
1085 Progress directly. Remove "one bar only" logic, this is now handled
1086 explicitly in the ThreeBarProgressPage class.
1087 (progress): Altered bar and text update logic to call
1088 ThreeBarProgressPage instance Progress directly. Changed kbps
1089 calculation to floating point and now print out a single decimal
1091 (get_url_to_membuf): Add owner param. Pass it to init_dialog.
1092 (get_url_to_string): Add owner param. Pass it to get_url_to_membuf.
1093 (get_url_to_file): Add owner param. Pass it to init_dialog. Alter bar
1094 update logic to call ThreeBarProgressPage instance Progress directly.
1095 (dismiss_url_status_dialog): Remove.
1097 * fromcwd.cc (do_fromcwd): Add owner param. Initialize found_ini to
1100 * download.cc: Run indent.
1101 (process.h, threebar.h): New includes.
1102 (Progress): externed into this file.
1103 (download_one): Add owner param. Pass it to get_url_to_file().
1104 (do_download_thread): Renamed from do_download. Add owner param. When
1105 calculating total_download_bytes, take binpicked and srcpicked into
1106 account. Remove call to dismiss_url_status_dialog(), no longer needed.
1107 Pass owner handle to download_one() and yesno().
1108 (do_download_reflector, do_download): New functions.
1109 (context): New var. Context for do_download_thread().
1111 * dialog.h (D(x)): Add owner param.
1113 * desktop.h (DesktopSetupPage): New file, new class.
1114 * desktop.cc: Run indent.
1115 (desktop.h): Add include.
1116 (dialog_proc, do_desktop): Remove, now handled in
1117 DesktopSetupPage::OnInit().
1118 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, handled in
1119 DesktopSetupPage::OnFinish(), DesktopSetupPage::OnBack(), and PropSheet
1121 (DesktopSetupPage::Create, DesktopSetupPage::OnInit)
1122 (DesktopSetupPage::OnBack, DesktopSetupPage::OnFinish): Implementation
1123 of DesktopSetupPage.
1125 * cistring.h: New file, new class.
1126 * cistring.cc: New file, new class.
1128 * choose.h: Run indent.
1129 (Chooser): New class declaration.
1130 * choose.cc: Run indent.
1131 (do_choose): Add owner param. Pass it to DialogBox() and
1133 (Chooser): New class implementation.
1135 * res.rc (IDS_VERSION_INFO): New string.
1136 (IDD_SOURCE, IDD_LOCAL_DIR, IDD_ROOT, IDD_SITE, IDD_OTHER_URL)
1137 (IDD_DLSTATUS, IDD_INSTATUS, IDD_SPLASH, IDD_CHOOSE, IDD_DESKTOP):
1138 Change WS_POPUP to WS_CHILD. Numerous positioning/size changes
1140 (IDD_CHOOSE): Give template the WS_EX_CONTROLPARENT style to enable
1141 TAB control navigation etc. Give the controls a reasonable tab order.
1142 Grouped radio buttons. Something's still not right, can't tab away
1143 from back/next/cancel group reliably.
1144 * resource.h (IDD_CHOOSER): New dialog ID.
1146 * Makefile.in (OBJS): Add cistring.o, proppage.o, propsheet.o,
1147 threebar.o, and window.o.
1149 2001-12-21 Robert Collins <rbtcollins@hotmail.com>
1151 * choose.cc (listview_proc): Update the scrollbar when the headers are dragged.
1152 (pick_pkg_line::paint): Clip columns to prevent overlap.
1154 2001-12-20 Robert Collins <rbtcollins@hotmail.com>
1156 * Makefile.in: Add libcomctl32.a for setup.exe.
1157 * archive.h (archive): Prevent non-child direct creation of the class.
1158 * archive_tar.h (archive_tar): Prevent inaccurate synthetic copy and assignment.
1159 * choose.cc: Include commctrl for the choose header.
1160 (NEW_COL_SIZE_SLOP): Define without magic numbers.
1161 (pkgtrustp): Convert to function.
1162 (set_action): Remove.
1163 (add_required, fill_missing_category,default_trust): Use list syntax for
1166 (choose_caption): Remove.
1167 (topbucket::paint): New method.
1168 (topbucket::empty): Ditto.
1169 (topbucket::click): Ditto.
1170 (topbucket::~topbucket): Ditto.
1171 (paint): Remove i,ii and p as they are obsolete.
1172 Remove header drawing code.
1173 Use new chooser method to paint the chooser.
1174 Use new chooser itemcount method.
1175 (scroll_common): Rename to view::scroll.
1176 Scroll the header window separately.
1177 (list_vscroll, list_hscroll, list_click): Update for new chooser methods.
1178 (listview_proc): Look for header messages.
1179 (note_width): Accept stringless calls.
1180 (pick_line::set_line): Remove.
1181 (pick_line::paint): Remove.
1182 (pick_pkg_line::paint): Paint this one line, using the header column widths.
1183 (pick_category_line::paint): Paint this category, and anything in the bucket.
1184 (pick_line::click): Remove.
1185 (pick_pkg_line::click): Handle a click.
1186 (pick_category_line::click): Handle a click.
1187 (_view): Rename all to view.
1188 (view::view): Initialise the control contents.
1189 (view::set_headers): Work with the header control.
1190 (view::init_headers): Use list syntax for package list.
1191 Rearrange the width logic a little.
1192 (view::insert_pkg): Update to use the hierarchy.
1193 (view::insert_category): Ditto.
1194 (view::insert_at, view::insert_under): Remove.
1195 (view::clear_view): Update to use the hierarchy.
1196 (view::click): Update to use the hierarchy.
1197 (set_view_mode): Use list syntax for package list.
1198 Update for new chooser methods.
1199 (DoInsertItem): New helper function. (Needs a home somewhere).
1200 (create_listview): Remove choose control code and use the constructor instead.
1201 (dialog_cmd,scan2,do_choose): Use list syntax for package list.
1202 * choose.h: Include newly required headers list and package_meta.
1203 (_voew): Rename to view.
1204 (pick_line): Convert to an ABC.
1205 (pick_pkg_line): New class.
1206 (pick_catgory_line): New class.
1207 (topbucket): New class.
1208 (view::scroll): New method created from listview_scroll function.
1209 * desktop.cc (make_passwd_group): Use list syntax for package list.
1210 * download.cc (do_download): Use list syntax for package list.
1211 * fromcwd.cc (found_file): Use list syntax for package list.
1212 * iniparse.y (pacakges): Use list syntax for package list.
1213 * install.cc (uninstall_one): Use list syntax for package list.
1214 (do_install): Use list syntax for package list.
1215 * io_stream.h (io_stream): Prevent non-child direct creation of the class.
1216 Prevent inaccurate synthetic copy and assignment.
1217 * list.h: Include required header stdlib.
1218 Work on const correctness.
1219 * package_db.cc (packagedb::getpackagebyname): Remove.
1220 (packagedb::packagedb): Remove custom list code, and make db a local.
1221 (packagedb::getfirstpackage): Remove.
1222 (packagedb::getnextpackage): Remove.
1223 (packagedb::addpackage): Remove.
1224 (flush): Remove custom list code.
1225 (packagedb::registerpackage): Remove.
1226 (packagedb::packages): New static member.
1227 (packagedb::task): New static member.
1228 * package_db.h (PackageDBActions): New enum.
1229 (packagedb): Remove getfirstpackage, getnextpackage, getpackagebyname,
1230 addpackage, registerpackage, packages, packagecount, curr_package, db.
1232 * pacakge_meta.cc: Include package_db.h.
1233 (packagemeta::action_caption): New method.
1234 (packagemeta::set_action): New method.
1235 * package_meta.h (CategoryPackage): Initialise key.
1236 (packagemeta): Initialise key.
1237 Add set_action and action_caption methods.
1238 Prevent inaccurate synthetic copy and assignment.
1239 * resource.h (IDC_CHOOSE_LISTHEADER): New ID.
1240 * source.cc: Include package_db for db manipulation.
1241 (save_dialog): Set the db task.
1242 * win32.h: Tell the w32 include headers what IE version to expect/require.
1244 2001-12-06 Robert Collins <rbtcollins@hotmail.com>
1246 * README: Wishlist updates.
1248 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
1250 * package_db.cc (getnextpackage): Don't overrun the array.
1252 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
1254 * Makefile.in (OBJS): Add setup_version.o.
1255 (version.c): Rename to setup_version.
1256 * choose.cc (set_action): Prevent NULL pointer dereference.
1257 (package_sort): Remove.
1258 * fromcwd.cc (canonicalize_version): Moved to version.cc.
1259 (check_ini): New function for use with find to see if there is a cached setup.ini.
1260 (do_fromcwd): Check for a cached setup.ini from any mirror site.
1261 * ini.cc (find_routine): New function, for finding cached setup.ini's.
1262 (do_local_ini): New function, drives parsing of local ini's.
1263 (do_remote_ini): New function, drives parsing and caching of remote ini's.
1264 (do_ini): Move guts to do_remote_ini and do_local_ini.
1265 * list.h (removebyindex): New method.
1266 * other.cc (save_dialog): Use new site_list and all_site_list to add the
1267 new site to the site picklist.
1268 (dialog_cmd): Only save the dialog when exiting the dialog.
1269 * res.rc (IDD_SITE): Make IDC_URL_LIST a multiple-selection control.
1270 * site.cc (site_list_type): Move to site.h
1271 (site_list): New global, sites chosen by the user.
1272 (all_site_list): New global, all potential sites.
1273 (site_list_type::init): New method, parses a mirror.lst URL string into a
1274 site_list_type object.
1275 (site_list_type::site_list_type): New method.
1276 (check_if_enable_next): Examine the control, not a local variable.
1277 (load_dialog): Select all the user chosen sites by default.
1278 (save_dialog): Adjust for multiple selection semantics.
1279 (save_site_url): Save all user chosen sites.
1280 (dialog_cmd): Don't save the dialog when the listbox recieves a message -
1282 Remove obsolete other_url reference.
1283 (dialog_proc): Use all_site_list instead of site_list.
1284 (site_sort): Remove.
1285 (get_site_list): Remove malloc use - use list template instead.
1286 Move site_list_type initialisation to site_list_type::init().
1287 (get_initial_list_idx): Renamed to ...
1288 (get_saved_sites): this. Also read in multiple sites to the site_list.
1289 (do_site): Use all_site_list not site_list.
1290 Log all chosen sites.
1291 * site.h: New file, defines site related class, functions and variables.
1292 * state.h: Add comment about use of state.h
1293 (mirror_site): Remove.
1294 (other_url): Remove.
1295 (MIRROR_SITE): Remove.
1296 * version.cc: New file, for version-handling and related functions.
1298 2001-12-02 Robert Collins <rbtcollins@hotmail.com>
1300 * Makefile.in: Add filemanip.o to setup.
1301 * archive.cc (archive::extract_file): Use new io_stream method 'copy'.
1302 * archive_tar.h (archive_tar_file): Implement get_size virtual.
1303 (archive_tar): Ditto.
1304 * choose.cc (set_action): Use [] operator instead of getnth - its more readable.
1306 (_view::init_headers): Ditto.
1307 (_view::insert_pkg): Ditto.
1308 (set_view_mode): Ditto.
1311 (base): Moved to filemanip.cc.
1312 (find_tar_ext): Ditto.
1313 (parse_filename): Ditto.
1314 (_Info::_Info): Remove.
1315 * compress_bz.h (compress_bz): Implement get_size virtual.
1316 * compress_gz.h (compress_gz): Implement get_size virtual.
1317 * cygpackage.cc (cygpackage::destroy): Use array delete for char * objects.
1318 * download.cc (get_file_size): Move to filemanip.cc.
1319 (check_for_cached): Use [] operator instead of getnth - its more readable.
1320 (download_one): Ditto.
1321 * filemanip.cc: New file.
1322 * geturl.cc (init_dialog): Make url a pointer to const as it is not modified.
1323 (get_url_to_membuf): New function - contains get_url_to_string worker code.
1324 (get_url_to_string): Becomes a trivial wrapper to get_url_to_membuf.
1325 * geturl.h: Declare new prototype.
1326 * ini.cc (do_ini): Use get_url_to_membuf and pass ini_init an io_stream.
1327 Tidy up the error code a little.
1328 * ini.h: Remove __cplusplus protection for ini_init.
1330 * inilex.l: Remove old globals.
1331 (ini_init): Use an io_stream for getting the characters.
1332 (ini_getchar): Ditto.
1333 * iniparse.y: Declare yylex as a C++ function.
1334 (add_correct_version): Use [] operator instead of getnth - its more readable.
1335 * io_stream.cc (io_stream::move_copy): Use the copy method.
1336 (io_stream::copy): New method to simply copy from one stream to another.
1337 * io_stream.h (io_stream): New static method copy, and virtual method get_size.
1338 * io_stream_cygfile.cc (io_stream_cygfile::get_size): Implement this.
1339 * io_stream_cygfile.h (io_stream_cygfile::get_size): Declare this.
1340 * io_stream_file.cc (io_stream_file::get_size): Implement this.
1341 * io_stream_file.h (io_stream_file::get_size): Declare this.
1342 * io_stream_memory.h: Include errno as it's neded to parse the header.
1343 (io_stream_memory::get_size): Implement this.
1344 (io_stream_memory::st_size): Delete this.
1345 * list.h: Change getnth into the [] operator.
1346 * netio.cc (NetIO::NetIO): Change prototype to reflect Purl not being modified.
1347 (NetIO::set_url): Ditto.
1348 (NetIO::open): Ditto.
1349 * netio.h: As for netio.cc.
1350 * nio-file.cc (NetIO_File::NetIO_File): Change prototype to reflect Purl not
1352 * nio-file.h: Ditto.
1353 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
1354 * nio-ftp.h (NetIO_FTP::NetIO_FTP): Ditto.
1355 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Ditto.
1356 * nio-http.h (NetIO_HTTP::NetIO_HTTP): Ditto.
1357 * nio-i5.cc (NetIO_IE5::NetIO_IE5): Ditto.
1358 * nio-i5.h (NetIO_IE5::NetIO_IE5): Ditto.
1359 * package_meta.cc (packagemeta::~packagemeta): Bugfix: use array delete.
1360 * package_source.cc (packagesource::set_canonical): Ditto.
1361 (packagesource::set_cached): Ditto.
1362 * package_source.h (site::~site): Ditto.
1363 * site.cc: Change site_list_type to a class, and search and replace sort_key to
1366 2001-12-01 Robert Collins <rbtcollins@hotmail.com>
1368 * package_source.cc (packagesource::set_canonical): Filename was out by one.
1370 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
1372 * Makefile.in (OBJS): Remove category_list - it's not needed.
1373 * README: More wishlist updates.
1374 * category.cc (Category::Category): Initialise new members.
1375 (Categorycmp): New function.
1376 * category.h (Category): New member key for template use.
1377 * category_list.cc: Remove.
1378 * category_list.h: Remove.
1379 (Categorycmp): New function prototype.
1380 * choose.cc: Remove category_list - not needed.
1381 (set_action): Only show the 'source' option when the source is actually
1383 (add_required): Fix recursion limiter to 5.
1384 (fill_missing_category): Use list access.
1385 (default_trust): Ditto.
1386 (pick_line::paint): Ditto.
1387 (_view::init_headers): Ditto.
1388 (_view::insert_pkg): Ditto.
1389 (_view::insert_category): Ditto.
1390 (_view::click): Ditto.
1391 (set_view_mode): Ditto.
1393 * cygpackage.h: Remove category_list - not needed.
1394 * geturl.cc (get_url_to_string): Fix null byte insertion.
1395 * inipatse.y: Remove category_list - not needed.
1396 (categories): Use list access.
1397 * package_db.cc: Ditto.
1398 * package_db.h: Remove category_list - not needed.
1399 (packagedb): Use the list template for categories.
1400 * package_meta.cc (add_category): Ditto.
1401 * package_meta.h (CategoryPackage): Link to the category as well.
1402 (packagemeta): Use a list of CategoryPackages instead of Categories
1403 for more memory efficient cross-referencing.
1405 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
1407 * package_db.cc (packagedb::flush): Write a canonical version for all packages
1408 irrespective of the media they were installed from.
1410 2001-11-29 Robert Collins <rbtcollins@hotmail.com>
1412 * Makefile.in (OBJS): Add package_source and rfc1738.
1413 * README: Wishlist update.
1414 * category_list.cc (register_category): Use references.
1415 * category_list.h (CategoryList): Ditto.
1416 * choose.cc (isinstalled): Remove.
1417 (pkgtrustp): New macro.
1418 (set_action): Use packagemeta.
1419 (add_required): Ditto.
1420 (choose_caption): Example package to choose caption, rather than state flags.
1421 (check_existence): Remove.
1422 (set_existence): Remove old code.
1423 (fill_missing_category): Use packagemeta.
1424 (keep_or_skip): Remove.
1425 (default_trust): Use packagemeta and set trust values directly.
1426 (pick_line::set_line): Use packagemeta.
1427 (_view::insert_pkg): Ditto.
1428 (_view::insert_category): Ditto.
1429 (_view::click): Ditto.
1430 (set_view_mode): Ditto. Also remove "exclude" code.
1431 (create_listview): Use packagemeta.
1432 (dialog_cmd): Ditto.
1433 (getpkgbyname): Remove
1434 (scan2): Use packagemeta. Temporarily comment out the holefinding code.
1435 (read_installed_db): Remove.
1436 (package_sort): Use packagemeta.
1437 (do_choose): Use packagemeta. Don't sort the packages - the db does that.
1438 * choose.h: Use packagemeta.
1439 * cygpackage.cc (cygpackage::cygpackage): Initialise all variables.
1440 (cygpackage::cygpackage): Ditto.
1441 (cygpackage::set_canonical_version): Copy the passed string.
1442 (cygpackage::~cygpackage): Move cleanup code to destroy().
1443 (cygpackage::destroy): New function.
1444 (cygpackage::getfirstfile): Use a separate buffer.
1445 (cygpackage::getnextfile): Ditto.
1446 (cygpackage::Canonical_version): New function.
1447 (cygpackage::set_sdesc): Ditto.
1448 (cygpackage::set_ldesc): Ditto.
1449 * cygpackage.h (cygpackage::Canonical_version): New method.
1450 (cygpackage::set_sdesc): New method.
1451 (cygpackage::set_ldesc): New method.
1452 (cygpackage::SDesc): New method.
1453 (cygpackage::LDesc): New method.
1454 (cygpackage::set_canonical_version): New method.
1455 * desktop.cc: Include packagedb headers.
1456 (make_password_group): Use packagemeta.
1457 * download.cc: Include packagedb headers.
1458 (check_for_cached): New method to find any cached file and fill out the database
1460 (download_one): Take a packagesource, support multiple mirrors.
1461 (do_download): Use packagemeta.
1462 * from cwd.cc: Include packagedb headers.
1463 (found_file): Use packagemeta.
1464 * ini.cc (do_ini): Beginning of multiple-mirror support.
1465 * ini.h (CategoryPackage): Remove.
1466 (Dependency): Remove.
1468 (new_package,getpkgbyname,getpackagecategorybyname,add_category): Remove.
1469 * inilex.l: Support multiple mirrors.
1470 * iniparse.y: Include packagedb headers.
1471 (parser): Use packagemeta.
1472 (new_package): Remove.
1473 (add_correct_version): New function.
1474 (new_requirement): Remove.
1475 (add_category): Remove.
1476 * install.cc (uninstall_one): Use packagemeta.
1477 (install_one_source): New function.
1478 (install_one): Use packagemeta.
1479 (do_install): Use packagemeta.
1480 * io_stream.cc (io_stream::move): Bugfix on move/copy case.
1481 * io_stream_cygfile.cc (io-stream_cygfile::set_mtime): Do not reopen the file
1482 after setting the mtime, it makes no sense, and results in 0 length files.
1483 * io_stream_file.cc (io-stream_file::set_mtime): Ditto.
1484 * list.h: New file, template class for a form of list.
1485 * package_db.cc (packagedb::registerpackage): New function.
1486 * package_db.h (packagedb::npackages ()): New method.
1487 * package_meta.cc (packagemeta::add_version): Use list template.
1488 (packagemeta::set_installed): Ditto.
1489 (packagemeta::add_category): New method.
1490 * package_meta.h: Include necessary headers to parse the class.
1491 (CategoryPackage): New class.
1492 (packagemeta): Initialise all members.
1493 (packagemeta::SDesc): New method.
1494 (packagemeta::Categories): New method.
1495 (packagemeta::add_category): Ditto.
1496 (packagemeta::versions): Change to be a list instance.
1497 * package_source.cc (packagesource::set_canonical): New method.
1498 (packagesource::set_cached): New method.
1499 * package_source.h: Include necessary headers to parse the class.
1501 (packagesource::packagesource): Initialize all members.
1502 (packagesource): Make this class non-abstract.
1503 * package_version.cc (packageversion::packageversion): New method.
1504 * package_version.h (Dependency): New class.
1505 (packageversion::Canonical_vesion): New method.
1506 (packageversion::SDesc): New method.
1507 (packageversion::LDesc): New method.
1508 (packageversion::new_requirement): Ditto.
1509 (packageversion::srcpicked, binpicked): What to install.
1510 (packageversion::src, bin): Installation source data.
1511 * rfc1738.cc: New file. Escapes special characters in URL's.
1514 2001-11-26 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1516 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Stop header parsing when
1517 SimpleSocket::gets() returns a zero-length string, so that we
1518 don't end up eating the entire stream thinking it's all header info.
1520 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
1522 * install.cc (badrename): Remove.
1523 (do_install): Use packagedb flush method to write /etc/setup/installed.db.
1524 * io_stream.cc (io_stream::move_copy): New method.
1525 (io_stream::move): New method.
1526 * io_stream.h (io_stream): New methods move and move_copy.
1527 * io_stream_cygfile.cc (io_stream_cygfile::move): New method.
1528 * io_stream_cygfile.h (io_stream_cygfile): New method move.
1529 * io_stream_file.cc (io_stream_file::move): New method.
1530 * io_stream_file.h (io_stream_file): New method move.
1531 * package_db.cc (packagedb::flush): New method.
1532 * package_db.h (packagedb): New method flush.
1534 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
1536 * Makefile.in (OBJS): Add package_version.
1537 * ategory.cc (Category::Category): Update constructors.
1538 * category_list.cc (CategoryList::register_category): Insert correctly.
1539 * choose.cc: Include package_version.h, not package.h.
1540 * cygpackage.cc: Ditto.
1541 (cygpackage::uninstall): New method.
1542 * cygpackage.h (cygpackage): Rename genericpackage to packageversion.
1543 New method uninstall.
1544 * hash.cc (add, has, enumerate): Change prototype to be accurate.
1545 * hash.h (hash): Change prototypes to be accurate.
1546 * ini.h (_Info): New parameterless constructor.
1547 (CategoryPackage): New constructor.
1549 * install.cc: Don't include unneeded headers.
1550 Include package database headers.
1551 (hash::add_subdirs): Remove.
1552 (uninstall_one): Use packagemeta->uninstall to perform the uninstallation.
1553 Don't uninstall source packages.
1554 (do_install): Just can uninstall_one once as we ignore source packages now.
1555 Don't copy the installed.old database accross, instead iterate through the
1556 packagedb packages list and write the isntalled packages out.
1557 * package_db.cc: Include package_version.h, not package.h.
1558 (packagedb::packagedb): Never let db be undefined.
1559 Record the installation filename, so we can reconstruct installed.db.
1560 (packagedb::addpackage): Insert packages in alpha sorted order.
1561 (packagedb::categories): Initialise correctly.
1562 * package_meta.cc: Include win32 and mount headers as a workaround to
1563 current io_stream limitations. Include a TODO about that.
1564 (standard_dirs): New, from install.cc.
1565 (hash::add_subdirs): New, from install.cc.
1566 (packagemeta::set_installed): Rename genericpackage to packageversion.
1567 (packagemeta::uninstall): New method.
1568 * package_meta.h: Rename genericpackage to packageversion.
1569 (packagemeta): Update constructor.
1570 (add_version, set_installed): Rename genericpackage to packageversion.
1571 (uninstall): New method.
1572 (installed_from): New member.
1573 * package_source.cc: New file.
1574 * package_source.h: New file.
1575 * package_version.cc: New file.
1576 * package_version.h: New file.
1577 * package.cc: Removed.
1578 * package.h: Removed.
1580 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
1582 * Makefile.in (OBJS): Add category.o and category_list.o.
1583 * category.h: New file.
1584 * category.cc: New file.
1585 * category_list.h: New file.
1586 * category_list.cc: New file.
1587 * choose.cc: Include category headers.
1588 (fill_missing_category): Use package_db to access global categories.
1589 (_view::insert_pkg): Ditto.
1590 (_view::insert_category): Ditto.
1591 (set_view_mode): Ditto.
1592 (getcategorybyname): Remove.
1593 * cygpackage.h: Include category_list.h to parse this correctly.
1594 (cygpackage): New virtual &Categories.
1595 * ini.h (_CategoryPackage): More C to C++ conversion.
1597 (getcategorybyname): Remove.
1598 (register_category): Remove.
1599 * iniparse.y: Include package db and category headers.
1600 (categories): Use package_db to access global categories.
1602 (ncategories): Remove.
1603 (register_category): Remove.
1604 * package.h: New virtual &Categories.
1605 * package_db.cc (packagedb::packagedb): Don't read the installed db twice.
1606 (packagedb::categories): Declare.
1607 * package_db.h (packagedb): New member categories for global categories list.
1609 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
1611 * choose.h: Don't include ini.h
1612 * ini.h: Allow pure c++ in the header file.
1614 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
1616 * install.cc (do_install): Write a version 2 installed.db file.
1617 * package_db.cc (packagedb::packagedb): Read version 1 and 2 installed.db files.
1619 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
1621 * Makefile.in (OBJS): Add package abstraction objects.
1622 * choose.cc: Include package abstraction headers.
1623 (read_installed_db): Use packagedb class and ignore installed sources.
1624 * cygpackage.cc: New file.
1625 * cygpackage.h: New file.
1626 * filemanip.h (get_file_size): Use unixy types.
1627 * package.h: New file.
1628 * package.cc: New file.
1629 * package_db.cc: New file.
1630 * package_db.h: New file.
1631 * package_meta.cc: New file.
1632 * package_meta.h: New file.
1634 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
1636 * REAME: Updates to wishlist.
1638 2001-11-16 Robert Collins <rbtcollins@hotmail.com>
1640 * README: Updated and added my list of wishlist and todo items.
1642 2001-11-14 Robert Collins <rbtcollins@hotmail.com>
1644 * Makefile.in (OBJS): Include io_stream_memory in setup.exe.
1645 * archive_tar.cc (archive_tar::write): New prototype.
1646 (archive_tar::seek): New method.
1647 * archive.h (archive_tar_file): Update write() and add seek().
1648 (archive_tar): Ditto.
1649 * archive_tar_file.cc (archive_tar_file::write): New prototype.
1650 (archive_tar_file::seek): New method.
1651 * compress_bz.cc (compress_bz::write): New prototype.
1652 (compress_bz::seek): New function.
1653 * compress_bz.h (compress_bz): Update write() and add seek().
1654 * compress_gz.cc (compress_gz::write): New prototype.
1655 (compress_gz::seek): New function.
1656 * compress_gz.h (compress_gz): Update write() and add seek().
1657 * geturl.cc: Include io_stream headers.
1659 (get_url_to_string): Use a io_stream_memory buffer instead of GUBuf.
1660 * io_stream.h (io_stream_seek_t): New enum.
1661 (io_stream): Update write() and add seek().
1662 * io_stream_cygfile.cc (io_stream_cygfile::write): New prototype.
1663 (io_stream_cygfile::seek): New function.
1664 * io_stream_cygfile.h (io_stream_cygfile): Update write() and add seek().
1665 * io_stream_file.cc (io_stream_file::write): New prototype.
1666 (io_stream_file::seek): New function.
1667 * io_stream_file.h (io_stream_file): Update write() and add seek().
1669 2001-11-13 Brian Keener <bkeener@thesoftwaresource.com>
1671 * localdir.cc: Add headers unistd.h and port.h.
1672 (save_local_dir): Expand search logic to include local directory for
1673 location of file last-cache.
1674 (dialog_cmd): Skip IDD_ROOT when downloading and use Back button.
1675 (do_local_dir): Expand search logic to include local directory for file
1677 * res.rc (IDD_CHOOSE_DIALOG): Add hotkey to View button.
1678 * Source.cc (dialog_cmd): Skip IDD_ROOT if select Download from
1680 (do_source): Default to Install from Internet on first entry or
1681 previous selection if backing up from IDD_ROOT or IDD_LOCAL_DIR.
1683 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
1685 * choose.cc (find_tar_ext): Only match at the end of the string.
1686 (getpkgbyname): Prevent NULL pointer dereference.
1688 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
1690 * Makefile.in (CFLAGS): Add warnings and -Werr.
1691 (WARNONLY_FLAGS): For sources that produce (harmless) errors no matter what.
1692 (OBJS): Add io_stream class' objects.
1693 (autoload.o): Use WARNONLY_FLAGS.
1695 (iniparse.o): Ditto.
1696 * archive.cc: New file.
1697 * archive.h: New file.
1698 * archive_tar.cc: New file.
1699 * archive_tar.h: New file.
1700 * archive_tar_file.cc: New file.
1701 * autoload.c: Fix compiler warnings (unused, deprecated conversion).
1702 * choose.cc: Use io_stream.h, not mount.h.
1704 (find_tar_ext): Rewritten to use strstr, and to accept .tar as an extension.
1705 (read_installed_db): Use io_streams.
1706 * choose.h: Run indent.
1707 * compress.cc: New file.
1708 * compress.h: New file.
1709 * compress_bz.cc: New file.
1710 * compress_bz.h: New file.
1711 * compress_gz.cc: New file.
1712 * compress_gz.h: New file.
1713 * concat.cc: Run indent.
1714 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1715 * concat.h: Run indent.
1716 * desktop.cc: Run indent.
1717 Include mklink2.h rather than redefining by hand.
1718 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1719 (etc_profile): Fix compiler warning (deprecated conversion).
1720 (make_link): Fix compiler warning (deprecated conversion).
1721 Tidy up use of args variable - consolidate into argbuf.
1722 (start_menu): Fix compiler warning (deprecated conversion).
1723 (desktop_icon): Fix compiler warning (deprecated conversion).
1724 (make_etc_profile): Fix compiler warning (deprecated conversion).
1725 (uexists): Fix compiler warning (deprecated conversion).
1726 (check_desktop): Fix compiler warning (deprecated conversion).
1727 (check_startmenu): Fix compiler warning (deprecated conversion).
1728 * dialog.cc: Run indent.
1729 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1730 (fatal): Fix compiler warning (deprecated conversion).
1731 * dialog.h: Run indent.
1732 * diskfull.cc: Run indent.
1733 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1734 * download.cc: Run indent.
1735 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1736 (download_one): Fix compiler warning (signed vs unsigned comparison).
1737 * filemanip.h: Run indent.
1738 * find.cc: Run indent.
1739 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1740 (find): Fix compiler warning (deprecated conversion).
1741 * find.h: Run indent.
1742 * fromcwd.cc: Run indent.
1743 * geturl.cc: Run indent.
1744 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1745 (dialog_cmd): Return a value.
1746 (dialog_proc): Remove unused variables.
1748 (get_url_to_file): Fix compiler warning (deprecated conversion).
1749 * geturl.h: Run indent.
1750 * hash.cc: Run indent.
1751 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1752 * hash.h: Run indent.
1753 * ini.cc: Run indent.
1755 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1756 (do_ini): Use io_streams for local io.
1757 * ini.h: Run indent.
1758 * inilex.l (ignore_line): Fix compiler warning (is not a prototype).
1759 Fix compiler warning (brackets for truth assignment).
1760 * install.cc: Run indent.
1761 Fix compiler warning (/* in comment).
1763 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1764 (dialog_cmd): Return a value.
1765 (dialog_proc): Return a value.
1766 (start_tics): Deleted - was unused.
1767 (badrename): Fix compiler warnings (unused, deprecated conversion).
1768 (standard_dirs): Fix compiler warning (deprecated conversion).
1770 (uninstall_one): Convert to io_streams.
1771 (install_one): Convert to io_streams.
1772 (do_install): Convert to io_streans.
1773 Fix compiler warning (deprecated conversion).
1774 * io_stream.cc: New file.
1775 * io_stream.h: New file.
1776 * io_stream_cygfile.cc: New file.
1777 * io_stream_cygfile.h: New file.
1778 * io_stream_file.cc: New file.
1779 * io_stream_file.h: New file.
1780 * localdir.cc: Run indent.
1782 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1783 (get_root_dir_now): Remove.
1784 (save_local_dir): Convert to io_streams.
1785 (dialog_cmd): Return a value.
1786 (do_local_dir): Convert to io_streams.
1787 (log.cc): Run indent.
1788 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1789 (log): Fix compiler warning (deprecated conversion).
1790 (log_save): Fix compiler warning (deprecated conversion).
1791 * log.h: Run indent.
1792 (log): Fix compiler warning (deprecated conversion).
1793 (log_save): Fix compiler warning (deprecated conversion).
1794 * main.cc: Run indent.
1795 Don't include "netio.h".
1796 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1797 (netio_test): Remove.
1798 (sid_auth): Fix compiler warning (partially bracketed initialiser).
1799 (WinMain): Return a value.
1800 * mkdir.cc: Run indent.
1801 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1802 * mklink2.c: Run indent.
1803 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1804 (mkcygsymlink): New function.
1805 * mklink2.h: New file.
1806 * mount.cc: Run indent.
1807 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1808 (create_mount): Remove unused variables.
1809 (cygpath): Fix compiler warning (signed vs unsigned comparison).
1810 * mount.h: Run indent.
1811 * msg.cc: Run indent.
1812 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1813 (msg): Fix compiler warning (deprecated conversion).
1814 (mbox): Fix compiler warning (deprecated conversion).
1815 * msg.h: Run indent.
1816 (msg): Fix compiler warning (deprecated conversion).
1817 * net.cc: Run indent.
1818 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1819 (dialog_cmd): Return a value.
1820 * netio.cc: Run indent.
1821 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1822 (auth_cmd): Return a value.
1823 * netio.h: Run indent.
1824 * nio-file.cc: Run indent.
1825 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1826 (NetIO_File::NetIO_File): Fix compiler warning (deprecated conversion).
1827 * nio-file.h: Run indent.
1828 * nio-ftp.cc: Run indent.
1829 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1830 * nio-ftp.h: Run indent.
1831 * nio-http.cc: Run indent.
1832 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1833 * nio-http.h: Run indent.
1834 * nio-ie5.cc: Run indent.
1835 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1836 * nio-ie5.h: Run indent.
1837 * other.cc: Run indent.
1838 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1839 (dialog_cmd): Return a value.
1840 * port.h: Run indent.
1841 * postinstall.cc: Run indent.
1842 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1843 (cmd): Fix compiler warning (deprecated conversion).
1844 (eun): Fix compiler warning (deprecated conversion).
1845 * root.cc: Run indent.
1846 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1847 * simpsock.cc: Run indent.
1848 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1849 * simpsock.h: Run indent.
1850 * site.cc: Run indent.
1852 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1853 (get_root_dir_now): Remove.
1854 (save_site_url): Convert to io_streams.
1855 (dialog_cmd): Return 0.
1856 (get_initial_list_idx): Convert to io_streans.
1857 * source.cc: Run indent.
1858 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1859 (check_if_enable_next): Remove.
1860 (load_dialog): Remove unused variables.
1861 (save_dialog): Ditto.
1862 (dialog_cmd): Return a value.
1863 * splash.cc: Return a value.
1864 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1865 (dialog_cmd): Return a value.
1866 * state.cc: Run indent.
1867 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1868 * state.h: Run indent.
1872 2001-11-12 Christopher Faylor <cgf@redhat.com>
1874 * desktop.cc (start_menu): Change start menu name to "Cygwin".
1875 (check_startmenu): Ditto.
1877 2001-11-11 Christopher Faylor <cgf@redhat.com>
1879 * choose.cc (parse_filename): Finish reorganization by correctly
1880 decrementing p in memmove.
1882 2001-11-11 Christopher Faylor <cgf@redhat.com>
1884 * choose.cc (parse_filename): Reorganize code to work around gcc
1885 optimization problem.
1887 2001-11-09 Gareth Pearce <tilps@hotmail.com>
1889 * choose.cc (set_action): Allow skip as an option for installed
1890 packages that have version number not listed in setup.ini.
1892 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
1894 * choose.cc (set_cation): Backout last change.
1895 (choose_caption): Ditto.
1897 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
1899 * ini.h (actions): Remove - transferred to choose.h.
1901 * choose.h: Protect class's from "C" compilers.
1902 (actions): New enum, from ini.h. This may not be the 'right' place
1903 but that place doesn't exist yet.
1904 (_views): New enum, from ini.h.
1905 * choose.cc (set_action): Handle installed packages with a version not in
1907 (choose_caption): Ditto.
1908 * iniparse.y: Rearrange header order to handle new ini.h.
1910 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
1912 * ini.h (_Info): Fix compiler warnings (signed vs unsigned comparison).
1913 (registry_category): Fix compiler warning (deprecated conversion).
1914 * iniparse.y (registry_category): Ditto.
1915 * choose.cc (cvsid): Fix compiler warnings (unused, deprecated conversion).
1916 (add_requried): Remove unused variable.
1917 (choose_caption): Handle all enumeration values via a default.
1918 (paint): Fix compiler warnings (unused, deprecated conversion).
1919 (scroll_common): Fix compiler warnings (unused, signed vs unsigned comparison).
1920 (list_clicK): Fix compiler warnings (signed vs unsigned comparison).
1921 (note_width): Fix compiler warnings (deprecated conversion).
1922 (keep_or_skip): Fix compiler warnings (unused).
1923 (_view::mode_caption): Fix compiler warnings (deprecated conversion).
1924 (set_view_mode): Fix compiler warnings (unused).
1925 (create_listview): Fix compiler warnings (unused, incorrect format, reaches
1927 (dialog_proc): Fix compiler warnings (unused).
1928 (read_installed_db): Fix compiler warnings (unused, deprecated conversion).
1929 * choose.h (_header): Fix compiler warnings (deprecated conversion).
1932 2001-11-08 Pavel Tsekov <ptsekov@syntrex.com>
1934 * simpsock.h (SimpleSocket::invalidate): Declare new method.
1935 * simpsock.cc (SimpleSocket::invalidate): Implement new method.
1936 (SimpleSocket::SimpleSocket): Initialize buf to zero. Do not allocate
1937 memory for buf in the constructor.
1938 (SimpleSocket::~SimpleSocket): Use SimpleSocket::invalidate().
1939 (SimpleSocket::printf): Use SimpleSocket::write() instead of send().
1940 (SimpleSocket::write): Check object consistency - return -1 on error.
1941 invalidate() the object on socket write error.
1942 (SimpleSocket::fill): Check object consistency - return -1 on error.
1943 invalidate() the object if socket read error is encountered and there
1944 is no more data available in the internal read buffer.
1945 Allocate memory for the internal read buffer.
1946 (SimpleSocket::gets): Return zero (NULL pointer) if error is encountered
1947 during fill() and no more data is available in the internal read buffer.
1948 (SimpleSocket::read): Check object consistency - return -1 on error.
1949 invalidate() the object if socket read error is encountered.
1950 * nio-ftp.cc (NetIO_FTP:NetIO_FTP): Allow 125 as valid response code to
1951 the RETR command (fix for MS IIS ftp server 5 - possibly others too).
1952 (NetIO_FTP::ok): Check if the SimpleSocket object is ok().
1953 (NetIO_FTP::read): Use NetIO_FTP::ok().
1954 * nio-http.cc: Check for valid return value of SimpleSocket::gets().
1955 (NetIO_HTTP::ok): Check if the SimpleSocket object is ok().
1957 2001-11-09 Robert Collins <rbtcollins@hotmail.com>
1959 * simpsock.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
1960 (SimpleSocket::SimpleSocket): Avoid compiler warnings (deprecated conversion).
1961 (SimpleSocket::printf): Ditto.
1962 (SimpleSocket::write): Ditto.
1963 * simpsock.h (SimpleSocket): Avoid compiler warnings for constructor,
1965 * nio-ftp.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
1966 (NetIO_FTP::NetIO_FTP): Remove unused variable done.
1967 * nio-http.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
1969 2001-11-07 Charles Wilson <cwilson@ece.gatech.edu>
1971 * geturl.cc (get_url_to_string): clean up memory leak
1972 (get_url_to_file): ditto
1974 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
1976 * localdir.cc (dialog_cmd): Go back to IDD_ROOT in every case.
1977 * source.cc (dialog_cmd): Go forward to IDD_ROOT in every case.
1979 2001-11-06 Pavel Tsekov <ptsekov@syntrex.com>
1981 * fromcwd.cc (found_file): Free() memory containing the version and
1982 filepath information for a given package, before replacing the pointers which
1983 reference this memory.
1985 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
1987 * fromcwd: Fix compiler warnings for cvsid.
1988 (canonicalize_version): Fix compilter warnings.
1989 (do_fromcwd): Ditto.
1990 * version.h: Fix compiler warnings for canonicalize_version.
1992 2001-11-03 Robert Collins <rbtcollins@hotmail.com>
1994 * res.rc (IDD_CHOOSE): Move the view caption to the right hand side.
1996 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1998 * res.rc (IDD_CHOOSE): Tweak for use on a 640x480 screen.
2000 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2002 * choose.cc (set_action): Correctly allow skip for any uninstalled package.
2004 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2006 * choose.cc (default_trust): Change the "Required" forced install category to
2009 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2011 * choose.cc: Ran indent.
2012 (set_action): When the requested trust level is missing and the level was not
2013 user requested, set the action to ACTION_SAME_CURR.
2015 2001-11-01 Christopher Faylor <cgf@redhat.com>
2017 * Makefile.in (mingw_getopt.o): Fix typo in non-verbose compilation.
2019 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2021 * choose.cc (_view::init_headers): Resync with the paint logic.
2023 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2025 * choose.cc (add_required): Allow SKIP and SRC_ONLY for currently installed
2028 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2030 * choose.cc (default_trust): Autoset currently installed packages per the user's
2031 selection of prev/curr/exp.
2033 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2035 * splash.cc (dialog_proc): Return TRUE as specified in the WIN32 API.
2037 2001-11-02 Pavel Tsekov <ptsekov@syntrex.com>
2039 * geturl.cc (is_showing): Remove.
2040 (is_local_install): New static variable. Controls whether the
2041 progress dialog and the supporting thread will be created.
2042 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the WIN32 API.
2043 (init_dialog): Remove usage of SetForegroundWindow and is_showing.
2044 This prevents the progress dialog to gain control over the
2045 application and fixes the "setup.exe going to background" problem.
2046 (progress): Use is_local_install.
2047 (get_url_to_string): Set is_local_install.
2048 (dismiss_url_status_dialog): Use is_local_install.
2049 * install.cc (dialog_proc): Return TRUE as specified in WIN32 API.
2050 (init_dialog): Remove usage of SetForegroundWindow.
2051 This prevents the progress dialog to gain control over the
2052 application and fixes the "setup.exe going to background" problem.
2054 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2056 * choose.cc (list_click): Change r to row for clarity.
2057 When we shrink the list below 1 page, scroll to the top of the list.
2058 (_view::click): Return the actual change for contractions.
2059 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the Win32 API.
2061 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
2063 * choose.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
2064 * localdir.cc: Ran indent.
2065 (get_root_dir_now): New function.
2066 (save_local_dir): New function.
2067 (dialog_cmd): Use it and swap cygwin root selection and local dir selection order.
2068 (do_local_dir): If there is a saved local dir, read it in.
2069 * net.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
2070 * root.cc (dialog_cmd): Ditto.
2071 * source.cc (dialog_cmd): Ditto.
2073 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
2075 * choose.cc(list_vscroll): Return 0 as required by win32.
2076 (list_hscroll): Ditto.
2077 (list_click): Ditto.
2079 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
2083 * main.cc(WinMain): Use __argv to retrieve command line parameters.
2084 * Makefile,in: Remove argv.o.
2086 2001-11-01 Matt Hargett <matt@use.net>
2088 * geturl.cc (progress): Change int to unsigned int to eliminate
2090 * (get_url_to_string): Check for NULL pointer.
2091 * mount.cc (find2): Use free instead of delete for malloc'd
2093 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Fix memory leak.
2095 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
2097 * choose.cc(_view::insert_under): Handle linen > nlines and lines[linen] with neither
2098 a package nor a category. The lines[linen] bug was reported by Matt (matt@usa.net).
2099 (read_installed_db): Bugfix for testing whether a package has a source tarball.
2100 Reported by Matt (matt@usa.net).
2101 * geturl.cc(dialog): Rename gw_dialog to local_gw_dialog to avoid programmer
2102 confusion and lint errors. Reported by Matt (matt@usa.net).
2104 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
2106 * argv.cc: New file, converts arguments for -mwindows programs. (Simplified derivation
2109 * Makefile,in: Add argv.o and mingw_getopt.o to setup.exe object list.
2110 Add mingw_getopt.o build rule.
2111 * main.cc(WinMain): Initialise argv and argc for use by getopt.
2113 2001-10-27 Christopher Faylor <cgf@redhat.com>
2115 * res.rc: Rearrange info on top line slightly.
2117 2001-10-27 Christopher Faylor <cgf@redhat.com>
2119 * desktop.cc (make_passwd_group): Move file creation earlier in the
2120 process to ensure that passwd-grp.bat reflects desired operation.
2122 2001-27-10 Trevor Forbes <t4bs@hotmail.com>
2124 * postinstall.cc (each): Remove "*.done" file else rename will fail.
2126 2001-10-16 Christopher Faylor <cgf@redhat.com>
2128 * res.rc: Oops. Take 640x480 screen size into account.
2130 2001-10-16 Christopher Faylor <cgf@redhat.com>
2132 * res.rc: Enlarge chooser screen.
2134 2001-10-12 Christopher Faylor <cgf@redhat.com>
2136 * Makefile.in: Accomodate changes to w32api_include macro.
2138 2001-10-12 Christopher Faylor <cgf@redhat.com>
2140 * Makefile.in: Use correct flags for windres.
2142 2001-10-12 Christopher Faylor <cgf@redhat.com>
2144 * Makefile.in (CFLAGS): Remove -nostdinc from CFLAGS.
2146 2001-10-12 Christopher Faylor <cgf@redhat.com>
2148 * choose.cc (pick_line::paint): Reorganize after botched patch.
2150 2001-10-12 Christopher Faylor <cgf@redhat.com>
2152 * choose.cc (pick_line::paint): Add missing declaration.
2154 2001-10-10 Ralf Habacker <Ralf.Habacker@freenet.de>
2156 * choose.cc (pick_line::paint): Add package name to sdesc for display.
2158 Wed Sep 26 21:39:00 Robert Collins rbtcollins@hotmail.com
2160 * choose.cc (_view::insert_pkg): Correctly exit loop.
2161 * iniparse.y (register_category): Always insert new categories.
2163 Fri Sep 21 13:56:32 2001 Christopher Faylor <cgf@cygnus.com>
2165 * inilex.l (yylex): For comments, eat all characters up to, but not
2168 Sun Aug 26 12:50:01 2001 John Marshall <jmarshall@acm.org>
2170 * fromcwd.cc (found_file): Use correct package name when adding an
2171 unknown package rather than random stack garbage.
2173 Sun Aug 12 14:25:21 2001 Christopher Faylor <cgf@cygnus.com>
2175 * desktop.cc (make_passwd_group): .bat files need \r\n endings.
2177 Wed Aug 8 13:53:47 2001 Christopher Faylor <cgf@cygnus.com>
2179 * desktop.cc (etc_profile): Leave environment variables untouched.
2181 2001-08-07 Corinna Vinschen <corinna@vinschen.de>
2183 * autoload.c: Add dynamic load statements for NT/W2K
2184 advapi32 functions not available in 9x/ME.
2185 * main.cc (set_default_dacl): New function.
2186 (WinMain): Call `set_default_dacl' if running on NT/W2K.
2188 Sat Aug 4 21:35:53 2001 Christopher Faylor <cgf@cygnus.com>
2190 * ini.h (_CategoryPackage): Change pkg field to pkgname for
2192 * choose.cc: Use pkgname field when referencing _CategoryPackage
2194 (fill_missing_category): Don't add excluded packages.
2195 (default_trust): Ditto.
2196 (_view::insert_pkg): Ditto.
2197 * iniparse.y (register_category): Use consistent variable name.
2199 2001-07-09 Egor Duda <deo@logos-m.ru>
2201 * choose.cc: Use system foreground color for text output.
2203 Sat Jul 7 00:40:28 2001 Christopher Faylor <cgf@cygnus.com>
2205 * choose.cc (set_action): Use default trust for determining reinstall
2207 (default_trust): Set default trust.
2208 (pick_line::paint): Allow source selection when reinstalling or
2211 Fri Jul 6 18:08:49 2001 Christopher Faylor <cgf@cygnus.com>
2213 * choose.cc (isinstalled): Modify to properly accomodate special case
2215 (set_action): Check downloaded components, not installed components if
2217 (set_existence): Always include full list of files when "download
2220 Fri Jul 6 00:37:05 2001 Christopher Faylor <cgf@cygnus.com>
2222 * choose.cc (pick_line::paint): Properly display "na" field when no
2225 Thu Jul 5 00:34:23 2001 Christopher Faylor <cgf@cygnus.com>
2227 * choose.cc (scan2): Ensure that older versions do not show up in
2230 Mon Jul 2 15:47:59 2001 Christopher Faylor <cgf@cygnus.com>
2232 * choose.cc (set_action): Allow "Skip" action if trust != installed.
2233 * res.rc: Fix copyright.
2235 Sat Jun 30 14:05:21 2001 Michael A Chase <mchase@ix.netcom.com>
2237 * res.rc (IDD_LOCAL_DIR): Change caption to match the other dialog
2239 (IDD_CHOOSE): Adjust horizontal size so package names are visible.
2241 * choose.cc: Restore some more changes from 2001-06-25, throughout.
2242 (paint): Wrap some excessively long lines.
2243 (pick_line::paint): Ditto. Move the arrow in the "Current" column
2244 right to where it belongs. Move the source checkbox slightly to the
2246 (do_choose): List categories and required packages in setup.log.full.
2248 Sat Jun 30 23:04:59 2001 Christopher Faylor <cgf@cygnus.com>
2250 * choose.cc (scan2): Restore source scanning eliminated by previous checkin.
2252 Sat Jun 30 15:18:33 2001 Christopher Faylor <cgf@cygnus.com>
2254 * ini.h (struct _Info): Add "derived" element.
2255 * choose.cc (scan2): Try to place unknown tar files into proper slot
2256 when package exists in setup.ini but tar file does not.
2258 Sat Jun 30 13:39:00 2001 Robert Collins <rbtcollins@hotmail.com>
2260 * choose.cc (create_listview): Call set_view_mode with VIEW_CATEGORY.
2261 (do_choose): Log the first category name.
2263 Fri Jun 29 23:07:44 2001 Christopher Faylor <cgf@cygnus.com>
2265 *ini.h: Reapply 2001-06-25 changes.
2266 * choose.cc (add_required): Ditto. Default to "Keep" state if
2267 UNINSTALL and product is installed. Default to curr state if SKIP,
2269 (keep_or_skip): New function. Returns skip or keep state depending on
2270 installed state of package.
2271 (default_trust): Use keep_or_skip to set state.
2272 (_view::insert_pkg): Use calloc to allocate lines.
2273 (set_view_mode): Adapt 2001-06-25 change to set_full_list here.
2275 Sat Jun 30 11:01:00 2001 Robert Collins <rbtcollins@hotmail.com>
2277 * choose.cc: Remove globals full_list, headers, package_indexes and
2279 Add globals cat_headers, pkg_headers and chooser.
2280 (add_required): New function.
2281 (paint): Use the chooser for header details.
2282 Call into the chooser to paint each line.
2283 (list_click): Use new global variables.
2284 Call into the chooser to handle the click.
2285 Repaint the entire view if packages have been added or removed.
2286 (note_width): Get passed a headers struct rather than using a global
2288 (fill_missing_category): New function.
2289 (default_trust): Skip non-"Required" or "Misc" packages.
2290 (pick_line::set_line (Package *)): New function.
2291 (pick_line::set_line (Category *)): New function.
2292 (pick_line::paint): New function.
2293 (pick_line::click): New function.
2294 (_view::_view): New function.
2295 (_view::set_view_mode): New function.
2296 (_view::mode_caption): New function.
2297 (_view::set_headers): New function.
2298 (_view::init_header): New function.
2299 (_view::insert_pkg): New function.
2300 (_view::insert_category): New function.
2301 (_view::insert_at): New function.
2302 (_view::insert_under): New function.
2303 (_view::clear_view): New function.
2304 (viewsplusplus): New function.
2305 (_view::client): New function.
2306 (set_view_mode): Use new chooser functionality.
2307 (set_full_list): Use new global variables.
2308 (create_listview): Instantiate chooser.
2309 Remove all hardcoded headers[] code.
2310 (dialog_cmd): On trust changes, check dependencies.
2311 (getcategorybyname): New function.
2312 (getpackagecategorybyname): New function.
2313 (scan2): Use case-insensitive package comparison.
2314 (do_choose): Use fill_missing_category ().
2315 Show some category data.
2316 * ini.h: Protect against multiple inclusion.
2318 (_CategoryPackage): New struct.
2319 (_Category): New struct.
2320 (_Package): Change category to Category * from char *.
2321 (extern Category category): New global variable.
2322 (extern in ncategories): Ditto.
2323 (getcategorybyname): New prototype.
2324 (catpackagecategorybyname): New prototype.
2325 (register_category): New prototype.
2326 (add_category): New prototype.
2327 * iniparse.y: Parse multiple categories per package.
2328 (category): New global variable.
2329 (ncategories): New global variable.
2330 (new_package): Compare package against NULL, not 0.
2331 (new_requirement): Source formatting fix.
2332 (register_category): New function.
2333 (add_category): New function.
2334 * res.rc: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
2335 IDC_CHOOSE_VIEWCAPTION: New control.
2336 * resource.h: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
2337 IDC_CHOOSE_VIEWCAPTION: New control.
2338 Increment _APS_NEXT_CONTROL_VALUE.
2340 Mon Jun 25 00:56:37 2001 Michael A Chase <mchase@ix.netcom.com>
2342 * choose.cc (paint): Wrap excessively long lines.
2343 (list_click): Ditto.
2344 (create_listview): Ditto.
2345 (do_choose): Ditto. Replace TABs and remove CRs in lines written to
2346 setup.log.full. Allow "Yes" for source exists in setup.log.full when
2347 installing from local directories.
2349 Mon Jun 25 00:56:37 2001 Christopher Faylor <cgf@cygnus.com>
2351 * choose.cc (set_action): Only clear srcpicked when moving to next
2352 state. Allow source installation if it exists in the current "trust"
2353 state. Don't move to skip state when package is installed.
2354 (list_click): Don't allow source clicking when no source is available.
2355 (set_full_list): Display package when not is_full_action.
2356 * ini.h (is_full_action): Define.
2358 Sun Jun 17 12:06:14 2001 Christopher Faylor <cgf@cygnus.com>
2360 * install.cc (check_for_old_cygwin): New function. First stab at
2361 checking for old cygwin versions.
2362 (do_install): Call check_for_old_cygwin if there were no errors during
2365 Sat Jun 16 11:33:51 2001 Michael A Chase <mchase@ix.netcom.com>
2367 * choose.cc (_Info::_Info): Test _source paramenter for non-NULL rather
2368 than zeroed "source" element.
2370 Fri Jun 15 20:54:43 2001 Christopher Faylor <cgf@cygnus.com>
2372 * choose.cc (scan2): Insert unknown tar archives, found on disk, into
2373 the highest available "hole" in the trust array.
2375 Fri Jun 15 00:20:48 2001 Christopher Faylor <cgf@cygnus.com>
2377 * choose.cc (set_existence): Use pointer method for indexing in trust
2379 (create_listview): Ditto.
2380 (scan2): Ditto. Also, use consistent variable name for indexing into
2382 * ini.h (Package): Reorganize info array for easier scanning.
2384 Fri Jun 15 00:01:51 2001 Christopher Faylor <cgf@cygnus.com>
2386 * choose.cc (isinstalled): Eliminate special download only test.
2387 (set_action): Don't move to next state if in ACTION_SAME range and not
2389 (choose_caption): Display "Retrieve" rather than "Reinstall" when just
2391 (do_choose): Sort packages after all packages have been read.
2392 Accomodate the fact that first element in trust array is empty so that
2393 log files don't report the wrong trust value.
2394 * iniparse.y (new_package): Malloc space for package name or suffer
2397 Thu Jun 14 22:43:59 2001 Robert Collins <rbtcollins@hotmail.com>
2399 * ini.h (Dependency): New structure. Declare new function.
2400 * inilex.l (yylex): Detect new setup.ini options - category and requires.
2401 * iniparse.y: Declare new setup.ini token values.
2402 (yyparse): Parse new token values.
2403 (new_requirement): New function.
2405 Thu Jun 14 22:43:26 2001 Christopher Faylor <cgf@cygnus.com>
2407 * choose.cc (read_installed_db): Eliminate obsolete code.
2409 Thu Jun 14 22:11:53 2001 Christopher Faylor <cgf@cygnus.com>
2411 * choose.cc (set_action): Set trust on "redo".
2412 (_Info::_Info): New constructor.
2413 (read_installed_db): Use new constructor. Use trusts type for
2415 * ini.h (struct _Info): Label struct, add constructor.
2416 (Package): Make installed_ix a type 'trusts.'
2417 * install.cc (uninstall_one): Unset any installed info for current
2419 (install_one): Allocate new Info struct for installed reflecting new
2421 (do_install): Don't output line to installed.db if package is being
2424 Thu Jun 14 20:33:01 2001 Robert Collins <rbtcollins@hotmail.com>
2426 * choose.cc (getpkgbyname): Use consistent method for scanning package
2429 Wed Jun 13 23:33:08 2001 Christopher Faylor <cgf@cygnus.com>
2431 * choose.cc: Add some comments.
2432 (getpkgbyname): Use strcasecmp for comparisons.
2434 Wed Jun 13 16:07:00 2001 Christopher Faylor <cgf@cygnus.com>
2436 * install.cc (do_install): Avoid checking for download action if
2437 package wasn't currently retrieved.
2439 Wed Jun 13 11:27:22 2001 Christopher Faylor <cgf@cygnus.com>
2441 * choose.cc: Eliminate extra array throughout. Use element in package
2442 structure instead. Use pointers rather than array indexes where
2444 (set_action): New function to set next action based on current.
2445 (choose_caption): New function. Returns display caption.
2446 (check_existence): Change arguments. Use pointer to 'info' structure.
2447 (set_existence): Use pointer rather than array index.
2448 (default_trust): Use trusts enum for second argument.
2449 (set_full_list): Honor exclude element in package structure.
2450 (build_labels): Eliminate.
2451 (base): Make global. Use const char * argument.
2452 (get_package_version): Eliminate.
2453 (getpkgbyname): New function.
2454 (read_installed_db): Use parse_filename to get version info.
2455 * desktop.cc (make_passwd_group): Use getpkgbyname function.
2456 * download.cc (get_file_size): const argument.
2457 (do_download): Use is_download_action to determine when something
2458 should be downloaded.
2459 * filemanip.h: Add some functions.
2460 * ini.cc (do_ini): Use NULL rather than 0 for pointer assignment.
2461 * ini.h: Use enums for actions and trusts.
2462 (is_download_action): New macro.
2463 (is_upgrade_action): Ditto.
2464 (is_uninstall_action): Ditto.
2465 (struct Package): Add new fields.
2466 * inilex.l (yylex): Detect new setup.ini options.
2467 * iniparse.y: Declare new tokens.
2468 (yyparse): Detect exclude keyword. Fill out version field even if
2470 (new_package): Use greater granularity when allocating package array to
2471 avoid repeated calls to realloc.
2472 * install.cc (exists): const argument.
2473 (uninstall_one): Take pkg argument.
2474 (install_one): Ditto. Eliminate unneeded arguments which can be
2475 derived from package info.
2476 (do_install): Iterate over package array using a pointer. Use
2477 is_download_action to control when package should be downloaded.
2478 * tar.cc (tar_open): const argument.
2479 * tar.h: Refloect const argument.
2481 2001-05-31 Michael Chase mchase@ix.netcom.com
2483 * main.cc (WinMain): Add setup version to starting setup.log entry
2485 Tue May 29 21:37:58 2001 Yukihiko Sohda <sohda@is.titech.ac.jp>
2487 * inilex.l: Add + to list of valid string characters.
2489 Mon May 28 20:54:50 2001 Christopher Faylor <cgf@cygnus.com>
2491 * Makefile.in: Remove more stuff in the clean target.
2493 Mon May 28 18:24:59 2001 Christopher Faylor <cgf@cygnus.com>
2495 * Makefile.in: Correctly generate iniparse.h.
2497 Tue Mar 6 19:14:00 2001 Corinna Vinschen <corinna@vinschen.de>
2499 * geturl.cc (get_url_to_file): Add parameter `allow_ftp_auth'.
2500 * geturl.h: Change declaration of `get_url_to_file' accordingly.
2501 * netio.cc (NetIO::NetIO): Add parameter `allow_ftp_auth'.
2502 Set member `ftp_auth'.
2503 (NetIO::open): Add parameter `allow_ftp_auth'. Use it in calls
2504 to constructors of derived classes.
2505 (NetIO::get_ftp_auth): New method.
2506 * netio.h: Change class definition accordingly.
2507 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Add parameter `allow_ftp_auth'.
2508 Take global variables `net_ftp_user' and `net_ftp_passwd' into account.
2509 Add code for ftp authentication retry.
2510 * nio-ftp.h: Change class definition accordingly.
2511 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Add parameter `allow_ftp_auth'.
2512 Add code for ftp authentication retry in case of proxy connection.
2513 * nio-http.h: Change class definition accordingly.
2514 * res.rc: Add FTP authentication dialog.
2515 * resource.h: Add new constants used in res.rc.
2516 * state.h: Add variables `net_ftp_user' and `net_ftp_passwd'.
2518 Sun May 27 17:12:23 2001 Christopher Faylor <cgf@cygnus.com>
2520 * res.rc (IDD_SPLASH): Add a copyright year.
2522 Sun May 27 15:42:18 2001 Christopher Faylor <cgf@cygnus.com>
2524 * Makefile.in: Make iniparse.y produce a c++ file.
2525 * choose.cc (set_existence): Revert 2001-05-27 change.
2526 * ini.cc: Remove "C" from declaration of yyparse.
2527 * iniparse.y (yyparse): Fill out version field by default when a binary
2528 install is detected and no version has been set yet.
2529 * install.cc (do_install): Mount things earlier so that we can use
2530 proper mount table settings. Don't remove mounts since they are now
2532 * mount.cc (create_mount): Reread the mount table after establishing a
2534 (read_mounts): Explicitly clear root_here to allow multiple uses of
2535 this function. Ensure that there is no garbage in the table when we've
2536 exhausted all of the mounts in the registry.
2537 (cygpath): Accomodate ./ in path.
2539 Sun May 27 02:59:07 2001 Christopher Faylor <cgf@cygnus.com>
2541 Use parse_filename method to parse filenames throughout. Use
2542 get_root_dir to retrieve the current root directory throughout. Set
2543 const in argument list, where appropriate, throughout.
2544 * choose.cc (set_existence): Detect case of uninstalled package with no
2546 (parse_filename): New function.
2547 * filemanip.h (fileparse): New structure.
2548 * mount.cc (read_mounts): Remember where we found the root mount.
2549 (set_root_dir): New function.
2550 (get_root_dir): Ditto.
2551 * mount.h: Declare new functions.
2552 * site.cc (get_root_dir_now): Renamed from get_root_dir.
2553 (save_site_url): Use new function name.
2554 (get_initial_list_idx): Ditto.
2556 Sat May 26 21:23:59 2001 Christopher Faylor <cgf@cygnus.com>
2558 * choose.cc: Use a constant throughout to deal with chooser icon
2560 * res.rc (IDD_CHOOSE): Increase size of chooser box.
2562 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
2564 * choose.cc (do_choose): Fix incorrect assignment of trust setting to
2565 use when Redownload or Sources Only selected.
2567 Thu May 10 22:35:59 2001 Christopher Faylor <cgf@cygnus.com>
2569 Reformat file after botched patch formatting.
2570 * choose.cc (which_trust): Eliminate variable.
2571 (default_trust): Don't set which_trust.
2572 (do_choose): Use selected trust when reinstalling or installing source.
2574 Thu May 10 21:04:18 2001 Christopher Faylor <cgf@cygnus.com>
2576 Change concat to cygpath throughout.
2577 Change map_filename to cygpath throughout.
2578 * concat.cc (vconcat): New function.
2579 (concat): Use vconcat.
2580 * concat.h: Reflect above.
2581 * install.cc (map_filename): Eliminate.
2582 (install_one): Free dest_file.
2583 * mount.cc (find2): Expect input key to be pointing to mount record.
2584 (in_table): New function.
2585 (is_admin): Move from root.cc.
2586 (read_mounts): New function.
2587 (path_prefix_p): New function.
2588 (cygpath): New function.
2589 * mount.h: Define new functions and structure.
2590 * root.cc (in_table): Move to mount.cc.
2591 (do_root): Call read_mounts to initialize root stuff and mount table.
2592 * site.cc (get_root_dir): Ditto.
2594 2001-05-09 Matt Hargett <matt@use.net>
2596 * Makefile.in: Remove *.rc from clean.
2598 Tue May 8 23:33:38 2001 Christopher Faylor <cgf@cygnus.com>
2600 * choose.cc (scan2): Fix incorrect setting of TRUST_CURR rather than
2601 TRUST_PREV which produced "0" versions.
2603 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
2605 * resource.h: Add new field IDC_CHOOSE_INST_TEXT. Modify
2606 _APS_NEXT_CONTROL_VALUE to account for addition of
2607 IDC_CHOOSE_INST_TEXT.
2608 * res.rc (IDD_CHOOSE): Modify choose dialog to use new field
2609 IDC_CHOOSE_INST_TEXT for screen text. Modify choose Dialog to allow
2610 hot keys to select Prev, Curr, Exp.
2611 * ini.h: Add new actions for ACTION_REDO and ACTION_SRC_ONLY. Modify
2612 define for LOOP_PACKAGES to include new actions ACTION_REDO and
2614 * choose.cc: Add new Trusts for TRUST_REDO and TRUST_SRC_ONLY.
2615 (paint): Modify to check TRUST_SRC_ONLY when determining Bitmap for
2616 source Checkbox to use.
2617 (build_labels): Add logic to allow for selection of Source only
2618 Download/ReDownload/Install/Reinstall and also to Redownload/Reinstall
2619 current version binary.
2620 (dialog_proc): Add conditional display for file selection prompt based
2621 on download vs install using IDC_CHOOSE_INST_TEXT.
2622 (do_choose): Add new logic for TRUST_REDO and TRUST_SRC_ONLY selection
2623 and modify logic for TRUST_UNINSTALL, TRUST_KEEP, and TRUST_NONE to
2624 handle the instance where Source Download/Install was selected. Modify
2625 log file to store appropriate information regarding Action selected and
2626 the new actions that were added (I.E.: ACTION_REDO and
2628 * download.cc: Add include for <unistd.h> and "port.h".
2629 (download_one): Modify parameter list to include the selected action
2630 for the file to be downloaded. Modify size check against expected size
2631 to include check for ACTION_REDO and ACTION_SRC_ONLY. Modify rename of
2632 .tmp file to also remove the destination file if exists due to ability
2633 to redownload source and binary now.
2634 (do_download): Modify to also use ACTION_REDO and ACTION_SRC_ONLY in
2635 calculation of Download Bytes. Modify to also use ACTION_REDO and
2636 ACTION_SRC_ONLY in determining files selected for download.
2637 * install.cc (uninstall_one): Add check to treat a Reinstall like an
2638 upgrade so current version will be uninstalled prior to reinstall.
2639 (do_install): Add logic to handle ACTION_REDO and ACTION_SRC_ONLY for
2640 uninstalling and installing binary and source packages.
2641 * desktop.cc (make_passwd_group): Modify logic to account for a Source
2642 only cygwin install when checking for cygwin to determine need for
2643 mkpasswd and mkgroup.
2645 Mon May 7 23:33:30 2001 Matt Hargett <matt@use.net>
2647 * winsup/cinstall/res.rc: Added accelerators and improved focus order.
2648 Removed WS_DISABLED from "OK" buttons to accomodate default focus
2649 changes in net.cc and source.cc.
2650 * winsup/cinstall/net.cc (dialog_proc): If no radio button is selected,
2651 a default is selected.
2652 * winsup/cinstall/source.cc (dialog_proc): Ditto.
2653 (check_if_enable_next): Removed. No longer needed since a radio button
2654 will always be selected.
2655 (load_dialog): Removed call to check_if_enable_next.
2656 (dialog_cmd): Ditto. Also added default to switch.
2658 Tue Apr 24 23:42:02 2001 Christopher Faylor <cgf@cygnus.com>
2660 * res.rc: Resize affected text.
2662 Tue Apr 24 23:35:31 2001 Christopher Faylor <cgf@cygnus.com>
2664 * net.cc (do_net): Default to direct download.
2665 * res.rc: Move default selections to the top.
2667 2001-04-18 Earnie Boyd <earnie@users.sourceforge.net>
2669 * win32.h: Remove the definitions for _UNION_NAME and _STRUCT_NAME.
2670 Must now include <windows.h> and not the pieces.
2671 * choose.cc (create_listview): Clean up type mismatch problems.
2672 * dialog.h (NEXT(id)): Ditto.
2673 * geturl.cc (dialog): Ditto.
2674 * install.cc (dialog): Ditto.
2675 * splash.cc (load_dialog): Ditto.
2677 Wed Apr 18 18:59:21 2001 Christopher Faylor <cgf@cygnus.com>
2679 * tar.cc (class gzbz): Define dummy virtual functions.
2681 Wed Apr 18 16:01:21 2001 Christopher Faylor <cgf@cygnus.com>
2683 * Makefile.in: Add bz2 include/library support.
2684 * filemanip.h: New file.
2685 * choose.cc (find_tar_ext): New function. Returns TRUE if .tar.gz or
2687 (scan2): Reorganize to use find_tar_ext, accomodating .bz2 extension.
2688 (read_installed_db): Ditto.
2690 * fromcwd.cc (found_file): Ditto.
2691 (do_fromcwd): Ditto.
2692 * tar.cc (class gzbz): New super class for uncompression support.
2693 (gz): New class for gzip support.
2694 (bz): New class for bzip2 support.
2695 (tar_open): Use gzbz class to control file opening.
2696 (tar_ftell): Ditto for returning position in file.
2697 (skip_file): Ditto for reading file.
2698 (tar_next_file): Ditto.
2699 (tar_read_file): Ditto.
2700 (tar_close): Ditto for close.
2702 * zlib/configure.in: Force NM substitution.
2704 * source.cc (do_source): Default to "Install from Internet".
2706 2001-03-16 Brian Keener <bkeener@thesoftwaresource.com>
2708 * nio-file.cc (NetIO_File::NetIO_File): Use `get_file_size' instead of
2710 * choose.cc (list_click): Correct inability to select source code for
2712 (scan2): Modify to skip source tarballs when scanning disk for
2713 installable packages.
2715 2001-03-10 Chris Abbey <chris_abbey@yahoo.com>
2717 * install.cc: install sources into /usr/src instead
2718 of /, also include the sizes of source tarballs
2720 * download.cc: include sizes of source tarballs in
2721 total_download_bytes.
2723 Tue Mar 6 19:31:00 2000 Corinna Vinschen <corinna@vinschen.com>
2725 * download.cc (get_file_size): Remove `static'.
2727 Tue Mar 6 19:11:00 2000 Corinna Vinschen <corinna@vinschen.com>
2729 * tar.cc (tar_open): Use `get_file_size' instead of `stat'.
2731 2001-03-06 Brian Keener <bkeener@thesoftwaresource.com>
2733 * choose.cc (paint): Modify message for nothing to download vs
2734 nothing to install/update based on installation method.
2735 (list_click): Modify to skip versions in selection process if
2736 installing from local directory and installation file does not exist.
2737 Also leaves Source Action set to N/A if the source file does not exist
2738 and installing from local directory.
2739 (check_existence): New method to check current existence of installation
2740 files based on selected installation method.
2741 (set_existence): New method to set the current existence of installation
2742 files based on selected installation method.
2743 (best_trust): Modify decision process for best trust to base decision on
2744 current trust selected (IE: Prev, Curr, or Test), existence of file and
2745 installation method selected.
2746 (default_trust): Add logic to capture the current trust level and the
2747 trust selected for the given package.
2748 (set_full_list): Expand decision criteria for displaying a package in
2749 the selection list to include file existence/non-existence and selected
2750 installation method.
2751 (build_labels): Modify criteria for label addition to include
2752 installation method and file existence/non-existence.
2753 (create_listview): Modify to establish package trust level for each
2754 package before setting up the display list. Also modification to set
2755 current trust button as the default.
2756 (dialog_cmd): Set response for Prev, Curr, Test button push to perform
2757 a reset of the selection list in addition to setting the default trust.
2758 (get_package_version): New method to provide reusable code for
2759 determining the package version from the file name for a specified
2761 (scan2): Modify to use new method get_package_version and
2762 also enhance handling of the build for the structures package and
2764 (read_installed_db): Modify to use the new method
2765 get_package_version and also enhance handling of the build for the
2766 structures package and extra.
2767 (do_choose): Add additional initialization of package and extra
2768 structures. Modify to use read_installed_db all the time despite
2769 install method. Modify output to setup.log.full log file to increase
2770 readability by adding additional spacing, expanded code and available
2772 * ini.h: Add new fields install_exists, source_exists and
2773 partial_list_display to the structure definition for package.
2774 * res.rc (IDD_CHOOSE): Modify choose dialog Prev, Curr, and Test
2775 pushbuttons by replacing with Radio Buttons thus allowing the
2776 operator to better determine which is selected.
2778 2001-02-20 Brian Keener <bkeener@thesoftwaresource.com>
2780 * download.cc (do_download): Add new variables total_download_bytes and
2781 total_download_bytes_sofar for download progress meter. Add loop
2782 to accumulate the total bytes to download from the selected packages.
2783 * geturl.cc: Add state.h and diskfull.h to include list. Add new
2784 variables gw_iprogress, gw_pprogress, gw_progress_text,
2785 gw_pprogress_text, and gw_iprogress_text to allow for addition of
2786 total packages download progress meter and disk full percent
2787 progress meter. Add variables total_download_bytes and
2788 total_download_bytes_sofar for use by progress meters.
2789 (dialog_proc): Add new variables gw_iprogress, gw_pprogress,
2790 gw_progress_text, gw_pprogress_text, and gw_iprogress_text to
2791 allow for addition of total packages download progress meter and disk
2792 full percent progress meter.
2793 (init_dialog): Ditto.
2795 (get_url_to_file): Ditto.
2796 * geturl.h: Add external definition for total_download_bytes and
2797 total_download_bytes_sofar.
2798 * res.rc: Add two additional progress meters (IDC_DLS_IPROGRESS)
2799 and (IDC_DLS_PPROGRESS) and three text objects (IDC_DLS_PROGRESS_TEXT)
2800 and (IDC_DLS_IPROGRESS_TEXT, IDC_DLS_PPROGRESS_TEXT) for use in the
2802 * resource.h: Add new fields for progress meters and text and update
2803 _APS_NEXT_CONTROL_VALUE.
2805 Wed Feb 21 13:05:00 2000 Corinna Vinschen <vinschen@redhat.com>
2807 * download.cc (get_file_size): Check for INVALID_HANDLE_VALUE instead
2810 Wed Feb 21 11:21:00 2000 Corinna Vinschen <vinschen@redhat.com>
2812 * download.cc (download_one): Add missing parenthesis.
2814 Mon Feb 19 18:59:00 2000 Corinna Vinschen <vinschen@redhat.com>
2816 * download.cc (get_file_size): New function. Eliminates the need
2818 (download_one): Call `get_file_size' instead of `stat'. This
2819 workarounds a problem with mingw's `stat' call.
2821 2001-02-07 Earnie Boyd <earnie@users.sourceforge.net>
2823 * Makefile.in: (%.o: %.rc): Specify --include-dir $(w32api_include).
2824 This is to allow cinstall to build with 2.95.2-7 and to make the
2825 use of headers consistent.
2827 2000-12-26 Earnie Boyd <earnie_boyd@yahoo.com>
2829 * Makefile.in (autoload.o): Add target to specify -fno-inline-functions
2831 Tue Dec 26 03:46:00 2000 Matt Hargett <matt@use.net>
2833 * winsup/cinstall/res.rc: Added accelerators and improved focus
2836 2000-12-10 Egor Duda <deo@logos-m.ru>
2838 * choose.cc (paint): Use system background color for text output.
2840 Sun Dec 10 19:05:25 2000 Christopher Faylor <cgf@cygnus.com>
2842 * Makefile.in: Use CXX for linking and for compiling .cc files.
2843 * configure.in: Find correct c++ compiler.
2844 * configure: Regenerate.
2846 2000-11-17 DJ Delorie <dj@redhat.com>
2848 * splash.cc (load_dialog): Make message more obvious.
2851 Fri Nov 17 17:15:21 2000 Christopher Faylor <cgf@cygnus.com>
2853 * Makefile.in: Use g++ to link so that libstdc++.a gets used. This is
2854 necessary for newer compilers.
2856 Wed Nov 9 2:19:00 2000 Corinna Vinschen <vinschen@redhat.com>
2858 * desktop.cc: Include "ini.h" and "version.h".
2859 (make_passwd_group): Skip the function on 9x/ME boxes when an
2860 older version of Cygwin has been installed which doesn't
2861 support mkpasswd/mkgroup on 9x/ME.
2862 * install.cc: Move the `LOOP_PACKAGES' and `pi' macros to...
2865 Wed Nov 8 17:10:00 2000 Corinna Vinschen <vinschen@redhat.com>
2867 * desktop.cc (make_passwd_group): Don't exit when started
2868 on 9x/ME since mkpasswd/mkgroup are usable on 9x/ME now.
2870 Sun Nov 5 12:51:42 2000 Jason Tishler <jt@dothill.com>
2872 * install.cc (do_install): Add call to set_cygdrive_flags to sync
2874 * mount.cc (set_cygdrive_flags): New function.
2875 (get_cygdrive_flags): Ditto.
2876 (default_cygdrive): Ditto.
2877 (set_cygdrive_flags): Ditto.
2878 * mount.h: Add prototype for set_cygdrive_flags.
2880 2000-10-23 DJ Delorie <dj@redhat.com>
2882 * ini.h: add source actions
2883 * fromcwd.cc: check for available sources
2884 * res.rc: add checkbox bitmaps
2887 * choose.cc: add source column
2888 * download.cc: download sources if called for
2889 * install.cc: [un]install sources too
2891 2000-10-22 DJ Delorie <dj@redhat.com>
2893 * choose.cc (build_labels): Don't skip TRUST_PREV completely; only
2894 ignore it wrt full_list if there's already a version installed.
2895 (do_choose): Sort the list.
2896 (package_sort): New.
2898 2000-10-12 DJ Delorie <dj@redhat.com>
2900 * res.rc: Add more error strings.
2901 * resource.h: Ditto.
2902 * iniparse.y (new_package): re-initialize if needed.
2903 * download.cc (do_download): Keep track of errors; notify and
2905 * install.cc (do_install): Ditto.
2907 2000-10-05 DJ Delorie <dj@redhat.com>
2909 * Makefile.in: fix %.cc rule
2911 2000-10-04 DJ Delorie <dj@redhat.com>
2913 * desktop.cc: quote HOME and USER, don't . ./.profile
2915 * choose.cc (build_labels): don't include in partial list just
2916 because there's a *previous* version available.
2918 * install.cc (do_install): if installing from local directory with
2919 setup.ini and the file isn't found, look in "." also. Note errors.
2921 2000-10-02 DJ Delorie <dj@redhat.com>
2923 * ini.cc (do_ini): save setup.ini locally
2925 2000-10-02 Chris Abbey <cabbey@bresnanlink.net>
2927 * desktop.cc: quote escapes in prompt
2929 2000-10-02 Jason Tishler <jt@dothill.com>
2931 * root.cc (is_admin): New function.
2932 (read_mount_table): Check for administrative priviledges and set
2933 installation scope as appropriate.
2935 2000-09-28 DJ Delorie <dj@redhat.com>
2937 * nio-ftp.cc (ftp_line): handle continuations more robustly
2939 2000-09-14 Brian Keener <bkeener@thesoftwaresource.com>
2941 * res.rc: increased the size of the site dialog (IDD_SITE) & the
2942 corresponding list box to provide for more URL's to be listed.
2943 Modified the position of the Back, Next and Cancel buttons to
2944 correspond to the new size of the dialog.
2946 2000-09-13 DJ Delorie <dj@redhat.com>
2948 * install.cc (do_install): update disk fullness once per package
2949 to improve performance
2951 * choose.cc (create_listview): call ReleaseDC
2953 Mon Sep 11 22:40 2000 Harold L Hunt II <harold@compasstechnologies.com>
2955 * mkdir.cc: Create directories when ERROR_FILE_NOT_FOUND is
2956 returned, as it seems Samba 2.0.6+ returns this instead of
2957 ERROR_PATH_NOT_FOUND
2959 Mon Sep 11 19:35:24 2000 Christopher Faylor <cgf@cygnus.com>
2961 * site.cc (get_initial_list_idx): Don't default to saved URL if it
2964 2000-09-07 DJ Delorie <dj@redhat.com>
2966 * splash.cc: use version.h, not local decl
2967 * res.rc: add "old version" message
2970 * fromcwd.cc (canonicalize_version): make global
2971 * iniparse.y: add setup-version support, fix bug in blank line
2974 * inilex.l: add [exp] as alias for [test], add setup-version
2975 * Makefile.in (version.c): add setup-version tag
2977 * desktop.cc (do_desktop): remove 1.1 version number
2978 (do_desktop_setup): ditto
2980 * ini.cc (do_ini): zero out package list just in case we redo it.
2982 2000-09-07 Jeffrey Juliano <juliano@cs.unc.edu>
2984 * choose.cc (list_click): Check for nindexes==0; if so, return.
2986 2000-09-06 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
2988 * localdir.cc: new, local package directory selection dialog; cd
2989 into selected directory
2990 * Makefile.in (OBJS): add localdir.o
2991 * dialog.h: add prototype for do_local_dir
2992 * main.cc (WinMain): initialize local_dir to cwd; add call to
2994 * net.cc (dialog_cmd): make DO_LOCAL_DIR next dialog
2995 * source.cc (dialog_cmd): ditto
2996 * res.rc: add DO_LOCAL_DIR dialog; remove "current directory" from
2997 presented choices in IDD_SOURCE; add IDS_ERR_CHDIR error string
2998 * resource.h: defines for DO_LOCAL_DIR dialog; define IDS_ERR_CHDIR
2999 * root.cc (dialog_cmd): make DO_LOCAL_DIR previous dialog
3000 * state.h: add local_dir variable
3002 2000-09-06 Brian Keener <bkeener@thesoftwaresource.com>
3004 * desktop.cc: added logic to handle to the new dialog and to
3005 default the setting for the new checkboxes based on whether the
3006 desktop icon or start menu link already exist.
3007 (desktop_icon): correction to desktop directories for desktop icon
3008 creation. Additional logic added for Win95 which does not appear
3009 to have Common Directories so if Common selected and null uses
3011 (start_menu): Additional logic added for Win95 which does not
3012 appear to have Common Directories so if Common selected and null
3013 uses normal directory.
3014 (do_desktop_setup): moved the saving of the icon, creation of the
3015 bat file, profile, passwd, Start Menu link and desktop shortcut to
3016 this method from do_desktop. Made the creation of the desktop
3017 icon and start menu link conditional on settings of new dialog
3018 created for desktop.
3019 * install.cc (do_install): changed next from IDD_S_DESKTOP to
3021 * main.cc (WinMain): changed case IDD_S_DESKTOP to IDD_DESKTOP.
3022 * res.rc: added new resource to create a desktop dialog with 2
3023 checkboxes for creating the desktop icon and start menu link.
3024 * resource.h: changed IDD_S_DESKTOP to IDD_DESKTOP and added two
3025 new controls: IDC_ROOT_MENU and IDC_ROOT_DESKTOP for new dialog.
3026 * state.h: added root_menu and root_desktop for use in dialog.
3028 2000-08-29 DJ Delorie <dj@redhat.com>
3030 * choose.cc (scan_downloaded_files): scan for existing files, so
3031 that the user only sees new downloads.
3033 * nio-ie5.cc (NetIO_IE5): pre-check for wininet.dll, enable dial-up
3034 * site.cc (do_site): if we can't download the mirror list, go back
3035 to the net setup box to choose another transport.
3036 * autoload.c: add more functions
3037 * Makefile.in (ALL_DEP_LDLIBS): remove wininet.a
3038 * resource.h: add WININET message
3040 * net.cc (do_net): no longer default to IE5
3041 * simpsock.h (class SimpleSocket): new, simplify socket operations
3042 * simpsock.cc: ditto
3043 * nio-http.h: new, for direct http protocol
3044 * nio-http.cc: ditto
3045 * nio-ftp.h: new, for direct http protocol
3047 * netio.cc (set_url): move initialization here to handle redirections
3048 (open): add direct http/ftp
3049 * netio.h (NetIO::set_url): new
3051 * log.cc (log_save): create directory for log if needed
3053 * hash.cc, hash.h: new
3054 * Makefile: add hash.o
3055 * choose.cc: enable "uninstall" option
3056 * download.cc: invert action test to accomodate uninstalling
3057 * ini.h: add ACTION_UNINSTALL
3058 * install.cc: add uninstall functionality
3059 * res.rc: make install tag changeable
3060 * resource.h: add uninstall resources
3062 * res.rc: update mirror list URL
3064 2000-08-24 DJ Delorie <dj@redhat.com>
3066 * log.cc, log.h: new files
3067 * Makefile.in (OBJS): add log.o
3068 * tar.cc: use exit_setup instead of exit
3069 * dialog.cc (fatal): use exit_setup instead of ExitProcess
3070 * msg.cc (fatal): ditto
3071 * install.cc (dialog_cmd): ditto
3072 * ini.cc (do_ini): ditto
3073 * main.cc (main): add logging
3074 * source.cc (do_source): ditto
3075 * root.cc (do_source): ditto
3076 * site.cc (do_site): ditto
3077 * other.cc (do_other): ditto
3078 * net.cc (do_net): ditto
3079 * choose.cc (do_choose): ditto
3080 * download.cc (do_download): ditto
3081 * install.cc (do_install): ditto
3082 * msg.cc (fatal): ditto
3084 * res.rc: mark password boxes as *being* password boxes.
3086 * fromcwd.cc (canonicalize_version): use multiple buffers so that multiple
3087 calls won't use the same buffer.
3088 * choose.cc (create_listview): don't default to full list if no changes
3089 (base): return computed value, not temporary :-(
3090 (do_choose): don't use installed.db if we're only downloading.
3092 2000-08-23 DJ Delorie <dj@redhat.com>
3094 * nio-ie5.cc (NetIO_IE5): Fix authentication logic
3095 * nio-ie5.h (flush_io): new
3096 * netio.cc (load_dialog): note when we're initializing the dialog
3097 box, and ignore changes to the edit fields then.
3099 2000-08-21 DJ Delorie <dj@redhat.com>
3103 * fromcwd.cc (found_file): don't remember the canonicalized version
3105 * choose.cc (paint): print "nothing to do" message when list is empty.
3106 (build_labels): Use version "0.0" if no version is available.
3107 (create_listview): default to full list if nothing to install/update.
3108 (base): new, returns basename of file
3109 (read_installed_db): compare base names, not full paths
3111 2000-08-11 DJ Delorie <dj@redhat.com>
3113 * choose.cc: add new chooser dialog
3114 * fromcwd.cc: use IDD_CHOOSE
3115 * ini.cc: use IDD_CHOOSE
3116 * main.cc: use IDD_CHOOSE
3117 * ini.h: cosmetic changes
3118 * res.rc: add choose dialog, bitmaps
3119 * choose-spin.bmp: new
3120 * choose-rtarrow.bmp: new
3121 * resource.h: add choose dialog controls
3123 * mount.cc: remove debug statement
3125 2000-08-08 DJ Delorie <dj@redhat.com>
3127 * Makefile.in (version.c): make version checking more robust
3128 * splash.cc (load_dialog): handle case where there's no version
3130 2000-08-07 DJ Delorie <dj@redhat.com>
3132 * (all): add cvsid tags
3133 * Makefile.in: generate version.c from ChangeLog, add splash.o
3135 * res.rc: add splash screen
3137 2000-08-02 DJ Delorie <dj@redhat.com>
3139 * net.cc: remove proxy password code
3140 * res.rc: remove proxy user/pass from net, add auth dialogs
3141 * netio.cc,h: add sys/proxy auth methods
3142 * nio-ie5: use them, check for http status codes
3143 * state.h: add system authorization
3145 * concat.cc (concat): canonicalize x:// to x:/ (exception to ://
3148 2000-08-02 Norman Vine <nhv@yahoo,com>
3150 * msg.cc (mbox): added MB_TOPMOST to MessageBox type flags
3152 2000-08-01 DJ Delorie <dj@redhat.com>
3154 * postinstall.cc (each): don't rename files we ignore
3155 (do_postinstall): set CYGWINROOT to root_dir, chdir there
3157 * desktop.cc: have /etc/profile call ~/.profile and ~/.bashrc
3159 2000-07-31 DJ Delorie <dj@redhat.com>
3161 * desktop.cc: reverse PATH so /usr/bin precedes /bin
3163 2000-07-18 DJ Delorie <dj@redhat.com>
3165 * autoload.c: new, autoload dlls that might not be available.
3166 * Makefile.in (OBJS): add autoload.o
3168 * res.rc: rewrite root options (text/binary, system/user) to be
3171 * site.cc (get_site_list): trim displayed URL, sort by domain
3173 * net.cc (do_net): make IE5 default to checked, for now
3175 * choose.cc (do_choose): sort packages correctly
3176 * ini.cc (do_ini): handle parse errors more gracefully
3178 (fprintf): line buffer output
3179 (do_ini): if we can't load setup.ini, go back to the site list.
3180 * ini.h: add "unknown" trust level
3181 * inilex.l: absorb unknown trust levels and key/value pairs,
3182 add line number logic
3183 * iniparse.y: handle parse errors more gracefully.
3184 * install.cc: skip packages with no valid install entry
3186 2000-07-17 DJ Delorie <dj@cygnus.com>
3188 * coding standards fixups, many files
3189 * mkdir.cc: warn about deletions *before* deleting them
3191 2000-07-17 Jeff Juliano <juliano@cs.unc.edu>
3193 * res.rc (IDD_OTHER_URL): reorder to give default focus to entry
3195 * other.cc (dialog_cmd): save download site URL
3196 * site.cc (get_root_dir): new
3197 (save_mirror_site): new
3198 (dialog_cmd): save download site URL
3199 (get_site_list): make list big enough to add prev site
3200 (get_initial_list_idx): new, read last-used URL from file and
3201 append it to site_list
3202 (do_site): call get_initial_list_idx
3204 * concat.cc (concat): avoid segfault when first parm is null
3206 2000-07-13 DJ Delorie <dj@cygnus.com>
3208 * postinstall.cc: new
3209 * Makefile.in: add postinstall.o
3210 * concat.h: add backslash ()
3212 * desktop.cc (etc_profile): don't do postinstall
3213 (backslash): moved to concat.cc
3215 (make_postinstall_script): run directly
3216 (do_desktop): chain to do_postinstall
3217 * dialog.h: add exit_msg, do_postinstall
3218 * download.cc: use exit_msg
3220 * main.cc: add postinstall, exit_msg
3221 * resource.h: add postinstall
3222 * README: add more to-do items
3224 2000-07-12 DJ Delorie <dj@cygnus.com>
3226 * desktop.cc: add /etc/postinstall/ support
3227 * install.cc: add more "standard" directories
3229 2000-07-11 DJ Delorie <dj@cygnus.com>
3231 * desktop.cc: create /etc/profile
3232 * desktop.cc: fix include syntax
3233 * Makefile.in: add auto-dependencies
3234 * root.cc: support system vs user
3242 * desktop.cc: make sure we use backslashes, not slashes.
3243 * desktop.cc: don't set PATH in cygwin.bat, create /etc/passwd
3244 * geturl.cc: change math for percentage to avoid overflow
3246 * download.cc: post "download complete" message.
3247 * root.cc: pre-fill in defaults if needed, don't start
3248 browse at root_dir unless it's set.
3249 * desktop.cc: quote $PATH in case it has spaces in it
3251 2000-07-10 DJ Delorie <dj@cygnus.com>
3253 * Makefile.in: add desktop.o and mklink2.o
3254 * dialog.h: add do_desktop
3255 * install.cc: create standard directories, call do_desktop
3256 * res.rc: add cygwin.ico as a file also
3257 * desktop.cc: new, do shortcuts, batch files, and icons
3258 * mklink2.c: new, for COM
3259 * README: update to-do list
3261 2000-07-10 DJ Delorie <dj@cygnus.com>
3263 * ini.cc (do_ini): don't worry about timestamps if we're not
3264 actually installing.
3266 2000-07-09 DJ Delorie <dj@cygnus.com>
3268 * Makefile.in: add -I$(srcdir) for ini.h
3270 2000-07-06 DJ Delorie <dj@cygnus.com>
3272 * Replace everything with a new GUI version
3273 * zlib/gzio.c: add gzctell() for progress displays
3275 2000-06-22 DJ Delorie <dj@cygnus.com>
3277 * setup.c (tarx): re-add call to write_pkg()
3279 2000-06-07 DJ Delorie <dj@cygnus.com>
3281 * cygcalls.c: new, call cygwin1.dll functions directly
3282 * cygcalls.h: header for same
3283 * Makefile.in: add cygcalls.[ch], remove mount/cygpath/umount
3284 exes, fix cinstall.rc dependencies.
3285 * path.c: remove unneeded code
3286 * setup.c: use cygcalls instead of xcreate_process.
3287 uncompress embedded files with zlib
3288 add "-d" for "download only"
3290 postpone mount changes until very end
3291 add download progress indicators
3292 pack multi-column listings more
3293 auto-delete temp files
3294 customize banner message according to options
3295 prompt user for text/binary mounts
3296 add warnings about empty setup directory, root installs, etc
3298 2000-05-24 DJ Delorie <dj@cygnus.com>
3300 * tar.c: New file; built-in tar using zlib.
3301 * tar.h: New file; header for same.
3302 * ctar.c: New file; test program for same.
3303 * Makefile.in: add built-in tar, remove tar.exe and gzip.exe
3304 * path.c (pathcat): convert slashes and canonicalize, instead of aborting
3305 * setup.c (tarx): add support for built-in tar
3306 (main): accept unix-style slashes, check root dir for drive letters,
3307 warn about installing in /, make sure cwd is empty for internet installs,
3308 defer mounts to end of install, support built-in tar.
3310 Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
3312 Fix compiler warnings throughout.
3313 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
3315 * setup.c: Make 'root' global.
3316 (istargz): Return pointer to "stem" of matched .tar.gz file.
3317 (tarx): Special case cygwin-20000301 to == cygwin-1.1.0.tar.gz. Remove
3318 bogus check_for_installed check.
3319 (recurse_dirs): Add preliminary support for .bat file execution.
3320 (create_uninstall): Eliminate unneeded parameter.
3321 (do_start_menu): Ditto.
3323 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
3324 scanning for the version number. Eliminate unneeded argument to
3326 (getdownloadsource): Add 'name' to list of names rather than url.
3327 (main): Eliminate unneeded argument in get_pkg_stuff. Eliminate
3328 unneeded argument in mkmount and do_start_menu.
3330 2000-05-18 DJ Delorie <dj@cygnus.com>
3332 * setup.c (optionprompt): allow multi-column, clean up message
3333 about more options, be more robust about user input.
3334 (getdownloadsource): make the mirror URL a macro.
3335 (main): do mounts after done prompting user.
3337 Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
3339 * setup.c (cleanup): Inverse order of deletion stands a better chance
3340 of deleting cygpath.exe. Still seems to suffer from occasional races,
3342 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
3344 (output_file): Defend against an unlikely handle leak.
3345 (main): Don't set up signal handling until we have something special to
3348 Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
3350 * path.c (kill_cygpath): Delete function.
3351 (exit_cygpath): Make more defensive so that it can be called at any
3353 (cygpath_pipe): Don't set up signal here. Do it in main().
3354 * setup.c (istargz): New function.
3355 (recurse_dirs): Look for *.gz pattern rather than *tar.gz since *tar.gz
3356 inexplicably fails on samba mounted partitions. Use istargz to match
3358 (processdirlisting) Use istargz to match tar.gz tail.
3359 (cleanup): Renamed from filedel.
3360 (cleanup_on_signal): New function. Called on CTRL-C.
3361 (main): Record handle of main thread so that it can be suspended when
3362 CTRL-C occurs. Set up cleanup_on_signal signal handler.
3364 Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
3366 * setup.c (do_start_menu): Don't concatenate paths to already built
3369 Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
3371 * path.c (exit_cygpath): Wait for subprocess to exit before returning.
3372 (cygpath_pipe): Don't call exit_cygpath. Let main atexit routine do
3374 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
3376 * setup.c (filedel): Call exit_cygpath here so that we can be assured
3377 that cygpath subprocess has died. This allows us to delete cygpath.exe
3379 (optionprompt): Initialize response to -1 so that second screen of
3380 mirrors will appear.
3381 (get_pkg_stuff): Don't attempt to use HKCLU. Pass root to init_pkgs.
3382 * setup.h: Reflect init_pkgs prototype change.
3384 Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
3386 * pkg.c (init_pkgs): Accept an argument to control what root registry
3388 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
3389 * setup.h: Reflect init_pkgs prototype change.
3391 Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
3393 * error.c (winerror): Respond to gcc warning.
3394 * path.c (cygpath_pipe): Ditto.
3395 * setup.c (filedel): Call sa_cleanup on deleteme.
3396 (create_shortcut): Coerce argument to eliminate compiler warning.
3397 (tarx): Use installed version of cygwin1.dll, overriding tar file name.
3398 (refmatches): New function. Tests if ref is contained in a list of
3399 packages to install.
3400 (filematches): New function. Tests if filename matches one of a list
3401 of packages to install.
3402 (recurse_dirs): Accept list of packages to install. Generalize tar.gz
3403 test to accomodate _tar.gz.
3404 (prompt): Ensure that stdout is flushed prior to asking for input.
3405 (findhref): Initialize variables to quiet a compiler warning.
3406 (processdirlisting): Accept list of packages to install. Special case
3407 cygwin tar file version number.
3408 (downloaddir): Accept list of packages to install.
3409 (downloadfrom): Ditto.
3410 (create_uninstall): Eliminate unneeded variables. Quote arguments to
3412 (do_start_menu): Don't create uninstall bat file if updating or user
3413 specified a list of packages.
3414 (mkmount): Eliminate unneeded variables.
3415 (get_pkg_stuff): New function. Checks for previous unversioned
3417 (main): Accept -u and -f options and package names on the command line.
3418 Use get_pkg_stuff to initialize package information. Umount /etc.
3419 Call recurse_dirs and downloadfrom with list of package to install.
3420 Ensure that all /usr/local directories are created. Output
3421 installation time to setup.log.
3422 * setup.h: Add some prototypes.
3423 * xsystem.c (xcreate_process): Eliminate unneeded variable.
3425 Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
3427 * setup.c (optionprompt): Don't overlap display of already seen options
3429 (geturl): Print name of site which we're connecting to rather than "ftp
3431 (processdirlisting): Avoid URLs that contain a /. or ./ . Is this
3432 test too simplistic?
3433 (do_start_menu): Use pathcat to build path to <root>\bin to avoid
3434 problems when user chooses x:\ as their root.
3435 (main): For now, default to "non-update" mode. Allow -u option to
3438 Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
3441 * setup.c (tarx): Skip already installed or older packages. Report
3442 when a package has been updated.
3443 (processdirlisting): Skip already installed or older packages.
3444 (main): Detect -f option for forced installation. Initialize pkg stuff
3446 * setup.h: Add pkg definitions.
3448 Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
3450 * setup.c (findhref): Return NULL on empty string. Eat any trailing
3452 (processdirlisting): Attempt to limit recursively processing the same
3455 Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
3457 * setup.c (filedel): New function.
3458 (output_file): Keep track of files extracted from setup.exe for
3459 subsequent deletion.
3460 (tarx): Close process handle of child tar process or suffer handle
3462 (getdownloadsource): Close mirror file so that it can be unlinked.
3463 (processdirlisting): Return total number of files extracted.
3464 (main): Initialize array of files to delete. Ensure that files are
3465 closed on exit. Make the directory that setup.exe is started from ==
3466 the directory where temporary files are placed. Issue an error if no
3467 files were found to download.
3468 * xsystem.c (xcreate_process): Close the thread handle. Close the
3469 process handle if we waited for it to exit.
3471 Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
3473 * setup.c (main): Change version number output.
3475 Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
3477 * setup.c (tarx): Use full path name to tar executable.
3478 (main): Build full pathname to tar executable. Create /usr/local/etc
3481 Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
3483 * setup.c (findhref): Change method for scanning for href= to choose
3484 the last one on the line. This is still not foolproof and probably
3485 will need to be changed eventually. Don't abort if no "size" field is
3487 (processdirlisting): Fix boolean algebra.
3489 Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
3491 * main.c (tarx): Add some code for future task of unmounting
3492 directories encountered in tar file.
3494 Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
3496 * setup.c (findhref): Decode file size, when appropriate.
3497 (needfile): New function. Returns 1 when file should be
3499 (processdirlisting): Always download if file size does not
3500 match. Prompt when download fails for some reason.
3501 (getdownloadsource): Accomodate findhref argument changes.
3503 Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
3505 Throughout, use global session handle rather than reinitializing for
3506 each connect. Don't pass session as an argument to setup.c functions.
3507 * setup.c (geturl): Only issue "Connecting to.." message when using
3508 http or first time for ftp since subsequent connections will be fast.
3509 (processdirlisting): Allocate space for "N" when user has specified
3510 "N"ever option so that it can be subsequently freed.
3511 (main): Abort if we can't get the list of mirrors.
3513 Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
3515 * setup.c (main): Umount /bin and /lib.
3517 Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
3519 * setup.c (main): Create an empty /var/run/utmp.
3521 Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
3523 * Makefile.in: Add umount to list of files to include in setup.exe.
3524 * setup.c (xumount): New function for unmounting directories.
3525 (main): Unmount /usr.
3526 (mkmount): Unmount "unix directory" before trying to figure out where
3527 to create the directory.
3529 Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
3531 * setup.c (mkmount): Use xcreate_process to start mount process,
3533 (main): Don't do buffering on stdout or prompts won't be displayed
3534 correctly if running in a cygwin shell with CYGWIN=tty.
3536 Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
3538 * setup.c (main): Remove the CYGWIN environment variable before
3539 starting any cygwin programs.
3541 Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
3543 * setup.c (geturl): Use alternative method for finding filename part of
3545 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
3546 (downloaddir): Unlink file containing dir listing.
3547 (downloadfrom): Ditto.
3549 Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
3551 * setup.c (main): Disallow running setup.exe from the "root".
3553 Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
3555 Use "warning" function, where appropriate, to output warnings.
3556 * setup.c (warning): New function -- outputs warning to console and log
3558 (tarx): Fix index used to reset file protection.
3559 (main): Open the log file earlier so that more stuff can be sent to it.
3561 Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
3563 * setup.c (processdirlisting): Make "N" option a little less aggressive.
3565 Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
3567 * setup.c (tarx): Wait to after tar has completed to reset protections
3568 or suffer races with tar process.
3570 Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
3572 * Makefile.in: Eliminate duplicate -nostdinc from CFLAGS.
3573 * setup.c (create_uninstall): Create the uninstall .bat file in the
3574 "root" so that we can remove the /bin directory. Add bin\cygwin.bat to
3575 list of files to be deleted. Fix directory detection for determining
3576 when to use 'rmdir'.
3577 (do_start_menu): Add /usr/local/bin to the path.
3578 (main): Add slop to files.array allocation so that we don't have to
3579 worry about reallocating the array when it grows too large when doing
3580 some trivial "pushes". Add /tmp and /usr/local/{bin,lib} to list of
3583 Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
3585 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
3588 Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
3590 * path.c (kill_cygpath): New cleanup function.
3591 (exit_cygpath): New cleanup function.
3592 (cygpath_pipe): New function. Sets up cygpath in the background for
3593 translating filenames.
3594 (pathcvt): Use background cygpath for file translation.
3595 * setup.c (tarx): New function. Called to extract tar files, capture
3596 logging output, and translate it to Windows format.
3597 (recurse_dirs): Use 'tarx' function to extract files.
3598 (create_uninstall): Use file list built up by tarx rather than reading
3600 (mkmount): Add ability to mount root.
3601 (main): Track elapsed install time. Mount root.
3602 * starry.h: Add index field to strarry for tracking of tarx's usage of
3604 * xsystem.c (xcreate_process): Return proces handle when not waiting.
3606 Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
3609 (pathfp): New function. Preliminary work for new -f cygpath
3611 * Makefile.in: Add new file.
3612 (pathcvt): Move to new file.
3616 * setup.c (processdirlisting): Always open file in text mode.
3617 (create_uninstall): Ditto.
3618 (getdownloadsource): Ditto.
3621 Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
3623 * xsystem.c: New file.
3624 * Makefile.in: Accomodate new file.
3625 * setup.c (xsystem): Move to new file.
3626 (recurse_dirs): Accept handle to output log file. Don't use ">"
3627 redirection to trap tar output. Use supplied handle instead.
3628 (create_uninstall): Accept FILE pointer to opened log file. Don't
3629 unlink log file here.
3630 (do_start_menu): Accept FILE pointer to pass to create_uninstall.
3631 (main): Open log file here and pass it to various functions. Unlink
3634 Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
3636 Change occurrences of .usr.bin to .bin throughout.
3637 * setup.c (geturl): Increase number of retries to 20. Let user know
3638 what's going on during long connects.
3639 (processdirlisting): Accept "A"lways and "N"ever as update options.
3640 (create_uninstall): Load cygwin1.dll from the current directory rather
3642 (main): Add some expository text.
3644 Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
3646 * Makefile.in: Change method for compressing cygwin1.dll to avoid
3647 creating a cygwin1.dll in the current directory. Ensure the addition
3648 of -nostdinc to MINGW_CFLAGS.
3650 Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
3652 * Makefile.in: Augment clean target.
3654 Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
3656 * README: Added info about non-working mingw implementation
3657 * gzip.exe.gz: Replace with a version from the same build as the other
3659 * tar.exe.gz: Replace with a version from the same build as the other
3661 * mount.exe.gz: Add to repository until, mingw can build setup.
3662 * cygpath.exe.gz: ditto
3663 * cygwin1.dll.gz: ditto
3664 * setup.c: Overwrite /bin and /lib mounts. Generate working shortcut
3665 for Win9x. Display only a screenfull of options at a time. Call all
3666 tools with an absolute path.
3667 * setup.dsp: Restore the carriage returns, MS Developer Studio needs
3672 Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
3674 * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab
3675 cygwin1.dll from ../cygwin subdirectory.
3676 * gzip.exe.gz: Update.
3677 * tar.exe.gz: Update.
3679 Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
3681 * Makefile.in: Use ZLIB variable as a target.
3683 Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
3685 * Makefile.in: Eliminate traces of cygwinisms. Don't link with
3686 libmsvcrt.a. It's unneeded. Build .rc file on the fly from various
3688 * configure.in: Locate correct objcopy.
3689 * configure: Regenerate.
3691 Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
3693 * Makefile.in: New file.
3694 * configure.in: New file.
3695 * configure: New file.
3696 * zlib/Makefile.am: New file.
3697 * zlib/configure.in: New file.
3698 * zlib/aclocal.m4: New file.
3699 * zlib/acinclude.m4: New file.
3700 * zlib/configure: Regenerate from configure.in.
3701 * zlib/Makefile.in: Regenerate from Makefile.am