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