1 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
3 * Makefile.in (OBJS): Add new object.
4 * PickCategoryLine.cc (PickCategoryLine::paint): Print a "+" before the name.
5 * PickCategoryLine.h (PickCategoryLine::bucket): Use the String class.
6 * PickLine.h (Pickline::key): Change to a String to help plug leaks.
7 (PickLine::Pickline): Accept a String for the key.
8 * PickPackageLine.cc (PickPackageLine::paint): Convert all char use to Strings.
9 * PickPackageLine.h (PickPackageLine::PickPackageLine): The key is automatically
11 * PickView.cc (PickView::note_width): Convert all char * use to Strings.
12 (PickView::init_header): Move category length checking out of the inner loop for
14 Convert all char use to Strings.
15 * PickView.h: Include the String++ header.
16 (PickView::note_width): Update the prototype.
17 * String++.cc: New file, implements a reference counting string class.
18 * String++.h: New file, declares a reference counting string class.
19 * archive.cc: Include String++ instead of concat.
20 (archive::extract_file): Convert char * usage to Strings.
21 * archive.h: Inlude the String++ header.
22 (archive::extract_file): Update prototype.
23 (archive::next_file_name): Convert to a String.
24 (archive::linktarget): Ditto.
25 * archive_tar.cc (archive_tar::next_file_name): Convert to String usage.
26 (archive_tar::linktarget): Ditto.
27 * arhive_tar.h: Update the copyright.
28 Explicitly include the relevant headers.
29 (tar_map_result_type): Convert to String usage.
30 (archive_tar::next_file_name): Update prototype.
31 (archive_tar::linktarget): Ditto.
32 * category.cc (Category::Category): Update initialisers.
33 Convert to String usage.
34 (Categorycmp): Update to String usage.
35 * category.h: Include the String++ header.
36 (Category::Category): Update to String usage.
37 (Category::name): Ditto.
38 (Category::key): Ditto.
39 * choose.cc: Remove concat.h, it's not needed.
40 (scan2): Update to String usage.
42 * cygpackage.cc: Update includes for use of String class.
43 (cygpackage::cygpackage): Update for String usage.
44 (cygpackage::set_canonical_version): Ditto.
45 (cygpackage::destroy): Ditto.
46 (cygpackage::getfirstfile): Ditto.
47 (cygpackage::getnextfile): Ditto.
48 (cygpackage::Name): Ditto.
49 (cygpackage::Vendor_version): Ditto.
50 (cygpackage::Package_version): Ditto.
51 (cygpackage::Canonical_version): Ditto.
52 (cygpackage::set_sdesc): Ditto.
53 (cygpackage::set_ldesc): Ditto.
54 * cygpackage.h: Include String++.h for parsing this file.
55 (cygpackage::cygpackage): Update for String usage.
56 (cygpackage::set_canonical_version): Ditto.
57 (cygpackage::destroy): Ditto.
58 (cygpackage::getfirstfile): Ditto.
59 (cygpackage::getnextfile): Ditto.
60 (cygpackage::Name): Ditto.
61 (cygpackage::Vendor_version): Ditto.
62 (cygpackage::Package_version): Ditto.
63 (cygpackage::Canonical_version): Ditto.
64 (cygpackage::set_sdesc): Ditto.
65 (cygpackage::set_ldesc): Ditto.
66 (cygpackage::name): Ditto.
67 (cygpackage::vendor): Ditto.
68 (cygpackage::packagev): Ditto.
69 (cygpackage::canonical): Ditto.
70 (cygpackage::fn): Ditto.
71 (cygpackage::sdesc): Ditto.
72 (cygpackage::ldesc): Ditto.
73 * desktop.cc: Update includes for use of String class.
74 (batname): Update for String usage.
78 (desktop_icon): Ditto.
79 (make_cygwin_bat): Ditto.
80 (make_etc_profile): Ditto.
82 (make_passwd_group): Ditto.
84 (check_desktop): Ditto.
85 (check_startmenu): Ditto.
86 * dialog.cc (eget): Update for String usage.
87 (egetString): New function.
88 (eset): New variant for Strings.
89 * dialog.h: Include String++.h for parsing this file.
90 (egetString): New function.
91 (eset): New variant for Strings.
92 * diskfull.cc (diskfull): Update for String usage.
93 * diskfull.h: Include String++.h for parsing this file.
94 (diskfull): Update for String usage.
95 * download.cc: Update includes for use of String class.
96 (check_for_cached): Update for String usage.
97 (download_one): Ditto.
98 * filemanip.cc (get_file_size): Ditto.
100 (parse_filename): Ditto.
102 * filemanip.h: Include String++.h for parsing this file.
103 (fileparse): Update for String usage.
105 (parse_filename): Ditto.
106 Don't consider '_' to be a separator.
108 * find.cc: Update includes for use of String class.
109 (find_sub): Make more flexible.
110 (find): Update for String usage.
111 * find.h (find): Use Strings.
112 * fromcwd.cc (found_file): Update for String usage.
114 (init_dialog): Ditto.
115 (get_url_to_membuf): Ditto.
116 (get_url_to_string): Ditto.
117 (get_url_to_file): Ditto.
119 (get_url_to_membuf): Ditto.
120 (get_url_to_string): Ditto.
121 (get_url_to_file): Ditto.
123 (add_subdirs): Ditto.
124 * ini.cc: Update includes for String usage.
125 (find_routine): Update for String usage.
126 (do_remote_ini): Ditto.
127 (do_ini_thread): Ditto.
128 * ini.h (ini_init): Ditto.
129 * inilex.l: Update includes for String usage.
130 (ini_init): Update for String usage.
132 (add_correct_version): Ditto.
133 * install.cc: Update includes for String usage.
134 (install_one_source): Update for String usage.
135 (uninstall_one): Ditto.
136 (replace_one): Ditto.
137 (install_one_source): Ditto.
138 (do_install_thread): Ditto.
139 * io_stream.cc: Update includes for String usage.
140 (io_stream::open): Update for String usage.
141 (io_stream::mkpath_p): Ditto.
142 (io_stream::remove): Ditto.
143 (io_stream::mklink): Ditto.
144 (io_stream::move_copy): Ditto.
145 (io_stream::move): Ditto.
146 (io_stream::exists): Ditto.
147 * io_stream.h: Update includes to allow correct parsing.
148 (io_stream::open): Update for String usage.
149 (io_stream::mkpath_p): Ditto.
150 (io_stream::remove): Ditto.
151 (io_stream::mklink): Ditto.
152 (io_stream::move_copy): Ditto.
153 (io_stream::move): Ditto.
154 (io_stream::exists): Ditto.
155 * io_stream_cygfile.cc: Update includes for String usage.
156 (get_root_dir_now): Update for String usage.
157 (io_stream_cygfile::io_stream_cygfile): Ditto.
158 (io_stream_cygfile::~io_stream_cygfile): Ditto.
159 (io_stream_cygfile::exists): Ditto.
160 (io_stream_cygfile::remove): Ditto.
161 (io_stream_cygfile::mklink): Ditto.
163 (io_stream_cygfile::set_mtime): Ditto.
164 (io_stream_cygfile::move): Ditto.
165 (io_stream_cygfile::get_size): Ditto.
166 * io_stream_cygfile.h: Update includes for String usage.
167 (io_stream_cygfile::io_stream_cygfile): Update for String usage.
168 (io_stream_cygfile::~io_stream_cygfile): Ditto.
169 (io_stream_cygfile::exists): Ditto.
170 (io_stream_cygfile::remove): Ditto.
171 (io_stream_cygfile::mklink): Ditto.
173 (io_stream_cygfile::set_mtime): Ditto.
174 (io_stream_cygfile::move): Ditto.
175 (io_stream_cygfile::get_size): Ditto.
176 (io_stream_cygfile::fname): Ditto.
177 (io_stream_cygfile::lmode): Ditto.
178 * io_stream_file.cc: Update includes for String usage.
179 (io_stream_file::io_stream_file): Update for String usage.
180 (io_stream_file::~io_stream_file): Ditto.
181 (io_stream_file::exists): Ditto.
182 (io_stream_file::remove): Ditto.
183 (io_stream_file::mklink): Ditto.
184 (io_stream_file::set_mtime): Ditto.
185 (io_stream_file::move): Ditto.
186 (io_stream_file::get_size): Ditto.
187 * io_stream_file.h: Update includes for String usage.
188 * io_stream_file.cc: Update includes for String usage.
189 (io_stream_file::io_stream_file): Update for String usage.
190 (io_stream_file::~io_stream_file): Ditto.
191 (io_stream_file::exists): Ditto.
192 (io_stream_file::remove): Ditto.
193 (io_stream_file::mklink): Ditto.
194 (io_stream_file::set_mtime): Ditto.
195 (io_stream_file::move): Ditto.
196 (io_stream_file::get_size): Ditto.
197 (io_stream_file::fname): Ditto.
198 (io_stream_file::lmode): Ditto.
199 * localdir.cc: Update includes for String usage.
200 (save_local_dir): Update for String usage.
201 (check_if_enable_next): Ditto.
202 (load_dialog): Ditto.
204 (LocalDirPage::OnInit): Ditto.
205 (LocalDirPage::OnNext): Ditto.
206 * log.cc: Update includes for String usage.
207 (struct LogEnt): Update for String usage.
211 * log.h: Update includes for String usage.
212 (log_level): Update for String usage.
215 * main.cc (WinMain): Update for String usage.
216 * mklink2.c (make_link_2): Update for String usage.
217 * mklink2.h (make_link_2): Update for String usage.
218 * mount.cc: Update includes for String usage.
219 (mount_table): Update for String usage.
221 (create_mount): Ditto.
223 (remove_mount): Ditto.
224 (read_mounts): Ditto.
225 (set_root_dir): Ditto.
226 (get_root_dir): Ditto.
227 (path_prefix_p): Ditto.
229 * mount.h: Update includes for String usage.
230 (create_mount): Update for String usage.
231 (remove_mount): Ditto.
233 (set_root_dir): Ditto.
234 (get_root_dir): Ditto.
235 * msg.cc (mbox): Ditto.
236 * net.cc (NetPage::OnNext): Ditto.
237 * package_db.cc (packagedb::flush): Ditto.
238 (packagedb::packages): Ditto.
239 (packagedb::categories): Ditto.
240 * package_db.h: Update includes for String usage.
241 (packagedb::packages): Update for String usage.
242 (packagedb::categories): Ditto.
243 * package_meta.cc: Update includes for String usage.
244 (hash::add_subdirs): Update for String usage.
245 (packagemeta::uninstall): Ditto.
246 (packagemeta::SDesc): Ditto.
247 (packagemeta::action_caption): Ditto.
248 * package_meta.h: Update includes for String usage.
249 (packagemeta::packagemeta): Update for String usage.
250 (packagemeta::~packagemeta): Ditto.
251 (packagemeta::uninstall): Ditto.
252 (packagemeta::SDesc): Ditto.
253 (packagemeta::action_caption): Ditto.
254 (package_source.cc site::site): Ditto.
255 (packagesource::set_canonical): Ditto.
256 (packagesource::set_cached): Ditto.
257 * package_source.h: Update includes for String usage.
258 (site::site): Update for String usage.
259 (packagesource::set_canonical): Ditto.
260 (packagesource::set_cached): Ditto.
261 (packagesource::packagesource): Ditto.
262 (packagesource::sites): Ditto.
263 (packagesource::cached): Ditto.
264 * package_version.h: Update includes for String usage.
265 (Dependency): Update for String usage.
266 (packageversion): Ditto.
267 * postinstall.cc: Update includes for String usage.
268 (do_postinstall): Update for String usage.
269 * res.rc (IDD_LOCAL_DIR): Fix typo again!
270 * rfc1738.cc (rfc1738_escape_part): Update for String usage.
271 * rfc1738.h: Update includes for String usage.
272 (rfc1738_escape_part): Update for String usage.
273 * root.cc: Update includes for String usage.
274 (check_if_enable_next): Update for String usage.
275 (save_dialog): Ditto.
277 (directory_is_absolute): Ditto.
278 (directory_is_rootdir): Ditto.
279 (directory_has_spaces): Ditto.
280 (RootPage::OnInit): Ditto.
281 (RootPage::OnNext): Ditto.
282 * script.cc: Update includes for String usage.
283 (init_run_script): Update for String usage.
286 (try_run_script): Ditto.
287 * script.h: Update includes for String usage.
288 (run_script): Update for String usage.
289 (try_run_script): Ditto.
290 * site.cc site_list): Ditto.
291 (all_site_list): Ditto.
292 (other_url): Eliminate.
293 (site_list_type::init): Update for String usage.
294 (site_list_type::site_list_type): Ditto.
295 (get_site_list): Ditto.
296 (get_saved_sites): Ditto.
297 (do_download_site_info_thread): Ditto.
298 (SitePage::OnNext): Ditto.
299 (SitePage::OnActivate): Ditto.
300 (SitePage::PopulateListBox): Ditto.
301 (SitePage::OnMessageCmd): Handle empty url's.
302 * site.h: Update includes for String usage.
303 (site_list_type::site_list_type): Update for String usage.
304 (site_list_type::init): Ditto.
305 (site_list_type::~site_list_type): Ditto.
306 (site_list_type::url): Ditto.
307 (site_list_type::displayed_url): Ditto.
308 (site_list_type::key): Ditto.
309 * source.cc (SourcePage::OnDeactivate): Ditto.
310 * state.h: Update includes for String usage.
311 (local_dir): Update for String usage.
312 (trust_level): Remove.
313 * version.cc: Update includes for String usage.
314 (canonicalize_version): Update for String usage.
315 * version.h: Update includes for String usage.
316 (canonicalize_version): Update for String usage.
318 2002-02-15 Christopher Faylor <cgf@redhat.com>
320 * filemanip.c (parse_filename): Revert previous change.
322 2002-02-14 Christopher Faylor <cgf@redhat.com>
324 * filemanip.c (parse_filename): Don't treat '_' as a version number
327 2002-01-29 Christopher Faylor <cgf@redhat.com>
329 * configure: Regenerate.
331 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
333 * res.rc (IDD_LOCAL_DIR): Fix typo reported by Rene
334 <Hoeck@extern.lrz-muenchen.de>
336 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
338 * README: Update Todo's.
339 * list.h: Run indent.
340 (list): New methods checksize and insert to reduce code duplication.
341 (list::registerbykey): Use them.
342 (list::registerbyobject): Ditto.
343 (list::removebyindex): Copy each object individually - safe for non
345 (list::checksize): Implement.
346 (list::insert): Implement.
348 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
350 * Makefile.in: Remove the dlmalloc object by default.
351 * install.cc (do_install_thread): Remove the mallinfo call for 'working
352 around' the crashing issue.
353 * package_db.h: Include <string.h> - it's needed to parse this.
354 * package_source.cc (site::site): Move here from the header file.
355 * package_source.h (site): Stop the constructor being inlinable.
357 2002-01-26 Robert Collins <rbtcollins@hotmail.com>
359 * filemanip.cc (find_tar_ext): Add a descriptive comment.
361 2002-01-25 Michael A Chase <mchase@ix.netcom.com>
363 * filemanip.cc (find_tar_ext): Clean up tests for .tar.gz and .tar.
364 * fromcwd.cc (do_fromcwd): Expand FIXME comment in source file check.
365 * install.cc (install_one_source): Add space between words in log()
368 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
370 * log.cc (exit_setup): When saving to the download dir, explicity
373 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
375 * archive.cc (extract_file): Separate out the prefix and the URL
377 * archive.h (archive::extract_file): Ditto.
378 * install.cc (install_one_source): Ditto. Use the new
379 archive::extract_file syntax.
380 (replace_one): Use the new syntax.
381 (io_stream.cc): Add some log info for links.
383 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
385 * PickCategoryLine.cc (PickCategoryLine::actiontext): Remove.
386 (PickCategoryLine::paint): Use the new action method.
387 (PickCategoryLine::click): Set the action for all children.
388 (PickCategoryLine::set_action): New method.
389 * PickCategoryLine.h (PickCategoryLine::-actions): Remove.
390 (PickCategoryLine::current_default): Use packagemeta _actions class.
391 * PickLine.h (PickLine::set_action): New abstract method that requires
392 including package_meta.h.
393 * PickPackageLine.cc (PickPackageLine::set_action): New method.
394 * PickPackageLine.h (PickPackageLine::set_action): Declare this.
395 * list.h (getbykey): A const correctness fix.
396 * package_meta.cc: Run indent.
397 (packagemeta::Default_action): New const.
398 (packagemeta::Install_action): Ditto.
399 (packagemeta::Reinstall_action): Ditto.
400 (packagemeta::Uninstall_action): Ditto.
401 (packagemeta::_actions::caption): New method.
402 (packagemeta::_actions::operator++): Ditto.
403 (packagemeta::set_action): New overload.
404 * package_meta.h (packagemeta::_actions): New class.
405 (packagemeta::set_action): Declare this.
407 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
409 * Makefile.in (OBJS): Remove supp.o - it appears accidental.
410 * choose.cc: Don't define alloca anymore, it's done in win32.h
412 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
414 * PickPackageLine.cc: New file.
415 * PickPackageLine.h: New file.
416 * PickLine.cc: New file.
417 * PickLine.h: New file.
418 * PickCategoryLine.cc: New file.
419 * PickCategoryLine.h: New file.
420 * PickView.cc: New file.
421 * PickView.h: New file.
422 * Makefile.in: Add new objects to setup.exe.
423 Backout -fno-exceptions option.
424 * choose.cc: Include PickView.h.
425 Remove view related defines and static variables.
426 (_pkg_headers): Moved to PickView.cc.
427 (_cat_headers): Ditto.
428 (view::views::Unknown): Ditto.
429 (view::views::PackageFull):
430 (view::views::Package):
431 (view::views::Category):
432 (pkgtrustp): Moved to package_meta.cc.
433 (add_required): Moved to package_meta.cc.
434 (pick_category_line::empty): Moved to PickCategoryLine.cc
435 (paint): Adjust for moved static variables.
436 (view::scroll): Moved to PickView.cc.
437 (list_vscroll): Adjust for moved static variables.
438 (list_hscroll): Ditto.
440 (note_width): Moved to PickView.cc.
442 (view::set_view_mode): Ditto.
443 (view::mode_caption): Ditto.
444 (view::views::caption): Ditto.
445 (view::set_headers): Ditto.
446 (DoInsertItem): Ditto.
447 (view::init_headers): Ditto.
448 (view::insert_pkg): Ditto.
449 (view::insert_category): Ditto.
450 (view::clear_view): Ditto.
451 (view::views::operator++): Ditto.
452 (view::click): Ditto.
453 (default_trust): Adjust for moved statics.
454 (pick_pkg_line::paint): Moved to PickPackageLine.cc.
455 (pick_pkg_line::click): Ditto.
456 (pick_category_line::actiontext): Moved to PickCategoryLine.cc
457 (pick_category_line::paint): Ditto.
458 (pick_category_line::click): Ditto.
459 (set_view_mode): Adjust for moved statics.
460 (create_listview): Ditto.
461 * choose.h: Remove Category and packagemeta forward defines - not needed.
462 Don't include unneeded headers list and package_meta.
463 (_header): Move to PickView.h.
464 (pick_line): Move to PickLine.h.
465 (pick_pkg_line): Move to PickPackageLine.h.
466 (pick_category_line): Move to PickCategoryLine.h.
467 (view): Move to PickView.h.
468 * ini.h (trusts): Move to package_meta.h.
469 * package_meta.h (trusts): New enum.
470 (packagemeta::set_requirements): New helper method.
471 (packagemeta::trustp): Ditto.
473 2002-01-21 Christopher Faylor <cgf@redhat.com>
475 * choose.h (view): Move forward declaration of views into public area
476 or g++ v3 will complain.
478 2002-01-21 Christopher Faylor <cgf@redhat.com>
480 * Makefile.in (CXXFLAGS): Add -fno-exceptions.
481 * win32.h (alloca): Define as __builtin_alloca.
482 * io_stream_memory.cc: Add include file.
484 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
486 * archive_tar.cc (archive_tar::~archive_tar): Mark the stream as destroyed.
487 * archive_tar_file.cc (archive_tar_file::~archive_tar_file): Ditto.
488 * compress.cc (compress::~compress): Be less verbose.
489 * compress_bz.cc (compress_bz::~compress_bz): Ditto.
490 Mark the stream as destroyed.
491 * compress_gz.cc (compress_gz::~compress_gz): Mark the stream as destroyed.
492 * io_stream.cc (io_stream::~io_stream): Only warn when the stream is not marked
494 * io_stream_cygfile.cc (io_stream_cygfile::~io_stream_cygfile): Mark the
496 * io_stream_file.cc (io_stream_file::~io_stream_file): Ditto.
497 * io_stream_memory.cc (io_stream_memory::~io_stream_memory): Ditto.
499 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
501 * Makefile.in (CFLAGS): Allow customisable malloc debug flags.
502 (OBJS): Link in malloc objects.
503 * category.cc (category): Use new char, not strdup.
504 * choose.cc (pick_pkg_line::paint): Allow for the regionsize to shrink.
505 (do_choose): Use new char, not malloc.
506 * concat.cc (vconcat): Ditto.
507 * cygpackage.cc (cygpackage): Use new char, not strdup.
508 (set_canonical_version): Ditto.
509 (cygpackage::destroy): Use delete[], not free.
510 * desktop.cc (uexists): Ditto.
511 * dialog.cc (egest): Use new char, not strdup.
512 * dlmalloc.c: New file - Doug Lea's malloc 2.7.0
513 * hash.cc (hash::hash): Use delete instead of free.
514 (hash::add): Use new char, not strdup.
515 * ini.cc (do_remote_ini): Use delete[] not free.
516 * inilex.l: Use new char, not strdup.
519 Use a local package_db rather than a static one.
520 * install.cc (struct mallinfo): Workaround an apparent dlmalloc bug.
521 (do_install_thread): Call mallinfo to force a consistency check. Appears
522 to fix a 'inuse' error in -DDEBUG builds.
523 Use delete[] for strings.
524 * io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile): Use new char,
526 (io_stream_cygfile::~io_stream_cygfile): Use delete[], not free.
527 (io_stream_cygfile::remove): Use new char, not strdup.
528 * io_stream_file.cc (io_stream_file::io_stream_file): Use new char, not strdup.
529 (io_stream_file::io_stream_file): Use delete[], not free.
530 (io_stream_file::remove): Use new char, not strdup.
531 * io_stream_memory.cc (memblock::~memblock): Use delete[], not free.
532 * io_stream_memory.h (memblock): Use new char, not malloc.
533 * localdir.cc (LocalDirPage::OnInit): Use new char, not strdup.
534 * main.cc (WinMain): Use new char, not strdup.
535 * mount.cc (find2): Use new char, not malloc.
536 (read_mounts): Ditto.
537 (cygpath): Use new char, not strdup.
538 * netio.cc (NetIO::~NetIO): Use delete[], not free.
539 (NetIO::set_url): Use new char, not strdup.
540 (NetIO::get_ftp_auth): Use delete[], not free.
541 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
542 Use new char instead of strdup.
543 * nio-http.cc (base64_encode): Use new char, not malloc.
544 * package_meta.cc (hash::add_subdirs): Use new char instead of strdup.
545 * package_source.h (~ packagesource): Use delete[] instead of delete.
546 * port.h (strdup): Deprecate the use of strdup.
547 * rfc1738.cc (rfc1738_do_escape): Use new char, not calloc.
548 * script.cc (init_run_script): Us delete[], not free.
550 * simpsock.cc (SimpleSocket::fill): Use new char, not malloc.
551 (SimpleSocket::invalidate): Use delete[], not free.
552 * site.cc (site_list_type::init): Use new char instead of strdup.
553 * site.h (~site_list_type): Use delete[], not free.
555 2002-01-20 Robert Collins <rbtcollins@hotmail.com>
557 * Makefile.in (OBJS): Add win32.o - win32 support functions.
558 * README: Update todos.
559 * archive.cc (extract_file): Support a suffix for appending to extracted files.
561 * choose.cc (set_view_mode): Use the new view::views class.
562 (view::views::Unknown): New static for defaulting view::views variables.
563 (view::views::PackageFull): New static for the current view.
564 (view::views::Package): Ditto.
565 (view::views::Category): Ditto.
566 (topbucket::paint): Remove.
567 (topbucket::empty): Rename to pick_category_line::empty.
568 (topbucket::~topbucket): Remove.
569 (paint): Use the new view::views class.
570 Don't paint 'all' as a category when showing package categoies.
571 (pick_category_line::actiontext): New method.
572 (pick_category_line::paint): Make showing the category optional, and show the
574 (pick_category_line::click): Make showing the category optional, and
575 differentiate between the name being clicked, and the action description.
576 (view::view): Use the new view::views class.
577 (view::set_view_mode): Ditto.
578 (view::mode_caption): Ditto.
579 (view::views::caption): New method.
580 (view::set_headers): Use the new view::views class.
581 (view::clear_view): Ditto.
582 (viewsplusplus): Replaced by
583 (view::views::operator++): New operator.
584 (set_view_mode): Use the new view::views class.
585 (create_listview): Ditto.
587 * choose.h (actions): Remove.
589 (pick_line): Add a new convenience constructor.
590 (top_bucket): Remove.
591 (pick_category_line): Reparent under pick_line, and adsorb top_bucket.
592 (view::views): New class.
593 * ini.h: Don't include choose.h
594 (is_download_action): Remove.
595 (is_upgrade_action): Remove.
596 (is_uninstall_action): Remove.
597 (is_full_action): Remove.
598 * install.cc (num_replacements): New static.
599 (rebootneeded): Ditto.
600 (replace_one): Handle upgrades separate from removal or new installs.
601 (install_one_source): Handle in use files.
602 (install_one): Don't repeat upgrades.
603 (do_install_thread): Initialize new statics.
604 Order actions as uninstall, replace, install.
605 Warn about rebooting if needed.
606 * res.rc (IDS_REBOOT_REQUIRED): New string.
607 * resource.h (IDS_REBOOT_REQUIRED): Give value.
608 * win32.h: Declare class Win32, and update copyright and intent message.
609 * win32.cc: New file.
611 2002-01-15 Corinna Vinschen <corinna@vinschen.de>
613 * io_stream.cc (io_stream::gets): Eliminate trailing new line chars.
614 * package_meta.cc (packagemeta::uninstall): Check for additional
615 Windows shortcut. Unset R/O file attribute before trying to delete
618 2002-01-09 Robert Collins <rbtcollins@hotmail.com>
620 * choose.cc (pkgtrustp): Fall back to installed if a package is not present in
621 the current trust level. For prev, fall back via curr.
622 (set_existence): Allow sources with no sites, but cached files to be
624 (pick_category_line::paint): Start drawing clickable categories.
625 * fromcwd.cc (found_file): Reinstate local file scanning.
627 2002-01-07 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
629 * fromcwd.cc: Run indent.
630 (do_fromcwd): Reverse sense of comment. Set next_dialog
631 to IDD_CHOOSER instead of IDD_CHOOSE.
632 * ini.cc (find_routine): Remove "/" from "/setup.ini".
634 2001-01-07 Robert Collins <rbtcollins@hotmail.com>
636 * category.cc (Categorycmp): Add a const safe version.
637 * category.h (Categorycmp): Add a const safe version.
638 (Category): Add operator ==.
639 * choose.cc (fill_missing_category): Add every package to "All".
640 (pick_category_line::paint): Add support for hidden labels, and a tree depth.
641 (pick_category_line::click): Ditto.
642 (view::view): Pass in a top level category to use.
643 (view::insert_pkg): Special case - skip category "All".
644 (view::insert_category): Ditto.
645 (view::clear_view): Set the contents label state.
646 (create_listview): Pass in a top level category to view().
647 * choose.h (topbucket): Make bucket available to derived classes.
648 (pick_category_line): Add support for hidden labels, and a tree depth.
649 Remove our second copy of bucket.
650 (view): Pass in a top level category to the constructor.
651 Use pick_category_line to allow three level display.
653 2001-01-06 Robert Collins <rbtcollins@hotmail.com>
655 * cygpackage.h (cygpackage): Make set_[s|l]desc virtual.
656 * iniparse.y (add_correct_version): Copy descriptions across.
657 * package_meta.cc (SDesc): Iterate through versions, return the first with a
659 * package_version.h (packageversion): Add new virtuals set_[l|s]desc.
661 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
663 * script.cc (run_script): Change cygpath:// to cygfile://.
664 * install.cc (do_install_thread): Fix off-by-one errors.
666 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
668 * package_db.cc (packagedb::flush): Fix an off-by-one error.
670 2002-01-04 Jan Nieuwenhuizen <janneke@gnu.org>
672 * Makefile.in (realclean): more clean.
673 (OBJS): Add script.o.
674 * postinstall.cc (run_script_in_etc_postinstall): New function.
675 (do_postinstall): Split off new funtion init_run_script ().
678 (run_script): Move to script.cc. Replace some deprecated remove
681 * script.cc: New file.
682 * Forward port cygwin-20010707.jcn3.patch.
683 * package_meta.cc (uninstall): Run pre- and postremove scripts.
684 * install.cc: Typo fix.
685 (do_install): Run script initialisation.
687 2001-01-04 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
689 * cistring.cc: Run d2u.
690 * cistring.h: Run d2u.
692 * desktop.cc (etc_profile): Remove "test -f ./.bashrc && . ./.bashrc"
693 from the generated /etc/profile. Bash will source this file
694 automatically, and having this here merely results in .bashrc being
695 executed twice. Run d2u.
696 * desktop.h: Run d2u.
698 * propsheet.cc: Run d2u.
699 (PropSheetProc): New function. Add minimize box here instead of in
700 PropertyPage::DialogProc.
701 (PropSheet::Create): Change to use creation callback PropSheetProc.
702 (DLGTEMPLATEEX): Add 'hidden' Windows struct definition.
704 * propsheet.h: Run indent, d2u.
705 * proppage.h: Run indent, d2u.
707 * proppage.cc: Run d2u.
708 (PropertyPage::DialogProc): Remove minimize-box-adding
709 functionality. Remove commented-out "PropSheet_SetWizButtons" calls.
710 Add support for calling virtual OnMessageCmd. Add setting of fonts in
711 WM_INITDIALOG handler.
712 (resource.h): New include for resource IDs.
714 * res.rc: Resize and rearrange property page dialog templates
715 to bring them in line with "Microsoft's Backward Compatible Wizard 97"
716 specification. Run d2u.
717 (IDD_SITE): Add an edit control and an "Add" button in order to
718 combine the IDD_SITE and IDD_OTHER_URL functionality onto one page.
719 (IDD_OTHER_URL): Remove dialog template.
720 (IDD_DLSTATUS): Remove dialog template.
723 (SitePage::OnBack): Remove NEXT() macro invocation.
724 (SitePage::OnActivate): New member function.
725 (load_dialog): Remove. Functionality subsumed into
726 SitePage::OnActivate.
727 (save_dialog): Change to support both list and user URLs. Remove
728 OTHER_IDX and mirror_idx logic.
729 (SitePage::PopulateListBox): New member function.
730 (SitePage::CheckControlsAndDisableAccordingly): New member function.
731 (SitePage::OnMessageCmd): New override.
732 (check_if_enable_next): Remove.
733 (dialog_cmd): Remove.
734 (do_download_site_info_thread): Remove calls to NEXT() macro.
735 (SitePage::Create): Call the single-param PropertyPage::Create
737 (other_url): New static taken from other.cc.
738 (SitePage::OnNext): Remove mirror_idx logic.
739 (SitePage::OnInit): Remove "Other URL" entry from list box. Remove
740 list box populating code, now handled in SitePage::PopulateListBox.
741 (mirror_idx, NO_IDX, OTHER_IDX): Remove.
742 (save_site_url): Fix potential buffer overflow problem. Switched to
743 TCHAR in grossly premature preparation for multilingual support.
745 (SitePage::OnActivate): New member function.
746 (SitePage::CheckControlsAndDisableAccordingly) New member.
747 (SitePage::OnMessageCmd): New override.
748 (do_download_site_info_thread): Add MessageBox call on failure to
751 * splash.cc: Run d2u.
752 (SplashPage::OnInit): Set the font for the title.
755 * threebar.cc: Run d2u.
756 * threebar.h: Run d2u.
759 (Window::IsButtonChecked): New member function declaration.
760 (Window::OnMessageCmd): New member function.
761 (Window::SetDlgItemFont): New member function declaration.
762 (Window::MAXFONTS, Window::Fonts, Window::FontCounter): New data
764 * window.cc: Run d2u.
765 (Window::IsButtonChecked): New member function definition.
766 (Window::SetDlgItemFont): New member function definition.
767 (Window::Window): Add initialization for FontCounter.
768 (Window::~Window): Delete any fonts we created.
770 * geturl.cc: Run d2u.
771 (progress): Remove the "3" field width from the "%3d"
772 percent-complete format indicator. Causes line to not start at
773 beginning of text box, and does little to help with "jumping", since
774 the "bytes downloaded so far" field is variable-width anyway. Change
775 kb/s format field to "%03.1" to 0-pad the kb/s number in the event of
776 painfully slow connections, or temporary slowdowns in faster
777 connections should such more-instantaneous functionality become
781 (NetPage::OnMessageCmd): New member function declaration.
782 (NetPage::CheckIfEnableNext): New member function declaration.
784 (NetPage::OnMessageCmd): New member function definition.
785 (dialog_cmd): Remove, subsumed into NetPage::OnMessageCmd.
786 (check_if_enable_next): Remove.
787 (NetPage::CheckIfEnableNext): New member function, subsumes
788 check_if_enable_next.
789 (propsheet.h): Add include.
790 (NetPage::Init): Add call to CheckIfEnableNext.
791 (load_dialog): Remove call to check_if_enable_next.
792 (NetPage::Create): Call single-template-ID-parameter overload of
793 PropertyPage::Create instead of three-parameter one.
795 * Makefile.in (OBJS): Remove other.o.
796 * other.cc: Remove file.
798 2002-01-01 Robert Collins <rbtcollins@hotmail.com>
800 * README: Update TODO's.
801 * choose.cc (set_existence): Delete non installed packages with no
803 (fill_missing_category): Fix an off-by-one error.
804 (default_trust): Ditto. Also delete any unused categories.
805 (view::init_headers): Fix an off-by-one error.
806 (set_view_mode): Ditto.
807 (set_view_mode): Ditto.
808 (create_listview): Ditto.
811 * io_stream.cc: Indent.
812 * io_stream.h: Ditto.
813 * package_db.cc: Ditto.
814 * package_meta.h: Const correctness for SDesc ();
815 * proppage.cc: Run d2u and indent.
816 * propsheet.cc: Run d2u and indent.
817 * window.cc: Run d2u and indent.
818 * window.h: Run d2u and indent.
820 2001-12-28 Christopher Faylor <cgf@redhat.com>
822 * Makefile.in (iniparse.o): Accommodate newer bisons.
824 2001-12-23 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
826 * window.h (Window): New file, new class.
827 * window.cc (Window): New file, new class.
829 * threebar.h (ThreeBarProgressPage): New file, new class.
830 * threebar.cc (ThreeBarProgressPage): New file, new class.
832 * splash.h (SplashPage): New file, new class.
833 * splash.cc (SplashPage): Replace file with implementation of new
836 * source.h (SourcePage): New file, new class.
837 * source.cc: Run indent.
838 (SourcePage): Add class implementation to this file.
839 (do_source): Remove, functionality subsumed by SourcePage::Create()
840 and SourcePage::OnDeactivate().
841 (dialog_proc): Remove, functionality subsumed by
842 SourcePage::OnActivate().
844 * site.h: Run indent.
845 (SitePage): Add class declaration.
846 * site.cc: Run indent.
847 (SitePage): Add class implementation.
848 (do_download_site_info_thread): New function.
849 (context): New var. Context info for do_download_site_info_thread().
850 (do_download_site_info): New function.
851 (SitePage::Create, SitePage::OnInit SitePage::OnNext)
852 (SitePage::OnBack): SitePage class implementation..
853 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers, now handled
855 (dialog_proc): Remove, now handled by SitePage::OnInit and base class
857 (do_site): Remove, now handled by do_download_site_info_thread() and
858 SitePage::OnNext functionality.
859 (get_site_list): Remove dismiss_url_status_dialog() call.
861 * root.h (RootPage): New file, new class.
862 * root.cc: Run indent.
863 (dialog_cmd): Pass parent HWND parameter to note(), yesno().
864 (dialog_proc): Remove.
866 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL clauses from switch.
867 (RootPage::OnInit): New member function. Move get_root_dir() logic to
869 (RootPage::Create): New member function.
870 (RootPage::OnNext): New member function. Move IDOK logic from
871 dialog_cmd() to here.
872 (RootPage::OnBack): New member function.
874 * propsheet.h (PropSheet): New file, new class.
875 * propsheet.cc (PropSheet): New file, new class.
877 * proppage.h (PropertyPage): New file, new class.
878 * proppage.cc (PropertyPage): New file, new class.
880 * postinstall.cc (do_postinstall): Add owner parameter.
882 * other.cc (do_other): Add owner parameter.
884 * nio-file.cc (NetIO::Purl): Pass NULL parent param to note().
885 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Pass NULL parent param to
887 * nio-http.cc (retry_get): Pass NULL parent param to get_auth(),
890 * nio-ie5.cc (NetIO::_url): Pass NULL parent param to note(),
891 get_auth(), get_proxy_auth().
893 * netio.h (get_auth, get_proxy_auth, get_ftp_auth): Add owner param.
894 * netio.cc (auth_common, NetIO::get_auth, NetIO::get_proxy_auth,
896 (auth_common): Add owner param. Pass owner param to DialogBox.
897 (NetIO::get_auth, NetIO::get_proxy_auth, NetIO::get_ftp_auth): Pass
898 owner param to auth_common().
900 * net.h (NetPage): New file, new class.
901 * net.cc: Run indent.
902 (net.h, threebar.h): Add includes.
903 (Progress): Add extern.
904 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, now handled by
905 property sheet logic. Saved temporarily for reference.
906 (NetPage::Create, NetPage::OnInit, NetPage::OnDeactivate,
907 NetPage::OnNext, NetPage::OnBack):
908 New implementation of NetPage class members.
910 (dialog_proc): Remove.
912 * msg.h (fatal, note, yesno): Add owner param.
913 * msg.c (fatal, note, yesno, mbox): Add owner param.
914 (mbox): Remove MB_TOPMOST from MessageBox call. Unnecessary and wrong
915 now that we have a parent.
917 * main.cc: Run indent.
918 (commctrl.h, proppage.h, propsheet.h, splash.h, source.h)
919 (localdir.h, net.h, site.h, choose.h, threebar.h, desktop.h): Include
921 (root_dialog_proc): extern into this file.
922 (Progress): Progress dialog defined here, used in several other files.
923 (WinMain): Instantiate and create Splash, Source, Root, LocalDir, Net,
924 Site, Chooser, Desktop pages and MainWindow sheet. Call
925 InitCommonControls() to make sure Windows is set up for our use of
926 property sheets. Add pages to sheet.
927 Call MainWindow.Create() to "DoModal". Remove main loop, that logic is
928 now handled by the PropSheet class.
929 (root.h): Add include.
931 * log.cc (log_save): Pass NULL parent to fatal().
932 (exit_setup): Pass NULL parent to note().
934 * localdir.h (LocalDirPage): New file, new class.
935 * localdir.cc: Run indent.
936 (localdir.h): New include.
937 (threebar.h): New include.
938 (Progress): extern into this file.
939 (LocalDirPage::Create, LocalDirPage::OnInit, LocalDirPage::OnActivate)
940 (LocalDirPage::OnNext, LocalDirPage::OnBack): Implementation of
942 (LocalDirPage::OnNext): Move log() call from do_local_dir() to here.
943 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers.
944 (do_local_dir): Remove.
945 (dialog_proc): Remove.
946 (cwd): Remove, not used by anything.
948 * install.cc: Run indent.
949 (process.h, threebar.h): New includes.
950 (Progress): extern into this file.
951 (ins_dialog, ins_action, ins_pkgname, ins_filename, ins_pprogress)
952 (ins_iprogress, ins_diskfull, init_event): Remove, now handled by
953 ThreeBarProgressPage.
954 (dialog_cmd, dialog_proc, dialog): Removed, handled in
955 ThreeBarProgressPage.
956 (init_dialog): Remove all mention of the above ins_* handles. Now
957 handled in ThreeBarProgressPage. Altered SetWindowText()s to call
958 ThreeBarProgressPage instance Progress directly.
959 (progress): Alter bar update logic to call ThreeBarProgressPage
960 instance Progress directly.
961 (uninstall_one): Alter SetWindowText()s to call ThreeBarProgressPage
962 instance Progress directly.
963 (install_one_source): Alter SetWindowText()s to call
965 instance Progress directly. Pass NULL parent to note().
966 (do_install_thread): Rename from do_install(), added owner param.
967 Alter SetWindowText()s to call ThreeBarProgressPage instance Progress
969 Remove dismiss_url_status_dialog() call, no longer necessary. Remove
970 ShowWindow(<hide>) call, also unnecessary now. Pass owner handle to
972 (do_install_reflector): New function.
973 (do_install): New function.
975 * ini.cc (process.h, threebar.h): New includes.
976 (Progress): externed into this file.
977 (find_routine): Pass NULL parent to note().
978 (do_local_ini): Add owner param.
979 (do_remote_ini): Add owner param. Pass owner to get_url_to_membuf()
980 and note(). Remove call to dismiss_url_status_dialog().
981 (do_ini_thread): Rename from do_ini(). Add owner param. Pass owner to
982 do_local_ini(), do_remote_ini(), yesno(), and note(). Set next_dialog
983 to IDD_CHOOSER on exit.
984 (do_ini_thread_reflector): New function.
985 (context): New var. Context for do_ini_thread.
986 (do_ini): New function.
988 * geturl.h (get_url_to_membuf, get_url_to_string, get_url_to_file): Add
990 * geturl.cc (gw_dialog, gw_url, gw_rate, gw_progress, gw_pprogress,
992 (gw_progress_text, gw_pprogress_text, gw_iprogress_text, init_event):
994 (threebar.h): New include.
995 (Progress): externed into this file.
996 (dialog_cmd, dialog_proc, dialog): Removed, handled by
997 ThreeBarProgressPage now.
998 (init_dialog): Remove "if (gw_dialog == 0)" clause. Alter
1000 and bar setting SendMessage()s to call ThreeBarProgressPage instance
1001 Progress directly. Remove "one bar only" logic, this is now handled
1002 explicitly in the ThreeBarProgressPage class.
1003 (progress): Altered bar and text update logic to call
1004 ThreeBarProgressPage instance Progress directly. Changed kbps
1005 calculation to floating point and now print out a single decimal
1007 (get_url_to_membuf): Add owner param. Pass it to init_dialog.
1008 (get_url_to_string): Add owner param. Pass it to get_url_to_membuf.
1009 (get_url_to_file): Add owner param. Pass it to init_dialog. Alter bar
1010 update logic to call ThreeBarProgressPage instance Progress directly.
1011 (dismiss_url_status_dialog): Remove.
1013 * fromcwd.cc (do_fromcwd): Add owner param. Initialize found_ini to
1016 * download.cc: Run indent.
1017 (process.h, threebar.h): New includes.
1018 (Progress): externed into this file.
1019 (download_one): Add owner param. Pass it to get_url_to_file().
1020 (do_download_thread): Renamed from do_download. Add owner param. When
1021 calculating total_download_bytes, take binpicked and srcpicked into
1022 account. Remove call to dismiss_url_status_dialog(), no longer needed.
1023 Pass owner handle to download_one() and yesno().
1024 (do_download_reflector, do_download): New functions.
1025 (context): New var. Context for do_download_thread().
1027 * dialog.h (D(x)): Add owner param.
1029 * desktop.h (DesktopSetupPage): New file, new class.
1030 * desktop.cc: Run indent.
1031 (desktop.h): Add include.
1032 (dialog_proc, do_desktop): Remove, now handled in
1033 DesktopSetupPage::OnInit().
1034 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, handled in
1035 DesktopSetupPage::OnFinish(), DesktopSetupPage::OnBack(), and PropSheet
1037 (DesktopSetupPage::Create, DesktopSetupPage::OnInit)
1038 (DesktopSetupPage::OnBack, DesktopSetupPage::OnFinish): Implementation
1039 of DesktopSetupPage.
1041 * cistring.h: New file, new class.
1042 * cistring.cc: New file, new class.
1044 * choose.h: Run indent.
1045 (Chooser): New class declaration.
1046 * choose.cc: Run indent.
1047 (do_choose): Add owner param. Pass it to DialogBox() and
1049 (Chooser): New class implementation.
1051 * res.rc (IDS_VERSION_INFO): New string.
1052 (IDD_SOURCE, IDD_LOCAL_DIR, IDD_ROOT, IDD_SITE, IDD_OTHER_URL)
1053 (IDD_DLSTATUS, IDD_INSTATUS, IDD_SPLASH, IDD_CHOOSE, IDD_DESKTOP):
1054 Change WS_POPUP to WS_CHILD. Numerous positioning/size changes
1056 (IDD_CHOOSE): Give template the WS_EX_CONTROLPARENT style to enable
1057 TAB control navigation etc. Give the controls a reasonable tab order.
1058 Grouped radio buttons. Something's still not right, can't tab away
1059 from back/next/cancel group reliably.
1060 * resource.h (IDD_CHOOSER): New dialog ID.
1062 * Makefile.in (OBJS): Add cistring.o, proppage.o, propsheet.o,
1063 threebar.o, and window.o.
1065 2001-12-21 Robert Collins <rbtcollins@hotmail.com>
1067 * choose.cc (listview_proc): Update the scrollbar when the headers are dragged.
1068 (pick_pkg_line::paint): Clip columns to prevent overlap.
1070 2001-12-20 Robert Collins <rbtcollins@hotmail.com>
1072 * Makefile.in: Add libcomctl32.a for setup.exe.
1073 * archive.h (archive): Prevent non-child direct creation of the class.
1074 * archive_tar.h (archive_tar): Prevent inaccurate synthetic copy and assignment.
1075 * choose.cc: Include commctrl for the choose header.
1076 (NEW_COL_SIZE_SLOP): Define without magic numbers.
1077 (pkgtrustp): Convert to function.
1078 (set_action): Remove.
1079 (add_required, fill_missing_category,default_trust): Use list syntax for
1082 (choose_caption): Remove.
1083 (topbucket::paint): New method.
1084 (topbucket::empty): Ditto.
1085 (topbucket::click): Ditto.
1086 (topbucket::~topbucket): Ditto.
1087 (paint): Remove i,ii and p as they are obsolete.
1088 Remove header drawing code.
1089 Use new chooser method to paint the chooser.
1090 Use new chooser itemcount method.
1091 (scroll_common): Rename to view::scroll.
1092 Scroll the header window separately.
1093 (list_vscroll, list_hscroll, list_click): Update for new chooser methods.
1094 (listview_proc): Look for header messages.
1095 (note_width): Accept stringless calls.
1096 (pick_line::set_line): Remove.
1097 (pick_line::paint): Remove.
1098 (pick_pkg_line::paint): Paint this one line, using the header column widths.
1099 (pick_category_line::paint): Paint this category, and anything in the bucket.
1100 (pick_line::click): Remove.
1101 (pick_pkg_line::click): Handle a click.
1102 (pick_category_line::click): Handle a click.
1103 (_view): Rename all to view.
1104 (view::view): Initialise the control contents.
1105 (view::set_headers): Work with the header control.
1106 (view::init_headers): Use list syntax for package list.
1107 Rearrange the width logic a little.
1108 (view::insert_pkg): Update to use the hierarchy.
1109 (view::insert_category): Ditto.
1110 (view::insert_at, view::insert_under): Remove.
1111 (view::clear_view): Update to use the hierarchy.
1112 (view::click): Update to use the hierarchy.
1113 (set_view_mode): Use list syntax for package list.
1114 Update for new chooser methods.
1115 (DoInsertItem): New helper function. (Needs a home somewhere).
1116 (create_listview): Remove choose control code and use the constructor instead.
1117 (dialog_cmd,scan2,do_choose): Use list syntax for package list.
1118 * choose.h: Include newly required headers list and package_meta.
1119 (_voew): Rename to view.
1120 (pick_line): Convert to an ABC.
1121 (pick_pkg_line): New class.
1122 (pick_catgory_line): New class.
1123 (topbucket): New class.
1124 (view::scroll): New method created from listview_scroll function.
1125 * desktop.cc (make_passwd_group): Use list syntax for package list.
1126 * download.cc (do_download): Use list syntax for package list.
1127 * fromcwd.cc (found_file): Use list syntax for package list.
1128 * iniparse.y (pacakges): Use list syntax for package list.
1129 * install.cc (uninstall_one): Use list syntax for package list.
1130 (do_install): Use list syntax for package list.
1131 * io_stream.h (io_stream): Prevent non-child direct creation of the class.
1132 Prevent inaccurate synthetic copy and assignment.
1133 * list.h: Include required header stdlib.
1134 Work on const correctness.
1135 * package_db.cc (packagedb::getpackagebyname): Remove.
1136 (packagedb::packagedb): Remove custom list code, and make db a local.
1137 (packagedb::getfirstpackage): Remove.
1138 (packagedb::getnextpackage): Remove.
1139 (packagedb::addpackage): Remove.
1140 (flush): Remove custom list code.
1141 (packagedb::registerpackage): Remove.
1142 (packagedb::packages): New static member.
1143 (packagedb::task): New static member.
1144 * package_db.h (PackageDBActions): New enum.
1145 (packagedb): Remove getfirstpackage, getnextpackage, getpackagebyname,
1146 addpackage, registerpackage, packages, packagecount, curr_package, db.
1148 * pacakge_meta.cc: Include package_db.h.
1149 (packagemeta::action_caption): New method.
1150 (packagemeta::set_action): New method.
1151 * package_meta.h (CategoryPackage): Initialise key.
1152 (packagemeta): Initialise key.
1153 Add set_action and action_caption methods.
1154 Prevent inaccurate synthetic copy and assignment.
1155 * resource.h (IDC_CHOOSE_LISTHEADER): New ID.
1156 * source.cc: Include package_db for db manipulation.
1157 (save_dialog): Set the db task.
1158 * win32.h: Tell the w32 include headers what IE version to expect/require.
1160 2001-12-06 Robert Collins <rbtcollins@hotmail.com>
1162 * README: Wishlist updates.
1164 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
1166 * package_db.cc (getnextpackage): Don't overrun the array.
1168 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
1170 * Makefile.in (OBJS): Add setup_version.o.
1171 (version.c): Rename to setup_version.
1172 * choose.cc (set_action): Prevent NULL pointer dereference.
1173 (package_sort): Remove.
1174 * fromcwd.cc (canonicalize_version): Moved to version.cc.
1175 (check_ini): New function for use with find to see if there is a cached setup.ini.
1176 (do_fromcwd): Check for a cached setup.ini from any mirror site.
1177 * ini.cc (find_routine): New function, for finding cached setup.ini's.
1178 (do_local_ini): New function, drives parsing of local ini's.
1179 (do_remote_ini): New function, drives parsing and caching of remote ini's.
1180 (do_ini): Move guts to do_remote_ini and do_local_ini.
1181 * list.h (removebyindex): New method.
1182 * other.cc (save_dialog): Use new site_list and all_site_list to add the
1183 new site to the site picklist.
1184 (dialog_cmd): Only save the dialog when exiting the dialog.
1185 * res.rc (IDD_SITE): Make IDC_URL_LIST a multiple-selection control.
1186 * site.cc (site_list_type): Move to site.h
1187 (site_list): New global, sites chosen by the user.
1188 (all_site_list): New global, all potential sites.
1189 (site_list_type::init): New method, parses a mirror.lst URL string into a
1190 site_list_type object.
1191 (site_list_type::site_list_type): New method.
1192 (check_if_enable_next): Examine the control, not a local variable.
1193 (load_dialog): Select all the user chosen sites by default.
1194 (save_dialog): Adjust for multiple selection semantics.
1195 (save_site_url): Save all user chosen sites.
1196 (dialog_cmd): Don't save the dialog when the listbox recieves a message -
1198 Remove obsolete other_url reference.
1199 (dialog_proc): Use all_site_list instead of site_list.
1200 (site_sort): Remove.
1201 (get_site_list): Remove malloc use - use list template instead.
1202 Move site_list_type initialisation to site_list_type::init().
1203 (get_initial_list_idx): Renamed to ...
1204 (get_saved_sites): this. Also read in multiple sites to the site_list.
1205 (do_site): Use all_site_list not site_list.
1206 Log all chosen sites.
1207 * site.h: New file, defines site related class, functions and variables.
1208 * state.h: Add comment about use of state.h
1209 (mirror_site): Remove.
1210 (other_url): Remove.
1211 (MIRROR_SITE): Remove.
1212 * version.cc: New file, for version-handling and related functions.
1214 2001-12-02 Robert Collins <rbtcollins@hotmail.com>
1216 * Makefile.in: Add filemanip.o to setup.
1217 * archive.cc (archive::extract_file): Use new io_stream method 'copy'.
1218 * archive_tar.h (archive_tar_file): Implement get_size virtual.
1219 (archive_tar): Ditto.
1220 * choose.cc (set_action): Use [] operator instead of getnth - its more readable.
1222 (_view::init_headers): Ditto.
1223 (_view::insert_pkg): Ditto.
1224 (set_view_mode): Ditto.
1227 (base): Moved to filemanip.cc.
1228 (find_tar_ext): Ditto.
1229 (parse_filename): Ditto.
1230 (_Info::_Info): Remove.
1231 * compress_bz.h (compress_bz): Implement get_size virtual.
1232 * compress_gz.h (compress_gz): Implement get_size virtual.
1233 * cygpackage.cc (cygpackage::destroy): Use array delete for char * objects.
1234 * download.cc (get_file_size): Move to filemanip.cc.
1235 (check_for_cached): Use [] operator instead of getnth - its more readable.
1236 (download_one): Ditto.
1237 * filemanip.cc: New file.
1238 * geturl.cc (init_dialog): Make url a pointer to const as it is not modified.
1239 (get_url_to_membuf): New function - contains get_url_to_string worker code.
1240 (get_url_to_string): Becomes a trivial wrapper to get_url_to_membuf.
1241 * geturl.h: Declare new prototype.
1242 * ini.cc (do_ini): Use get_url_to_membuf and pass ini_init an io_stream.
1243 Tidy up the error code a little.
1244 * ini.h: Remove __cplusplus protection for ini_init.
1246 * inilex.l: Remove old globals.
1247 (ini_init): Use an io_stream for getting the characters.
1248 (ini_getchar): Ditto.
1249 * iniparse.y: Declare yylex as a C++ function.
1250 (add_correct_version): Use [] operator instead of getnth - its more readable.
1251 * io_stream.cc (io_stream::move_copy): Use the copy method.
1252 (io_stream::copy): New method to simply copy from one stream to another.
1253 * io_stream.h (io_stream): New static method copy, and virtual method get_size.
1254 * io_stream_cygfile.cc (io_stream_cygfile::get_size): Implement this.
1255 * io_stream_cygfile.h (io_stream_cygfile::get_size): Declare this.
1256 * io_stream_file.cc (io_stream_file::get_size): Implement this.
1257 * io_stream_file.h (io_stream_file::get_size): Declare this.
1258 * io_stream_memory.h: Include errno as it's neded to parse the header.
1259 (io_stream_memory::get_size): Implement this.
1260 (io_stream_memory::st_size): Delete this.
1261 * list.h: Change getnth into the [] operator.
1262 * netio.cc (NetIO::NetIO): Change prototype to reflect Purl not being modified.
1263 (NetIO::set_url): Ditto.
1264 (NetIO::open): Ditto.
1265 * netio.h: As for netio.cc.
1266 * nio-file.cc (NetIO_File::NetIO_File): Change prototype to reflect Purl not
1268 * nio-file.h: Ditto.
1269 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
1270 * nio-ftp.h (NetIO_FTP::NetIO_FTP): Ditto.
1271 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Ditto.
1272 * nio-http.h (NetIO_HTTP::NetIO_HTTP): Ditto.
1273 * nio-i5.cc (NetIO_IE5::NetIO_IE5): Ditto.
1274 * nio-i5.h (NetIO_IE5::NetIO_IE5): Ditto.
1275 * package_meta.cc (packagemeta::~packagemeta): Bugfix: use array delete.
1276 * package_source.cc (packagesource::set_canonical): Ditto.
1277 (packagesource::set_cached): Ditto.
1278 * package_source.h (site::~site): Ditto.
1279 * site.cc: Change site_list_type to a class, and search and replace sort_key to
1282 2001-12-01 Robert Collins <rbtcollins@hotmail.com>
1284 * package_source.cc (packagesource::set_canonical): Filename was out by one.
1286 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
1288 * Makefile.in (OBJS): Remove category_list - it's not needed.
1289 * README: More wishlist updates.
1290 * category.cc (Category::Category): Initialise new members.
1291 (Categorycmp): New function.
1292 * category.h (Category): New member key for template use.
1293 * category_list.cc: Remove.
1294 * category_list.h: Remove.
1295 (Categorycmp): New function prototype.
1296 * choose.cc: Remove category_list - not needed.
1297 (set_action): Only show the 'source' option when the source is actually
1299 (add_required): Fix recursion limiter to 5.
1300 (fill_missing_category): Use list access.
1301 (default_trust): Ditto.
1302 (pick_line::paint): Ditto.
1303 (_view::init_headers): Ditto.
1304 (_view::insert_pkg): Ditto.
1305 (_view::insert_category): Ditto.
1306 (_view::click): Ditto.
1307 (set_view_mode): Ditto.
1309 * cygpackage.h: Remove category_list - not needed.
1310 * geturl.cc (get_url_to_string): Fix null byte insertion.
1311 * inipatse.y: Remove category_list - not needed.
1312 (categories): Use list access.
1313 * package_db.cc: Ditto.
1314 * package_db.h: Remove category_list - not needed.
1315 (packagedb): Use the list template for categories.
1316 * package_meta.cc (add_category): Ditto.
1317 * package_meta.h (CategoryPackage): Link to the category as well.
1318 (packagemeta): Use a list of CategoryPackages instead of Categories
1319 for more memory efficient cross-referencing.
1321 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
1323 * package_db.cc (packagedb::flush): Write a canonical version for all packages
1324 irrespective of the media they were installed from.
1326 2001-11-29 Robert Collins <rbtcollins@hotmail.com>
1328 * Makefile.in (OBJS): Add package_source and rfc1738.
1329 * README: Wishlist update.
1330 * category_list.cc (register_category): Use references.
1331 * category_list.h (CategoryList): Ditto.
1332 * choose.cc (isinstalled): Remove.
1333 (pkgtrustp): New macro.
1334 (set_action): Use packagemeta.
1335 (add_required): Ditto.
1336 (choose_caption): Example package to choose caption, rather than state flags.
1337 (check_existence): Remove.
1338 (set_existence): Remove old code.
1339 (fill_missing_category): Use packagemeta.
1340 (keep_or_skip): Remove.
1341 (default_trust): Use packagemeta and set trust values directly.
1342 (pick_line::set_line): Use packagemeta.
1343 (_view::insert_pkg): Ditto.
1344 (_view::insert_category): Ditto.
1345 (_view::click): Ditto.
1346 (set_view_mode): Ditto. Also remove "exclude" code.
1347 (create_listview): Use packagemeta.
1348 (dialog_cmd): Ditto.
1349 (getpkgbyname): Remove
1350 (scan2): Use packagemeta. Temporarily comment out the holefinding code.
1351 (read_installed_db): Remove.
1352 (package_sort): Use packagemeta.
1353 (do_choose): Use packagemeta. Don't sort the packages - the db does that.
1354 * choose.h: Use packagemeta.
1355 * cygpackage.cc (cygpackage::cygpackage): Initialise all variables.
1356 (cygpackage::cygpackage): Ditto.
1357 (cygpackage::set_canonical_version): Copy the passed string.
1358 (cygpackage::~cygpackage): Move cleanup code to destroy().
1359 (cygpackage::destroy): New function.
1360 (cygpackage::getfirstfile): Use a separate buffer.
1361 (cygpackage::getnextfile): Ditto.
1362 (cygpackage::Canonical_version): New function.
1363 (cygpackage::set_sdesc): Ditto.
1364 (cygpackage::set_ldesc): Ditto.
1365 * cygpackage.h (cygpackage::Canonical_version): New method.
1366 (cygpackage::set_sdesc): New method.
1367 (cygpackage::set_ldesc): New method.
1368 (cygpackage::SDesc): New method.
1369 (cygpackage::LDesc): New method.
1370 (cygpackage::set_canonical_version): New method.
1371 * desktop.cc: Include packagedb headers.
1372 (make_password_group): Use packagemeta.
1373 * download.cc: Include packagedb headers.
1374 (check_for_cached): New method to find any cached file and fill out the database
1376 (download_one): Take a packagesource, support multiple mirrors.
1377 (do_download): Use packagemeta.
1378 * from cwd.cc: Include packagedb headers.
1379 (found_file): Use packagemeta.
1380 * ini.cc (do_ini): Beginning of multiple-mirror support.
1381 * ini.h (CategoryPackage): Remove.
1382 (Dependency): Remove.
1384 (new_package,getpkgbyname,getpackagecategorybyname,add_category): Remove.
1385 * inilex.l: Support multiple mirrors.
1386 * iniparse.y: Include packagedb headers.
1387 (parser): Use packagemeta.
1388 (new_package): Remove.
1389 (add_correct_version): New function.
1390 (new_requirement): Remove.
1391 (add_category): Remove.
1392 * install.cc (uninstall_one): Use packagemeta.
1393 (install_one_source): New function.
1394 (install_one): Use packagemeta.
1395 (do_install): Use packagemeta.
1396 * io_stream.cc (io_stream::move): Bugfix on move/copy case.
1397 * io_stream_cygfile.cc (io-stream_cygfile::set_mtime): Do not reopen the file
1398 after setting the mtime, it makes no sense, and results in 0 length files.
1399 * io_stream_file.cc (io-stream_file::set_mtime): Ditto.
1400 * list.h: New file, template class for a form of list.
1401 * package_db.cc (packagedb::registerpackage): New function.
1402 * package_db.h (packagedb::npackages ()): New method.
1403 * package_meta.cc (packagemeta::add_version): Use list template.
1404 (packagemeta::set_installed): Ditto.
1405 (packagemeta::add_category): New method.
1406 * package_meta.h: Include necessary headers to parse the class.
1407 (CategoryPackage): New class.
1408 (packagemeta): Initialise all members.
1409 (packagemeta::SDesc): New method.
1410 (packagemeta::Categories): New method.
1411 (packagemeta::add_category): Ditto.
1412 (packagemeta::versions): Change to be a list instance.
1413 * package_source.cc (packagesource::set_canonical): New method.
1414 (packagesource::set_cached): New method.
1415 * package_source.h: Include necessary headers to parse the class.
1417 (packagesource::packagesource): Initialize all members.
1418 (packagesource): Make this class non-abstract.
1419 * package_version.cc (packageversion::packageversion): New method.
1420 * package_version.h (Dependency): New class.
1421 (packageversion::Canonical_vesion): New method.
1422 (packageversion::SDesc): New method.
1423 (packageversion::LDesc): New method.
1424 (packageversion::new_requirement): Ditto.
1425 (packageversion::srcpicked, binpicked): What to install.
1426 (packageversion::src, bin): Installation source data.
1427 * rfc1738.cc: New file. Escapes special characters in URL's.
1430 2001-11-26 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1432 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Stop header parsing when
1433 SimpleSocket::gets() returns a zero-length string, so that we
1434 don't end up eating the entire stream thinking it's all header info.
1436 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
1438 * install.cc (badrename): Remove.
1439 (do_install): Use packagedb flush method to write /etc/setup/installed.db.
1440 * io_stream.cc (io_stream::move_copy): New method.
1441 (io_stream::move): New method.
1442 * io_stream.h (io_stream): New methods move and move_copy.
1443 * io_stream_cygfile.cc (io_stream_cygfile::move): New method.
1444 * io_stream_cygfile.h (io_stream_cygfile): New method move.
1445 * io_stream_file.cc (io_stream_file::move): New method.
1446 * io_stream_file.h (io_stream_file): New method move.
1447 * package_db.cc (packagedb::flush): New method.
1448 * package_db.h (packagedb): New method flush.
1450 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
1452 * Makefile.in (OBJS): Add package_version.
1453 * ategory.cc (Category::Category): Update constructors.
1454 * category_list.cc (CategoryList::register_category): Insert correctly.
1455 * choose.cc: Include package_version.h, not package.h.
1456 * cygpackage.cc: Ditto.
1457 (cygpackage::uninstall): New method.
1458 * cygpackage.h (cygpackage): Rename genericpackage to packageversion.
1459 New method uninstall.
1460 * hash.cc (add, has, enumerate): Change prototype to be accurate.
1461 * hash.h (hash): Change prototypes to be accurate.
1462 * ini.h (_Info): New parameterless constructor.
1463 (CategoryPackage): New constructor.
1465 * install.cc: Don't include unneeded headers.
1466 Include package database headers.
1467 (hash::add_subdirs): Remove.
1468 (uninstall_one): Use packagemeta->uninstall to perform the uninstallation.
1469 Don't uninstall source packages.
1470 (do_install): Just can uninstall_one once as we ignore source packages now.
1471 Don't copy the installed.old database accross, instead iterate through the
1472 packagedb packages list and write the isntalled packages out.
1473 * package_db.cc: Include package_version.h, not package.h.
1474 (packagedb::packagedb): Never let db be undefined.
1475 Record the installation filename, so we can reconstruct installed.db.
1476 (packagedb::addpackage): Insert packages in alpha sorted order.
1477 (packagedb::categories): Initialise correctly.
1478 * package_meta.cc: Include win32 and mount headers as a workaround to
1479 current io_stream limitations. Include a TODO about that.
1480 (standard_dirs): New, from install.cc.
1481 (hash::add_subdirs): New, from install.cc.
1482 (packagemeta::set_installed): Rename genericpackage to packageversion.
1483 (packagemeta::uninstall): New method.
1484 * package_meta.h: Rename genericpackage to packageversion.
1485 (packagemeta): Update constructor.
1486 (add_version, set_installed): Rename genericpackage to packageversion.
1487 (uninstall): New method.
1488 (installed_from): New member.
1489 * package_source.cc: New file.
1490 * package_source.h: New file.
1491 * package_version.cc: New file.
1492 * package_version.h: New file.
1493 * package.cc: Removed.
1494 * package.h: Removed.
1496 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
1498 * Makefile.in (OBJS): Add category.o and category_list.o.
1499 * category.h: New file.
1500 * category.cc: New file.
1501 * category_list.h: New file.
1502 * category_list.cc: New file.
1503 * choose.cc: Include category headers.
1504 (fill_missing_category): Use package_db to access global categories.
1505 (_view::insert_pkg): Ditto.
1506 (_view::insert_category): Ditto.
1507 (set_view_mode): Ditto.
1508 (getcategorybyname): Remove.
1509 * cygpackage.h: Include category_list.h to parse this correctly.
1510 (cygpackage): New virtual &Categories.
1511 * ini.h (_CategoryPackage): More C to C++ conversion.
1513 (getcategorybyname): Remove.
1514 (register_category): Remove.
1515 * iniparse.y: Include package db and category headers.
1516 (categories): Use package_db to access global categories.
1518 (ncategories): Remove.
1519 (register_category): Remove.
1520 * package.h: New virtual &Categories.
1521 * package_db.cc (packagedb::packagedb): Don't read the installed db twice.
1522 (packagedb::categories): Declare.
1523 * package_db.h (packagedb): New member categories for global categories list.
1525 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
1527 * choose.h: Don't include ini.h
1528 * ini.h: Allow pure c++ in the header file.
1530 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
1532 * install.cc (do_install): Write a version 2 installed.db file.
1533 * package_db.cc (packagedb::packagedb): Read version 1 and 2 installed.db files.
1535 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
1537 * Makefile.in (OBJS): Add package abstraction objects.
1538 * choose.cc: Include package abstraction headers.
1539 (read_installed_db): Use packagedb class and ignore installed sources.
1540 * cygpackage.cc: New file.
1541 * cygpackage.h: New file.
1542 * filemanip.h (get_file_size): Use unixy types.
1543 * package.h: New file.
1544 * package.cc: New file.
1545 * package_db.cc: New file.
1546 * package_db.h: New file.
1547 * package_meta.cc: New file.
1548 * package_meta.h: New file.
1550 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
1552 * REAME: Updates to wishlist.
1554 2001-11-16 Robert Collins <rbtcollins@hotmail.com>
1556 * README: Updated and added my list of wishlist and todo items.
1558 2001-11-14 Robert Collins <rbtcollins@hotmail.com>
1560 * Makefile.in (OBJS): Include io_stream_memory in setup.exe.
1561 * archive_tar.cc (archive_tar::write): New prototype.
1562 (archive_tar::seek): New method.
1563 * archive.h (archive_tar_file): Update write() and add seek().
1564 (archive_tar): Ditto.
1565 * archive_tar_file.cc (archive_tar_file::write): New prototype.
1566 (archive_tar_file::seek): New method.
1567 * compress_bz.cc (compress_bz::write): New prototype.
1568 (compress_bz::seek): New function.
1569 * compress_bz.h (compress_bz): Update write() and add seek().
1570 * compress_gz.cc (compress_gz::write): New prototype.
1571 (compress_gz::seek): New function.
1572 * compress_gz.h (compress_gz): Update write() and add seek().
1573 * geturl.cc: Include io_stream headers.
1575 (get_url_to_string): Use a io_stream_memory buffer instead of GUBuf.
1576 * io_stream.h (io_stream_seek_t): New enum.
1577 (io_stream): Update write() and add seek().
1578 * io_stream_cygfile.cc (io_stream_cygfile::write): New prototype.
1579 (io_stream_cygfile::seek): New function.
1580 * io_stream_cygfile.h (io_stream_cygfile): Update write() and add seek().
1581 * io_stream_file.cc (io_stream_file::write): New prototype.
1582 (io_stream_file::seek): New function.
1583 * io_stream_file.h (io_stream_file): Update write() and add seek().
1585 2001-11-13 Brian Keener <bkeener@thesoftwaresource.com>
1587 * localdir.cc: Add headers unistd.h and port.h.
1588 (save_local_dir): Expand search logic to include local directory for
1589 location of file last-cache.
1590 (dialog_cmd): Skip IDD_ROOT when downloading and use Back button.
1591 (do_local_dir): Expand search logic to include local directory for file
1593 * res.rc (IDD_CHOOSE_DIALOG): Add hotkey to View button.
1594 * Source.cc (dialog_cmd): Skip IDD_ROOT if select Download from
1596 (do_source): Default to Install from Internet on first entry or
1597 previous selection if backing up from IDD_ROOT or IDD_LOCAL_DIR.
1599 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
1601 * choose.cc (find_tar_ext): Only match at the end of the string.
1602 (getpkgbyname): Prevent NULL pointer dereference.
1604 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
1606 * Makefile.in (CFLAGS): Add warnings and -Werr.
1607 (WARNONLY_FLAGS): For sources that produce (harmless) errors no matter what.
1608 (OBJS): Add io_stream class' objects.
1609 (autoload.o): Use WARNONLY_FLAGS.
1611 (iniparse.o): Ditto.
1612 * archive.cc: New file.
1613 * archive.h: New file.
1614 * archive_tar.cc: New file.
1615 * archive_tar.h: New file.
1616 * archive_tar_file.cc: New file.
1617 * autoload.c: Fix compiler warnings (unused, deprecated conversion).
1618 * choose.cc: Use io_stream.h, not mount.h.
1620 (find_tar_ext): Rewritten to use strstr, and to accept .tar as an extension.
1621 (read_installed_db): Use io_streams.
1622 * choose.h: Run indent.
1623 * compress.cc: New file.
1624 * compress.h: New file.
1625 * compress_bz.cc: New file.
1626 * compress_bz.h: New file.
1627 * compress_gz.cc: New file.
1628 * compress_gz.h: New file.
1629 * concat.cc: Run indent.
1630 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1631 * concat.h: Run indent.
1632 * desktop.cc: Run indent.
1633 Include mklink2.h rather than redefining by hand.
1634 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1635 (etc_profile): Fix compiler warning (deprecated conversion).
1636 (make_link): Fix compiler warning (deprecated conversion).
1637 Tidy up use of args variable - consolidate into argbuf.
1638 (start_menu): Fix compiler warning (deprecated conversion).
1639 (desktop_icon): Fix compiler warning (deprecated conversion).
1640 (make_etc_profile): Fix compiler warning (deprecated conversion).
1641 (uexists): Fix compiler warning (deprecated conversion).
1642 (check_desktop): Fix compiler warning (deprecated conversion).
1643 (check_startmenu): Fix compiler warning (deprecated conversion).
1644 * dialog.cc: Run indent.
1645 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1646 (fatal): Fix compiler warning (deprecated conversion).
1647 * dialog.h: Run indent.
1648 * diskfull.cc: Run indent.
1649 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1650 * download.cc: Run indent.
1651 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1652 (download_one): Fix compiler warning (signed vs unsigned comparison).
1653 * filemanip.h: Run indent.
1654 * find.cc: Run indent.
1655 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1656 (find): Fix compiler warning (deprecated conversion).
1657 * find.h: Run indent.
1658 * fromcwd.cc: Run indent.
1659 * geturl.cc: Run indent.
1660 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1661 (dialog_cmd): Return a value.
1662 (dialog_proc): Remove unused variables.
1664 (get_url_to_file): Fix compiler warning (deprecated conversion).
1665 * geturl.h: Run indent.
1666 * hash.cc: Run indent.
1667 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1668 * hash.h: Run indent.
1669 * ini.cc: Run indent.
1671 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1672 (do_ini): Use io_streams for local io.
1673 * ini.h: Run indent.
1674 * inilex.l (ignore_line): Fix compiler warning (is not a prototype).
1675 Fix compiler warning (brackets for truth assignment).
1676 * install.cc: Run indent.
1677 Fix compiler warning (/* in comment).
1679 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1680 (dialog_cmd): Return a value.
1681 (dialog_proc): Return a value.
1682 (start_tics): Deleted - was unused.
1683 (badrename): Fix compiler warnings (unused, deprecated conversion).
1684 (standard_dirs): Fix compiler warning (deprecated conversion).
1686 (uninstall_one): Convert to io_streams.
1687 (install_one): Convert to io_streams.
1688 (do_install): Convert to io_streans.
1689 Fix compiler warning (deprecated conversion).
1690 * io_stream.cc: New file.
1691 * io_stream.h: New file.
1692 * io_stream_cygfile.cc: New file.
1693 * io_stream_cygfile.h: New file.
1694 * io_stream_file.cc: New file.
1695 * io_stream_file.h: New file.
1696 * localdir.cc: Run indent.
1698 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1699 (get_root_dir_now): Remove.
1700 (save_local_dir): Convert to io_streams.
1701 (dialog_cmd): Return a value.
1702 (do_local_dir): Convert to io_streams.
1703 (log.cc): Run indent.
1704 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1705 (log): Fix compiler warning (deprecated conversion).
1706 (log_save): Fix compiler warning (deprecated conversion).
1707 * log.h: Run indent.
1708 (log): Fix compiler warning (deprecated conversion).
1709 (log_save): Fix compiler warning (deprecated conversion).
1710 * main.cc: Run indent.
1711 Don't include "netio.h".
1712 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1713 (netio_test): Remove.
1714 (sid_auth): Fix compiler warning (partially bracketed initialiser).
1715 (WinMain): Return a value.
1716 * mkdir.cc: Run indent.
1717 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1718 * mklink2.c: Run indent.
1719 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1720 (mkcygsymlink): New function.
1721 * mklink2.h: New file.
1722 * mount.cc: Run indent.
1723 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1724 (create_mount): Remove unused variables.
1725 (cygpath): Fix compiler warning (signed vs unsigned comparison).
1726 * mount.h: Run indent.
1727 * msg.cc: Run indent.
1728 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1729 (msg): Fix compiler warning (deprecated conversion).
1730 (mbox): Fix compiler warning (deprecated conversion).
1731 * msg.h: Run indent.
1732 (msg): Fix compiler warning (deprecated conversion).
1733 * net.cc: Run indent.
1734 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1735 (dialog_cmd): Return a value.
1736 * netio.cc: Run indent.
1737 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1738 (auth_cmd): Return a value.
1739 * netio.h: Run indent.
1740 * nio-file.cc: Run indent.
1741 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1742 (NetIO_File::NetIO_File): Fix compiler warning (deprecated conversion).
1743 * nio-file.h: Run indent.
1744 * nio-ftp.cc: Run indent.
1745 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1746 * nio-ftp.h: Run indent.
1747 * nio-http.cc: Run indent.
1748 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1749 * nio-http.h: Run indent.
1750 * nio-ie5.cc: Run indent.
1751 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1752 * nio-ie5.h: Run indent.
1753 * other.cc: Run indent.
1754 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1755 (dialog_cmd): Return a value.
1756 * port.h: Run indent.
1757 * postinstall.cc: Run indent.
1758 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1759 (cmd): Fix compiler warning (deprecated conversion).
1760 (eun): Fix compiler warning (deprecated conversion).
1761 * root.cc: Run indent.
1762 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1763 * simpsock.cc: Run indent.
1764 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1765 * simpsock.h: Run indent.
1766 * site.cc: Run indent.
1768 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1769 (get_root_dir_now): Remove.
1770 (save_site_url): Convert to io_streams.
1771 (dialog_cmd): Return 0.
1772 (get_initial_list_idx): Convert to io_streans.
1773 * source.cc: Run indent.
1774 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1775 (check_if_enable_next): Remove.
1776 (load_dialog): Remove unused variables.
1777 (save_dialog): Ditto.
1778 (dialog_cmd): Return a value.
1779 * splash.cc: Return a value.
1780 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1781 (dialog_cmd): Return a value.
1782 * state.cc: Run indent.
1783 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1784 * state.h: Run indent.
1788 2001-11-12 Christopher Faylor <cgf@redhat.com>
1790 * desktop.cc (start_menu): Change start menu name to "Cygwin".
1791 (check_startmenu): Ditto.
1793 2001-11-11 Christopher Faylor <cgf@redhat.com>
1795 * choose.cc (parse_filename): Finish reorganization by correctly
1796 decrementing p in memmove.
1798 2001-11-11 Christopher Faylor <cgf@redhat.com>
1800 * choose.cc (parse_filename): Reorganize code to work around gcc
1801 optimization problem.
1803 2001-11-09 Gareth Pearce <tilps@hotmail.com>
1805 * choose.cc (set_action): Allow skip as an option for installed
1806 packages that have version number not listed in setup.ini.
1808 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
1810 * choose.cc (set_cation): Backout last change.
1811 (choose_caption): Ditto.
1813 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
1815 * ini.h (actions): Remove - transferred to choose.h.
1817 * choose.h: Protect class's from "C" compilers.
1818 (actions): New enum, from ini.h. This may not be the 'right' place
1819 but that place doesn't exist yet.
1820 (_views): New enum, from ini.h.
1821 * choose.cc (set_action): Handle installed packages with a version not in
1823 (choose_caption): Ditto.
1824 * iniparse.y: Rearrange header order to handle new ini.h.
1826 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
1828 * ini.h (_Info): Fix compiler warnings (signed vs unsigned comparison).
1829 (registry_category): Fix compiler warning (deprecated conversion).
1830 * iniparse.y (registry_category): Ditto.
1831 * choose.cc (cvsid): Fix compiler warnings (unused, deprecated conversion).
1832 (add_requried): Remove unused variable.
1833 (choose_caption): Handle all enumeration values via a default.
1834 (paint): Fix compiler warnings (unused, deprecated conversion).
1835 (scroll_common): Fix compiler warnings (unused, signed vs unsigned comparison).
1836 (list_clicK): Fix compiler warnings (signed vs unsigned comparison).
1837 (note_width): Fix compiler warnings (deprecated conversion).
1838 (keep_or_skip): Fix compiler warnings (unused).
1839 (_view::mode_caption): Fix compiler warnings (deprecated conversion).
1840 (set_view_mode): Fix compiler warnings (unused).
1841 (create_listview): Fix compiler warnings (unused, incorrect format, reaches
1843 (dialog_proc): Fix compiler warnings (unused).
1844 (read_installed_db): Fix compiler warnings (unused, deprecated conversion).
1845 * choose.h (_header): Fix compiler warnings (deprecated conversion).
1848 2001-11-08 Pavel Tsekov <ptsekov@syntrex.com>
1850 * simpsock.h (SimpleSocket::invalidate): Declare new method.
1851 * simpsock.cc (SimpleSocket::invalidate): Implement new method.
1852 (SimpleSocket::SimpleSocket): Initialize buf to zero. Do not allocate
1853 memory for buf in the constructor.
1854 (SimpleSocket::~SimpleSocket): Use SimpleSocket::invalidate().
1855 (SimpleSocket::printf): Use SimpleSocket::write() instead of send().
1856 (SimpleSocket::write): Check object consistency - return -1 on error.
1857 invalidate() the object on socket write error.
1858 (SimpleSocket::fill): Check object consistency - return -1 on error.
1859 invalidate() the object if socket read error is encountered and there
1860 is no more data available in the internal read buffer.
1861 Allocate memory for the internal read buffer.
1862 (SimpleSocket::gets): Return zero (NULL pointer) if error is encountered
1863 during fill() and no more data is available in the internal read buffer.
1864 (SimpleSocket::read): Check object consistency - return -1 on error.
1865 invalidate() the object if socket read error is encountered.
1866 * nio-ftp.cc (NetIO_FTP:NetIO_FTP): Allow 125 as valid response code to
1867 the RETR command (fix for MS IIS ftp server 5 - possibly others too).
1868 (NetIO_FTP::ok): Check if the SimpleSocket object is ok().
1869 (NetIO_FTP::read): Use NetIO_FTP::ok().
1870 * nio-http.cc: Check for valid return value of SimpleSocket::gets().
1871 (NetIO_HTTP::ok): Check if the SimpleSocket object is ok().
1873 2001-11-09 Robert Collins <rbtcollins@hotmail.com>
1875 * simpsock.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
1876 (SimpleSocket::SimpleSocket): Avoid compiler warnings (deprecated conversion).
1877 (SimpleSocket::printf): Ditto.
1878 (SimpleSocket::write): Ditto.
1879 * simpsock.h (SimpleSocket): Avoid compiler warnings for constructor,
1881 * nio-ftp.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
1882 (NetIO_FTP::NetIO_FTP): Remove unused variable done.
1883 * nio-http.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
1885 2001-11-07 Charles Wilson <cwilson@ece.gatech.edu>
1887 * geturl.cc (get_url_to_string): clean up memory leak
1888 (get_url_to_file): ditto
1890 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
1892 * localdir.cc (dialog_cmd): Go back to IDD_ROOT in every case.
1893 * source.cc (dialog_cmd): Go forward to IDD_ROOT in every case.
1895 2001-11-06 Pavel Tsekov <ptsekov@syntrex.com>
1897 * fromcwd.cc (found_file): Free() memory containing the version and
1898 filepath information for a given package, before replacing the pointers which
1899 reference this memory.
1901 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
1903 * fromcwd: Fix compiler warnings for cvsid.
1904 (canonicalize_version): Fix compilter warnings.
1905 (do_fromcwd): Ditto.
1906 * version.h: Fix compiler warnings for canonicalize_version.
1908 2001-11-03 Robert Collins <rbtcollins@hotmail.com>
1910 * res.rc (IDD_CHOOSE): Move the view caption to the right hand side.
1912 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1914 * res.rc (IDD_CHOOSE): Tweak for use on a 640x480 screen.
1916 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1918 * choose.cc (set_action): Correctly allow skip for any uninstalled package.
1920 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1922 * choose.cc (default_trust): Change the "Required" forced install category to
1925 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1927 * choose.cc: Ran indent.
1928 (set_action): When the requested trust level is missing and the level was not
1929 user requested, set the action to ACTION_SAME_CURR.
1931 2001-11-01 Christopher Faylor <cgf@redhat.com>
1933 * Makefile.in (mingw_getopt.o): Fix typo in non-verbose compilation.
1935 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1937 * choose.cc (_view::init_headers): Resync with the paint logic.
1939 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1941 * choose.cc (add_required): Allow SKIP and SRC_ONLY for currently installed
1944 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1946 * choose.cc (default_trust): Autoset currently installed packages per the user's
1947 selection of prev/curr/exp.
1949 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1951 * splash.cc (dialog_proc): Return TRUE as specified in the WIN32 API.
1953 2001-11-02 Pavel Tsekov <ptsekov@syntrex.com>
1955 * geturl.cc (is_showing): Remove.
1956 (is_local_install): New static variable. Controls whether the
1957 progress dialog and the supporting thread will be created.
1958 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the WIN32 API.
1959 (init_dialog): Remove usage of SetForegroundWindow and is_showing.
1960 This prevents the progress dialog to gain control over the
1961 application and fixes the "setup.exe going to background" problem.
1962 (progress): Use is_local_install.
1963 (get_url_to_string): Set is_local_install.
1964 (dismiss_url_status_dialog): Use is_local_install.
1965 * install.cc (dialog_proc): Return TRUE as specified in WIN32 API.
1966 (init_dialog): Remove usage of SetForegroundWindow.
1967 This prevents the progress dialog to gain control over the
1968 application and fixes the "setup.exe going to background" problem.
1970 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1972 * choose.cc (list_click): Change r to row for clarity.
1973 When we shrink the list below 1 page, scroll to the top of the list.
1974 (_view::click): Return the actual change for contractions.
1975 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the Win32 API.
1977 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1979 * choose.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
1980 * localdir.cc: Ran indent.
1981 (get_root_dir_now): New function.
1982 (save_local_dir): New function.
1983 (dialog_cmd): Use it and swap cygwin root selection and local dir selection order.
1984 (do_local_dir): If there is a saved local dir, read it in.
1985 * net.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
1986 * root.cc (dialog_cmd): Ditto.
1987 * source.cc (dialog_cmd): Ditto.
1989 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
1991 * choose.cc(list_vscroll): Return 0 as required by win32.
1992 (list_hscroll): Ditto.
1993 (list_click): Ditto.
1995 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
1999 * main.cc(WinMain): Use __argv to retrieve command line parameters.
2000 * Makefile,in: Remove argv.o.
2002 2001-11-01 Matt Hargett <matt@use.net>
2004 * geturl.cc (progress): Change int to unsigned int to eliminate
2006 * (get_url_to_string): Check for NULL pointer.
2007 * mount.cc (find2): Use free instead of delete for malloc'd
2009 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Fix memory leak.
2011 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
2013 * choose.cc(_view::insert_under): Handle linen > nlines and lines[linen] with neither
2014 a package nor a category. The lines[linen] bug was reported by Matt (matt@usa.net).
2015 (read_installed_db): Bugfix for testing whether a package has a source tarball.
2016 Reported by Matt (matt@usa.net).
2017 * geturl.cc(dialog): Rename gw_dialog to local_gw_dialog to avoid programmer
2018 confusion and lint errors. Reported by Matt (matt@usa.net).
2020 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
2022 * argv.cc: New file, converts arguments for -mwindows programs. (Simplified derivation
2025 * Makefile,in: Add argv.o and mingw_getopt.o to setup.exe object list.
2026 Add mingw_getopt.o build rule.
2027 * main.cc(WinMain): Initialise argv and argc for use by getopt.
2029 2001-10-27 Christopher Faylor <cgf@redhat.com>
2031 * res.rc: Rearrange info on top line slightly.
2033 2001-10-27 Christopher Faylor <cgf@redhat.com>
2035 * desktop.cc (make_passwd_group): Move file creation earlier in the
2036 process to ensure that passwd-grp.bat reflects desired operation.
2038 2001-27-10 Trevor Forbes <t4bs@hotmail.com>
2040 * postinstall.cc (each): Remove "*.done" file else rename will fail.
2042 2001-10-16 Christopher Faylor <cgf@redhat.com>
2044 * res.rc: Oops. Take 640x480 screen size into account.
2046 2001-10-16 Christopher Faylor <cgf@redhat.com>
2048 * res.rc: Enlarge chooser screen.
2050 2001-10-12 Christopher Faylor <cgf@redhat.com>
2052 * Makefile.in: Accomodate changes to w32api_include macro.
2054 2001-10-12 Christopher Faylor <cgf@redhat.com>
2056 * Makefile.in: Use correct flags for windres.
2058 2001-10-12 Christopher Faylor <cgf@redhat.com>
2060 * Makefile.in (CFLAGS): Remove -nostdinc from CFLAGS.
2062 2001-10-12 Christopher Faylor <cgf@redhat.com>
2064 * choose.cc (pick_line::paint): Reorganize after botched patch.
2066 2001-10-12 Christopher Faylor <cgf@redhat.com>
2068 * choose.cc (pick_line::paint): Add missing declaration.
2070 2001-10-10 Ralf Habacker <Ralf.Habacker@freenet.de>
2072 * choose.cc (pick_line::paint): Add package name to sdesc for display.
2074 Wed Sep 26 21:39:00 Robert Collins rbtcollins@hotmail.com
2076 * choose.cc (_view::insert_pkg): Correctly exit loop.
2077 * iniparse.y (register_category): Always insert new categories.
2079 Fri Sep 21 13:56:32 2001 Christopher Faylor <cgf@cygnus.com>
2081 * inilex.l (yylex): For comments, eat all characters up to, but not
2084 Sun Aug 26 12:50:01 2001 John Marshall <jmarshall@acm.org>
2086 * fromcwd.cc (found_file): Use correct package name when adding an
2087 unknown package rather than random stack garbage.
2089 Sun Aug 12 14:25:21 2001 Christopher Faylor <cgf@cygnus.com>
2091 * desktop.cc (make_passwd_group): .bat files need \r\n endings.
2093 Wed Aug 8 13:53:47 2001 Christopher Faylor <cgf@cygnus.com>
2095 * desktop.cc (etc_profile): Leave environment variables untouched.
2097 2001-08-07 Corinna Vinschen <corinna@vinschen.de>
2099 * autoload.c: Add dynamic load statements for NT/W2K
2100 advapi32 functions not available in 9x/ME.
2101 * main.cc (set_default_dacl): New function.
2102 (WinMain): Call `set_default_dacl' if running on NT/W2K.
2104 Sat Aug 4 21:35:53 2001 Christopher Faylor <cgf@cygnus.com>
2106 * ini.h (_CategoryPackage): Change pkg field to pkgname for
2108 * choose.cc: Use pkgname field when referencing _CategoryPackage
2110 (fill_missing_category): Don't add excluded packages.
2111 (default_trust): Ditto.
2112 (_view::insert_pkg): Ditto.
2113 * iniparse.y (register_category): Use consistent variable name.
2115 2001-07-09 Egor Duda <deo@logos-m.ru>
2117 * choose.cc: Use system foreground color for text output.
2119 Sat Jul 7 00:40:28 2001 Christopher Faylor <cgf@cygnus.com>
2121 * choose.cc (set_action): Use default trust for determining reinstall
2123 (default_trust): Set default trust.
2124 (pick_line::paint): Allow source selection when reinstalling or
2127 Fri Jul 6 18:08:49 2001 Christopher Faylor <cgf@cygnus.com>
2129 * choose.cc (isinstalled): Modify to properly accomodate special case
2131 (set_action): Check downloaded components, not installed components if
2133 (set_existence): Always include full list of files when "download
2136 Fri Jul 6 00:37:05 2001 Christopher Faylor <cgf@cygnus.com>
2138 * choose.cc (pick_line::paint): Properly display "na" field when no
2141 Thu Jul 5 00:34:23 2001 Christopher Faylor <cgf@cygnus.com>
2143 * choose.cc (scan2): Ensure that older versions do not show up in
2146 Mon Jul 2 15:47:59 2001 Christopher Faylor <cgf@cygnus.com>
2148 * choose.cc (set_action): Allow "Skip" action if trust != installed.
2149 * res.rc: Fix copyright.
2151 Sat Jun 30 14:05:21 2001 Michael A Chase <mchase@ix.netcom.com>
2153 * res.rc (IDD_LOCAL_DIR): Change caption to match the other dialog
2155 (IDD_CHOOSE): Adjust horizontal size so package names are visible.
2157 * choose.cc: Restore some more changes from 2001-06-25, throughout.
2158 (paint): Wrap some excessively long lines.
2159 (pick_line::paint): Ditto. Move the arrow in the "Current" column
2160 right to where it belongs. Move the source checkbox slightly to the
2162 (do_choose): List categories and required packages in setup.log.full.
2164 Sat Jun 30 23:04:59 2001 Christopher Faylor <cgf@cygnus.com>
2166 * choose.cc (scan2): Restore source scanning eliminated by previous checkin.
2168 Sat Jun 30 15:18:33 2001 Christopher Faylor <cgf@cygnus.com>
2170 * ini.h (struct _Info): Add "derived" element.
2171 * choose.cc (scan2): Try to place unknown tar files into proper slot
2172 when package exists in setup.ini but tar file does not.
2174 Sat Jun 30 13:39:00 2001 Robert Collins <rbtcollins@hotmail.com>
2176 * choose.cc (create_listview): Call set_view_mode with VIEW_CATEGORY.
2177 (do_choose): Log the first category name.
2179 Fri Jun 29 23:07:44 2001 Christopher Faylor <cgf@cygnus.com>
2181 *ini.h: Reapply 2001-06-25 changes.
2182 * choose.cc (add_required): Ditto. Default to "Keep" state if
2183 UNINSTALL and product is installed. Default to curr state if SKIP,
2185 (keep_or_skip): New function. Returns skip or keep state depending on
2186 installed state of package.
2187 (default_trust): Use keep_or_skip to set state.
2188 (_view::insert_pkg): Use calloc to allocate lines.
2189 (set_view_mode): Adapt 2001-06-25 change to set_full_list here.
2191 Sat Jun 30 11:01:00 2001 Robert Collins <rbtcollins@hotmail.com>
2193 * choose.cc: Remove globals full_list, headers, package_indexes and
2195 Add globals cat_headers, pkg_headers and chooser.
2196 (add_required): New function.
2197 (paint): Use the chooser for header details.
2198 Call into the chooser to paint each line.
2199 (list_click): Use new global variables.
2200 Call into the chooser to handle the click.
2201 Repaint the entire view if packages have been added or removed.
2202 (note_width): Get passed a headers struct rather than using a global
2204 (fill_missing_category): New function.
2205 (default_trust): Skip non-"Required" or "Misc" packages.
2206 (pick_line::set_line (Package *)): New function.
2207 (pick_line::set_line (Category *)): New function.
2208 (pick_line::paint): New function.
2209 (pick_line::click): New function.
2210 (_view::_view): New function.
2211 (_view::set_view_mode): New function.
2212 (_view::mode_caption): New function.
2213 (_view::set_headers): New function.
2214 (_view::init_header): New function.
2215 (_view::insert_pkg): New function.
2216 (_view::insert_category): New function.
2217 (_view::insert_at): New function.
2218 (_view::insert_under): New function.
2219 (_view::clear_view): New function.
2220 (viewsplusplus): New function.
2221 (_view::client): New function.
2222 (set_view_mode): Use new chooser functionality.
2223 (set_full_list): Use new global variables.
2224 (create_listview): Instantiate chooser.
2225 Remove all hardcoded headers[] code.
2226 (dialog_cmd): On trust changes, check dependencies.
2227 (getcategorybyname): New function.
2228 (getpackagecategorybyname): New function.
2229 (scan2): Use case-insensitive package comparison.
2230 (do_choose): Use fill_missing_category ().
2231 Show some category data.
2232 * ini.h: Protect against multiple inclusion.
2234 (_CategoryPackage): New struct.
2235 (_Category): New struct.
2236 (_Package): Change category to Category * from char *.
2237 (extern Category category): New global variable.
2238 (extern in ncategories): Ditto.
2239 (getcategorybyname): New prototype.
2240 (catpackagecategorybyname): New prototype.
2241 (register_category): New prototype.
2242 (add_category): New prototype.
2243 * iniparse.y: Parse multiple categories per package.
2244 (category): New global variable.
2245 (ncategories): New global variable.
2246 (new_package): Compare package against NULL, not 0.
2247 (new_requirement): Source formatting fix.
2248 (register_category): New function.
2249 (add_category): New function.
2250 * res.rc: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
2251 IDC_CHOOSE_VIEWCAPTION: New control.
2252 * resource.h: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
2253 IDC_CHOOSE_VIEWCAPTION: New control.
2254 Increment _APS_NEXT_CONTROL_VALUE.
2256 Mon Jun 25 00:56:37 2001 Michael A Chase <mchase@ix.netcom.com>
2258 * choose.cc (paint): Wrap excessively long lines.
2259 (list_click): Ditto.
2260 (create_listview): Ditto.
2261 (do_choose): Ditto. Replace TABs and remove CRs in lines written to
2262 setup.log.full. Allow "Yes" for source exists in setup.log.full when
2263 installing from local directories.
2265 Mon Jun 25 00:56:37 2001 Christopher Faylor <cgf@cygnus.com>
2267 * choose.cc (set_action): Only clear srcpicked when moving to next
2268 state. Allow source installation if it exists in the current "trust"
2269 state. Don't move to skip state when package is installed.
2270 (list_click): Don't allow source clicking when no source is available.
2271 (set_full_list): Display package when not is_full_action.
2272 * ini.h (is_full_action): Define.
2274 Sun Jun 17 12:06:14 2001 Christopher Faylor <cgf@cygnus.com>
2276 * install.cc (check_for_old_cygwin): New function. First stab at
2277 checking for old cygwin versions.
2278 (do_install): Call check_for_old_cygwin if there were no errors during
2281 Sat Jun 16 11:33:51 2001 Michael A Chase <mchase@ix.netcom.com>
2283 * choose.cc (_Info::_Info): Test _source paramenter for non-NULL rather
2284 than zeroed "source" element.
2286 Fri Jun 15 20:54:43 2001 Christopher Faylor <cgf@cygnus.com>
2288 * choose.cc (scan2): Insert unknown tar archives, found on disk, into
2289 the highest available "hole" in the trust array.
2291 Fri Jun 15 00:20:48 2001 Christopher Faylor <cgf@cygnus.com>
2293 * choose.cc (set_existence): Use pointer method for indexing in trust
2295 (create_listview): Ditto.
2296 (scan2): Ditto. Also, use consistent variable name for indexing into
2298 * ini.h (Package): Reorganize info array for easier scanning.
2300 Fri Jun 15 00:01:51 2001 Christopher Faylor <cgf@cygnus.com>
2302 * choose.cc (isinstalled): Eliminate special download only test.
2303 (set_action): Don't move to next state if in ACTION_SAME range and not
2305 (choose_caption): Display "Retrieve" rather than "Reinstall" when just
2307 (do_choose): Sort packages after all packages have been read.
2308 Accomodate the fact that first element in trust array is empty so that
2309 log files don't report the wrong trust value.
2310 * iniparse.y (new_package): Malloc space for package name or suffer
2313 Thu Jun 14 22:43:59 2001 Robert Collins <rbtcollins@hotmail.com>
2315 * ini.h (Dependency): New structure. Declare new function.
2316 * inilex.l (yylex): Detect new setup.ini options - category and requires.
2317 * iniparse.y: Declare new setup.ini token values.
2318 (yyparse): Parse new token values.
2319 (new_requirement): New function.
2321 Thu Jun 14 22:43:26 2001 Christopher Faylor <cgf@cygnus.com>
2323 * choose.cc (read_installed_db): Eliminate obsolete code.
2325 Thu Jun 14 22:11:53 2001 Christopher Faylor <cgf@cygnus.com>
2327 * choose.cc (set_action): Set trust on "redo".
2328 (_Info::_Info): New constructor.
2329 (read_installed_db): Use new constructor. Use trusts type for
2331 * ini.h (struct _Info): Label struct, add constructor.
2332 (Package): Make installed_ix a type 'trusts.'
2333 * install.cc (uninstall_one): Unset any installed info for current
2335 (install_one): Allocate new Info struct for installed reflecting new
2337 (do_install): Don't output line to installed.db if package is being
2340 Thu Jun 14 20:33:01 2001 Robert Collins <rbtcollins@hotmail.com>
2342 * choose.cc (getpkgbyname): Use consistent method for scanning package
2345 Wed Jun 13 23:33:08 2001 Christopher Faylor <cgf@cygnus.com>
2347 * choose.cc: Add some comments.
2348 (getpkgbyname): Use strcasecmp for comparisons.
2350 Wed Jun 13 16:07:00 2001 Christopher Faylor <cgf@cygnus.com>
2352 * install.cc (do_install): Avoid checking for download action if
2353 package wasn't currently retrieved.
2355 Wed Jun 13 11:27:22 2001 Christopher Faylor <cgf@cygnus.com>
2357 * choose.cc: Eliminate extra array throughout. Use element in package
2358 structure instead. Use pointers rather than array indexes where
2360 (set_action): New function to set next action based on current.
2361 (choose_caption): New function. Returns display caption.
2362 (check_existence): Change arguments. Use pointer to 'info' structure.
2363 (set_existence): Use pointer rather than array index.
2364 (default_trust): Use trusts enum for second argument.
2365 (set_full_list): Honor exclude element in package structure.
2366 (build_labels): Eliminate.
2367 (base): Make global. Use const char * argument.
2368 (get_package_version): Eliminate.
2369 (getpkgbyname): New function.
2370 (read_installed_db): Use parse_filename to get version info.
2371 * desktop.cc (make_passwd_group): Use getpkgbyname function.
2372 * download.cc (get_file_size): const argument.
2373 (do_download): Use is_download_action to determine when something
2374 should be downloaded.
2375 * filemanip.h: Add some functions.
2376 * ini.cc (do_ini): Use NULL rather than 0 for pointer assignment.
2377 * ini.h: Use enums for actions and trusts.
2378 (is_download_action): New macro.
2379 (is_upgrade_action): Ditto.
2380 (is_uninstall_action): Ditto.
2381 (struct Package): Add new fields.
2382 * inilex.l (yylex): Detect new setup.ini options.
2383 * iniparse.y: Declare new tokens.
2384 (yyparse): Detect exclude keyword. Fill out version field even if
2386 (new_package): Use greater granularity when allocating package array to
2387 avoid repeated calls to realloc.
2388 * install.cc (exists): const argument.
2389 (uninstall_one): Take pkg argument.
2390 (install_one): Ditto. Eliminate unneeded arguments which can be
2391 derived from package info.
2392 (do_install): Iterate over package array using a pointer. Use
2393 is_download_action to control when package should be downloaded.
2394 * tar.cc (tar_open): const argument.
2395 * tar.h: Refloect const argument.
2397 2001-05-31 Michael Chase mchase@ix.netcom.com
2399 * main.cc (WinMain): Add setup version to starting setup.log entry
2401 Tue May 29 21:37:58 2001 Yukihiko Sohda <sohda@is.titech.ac.jp>
2403 * inilex.l: Add + to list of valid string characters.
2405 Mon May 28 20:54:50 2001 Christopher Faylor <cgf@cygnus.com>
2407 * Makefile.in: Remove more stuff in the clean target.
2409 Mon May 28 18:24:59 2001 Christopher Faylor <cgf@cygnus.com>
2411 * Makefile.in: Correctly generate iniparse.h.
2413 Tue Mar 6 19:14:00 2001 Corinna Vinschen <corinna@vinschen.de>
2415 * geturl.cc (get_url_to_file): Add parameter `allow_ftp_auth'.
2416 * geturl.h: Change declaration of `get_url_to_file' accordingly.
2417 * netio.cc (NetIO::NetIO): Add parameter `allow_ftp_auth'.
2418 Set member `ftp_auth'.
2419 (NetIO::open): Add parameter `allow_ftp_auth'. Use it in calls
2420 to constructors of derived classes.
2421 (NetIO::get_ftp_auth): New method.
2422 * netio.h: Change class definition accordingly.
2423 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Add parameter `allow_ftp_auth'.
2424 Take global variables `net_ftp_user' and `net_ftp_passwd' into account.
2425 Add code for ftp authentication retry.
2426 * nio-ftp.h: Change class definition accordingly.
2427 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Add parameter `allow_ftp_auth'.
2428 Add code for ftp authentication retry in case of proxy connection.
2429 * nio-http.h: Change class definition accordingly.
2430 * res.rc: Add FTP authentication dialog.
2431 * resource.h: Add new constants used in res.rc.
2432 * state.h: Add variables `net_ftp_user' and `net_ftp_passwd'.
2434 Sun May 27 17:12:23 2001 Christopher Faylor <cgf@cygnus.com>
2436 * res.rc (IDD_SPLASH): Add a copyright year.
2438 Sun May 27 15:42:18 2001 Christopher Faylor <cgf@cygnus.com>
2440 * Makefile.in: Make iniparse.y produce a c++ file.
2441 * choose.cc (set_existence): Revert 2001-05-27 change.
2442 * ini.cc: Remove "C" from declaration of yyparse.
2443 * iniparse.y (yyparse): Fill out version field by default when a binary
2444 install is detected and no version has been set yet.
2445 * install.cc (do_install): Mount things earlier so that we can use
2446 proper mount table settings. Don't remove mounts since they are now
2448 * mount.cc (create_mount): Reread the mount table after establishing a
2450 (read_mounts): Explicitly clear root_here to allow multiple uses of
2451 this function. Ensure that there is no garbage in the table when we've
2452 exhausted all of the mounts in the registry.
2453 (cygpath): Accomodate ./ in path.
2455 Sun May 27 02:59:07 2001 Christopher Faylor <cgf@cygnus.com>
2457 Use parse_filename method to parse filenames throughout. Use
2458 get_root_dir to retrieve the current root directory throughout. Set
2459 const in argument list, where appropriate, throughout.
2460 * choose.cc (set_existence): Detect case of uninstalled package with no
2462 (parse_filename): New function.
2463 * filemanip.h (fileparse): New structure.
2464 * mount.cc (read_mounts): Remember where we found the root mount.
2465 (set_root_dir): New function.
2466 (get_root_dir): Ditto.
2467 * mount.h: Declare new functions.
2468 * site.cc (get_root_dir_now): Renamed from get_root_dir.
2469 (save_site_url): Use new function name.
2470 (get_initial_list_idx): Ditto.
2472 Sat May 26 21:23:59 2001 Christopher Faylor <cgf@cygnus.com>
2474 * choose.cc: Use a constant throughout to deal with chooser icon
2476 * res.rc (IDD_CHOOSE): Increase size of chooser box.
2478 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
2480 * choose.cc (do_choose): Fix incorrect assignment of trust setting to
2481 use when Redownload or Sources Only selected.
2483 Thu May 10 22:35:59 2001 Christopher Faylor <cgf@cygnus.com>
2485 Reformat file after botched patch formatting.
2486 * choose.cc (which_trust): Eliminate variable.
2487 (default_trust): Don't set which_trust.
2488 (do_choose): Use selected trust when reinstalling or installing source.
2490 Thu May 10 21:04:18 2001 Christopher Faylor <cgf@cygnus.com>
2492 Change concat to cygpath throughout.
2493 Change map_filename to cygpath throughout.
2494 * concat.cc (vconcat): New function.
2495 (concat): Use vconcat.
2496 * concat.h: Reflect above.
2497 * install.cc (map_filename): Eliminate.
2498 (install_one): Free dest_file.
2499 * mount.cc (find2): Expect input key to be pointing to mount record.
2500 (in_table): New function.
2501 (is_admin): Move from root.cc.
2502 (read_mounts): New function.
2503 (path_prefix_p): New function.
2504 (cygpath): New function.
2505 * mount.h: Define new functions and structure.
2506 * root.cc (in_table): Move to mount.cc.
2507 (do_root): Call read_mounts to initialize root stuff and mount table.
2508 * site.cc (get_root_dir): Ditto.
2510 2001-05-09 Matt Hargett <matt@use.net>
2512 * Makefile.in: Remove *.rc from clean.
2514 Tue May 8 23:33:38 2001 Christopher Faylor <cgf@cygnus.com>
2516 * choose.cc (scan2): Fix incorrect setting of TRUST_CURR rather than
2517 TRUST_PREV which produced "0" versions.
2519 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
2521 * resource.h: Add new field IDC_CHOOSE_INST_TEXT. Modify
2522 _APS_NEXT_CONTROL_VALUE to account for addition of
2523 IDC_CHOOSE_INST_TEXT.
2524 * res.rc (IDD_CHOOSE): Modify choose dialog to use new field
2525 IDC_CHOOSE_INST_TEXT for screen text. Modify choose Dialog to allow
2526 hot keys to select Prev, Curr, Exp.
2527 * ini.h: Add new actions for ACTION_REDO and ACTION_SRC_ONLY. Modify
2528 define for LOOP_PACKAGES to include new actions ACTION_REDO and
2530 * choose.cc: Add new Trusts for TRUST_REDO and TRUST_SRC_ONLY.
2531 (paint): Modify to check TRUST_SRC_ONLY when determining Bitmap for
2532 source Checkbox to use.
2533 (build_labels): Add logic to allow for selection of Source only
2534 Download/ReDownload/Install/Reinstall and also to Redownload/Reinstall
2535 current version binary.
2536 (dialog_proc): Add conditional display for file selection prompt based
2537 on download vs install using IDC_CHOOSE_INST_TEXT.
2538 (do_choose): Add new logic for TRUST_REDO and TRUST_SRC_ONLY selection
2539 and modify logic for TRUST_UNINSTALL, TRUST_KEEP, and TRUST_NONE to
2540 handle the instance where Source Download/Install was selected. Modify
2541 log file to store appropriate information regarding Action selected and
2542 the new actions that were added (I.E.: ACTION_REDO and
2544 * download.cc: Add include for <unistd.h> and "port.h".
2545 (download_one): Modify parameter list to include the selected action
2546 for the file to be downloaded. Modify size check against expected size
2547 to include check for ACTION_REDO and ACTION_SRC_ONLY. Modify rename of
2548 .tmp file to also remove the destination file if exists due to ability
2549 to redownload source and binary now.
2550 (do_download): Modify to also use ACTION_REDO and ACTION_SRC_ONLY in
2551 calculation of Download Bytes. Modify to also use ACTION_REDO and
2552 ACTION_SRC_ONLY in determining files selected for download.
2553 * install.cc (uninstall_one): Add check to treat a Reinstall like an
2554 upgrade so current version will be uninstalled prior to reinstall.
2555 (do_install): Add logic to handle ACTION_REDO and ACTION_SRC_ONLY for
2556 uninstalling and installing binary and source packages.
2557 * desktop.cc (make_passwd_group): Modify logic to account for a Source
2558 only cygwin install when checking for cygwin to determine need for
2559 mkpasswd and mkgroup.
2561 Mon May 7 23:33:30 2001 Matt Hargett <matt@use.net>
2563 * winsup/cinstall/res.rc: Added accelerators and improved focus order.
2564 Removed WS_DISABLED from "OK" buttons to accomodate default focus
2565 changes in net.cc and source.cc.
2566 * winsup/cinstall/net.cc (dialog_proc): If no radio button is selected,
2567 a default is selected.
2568 * winsup/cinstall/source.cc (dialog_proc): Ditto.
2569 (check_if_enable_next): Removed. No longer needed since a radio button
2570 will always be selected.
2571 (load_dialog): Removed call to check_if_enable_next.
2572 (dialog_cmd): Ditto. Also added default to switch.
2574 Tue Apr 24 23:42:02 2001 Christopher Faylor <cgf@cygnus.com>
2576 * res.rc: Resize affected text.
2578 Tue Apr 24 23:35:31 2001 Christopher Faylor <cgf@cygnus.com>
2580 * net.cc (do_net): Default to direct download.
2581 * res.rc: Move default selections to the top.
2583 2001-04-18 Earnie Boyd <earnie@users.sourceforge.net>
2585 * win32.h: Remove the definitions for _UNION_NAME and _STRUCT_NAME.
2586 Must now include <windows.h> and not the pieces.
2587 * choose.cc (create_listview): Clean up type mismatch problems.
2588 * dialog.h (NEXT(id)): Ditto.
2589 * geturl.cc (dialog): Ditto.
2590 * install.cc (dialog): Ditto.
2591 * splash.cc (load_dialog): Ditto.
2593 Wed Apr 18 18:59:21 2001 Christopher Faylor <cgf@cygnus.com>
2595 * tar.cc (class gzbz): Define dummy virtual functions.
2597 Wed Apr 18 16:01:21 2001 Christopher Faylor <cgf@cygnus.com>
2599 * Makefile.in: Add bz2 include/library support.
2600 * filemanip.h: New file.
2601 * choose.cc (find_tar_ext): New function. Returns TRUE if .tar.gz or
2603 (scan2): Reorganize to use find_tar_ext, accomodating .bz2 extension.
2604 (read_installed_db): Ditto.
2606 * fromcwd.cc (found_file): Ditto.
2607 (do_fromcwd): Ditto.
2608 * tar.cc (class gzbz): New super class for uncompression support.
2609 (gz): New class for gzip support.
2610 (bz): New class for bzip2 support.
2611 (tar_open): Use gzbz class to control file opening.
2612 (tar_ftell): Ditto for returning position in file.
2613 (skip_file): Ditto for reading file.
2614 (tar_next_file): Ditto.
2615 (tar_read_file): Ditto.
2616 (tar_close): Ditto for close.
2618 * zlib/configure.in: Force NM substitution.
2620 * source.cc (do_source): Default to "Install from Internet".
2622 2001-03-16 Brian Keener <bkeener@thesoftwaresource.com>
2624 * nio-file.cc (NetIO_File::NetIO_File): Use `get_file_size' instead of
2626 * choose.cc (list_click): Correct inability to select source code for
2628 (scan2): Modify to skip source tarballs when scanning disk for
2629 installable packages.
2631 2001-03-10 Chris Abbey <chris_abbey@yahoo.com>
2633 * install.cc: install sources into /usr/src instead
2634 of /, also include the sizes of source tarballs
2636 * download.cc: include sizes of source tarballs in
2637 total_download_bytes.
2639 Tue Mar 6 19:31:00 2000 Corinna Vinschen <corinna@vinschen.com>
2641 * download.cc (get_file_size): Remove `static'.
2643 Tue Mar 6 19:11:00 2000 Corinna Vinschen <corinna@vinschen.com>
2645 * tar.cc (tar_open): Use `get_file_size' instead of `stat'.
2647 2001-03-06 Brian Keener <bkeener@thesoftwaresource.com>
2649 * choose.cc (paint): Modify message for nothing to download vs
2650 nothing to install/update based on installation method.
2651 (list_click): Modify to skip versions in selection process if
2652 installing from local directory and installation file does not exist.
2653 Also leaves Source Action set to N/A if the source file does not exist
2654 and installing from local directory.
2655 (check_existence): New method to check current existence of installation
2656 files based on selected installation method.
2657 (set_existence): New method to set the current existence of installation
2658 files based on selected installation method.
2659 (best_trust): Modify decision process for best trust to base decision on
2660 current trust selected (IE: Prev, Curr, or Test), existence of file and
2661 installation method selected.
2662 (default_trust): Add logic to capture the current trust level and the
2663 trust selected for the given package.
2664 (set_full_list): Expand decision criteria for displaying a package in
2665 the selection list to include file existence/non-existence and selected
2666 installation method.
2667 (build_labels): Modify criteria for label addition to include
2668 installation method and file existence/non-existence.
2669 (create_listview): Modify to establish package trust level for each
2670 package before setting up the display list. Also modification to set
2671 current trust button as the default.
2672 (dialog_cmd): Set response for Prev, Curr, Test button push to perform
2673 a reset of the selection list in addition to setting the default trust.
2674 (get_package_version): New method to provide reusable code for
2675 determining the package version from the file name for a specified
2677 (scan2): Modify to use new method get_package_version and
2678 also enhance handling of the build for the structures package and
2680 (read_installed_db): Modify to use the new method
2681 get_package_version and also enhance handling of the build for the
2682 structures package and extra.
2683 (do_choose): Add additional initialization of package and extra
2684 structures. Modify to use read_installed_db all the time despite
2685 install method. Modify output to setup.log.full log file to increase
2686 readability by adding additional spacing, expanded code and available
2688 * ini.h: Add new fields install_exists, source_exists and
2689 partial_list_display to the structure definition for package.
2690 * res.rc (IDD_CHOOSE): Modify choose dialog Prev, Curr, and Test
2691 pushbuttons by replacing with Radio Buttons thus allowing the
2692 operator to better determine which is selected.
2694 2001-02-20 Brian Keener <bkeener@thesoftwaresource.com>
2696 * download.cc (do_download): Add new variables total_download_bytes and
2697 total_download_bytes_sofar for download progress meter. Add loop
2698 to accumulate the total bytes to download from the selected packages.
2699 * geturl.cc: Add state.h and diskfull.h to include list. Add new
2700 variables gw_iprogress, gw_pprogress, gw_progress_text,
2701 gw_pprogress_text, and gw_iprogress_text to allow for addition of
2702 total packages download progress meter and disk full percent
2703 progress meter. Add variables total_download_bytes and
2704 total_download_bytes_sofar for use by progress meters.
2705 (dialog_proc): Add new variables gw_iprogress, gw_pprogress,
2706 gw_progress_text, gw_pprogress_text, and gw_iprogress_text to
2707 allow for addition of total packages download progress meter and disk
2708 full percent progress meter.
2709 (init_dialog): Ditto.
2711 (get_url_to_file): Ditto.
2712 * geturl.h: Add external definition for total_download_bytes and
2713 total_download_bytes_sofar.
2714 * res.rc: Add two additional progress meters (IDC_DLS_IPROGRESS)
2715 and (IDC_DLS_PPROGRESS) and three text objects (IDC_DLS_PROGRESS_TEXT)
2716 and (IDC_DLS_IPROGRESS_TEXT, IDC_DLS_PPROGRESS_TEXT) for use in the
2718 * resource.h: Add new fields for progress meters and text and update
2719 _APS_NEXT_CONTROL_VALUE.
2721 Wed Feb 21 13:05:00 2000 Corinna Vinschen <vinschen@redhat.com>
2723 * download.cc (get_file_size): Check for INVALID_HANDLE_VALUE instead
2726 Wed Feb 21 11:21:00 2000 Corinna Vinschen <vinschen@redhat.com>
2728 * download.cc (download_one): Add missing parenthesis.
2730 Mon Feb 19 18:59:00 2000 Corinna Vinschen <vinschen@redhat.com>
2732 * download.cc (get_file_size): New function. Eliminates the need
2734 (download_one): Call `get_file_size' instead of `stat'. This
2735 workarounds a problem with mingw's `stat' call.
2737 2001-02-07 Earnie Boyd <earnie@users.sourceforge.net>
2739 * Makefile.in: (%.o: %.rc): Specify --include-dir $(w32api_include).
2740 This is to allow cinstall to build with 2.95.2-7 and to make the
2741 use of headers consistent.
2743 2000-12-26 Earnie Boyd <earnie_boyd@yahoo.com>
2745 * Makefile.in (autoload.o): Add target to specify -fno-inline-functions
2747 Tue Dec 26 03:46:00 2000 Matt Hargett <matt@use.net>
2749 * winsup/cinstall/res.rc: Added accelerators and improved focus
2752 2000-12-10 Egor Duda <deo@logos-m.ru>
2754 * choose.cc (paint): Use system background color for text output.
2756 Sun Dec 10 19:05:25 2000 Christopher Faylor <cgf@cygnus.com>
2758 * Makefile.in: Use CXX for linking and for compiling .cc files.
2759 * configure.in: Find correct c++ compiler.
2760 * configure: Regenerate.
2762 2000-11-17 DJ Delorie <dj@redhat.com>
2764 * splash.cc (load_dialog): Make message more obvious.
2767 Fri Nov 17 17:15:21 2000 Christopher Faylor <cgf@cygnus.com>
2769 * Makefile.in: Use g++ to link so that libstdc++.a gets used. This is
2770 necessary for newer compilers.
2772 Wed Nov 9 2:19:00 2000 Corinna Vinschen <vinschen@redhat.com>
2774 * desktop.cc: Include "ini.h" and "version.h".
2775 (make_passwd_group): Skip the function on 9x/ME boxes when an
2776 older version of Cygwin has been installed which doesn't
2777 support mkpasswd/mkgroup on 9x/ME.
2778 * install.cc: Move the `LOOP_PACKAGES' and `pi' macros to...
2781 Wed Nov 8 17:10:00 2000 Corinna Vinschen <vinschen@redhat.com>
2783 * desktop.cc (make_passwd_group): Don't exit when started
2784 on 9x/ME since mkpasswd/mkgroup are usable on 9x/ME now.
2786 Sun Nov 5 12:51:42 2000 Jason Tishler <jt@dothill.com>
2788 * install.cc (do_install): Add call to set_cygdrive_flags to sync
2790 * mount.cc (set_cygdrive_flags): New function.
2791 (get_cygdrive_flags): Ditto.
2792 (default_cygdrive): Ditto.
2793 (set_cygdrive_flags): Ditto.
2794 * mount.h: Add prototype for set_cygdrive_flags.
2796 2000-10-23 DJ Delorie <dj@redhat.com>
2798 * ini.h: add source actions
2799 * fromcwd.cc: check for available sources
2800 * res.rc: add checkbox bitmaps
2803 * choose.cc: add source column
2804 * download.cc: download sources if called for
2805 * install.cc: [un]install sources too
2807 2000-10-22 DJ Delorie <dj@redhat.com>
2809 * choose.cc (build_labels): Don't skip TRUST_PREV completely; only
2810 ignore it wrt full_list if there's already a version installed.
2811 (do_choose): Sort the list.
2812 (package_sort): New.
2814 2000-10-12 DJ Delorie <dj@redhat.com>
2816 * res.rc: Add more error strings.
2817 * resource.h: Ditto.
2818 * iniparse.y (new_package): re-initialize if needed.
2819 * download.cc (do_download): Keep track of errors; notify and
2821 * install.cc (do_install): Ditto.
2823 2000-10-05 DJ Delorie <dj@redhat.com>
2825 * Makefile.in: fix %.cc rule
2827 2000-10-04 DJ Delorie <dj@redhat.com>
2829 * desktop.cc: quote HOME and USER, don't . ./.profile
2831 * choose.cc (build_labels): don't include in partial list just
2832 because there's a *previous* version available.
2834 * install.cc (do_install): if installing from local directory with
2835 setup.ini and the file isn't found, look in "." also. Note errors.
2837 2000-10-02 DJ Delorie <dj@redhat.com>
2839 * ini.cc (do_ini): save setup.ini locally
2841 2000-10-02 Chris Abbey <cabbey@bresnanlink.net>
2843 * desktop.cc: quote escapes in prompt
2845 2000-10-02 Jason Tishler <jt@dothill.com>
2847 * root.cc (is_admin): New function.
2848 (read_mount_table): Check for administrative priviledges and set
2849 installation scope as appropriate.
2851 2000-09-28 DJ Delorie <dj@redhat.com>
2853 * nio-ftp.cc (ftp_line): handle continuations more robustly
2855 2000-09-14 Brian Keener <bkeener@thesoftwaresource.com>
2857 * res.rc: increased the size of the site dialog (IDD_SITE) & the
2858 corresponding list box to provide for more URL's to be listed.
2859 Modified the position of the Back, Next and Cancel buttons to
2860 correspond to the new size of the dialog.
2862 2000-09-13 DJ Delorie <dj@redhat.com>
2864 * install.cc (do_install): update disk fullness once per package
2865 to improve performance
2867 * choose.cc (create_listview): call ReleaseDC
2869 Mon Sep 11 22:40 2000 Harold L Hunt II <harold@compasstechnologies.com>
2871 * mkdir.cc: Create directories when ERROR_FILE_NOT_FOUND is
2872 returned, as it seems Samba 2.0.6+ returns this instead of
2873 ERROR_PATH_NOT_FOUND
2875 Mon Sep 11 19:35:24 2000 Christopher Faylor <cgf@cygnus.com>
2877 * site.cc (get_initial_list_idx): Don't default to saved URL if it
2880 2000-09-07 DJ Delorie <dj@redhat.com>
2882 * splash.cc: use version.h, not local decl
2883 * res.rc: add "old version" message
2886 * fromcwd.cc (canonicalize_version): make global
2887 * iniparse.y: add setup-version support, fix bug in blank line
2890 * inilex.l: add [exp] as alias for [test], add setup-version
2891 * Makefile.in (version.c): add setup-version tag
2893 * desktop.cc (do_desktop): remove 1.1 version number
2894 (do_desktop_setup): ditto
2896 * ini.cc (do_ini): zero out package list just in case we redo it.
2898 2000-09-07 Jeffrey Juliano <juliano@cs.unc.edu>
2900 * choose.cc (list_click): Check for nindexes==0; if so, return.
2902 2000-09-06 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
2904 * localdir.cc: new, local package directory selection dialog; cd
2905 into selected directory
2906 * Makefile.in (OBJS): add localdir.o
2907 * dialog.h: add prototype for do_local_dir
2908 * main.cc (WinMain): initialize local_dir to cwd; add call to
2910 * net.cc (dialog_cmd): make DO_LOCAL_DIR next dialog
2911 * source.cc (dialog_cmd): ditto
2912 * res.rc: add DO_LOCAL_DIR dialog; remove "current directory" from
2913 presented choices in IDD_SOURCE; add IDS_ERR_CHDIR error string
2914 * resource.h: defines for DO_LOCAL_DIR dialog; define IDS_ERR_CHDIR
2915 * root.cc (dialog_cmd): make DO_LOCAL_DIR previous dialog
2916 * state.h: add local_dir variable
2918 2000-09-06 Brian Keener <bkeener@thesoftwaresource.com>
2920 * desktop.cc: added logic to handle to the new dialog and to
2921 default the setting for the new checkboxes based on whether the
2922 desktop icon or start menu link already exist.
2923 (desktop_icon): correction to desktop directories for desktop icon
2924 creation. Additional logic added for Win95 which does not appear
2925 to have Common Directories so if Common selected and null uses
2927 (start_menu): Additional logic added for Win95 which does not
2928 appear to have Common Directories so if Common selected and null
2929 uses normal directory.
2930 (do_desktop_setup): moved the saving of the icon, creation of the
2931 bat file, profile, passwd, Start Menu link and desktop shortcut to
2932 this method from do_desktop. Made the creation of the desktop
2933 icon and start menu link conditional on settings of new dialog
2934 created for desktop.
2935 * install.cc (do_install): changed next from IDD_S_DESKTOP to
2937 * main.cc (WinMain): changed case IDD_S_DESKTOP to IDD_DESKTOP.
2938 * res.rc: added new resource to create a desktop dialog with 2
2939 checkboxes for creating the desktop icon and start menu link.
2940 * resource.h: changed IDD_S_DESKTOP to IDD_DESKTOP and added two
2941 new controls: IDC_ROOT_MENU and IDC_ROOT_DESKTOP for new dialog.
2942 * state.h: added root_menu and root_desktop for use in dialog.
2944 2000-08-29 DJ Delorie <dj@redhat.com>
2946 * choose.cc (scan_downloaded_files): scan for existing files, so
2947 that the user only sees new downloads.
2949 * nio-ie5.cc (NetIO_IE5): pre-check for wininet.dll, enable dial-up
2950 * site.cc (do_site): if we can't download the mirror list, go back
2951 to the net setup box to choose another transport.
2952 * autoload.c: add more functions
2953 * Makefile.in (ALL_DEP_LDLIBS): remove wininet.a
2954 * resource.h: add WININET message
2956 * net.cc (do_net): no longer default to IE5
2957 * simpsock.h (class SimpleSocket): new, simplify socket operations
2958 * simpsock.cc: ditto
2959 * nio-http.h: new, for direct http protocol
2960 * nio-http.cc: ditto
2961 * nio-ftp.h: new, for direct http protocol
2963 * netio.cc (set_url): move initialization here to handle redirections
2964 (open): add direct http/ftp
2965 * netio.h (NetIO::set_url): new
2967 * log.cc (log_save): create directory for log if needed
2969 * hash.cc, hash.h: new
2970 * Makefile: add hash.o
2971 * choose.cc: enable "uninstall" option
2972 * download.cc: invert action test to accomodate uninstalling
2973 * ini.h: add ACTION_UNINSTALL
2974 * install.cc: add uninstall functionality
2975 * res.rc: make install tag changeable
2976 * resource.h: add uninstall resources
2978 * res.rc: update mirror list URL
2980 2000-08-24 DJ Delorie <dj@redhat.com>
2982 * log.cc, log.h: new files
2983 * Makefile.in (OBJS): add log.o
2984 * tar.cc: use exit_setup instead of exit
2985 * dialog.cc (fatal): use exit_setup instead of ExitProcess
2986 * msg.cc (fatal): ditto
2987 * install.cc (dialog_cmd): ditto
2988 * ini.cc (do_ini): ditto
2989 * main.cc (main): add logging
2990 * source.cc (do_source): ditto
2991 * root.cc (do_source): ditto
2992 * site.cc (do_site): ditto
2993 * other.cc (do_other): ditto
2994 * net.cc (do_net): ditto
2995 * choose.cc (do_choose): ditto
2996 * download.cc (do_download): ditto
2997 * install.cc (do_install): ditto
2998 * msg.cc (fatal): ditto
3000 * res.rc: mark password boxes as *being* password boxes.
3002 * fromcwd.cc (canonicalize_version): use multiple buffers so that multiple
3003 calls won't use the same buffer.
3004 * choose.cc (create_listview): don't default to full list if no changes
3005 (base): return computed value, not temporary :-(
3006 (do_choose): don't use installed.db if we're only downloading.
3008 2000-08-23 DJ Delorie <dj@redhat.com>
3010 * nio-ie5.cc (NetIO_IE5): Fix authentication logic
3011 * nio-ie5.h (flush_io): new
3012 * netio.cc (load_dialog): note when we're initializing the dialog
3013 box, and ignore changes to the edit fields then.
3015 2000-08-21 DJ Delorie <dj@redhat.com>
3019 * fromcwd.cc (found_file): don't remember the canonicalized version
3021 * choose.cc (paint): print "nothing to do" message when list is empty.
3022 (build_labels): Use version "0.0" if no version is available.
3023 (create_listview): default to full list if nothing to install/update.
3024 (base): new, returns basename of file
3025 (read_installed_db): compare base names, not full paths
3027 2000-08-11 DJ Delorie <dj@redhat.com>
3029 * choose.cc: add new chooser dialog
3030 * fromcwd.cc: use IDD_CHOOSE
3031 * ini.cc: use IDD_CHOOSE
3032 * main.cc: use IDD_CHOOSE
3033 * ini.h: cosmetic changes
3034 * res.rc: add choose dialog, bitmaps
3035 * choose-spin.bmp: new
3036 * choose-rtarrow.bmp: new
3037 * resource.h: add choose dialog controls
3039 * mount.cc: remove debug statement
3041 2000-08-08 DJ Delorie <dj@redhat.com>
3043 * Makefile.in (version.c): make version checking more robust
3044 * splash.cc (load_dialog): handle case where there's no version
3046 2000-08-07 DJ Delorie <dj@redhat.com>
3048 * (all): add cvsid tags
3049 * Makefile.in: generate version.c from ChangeLog, add splash.o
3051 * res.rc: add splash screen
3053 2000-08-02 DJ Delorie <dj@redhat.com>
3055 * net.cc: remove proxy password code
3056 * res.rc: remove proxy user/pass from net, add auth dialogs
3057 * netio.cc,h: add sys/proxy auth methods
3058 * nio-ie5: use them, check for http status codes
3059 * state.h: add system authorization
3061 * concat.cc (concat): canonicalize x:// to x:/ (exception to ://
3064 2000-08-02 Norman Vine <nhv@yahoo,com>
3066 * msg.cc (mbox): added MB_TOPMOST to MessageBox type flags
3068 2000-08-01 DJ Delorie <dj@redhat.com>
3070 * postinstall.cc (each): don't rename files we ignore
3071 (do_postinstall): set CYGWINROOT to root_dir, chdir there
3073 * desktop.cc: have /etc/profile call ~/.profile and ~/.bashrc
3075 2000-07-31 DJ Delorie <dj@redhat.com>
3077 * desktop.cc: reverse PATH so /usr/bin precedes /bin
3079 2000-07-18 DJ Delorie <dj@redhat.com>
3081 * autoload.c: new, autoload dlls that might not be available.
3082 * Makefile.in (OBJS): add autoload.o
3084 * res.rc: rewrite root options (text/binary, system/user) to be
3087 * site.cc (get_site_list): trim displayed URL, sort by domain
3089 * net.cc (do_net): make IE5 default to checked, for now
3091 * choose.cc (do_choose): sort packages correctly
3092 * ini.cc (do_ini): handle parse errors more gracefully
3094 (fprintf): line buffer output
3095 (do_ini): if we can't load setup.ini, go back to the site list.
3096 * ini.h: add "unknown" trust level
3097 * inilex.l: absorb unknown trust levels and key/value pairs,
3098 add line number logic
3099 * iniparse.y: handle parse errors more gracefully.
3100 * install.cc: skip packages with no valid install entry
3102 2000-07-17 DJ Delorie <dj@cygnus.com>
3104 * coding standards fixups, many files
3105 * mkdir.cc: warn about deletions *before* deleting them
3107 2000-07-17 Jeff Juliano <juliano@cs.unc.edu>
3109 * res.rc (IDD_OTHER_URL): reorder to give default focus to entry
3111 * other.cc (dialog_cmd): save download site URL
3112 * site.cc (get_root_dir): new
3113 (save_mirror_site): new
3114 (dialog_cmd): save download site URL
3115 (get_site_list): make list big enough to add prev site
3116 (get_initial_list_idx): new, read last-used URL from file and
3117 append it to site_list
3118 (do_site): call get_initial_list_idx
3120 * concat.cc (concat): avoid segfault when first parm is null
3122 2000-07-13 DJ Delorie <dj@cygnus.com>
3124 * postinstall.cc: new
3125 * Makefile.in: add postinstall.o
3126 * concat.h: add backslash ()
3128 * desktop.cc (etc_profile): don't do postinstall
3129 (backslash): moved to concat.cc
3131 (make_postinstall_script): run directly
3132 (do_desktop): chain to do_postinstall
3133 * dialog.h: add exit_msg, do_postinstall
3134 * download.cc: use exit_msg
3136 * main.cc: add postinstall, exit_msg
3137 * resource.h: add postinstall
3138 * README: add more to-do items
3140 2000-07-12 DJ Delorie <dj@cygnus.com>
3142 * desktop.cc: add /etc/postinstall/ support
3143 * install.cc: add more "standard" directories
3145 2000-07-11 DJ Delorie <dj@cygnus.com>
3147 * desktop.cc: create /etc/profile
3148 * desktop.cc: fix include syntax
3149 * Makefile.in: add auto-dependencies
3150 * root.cc: support system vs user
3158 * desktop.cc: make sure we use backslashes, not slashes.
3159 * desktop.cc: don't set PATH in cygwin.bat, create /etc/passwd
3160 * geturl.cc: change math for percentage to avoid overflow
3162 * download.cc: post "download complete" message.
3163 * root.cc: pre-fill in defaults if needed, don't start
3164 browse at root_dir unless it's set.
3165 * desktop.cc: quote $PATH in case it has spaces in it
3167 2000-07-10 DJ Delorie <dj@cygnus.com>
3169 * Makefile.in: add desktop.o and mklink2.o
3170 * dialog.h: add do_desktop
3171 * install.cc: create standard directories, call do_desktop
3172 * res.rc: add cygwin.ico as a file also
3173 * desktop.cc: new, do shortcuts, batch files, and icons
3174 * mklink2.c: new, for COM
3175 * README: update to-do list
3177 2000-07-10 DJ Delorie <dj@cygnus.com>
3179 * ini.cc (do_ini): don't worry about timestamps if we're not
3180 actually installing.
3182 2000-07-09 DJ Delorie <dj@cygnus.com>
3184 * Makefile.in: add -I$(srcdir) for ini.h
3186 2000-07-06 DJ Delorie <dj@cygnus.com>
3188 * Replace everything with a new GUI version
3189 * zlib/gzio.c: add gzctell() for progress displays
3191 2000-06-22 DJ Delorie <dj@cygnus.com>
3193 * setup.c (tarx): re-add call to write_pkg()
3195 2000-06-07 DJ Delorie <dj@cygnus.com>
3197 * cygcalls.c: new, call cygwin1.dll functions directly
3198 * cygcalls.h: header for same
3199 * Makefile.in: add cygcalls.[ch], remove mount/cygpath/umount
3200 exes, fix cinstall.rc dependencies.
3201 * path.c: remove unneeded code
3202 * setup.c: use cygcalls instead of xcreate_process.
3203 uncompress embedded files with zlib
3204 add "-d" for "download only"
3206 postpone mount changes until very end
3207 add download progress indicators
3208 pack multi-column listings more
3209 auto-delete temp files
3210 customize banner message according to options
3211 prompt user for text/binary mounts
3212 add warnings about empty setup directory, root installs, etc
3214 2000-05-24 DJ Delorie <dj@cygnus.com>
3216 * tar.c: New file; built-in tar using zlib.
3217 * tar.h: New file; header for same.
3218 * ctar.c: New file; test program for same.
3219 * Makefile.in: add built-in tar, remove tar.exe and gzip.exe
3220 * path.c (pathcat): convert slashes and canonicalize, instead of aborting
3221 * setup.c (tarx): add support for built-in tar
3222 (main): accept unix-style slashes, check root dir for drive letters,
3223 warn about installing in /, make sure cwd is empty for internet installs,
3224 defer mounts to end of install, support built-in tar.
3226 Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
3228 Fix compiler warnings throughout.
3229 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
3231 * setup.c: Make 'root' global.
3232 (istargz): Return pointer to "stem" of matched .tar.gz file.
3233 (tarx): Special case cygwin-20000301 to == cygwin-1.1.0.tar.gz. Remove
3234 bogus check_for_installed check.
3235 (recurse_dirs): Add preliminary support for .bat file execution.
3236 (create_uninstall): Eliminate unneeded parameter.
3237 (do_start_menu): Ditto.
3239 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
3240 scanning for the version number. Eliminate unneeded argument to
3242 (getdownloadsource): Add 'name' to list of names rather than url.
3243 (main): Eliminate unneeded argument in get_pkg_stuff. Eliminate
3244 unneeded argument in mkmount and do_start_menu.
3246 2000-05-18 DJ Delorie <dj@cygnus.com>
3248 * setup.c (optionprompt): allow multi-column, clean up message
3249 about more options, be more robust about user input.
3250 (getdownloadsource): make the mirror URL a macro.
3251 (main): do mounts after done prompting user.
3253 Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
3255 * setup.c (cleanup): Inverse order of deletion stands a better chance
3256 of deleting cygpath.exe. Still seems to suffer from occasional races,
3258 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
3260 (output_file): Defend against an unlikely handle leak.
3261 (main): Don't set up signal handling until we have something special to
3264 Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
3266 * path.c (kill_cygpath): Delete function.
3267 (exit_cygpath): Make more defensive so that it can be called at any
3269 (cygpath_pipe): Don't set up signal here. Do it in main().
3270 * setup.c (istargz): New function.
3271 (recurse_dirs): Look for *.gz pattern rather than *tar.gz since *tar.gz
3272 inexplicably fails on samba mounted partitions. Use istargz to match
3274 (processdirlisting) Use istargz to match tar.gz tail.
3275 (cleanup): Renamed from filedel.
3276 (cleanup_on_signal): New function. Called on CTRL-C.
3277 (main): Record handle of main thread so that it can be suspended when
3278 CTRL-C occurs. Set up cleanup_on_signal signal handler.
3280 Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
3282 * setup.c (do_start_menu): Don't concatenate paths to already built
3285 Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
3287 * path.c (exit_cygpath): Wait for subprocess to exit before returning.
3288 (cygpath_pipe): Don't call exit_cygpath. Let main atexit routine do
3290 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
3292 * setup.c (filedel): Call exit_cygpath here so that we can be assured
3293 that cygpath subprocess has died. This allows us to delete cygpath.exe
3295 (optionprompt): Initialize response to -1 so that second screen of
3296 mirrors will appear.
3297 (get_pkg_stuff): Don't attempt to use HKCLU. Pass root to init_pkgs.
3298 * setup.h: Reflect init_pkgs prototype change.
3300 Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
3302 * pkg.c (init_pkgs): Accept an argument to control what root registry
3304 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
3305 * setup.h: Reflect init_pkgs prototype change.
3307 Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
3309 * error.c (winerror): Respond to gcc warning.
3310 * path.c (cygpath_pipe): Ditto.
3311 * setup.c (filedel): Call sa_cleanup on deleteme.
3312 (create_shortcut): Coerce argument to eliminate compiler warning.
3313 (tarx): Use installed version of cygwin1.dll, overriding tar file name.
3314 (refmatches): New function. Tests if ref is contained in a list of
3315 packages to install.
3316 (filematches): New function. Tests if filename matches one of a list
3317 of packages to install.
3318 (recurse_dirs): Accept list of packages to install. Generalize tar.gz
3319 test to accomodate _tar.gz.
3320 (prompt): Ensure that stdout is flushed prior to asking for input.
3321 (findhref): Initialize variables to quiet a compiler warning.
3322 (processdirlisting): Accept list of packages to install. Special case
3323 cygwin tar file version number.
3324 (downloaddir): Accept list of packages to install.
3325 (downloadfrom): Ditto.
3326 (create_uninstall): Eliminate unneeded variables. Quote arguments to
3328 (do_start_menu): Don't create uninstall bat file if updating or user
3329 specified a list of packages.
3330 (mkmount): Eliminate unneeded variables.
3331 (get_pkg_stuff): New function. Checks for previous unversioned
3333 (main): Accept -u and -f options and package names on the command line.
3334 Use get_pkg_stuff to initialize package information. Umount /etc.
3335 Call recurse_dirs and downloadfrom with list of package to install.
3336 Ensure that all /usr/local directories are created. Output
3337 installation time to setup.log.
3338 * setup.h: Add some prototypes.
3339 * xsystem.c (xcreate_process): Eliminate unneeded variable.
3341 Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
3343 * setup.c (optionprompt): Don't overlap display of already seen options
3345 (geturl): Print name of site which we're connecting to rather than "ftp
3347 (processdirlisting): Avoid URLs that contain a /. or ./ . Is this
3348 test too simplistic?
3349 (do_start_menu): Use pathcat to build path to <root>\bin to avoid
3350 problems when user chooses x:\ as their root.
3351 (main): For now, default to "non-update" mode. Allow -u option to
3354 Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
3357 * setup.c (tarx): Skip already installed or older packages. Report
3358 when a package has been updated.
3359 (processdirlisting): Skip already installed or older packages.
3360 (main): Detect -f option for forced installation. Initialize pkg stuff
3362 * setup.h: Add pkg definitions.
3364 Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
3366 * setup.c (findhref): Return NULL on empty string. Eat any trailing
3368 (processdirlisting): Attempt to limit recursively processing the same
3371 Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
3373 * setup.c (filedel): New function.
3374 (output_file): Keep track of files extracted from setup.exe for
3375 subsequent deletion.
3376 (tarx): Close process handle of child tar process or suffer handle
3378 (getdownloadsource): Close mirror file so that it can be unlinked.
3379 (processdirlisting): Return total number of files extracted.
3380 (main): Initialize array of files to delete. Ensure that files are
3381 closed on exit. Make the directory that setup.exe is started from ==
3382 the directory where temporary files are placed. Issue an error if no
3383 files were found to download.
3384 * xsystem.c (xcreate_process): Close the thread handle. Close the
3385 process handle if we waited for it to exit.
3387 Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
3389 * setup.c (main): Change version number output.
3391 Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
3393 * setup.c (tarx): Use full path name to tar executable.
3394 (main): Build full pathname to tar executable. Create /usr/local/etc
3397 Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
3399 * setup.c (findhref): Change method for scanning for href= to choose
3400 the last one on the line. This is still not foolproof and probably
3401 will need to be changed eventually. Don't abort if no "size" field is
3403 (processdirlisting): Fix boolean algebra.
3405 Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
3407 * main.c (tarx): Add some code for future task of unmounting
3408 directories encountered in tar file.
3410 Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
3412 * setup.c (findhref): Decode file size, when appropriate.
3413 (needfile): New function. Returns 1 when file should be
3415 (processdirlisting): Always download if file size does not
3416 match. Prompt when download fails for some reason.
3417 (getdownloadsource): Accomodate findhref argument changes.
3419 Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
3421 Throughout, use global session handle rather than reinitializing for
3422 each connect. Don't pass session as an argument to setup.c functions.
3423 * setup.c (geturl): Only issue "Connecting to.." message when using
3424 http or first time for ftp since subsequent connections will be fast.
3425 (processdirlisting): Allocate space for "N" when user has specified
3426 "N"ever option so that it can be subsequently freed.
3427 (main): Abort if we can't get the list of mirrors.
3429 Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
3431 * setup.c (main): Umount /bin and /lib.
3433 Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
3435 * setup.c (main): Create an empty /var/run/utmp.
3437 Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
3439 * Makefile.in: Add umount to list of files to include in setup.exe.
3440 * setup.c (xumount): New function for unmounting directories.
3441 (main): Unmount /usr.
3442 (mkmount): Unmount "unix directory" before trying to figure out where
3443 to create the directory.
3445 Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
3447 * setup.c (mkmount): Use xcreate_process to start mount process,
3449 (main): Don't do buffering on stdout or prompts won't be displayed
3450 correctly if running in a cygwin shell with CYGWIN=tty.
3452 Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
3454 * setup.c (main): Remove the CYGWIN environment variable before
3455 starting any cygwin programs.
3457 Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
3459 * setup.c (geturl): Use alternative method for finding filename part of
3461 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
3462 (downloaddir): Unlink file containing dir listing.
3463 (downloadfrom): Ditto.
3465 Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
3467 * setup.c (main): Disallow running setup.exe from the "root".
3469 Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
3471 Use "warning" function, where appropriate, to output warnings.
3472 * setup.c (warning): New function -- outputs warning to console and log
3474 (tarx): Fix index used to reset file protection.
3475 (main): Open the log file earlier so that more stuff can be sent to it.
3477 Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
3479 * setup.c (processdirlisting): Make "N" option a little less aggressive.
3481 Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
3483 * setup.c (tarx): Wait to after tar has completed to reset protections
3484 or suffer races with tar process.
3486 Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
3488 * Makefile.in: Eliminate duplicate -nostdinc from CFLAGS.
3489 * setup.c (create_uninstall): Create the uninstall .bat file in the
3490 "root" so that we can remove the /bin directory. Add bin\cygwin.bat to
3491 list of files to be deleted. Fix directory detection for determining
3492 when to use 'rmdir'.
3493 (do_start_menu): Add /usr/local/bin to the path.
3494 (main): Add slop to files.array allocation so that we don't have to
3495 worry about reallocating the array when it grows too large when doing
3496 some trivial "pushes". Add /tmp and /usr/local/{bin,lib} to list of
3499 Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
3501 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
3504 Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
3506 * path.c (kill_cygpath): New cleanup function.
3507 (exit_cygpath): New cleanup function.
3508 (cygpath_pipe): New function. Sets up cygpath in the background for
3509 translating filenames.
3510 (pathcvt): Use background cygpath for file translation.
3511 * setup.c (tarx): New function. Called to extract tar files, capture
3512 logging output, and translate it to Windows format.
3513 (recurse_dirs): Use 'tarx' function to extract files.
3514 (create_uninstall): Use file list built up by tarx rather than reading
3516 (mkmount): Add ability to mount root.
3517 (main): Track elapsed install time. Mount root.
3518 * starry.h: Add index field to strarry for tracking of tarx's usage of
3520 * xsystem.c (xcreate_process): Return proces handle when not waiting.
3522 Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
3525 (pathfp): New function. Preliminary work for new -f cygpath
3527 * Makefile.in: Add new file.
3528 (pathcvt): Move to new file.
3532 * setup.c (processdirlisting): Always open file in text mode.
3533 (create_uninstall): Ditto.
3534 (getdownloadsource): Ditto.
3537 Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
3539 * xsystem.c: New file.
3540 * Makefile.in: Accomodate new file.
3541 * setup.c (xsystem): Move to new file.
3542 (recurse_dirs): Accept handle to output log file. Don't use ">"
3543 redirection to trap tar output. Use supplied handle instead.
3544 (create_uninstall): Accept FILE pointer to opened log file. Don't
3545 unlink log file here.
3546 (do_start_menu): Accept FILE pointer to pass to create_uninstall.
3547 (main): Open log file here and pass it to various functions. Unlink
3550 Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
3552 Change occurrences of .usr.bin to .bin throughout.
3553 * setup.c (geturl): Increase number of retries to 20. Let user know
3554 what's going on during long connects.
3555 (processdirlisting): Accept "A"lways and "N"ever as update options.
3556 (create_uninstall): Load cygwin1.dll from the current directory rather
3558 (main): Add some expository text.
3560 Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
3562 * Makefile.in: Change method for compressing cygwin1.dll to avoid
3563 creating a cygwin1.dll in the current directory. Ensure the addition
3564 of -nostdinc to MINGW_CFLAGS.
3566 Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
3568 * Makefile.in: Augment clean target.
3570 Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
3572 * README: Added info about non-working mingw implementation
3573 * gzip.exe.gz: Replace with a version from the same build as the other
3575 * tar.exe.gz: Replace with a version from the same build as the other
3577 * mount.exe.gz: Add to repository until, mingw can build setup.
3578 * cygpath.exe.gz: ditto
3579 * cygwin1.dll.gz: ditto
3580 * setup.c: Overwrite /bin and /lib mounts. Generate working shortcut
3581 for Win9x. Display only a screenfull of options at a time. Call all
3582 tools with an absolute path.
3583 * setup.dsp: Restore the carriage returns, MS Developer Studio needs
3588 Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
3590 * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab
3591 cygwin1.dll from ../cygwin subdirectory.
3592 * gzip.exe.gz: Update.
3593 * tar.exe.gz: Update.
3595 Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
3597 * Makefile.in: Use ZLIB variable as a target.
3599 Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
3601 * Makefile.in: Eliminate traces of cygwinisms. Don't link with
3602 libmsvcrt.a. It's unneeded. Build .rc file on the fly from various
3604 * configure.in: Locate correct objcopy.
3605 * configure: Regenerate.
3607 Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
3609 * Makefile.in: New file.
3610 * configure.in: New file.
3611 * configure: New file.
3612 * zlib/Makefile.am: New file.
3613 * zlib/configure.in: New file.
3614 * zlib/aclocal.m4: New file.
3615 * zlib/acinclude.m4: New file.
3616 * zlib/configure: Regenerate from configure.in.
3617 * zlib/Makefile.in: Regenerate from Makefile.am