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