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