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