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