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