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