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