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