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