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