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