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