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