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