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