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