]> cygwin.com Git - cygwin-apps/setup.git/blob - ChangeLog
* ini.h (SETUP_BZ2_FILENAME): Reflect new architecture layout in ftp.
[cygwin-apps/setup.git] / ChangeLog
1 2013-06-22 Christopher Faylor <me.cygwin2013@cgf.cx>
2
3 * ini.h (SETUP_BZ2_FILENAME): Reflect new architecture layout in ftp.
4 (SETUP_INI_FILENAME): Ditto.
5 * main.cc (Arch): New option. Include StringOption.h for this.
6 (WinMain): Change is_64bit calculation to allow overriding from
7 command-line. Issue error if bad value provided.
8 * res.rc: Move some text closer together.
9 * splash.cc: Include ini.h. Add architecture to opening screen.
10
11 * UserSettings.cc (UserSettings::get): Don't try to open a filename
12 with the name of the key. That's old behavior.
13
14 2013-06-20 Christopher Faylor <me.cygwin2013@cgf.cx>
15
16 * res.rc: Update copyright.
17
18 2013-04-05 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
19
20 * Makefile.am (EXTRA_DIST): Add setup64.exe.manifest.
21 (res.o): Depend on arch-specific manifest file.
22 * res.rc (CREATEPROCESS_MANIFEST_RESOURCE_ID): Add separate
23 definition for x86-64.
24 * setup.exe.manifest: Throughout, set processorArchitecture to x86.
25 Remove trustInfo section.
26 * setup64.exe.manifest: New file.
27
28 2013-03-22 Corinna Vinschen <corinna@vinschen.de>
29
30 * desktop.cc (do_desktop_setup): Install "Cygwin64 Terminal" link on
31 64 bit.
32 (DesktopSetupPage::OnActivate): Check for "Cygwin64 Terminal" link on
33 64 bit.
34 * main.cc (main_display): Avoid compiler warning on 64 bit.
35 * mount.cc (from_fstab): Take 2nd parameter as const by reference to
36 avoid potential crash due to scope issue.
37
38 2013-03-14 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
39
40 * configure.ac: Remove check for libmingw32.
41 (SETUP): Define EXE name based on host_cpu.
42 (MINGWTARGET): Remove.
43 * Makefile.am: Use SETUP throughout. Remove MINGWTARGET conditional.
44 Add -lmingw32 to LDFLAGS.
45 * ini.h (is_64bit): Declare.
46 (SETUP_INI_FILENAME): Make dependent on value of is_64bit.
47 (SETUP_BZ2_FILENAME): Ditto.
48 * main.cc (is_64bit): Define based on compiler target.
49 * mount.h (SETUP_KEY_WOW64): Define based on value of is_64bit.
50 * install.cc (create_allow_protected_renames): Add SETUP_KEY_WOW64
51 flag to RegOpenKeyEx call.
52 * mount.cc: Throughout, add SETUP_KEY_WOW64 flag to all RegOpenKeyEx
53 and RegCreateKeyEx calls.
54 (read_mounts): Change default Cygwin root depending on is_64bit.
55
56 2013-03-05 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
57
58 Throughout, drop support for Cygwin 1.5 and Windows pre-2000.
59
60 2013-03-04 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
61
62 * install.cc (FileInuseDlgProc): Fix return type.
63 * regex/regcomp.c (parse_dup_op): Fix invalid cast warning.
64 (create_token_tree): Ditto.
65 * setup.exe.manifest: Set processorArchitecture to "*".
66 Add explicit requestedExecutionLevel for 64-bit compatibility.
67
68 2013-03-04 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
69
70 * Makefile.am (inilint_extras): Remove autoload.c.
71 (setup_SOURCES): Ditto.
72 (setup_LDADD): Add ntdll and wininet.
73 (autoload.o): Remove rule.
74 * autoload.c: Remove file.
75
76 2013-03-03 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
77
78 * Makefile.am (res.o): Add rule to force rebuild upon change
79 to setup.exe.manifest, which is included by res.rc.
80
81 2013-02-17 Christopher Faylor <me.cygwin2013@cgf.cx>
82
83 * configure.ac: Rename from configure.in.
84 * configure.in: Delete.
85 * libgetopt++/configure.ac: Rename from configure.in.
86 * libgetopt++/configure.in: Delete.
87 * Makefile.am: Remove ill-advised iniparse.hh change.
88 * libgetopt++/Makefile.am: Use "modern" AM_CPPFLAGS rather than INCLUDES.
89 * inilex.ll: Add autodep token recognition.
90 * iniparse.yy: Handle autodep.
91 * IniDBBuilder.h (autodep): Define for base class.
92 * IniDBBuilderPackage.cc (IniDBBuilderPackage::autodep): Define.
93 * IniDBBuilderPackage.h (IniDBBuilderPackage::autodep): Declare.
94
95 2013-02-17 Christopher Faylor <me.cygwin2013@cgf.cx>
96
97 * Makefile.am: Add regex.c to list of sources.
98 (iniparse.hh): Rename if a iniparse.h has been created.
99 * regex/config.h: New file.
100 * regex/re_comp.h: New file.
101 * regex/regcomp.c: New file.
102 * regex/regex.c: New file.
103 * regex/regex.h: New file.
104 * regex/regex_internal.c: New file.
105 * regex/regex_internal.h: New file.
106 * regex/regexec.c: New file.
107 * processlist.cc (Process::isModuleLoadedInProcess): Avoid compiler
108 warning by changing 'i' to unsigned.
109
110 2013-01-25 Achim Gratz <Stromeko@nexgo.de>
111 * README (HOW TO BUILD): Cross compiler package is now named
112 mingw-gcc-g++, also mention package upx as an optional dependency.
113
114 2013-02-01 Jon TURNEY <jon.turney@dronecode.org.uk>
115
116 * install.cc ( _custom_MessageBox): Remove custom message box.
117 (FileInuseDlgProc): Add file-in-use dialog box.
118 (installOne): Use processlist to list processes using a file, and
119 offer to kill them with the file-in-use dialog.
120 * res.rc (IDD_FILE_INUSE) : New dialog.
121 * resource.h (IDD_FILE_INUSE, IDC_FILE_INUSE_EDIT)
122 (IDC_FILE_INUSE_MSG, IDC_FILE_INUSE_HELP): Define corresponding
123 resource ID numbers.
124 * processlist.h: New file.
125 * processlist.cc: New file.
126 * Makefile.am (setup_LDADD): Add -lpsapi.
127 (setup_SOURCES): Add new files.
128
129 2013-02-01 Jon TURNEY <jon.turney@dronecode.org.uk>
130
131 * script.cc (::run, Script::run): Move the formatting of the command
132 line used for postinstall script running out to Script::run. Move the
133 logging of the command and it's output into ::run.
134 * script.h: Add ::run() prototype.
135
136 2013-01-17 Jon TURNEY <jon.turney@dronecode.org.uk>
137
138 * configure.in: Require automake 1.12.
139 * Makefile.am (BUILT_SOURCES): Update iniparse.h to iniparse.hh.
140 * iniparse.yy: Ditto.
141 * inilex.ll: Ditto.
142
143 2013-01-16 Jon TURNEY <jon.turney@dronecode.org.uk>
144
145 * threebar.cc (ThreeBarProgressPage::SetBar2): Change from long int to
146 long long int to handle more than 2GB of data.
147 * threebar.h (ThreeBarProgressPage::SetBar2): Update prototype.
148 * install.cc: Change md5sum and install counters to long long int.
149 * geturl.cc: Change download counter to long long int.
150 * geturl.h: Ditto.
151
152 2012-11-08 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
153
154 * Makefile.am (EXTRA_DIST): Remove libmd5-rfc files.
155 (setup_SOURCES): Ditto.
156 * download.cc: Remove unused include.
157 * csu_util/MD5Sum.cc: Port from libmd5-rfc to libgcrypt.
158 * csu_util/MD5Sum.h: Ditto.
159 * libmd5-rfc/*: Remove.
160
161 2012-10-19 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
162
163 * bootstrap.sh: Add support for i686-w64-mingw32 toolchain.
164 Remove support for gcc-3 -mno-cygwin.
165
166 2012-09-12 Christopher Faylor <me.cygwin2012@cgf.cx>
167
168 * README: Modernize.
169 * bootstrap.sh: Remove outdated options from configure. Use mingw
170 compiler.
171 * configure.in: Remove AM_MAINTAINER_MODE.
172
173 2012-09-04 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
174
175 Fix build with mingw-w64 headers.
176 * autoload.c: Define DECLSPEC_IMPORT for mingw-w64 headers.
177 * filemanip.h: Include <sys/types.h> to fix missing mode_t typedef
178 error with mingw-w64 headers.
179 * gpg-packet.cc: Include "win32.h" to avoid macro redefinition
180 errors with mingw-w64 headers.
181 (ARRAYSIZE): Do not redefine.
182 * main.cc (_argv): Declare if using mingw-w64 headers.
183 (WinMain): Move up _argv definition to before it is first used.
184 * ntdll.h: Include PSDK headers with mingw-w64 instead of DDK.
185 * package_message.h: Include "win32.h" instead of <windows.h>.
186 * propsheet.cc (PROPSHEETHEADER_V1_SIZE): Do not redefine.
187 * win32.h: Include <sys/types.h> to fix missing mode_t typedef
188 error with mingw-w64 headers.
189 Define DECLSPEC_IMPORT for mingw-w64 headers.
190
191 2012-08-30 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
192
193 First step towards X86-64 compatibility.
194 * archive_tar.cc (archive_tar::next_file_name): Fix sscanf formats
195 for 64-bit size_t.
196 * choose.cc (ChooserPage::OnMouseWheel): Fix return type.
197 * choose.h (ChooserPage::OnMouseWheel): Ditto.
198 * filemanip.cc (nt_wfopen): Fix argument cast for _open_osfhandle.
199 * netio.cc (auth_proc): Fix return type.
200 * proppage.cc (PropertyPage::FirstDialogProcReflector): Fix return type.
201 Use SetWindowLongPtr and DWLP_* instead of SetWindowLong and DWL_*.
202 (PropertyPage::DialogProcReflector): Ditto.
203 (PropertyPage::DialogProc): Ditto.
204 (PropertyPage::OnMouseWheel): Ditto.
205 * proppage.h (PropertyPage::FirstDialogProcReflector): Fix return type.
206 (PropertyPage::DialogProcReflector): Ditto.
207 (PropertyPage::DialogProc): Ditto.
208 (PropertyPage::OnMouseWheel): Ditto.
209 * site.cc (drop_proc): Fix return type.
210 * window.cc (Window::FirstWindowProcReflector): Use GWLP_* with
211 SetWindowLongPtr calls.
212 (Window::WindowProcReflector): Ditto.
213
214 2012-08-30 Jacek Caban <jacek@codeweavers.com>
215 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
216
217 * main.cc: Remove CINTERFACE define.
218 (main_display): Use C++ syntax for COM.
219 * mklink2.cc: Remove CINTERFACE define.
220 (make_link_2): Use C++ syntax for COM.
221
222 2012-08-21 Christopher Faylor <me.cygwin2012@cgf.cx>
223
224 * setup.exe.manifest: Reorder "supportedOS" entries and add entry for
225 Windows 8.
226
227 2012-06-03 Christopher Faylor <me.cygwin2012@cgf.cx>
228
229 * main.cc: Remove __CYGWIN__ ifdefs.
230 (main): Ditto.
231
232 2012-06-01 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
233
234 * Makefile.am (setup_version.c): Respect silent rules.
235 (.rc.o): Ditto.
236 * configure.in: Enable silent rules with automake-1.11.
237
238 2012-04-29 Christopher Faylor <me.cygwin2012@cgf.cx>
239
240 * window.cc: Remove trailing whitespace.
241
242 2012-04-28 Christopher Faylor <me.cygwin2012@cgf.cx>
243
244 * io_stream_file.cc (io_stream_file::exists): Properly treat return
245 from GetFileAttributesW as a bit field so that a directory will not be
246 seen as "existing".
247
248 2012-04-26 Corinna Vinschen <corinna@vinschen.de>
249
250 * script.cc (run): Add quotes around file to allow spaces in path.
251 (Script::run): Add aforementioned quotes to log output as well.
252
253 2012-03-08 Corinna Vinschen <corinna@vinschen.de>
254
255 * win32.h (FACTOR): Define, use correct value.
256 (NSPERSEC): Ditto.
257 * archive_tar.cc: Drop FACTOR and NSPERSEC definitions here.
258 * io_stream_cygfile.cc: Ditto.
259 * io_stream_file.cc: Ditto.
260
261 2012-02-29 Corinna Vinschen <corinna@vinschen.de>
262
263 * win32.cc (NTSecurity::GetPosixPerms): Don't allow write permissions
264 in inheritable default permission ACEs for group and other if the
265 directory is an S_ISVTX dir.
266
267 2012-02-24 Christopher Faylor <me.cygwin2012@cgf.cx>
268
269 * bootstrap.sh: Don't assume that libgetopt++ exists in source directory.
270 * configure.in: Remove some old options.
271 * Makefile.am: Ditto.
272 * libgetopt++/Makefile.am: Ditto.
273 * libgetopt++/configure.in: Ditto.
274
275 2012-02-24 Corinna Vinschen <corinna@vinschen.de>
276
277 * main.cc (WinMain): Move call to nt_sec.setDefaultSecurity here so
278 it's called earlier in the process. This avoids spurious error
279 messages in --help output.
280
281 2012-02-23 Jon TURNEY <jon.turney@dronecode.org.uk>
282
283 * main.cc (main_display): Move --help output from here ...
284 (WinMain): ... to here, so we don't logging of the current directory
285 and any errors from constructing a UserSettings object preceding the
286 --help output.
287
288 2011-05-30 SZAVAI Gyula <szgyg@ludens.elte.hu>
289
290 * site.cc (SiteSetting::SiteSetting): Handle multiple
291 --site options.
292 * crypto.cc (verify_ini_file_sig): Handle multiple
293 --pubkey and --sexpr-pubkey options.
294 * package_meta.cc (packagemeta::isManuallyWanted): Handle
295 multiple --packages and --categories options.
296
297 2012-02-22 Christopher Faylor <me.cygwin2012@cgf.cx>
298
299 * res.rc: Change copyright notice to -2012.
300
301 2012-02-19 Corinna Vinschen <corinna@vinschen.de>
302
303 * PickView.cc (PickView::list_click): Mark variable refresh as unused
304 to avoid compiler warning.
305 * nio-ftp.cc (NetIO_FTP::ok): Remove variable code to avoid compiler
306 warning.
307 * proppage.cc (PropertyPage::DialogProc): Ditto for retval.
308
309 * setup.exe.manifest: Add supportedOS entries to avoid annoying
310 "This program might not have installed correctly" PCA message on
311 Windows 7.
312
313 2011-12-22 Christopher Faylor <me.cygwin2011@cgf.cx>
314
315 * compress.cc: Explicitly include needed header.
316 * compress_bz.cc: Ditto.
317 * mkdir.h: Ditto.
318 * io_stream_cygfile.cc: Eliminate obsolete attempt to build as
319 non-mingw.
320 * io_stream_file.cc: Ditto throughout.
321 * mkdir.cc: Ditto.
322
323 2011-12-21 Jon TURNEY <jon.turney@dronecode.org.uk>
324
325 * choose.cc (OnInit): Properly mark packages which were selected on
326 command line in unattended mode for download and installation.
327
328 2011-09-08 Christopher Faylor <me.cygwin2011@cgf.cx>
329
330 * io_stream.h: Just call sys/types.h here rather than using our own
331 version of ssize_t.
332
333 2011-09-01 Corinna Vinschen <corinna@vinschen.de>
334
335 * CONTRIBUTORS: Add Warren Young.
336
337 2011-08-16 Corinna Vinschen <corinna@vinschen.de>
338 Warren Young <warren@etr-usa.com>
339
340 * cygwin-setup.ico: Slightly modified.
341 * cygwin-terminal.ico: Ditto.
342
343 2011-08-15 Corinna Vinschen <corinna@vinschen.de>
344 Warren Young <warren@etr-usa.com>
345
346 * cygwin.ico: New, smoother 152x152 icon.
347
348 2011-08-13 Jon TURNEY <jon.turney@dronecode.org.uk>
349
350 * choose.cc (OnInit, createListview): Build the initial list of packages
351 to install in OnInit() not in CreateListView(). If packages were
352 selected on command line in unattended mode, just install those
353 packages.
354 * package_db.h (packagedb): Add addCommandLinePackages() method.
355 * package_db.cc (addCommandLinePackages): Add separate method to add
356 these so we can indicate if packages were added on the command line.
357
358 2011-08-13 Jon TURNEY <jon.turney@dronecode.org.uk>
359
360 * PickView.cc (defaultTrust): Move implementation which deals with
361 package db from here...
362 * package_db.cc (defaultTrust): ... to here.
363 * package_db.h (packagedb): ... a new member function.
364
365 2011-08-12 Corinna Vinschen <corinna@vinschen.de>
366
367 * res.rc: Move spash icon slightly. Fix copyright.
368
369 2011-08-12 Corinna Vinschen <corinna@vinschen.de>
370 Warren Young <warren@etr-usa.com>
371
372 * cygwin-setup.ico: New file.
373 * cygwin-terminal.ico: New file.
374 * cygwin.ico: New icons.
375 * desktop.cc (make_link): Take additional argument to take arguments
376 for shortcut. Append arg to argbuf.
377 (start_menu): Take additional argument to take argments for shortcut.
378 Add to call to make_link.
379 (desktop_icon): Ditto.
380 (save_icon): Take path and name of resource as arguments. Replace
381 Cygwin icon if it's the old one.
382 (do_desktop_setup): Save Cygwin standalone and Cygwin terminal icons.
383 Rename desktop and start menu shortcut name to "Cygwin Terminal", use
384 the cygwin terminal icon for them, and point them to mintty.
385 * res.rc: Change splash icon to keep size of original icon.
386 (IDI_CYGWIN_SETUP): New entry.
387 (IDI_CYGWIN_TERMINAL): New entry.
388 (CYGWIN-SETUP.ICON): New entry.
389 (CYGWIN-TERMINAL.ICON): New entry.
390 * resource.h (IDI_CYGWIN_SETUP): Define.
391 (IDI_CYGWIN_TERMINAL): Define.
392
393 2011-07-25 Jon TURNEY <jon.turney@dronecode.org.uk>
394
395 * install.cc (do_install_thread): Only set progress bar output if at least
396 one package gets installed, to avoid a cosmetic issue.
397
398 2011-07-25 Corinna Vinschen <corinna@vinschen.de>
399
400 * desktop.cc (make_link): Create shortcuts to command.com only on 9x.
401
402 2011-07-20 Andy Koppe <andy.koppe@gmail.com>
403
404 * res.rc: Remove Prev button from chooser page.
405 * resource.h: Reflect removal of Prev button.
406 * package_meta.h (trustp): Ditto.
407 * choose.cc: Ditto.
408
409 2011-04-24 Jon TURNEY <jon.turney@dronecode.org.uk>
410
411 * download.cc (do_download_thread): Update progress display
412 when download phase starts
413
414 2011-04-24 Jon TURNEY <jon.turney@dronecode.org.uk>
415
416 * install.cc (do_install_thread): Report overall progress while
417 md5summing packages.
418
419 2011-04-08 Jon TURNEY <jon.turney@dronecode.org.uk>
420
421 * archive_tar_file.cc (read): Handle short reads
422
423 2011-04-08 Jon TURNEY <jon.turney@dronecode.org.uk>
424
425 * compress_bz.h (compress): Remove unused bufN member.
426 * compress_bz.cc (read): Handle bzip2 files containing multiple
427 streams
428
429 2011-04-08 Jon TURNEY <jon.turney@dronecode.org.uk>
430
431 * install.cc (extract_replace_on_reboot): New function containg code
432 extracted from...
433 (installOne): Report read errors differently to write errors
434 * archive.cc (extract_file): Distinguish read errors from write errors
435
436 2011-04-08 Jon TURNEY <jon.turney@dronecode.org.uk>
437
438 * io_stream.cc (copy): Propagate errors.
439
440 2011-04-08 Jon TURNEY <jon.turney@dronecode.org.uk>
441
442 * compress_bz.cc (read, peek): Consistently return -1 and set lasterr
443 on an error.
444 * compress_gz.cc (read, write, peek): Ditto.
445
446 2011-04-08 Jon TURNEY <jon.turney@dronecode.org.uk>
447
448 * archive_tar_file.cc (read, write, peek, seek): Consistently return -1
449 and set lasterr on an error.
450
451 2011-01-02 Jon TURNEY <jon.turney@dronecode.org.uk>
452
453 * crypto.c (ExtraKeyOption): Correct option description.
454
455 2010-12-16 Jon TURNEY <jon.turney@dronecode.org.uk>
456
457 * prereq.cc (OnNext, whatNext, OnUnattended): Fix PrereqPage::OnUnattended()
458 so PrereqPage behaves correctly in unattended modes.
459 * prereq.h (PrereqPage): Ditto
460 * proppage.cc (DialogProc): Update comment to clarify meaning of
461 OnUnattended() returning 0.
462
463 2010-11-26 Jon TURNEY <jon.turney@dronecode.org.uk>
464
465 * site.cc (init): Canonicalize mirror URLs to ensure the end
466 with a '/'.
467
468 2010-11-19 Jon TURNEY <jon.turney@dronecode.org.uk>
469
470 * IniDBBuilderPackage.cc (IniDBBuilderPackage): Remove db.packages vector
471 sorting.
472 (buildPackage, buildPackageSource): Change package collection from vector
473 to map.
474 * PickView.cc (setViewMode, init_headers, defaultTrust): Ditto.
475 * choose.cc (createListview, logResults, keepClicked)
476 (changeTrust): Ditto
477 * install.cc (do_install_thread): Ditto
478 * download.cc (do_download_thread): Ditto
479 * prereq.cc (isMet): Ditto
480 * package_meta.cc (ScanDownloadedFiles): Ditto
481 * package_db.h (packagedb): Ditto
482 * package_db.cc (packagedb, flush, markUnVisited, setExistence)
483 (fillMissingCategory): Ditto
484 (findBinary, findSource): Rewrite to locate packages in map rather than
485 searching the whole vector, for performance.
486 (ConnectedLoopFinder, doIt, visit): Rewrite to refer to package using a
487 packagemeta *, as an index into the vector of packages can no longer be
488 used.
489
490 2010-11-25 Corinna Vinschen <corinna@vinschen.de>
491
492 * package_db.cc (ConnectedLoopFinder::doIt): Drop hardcoded base-cygwin
493 dependency setting. Fix comment.
494
495 2010-11-23 Corinna Vinschen <corinna@vinschen.de>
496
497 * package_db.cc (ConnectedLoopFinder::doIt): Drop hardcoded base-passwd
498 dependency setting. Fix condition for base-cygwin string check.
499
500 2010-11-06 Jon TURNEY <jon.turney@dronecode.org.uk>
501
502 * package_meta.h (packagemeta): Remove unused member variables for
503 storing timestamp of the setup.ini that package version came from.
504 * package_meta.cc (packagemeta): Ditto.
505
506 2010-11-06 Jon TURNEY <jon.turney@dronecode.org.uk>
507
508 * package_version.h (packageversion): Add compareVersion() utility
509 function.
510 * package_version.cc (Vendor_version, Package_version)
511 (compareVersions): Implement the Vendor_version() and Package_version()
512 accessor functions. Add compareVersions() utility function.
513 * cygpackage.cc (setCanonicalVersion): Fix to extract vendor version
514 correctly.
515 * IniDBBuilderPackage.cc (add_correct_version): When multiple setup.ini's
516 offer different packages for the same stability level, use the package with
517 the highest version number rather than the package coming from the setup.ini
518 with the latest timestamp.
519
520 2010-11-19 Jon TURNEY <jon.turney@dronecode.org.uk>
521
522 * choose.cc (OnNext): Remove PrereqChecker call, instead use new
523 WM_APP_PREREQ_CHECK state of Progress dialog.
524 * threebar.h (WM_APP_PREREQ_CHECK)
525 (WM_APP_PREREQ_CHECK_THREAD_COMPLETE): Add new messages.
526 * threebar.cc (OnActivate, OnMessageApp): Use single bar mode for
527 WM_APP_PREREQ_CHECK state. Handle new messages.
528 * dialog.h (do_prereq_check_thread): Add prototype.
529 * prereq.cc (isMet, do_prereq_check_thread)
530 (do_prereq_check_reflector, do_prereq_check): Add progress reporting
531 during isMet, and thread containing moved PrereqChecker code.
532
533 2010-11-17 Jon TURNEY <jon.turney@dronecode.org.uk>
534
535 * package_meta.cc (set_action): Always set the binary tick box
536 when selecting a specific version (if binary is available)
537
538 2010-11-17 Jon TURNEY <jon.turney@dronecode.org.uk>
539
540 * postinstall.cc (do_postinstall_thread): Refer to "Unknown package"
541 rather than "No package"
542
543 2010-11-19 Christopher Faylor <me+cygwin@cgf.cx>
544
545 Throughout, change all occurrences of "PostMessage" to PostMessageNow.
546 This works around problem where w32api uses a #define which calls the
547 Windows API version of PostMessage directly, confusing g++ 3.4.4.
548
549 2010-11-07 Jon TURNEY <jon.turney@dronecode.org.uk>
550
551 * propsheet.cc (PropSheetProc): Set the big icon for the propsheet
552 window
553
554 2010-11-07 Jon TURNEY <jon.turney@dronecode.org.uk>
555
556 * ini.cc (GuiParseFeedback::progress, GuiParseFeedback::iniName):
557 Update all the text in the progress dialog whilst parsing .ini file,
558 not just the top line.
559
560 2010-11-07 Jon TURNEY <jon.turney@dronecode.org.uk>
561
562 * choose.cc (OnBack): Move PlaceDialog(false) so window is resized in
563 'Install from Local Directory' mode as well.
564
565 2010-11-06 Jon TURNEY <jon.turney@dronecode.org.uk>
566
567 * res.rc (IDD_NET): Make text referring to IE5 more general
568
569 2010-11-04 Jon TURNEY <jon.turney@dronecode.org.uk>
570
571 * compress_bz.h (compress): Add endReached flag.
572 * compress_bz.cc (read, compress_bz): Use endReached flag to return 0
573 for a read when EOF has been reached, after BZ2_bzDecompress returns
574 BZ_STREAM_END, rather than continue to try to call BZ2_bzDecompress
575 beyond the end of the compressed data, generating a BZ_SEQUENCE_ERROR.
576 * ini.cc (do_remote_ini): Now that bz2_stream doesn't always have a
577 spurious error, detect and report if an error occurred decompressing.
578
579 2010-09-13 Václav Haisman <v.haisman@sh.cvut.cz>
580
581 * propsheet.cc (PropSheet::SetActivePage): Remove :: from call to
582 PropSheet_SetCurSel.
583 (PropSheet::SetActivePageByID): Remove :: from call to
584 PropSheet_SetCurSelByID.
585 (PropSheet::SetButtons): Remove :: from call to PropSheet_SetWizButtons.
586 (PropSheet::PressButton): Remove :: from call to PropSheet_PressButton.
587
588 2010-09-07 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
589
590 * postinstall.cc: Add #include <algorithm> to fix build with gcc-4.x.
591
592 2010-08-29 Jon TURNEY <jon.turney@dronecode.org.uk>
593
594 * postinstall.cc (do_postinstall_thread): Don't run postinstall
595 scripts belonging to a just installed package twice.
596 * script.h (Script): Add operator ==
597
598 2010-08-25 Andy Koppe <andy.koppe@gmail.com>
599
600 * script.cc (init_run_script): Set CYGWINFORALL="-A" for
601 postinstall/preremove scripts when installing for all users.
602
603 2010-08-19 Andy Koppe <andy.koppe@gmail.com>
604
605 * package_meta.h (packagemeta::trustp): Update non-experimental
606 packages too when Exp is selected.
607
608 2010-08-18 Andy Koppe <andy.koppe@gmail.com>
609
610 * res.rc (IDD_PREREQ): Say "Resolving Dependencies" instead of
611 "Unmet Dependencies found"
612 * prereq.cc (PrereqPage::OnNext): Tone down message box about
613 missing dependencies.
614
615 2010-08-15 Andy Koppe <andy.koppe@gmail.com>
616
617 * postinstall.cc (PostInstallResultsPage::OnNext):
618 Remove postinstall script error message box.
619 * res.rc (IDS_POSTINSTALL): Try to make postinstall errors
620 less scary.
621
622 2010-08-11 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
623
624 * bootstrap.sh: Allow running from a builddir. Run configure
625 unless NOCONFIGURE is defined.
626 * doconfigure: Remove.
627 * Makefile.am (EXTRA_DIST): Remove doconfigure.
628 * README: Document that bootstrap.sh runs configure.
629 Remove reference to doconfigure.
630
631 2010-08-10 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
632
633 * configure.in: Check for prerequisites' headers.
634 * Makefile.am: Remove libinilex.a library, instead...
635 (inilint_SOURCES): Add inilex.ll. (setup_SOURCES): Ditto.
636 * inilex.ll: Use option nounput to avoid "defined but not used"
637 warning from yyunput().
638
639 2010-08-10 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
640
641 Fix compatibility with GCC 4.x.
642 * Makefile.am (setup_LDFLAGS): Pass -static to compiler instead of
643 linker so that libgcc is statically linked as well.
644 (autoload.o): Disable optimization.
645 * localdir.cc (browse_cb): Fix "jump to case label crosses
646 initialization" error.
647 * mklink2.cc (sfli): Fix "non-local variable uses anonymous type"
648 warning.
649 * ntdll.h: Fix "redeclared without dllimport attribute: previous
650 dllimport ignored" warnings.
651 * package_message.h (display): Fix "'exit' was not declared in this
652 scope" error.
653
654 2010-08-10 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
655
656 * Makefile.am: Treat libgetopt++ as full-fledged SUBDIRS.
657 (setup_LDADD): Always link against included libgetopt++.
658
659 2010-08-08 Corinna Vinschen <corinna@vinschen.de>
660
661 * prereq.cc (PrereqChecker::getUnmetString): Improve dependency list
662 output.
663
664 2010-08-07 Andy Koppe <andy.koppe@gmail.com>
665
666 * prereq.cc (PrereqChecker::isMet): Find unmet indirect
667 dependencies too.
668
669 2010-08-06 Andy Koppe <andy.koppe@gmail.com>
670
671 * res.rc (IDS_VIEWBUTTON_TOOLTIP): Rename "Partial" view
672 to "Pending" (again).
673
674 2010-08-05 Andy Koppe <andy.koppe@gmail.com>
675
676 * res.rc (IDD_PREREQ DIALOG): Tweak wording on dependency page.
677
678 2010-07-31 Dave Korn <dave.korn.cygwin@gmail.com>
679
680 * install.cc (Installer::installOne): Also record zero-sized
681 tarballs as successfully installed.
682
683 2010-07-30 Jon TURNEY <jon.turney@dronecode.org.uk>
684
685 * postinstall.cc (do_postinstall_reflector): Fix typo.
686
687 2010-07-30 Christopher Faylor <me+cygwin@cgf.cx>
688
689 * inilex.ll: Allow "~" in a string.
690
691 2010-07-29 Jon TURNEY <jon.turney@dronecode.org.uk>
692
693 * resource.h (IDD_POSTINSTALL, IDC_POSTINSTALL_EDIT): Add resource
694 identifiers for postinstall results page.
695 * res.rc (IDD_POSTINSTALL): Add dialog resource for postinstall results
696 page.
697 * postinstallresults.h: New file.
698 * postinstallresults.cc: New file.
699 * main.cc (main_display): Add a PostInstallResultsPage to the wizard.
700 * Makefile.am (setup_SOURCES): Add new files.
701 * threebar.cc (OnMessageApp): Allow WM_APP_POSTINSTALL_THREAD_COMPLETE
702 to select the next page shown.
703 * postinstall.cc (do_postinstall_thread)
704 (do_postinstall_reflector): Collect results of running scripts and
705 compose a reporting message which we pass to the postinstall results
706 page. Select postinstall results page next if there are results to
707 show, otherwise desktop setup page as before.
708 * script.cc (run): Don't rename as .done scripts which didn't run
709 successfully.
710
711 2010-07-26 Andy Koppe <andy.koppe@gmail.com>
712
713 * PickView.cc (PickView::views::caption): Rename "Partial" view
714 to "Pending".
715 * res.rc (IDS_VIEWBUTTON_TOOLTIP): Ditto.
716
717 2010-07-22 Andy Koppe <andy.koppe@gmail.com>
718
719 * PickPackageLine.cc (PickPackageLine::{click,set_action}):
720 Don't trigger automatic package selection when clicking on
721 packages or categories on chooser screen.
722 * PickCategoryLine.cc (PickCategoryLine::click): No more need to
723 prepare for automatic package selection with markUnVisited().
724 * res.rc: Drop "Warning!" from caption of Resolve Dependencies
725 screen.
726
727 2010-04-17 Dave Korn <dave.korn.cygwin@gmail.com>
728
729 * root.cc (RootPage::OnNext): Don't construct a packagedb here nor
730 do deferred initialisation of static packagedb::task.
731 * source.cc (save_dialog): Don't construct a packagedb here, and
732 set static packagedb::task directly instead of chosen_db_task.
733 * package_meta.cc (packagemeta::action_caption): Don't bother to
734 construct a packagedb here, just access packagedb::task directly.
735 * package_db.cc: Move 'static members' comment near static members.
736 (chosen_db_task): Delete.
737 * package_db.h (chosen_db_task): Don't declare extern.
738 (packagedb): Extend comments on class.
739
740 2010-04-14 Dave Korn <dave.korn.cygwin@gmail.com>
741
742 * PickView.cc (PickView::WindowProc): Delete inadvertently-committed
743 debug logging.
744
745 2010-04-13 Dave Korn <dave.korn.cygwin@gmail.com>
746
747 * PickView.h (PickView::set_vscroll_info): Add prototype.
748 (PickView::hasClientRect): Rename from this ...
749 (PickView::hasWindowRect): ... to this ...
750 (PickView::lastClientRect): ... and from this ...
751 (PickView::lastWindowRect): ... to this.
752 * PickView.cc (PickView::PickView): Adjust member init to match.
753 (PickView::set_vscroll_info): Abstract code to set vertical scroll
754 bar proportions from ...
755 (PickView::list_click): ... here. Call it. Fix comment typo.
756 (PickView::WindowProc): Update all renamed variables in WM_SIZE
757 case, and check also for a y delta, calling set_vscroll_info if so.
758
759 2010-04-13 Dave Korn <dave.korn.cygwin@gmail.com>
760
761 * window.cc (Window::Window): Initialise BusyCount and BusyCursor.
762 (Window::SetBusy): Set hourglass cursor, counting nested activations.
763 (Window::ClearBusy): Cancel one call to SetBusy and restore original
764 cursor if no longer busy.
765 * window.h (Window::BusyCount): New data member.
766 (Window::OldCursor): Likewise.
767 (Window::BusyCursor): Likewise.
768 (Window::SetBusy): Prototype.
769 (Window::ClearBusy): Likewise.
770 * choose.cc (ChooserPage::createListview): Invoke busy cursor
771 around long-running operation.
772 (ChooserPage::OnInit): Likewise.
773 (ChooserPage::changeTrust): Likewise.
774 * PickCategoryLine.cc (PickCategoryLine::set_action): Likewise.
775
776 2010-04-08 Christopher Faylor <me+cygwin@cgf.cx>
777
778 * bootstrap.sh: Always reconfigure in libgetopt++.
779
780 * Makefile.am: Remove old code for direct copying to sourceware. Add
781 -src to source tarball.
782
783 2010-04-07 Matthias Andree <matthias.andree@gmx.de>
784
785 * README (HOW TO BUILD): Mention mingw-lib{gcrypt,lzma}-devel.
786
787 * res.rc (IDD_DESKTOP): Move Installation Status line,
788 IDC_STATUS_HEADER and IDC_STATUS up 20 units, make IDC_STATUS text
789 20 units taller and 40 units wider so that IDS_REBOOT_REQUIRED
790 message fits the screen.
791 * res.rc (IDD_SPLASH): Bump copyright years in IDC_SLASH_COPYR to
792 "2000-2010".
793
794 2010-04-07 Corinna Vinschen <corinna@vinschen.de>
795
796 * install.cc (create_allow_protected_renames): New function to
797 create AllowProtectedRenames registry entry.
798 (Installer::installOne): Call create_allow_protected_renames if former
799 call to MoveFileEx was successful.
800
801 2010-03-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
802
803 Use external crypto libraries
804 * Makefile.am: Remove local libgcrypt and libgpg-error
805 source directories from AM_CPPFLAGS.
806 * configure.ac: Remove libgcrypt and libgpg-error subdirs
807 from AC_CONFIG_SUBDIRS. Remove now-unnecessary cruft.
808 * doconfigure: Specify gcc-3 and g++-3. Set PATH when $build
809 is cygwin, so that correct (mingw) libgcrypt and libgpg-error
810 config scripts can be used.
811
812 Remove libgpg-error.
813 * libgpg-error/tests/Makefile.am, libgpg-error/tests/Makefile.in,
814 libgpg-error/tests/t-strerror.c, libgpg-error/tests/t-syserror.c,
815 libgpg-error/po/ChangeLog, libgpg-error/po/LINGUAS,
816 libgpg-error/po/Makefile.in.in, libgpg-error/po/Makevars,
817 libgpg-error/po/POTFILES.in, libgpg-error/po/Rules-quot,
818 libgpg-error/po/boldquot.sed, libgpg-error/po/de.gmo,
819 libgpg-error/po/de.po, libgpg-error/po/en@boldquot.header,
820 libgpg-error/po/en@quot.header, libgpg-error/po/fr.gmo,
821 libgpg-error/po/fr.po libgpg-error/po/insert-header.sin,
822 libgpg-error/po/libgpg-error.pot, libgpg-error/po/pl.gmo,
823 libgpg-error/po/pl.po, libgpg-error/po/quot.sed,
824 libgpg-error/po/remove-potcdate.sin, libgpg-error/po/ro.gmo,
825 libgpg-error/po/ro.po libgpg-error/po/stamp-po,
826 libgpg-error/po/sv.po, libgpg-error/po/vi.gmo,
827 libgpg-error/po/vi.po, libgpg-error/po/sv.gmo,
828 libgpg-error/m4/ChangeLog, libgpg-error/m4/Makefile.am,
829 libgpg-error/m4/ac_prog_cc_for_build.m4, libgpg-error/m4/autobuild.m4,
830 libgpg-error/m4/codeset.m4, libgpg-error/m4/gettext.m4,
831 libgpg-error/m4/glibc2.m4, libgpg-error/m4/glibc21.m4,
832 libgpg-error/m4/iconv.m4, libgpg-error/m4/intdiv0.m4,
833 libgpg-error/m4/intmax.m4, libgpg-error/m4/inttypes-h.m4,
834 libgpg-error/m4/inttypes-pri.m4, libgpg-error/m4/inttypes.m4,
835 libgpg-error/m4/inttypes_h.m4, libgpg-error/m4/isc-posix.m4,
836 libgpg-error/m4/lcmessage.m4, libgpg-error/m4/lib-ld.m4,
837 libgpg-error/m4/lib-link.m4, libgpg-error/m4/lib-prefix.m4,
838 libgpg-error/m4/libtool.m4, libgpg-error/m4/lock.m4,
839 libgpg-error/m4/longdouble.m4, libgpg-error/m4/longlong.m4,
840 libgpg-error/m4/nls.m4, libgpg-error/m4/po.m4,
841 libgpg-error/m4/printf-posix.m4, libgpg-error/m4/progtest.m4,
842 libgpg-error/m4/signed.m4, libgpg-error/m4/size_max.m4,
843 libgpg-error/m4/stdint_h.m4, libgpg-error/m4/uintmax_t.m4,
844 libgpg-error/m4/ulonglong.m4, libgpg-error/m4/visibility.m4,
845 libgpg-error/m4/wchar_t.m4, libgpg-error/m4/wint_t.m4,
846 libgpg-error/m4/xsize.m4, libgpg-error/m4/Makefile.in,
847 libgpg-error/lang/Makefile.am, libgpg-error/lang/README,
848 libgpg-error/lang/Makefile.in, libgpg-error/lang/cl/Makefile.am,
849 libgpg-error/lang/cl/README, libgpg-error/lang/cl/gpg-error-package.lisp,
850 libgpg-error/lang/cl/gpg-error.asd, libgpg-error/lang/cl/gpg-error.asd.in,
851 libgpg-error/lang/cl/gpg-error.lisp, libgpg-error/lang/cl/mkerrcodes.awk,
852 libgpg-error/lang/cl/Makefile.in, libgpg-error/src/Makefile.am,
853 libgpg-error/src/README, libgpg-error/src/code-from-errno.c,
854 libgpg-error/src/code-to-errno.c, libgpg-error/src/err-codes.h,
855 libgpg-error/src/err-codes.h.in, libgpg-error/src/err-sources.h,
856 libgpg-error/src/err-sources.h.in, libgpg-error/src/errnos.in,
857 libgpg-error/src/gettext.h, libgpg-error/src/gpg-error-config.in,
858 libgpg-error/src/gpg-error.c, libgpg-error/src/gpg-error.def,
859 libgpg-error/src/gpg-error.h, libgpg-error/src/gpg-error.h.in,
860 libgpg-error/src/gpg-error.m4, libgpg-error/src/init.c,
861 libgpg-error/src/mkerrcodes.awk, libgpg-error/src/mkerrcodes.c,
862 libgpg-error/src/mkerrcodes1.awk, libgpg-error/src/mkerrcodes2.awk,
863 libgpg-error/src/mkerrnos.awk, libgpg-error/src/mkheader.awk,
864 libgpg-error/src/mkstrtable.awk, libgpg-error/src/strerror-sym.c,
865 libgpg-error/src/strerror.c, libgpg-error/src/strsource-sym.c,
866 libgpg-error/src/strsource.c, libgpg-error/src/versioninfo.rc.in,
867 libgpg-error/src/w32-gettext.c, libgpg-error/src/w32-gettext.h,
868 libgpg-error/src/Makefile.in, libgpg-error/ABOUT-NLS,
869 libgpg-error/AUTHORS, libgpg-error/COPYING, libgpg-error/COPYING.LIB,
870 libgpg-error/ChangeLog, libgpg-error/INSTALL, libgpg-error/Makefile.am,
871 libgpg-error/NEWS, libgpg-error/README, libgpg-error/THANKS,
872 libgpg-error/VERSION, libgpg-error/autogen.sh, libgpg-error/compile,
873 libgpg-error/config.guess, libgpg-error/config.rpath,
874 libgpg-error/config.sub, libgpg-error/configure.ac, libgpg-error/depcomp,
875 libgpg-error/install-sh, libgpg-error/libgpg-error.spec,
876 libgpg-error/libgpg-error.spec.in, libgpg-error/ltmain.sh,
877 libgpg-error/missing, libgpg-error/mkinstalldirs,
878 libgpg-error/aclocal.m4, libgpg-error/configure,
879 libgpg-error/config.h.in, libgpg-error/Makefile.in: Remove.
880
881 Remove libgcrypt.
882 * libgcrypt/tests/ChangeLog, libgcrypt/tests/Makefile.am,
883 libgcrypt/tests/ac-data.c, libgcrypt/tests/ac-schemes.c,
884 libgcrypt/tests/ac.c, libgcrypt/tests/basic.c,
885 libgcrypt/tests/benchmark.c, libgcrypt/tests/hmac.c,
886 libgcrypt/tests/keygen.c, libgcrypt/tests/keygrip.c,
887 libgcrypt/tests/mpitests.c, libgcrypt/tests/pkbench.c,
888 libgcrypt/tests/prime.c, libgcrypt/tests/pubkey.c,
889 libgcrypt/tests/random.c, libgcrypt/tests/register.c,
890 libgcrypt/tests/t-mpi-bit.c, libgcrypt/tests/testapi.c,
891 libgcrypt/tests/tsexp.c, libgcrypt/tests/version.c,
892 libgcrypt/tests/Makefile.in, libgcrypt/src/ChangeLog
893 libgcrypt/src/Makefile.am, libgcrypt/src/Manifest, libgcrypt/src/ath.c,
894 libgcrypt/src/ath.h, libgcrypt/src/cipher.h, libgcrypt/src/dumpsexp.c,
895 libgcrypt/src/g10lib.h, libgcrypt/src/gcrypt-module.h,
896 libgcrypt/src/gcrypt.h, libgcrypt/src/gcrypt.h.in,
897 libgcrypt/src/gcryptrnd.c, libgcrypt/src/getrandom.c,
898 libgcrypt/src/global.c, libgcrypt/src/hwfeatures.c,
899 libgcrypt/src/libgcrypt-config.in, libgcrypt/src/libgcrypt.def,
900 libgcrypt/src/libgcrypt.m4, libgcrypt/src/libgcrypt.vers,
901 libgcrypt/src/misc.c, libgcrypt/src/missing-string.c,
902 libgcrypt/src/module.c, libgcrypt/src/mpi.h, libgcrypt/src/secmem.h,
903 libgcrypt/src/sexp.c, libgcrypt/src/stdmem.c, libgcrypt/src/stdmem.h,
904 libgcrypt/src/types.h, libgcrypt/src/versioninfo.rc.in,
905 libgcrypt/src/visibility.c, libgcrypt/src/visibility.h,
906 libgcrypt/src/Makefile.in, libgcrypt/src/secmem.c,
907 libgcrypt/m4/ChangeLog, libgcrypt/m4/Makefile.am,
908 libgcrypt/m4/libtool.m4, libgcrypt/m4/noexecstack.m4,
909 libgcrypt/m4/onceonly.m4, libgcrypt/m4/socklen.m4,
910 libgcrypt/m4/sys_socket_h.m4, libgcrypt/m4/Makefile.in,
911 libgcrypt/doc/ChangeLog, libgcrypt/doc/HACKING,
912 libgcrypt/doc/Makefile.am, libgcrypt/doc/README.apichanges,
913 libgcrypt/doc/gcrypt.texi, libgcrypt/doc/gpl.texi,
914 libgcrypt/doc/lgpl.texi, libgcrypt/doc/mdate-sh,
915 libgcrypt/doc/texinfo.tex, libgcrypt/doc/stamp-vti,
916 libgcrypt/doc/version.texi, libgcrypt/doc/gcrypt.info,
917 libgcrypt/doc/Makefile.in, libgcrypt/cipher/ChangeLog,
918 libgcrypt/cipher/Makefile.am, libgcrypt/cipher/Manifest,
919 libgcrypt/cipher/ac.c, libgcrypt/cipher/arcfour.c,
920 libgcrypt/cipher/bithelp.h, libgcrypt/cipher/blowfish.c,
921 libgcrypt/cipher/camellia-glue.c, libgcrypt/cipher/camellia.c,
922 libgcrypt/cipher/camellia.h, libgcrypt/cipher/cast5.c,
923 libgcrypt/cipher/cipher.c, libgcrypt/cipher/crc.c,
924 libgcrypt/cipher/des.c, libgcrypt/cipher/dsa.c, libgcrypt/cipher/ecc.c,
925 libgcrypt/cipher/elgamal.c, libgcrypt/cipher/md.c,
926 libgcrypt/cipher/md4.c, libgcrypt/cipher/md5.c,
927 libgcrypt/cipher/primegen.c, libgcrypt/cipher/pubkey.c,
928 libgcrypt/cipher/rand-internal.h, libgcrypt/cipher/random-daemon.c,
929 libgcrypt/cipher/random.c, libgcrypt/cipher/random.h,
930 libgcrypt/cipher/rfc2268.c, libgcrypt/cipher/rijndael-tables.h,
931 libgcrypt/cipher/rijndael.c, libgcrypt/cipher/rmd.h,
932 libgcrypt/cipher/rmd160.c, libgcrypt/cipher/rndegd.c,
933 libgcrypt/cipher/rndhw.c, libgcrypt/cipher/rndlinux.c,
934 libgcrypt/cipher/rndunix.c, libgcrypt/cipher/rndw32.c,
935 libgcrypt/cipher/rsa.c, libgcrypt/cipher/seed.c,
936 libgcrypt/cipher/serpent.c, libgcrypt/cipher/sha1.c,
937 libgcrypt/cipher/sha256.c, libgcrypt/cipher/sha512.c,
938 libgcrypt/cipher/tiger.c, libgcrypt/cipher/twofish.c,
939 libgcrypt/cipher/whirlpool.c, libgcrypt/cipher/Makefile.in,
940 libgcrypt/AUTHORS, libgcrypt/BUGS, libgcrypt/COPYING,
941 libgcrypt/COPYING.LIB, libgcrypt/ChangeLog, libgcrypt/INSTALL,
942 libgcrypt/Makefile.am, libgcrypt/NEWS, libgcrypt/README,
943 libgcrypt/README.SVN, libgcrypt/THANKS, libgcrypt/TODO, libgcrypt/VERSION,
944 libgcrypt/acinclude.m4, libgcrypt/autogen.sh, libgcrypt/compile,
945 libgcrypt/config.guess, libgcrypt/config.sub, libgcrypt/configure.ac,
946 libgcrypt/depcomp, libgcrypt/install-sh, libgcrypt/ltmain.sh,
947 libgcrypt/missing, libgcrypt/mkinstalldirs, , libgcrypt/aclocal.m4,
948 libgcrypt/configure, libgcrypt/config.h.in, libgcrypt/Makefile.in,
949 libgcrypt/mpi/ChangeLog, libgcrypt/mpi/Makefile.am,
950 libgcrypt/mpi/Manifest, libgcrypt/mpi/config.links, libgcrypt/mpi/ec.c,
951 libgcrypt/mpi/longlong.h, libgcrypt/mpi/mpi-add.c,
952 libgcrypt/mpi/mpi-bit.c, libgcrypt/mpi/mpi-cmp.c,
953 libgcrypt/mpi/mpi-div.c, libgcrypt/mpi/mpi-gcd.c,
954 libgcrypt/mpi/mpi-inline.c, libgcrypt/mpi/mpi-inline.h,
955 libgcrypt/mpi/mpi-internal.h, libgcrypt/mpi/mpi-inv.c,
956 libgcrypt/mpi/mpi-mod.c, libgcrypt/mpi/mpi-mpow.c,
957 libgcrypt/mpi/mpi-mul.c, libgcrypt/mpi/mpi-pow.c,
958 libgcrypt/mpi/mpi-scan.c, libgcrypt/mpi/mpicoder.c,
959 libgcrypt/mpi/mpih-div.c, libgcrypt/mpi/mpih-mul.c,
960 libgcrypt/mpi/mpiutil.c, libgcrypt/mpi/Makefile.in,
961 libgcrypt/mpi/alpha/README, libgcrypt/mpi/alpha/distfiles,
962 libgcrypt/mpi/alpha/mpih-add1.S, libgcrypt/mpi/alpha/mpih-lshift.S,
963 libgcrypt/mpi/alpha/mpih-mul1.S, libgcrypt/mpi/alpha/mpih-mul2.S,
964 libgcrypt/mpi/alpha/mpih-mul3.S, libgcrypt/mpi/alpha/mpih-rshift.S,
965 libgcrypt/mpi/alpha/mpih-sub1.S, libgcrypt/mpi/alpha/udiv-qrnnd.S,
966 libgcrypt/mpi/amd64/distfiles, libgcrypt/mpi/amd64/mpih-add1.S,
967 libgcrypt/mpi/amd64/mpih-lshift.S, libgcrypt/mpi/amd64/mpih-mul1.S,
968 libgcrypt/mpi/amd64/mpih-mul2.S, libgcrypt/mpi/amd64/mpih-mul3.S,
969 libgcrypt/mpi/amd64/mpih-rshift.S, libgcrypt/mpi/amd64/mpih-sub1.S,
970 libgcrypt/mpi/generic/Manifest, libgcrypt/mpi/generic/distfiles,
971 libgcrypt/mpi/generic/mpi-asm-defs.h, libgcrypt/mpi/generic/mpih-add1.c,
972 libgcrypt/mpi/generic/mpih-lshift.c, libgcrypt/mpi/generic/mpih-mul1.c,
973 libgcrypt/mpi/generic/mpih-mul2.c, libgcrypt/mpi/generic/mpih-mul3.c,
974 libgcrypt/mpi/generic/mpih-rshift.c, libgcrypt/mpi/generic/mpih-sub1.c,
975 libgcrypt/mpi/generic/udiv-w-sdiv.c, libgcrypt/mpi/hppa/README,
976 libgcrypt/mpi/hppa/distfiles, libgcrypt/mpi/hppa/mpih-add1.S,
977 libgcrypt/mpi/hppa/mpih-lshift.S, libgcrypt/mpi/hppa/mpih-rshift.S,
978 libgcrypt/mpi/hppa/mpih-sub1.S, libgcrypt/mpi/hppa/udiv-qrnnd.S,
979 libgcrypt/mpi/hppa1.1/distfiles, libgcrypt/mpi/hppa1.1/mpih-mul1.S,
980 libgcrypt/mpi/hppa1.1/mpih-mul2.S, libgcrypt/mpi/hppa1.1/mpih-mul3.S,
981 libgcrypt/mpi/hppa1.1/udiv-qrnnd.S, libgcrypt/mpi/i386/Manifest,
982 libgcrypt/mpi/i386/distfiles, libgcrypt/mpi/i386/mpih-add1.S,
983 libgcrypt/mpi/i386/mpih-lshift.S, libgcrypt/mpi/i386/mpih-mul1.S,
984 libgcrypt/mpi/i386/mpih-mul2.S, libgcrypt/mpi/i386/mpih-mul3.S,
985 libgcrypt/mpi/i386/mpih-rshift.S, libgcrypt/mpi/i386/mpih-sub1.S,
986 libgcrypt/mpi/i386/syntax.h, libgcrypt/mpi/i586/Manifest,
987 libgcrypt/mpi/i586/README, libgcrypt/mpi/i586/distfiles,
988 libgcrypt/mpi/i586/mpih-add1.S, libgcrypt/mpi/i586/mpih-lshift.S,
989 libgcrypt/mpi/i586/mpih-mul1.S, libgcrypt/mpi/i586/mpih-mul2.S,
990 libgcrypt/mpi/i586/mpih-mul3.S, libgcrypt/mpi/i586/mpih-rshift.S,
991 libgcrypt/mpi/i586/mpih-sub1.S, libgcrypt/mpi/m68k/Manifest,
992 libgcrypt/mpi/m68k/distfiles, libgcrypt/mpi/m68k/mpih-add1.S,
993 libgcrypt/mpi/m68k/mpih-lshift.S, libgcrypt/mpi/m68k/mpih-rshift.S,
994 libgcrypt/mpi/m68k/mpih-sub1.S, libgcrypt/mpi/m68k/syntax.h,
995 libgcrypt/mpi/mips3/Manifest, libgcrypt/mpi/mips3/README,
996 libgcrypt/mpi/mips3/distfiles, libgcrypt/mpi/mips3/mpi-asm-defs.h,
997 libgcrypt/mpi/mips3/mpih-add1.S, libgcrypt/mpi/mips3/mpih-lshift.S,
998 libgcrypt/mpi/mips3/mpih-mul1.S, libgcrypt/mpi/mips3/mpih-mul2.S,
999 libgcrypt/mpi/mips3/mpih-mul3.S, libgcrypt/mpi/mips3/mpih-rshift.S,
1000 libgcrypt/mpi/mips3/mpih-sub1.S, libgcrypt/mpi/pa7100/Manifest,
1001 libgcrypt/mpi/pa7100/distfiles, libgcrypt/mpi/pa7100/mpih-lshift.S,
1002 libgcrypt/mpi/pa7100/mpih-rshift.S, libgcrypt/mpi/pentium4/README,
1003 libgcrypt/mpi/pentium4/distfiles, libgcrypt/mpi/power/Manifest,
1004 libgcrypt/mpi/power/distfiles, libgcrypt/mpi/power/mpih-add1.S,
1005 libgcrypt/mpi/power/mpih-lshift.S, libgcrypt/mpi/power/mpih-mul1.S,
1006 libgcrypt/mpi/power/mpih-mul2.S, libgcrypt/mpi/power/mpih-mul3.S,
1007 libgcrypt/mpi/power/mpih-rshift.S, libgcrypt/mpi/power/mpih-sub1.S,
1008 libgcrypt/mpi/powerpc32/Manifest, libgcrypt/mpi/powerpc32/distfiles,
1009 libgcrypt/mpi/powerpc32/mpih-add1.S,
1010 libgcrypt/mpi/powerpc32/mpih-lshift.S,
1011 libgcrypt/mpi/powerpc32/mpih-mul1.S,
1012 libgcrypt/mpi/powerpc32/mpih-mul2.S,
1013 libgcrypt/mpi/powerpc32/mpih-mul3.S,
1014 libgcrypt/mpi/powerpc32/mpih-rshift.S,
1015 libgcrypt/mpi/powerpc32/mpih-sub1.S, libgcrypt/mpi/powerpc32/syntax.h,
1016 libgcrypt/mpi/powerpc64/distfiles, libgcrypt/mpi/sparc32/Manifest,
1017 libgcrypt/mpi/sparc32/distfiles, libgcrypt/mpi/sparc32/mpih-add1.S,
1018 libgcrypt/mpi/sparc32/mpih-lshift.S,
1019 libgcrypt/mpi/sparc32/mpih-rshift.S, libgcrypt/mpi/sparc32/udiv.S,
1020 libgcrypt/mpi/sparc32v8/Manifest, libgcrypt/mpi/sparc32v8/distfiles,
1021 libgcrypt/mpi/sparc32v8/mpih-mul1.S,
1022 libgcrypt/mpi/sparc32v8/mpih-mul2.S,
1023 libgcrypt/mpi/sparc32v8/mpih-mul3.S, libgcrypt/mpi/supersparc/Manifest,
1024 libgcrypt/mpi/supersparc/distfiles,
1025 libgcrypt/mpi/supersparc/udiv.S, libgcrypt/mpi/m68k/mc68020/distfiles
1026 libgcrypt/mpi/m68k/mc68020/Manifest,
1027 libgcrypt/mpi/m68k/mc68020/mpih-mul1.S,
1028 libgcrypt/mpi/m68k/mc68020/mpih-mul2.S,
1029 libgcrypt/mpi/m68k/mc68020/mpih-mul3.S,
1030 libgcrypt/mpi/pentium4/mmx/distfiles,
1031 libgcrypt/mpi/pentium4/mmx/mpih-lshift.S,
1032 libgcrypt/mpi/pentium4/mmx/mpih-rshift.S,
1033 libgcrypt/mpi/pentium4/sse2/distfiles,
1034 libgcrypt/mpi/pentium4/sse2/mpih-add1.S,
1035 libgcrypt/mpi/pentium4/sse2/mpih-mul1.S,
1036 libgcrypt/mpi/pentium4/sse2/mpih-mul2.S,
1037 libgcrypt/mpi/pentium4/sse2/mpih-mul3.S,
1038 libgcrypt/mpi/pentium4/sse2/mpih-sub1.S: Remove.
1039
1040 2010-03-17 Corinna Vinschen <corinna@vinschen.de>
1041
1042 * autoload.cc (Auto): Create autoload code in an executable section
1043 called .autoload_text to avoid problems with DEP.
1044
1045 2010-03-14 Christopher Faylor <me+cygwin@cgf.cx>
1046
1047 * Makefile.am: Add a setup-src target.
1048
1049 2010-03-14 Charles Wilson <cygwin@cwilson.fastmail.fm>
1050
1051 Support xz and lzma decompression via liblzma
1052 * Makefile.am: Add -DLZMA_API_STATIC to AM_CPPFLAGS,
1053 -lzma to setup_LDADD, and -static-libtool-libs to
1054 setup_LDFLAGS. Update setup_SOURCES.
1055 * compress.cc: Update includes.
1056 (compress::decompress): Use compress_xz rather than
1057 compress_lzma; compress_xz supports both xz and lzma
1058 decompression.
1059 * compress_xz.h: New.
1060 * compress_xz.cc: New.
1061 * compress_lzma.h: Removed.
1062 * compress_lzma.cc: Removed.
1063 * lzma-sdk/LzmaDec.c: Removed.
1064 * lzma-sdk/LzmaDec.h: Removed.
1065 * lzma-sdk/Types.h: Removed.
1066
1067 2010-03-13 DJ Delorie <dj@redhat.com>
1068
1069 * nio-ftp.c (read): Read RETR status code on EOF to avoid
1070 deadlock with PASV.
1071
1072 2010-03-01 Corinna Vinschen <corinna@vinschen.de>
1073
1074 * filemanip.cc (mklongpath): Skip "." and ".." path components to
1075 avoid error messages.
1076
1077 2010-02-15 Corinna Vinschen <corinna@vinschen.de>
1078
1079 * filemanip.cc (mklongpath): Simplify backslash folding.
1080
1081 2010-02-15 Corinna Vinschen <corinna@vinschen.de>
1082
1083 * filemanip.cc (transform_chars): Drop function.
1084 (mklongpath): Call mbrtowc in a loop rather than just mbstowcs.
1085 Transform characters on the fly. Fold multiple backslashes into one.
1086 Drop trailing backslash.
1087
1088 2010-02-15 Dave Korn <dave.korn.cygwin@gmail.com>
1089
1090 * choose.cc (ChooserPage::PlaceDialog): Only skip resizing window
1091 in fully-unattended mode, not chooser-only mode.
1092 (ChooserPage::OnUnattended): Return appropriate status to run page
1093 or not according to kind of unattended mode.
1094 * choose.h (ChooserPage::OnUnattended): Remove inline implementation
1095 and retain prototype only.
1096 * main.cc (PackageManagerOption): New boolean option.
1097 (main): Take it into account when setting unattended_mode.
1098 * proppage.cc (PropertyPage::DialogProc): Use new enum type when
1099 setting unattended_mode.
1100 * state.cc (unattended_mode): Change from bool to enum attend_mode.
1101 * state.h (enum attend_mode): Declare new enum type.
1102 (unattended_mode): Update extern declaration to use it.
1103
1104 2010-02-04 Corinna Vinschen <corinna@vinschen.de>
1105
1106 * win32.cc (NTSecurity::GetPosixPerms): Return NULL security descriptor
1107 if is_legacy is set.
1108 (NTSecurity::SetPosixPerms): Remove.
1109 * win32.h (NTSecurity::GetPosixPerms): Remove declaration.
1110
1111 2010-02-02 Corinna Vinschen <corinna@vinschen.de>
1112
1113 * desktop.cc (make_link): Use 0 default permissions when creating files
1114 and directories.
1115 * download.cc (download_one): Ditto.
1116 * ini.cc (do_remote_ini): Ditto.
1117 * localdir.cc (offer_to_create): Ditto.
1118 * filemanip.cc (nt_wfopen): Use Windows default permissions if perms
1119 is set to 0.
1120 * mkdir.cc (mkdir_p): Ditto if mode is set to 0.
1121
1122 2010-01-29 Christopher Faylor <me+cygwin@cgf.cx>
1123
1124 * mount.cc (read_mounts_9x): Preserve old way of doing things when
1125 is_legacy.
1126
1127 2010-01-28 Christopher Faylor <me+cygwin@cgf.cx>
1128
1129 * desktop.cc (make_link): Preserve old way of doing things when
1130 is_legacy.
1131 (make_cygwin_bat): Ditto.
1132 (save_icon): Ditto.
1133 * mount.cc (read_mounts): Ditto.
1134 (set_root_dir): Ditto.
1135 * root.cc (load_dialog): Ditto.
1136 (save_dialog): Ditto.
1137 * install.cc (Installer::installOne): Don't install anything if there
1138 is no canonical file associated with source.
1139 (do_install_thread): Set up old-style registry entries if is_legacy
1140 rather than just keying on whether this is Windows NT.
1141 * io_stream_file.cc (io_stream_file::exists): Redefine "exists" to mean
1142 "it's a file".
1143
1144 2010-01-16 Christopher Faylor <me+cygwin@cgf.cx>
1145
1146 * archive_tar.c (archive_tar_file::read): Always set read_something
1147 even for zero-length files.
1148
1149 2010-01-16 Christopher Faylor <me+cygwin@cgf.cx>
1150
1151 * archive_tar.h (archive_tar_file::read_something): New member.
1152 * archive_tar_file.cc (archive_tar_file::archive_tar_file): Don't reset
1153 state unless we've actually read something.
1154 (archive_tar_file::read): Set read_something variable here to indicate
1155 that we've read something from the tar file.
1156
1157 2010-01-13 Christopher Faylor <me+cygwin@cgf.cx>
1158
1159 * localdir.cc (LocalDirPage::OnNext): Strip trailing slashes.
1160
1161 2009-12-27 Christopher Faylor <me+cygwin@cgf.cx>
1162
1163 * main.cc (dyn_AttachConsole): Make static.
1164 (dyn_GetLongPathName): New variable.
1165 (set_dynaddr): New function.
1166 (set_cout): Don't set dyn_AttachConsole here.
1167 (set_legacy): Don't attempt to call function which does not exist in
1168 older versions of NT.
1169 (main): Call set_dynaddr to set dynamic load addresses.
1170
1171 2009-12-22 Christopher Faylor <me+cygwin@cgf.cx>
1172
1173 * ini.h: Use is_legacy to control setup.ini names.
1174 * main.cc (set_legacy): New function.
1175 (main): Call set_legacy with program name to determine if this is
1176 supposed to be an installation of the legacy version of cygwin. Issue
1177 a warning on attempt to install legacy on Windows NT class system.
1178
1179 2009-12-22 Christopher Faylor <me+cygwin@cgf.cx>
1180
1181 * package_message (packagemessage::display): Avoid displaying a message
1182 when in unattended mode.
1183
1184 2009-12-22 Corinna Vinschen <corinna@vinschen.de>
1185
1186 * win32.h (isdirsep): Define to replace local isslash definitions.
1187 * UserSettings.cc (UserSettings::open_settings): Remove isslash.
1188 Use isdirsep instead of isslash.
1189 * filemanip.cc (mklongpath): Ditto.
1190 * root.cc (directory_is_rootdir): Ditto.
1191 * localdir.cc (LocalDirSetting::save): Avoid consecutive backslashes
1192 in setup log file paths.
1193 * main.cc (main): Ditto.
1194
1195 2009-12-21 Christopher Faylor <me+cygwin@cgf.cx>
1196
1197 * choose.cc (ChooserPage::PlaceDialog): Put *correct* size in
1198 WINDOWPLACEMENT length field.
1199
1200 2009-12-18 Corinna Vinschen <corinna@vinschen.de>
1201
1202 Throughout, revert prototypes and methods set_mtime_and_mode to
1203 set_mtime and only care for the file timestamp.
1204
1205 Throughout, accommodate additional mode_t parameter in call to
1206 io_stream::open.
1207
1208 * IOStreamProvider.h (IOStreamProvider::open): Add mode_t parameter.
1209 * archive.cc (archive::extract_file): Reorder creation of in and tmp
1210 to get the file mode from the tar archive earlier. Call io_stream::open
1211 with additional mode from tar archive. Accommodate reversion to
1212 set_mtime.
1213 * filemanip.cc (nt_wfopen): Remove retry loop. Instead initialize
1214 OBJECT_ATTRIBUTES with matching POSIX perms according to incoming
1215 perms to create correct ACL on file creation. Remove subsequent call
1216 to nt_sec.SetPosixPerms.
1217 * io_stream.cc (io_stream::open): Take additional mode_t parameter
1218 and connect through to IOStreamProvider's open.
1219 * io_stream.h (io_stream::open): Add mode_t parameter.
1220 * io_stream_cygfile.cc (CygFileProvider::open): Ditto.
1221 (io_stream_cygfile::io_stream_cygfile): Ditto. Call nt_wfopen with
1222 incoming mode_t parameter. Make sure .exe and .dll files always
1223 have execute permissions set.
1224 (io_stream_cygfile::set_mtime): Remove retry loop and open file with
1225 just GENERIC_WRITE access.
1226 * io_stream_cygfile.h (io_stream_cygfile::io_stream_cygfile): Add mode_t
1227 parameter.
1228 * io_stream_file.cc (FileProvider::open): Ditto.
1229 (io_stream_file::io_stream_file): Ditto. Call nt_wfopen with incoming
1230 mode_t parameter.
1231 * io_stream_file.h (io_stream_file::io_stream_file): Add mode_t
1232 parameter.
1233 * io_stream_memory.h (class io_stream_memory): Remove mode member.
1234 Just return 0 from get_mode.
1235 * mkdir.cc (mkdir_p): Remove retry loop. Instead initialize
1236 OBJECT_ATTRIBUTES with matching POSIX perms according to incoming
1237 perms to create correct ACL on file creation. Remove subsequent call
1238 to nt_sec.SetPosixPerms.
1239 * mklink2.cc (mkcygsymlink_nt): Remove retry loop. Instead initialize
1240 SECURITY_ATTRIBUTES with matching POSIX perms to create correct ACL on
1241 file creation.
1242 * win32.cc (NTSecurity::GetPosixPerms): New function to generate
1243 POSIX ACL. Default to current owner and current primary group for
1244 owner/group permissions.
1245 (NTSecurity::SetPosixPerms): Let GetPosixPerms create the DACL.
1246 (NTSecurity::setAdminGroup): Set groupSID to admins SID if successful.
1247 (NTSecurity::setDefaultSecurity): Store user SID in ownerSID member.
1248 Default groupSID to original primary group.
1249 * win32.h (struct acl_t): Define here.
1250 (class NTSecurity): Rename ownerSID and groupSID to cr_ownerSID and
1251 cr_groupSID. Change throughout. Add members ownerSID and groupSID.
1252 Declare new method GetPosixPerms.
1253
1254 2009-12-17 Corinna Vinschen <corinna@vinschen.de>
1255
1256 * filemanip.cc (nt_wfopen): Only call nt_sec.SetPosixPerms if we have
1257 WRITE_DAC access.
1258 * mkdir.cc (mkdir_p): Ditto.
1259
1260 2009-12-17 Corinna Vinschen <corinna@vinschen.de>
1261
1262 * filemanip.cc (nt_wfopen): Fix requested access rights. Retry
1263 without WRITE_DAC access on access denied. Add comment.
1264 * io_stream_cygfile.cc (io_stream_cygfile::set_mtime_and_mode): Ditto.
1265 * mkdir.cc (mkdir_p): Ditto.
1266 * mklink2.cc (mkcygsymlink_nt): Ditto.
1267
1268 2009-12-17 Corinna Vinschen <corinna@vinschen.de>
1269
1270 * localdir.cc (LocalDirSetting::save): Call mkdir_p with isadir set
1271 since /var/log is a dir.
1272
1273 2009-12-16 Corinna Vinschen <corinna@vinschen.de>
1274
1275 * UserSettings.cc (UserSettings::open_settings): Never add more than
1276 one slash.
1277 * filemanip.cc (tfx_chars): Align to Cygwin's transformation table.
1278 * localdir.cc (LocalDirSetting::save): Call mkdir_p with DOS path.
1279
1280 2009-12-16 Christopher Faylor <me+cygwin@cgf.cx>
1281
1282 * package_message.h: New file.
1283
1284 2009-12-13 Christopher Faylor <me+cygwin@cgf.cx>
1285
1286 * IniDBBuilder.h (buildMessage): Define for base class.
1287 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildMessage): Define.
1288 * IniDBBuilderPackage.h (IniDBBuilderPackage::buildMessage): Declare.
1289 * PickPackageLine.cc: Pass pointer to package to "pick" throughout,
1290 where appropriate.
1291 * PickView.cc: Ditto.
1292 * install.cc: Ditto.
1293 * package_meta.cc: Ditto.
1294 * prereq.cc: Ditto.
1295 * package_version.cc: Ditto.
1296 (packageversion::pick): Add pkg pointer as second argument. Display
1297 message where appropriate.
1298 * package_version.h (packageversion::pick): Add pkg pointer as second
1299 argument.
1300 * package_meta.h (packagemeta::mesage): Define.
1301 (packagemeta::set_message): Define.
1302 * inilex.ll: Properly return MESSAGE token.
1303 * iniparse.yy: Handle message: keyword.
1304
1305 2009-12-08 Dave Korn <dave.korn.cygwin@gmail.com>
1306
1307 * localdir.cc (offer_to_create): New function.
1308 (browse_cb): Handle selection changed and validate failed
1309 callbacks, and call offer_to_create where appropriate.
1310 (browse): Set new dialog style flags in browser info.
1311 (LocalDirPage::OnNext): Replace call to mkdir_p with offer to
1312 create or error message dialog display, allow proceeding to
1313 chooser even if local dir does not exist in unattend mode or
1314 if user insists, and fix small memory leak.
1315
1316 * res.rc (IDS_MAYBE_MKDIR, IDS_CANT_MKDIR, IDS_NO_CWD): Define new
1317 string resources.
1318 * resource.h (IDS_MAYBE_MKDIR, IDS_CANT_MKDIR, IDS_NO_CWD): Define
1319 corresponding resource ID numbers.
1320
1321 2009-12-03 Corinna Vinschen <corinna@vinschen.de>
1322
1323 * main.cc (WinMain): Disable running on Windows 9x. Show message box
1324 instead and exit.
1325
1326 2009-12-03 Dave Korn <dave.korn.cygwin@gmail.com>
1327
1328 (ChooserPage::createListview): When nothing is found in the "All"
1329 category, pass an empty static dummy category object to the PickView
1330 constructor, instead of trying to dereference not-found iterator.
1331
1332 2009-11-23 Corinna Vinschen <corinna@vinschen.de>
1333
1334 * io_stream_cygfile.cc (io_stream_cygfile::get_size): Don't try to
1335 close invalid handle.
1336 * io_stream_file.cc (io_stream_file::get_size): Ditto
1337
1338 2009-11-22 Dave Korn <dave.korn.cygwin@gmail.com>
1339
1340 * threebar.cc (ThreeBarProgressPage::OnMessageApp): Don't loop forever
1341 retrying ini file download/parse if it errors in unattended mode.
1342
1343 2009-11-22 Dave Korn <dave.korn.cygwin@gmail.com>
1344
1345 * package_meta.cc (CategoryOption): New StringOption for '-C'.
1346 (parseNames): New helper subroutine abstracts string parsing from ...
1347 (packagemeta::isManuallyWanted): Use it, and check for category names
1348 from CategoryOption as well as individual package names.
1349 * package_db.cc (packagedb::fillMissingCategory): Don't check for
1350 manually-wanted packages until after initialising all the categories.
1351
1352 2009-11-04 Dave Korn <dave.korn.cygwin@gmail.com>
1353
1354 * localdir.cc (LocalDirSetting::LocalDirSetting): Restore -l option.
1355
1356 2009-11-04 Dave Korn <dave.korn.cygwin@gmail.com>
1357
1358 * site.cc: Add #include of BoolOption header from libgetopt.
1359 (OnlySiteOption): New BoolOption for command-line -O option.
1360 (get_site_list): Respect BoolOption by not downloading mirror
1361 list, nor using nor updating cached mirrors.
1362
1363 2009-11-04 Dave Korn <dave.korn.cygwin@gmail.com>
1364
1365 * download.cc (do_download_thread): Only retry an incomplete download
1366 a limited number of times in unattended mode.
1367
1368 2009-11-04 Dave Korn <dave.korn.cygwin@gmail.com>
1369
1370 * main.cc (main_display): Use apartment-, not multi- threading model
1371 when initialiseing COM.
1372
1373 2009-11-04 Corinna Vinschen <corinna@vinschen.de>
1374
1375 * localdir.cc (browse): Make title text depend on what we do.
1376 (LocalDirPage::OnNext): If we plan to download, try to create directory
1377 before cd'ing into it.
1378
1379 2009-11-03 Corinna Vinschen <corinna@vinschen.de>
1380
1381 * mkdir.cc: Include sys/stat.h unconditionally.
1382 (mkdir_p): Add S_IFDIR flag in call to nt_sec.SetPosixPerms.
1383 * win32.cc: Include sys/stat.h.
1384 (NTSecurity::SetPosixPerms): Add CREATOR OWNER, CREATOR GROUP, and
1385 Everyone inheritance-only entries when setting a directory DACL.
1386 (NTSecurity::initialiseWellKnownSIDs): Create SIDs for CREATOR OWNER and
1387 CREATOR GROUP.
1388 * win32.h (class NTSecurity): Add members ownerSID and groupSID.
1389
1390 2009-10-03 Andy Koppe <andy.koppe@gmail.com>
1391
1392 * main.cc (main): Make sure C runtime uses same codepage as GUI.
1393
1394 2009-09-20 Christopher Faylor <me+cygwin@cgf.cx>
1395
1396 * main (set_cout): Really do attach to a console if stdout is "bad".
1397
1398 2009-09-18 Andy Koppe <andy.koppe@gmail.com>
1399
1400 * root.cc (string orig_root_dir): New variable.
1401 (check_if_enable_next): Show warning against installing Cygwin into
1402 disk root only if the root directory has actually been changed.
1403 * res.rc: Make the root dir warning a bit more meaningful, and refrain
1404 from using uppercase.
1405
1406 2009-09-18 Christopher Faylor <me+cygwin@cgf.cx>
1407
1408 * choose.cc (ChooserPage::OnBack): Revert to non-maximized when
1409 returning to mirror from package selection.
1410
1411 2009-09-18 Dave Korn <dave.korn.cygwin@gmail.com>
1412
1413 * site.cc (get_site_list): Use empty string if user settings
1414 return NULL pointer for cached mirrors list.
1415 (SiteSetting::getSavedSites): Do nothing if user settings return
1416 NULL pointer for last mirror URL.
1417
1418 2009-08-21 Christopher Faylor <me+cygwin@cgf.cx>
1419
1420 * site.cc (SiteSetting::registerSavedSite): Fix comment.
1421
1422 2009-07-03 Christopher Faylor <me+cygwin@cgf.cx>
1423
1424 * main.cc (set_cout): Don't reset stdout if we already have a stdout.
1425
1426 2009-07-03 Christopher Faylor <me+cygwin@cgf.cx>
1427
1428 * choose.cc (ChooserPage::ChooserPage): Use more specific name for
1429 saving window settings.
1430 (ChooserPage::~ChooserPage): Ditto.
1431
1432 2009-07-01 Dave Korn <dave.korn.cygwin@gmail.com>
1433
1434 * PickView.h (PickView::total_delta_x): New int member.
1435 (PickView::set_header_column_order): Add prototype.
1436 * PickView.cc (PickView::set_header_column_order): New function,
1437 broken out from ...
1438 (PickView::set_headers): ... here. Call it.
1439 (PickView::init_headers): Apply total_delta_x to last_col width.
1440 (PickView::PickView): Initialise new total_delta_x member to zero.
1441 (PickView::WindowProc): Use set_header_column_order to find and
1442 adjust final column for both sets of headers.
1443
1444 2009-06-29 Christopher Faylor <me+cygwin@cgf.cx>
1445
1446 * SourceSetting.cc (SourceSetting::SourceSetting): Restore proper
1447 remembrane of last source setting.
1448 * choose.cc (ChooserPage::ChooserPage): Potentially retrieve dialog
1449 placement info.
1450 (ChooserPage::~ChooserPage): Save geometry settings if the user moved
1451 or resized the page.
1452 (ChooserPage::PlaceDialog): Rename from MaximizeDialog. Accommodate
1453 changed user placement settings.
1454 (ChooserPage::OnActivate): MaximizeDialog -> PlaceDialog.
1455 (ChooserPage::OnNext): Ditto.
1456 * choose.h (ChooserPage::~ChooserPage): Define.
1457 (ChooserPage::cmd_show): Delete.
1458 (ChooserPage::saved_geom): New field.
1459 (ChooserPage::window_placement): Ditto.
1460 (ChooserPage::pre_chooser_placement): Ditto.
1461 (ChooserPage::PlaceDialog): Rename from MaximizeDialog.
1462
1463 2009-06-28 Christopher Faylor <me+cygwin@cgf.cx>
1464
1465 * ConnectionSetting.cc (ConnectionSetting::ConnectionSetting): Remove
1466 old code which no longer makes sense when run from a constructor.
1467 * SourceSetting.cc (SourceSetting::SourceSetting): Ditto.
1468 * localdir.cc (LocalDirSetting::LocalDirSetting): Ditto. Fix typo
1469 which caused saved settings to be ignored.
1470
1471 2009-06-28 Christopher Faylor <me+cygwin@cgf.cx>
1472
1473 * UserSettings.cc (UserSettings::UserSettings): settings.rc -> setup.rc.
1474
1475 2009-06-28 Corinna Vinschen <corinna@vinschen.de>
1476
1477 * desktop.cc (DesktopSetupPage::OnInit): Drop CoInitialize call here.
1478 * main.cc (main_display): Use InitCommonControlsEx rather than
1479 InitCommonControls per MSDN. Call CoInitializeEx and create IShellLink
1480 instance here to workaround a problem on Windows 7. Release IShellLink
1481 instance and call CoUninitialize on exit.
1482 * mklink.cc (sl): Change to global variable. Drop call to
1483 CoCreateInstance here. Check if sl is valid before using it.
1484
1485 2009-06-27 Christopher Faylor <me+cygwin@cgf.cx>
1486
1487 Preliminary option handling revamp.
1488 Throughout, change load/save methods to constructors/destructors which
1489 use new UserSettings methods. Do not inherit from UserSetting class.
1490 * KeysSetting.cc (ExtraKeysSetting *ExtraKeysSetting::global): Define.
1491 (ExtraKeysSetting::ExtraKeysSetting): Initialize some class members use
1492 new UserSettings methods.
1493 (ExtraKeysSetting::~ExtraKeysSetting): Use new UserSettings method.
1494 * Makefile.am (setup_SOURCES): Eliminate UserSetting.h and
1495 UserSetting.cc.
1496 * UserSettings.cc: Complete rewrite. Implements new UserSettings
1497 class methods.
1498 * UserSettings.h: Complete rewrite. Defines new UserSettings class
1499 methods.
1500 * crypto.cc (ExtraKeys): Delete.
1501 (add_key_from_sexpr): Use ExtraKeysSetting::instance rather than
1502 ExtraKeys.
1503 (verify_ini_file_sig): Ditto.
1504 * io_stream.h (io_stream): Define virtual << operators.
1505 * localdir.cc (localDir): Delete.
1506 * main.cc: Include headers which declar new dynamically invoked
1507 classes.
1508 (main_display): New function. Controls order of option setting and
1509 property page setup. Add new class invocations to force option setting
1510 initializtion.
1511 (main): Invoke new UserSettings class constructor to populate new
1512 settings class. Call main_display() to do most of the setup work.
1513 Call Settings.save () to save all settings.
1514 * net.cc (theSetting): Delete.
1515 * site.cc (SiteSetting::save): Record whether we've saved the
1516 information already.
1517 (get_site_list): Just use value returned from new UserSettings method
1518 rather than parsing a file.
1519 (SiteSetting::getSavedSites): Ditto.
1520 (write_cache_list): Use UserSettings operator to store mirror cache.
1521 (save_cache_file): Ditto.
1522 * source.cc (theSetting): Delete.
1523
1524 * win32.h: gcc-4 accommodation.
1525
1526 2009-06-26 Dave Korn <dave.korn.cygwin@gmail.com>
1527
1528 * res.rc (SETUP_STANDARD_DIALOG_W, SETUP_STANDARD_DIALOG_H,
1529 SETUP_SMALL_DIALOG_W, SETUP_SMALL_DIALOG_H): Add constant defines
1530 for dialog sizes.
1531 (SETUP_STANDARD_DIALOG_DIMS, SETUP_SMALL_DIALOG_DIMS): Add helper
1532 macros for (W,H) pairs of dimensions.
1533 (SETUP_HEADICON_X): New global constant define.
1534 (IDD_SOURCE, IDD_VIRUS, IDD_LOCAL, IDD_ROOT, IDD_SITE, IDD_NET,
1535 IDD_INSTATUS, IDD_PROXY_AUTH, IDD_NET_AUTH, IDD_DESKTOP,
1536 IDD_FTP_AUTH DIALOG, IDD_DROPPED): Use the above for dialog sizes,
1537 horizontal rules and icon positioning.
1538 (SETUP_KPCE_W): New define for radio-button size.
1539 (SETUP_VIEWCAP_W, SETUP_VIEWCAP_X, SETUP_VIEW_W, SETUP_VIEW_X,
1540 SETUP_EXP_X, SETUP_CURR_X, SETUP_PREV_X, SETUP_KEEP_X): Add defines
1541 for right-aligned controls.
1542 (SETUP_SEARCH_X, SETUP_SEARCH_W, SETUP_SEARCHTEXT_X,
1543 SETUP_SEARCHTEXT_W, SETUP_CLEAR_X, SETUP_CLEAR_W): Likewise defines
1544 for left-aligned controls.
1545 (IDD_CHOOSE): Use all the above, and reformat with whitespace
1546 between args for clarity.
1547
1548 2009-06-26 Corinna Vinschen <corinna@vinschen.de>
1549
1550 * Makefile.am (setup_LDADD): Add -lshlwapi.
1551 * PickView.cc: Include shlwapi.h.
1552 (PickView::setViewMode): Compare package name with search string
1553 case-insensitive.
1554 (PickView::insert_category): Ditto.
1555
1556 2009-06-26 Corinna Vinschen <corinna@vinschen.de>
1557
1558 * script.cc (init_run_script): Don't set $HOME to /tmp. It breaks
1559 mkpasswd -c.
1560
1561 2009-06-25 Corinna Vinschen <corinna@vinschen.de>
1562
1563 * script.cc (init_run_script): Reinstantiate accidentally removed
1564 setting of sh.
1565
1566 2009-06-22 Christopher Faylor <me+cygwin@cgf.cx>
1567
1568 * script.cc (init_run_script): Revert to initializing cmd based on OS
1569 type.
1570
1571 2009-06-22 Corinna Vinschen <corinna@vinschen.de>
1572
1573 * script.cc (Script::run): Start bash without -c option.
1574
1575 2009-06-20 Christopher Faylor <me+cygwin@cgf.cx>
1576
1577 * threebar.cc (ThreeBarProgressPage::ins_dialog): Move variable to more
1578 appropriate class.
1579 (ThreeBarProgressPage::MaximizeDialog): Move function to more
1580 appropriate class.
1581 (ThreeBarProgressPage::OnMessageApp): Remove MaximizeDialog calls.
1582 * threebar.h: Remove maximize handling.
1583 * choose.cc (ChooserPage::ins_dialog): New variable.
1584 (ChooserPage::MaximizeDialog): New function.
1585 (ChooserPage::ChooserPage): Remove unneeded handling of nCmdShow.
1586 (ChooserPage::OnActivate): Maximize chooser page via MaximizeDialog.
1587 (ChooserPage::OnNext): Revert chooser page to normal before returning.
1588 * main.cc (main): Don't pass cmd_show to ChooserPage.
1589 * propsheet.cc (PropSheetProc): Accommodate change in class for
1590 SetHwndDialog.
1591
1592 2009-06-20 Christopher Faylor <me+cygwin@cgf.cx>
1593
1594 * script.cc (shells): Delete.
1595 (cmd): Just assign to "cmd.exe" since we're always running on NT now.
1596 (sanitize_PATH ): New function.
1597 (init_run_script): Ensure that we're only called once. Strip
1598 environment of non-pertinent stuff. Call sanitize_PATH to remove
1599 non-standard stuff from the PATH. Set up a few standard environment
1600 variables.
1601
1602 2009-06-16 Corinna Vinschen <corinna@vinschen.de>
1603
1604 * mount.cc (create_install_root): Don't load mount table again.
1605 (read_mounts_nt): Don't break loop, rather continue when not being
1606 able to open "Cygwin" registry key.
1607
1608 2009-06-03 Ralph Hempel <rhempel@bmts.com>
1609
1610 * source.cc: Add support for both -D and -L on the command line.
1611
1612 2009-06-03 Corinna Vinschen <corinna@vinschen.de>
1613
1614 * filemanip.cc (unlink): Rename from DeleteFileW. Take additional
1615 parameter to indicate file type to unlink. Use in flags given to
1616 NtCreateFile.
1617 (DeleteFileW): Just call unlink from here with FILE_NON_DIRECTORY_FILE
1618 flag.
1619 (RemoveDirectoryW): Ditto with FILE_DIRECTORY_FILE flag.
1620
1621 2009-05-30 Charles Wilson <cygwin@cwilson.fastmail.fm>
1622
1623 * script.cc (Script::run): Really start bash with --norc
1624 --noprofile options.
1625
1626 2009-05-13 Corinna Vinschen <corinna@vinschen.de>
1627
1628 * script.cc (Script::run): Start bash with --norc --noprofile options.
1629
1630 2009-05-13 Corinna Vinschen <corinna@vinschen.de>
1631
1632 * filemanip.cc (struct _FILE_RENAME_INFORMATION): Remove definition.
1633 * io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile): Set
1634 default permission for .exe files to 0755.
1635 (io_stream_cygfile::mklink): Try to create real hardlink first. Add
1636 comment.
1637 * mklink2.cc (mkcyghardlink): New function to create real hardlink.
1638 * mklink2.h (mkcyghardlink): Declare.
1639 * mount.cc (from_fstab_line): Set got_usr_bin and got_usr_lib flags
1640 if /usr/bin and /usr/lib mount points exist in /etc/fstab.
1641 (add_usr_mnts): Only create mounts if corresponding got_usr_bin and
1642 got_usr_lib flags are not set.
1643 (read_mounts_nt): Initialize got_usr_bin and got_usr_lib to false.
1644 Always call add_usr_mnts, even if from_fstab succeeded.
1645 * ntdll.h: Include ddk/ntifs.h.
1646
1647 2009-05-12 Corinna Vinschen <corinna@vinschen.de>
1648
1649 * filemanip.cc (GetFileAttributesW): Add accidentally omited
1650 OBJ_CASE_INSENSITIVE when creating OBJECT_ATTRIBUTES.
1651 (SetFileAttributesW): Ditto.
1652 (MoveFileW): Ditto.
1653 (DeleteFileW): Ditto.
1654 (RemoveDirectoryW): Ditto.
1655 (nt_wfopen): Ditto.
1656
1657 2009-05-11 Bryan Thrall <bryan.thrall@flightsafety.com>
1658
1659 * localdir.cc (load_dialog): Choose description string based on install
1660 type.
1661 * res.rc (IDD_LOCAL_DIR): Replace static description text with
1662 IDC_LOCAL_DIR_DESC.
1663 * resource.h (IDS_LOCAL_DIR_DOWNLOAD): New string resource id.
1664 (IDS_LOCAL_DIR_INSTALL): Likewise.
1665 (IDC_LOCAL_DIR_DESC): New text control resource id.
1666
1667 2009-05-11 Christopher Faylor <me+cygwin@cgf.cx>
1668
1669 * main.cc (set_cout): Simplify code a little.
1670
1671 2009-05-11 Bryan Thrall <bryan.thrall@flightsafety.com>
1672
1673 * choose.cc (ChooserPage::OnMessageCmd): Clear search filter when
1674 clear button clicked.
1675 * res.rc (IDD_CHOOSE_DIALOG): Add IDC_CHOOSE_CLEAR_SEARCH button.
1676 * resource.h (IDC_CHOOSE_CLEAR_SEARCH): New button resource ID.
1677
1678 2009-05-11 Corinna Vinschen <corinna@vinschen.de>
1679
1680 * UserSettings.cc (UserSettings::settingFileForLoad): Fix local load
1681 path strings.
1682 (UserSettings::settingFileForSave): Never store in cwd.
1683 * autoload.c (ntdll): Autoload ntdll.dll functions here.
1684 * desktop.cc (make_cygwin_bat): Use GetFileAttributesW rather than
1685 _waccess. Use nt_wfopen instead of _wfopen.
1686 (save_icon): Ditto.
1687 * filemanip.cc (get_file_size): Call io_stream::open with empty mode
1688 string to avoid opening file twice.
1689 (GetFileAttributesW): New function to replace Win32 function with
1690 equivalent function opening files with backup intent.
1691 (SetFileAttributesW): Ditto.
1692 (MoveFileW): Ditto.
1693 (DeleteFileW): Ditto.
1694 (RemoveDirectoryW): Ditto.
1695 (nt_wfopen): New function to replace _wfopen with equivalent function
1696 opening files with backup intent.
1697 * filemanip.h (nt_wfopen): Declare.
1698 * io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile): Initalize
1699 lasterr to 0. Allow empty mode and don't open file, if so. Call
1700 nt_wfopen rather than _wfopen.
1701 (io_stream_cygfile::exists): Use GetFileAttributesW rather than
1702 _waccess.
1703 (io_stream_cygfile::get_size): Use CreateFileW/GetFileSize to get
1704 file size on NT.
1705 * io_stream_file.cc (io_stream_file::io_stream_file): Initalize lasterr
1706 to 0. Allow empty mode and don't open file, if so. Call nt_wfopen
1707 rather than _wfopen.
1708 (io_stream_file::exists): Use GetFileAttributesW rather than _waccess.
1709 (io_stream_file::remove): Don't try to remove non-existant file.
1710 (io_stream_file::get_size): Use CreateFileW/GetFileSize to get
1711 file size on NT. Add comment to keep track of 2GB border.
1712 * mkdir.cc: Remove function pointers for ntdll functions.
1713 (init_ntfuncs): Remove function.
1714 (mkdir_p): Drop call to init_ntfuncs. Call ntdll functions directly
1715 rather than over local function pointers.
1716 * ntdll.h: New file.
1717 * postinstall.cc (do_postinstall_reflector): Switch to admins group
1718 as primary group after postinstall scripts have been written.
1719 Explain why.
1720 (do_postinstall): Add comment.
1721 * res.rc: Bump copyright date.
1722 * win32.h (class TokenGroupCollection): Remove.
1723 * win32.cc (TokenGroupCollection::populate): Remove.
1724 (TokenGroupCollection::find): Remove.
1725 (NTSecurity::setDefaultSecurity): Drop reading token groups. Just
1726 try to switch to admins group as primary group.
1727
1728 2009-05-07 Corinna Vinschen <corinna@vinschen.de>
1729
1730 * package_db.cc (ConnectedLoopFinder::doIt): Revert patch from
1731 2008-08-29. Add dumb hardcoded algorithm to make sure base-cygwin
1732 and base-passwd are always the first packages in the postinstall
1733 executable order.
1734
1735 2009-05-06 Corinna Vinschen <corinna@vinschen.de>
1736
1737 * install.cc (Installer::StandardDirs): Add /home with 1777 perms.
1738 * main.cc (main): Drop setting $CYGWIN to nontsec.
1739
1740 2009-04-24 Andrew Punch <andrew@magneticbooks.com.au>
1741
1742 * PickView.h: Add #include <string>.
1743 (PickView::SetPackageFilter): Add new function.
1744 (PickView::packageFilterString): Add new string data member.
1745 * PickView.cc (PickView::setViewMode): Use it to filter names.
1746 (PickView::insert_category): Likewise.
1747 (PickView::PickView): Initialise packageFilterString to blank.
1748 * res.rc (IDD_CHOOSE): Add IDC_CHOOSE_SEARCH_EDIT and
1749 IDC_CHOOSE_SEARCH_LABEL controls.
1750 (IDS_SEARCH_TOOLTIP): Add new string resource.
1751 * resource.h (IDS_SEARCH_TOOLTIP): New string resource ID.
1752 (IDC_CHOOSE_SEARCH_EDIT): New edit control ID.
1753 (IDC_CHOOSE_SEARCH_LABEL): Mew static text control ID.
1754 * choose.cc (ChooserControlsInfo[]): Add IDC_CHOOSE_SEARCH_LABEL
1755 and IDC_CHOOSE_SEARCH_EDIT controls to auto-resize list.
1756 (ChooserPage::OnInit): Add tooltip to search edit box.
1757 (ChooserPage::OnMessageCmd): Handle EN_CHANGE event from
1758 IDC_CHOOSE_SEARCH_EDIT.
1759
1760 2009-04-24 Dave Korn <dave.korn.cygwin@gmail.com>
1761
1762 * propsheet.cc (PropSheetWndProc): Re-enable hasMinRect.
1763
1764 2009-04-23 Corinna Vinschen <corinna@vinschen.de>
1765
1766 * win32.h (NTSecurity::primaryGroupSID): Convert to a structure for
1767 direct usage in GetTokenInformation.
1768 (NTSecurity::osid): Remove.
1769 (NTSecurity::setAdminGroup): Declare.
1770 * win32.cc (NTSecurity::resetPrimaryGroup): Accommodate change to
1771 primaryGroupSID. Add log output.
1772 (NTSecurity::setAdminGroup): New method.
1773 (NTSecurity::setDefaultSecurity): Use local structures for getting
1774 TOKEN_USER and setting TOKEN_OWNER information. Accommodate change to
1775 primaryGroupSID. Slightly enhance log output.
1776 Only set primary group to Administrators group when installing for
1777 all users. Call setAdminGroup to do it.
1778
1779 2009-04-22 Corinna Vinschen <corinna@vinschen.de>
1780
1781 * mklink2.cc (mkcygsymlink_nt): Allow 4K chars in symlink. Use strncat
1782 rather than strcat.
1783 * postinstall.cc (do_postinstall): Reset user token to original
1784 primary group.
1785 * win32.cc (NTSecurity::resetPrimaryGroup): New method.
1786 (NTSecurity::setDefaultSecurity): Store original primary group in
1787 new NTSecurity member primaryGroupSID. Set primary group in user token
1788 to Administrators group for admin users. Align comment.
1789 * win32.h (class NTSecurity): Add member primaryGroupSID.
1790 (NTSecurity::resetPrimaryGroup): Declare.
1791
1792 2009-04-09 Christopher Faylor <me+cygwin@cgf.cx>
1793
1794 * main.cc (set_cout): Load AttachConsole dynamically to avoid using it
1795 on older Windows which don't support it.
1796
1797 2009-03-21 Christopher Faylor <me+cygwin@cgf.cx>
1798
1799 * LogFile.cc (LogFile::endEntry): Output messages to stdout.
1800 * main.cc (set_cout): New function. Sets stdout to console if one
1801 exists.
1802 (main): Redirect stdout to console if unattended_mode or help option is
1803 specified and no stdout is available.
1804
1805 2009-03-21 Terry Fleming <terrynfleming@gmail.com>
1806 Christopher Faylor <me+cygwin@cgf.cx>
1807
1808 * propsheet.cc (PropSheetWndProc): Detect a Window closing event and
1809 issue an "Are you sure" message.
1810
1811 2008-08-29 Corinna Vinschen <corinna@vinschen.de>
1812
1813 * package_db.cc (ConnectedLoopFinder::doIt): Add code to get a basic
1814 order into the dependency list. Add comment to explain why.
1815
1816 2008-08-22 Brian Dessent <brian@dessent.net>
1817
1818 * KeysSetting.cc: Include string.h for memcpy et al.
1819 * filemanip.cc: Include stdlib.h for for mbstowcs.
1820 * io_stream_cygfile.h: Update cygmkdir_p prototype for mode_t.
1821 * mount.cc (conv_fstab_spaces): Silence gcc 4.3 warning ("parentheses
1822 around assignment used as truth value").
1823
1824 2008-08-20 Corinna Vinschen <corinna@vinschen.de>
1825
1826 * install.cc (Installer::StandardDirs): Additionally create /var/log
1827 dir. Set mode of /var/log and /var/run to 01777.
1828 * localdir.cc (LocalDirSetting::save): Create /var/log with 01777
1829 permissions before creating setup.log files.
1830
1831 2008-08-20 Corinna Vinschen <corinna@vinschen.de>
1832
1833 * io_stream_cygfile.cc (io_stream_cygfile::set_mtime_and_mode):
1834 Accommodate SetPosixPerms being method of nt_sec.
1835 * mkdir.cc (mkdir_p): Ditto.
1836 * mklink2.cc (mkcygsymlink_nt): Ditto.
1837 * win32.cc: Slightly rearrange.
1838 (NTSecurity::SetPosixPerms): Make SetPosixPerms method of NTSecurity
1839 rather than stand-alone function. Remove dynamic allocation for
1840 security descriptors in favor of static allocation. Drop out
1841 preliminary if well-known SIDs are not initialized. Slightly change
1842 and rearrange comments. Add creating NULL SID ACE for special
1843 permissions.
1844 (NTSecurity::initialiseWellKnownSIDs): New function, replacing
1845 NTSecurity::initialiseEveryOneSID. Initialize all well-known SIDs
1846 here. Set wellKnownSIDsinitialized to true on success.
1847 (NTSecurity::setDefaultDACL): Don't call initialiseEveryOneSID. Change
1848 comment. Drop setting failed. Don't open process token here.
1849 (NTSecurity::setBackupPrivileges): New function.
1850 (NTSecurity::setDefaultSecurity): Call initialiseWellKnownSIDs.
1851 Open process token here. Disable setting primary group. Add comment
1852 to explain why.
1853 * win32.h (SetPosixPerms): Move to NTSecurity.
1854 (class NTSecurity): Add SetPosixPerms method. Make all SIDs private
1855 again. Make NoteFailedAPI private. Add setBackupPrivileges method.
1856 Rename usid to UsersSID. Remove failed method and _failed member.
1857 Add wellKnownSIDsinitialized accessors and _wellKnownSIDsinitialized
1858 member.
1859
1860 2008-08-19 Corinna Vinschen <corinna@vinschen.de>
1861
1862 * install.cc (struct std_dirs_t): New type.
1863 (class Installer): Change type of StandardDirs to std_dirs_t.
1864 (Installer::StandardDirs): Store filename and mode.
1865 (do_install_thread): Call io_stream::mkpath_p with name and mode from
1866 Installer::StandardDirs.
1867 * main.cc (main): Call setDefaultSecurity on global nt_sec.
1868 * IOStreamProvider.h (IOStreamProvider::mkdir_p): Add mode parameter.
1869 * LogFile.cc (LogFile::log_save): Call io_stream::mkpath_p with 0755
1870 mode.
1871 * UserSettings.cc (UserSettings::settingFileForSave): Ditto.
1872 * desktop.cc (make_link): Ditto.
1873 * download.cc (download_one): Ditto.
1874 * ini.cc (do_remote_ini): Ditto.
1875 (do_ini_thread): Ditto.
1876 * package_db.cc (packagedb::flush): Ditto.
1877 * archive.cc (archive::extract_file): Ditto. Call set_mtime_and_mode
1878 with mode from archive. Add code to handle directory permissions as
1879 well.
1880 * archive_tar.cc (archive_tar::get_mtime): Return time_t. Reformat.
1881 (archive_tar::get_mode): New method.
1882 * archive_tar.h (class archive_tar_file): Fix prototypes. Replace
1883 prototype for set_mtime with prototype for set_mtime_and_mode.
1884 (class archive_tar): Ditto.
1885 * archive_tar_file.cc (archive_tar_file::get_mtime): Return time_t.
1886 (archive_tar_file::get_mode): New method returning mode from tar header.
1887 * compress_bz.cc (compress_bz::set_mtime_and_mode): Replace set_mtime.
1888 (compress_bz::get_mtime): Return time_t.
1889 (compress_bz::get_mode): New function.
1890 * compress_gz.cc: Ditto.
1891 * compress_lzma.cc: Ditto.
1892 * io_stream.cc (io_stream::mkpath_p): Take additional file mode.
1893 Call mkdir_p with additional file mode.
1894 * io_stream_cygfile.cc (CygFileProvider::mkdir_p): Take additional file
1895 mode.
1896 (cygmkdir_p): Ditto. Call mkdir_p with additional file mode.
1897 (io_stream_cygfile::set_mtime_and_mode): Replace set_mtime. Call
1898 SetPosixPerms.
1899 * io_stream_file.cc (FileProvider::mkdir_p): Take additional file mode.
1900 (io_stream_file::set_mtime_and_mode): Replace set_mtime.
1901 * mkdir.cc (init_ntfuncs): New function to initialize function pointers
1902 from ntdll.dll.
1903 (mkdir_p): Take additional file mode. On NT, use NT functions to create
1904 directory. Call SetPosixPerms.
1905 * compress_bz.h: Change prototypes accordingly.
1906 * compress_gz.h: Ditto.
1907 * compress_lzma.h: Ditto.
1908 * io_stream.h: Ditto.
1909 * io_stream_cygfile.h: Ditto.
1910 * io_stream_file.h: Ditto.
1911 * io_stream_memory.h: Ditto.
1912 * mkdir.h: Ditto.
1913 * mklink2.cc (mkcygsymlink_nt): Open file with STANDARD_RIGHTS_ALL
1914 access and FILE_FLAG_BACKUP_SEMANTICS flag. Call SetPosixPerms.
1915 * mount.cc (from_fstab): Open file with FILE_FLAG_BACKUP_SEMANTICS.
1916 * script.cc (OutputLog::OutputLog): Call io_stream::mkpath_p with 0755
1917 mode. Open file with FILE_FLAG_BACKUP_SEMANTICS.
1918 * win32.cc (SetPosixPerms): New function to set POSIX-like permissions.
1919 (nt_sec): New global NTSecurity variable.
1920 (NTSecurity::setDefaultDACL): Open token with TOKEN_ADJUST_PRIVILEGES.
1921 (NTSecurity::setDefaultSecurity): Enable SE_BACKUP_NAME and
1922 SE_RESTORE_NAME privileges if available.
1923 * win32.h (SetPosixPerms): Add prototype.
1924 (class NTSecurity): Make everyOneSID and administratorsSID public.
1925 (nt_sec): Declare.
1926
1927 2008-08-14 Corinna Vinschen <corinna@vinschen.de>
1928
1929 * mount.cc (unconvert_slashes): New inline function.
1930 (skip_ws): New inline function.
1931 (find_ws): New inline function.
1932 (conv_fstab_spaces): New inline function.
1933 (from_fstab_line): New function to read single line from fstab file.
1934 (from_fstab): New function to read /etc/fstab file and fill mount
1935 table.
1936 (read_mounts_nt): Call from_fstab after getting setup/rootdir from
1937 registry. Only call add_usr_mnts if no fstab file found.
1938
1939 2008-08-13 Corinna Vinschen <corinna@vinschen.de>
1940
1941 * install.cc (Installer::installOne): Skip 46 bytes type tar package
1942 silently.
1943
1944 2008-08-13 Corinna Vinschen <corinna@vinschen.de>
1945
1946 * install.cc (Installer::installOne): Use MoveFileExW on NT. Special
1947 case for bug in Windows 2000.
1948 * package_meta.cc (packagemeta::uninstall): Use wide char file functions
1949 on NT.
1950 * win32.h (VersionInfo::major): New method.
1951 (VersionInfo::minor): New method.
1952 (OSMajorVersion): Define.
1953 (OSMinorVersion): Define.
1954
1955 2008-08-12 Corinna Vinschen <corinna@vinschen.de>
1956
1957 Revamp for Cygwin 1.7.
1958 * desktop.cc (make_cygwin_bat): Use wide char file functions on NT.
1959 (save_icon): Ditto.
1960 * filemanip.cc (tfx_chars): New char table for wide char transformation
1961 of reserved FS chars to UNICODE private use area.
1962 (transform_chars): New static function.
1963 (mklongpath): New function to convert multibyte path to wide char
1964 path with long path prefix.
1965 * filemanip.h (mklongpath): Declare.
1966 * ini.h (SETUP_INI_FILENAME): Use setup.ini filenames as defined in
1967 real life (setup-2.ini/setup.ini).
1968 (SETUP_BZ2_FILENAME): Ditto.
1969 * install.cc (do_install_thread): Don't create registry mount points
1970 on NT, rather create setup/rootdir entry.
1971 * io_stream_cygfile.cc: Throughout use wide char file functions on NT.
1972 (io_stream_cygfile::w_str): New method to create wide char path.
1973 * io_stream_cygfile.h (class io_stream_cygfile): Remove lmode member.
1974 Add wname member and w_str method.
1975 * io_stream_file.cc: Throughout use wide char file functions on NT.
1976 (io_stream_file::w_str): New method to create wide char path.
1977 * io_stream_file.h (class io_stream_file): Remove lmode member.
1978 Add wname member and w_str method.
1979 * mkdir.cc (mkdir_p): Use wide char file functions on NT.
1980 * mklink2.cc (mkcygsymlink_9x): Rename from mkcygsymlink. Make static.
1981 (mkcygsymlink_nt): New static function.
1982 (mkcygsymlink): Just call mkcygsymlink_9x or mkcygsymlink_nt dependent
1983 on OS.
1984 * mount.cc (CYGWIN_INFO_CYGWIN_SETUP_REGISTRY_NAME): Define.
1985 (remove1): Move to earlier point in file to avoid declaration.
1986 (remove_mount): Ditto. Make static.
1987 (create_install_root): New function to create setup/rootdir registry
1988 value on NT.
1989 (read_mounts_9x): Rename from read_mounts. Make static. Conditionalize
1990 for OS.
1991 (add_usr_mnts): New static function.
1992 (read_mounts_nt): Ditto, to read mounts on NT.
1993 (read_mounts): Just call read_mounts_nt or read_mounts_9x dependent on
1994 OS.
1995 (set_root_dir): On NT, call read_mounts.
1996 (cygpath): Only add slash for non-root mount to avoid multiple slashes
1997 in resulting path (invalid in long path names).
1998 * mount.h (find_mount): Drop declaration.
1999 (remove_mount): Ditto.
2000 (create_install_root): Add declaration.
2001 (read_mounts): Accommodate new parameter.
2002 * package_db.cc (chosen_db_task): New global variable.
2003 * package_db.h (chosen_db_task): Declare.
2004 * root.cc (check_if_enable_next): Don't use get_root_dir here to
2005 avoid having to call save_dialog in RootPage::OnMessageCmd.
2006 (GetDlgItemRect): New static inline function.
2007 (SetDlgItemRect): Ditto.
2008 (load_dialog): On NT, stretch "Install For" block to full dialog width
2009 and hide "Default Text File Type" block.
2010 (save_dialog): On NT set root_text always to IDC_ROOT_BINARY.
2011 (RootPage::OnMessageCmd): Remove call to save_dialog.
2012 (RootPage::OnNext): Initialize packagedb here the first time, to
2013 avoid fetching wrong data from different previous installation.
2014 * source.cc (save_dialog): Don't initialize packagedb here, rather
2015 just memorize setting in chosen_db_task for the deferred initialization
2016 in RootPage::OnNext.
2017
2018 2008-08-07 Dave Korn <dave.korn.cygwin@gmail.com>
2019
2020 Implement command-line selection of packages to install and make
2021 unattended mode deal with any dialogs that might arise. A joint
2022 effort synthesized from contributions by:
2023
2024 Dr. Frank Lee <rl201@cam.ac.uk>
2025 Bryan Thrall <bryan.thrall@flightsafety.com>
2026 Kohsuke Kawaguchi <kk@kohsuke.org>
2027 Dave Korn <dave.korn.cygwin@gmail.com>
2028
2029 * install.cc (rebootneeded): Don't define statically here.
2030 (do_install_thread): Let exit_msg reflect rebootneeded.
2031 * main.cc (main): If rebootneeded, log it when exiting.
2032 * msg.cc (mbox): In unattended_mode, choose and log default answer.
2033 * package_db.cc (packagedb::fillMissingCategory): Iterate over all
2034 packages adding those selected by packagemeta::isManuallyWanted to
2035 base category so that command-line selections are installed.
2036 * package_meta.cc (PackageOption): Add new StringOption to allow
2037 command-line selection of packages to add to base install.
2038 (packagemeta::isManuallyWanted): New function tests if package was
2039 selected on command-line.
2040 (packagemeta::addToCategoryBase): New function adds package to
2041 "base" category.
2042 * state.cc (rebootneeded): Define here non-static.
2043 * state.h (rebootneeded): Declare here with extern linkage.
2044 * threebar.cc (ThreeBarProgressPage::MaximizeDialog): Don't change
2045 size when running in unattended mode.
2046
2047 2008-08-05 Christopher Faylor <me+cygwin@cgf.cx>
2048
2049 * UserSettings.cc (UserSettings::settingFileForLoad): Look locally for
2050 settings before looking outside of current directory.
2051 * choose.cc (ChooserPage::ChooserPage): Record the property sheet's
2052 current show state via new passed in parameter.
2053 * choose.h (ChooserPage::ChooserPage): Reflect change in argument list.
2054 (ChooserPage::nCmdShow): Define new element.
2055 * main.cc (main): Send current show state to Chooser.
2056 * package_version.cc (packageversion::set_requirements): Increase
2057 recursion check from 5 to 30.
2058 * propsheet.cc (PropSheetWndProc): Register hwndDlg with
2059 ThreeBarProgressPage.
2060 * threebar.cc (ControlAdjuster::ControlInfo): Initialize cmd_show_set.
2061 (ThreeBarProgressPage::MaximizeDialog): New function.
2062 (ThreeBarProgressPage::OnMessageApp): Call MaximizeDialog to maximize
2063 package selection screen and restore when done.
2064 * threebar.h (ThreeBarProgressPage::MaximizeDialog): Declare function.
2065 (ThreeBarProgressPage::cmd_show_set): Declare variable.
2066 (ThreeBarProgressPage::cmd_show): Declare variable.
2067 (ThreeBarProgressPage::ins_dialog): Declare variable.
2068 (ThreeBarProgressPage::SetHwndDialog): Define function.
2069
2070 2008-07-22 Charles Wilson <cygwin@cwilson.fastmail.fm>
2071
2072 Add support for .tar.lzma files (decompress only).
2073
2074 * Makefile.am: Add new files.
2075 * compress.cc (compress::decompress): add support
2076 for compress_lzma.
2077 * compress_lzma.h: new file.
2078 * compress_lzma.cc: new file.
2079 * filemanip.cc (find_tar_ext): add support for
2080 .tar.lzma files.
2081 * install.cc (Installer::installOne): update comments.
2082 * lzma-sdk/LzmaDec.h: new file.
2083 * lzma-sdk/LzmaDec.c: new file.
2084 * lzma-sdk/Types.h: new file.
2085
2086 2008-07-08 Charles Wilson <cygwin@cwilson.fastmail.fm>
2087
2088 * compress.cc (compress::decompress): clean up concrete
2089 decompressor objects on failure -- but in that case, do
2090 NOT destroy original io_stream.
2091 * compress_bz.h (compress_bz::release_original): new method.
2092 (owns_original): new member variable.
2093 * compress_bz.cc (compress_bz::release_original): new method.
2094 (compress_bz::compress_bz): take ownership of parent by default.
2095 (compress_bz::~compress_bz): only delete original if
2096 owns_original is true.
2097 * compress_gz.h (compress_gz::release_original): new method.
2098 (owns_original): new member variable.
2099 * compress_gz.cc (compress_gz::release_original): new method.
2100 (compress_gz::construct): take ownership of parent by default.
2101 (compress_gz::~compress_gz): only delete original if
2102 owns_original is true.
2103
2104 2008-06-25 Dave Korn <dave.korn.cygwin@gmail.com>
2105
2106 * configure.in, gpg-error-config-fake: Revert previous removal.
2107
2108 2008-06-25 Dave Korn <dave.korn.cygwin@gmail.com>
2109
2110 * net.cc: Correct stray CRLF.
2111
2112 2008-06-25 Dave Korn <dave.korn.cygwin@gmail.com>
2113
2114 * configure.in (ac_cv_path_GPG_ERROR_CONFIG): Remove nasty hack.
2115 * gpg-error-config-fake: Delete file obsoleted by de-hackification.
2116
2117 2008-06-24 Christopher Faylor <me+cygwin@cgf.cx>
2118
2119 * configure.in: Disable shared library builds.
2120
2121 2008-06-24 Christopher Faylor <me+cygwin@cgf.cx>
2122
2123 * Makefile.am: Make and install libraries into common location and use
2124 them from there.
2125 * configure.in: Find gpg-error-config in the libgpg-error/src
2126 subdirectory rather than using the host system's version. Set the
2127 prefix and exec_prefix to a common location for the subdirs so that
2128 useful files will be installed in a common location.
2129
2130 2008-06-22 Dave Korn <dave.korn.cygwin@gmail.com>
2131
2132 Merged across diffs between setup_crypto_branch_branchpoint and
2133 setup_crypto_branch_mergepoint2 from setup_crypto_branch.
2134
2135 * crypto.cc, crypto.h, gpg-packet.cc, gpg-packet.h, KeysSetting.cc,
2136 KeysSetting.h, gpg-error-config-fake, cygwin.pub, cyg-pubkey.h,
2137 gpg-key-to-s-expr.sh: New files.
2138 * ini.cc, ini.h, resource.h, res.rc, netio.cc, Makefile.am,
2139 configure.ac, libgetopt++/src/OptionSet.cc: Modified files.
2140
2141 2008-06-21 Dave Korn <dave.korn.cygwin@gmail.com>
2142
2143 * ini.cc (do_remote_ini): Revert misbegotten removal of
2144 not-always-superfluous-after-all added slash in URLs.
2145
2146 2008-06-18 Dave Korn <dave.korn.cygwin@gmail.com>
2147
2148 * gpg-packet.h (GPG_KEY_SEXPR_BUF_SIZE): Move from here ...
2149 * crypto.h (GPG_KEY_SEXPR_BUF_SIZE): ... to here.
2150 (GPG_KEY_MAX_COEFF_SIZE): Add related definition.
2151
2152 2008-06-18 Dave Korn <dave.korn.cygwin@gmail.com>
2153
2154 * gpg-packet.cc (walk_packets_1): Check packet length field is
2155 valid sane and possible to avoid malicious manipulation.
2156 * ChangeLog: Corrected date on previous commit.
2157
2158 2008-06-18 Dave Korn <dave.korn.cygwin@gmail.com>
2159
2160 * crypto.cc (add_key_from_sexpr): Use real buffer size, not debug
2161 constant size.
2162
2163 2008-06-16 Dave Korn <dave.korn.cygwin@gmail.com>
2164
2165 * crypto.cc (verify_ini_file_sig): Actually set init-once flag!
2166
2167 2008-06-16 Dave Korn <dave.korn.cygwin@gmail.com>
2168
2169 * crypto.cc (KeepUntrustedKeysOption): Fix helpstring punctuation.
2170
2171 2008-06-16 Dave Korn <dave.korn.cygwin@gmail.com>
2172
2173 * crypto.cc (verify_ini_file_sig): Fix two minor logic errors.
2174
2175 2008-06-16 Dave Korn <dave.korn.cygwin@gmail.com>
2176
2177 * ini.h (current_ini_sig_name): Declare extern.
2178 * ini.cc (current_ini_sig_name): New variable.
2179 (NoVerifyOption): New boolean option.
2180 (do_remote_ini): If sig verification not disabled, attempt to
2181 download the matching sig file for any setup.bz2 or setup.ini
2182 and use it to verify or discard the download.
2183
2184 2008-06-16 Dave Korn <dave.korn.cygwin@gmail.com>
2185
2186 * resource.h (IDS_SIG_INVALID, IDS_CRYPTO_ERROR): Reserve IDs for
2187 two new message strings.
2188 * res.rc (IDS_SIG_INVALID, IDS_CRYPTO_ERROR): Define the text.
2189
2190 2008-06-16 Dave Korn <dave.korn.cygwin@gmail.com>
2191
2192 * Makefile.am (setup_SOURCES): Add new files crypto.cc, crypto.h,
2193 cyg-pubkey.h, gpg-packet.cc, gpg-packet.h. KeysSetting.cc and
2194 KeysSetting.h to the build.
2195 * crypto.cc, crypto.h, gpg-packet.cc, gpg-packet.h, KeysSetting.cc,
2196 KeysSetting.h: New files. Adds gpg sig verification support.
2197
2198 2008-06-16 Dave Korn <dave.korn.cygwin@gmail.com>
2199
2200 * Makefile.am (DIST_SUBDIRS, SUBDIRS): Add libgpg-error and
2201 libgcrypt subdirs.
2202 (AM_CPPFLAGS): Add -I paths to generated headers in both and to
2203 shipped headers in libgcrypt.
2204 (setup_LDADD): Add libgpg-error.a and libgcrypt.a to final link.
2205
2206 * configure.in (ac_cv_path_GPG_ERROR_CONFIG): Preload into cache
2207 to fake out libgcrypt configure process.
2208 (AC_CONFIG_SUBDIRS): Add libgpg-error/ and libgcrypt/
2209
2210 * gpg-error-config-fake: New shell script to redirect libgcrypt
2211 sub-configure into looking for newly-built libgpg-error.
2212
2213 2008-06-16 Dave Korn <dave.korn.cygwin@gmail.com>
2214
2215 * setup/libgpg-error/: Fresh import of upstream sources of
2216 libgpg-error-1.6.tar.bz2 from http://www.gnupg.org/
2217 * setup/libgcrypt/: Fresh import of upstream sources of
2218 libgcrypt-1.4.1.tar.bz2 from http://www.gnupg.org/
2219
2220 2008-06-16 Dave Korn <dave.korn.cygwin@gmail.com>
2221
2222 * netio.cc (NetIO::set_url): Avoid double-free bug on delete
2223 by setting path to a strdup of url rather than using the same
2224 pointer value twice.
2225
2226 2008-06-16 Dave Korn <dave.korn.cygwin@gmail.com>
2227
2228 * cygwin.pub: Add reference copy of Cygwin setup signing key.
2229 * gpg-key-to-s-expr.sh: New bash script. Outputs textual
2230 representation of public key in s-expr format.
2231 * cyg-pubkey.h: New header generated by the above from Cygwin
2232 setup signing key. Currently needs manual regeneration if key
2233 ever updated.
2234
2235 2008-04-16 Brian Dessent <brian@dessent.net>
2236
2237 * mount.cc: Include malloc.h.
2238 (is_admin): Use alloca instead of a VLA in case
2239 GetTokenInformation is sensitive to alignment.
2240
2241 2008-04-15 Brian Dessent <brian@dessent.net>
2242
2243 * mount.cc (is_admin): Get explicit size of required buffer by
2244 calling GetTokenInformation first with NULL.
2245
2246 2008-04-10 Brian Dessent <brian@dessent.net>
2247
2248 * Makefile.am (setup_LDFLAGS): Make sure static libbz2 and zlib
2249 are used.
2250
2251 2008-04-09 Brian Dessent <brian@dessent.net>
2252
2253 * README: flex and bison are required when building from CVS.
2254
2255 2008-04-08 Brian Dessent <brian@dessent.net>
2256
2257 * Makefile.am (snapshot): Provide default value of ${cygwinsite}
2258 if not set.
2259
2260 2008-04-08 Brian Dessent <brian@dessent.net>
2261
2262 * Makefile.am (release): Use -f so that "make release" works
2263 when existing binaries of the same name exist.
2264
2265 2008-04-08 Brian Dessent <brian@dessent.net>
2266
2267 * res.rc (IDD_SPLASH): Update copyright years on splash page.
2268
2269 2008-04-08 Brian Dessent <brian@dessent.net>
2270
2271 * CHANGES: Update.
2272 * install.cc (Installer::installOne): Cope with compressed
2273 0-byte dummy packages. Fix progress bar update bug introduced
2274 in earlier refactoring.
2275
2276 2008-04-08 Brian Dessent <brian@dessent.net>
2277
2278 * CHANGES: Update.
2279
2280 2008-04-08 Brian Dessent <brian@dessent.net>
2281
2282 Various warning/header cleanups necessary for clean gcc 4.3 build.
2283 * ConnectionSetting.cc: Include stdlib.h.
2284 * LogFile.cc: Ditto.
2285 * Makefile.am: Don't hardcode paths to MinGW libz and libbz2.
2286 * PickView.cc: Include limits.h.
2287 * String++.cc: Include string.h.
2288 * archive_tar.cc (archive_tar::next_file_name): Silence nested-if
2289 warning.
2290 * autoload.c: Switch back to .text section before emiting
2291 autoload_common.
2292 * choose.cc: Include stdlib.h and algorithm.
2293 * compress_gz.cc: Include memory.h and malloc.h.
2294 * filemanip.cc: Include string.h.
2295 (parse_filename): Silence nested-if warning.
2296 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Silence warning.
2297 * package_db.cc: Include algorithm.
2298 * site.cc (get_site_list): Silence warning.
2299 * win32.cc: Include memory.
2300 * csu_util/MD5Sum.cc: Include string.h.
2301
2302 2008-03-02 Dave Korn <dave.korn@artimi.com>
2303
2304 * install.cc (Installer::installOne): Accept new HWND argument
2305 from caller and pass it to MessageBox calls so that MB_TASKMODAL
2306 can work.
2307 (check_for_old_cygwin): Likewise.
2308 (do_install_thread): Pass owner's HWND (from thread context) when
2309 calling them.
2310
2311 2008-02-23 Dave Korn <dave.korn@artimi.com>
2312
2313 * cygpackage.cc (cygpackage::getfirstfile): Guard against trying to
2314 construct std::string from NULL returned by io_stream::gets when the
2315 stream decompressor fails on a corrupt *.lst.gz file.
2316
2317 2008-02-21 Dave Korn <dave.korn@artimi.com>
2318
2319 * geturl.cc (progress): Correct SI unit notation.
2320
2321 2008-02-01 Vincent Privat <vincent.privat@gmail.com>
2322
2323 * net.cc (OnInit): New StringOption (ProxyOption)
2324 This new option (-p) allows to call setup.exe with a proxy
2325 in its command-line arguments.
2326
2327 2007-07-31 Brian Dessent <brian@dessent.net>
2328
2329 * ini.cc (do_remote_ini): Fix crash due to double free of ini_file.
2330
2331 2007-07-30 Brian Dessent <brian@dessent.net>
2332
2333 * CHANGES: Update.
2334 * configure.in (AM_INIT_AUTOMAKE): Enable more automake warnings.
2335 * Makefile.am (INCLUDES): Use AM_CPPFLAGS instead.
2336 (CLEANFILES): Add. Minor portability tweaks.
2337 * tests/Makefile.am (INCLUDES): Use AM_CPPFLAGS instead.
2338 * archive.cc (archive::extract): Try to be more compatible when
2339 opening tar files.
2340 * compress_bz.cc: Fix whitespace throughout.
2341 (compress_bz::~compress_bz): Ensure that underlying io_stream's dtor is
2342 also run.
2343 * install.cc (Installer::installOne): Refactor.
2344 * package_db.cc (ConnectedLoopFinder::doIt): Move some log spewage into
2345 setup.log.full from setup.log.
2346 (packagedb::connectedBegin): Ditto. Consolidate log output to one line.
2347
2348 2007-07-02 Brian Dessent <brian@dessent.net>
2349
2350 * CHANGES: Update.
2351
2352 2007-06-26 Brian Dessent <brian@dessent.net>
2353
2354 * Makefile.am (release): Drop inconsistent use of $(EXEEXT). Leave an
2355 untouched copy of setup.exe so that later make invocations don't
2356 unnecessarily rebuild it.
2357 (snapshot): Fix typo.
2358 * install.cc (md5_one): Don't try to check packages whose
2359 pkgsource.Cached () is NULL, as with those whose download failed.
2360
2361 2007-06-26 Brian Dessent <brian@dessent.net>
2362
2363 * CHANGES: Update to reflect release branch.
2364
2365 2007-06-26 Brian Dessent <brian@dessent.net>
2366
2367 * CHANGES: Make current.
2368
2369 2007-05-30 Brian Dessent <brian@dessent.net>
2370
2371 * find.h (class Find): Make _start_dir non-const.
2372 * find.cc (Find::Find): Append a trailing slash to _start_dir only if
2373 it does not already contain one.
2374 (Find::accept): Use the previously stored value of _start_dir rather
2375 than unconditionally appending a slash.
2376
2377 2007-05-29 Brian Dessent <brian@dessent.net>
2378
2379 * Makefile.am: No need to specify the default value of --preprocessor
2380 to windres. Rework the automatic version extraction rules so that the
2381 source tarball is generated with the proper name and directory instead
2382 of setup-0. Update snapshot rule to also upload a copy of the binary
2383 with debugging symbols still present.
2384
2385 2007-05-29 Brian Dessent <brian@dessent.net>
2386
2387 This is a general tidying up/modernization of the build infrastructure.
2388 Renaming the lexer and parser to .ll and .yy allows using automake's
2389 builtin support for flex and bison with C++ sources, and libinilex is a
2390 slightly cleaner way of omitting -Werror.
2391
2392 * Makefile.am (AUTOMAKE_OPTIONS): Move to AM_INIT_AUTOMAKE.
2393 (AM_YFLAGS): Define.
2394 (AM_LFLAGS): Define.
2395 (INCLUDES): Remove redundant mingw directory.
2396 (EXTRA_DIST): Adjust for newly named lexer/parser.
2397 (BUILT_SOURCES): Ditto.
2398 (inilint_LDADD): Ditto.
2399 (inilint_SOURCES): Ditto.
2400 (setup_LDADD): Ditto.
2401 (setup_SOURCES): Ditto.
2402 (iniparse.cc): Remove custom rules.
2403 (inilex.cc): Ditto.
2404 * configure.in: Update quoting and use modern form of AC_INIT and
2405 AM_INIT_AUTOMAKE.
2406 * inilex.l: Rename from this ...
2407 * inilex.ll: ... to this.
2408 * iniparse.y: Rename from this ...
2409 * iniparse.yy: ... to this.
2410
2411 2007-05-29 Brian Dessent <brian@dessent.net>
2412
2413 * IniParseFindVisitor.cc (IniParseFindVisitor::IniParseFindVisitor):
2414 Remove error_buf and error_count initializers.
2415 (IniParseFindVisitor::visitFile): Store filename in current_ini_name.
2416 Use yyerror_count and yyerror_messages in place of removed error_count
2417 and error_buf members.
2418 * IniParseFindVisitor.h (class IniParseFindVisitor): Remove error_buf
2419 and error_count members.
2420 * ini.cc: Include io_stream_memory.h. Remove file static variables
2421 error_buf, error_count, and ini_filename.
2422 (GuiParseFeedback::progress): Remove some verbose log spam.
2423 (do_remote_ini): Recode .ini-fetching logic to properly display parse
2424 errors, and to account for corrupt bzip2 files.
2425 (yyerror): Moved elsewhere.
2426 (fprintf): Delete unused function.
2427 * ini.h: Remove useless __cplusplus guard. Declare extern variables
2428 current_ini_name, yyerror_messages, and yyerror_count.
2429 * inilex.l: Add current_ini_name, yyerror_messages, and
2430 yyerror_count.
2431 (ini_init): Initialize new variables.
2432 (yybol): Delete.
2433 (yyerror): Reimplement using std::string and relocate from ini.cc.
2434 * io_stream.cc (io_stream::copy): Add clarifying comment.
2435
2436 2007-05-04 Igor Peshansky <pechtcha@cs.nyu.edu>
2437
2438 * resource.h (IDC_STATIC_HEADER): New control id.
2439 * res.rc (IDD_SPLASH): Adjust the copyright.
2440 (IDD_DESKTOP): Make header text accessible as a separate control.
2441 * desktop.cc (set_status): Use eset() instead of SetWindowText().
2442 (load_dialog): Disable checkboxes and change dialog text in
2443 download-only mode.
2444 (DesktopSetupPage::OnInit): Disable checkboxes in download-only
2445 mode.
2446 * threebar.cc (ThreeBarProgressPage::OnMessageApp): Deprecate the
2447 default fallthrough.
2448 * download.cc (do_download_thread): Explicitly return the next
2449 dialog.
2450
2451 2007-04-19 Max Bowsher <maxb1@ukf.net>
2452
2453 * configure.in: Turn inilint default build off again, since I cannot
2454 get it to work.
2455
2456 2007-04-19 Max Bowsher <maxb1@ukf.net>
2457
2458 * configure.in: Make inilint built by default.
2459
2460 2007-04-19 Max Bowsher <maxb1@ukf.net>
2461
2462 * inilintmain.cc: Fix multiple compile errors.
2463
2464 2007-04-19 Max Bowsher <maxb1@ukf.net>
2465
2466 * Makefile.am: Make inilint use same warnonly-inilex workaround that
2467 setup already does.
2468
2469 2007-03-29 Igor Peshansky <pechtcha@cs.nyu.edu>
2470
2471 * LogFile.cc (LogFile::exit): Write exit_msg directly to log, without
2472 the message box.
2473 * resource.h (IDC_DESKTOP_SEPARATOR,IDC_STATUS_HEADER,IDC_STATUS): New
2474 control ids.
2475 * res.rc (IDD_DESKTOP): Change the caption. Add status information.
2476 * desktop.h (DesktopSetupPage::DesktopSetupPage): Define constructor
2477 in the implementation.
2478 * desktop.cc (DesktopControlsInfo): Position specifiers for status
2479 information items.
2480 (DesktopSetupPage::DesktopSetupPage): Register position specifiers.
2481 (set_status): New static method.
2482 (load_dialog): Set status information, if available.
2483 (DesktopSetupPage::OnInit): Set status header font.
2484
2485 2007-03-01 Brian Dessent <brian@dessent.net>
2486
2487 * ini.h (SETUP_INI_FILENAME): Rename setup_9x.ini to setup_legacy.ini.
2488 (SETUP_BZ2_FILENAME): Likewise.
2489
2490 2007-02-27 Brian Dessent <brian@dessent.net>
2491
2492 * ini.h (SETUP_INI_FILENAME): Add define.
2493 (SETUP_BZ2_FILENAME): Add define.
2494 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Use
2495 above macros to parameterize setup.ini filename.
2496 * fromcwd.cc (SetupFindVisitor::visitFile): Ditto.
2497 * ini.cc (do_remote_ini): Ditto.
2498 * Makefile.am (setup_SOURCES): Add win32.cc.
2499 * autoload.c: Include windows.h directly instead of win32.h so that
2500 win32.h can contain C++.
2501 * desktop.cc (verinfo): Delete.
2502 (make_link): Use IsWindowsNT to check for NT instead of verinfo.
2503 (DesktopSetupPage::OnInit): Likewise.
2504 * mount.cc (is_admin): Likewise.
2505 * script.cc (init_run_script): Likewise.
2506 * main.cc (class SIDWrapper, SIDWrapper::SIDWrapper,
2507 SIDWrapper::~SIDWrapper, SIDWrapper::theSID, class HANDLEWrapper,
2508 HANDLEWrapper::HANDLEWrapper, HANDLEWrapper::~HANDLEWrapper,
2509 HANDLEWrapper::theHANDLE, class TokenGroupCollection,
2510 TokenGroupCollection::TokenGroupCollection,
2511 TokenGroupCollection::~TokenGroupCollection,
2512 TokenGroupCollection::populate, TokenGroupCollection::find,
2513 class NTSecurity, set_default_sec, NTSecurity::NoteFailedAPI,
2514 NTSecurity::NTSecurity, NTSecurity::failed,
2515 NTSecurity::initialiseEveryOneSID, NTSecurity::setDefaultDACL,
2516 NTSecurity::setDefaultSecurity): Remove implementation of these
2517 classes from this file and into new file win32.cc and existing win32.h.
2518 (main): Fix whitespace and formatting per GNU coding standards.
2519 * res.rc (IDS_SETUPINI_MISSING): Parameterize filename with %s.
2520 * win32.cc: New file containing methods removed from main.cc as well
2521 as new class VersionInfo methods.
2522 * win32.h: Include <string> for std::string.
2523 (class SIDWrapper, class HANDLEWrapper, class TokenGroupCollection,
2524 class NTSecurity): Add classes removed from main.cc.
2525 (class VersionInfo): Add new class.
2526 (GetVer): Declare.
2527 (IsWindowsNT): Define.
2528
2529 2007-02-20 Brian Dessent <brian@dessent.net>
2530
2531 * README: Modernize list of required packages, and mention doconfigure.
2532
2533 2007-02-17 Cesar Strauss <cstrauss@cea.inpe.br>
2534
2535 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
2536 Initialize the version and operator fields of the newly created
2537 PackageSpecification object, so setup can pick the correct source
2538 version later on.
2539
2540 2007-02-17 Brian Dessent <brian@dessent.net>
2541
2542 * script.cc (Script::run): Check for existance of script file and
2543 return without doing anything if it does not exist.
2544
2545 2006-12-26 Max Bowsher <maxb1@ukf.net>
2546
2547 * IniDBBuilder.h (IniDBBuilder): Make this class abstract.
2548 * IniDBBuilder.cc: Delete file.
2549 * Makefile.am (inilint_SOURCES, setup_SOURCES): Remove IniDBBuilder.cc.
2550
2551 2006-12-26 Max Bowsher <maxb1@ukf.net>
2552
2553 Add a shell script that documents/centralizes the standard configure
2554 command line.
2555
2556 * doconfigure: New file.
2557 * Makefile.am (EXTRA_DIST): Add doconfigure.
2558
2559 2006-11-28 Igor Peshansky <pechtcha@cs.nyu.edu>
2560
2561 * install.cc (Installer::installOne): If file is in use, ask the user
2562 to stop processes and retry.
2563 (MB_RETRYCONTINUE, IDCONTINUE): New macros.
2564 (hMsgBoxHook): New static field.
2565 (CBTProc): New window hook function.
2566 (_custom_MessageBox): New function.
2567 * CHANGES: Update with the above.
2568
2569 2006-10-12 Igor Peshansky <pechtcha@cs.nyu.edu>
2570
2571 * desktop.cc (make_cygwin_bat,save_icon): Capitalize filename.
2572
2573 2006-08-06 Igor Peshansky <pechtcha@cs.nyu.edu>
2574
2575 * package_version.cc (packageversion::scan): Catch and handle
2576 validation exception.
2577
2578 2006-08-06 Igor Peshansky <pechtcha@cs.nyu.edu>
2579
2580 * cygpackage.h (filesize): Remove unused field.
2581 (cygpackage::createInstance): Ditto.
2582 * cygpackage.cc (cygpackage::createInstance): Ditto.
2583 * package_db.cc (packagedb::packagedb): Remove unused variables.
2584 Simplify parsing of installed.db.
2585
2586 2006-08-06 Igor Peshansky <pechtcha@cs.nyu.edu>
2587
2588 * desktop.cc (DesktopSetupPage::OnInit): Remove stray MessageBox.
2589
2590 2006-05-24 Igor Peshansky <pechtcha@cs.nyu.edu>
2591
2592 * PickPackageLine.h (PickPackageLine::DrawIcon): Move to PickView.
2593 * PickView.h (PickView::DrawIcon): Move from PickPackageLine.
2594 (PickView::icon_dc,PickView::bm_icon): New instance field.
2595 (PickView::rect_icon,PickView::bg_fg_brush): Ditto.
2596 * PickCategoryLine.cc (PickCategoryLine::paint): Use
2597 PickView::DrawIcon() instead of BitBlt().
2598 * PickPackageLine.cc (PickPackageLine::DrawIcon): Move to PickView.
2599 (PickPackageLine::paint): Use PickView::DrawIcon().
2600 * PickView.cc (PickView::~PickView): Delete GDI objects.
2601 (PickView::init): Create icon drawing context.
2602 (PickView::DrawIcon): New function. Use system default colors to
2603 draw bitmaps.
2604 (PickView::paint): Set background color instead of using transparent
2605 mode. Create system-colored brush.
2606
2607 2006-04-25 Brian Dessent <brian@dessent.net>
2608
2609 * COPYING: New file (GPL).
2610 * Makfile.am (EXTRA_DIST): Add COPYING.
2611
2612 2006-04-17 Max Bowsher <maxb1@ukf.net>
2613
2614 * String++.cc, String++.h: Finally, it's time for the long-awaited
2615 departure of 'class String' from this world. setup.exe can now
2616 happily claim to follow the sane path of using just one general
2617 purpose string class throughout :-)
2618
2619 2006-04-17 Max Bowsher <maxb1@ukf.net>
2620
2621 * cygpackage.cc, cygpackage.h, package_version.cc, package_version.h:
2622 Do some String to std::string migration.
2623
2624 2006-04-17 Max Bowsher <maxb1@ukf.net>
2625
2626 * package_meta.cc, package_meta.h, package_source.cc,
2627 package_source.h: Do some String to std::string migration.
2628 * package_db.cc: Small tweak to assist with the above.
2629
2630 2006-04-17 Max Bowsher <maxb1@ukf.net>
2631
2632 * PickView.cc, PickView.h, package_db.cc, package_db.h:
2633 Do some String to std::string migration.
2634 * package_meta.h: Change a couple of types to assist with the above.
2635
2636 2006-04-17 Max Bowsher <maxb1@ukf.net>
2637
2638 * IniDBBuilder.cc, IniDBBuilder.h, IniDBBuilderPackage.cc,
2639 IniDBBuilderPackage.h, PickLine.h, PickPackageLine.cc:
2640 Do some String to std::string migration.
2641
2642 2006-04-16 Max Bowsher <maxb1@ukf.net>
2643
2644 * FindVisitor.cc, FindVisitor.h, IniParseFindVisitor.cc,
2645 IniParseFindVisitor.h, ScanFindVisitor.cc, ScanFindVisitor.h, find.cc,
2646 find.h, fromcwd.cc, ini.cc, ini.h, iniparse.y, postinstall.cc:
2647 Do some String to std::string migration.
2648
2649 2006-04-16 Max Bowsher <maxb1@ukf.net>
2650
2651 * IOStreamProvider.h, archive.cc, archive.h, archive_tar.cc,
2652 archive_tar.h, io_stream.cc, io_stream.h, io_stream_cygfile.cc,
2653 io_stream_cygfile.h, io_stream_file.cc, io_stream_file.h:
2654 Do some String to std::string migration.
2655
2656 2006-04-16 Max Bowsher <maxb1@ukf.net>
2657
2658 * desktop.cc, download.cc, install.cc, mount.cc, mount.h, script.cc,
2659 script.h: Do some String to std::string migration.
2660
2661 2006-04-16 Max Bowsher <maxb1@ukf.net>
2662
2663 * category.cc: Remove source file that contained no code!
2664 * category.h: Delete, moving the single useful line to...
2665 * package_meta.h: ...here. Remove category.h include.
2666 * choose.cc, package_db.h, package_meta.cc: Remove category.h include.
2667 * Makefile.am: Remove references to removed files.
2668
2669 2006-04-15 Max Bowsher <maxb1@ukf.net>
2670
2671 * ConnectionSetting.cc, ConnectionSetting.h, Exception.cc,
2672 Exception.h, IniParseFeedback.cc, IniParseFeedback.h, LogFile.cc,
2673 LogFile.h, LogSingleton.h, PackageSpecification.cc,
2674 PackageSpecification.h, SourceSetting.cc, SourceSetting.h,
2675 UserSettings.cc, UserSettings.h, dialog.cc, dialog.h, diskfull.cc,
2676 diskfull.h, filemanip.cc, filemanip.h, inilintmain.cc, localdir.cc,
2677 main.cc, nio-file.cc, nio-http.cc, prereq.cc, prereq.h, proppage.cc,
2678 proppage.h, site.cc, site.h, splash.cc, state.cc, state.h, window.cc,
2679 window.h: Do some String to std::string migration.
2680
2681 2006-04-15 Max Bowsher <maxb1@ukf.net>
2682
2683 * String++.cc, String++.h
2684 (new_cstr_char_array, format_1000s): Migrate String to std::string.
2685 (casecompare_lt_op, std::string operator+): New.
2686
2687 2006-04-06 Max Bowsher <maxb1@ukf.net>
2688
2689 * String++.h, String++.cc
2690 (String::replace): Remove - usused.
2691 (String::find): Remove - semantics do not match std::string.
2692
2693 * root.cc (directory_is_rootdir): Switch to std::string.find().
2694 * script.cc (Script::baseName): Rewrite use of String.find().
2695
2696 2006-03-30 Max Bowsher <maxb1@ukf.net>
2697
2698 * String++.cc (replace): New function to take the place of one form
2699 of String::replace method.
2700 * String++.h (replace): Declare.
2701 (String::replace): Make private.
2702
2703 * desktop.cc (make_cygwin_bat): Use new function.
2704 * filemanip.cc (backslash): Use simple loop in place of
2705 String::replace.
2706 * filemanip.h (backslash): Change signature to use std::string in
2707 place of String.
2708
2709 2006-03-30 Max Bowsher <maxb1@ukf.net>
2710
2711 * String++.cc, String++.h (casecompare): New function replacing
2712 String.casecompare to increase parity with std::string.
2713 (String::casecompare): Make private.
2714
2715 * ConnectionSetting.cc, IniDBBuilderPackage.cc,
2716 IniParseFindVisitor.cc, LogFile.cc, PackageSpecification.cc,
2717 PickView.cc, SourceSetting.cc, String++.cc, String++.h, fromcwd.cc,
2718 io_stream.cc, mount.cc, package_db.cc, package_source.h,
2719 package_version.cc, prereq.h, script.cc:
2720 Use casecompare in place of String::casecompare.
2721
2722 2006-03-30 Max Bowsher <maxb1@ukf.net>
2723
2724 * String++.cc, String++.h: Remove String(int) constructor, which
2725 was causing dangerously bizarre implicit conversions, and was a point
2726 of disparity between String and std::string.
2727 (stringify): New function to replace functionality removed above.
2728
2729 * PickView.cc (PickView::init_headers),
2730 archive_tar.cc (archive_tar::next_file_name),
2731 cygpackage.cc (cygpackage::setCanonicalVersion):
2732 Make explicit and call out with a FIXME some bizarre behaviour.
2733
2734 * ScanFindVisitor.cc (ScanFindVisitor::visitFile),
2735 filemanip.cc (base), iniparse.y,
2736 threebar.cc (ThreeBarProgressPage::SetBar2):
2737 Make simple adaptations to the changed API.
2738
2739 2006-03-14 Igor Peshansky <pechtcha@cs.nyu.edu>
2740
2741 * PickView.cc (PickView::setViewMode): Auto-expand category if
2742 its name starts with a dot.
2743
2744 2006-03-14 Dave Korn <dave.korn@artimi.com>
2745
2746 * String++.cc (new_cstr_char_array): Handle null input correctly.
2747
2748 2006-03-10 Christopher Faylor <cgf@timesys.com>
2749
2750 * res.rc: Update copyright.
2751 (IDS_MIRROR_LST): Use cygwin.com for mirror list, not
2752 sources.redhat.com.
2753 * site.cc (NOSAVE1): Use preferred name of sourceware site.
2754 (NOSAVE2): sourceware.cygnus.com -> sources.redhat.com.
2755 (NOSAVE1_LEN): Use just-defined name to determine length.
2756 (NOSAVE2_LEN): Ditto.
2757 (NOSAVE3_LEN): Ditto.
2758
2759 2006-03-10 Bas van Gompel <patch-cygsup.buzz@bavag.tmfweb.nl>
2760
2761 * res.rc (IDD_DROPPED): New dialog.
2762 * resource.h (IDD_DROPPED): New dialog-id.
2763 (IDC_DROP_MIRRORS, IDC_DROP_NOWARN): New control-ids.
2764 * site.cc: Add enum for response on dropped mirrors.
2765 (cache_is_usable, cache_needs_writing): New bools.
2766 (cache_warn_urls): New string.
2767 (cached_site-list, dropped_site_list): New SiteLists.
2768 (site_list_type::init, site_list_type::site_list_type): Change to four
2769 parameter form.
2770 (site_list_type::site_list_type, site_list_type::operator=) Copy
2771 servername, area and location.
2772 (load_site_list): New function, broken out of get_site_list. Support
2773 four-parameter site_list_type.
2774 (get_site_list): Break out load_site_list. Move reading cache earlier.
2775 Don't write new cache. Set flags to record cache state. Load both
2776 all_site_list and cached_site_list.
2777 (SiteSetting::registerSavedSite): Use four-parameter site_list_type.
2778 (drop_proc, check_dropped_mirrors, write_cache_list, save_cache_file):
2779 New functions.
2780 (SitePage::OnNext): Check for dropped mirrors and save cache as
2781 appropriate.
2782 (SitePage::OnMessageCmd): Use four-parameter site_list_type.
2783 * site.h
2784 (site_list_type::init, site_list_type::site_list_type): Change to four
2785 parameter form.
2786 (site_list_type): Add servername, area and location members.
2787
2788 2006-03-09 Igor Peshansky <pechtcha@cs.nyu.edu>
2789
2790 * script.cc (Script::run): Fix inverted test for abnormal exit.
2791
2792 2006-03-09 Bas van Gompel <patch-cygsup.buzz@bavag.tmfweb.nl>
2793 Max Bowsher <maxb1@ukf.net>
2794
2795 Provide indication of site that a file is being downloaded from.
2796
2797 * geturl.cc: Use std::string instead of String throughout.
2798 (init_dialog): Put more information into GUI.
2799 Remove unused 'owner' parameter and change all callers.
2800 (progress): Remove spurious \n characters from GUI.
2801 * geturl.h: Use std::string instead of String throughout.
2802 * res.rc (IDD_INSTATUS): Use SS_ENDELLIPSIS.
2803
2804 2006-03-09 Max Bowsher <maxb1@ukf.net>
2805
2806 * Makefile.am (EXTRA_DIST): Add tree-minus.bmp and tree-plus.bmp.
2807
2808 2006-01-20 Bryan Thrall <bryan.thrall@flightsafety.com>
2809
2810 * source.cc (SourcePage::OnActivate): Command line takes precedence
2811 over last user selection.
2812
2813 2005-11-30 Max Bowsher <maxb1@ukf.net>
2814
2815 * res.rc (IDD_ROOT, IDD_LOCAL_DIR): Rearrange some controls a little,
2816 in response to suggestion from Carl Karsten.
2817
2818 2005-11-30 Max Bowsher <maxb1@ukf.net>
2819
2820 * site.h, site.cc: Use std::string in preference to String.
2821 (site_list_type::init): Convert some painful raw C string work to
2822 STL std::string work. Stop totally ignoring the result of this
2823 calculation, implementing the (somewhat weird) sort order for sites
2824 that was apparently indented for ages.
2825
2826 2005-10-14 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2827
2828 * io_stream.cc (url_scheme_not_registered): New macro.
2829 (io_stream::open): Better log message on error.
2830 (io_stream::mkpath_p,io_stream::remove,io_stream::mklink): Ditto.
2831 (io_stream::move,io_stream::exists): Ditto.
2832
2833 2005-10-13 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2834
2835 * site.cc (get_site_list): Default to empty mirror list if
2836 server unavailable and none cached, to allow using preferred
2837 mirrors anyway.
2838
2839 2005-09-29 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2840
2841 * package_db.cc (packagedb::packagedb): Remember missing package
2842 database file.
2843
2844 2005-09-29 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2845
2846 * site.cc (get_site_list): Store mirror list locally.
2847 Use local copy if unable to download.
2848
2849 2005-09-27 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2850
2851 * io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile):
2852 Better log message on error.
2853
2854 2005-09-27 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2855
2856 * script.cc (Script::isAScript): Fix string comparison.
2857
2858 2005-09-27 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2859
2860 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Reconnect on FTP timeout.
2861
2862 2005-09-11 Masayuki FUJII <boochang@m4.kcn.ne.jp>
2863
2864 * package_meta.cc (packagemeta::ScanDownloadedFiles): Don't use an
2865 invalid iterator. Fix whitespace.
2866
2867 2005-09-09 Brian Dessent <brian@dessent.net>
2868
2869 * CHANGES: Document recent updates.
2870 * choose.cc (ChooserPage::OnInit): Add new tooltip.
2871 * res.rc (IDD_CHOOSE): Remove 'administrative' from description.
2872 (IDS_HIDEOBS_TOOLTIP): Add new string for tooltip.
2873 * resource.h (IDS_HIDEOBS_TOOLTIP): Define.
2874 * window.cc (Window::ActivateTooltips): Fix whitespace. Set tooltip
2875 delay to 30 seconds.
2876
2877 2005-09-09 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2878
2879 * PickView.cc (PickView::paint): Set background mode to transparent.
2880 * PickCategoryLine.cc (PickCategoryLine::paint): Use bitwise AND to
2881 blit bitmaps.
2882 * PickPackageLine.cc (PickPackageLine::paint): Ditto.
2883
2884 2005-09-01 Brian Dessent <brian@dessent.net>
2885
2886 * package_meta.cc (packagemeta::uninstall): Remove support for
2887 undocumented and dangerous postremove script.
2888
2889 2005-09-01 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2890
2891 * script.cc (run): Change to return the exit code or negative error.
2892 (Script::run): Ditto.
2893 (try_run_script): Receive both filename and extension and run only
2894 one script. Also return the exit code.
2895 * script.h (try_run_script): Change signature.
2896 (Script::run): Ditto.
2897 * postinstall.cc (RunScript::operator()): Change to return the exit
2898 code or negative error.
2899 * install.cc (Installer::preremoveOne): Pass extension to
2900 try_run_script().
2901
2902 2005-09-01 Eric Blake <ebb9@byu.net>
2903
2904 * script.cc (shells): Use /bin/bash, not sh, to allow upgrades to
2905 /bin/sh.
2906
2907 2005-09-01 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2908
2909 * PickView.h (PickView::size_col): New instance variable.
2910 * PickView.cc (pkg_headers, cat_headers): Add size column.
2911 (PickView::set_headers): Initialize size_col.
2912 (PickView::init_headers): Include width of size column.
2913 * PickPackageLine.cc (PickPackageLine::paint): Handle size_col.
2914 * String++.cc (format_1000s): New function.
2915 * String++.h (format_1000s): Declare new function.
2916
2917 2005-09-01 Brian Dessent <brian@dessent.net>
2918
2919 * Makefile.am (BASECXXFLAGS): Add -Wno-uninitialized to work around
2920 spurious warnings with gcc 3.4.4.
2921
2922 2005-05-22 Brian Dessent <brian@dessent.net>
2923
2924 * res.rc (IDD_CHOOSE): Change description to include administrative
2925 packages in addition to obsolete.
2926
2927 2005-05-21 Brian Dessent <brian@dessent.net>
2928
2929 * prereq.cc: New file.
2930 * prereq.h: Ditto.
2931 * tree-minus.bmp: Ditto.
2932 * tree-plus.bmp: Ditto.
2933 * Makefile.am: Add prereq.cc and prereq.h to build.
2934 * PickCategoryLine.cc (PickCategoryLine::paint): Add new parameter and
2935 refactor. Use bitmap for '+' and '-' indicators. Draw package lines
2936 column-wise for better drawing efficiency.
2937 (PickCategoryLine::click): Use previously calculated x value.
2938 * PickCategoryLine.h (PickCategoryLine::paint): Update prototype. Add
2939 'spin_x' member.
2940 * PickLine.h (PickLine:paint): Update prototype.
2941 * PickPackageLine.cc (PickPackageLine::DrawCheck): Remove.
2942 (PickPackageLine::DrawIcon): New function.
2943 (PickPackageLine::paint): Add parameter. Refactor completely for more
2944 efficient painting.
2945 * PickPackageLine.h (PickPackageLine::DrawIcon): Add prototype.
2946 (PickPackageLine::paint): Update prototype.
2947 (PickPackageLine::DrawCheck): Remove.
2948 * PickView.cc (pkg_headers): Remove unused 'slen' field, add new
2949 'needs_clip' field to signify if clipping is necessary for this column.
2950 (PickView::note_width): Fold long line. Refactor slightly for
2951 simplicity.
2952 (PickView::set_view_mode): Remove.
2953 (PickView::cycleViewMode): New function.
2954 (PickView::setViewMode): Refactor completely. Incorporate functionality
2955 of clear_view() here instead. Simplify package selection into a single
2956 'for' loop rather than repeating code for each type.
2957 (isObsolete): New function, with second overloaded version.
2958 (PickView::setObsolete): New function.
2959 (PickView::insert_pkg): Do not show obsolete packages. Move
2960 declaration of 'db' lower. Fix whitespace.
2961 (PickView::insert_category): Do not show obsolete packages.
2962 (PickView::clear_view): Remove. Moved logic into 'setViewMode'.
2963 (PickView::scroll): Add additional parameter 'howmany' with default
2964 value of 1. Scroll by 'howmany' lines for SB_LINEDOWN and SB_LINEUP.
2965 (NUM_CATEGORY_COL_WIDTH): Define.
2966 (PickView::init_headers): Fix whitespace. Add comments. Ignore
2967 obsolete packages in width calculations. Add functionality to size
2968 'Category' column so that at least NUM_CATEGORY_COL_WIDTH categories
2969 are displayed for every package. Ensure that 'new_col' takes into
2970 account all possible labels.
2971 (PickView::PickView): Initialize showObsolete to false.
2972 (PickView::init): Remove unused bitmap bm_rtarrow. Add new bitmaps
2973 bm_treeplus and bm_treeminus. Use a macro for better readability.
2974 Fix whitespace formatting. Remove header computation from here, call
2975 refresh() instead.
2976 (PickView::registerWindowClass): Remove unnecessary background brush.
2977 (PickView::WindowProc): Add support for WM_MOUSEWHEEL message
2978 processing. Fix indentation. Reformat for readability.
2979 (PickView::paint): Get the update region before calling BeginPaint.
2980 Fill the update region with the default colors. Do not do clipping
2981 here. Pass update region to the PickLine paint function instead.
2982 Free the update region when finished.
2983 (PickView::Create): Fix indentation.
2984 (PickView::defaultTrust): Ditto.
2985 (PickView::refresh): Add column recalculation logic here.
2986 * PickView.h: Fix indentation.
2987 (RTARROW_WIDTH): Remove unused define.
2988 (NEW_COL_SIZE_SLOP): Ditto.
2989 (TREE_INDENT): Define.
2990 (PickView::get_view_mode): Remove.
2991 (PickView::set_view_mode): Rename to setViewMode for consistency.
2992 (PickView::cycleViewMode): Add new function.
2993 (PickView::setObsolete): Ditto.
2994 (PickView::clear_view): Remove.
2995 (PickView::bm_treeplus): Define new member.
2996 (PickView::bm_treeminus): Ditto.
2997 (PickView::scroll): Add parameter.
2998 (PickView::Header::slen): Remove unused member.
2999 (PickView::Header::needs_clip): Define new member.
3000 (PickView::showObsolete): Ditto.
3001 (isObsolete): Add prototype, and for overloaded version as well.
3002 * choose.cc: Add include.
3003 (ChooserControlsInfo): Allow new checkbox to be resized.
3004 (ChooserPage::OnInit): Start dialog with 'Hide obsolete' checked.
3005 (ChooserPage::OnNext): Call the dependency checker, act accordingly.
3006 (ChooserPage::changeTrust): Notify dependency checker of current trust
3007 level when it changes.
3008 (ChooserPage::OnMessageCmd): Just call cycleViewMode instead when
3009 changing the view. Update the chooser when the user toggles the
3010 'hide obsolete' checkbox.
3011 (ChooserPage::OnMouseWheel): New function. Pass mouse wheel message
3012 on to chooser.
3013 * choose.h (OnMouseWheel): Add prototype.
3014 * main.cc: Add include.
3015 (main): Define and initialize the PrereqPage object. Add it into
3016 the property sheet list.
3017 * PropPage.cc (PropertyPage::DialogProc): Add support for WM_MOUSEWHEEL
3018 message processing in derived classes.
3019 (PropertyPage::OnMouseWheel): New function.
3020 * PropPage.h (PropertyPage::OnMouseWheel): Add prototype.
3021 * res.rc (IDD_LOCAL_DIR): Shorten edit box so that pushbutton is not
3022 crowded.
3023 (IDD_SITE): Provide static text with an ID so that it can be resized
3024 properly. Move pushbutton slightly to right so that it doesn't crowd
3025 edit box.
3026 (IDD_SPLASH): Change copyright displayed on spash screen to be generic
3027 since the actual list of contributors is long.
3028 (IDD_CHOOSE): Add checkbox. Resize other controls to accomodate.
3029 (IDD_PREREQ): New dialog.
3030 (SPIN): Delete duplicated bitmap resource.
3031 (IDB_RTARROW): Remove unused bitmap resource.
3032 (IDB_TREE_PLUS): Add.
3033 (IDB_TREE_MINUS): Ditto.
3034 (IDS_TRUSTPREV_TOOLTIP): Revise wording to be more concise.
3035 (IDS_TRUSTCURR_TOOLTIP): Ditto.
3036 (IDS_TRUSTEXP_TOOLTIP): Ditto.
3037 (IDS_VIEWBUTTON_TOOLTIP): Ditto.
3038 * resource.h (IDD_PREREQ): Define.
3039 (IDB_RTARROW): Remove.
3040 (IDB_TREE_PLUS): Add, and renumber.
3041 (IDB_TREE_MINUS): Ditto.
3042 (IDC_SITE_USERURL): Define.
3043 (IDC_CHOOSE_HIDE): Ditto.
3044 (IDC_PREREQ_TEXT): Ditto.
3045 (IDC_PREREQ_EDIT): Ditto.
3046 (IDC_PREREQ_CHECK): Ditto.
3047 * site.cc (SiteControlsInfo): Ensure that 'User URL' static text is
3048 properly resized.
3049
3050 2005-05-14 Max Bowsher <maxb@ukf.net>
3051
3052 "Type" field of packageversions was not even being filled in. Fix.
3053
3054 * cygpackage.h, cygpackage.cc (cygpackage::createInstance):
3055 Make "type" a mandatory parameter of the constructor.
3056 * IniDBBuilderPackage.cc: Adjust callers.
3057
3058 2005-05-14 Bas van Gompel <patch-cygsup.buzz@bavag.tmfweb.nl>
3059
3060 Fix behaviour of hardlinks in source packages.
3061
3062 * archive.cc (archive::extract_file):
3063 Use prefixPath for link target on hardlinks.
3064
3065 2005-05-14 Max Bowsher <maxb@ukf.net>
3066
3067 Hopefully, solve the "preremove DLL dependency" bug, by running all
3068 preremove scripts before actually removing any files.
3069
3070 * install.cc
3071 (Installer::preremoveOne): New method. Run preremove scripts here.
3072 (Installer::replaceOne): Remove method.
3073 (num_replacements): Remove variable.
3074 (do_install_thread): Significantly rewrite.
3075 * package_meta.cc (packagemeta::uninstall):
3076 Do not run preremove script here.
3077
3078 2005-05-14 Max Bowsher <maxb@ukf.net>
3079
3080 * download.cc (do_download_thread):
3081 Do not use packageversion::changeRequested().
3082 * package_version.cc (packageversion::Type):
3083 Implement declared but previously unimplemented method.
3084 (packageversion::changeRequested, _packageversion::changeRequested):
3085 Remove.
3086 * package_version.h
3087 (packageversion::changeRequested, _packageversion::changeRequested):
3088 Remove.
3089 * install.cc (Installer::replaceOne): Simplify, return void, not int.
3090 (installOneSource): Rename to...
3091 (installOne): ...this. Change arguments and return type. Refactor.
3092 (install_one): Remove.
3093 (do_install_thread): Tidying up.
3094
3095 2005-05-07 Max Bowsher <maxb@ukf.net>
3096
3097 * download.cc (validateCachedPackage): Remove all MD5 checking code.
3098 It is not acceptable to check MD5 sums as part of simply answering
3099 whether a package exists in the local cache or not. It is too slow.
3100 MD5 sums always have been - and will continue to be - checked at
3101 install time.
3102 (NoMD5Option): Remove this option, as the code it controls has been
3103 removed.
3104
3105 2005-05-07 Max Bowsher <maxb@ukf.net>
3106
3107 * install.cc (md5_one): Make the MD5 checking done at install time
3108 display a progess GUI, as the MD5 checking done at other times does.
3109
3110 2005-05-07 Max Bowsher <maxb@ukf.net>
3111
3112 * resource.h, res.rc: Followup to recent de-MSVC-ification of
3113 resource.h, by removing a lot from res.rc, and the last few bits
3114 from resource.h.
3115
3116 2005-05-05 Brian Dessent <brian@dessent.net>
3117
3118 * choose.cc (ChooserPage::OnInit): Initialize tooltips for this
3119 dialog.
3120
3121 * proppage.h (PropertyPage::makeClickable): Update prototype to
3122 reflect same argument name as function.
3123
3124 * proppage.cc (PropertyPage::DialogProc): Remove redundant 'break'
3125 statements that follow 'return's. Add missing braces to case
3126 statements. Call handler for TTN_GETDISPINFO.
3127
3128 * res.rc (IDS_TRUSTKEEP_TOOLTIP): Add new STRINGTABLE entry for
3129 tooltip text.
3130 (IDS_TRUSTPREV_TOOLTIP): Ditto.
3131 (IDS_TRUSTCURR_TOOLTIP): Ditto.
3132 (IDS_TRUSTEXP_TOOLTIP): Ditto.
3133 (IDS_TRUSTPREV_TOOLTIP): Ditto.
3134 (IDS_VIEWBUTTON_TOOLTIP): Ditto.
3135
3136 * resource.h: Likewise, add identifiers for tooltip resources.
3137
3138 * window.h: Add includes.
3139 (Window::TooltipHandle): Add new private data structure.
3140 (Window::TooltipStrings): Ditto.
3141 (Window::ActivateTooltips): Define new function to support tooltip
3142 functionality.
3143 (Window::SetTooltipState): Ditto.
3144 (Window::AddTooltip): Ditto.
3145 (Window::TooltipNotificationHandler): Ditto.
3146
3147 * window.cc (Window::Window): Initialize handle to NULL.
3148 (Window::~Window): Call DestroyWindow on tooltip control if it was
3149 activated.
3150 (Window::ActivateTooltips): New function to activate the tooltip
3151 control.
3152 (Window::SetTooltipState): New function to allow toggling of
3153 tooltips.
3154 (Window::AddTooltip): New function that adds a tooltip to a given
3155 control in a given window. Also implement overloaded versions that
3156 provide simpler interface and the ability to use a string resource.
3157 (Window::TooltipNotificationHandler): New function to handle
3158 TTN_GETDISPINFO notification messages.
3159
3160 2005-05-05 Brian Dessent <brian@dessent.net>
3161
3162 * resource.h: Reorganize. Group by type, and give each its own
3163 range of IDs. Regenerate IDs accordingly.
3164 (IDD_CHOOSER): Remove obsolete and unused symbol.
3165
3166 2005-05-05 Brian Dessent <brian@dessent.net>
3167
3168 * root.h (class RootPage): Add missing virtual to OnMessageCmd.
3169
3170 2005-05-05 Brian Dessent <brian@dessent.net>
3171
3172 * root.cc (dialog_cmd): Remove. Use OnMessageCmd instead.
3173 (RootPage::Create): Accomodate above change.
3174
3175 * root.h (class RootPage): Add prototype for OnMessageCmd.
3176
3177 * res.rc (IDD_ROOT): Fix broken button groups. Correct the order of
3178 the controls and use of WS_GROUP so that the radio buttons act
3179 correctly.
3180
3181 2005-05-05 Max Bowsher <maxb@ukf.net>
3182
3183 Bulk rename of String++ member cstr_oneuse () to c_str () for
3184 similarity to std::string.
3185
3186 * Exception.cc
3187 * IniDBBuilderPackage.cc
3188 * IniParseFindVisitor.cc
3189 * LogFile.cc
3190 * PickCategoryLine.cc
3191 * PickPackageLine.cc
3192 * PickView.cc
3193 * String++.cc
3194 * String++.h
3195 * archive.cc
3196 * cygpackage.cc
3197 * desktop.cc
3198 * dialog.cc
3199 * diskfull.cc
3200 * download.cc
3201 * filemanip.cc
3202 * find.cc
3203 * geturl.cc
3204 * ini.cc
3205 * install.cc
3206 * io_stream.cc
3207 * io_stream_cygfile.cc
3208 * io_stream_file.cc
3209 * localdir.cc
3210 * mount.cc
3211 * nio-http.cc
3212 * package_db.cc
3213 * package_meta.cc
3214 * package_source.h
3215 * postinstall.cc
3216 * proppage.cc
3217 * root.cc
3218 * script.cc
3219 * site.cc
3220 * splash.cc
3221 * threebar.cc
3222 * window.cc
3223
3224 2005-05-05 Max Bowsher <maxb@ukf.net>
3225
3226 Some String++ refactoring, setting out in the general direction of
3227 eventually just using the STL std::string, not our own class.
3228
3229 * String++.cc (String::cstr, String::cstr () const): Remove.
3230 (new_cstr_char_array): New function.
3231 * String++.h: Sync with above.
3232 Remove irrelevant "class io_stream;" declaration.
3233
3234 * cygpackage.h: Add "class io_stream;" declaration, now no longer
3235 being supplied by side-effect.
3236
3237 * filemanip.cc: Remove unneeded includes, add "using namespace std;".
3238 (parse_filename): Exchange some awkward pointer manipulation for
3239 std::string usage. Use new_cstr_char_array ().
3240 * filemanip.h: Sync with above.
3241 (fileparse): Improve style of declaration.
3242
3243 * io_stream_cygfile.cc (io_stream_cygfile::normalise):
3244 Use new_cstr_char_array ().
3245 * site.cc (site_list_type::init, get_site_list): Ditto.
3246
3247 2005-05-05 Brian Dessent <brian@dessent.net>
3248
3249 * ControlAdjuster.h (enum ControlPosition): Declare new resizing
3250 methods CP_STRETCH_LEFTHALF and CP_STRETCH_RIGHTHALF, and their
3251 TOP/BOTTOM aliases.
3252
3253 * ControlAdjuster.cc (ControlAdjuster::ControlInfo::adjust):
3254 Implement CP_STRETCH_LEFTHALF and CP_STRETCH_RIGHTHALF, which are
3255 designed to resize elements in a two-column layout.
3256
3257 * localdir.h (class LocalDirPage): Remove constructor implementation
3258 from here...
3259
3260 * localdir.cc (LocalDirPage::LocalDirPage): ...to here, and call
3261 AddControlsInfo on initialization.
3262 (static LocaldirControlsInfo): Add. Define sizing rules for dialog
3263 elements.
3264
3265 * proppage.h: Add includes.
3266 (PropertyPage::ClickableURL):
3267 Declare new storage type for internal use by class.
3268 (PropertyPage::urls): Likewise.
3269 (PropertyPage::urlWinProc): Add declaration.
3270 (PropertyPage::makeClickable): Likewise.
3271
3272 * proppage.cc: Add includes.
3273 (PropertyPage::DialogProc): Implement handler for WM_CTLCOLORSTATIC
3274 message. Supports static controls that have been turned into
3275 clickable hyperlinks.
3276 (static PropertyPage::urls): Declare.
3277 (PropertyPage::makeClickable): Implement new member function that
3278 provides user interface for making text into clickable URLs.
3279 (PropertyPage::urlWinProc): Implement new private member function used
3280 as a windowproc for subclassing a static control.
3281
3282 * resource.h (IDC_SPLASH_URL, IDC_FILEMODES_LINK, IDC_ROOTDIR_GRP,
3283 IDC_INSTALLFOR_GRP, IDC_ALLUSERS_TEXT, IDC_JUSTME_TEXT, IDC_MODE_GRP,
3284 IDC_MODE_TEXT, IDC_MODE_BIN, IDC_LOCALDIR_GRP, IDC_SPLASH_TEXT,
3285 IDC_SPLASH_ICON, IDC_SPLASH_COPYR): Add. Replaces anonymous
3286 IDC_STATIC ids, so that controls can be referenced by the resizer.
3287
3288 * res.rc (IDD_LOCAL_DIR): Rearrange controls to match top-down order
3289 in the dialog. Fold long lines. Replace anonymous IDC_STATIC ids.
3290 (IDD_ROOT): Reorder in same manner. Replace anonymous IDC_STATIC ids.
3291 Add descriptive text of each option, and hyperlink for more
3292 information. Mark suggested choice as "(RECOMMENDED)". Swap order of
3293 'unix'/'dos' radio buttons so that recommended choice is first in both
3294 columns.
3295 (IDD_SPLASH): Reorder elements to match top-down order of dialog, fold
3296 long lines. Add descriptive paragraph, remove anonymous ids. Update
3297 copyright text, replace sources.redhat.com with cygwin.com.
3298
3299 * root.h (class RootPage): Remove constructor implementation from
3300 here...
3301
3302 * root.cc: ...to here, and call AddControlInfo.
3303 (static RootControlsInfo): Add. Populate with resizing data.
3304 (RootPage::OnInit): Make text a clickable hyperlink.
3305
3306 * splash.h (class SplashPage): Likewise, move constructor from
3307 here...
3308
3309 * splash.cc: ...to here. Call AddControlInfo.
3310 (static SplashControlsInfo): Add and populate.
3311 (SplashPage::Create): Make link on splash page a clickable hyperlink.
3312
3313 * window.h: Add include.
3314 (class Window): Store allocated fonts with a vector instead of fixed
3315 array. Change indentation of setParent to be consistent.
3316
3317 * window.cc (Window::Window): Remove FontCounter.
3318 (Window::~Window): Likewise. Iterate over vector of fonts instead.
3319 (Window::SetDlgItemFont): Use vector.
3320
3321 2005-05-05 Max Bowsher <maxb@ukf.net>
3322
3323 * Makefile.am (EXTRA_DIST, inilint_SOURCES):
3324 Sync with several recent changes.
3325
3326 2005-05-05 Brian Dessent <brian@dessent.net>
3327
3328 * res.rc: (CREATEPROCESS_MANIFEST_RESOURCE_ID): Include section
3329 comment.
3330
3331 2005-05-05 Brian Dessent <brian@dessent.net>
3332
3333 * res.rc: (IDC_CHOOSE): Widen 'view' button by 6px horizontally and
3334 4px vertically. Adjust other controls to accomodate.
3335 (CREATEPROCESS_MANIFEST_RESOURCE_ID): Define so that manifest is
3336 included in the binary.
3337
3338 * setup.exe.manifest: New file. Results in common controls with
3339 themed appearance on modern versions of Windows.
3340
3341 2005-05-05 Brian Dessent <brian@dessent.net>
3342
3343 * main.cc (WinMain): Change conditional to avoid spurious error
3344 message on success. Include reason for failure in log message.
3345
3346 2005-05-04 Max Bowsher <maxb@ukf.net>
3347
3348 * state.cc, state.h (net_method, net_proxy_host, net_proxy_port,)
3349 (net_user, net_passwd, net_proxy_user, net_proxy_passwd,)
3350 Inet_ftp_user, net_ftp_passwd):
3351 Move these global variables to be static variables of the NetIO class.
3352
3353 * netio.h, netio.cc (net_method, net_proxy_host, net_proxy_port,)
3354 (net_user, net_passwd, net_proxy_user, net_proxy_passwd,)
3355 net_ftp_user, net_ftp_passwd):
3356 As above.
3357
3358 * ConnectionSetting.cc, net.cc:
3359 Change include, refer to variables in new location.
3360
3361 2005-05-04 Max Bowsher <maxb@ukf.net>
3362
3363 * PickLine.cc: Remove file - redundant.
3364 * Makefile.am (setup_SOURCES): Adjust.
3365
3366 2005-05-04 Max Bowsher <maxb@ukf.net>
3367
3368 * package_version.h (packageversion::set_requirements):
3369 Remove deftrust argument default value.
3370
3371 2005-05-04 Max Bowsher <maxb@ukf.net>
3372
3373 * package_version.cc (DependencyProcessor): Remove trivial class.
3374 (select, processOneDependency): Do not use DependencyProcessor, just
3375 pass parameters normally.
3376
3377 2005-05-04 Brian Dessent <brian@dessent.net>
3378
3379 Fix bug #820: Clicking Curr, etc., causes some dependencies to not
3380 be installed.
3381
3382 * choose.cc (ChooserPage::changeTrust):
3383 Add a missing "packagedb.markUnVisited ()".
3384
3385 2005-05-03 Max Bowsher <maxb@ukf.net>
3386
3387 * PickCategoryLine.cc (PickCategoryLine::click):
3388 * PickPackageLine.cc (PickPackageLine::click):
3389 Abandon use of trivial packagemeta::PrepareForVisit() wrapper.
3390
3391 * package_meta.h (packagemeta::PrepareForVisit): Remove.
3392 * package_meta.cc (packagemeta::PrepareForVisit): Remove.
3393
3394 2005-05-03 Max Bowsher <maxb@ukf.net>
3395
3396 * choose.h (ChooserPage::ifChecked): Remove.
3397 (ChooserPage::changeTrust): Convert from template to ordinary function.
3398 * choose.cc (ChooserPage::changeTrust): As above, plus avoid the use
3399 of custom class SetRequirement, when bind2nd(mem_fun(...),...) can
3400 achieve the same effect.
3401 * package_meta.h (SetRequirement): Remove, now unused.
3402
3403 2005-05-03 Max Bowsher <maxb@ukf.net>
3404
3405 * package_meta.h (packagemeta::set_requirements):
3406 Remove default argument which seems inappropriate.
3407 * PickPackageLine.cc (PickPackageLine::click):
3408 Make an argument explicit, and not that it seems like the wrong value.
3409
3410 2005-05-03 Brian Dessent <brian@dessent.net>
3411
3412 Fix part of bug #853 - proxy port not remembered.
3413
3414 * net.cc (doing_loading): New static boolean.
3415 (load_dialog): Use the boolean to prevent save_dialog() from taking
3416 action due to field changes due to initialization.
3417 (save_dialog): Check the boolean and respond appropriately.
3418
3419 2005-04-19 Max Bowsher <maxb@ukf.net>
3420
3421 * postinstall.cc (RunFindVisitor::visitFile): Fix crash on
3422 encountering a postinstall script with a name of 4 characters or less.
3423 Bug introduced on 2004-12-25.
3424
3425 2005-04-05 Max Bowsher <maxb@ukf.net>
3426
3427 The Big Cleanup: Phase "rfc1738"
3428
3429 * rfc1738.cc, rfc1738.h: Delete.
3430 * csu_util/rfc1738.cc: Reimport latest version from upstream source.
3431 Make thread-safe. Rewrite C++ wrapper in terms of std::string.
3432 Document the divergences from the upstream source.
3433 * csu_util/rfc1738.h: Recreate for the std::string version of the
3434 C++ wrapper.
3435
3436 * Makefile.am (setup_SOURCES): Sync with added/removed files.
3437 * IniParseFindVisitor.cc: Modify #includes.
3438 (IniParseFindVisitor::visitFile): Change function name, as the new
3439 C++ wrapper does not contain an irregularity that the old one did.
3440 * download.cc: Modify #includes.
3441 * ini.cc: Modify #includes.
3442
3443 2005-04-05 Max Bowsher <maxb@ukf.net>
3444
3445 Remove setup's internal compression libraries, instead relying on the
3446 mingw-foo packages which have been part of the Cygwin net distribution
3447 for some time now. At the same time, reorganize the README file to
3448 inform about the change, and make some additional tidy-ups there whilst
3449 working there.
3450
3451 * GUIDELINES: Remove, contents transferred to README.
3452 * README: Add build instructions. Delete unconfirmed and fixed bugs
3453 sections. Incorporate the former contents of GUIDELINES.
3454
3455 * bz2lib/: Remove.
3456 * zlib/: Remove.
3457 * Makefile.am (DIST_SUBDIRS, SUBDIRS):
3458 * configure.in: Remove AC_CONFIG_SUBDIRS for removed subdirs.
3459 * compress_bz.h: Remove complex _WIN32 preprocessor conditional.
3460 * compress_gz.h: Fix #include file name.
3461 * archive_tar_file.cc: Remove unused #include.
3462 * install.cc: Remove unused #include.
3463
3464 2005-01-27 Max Bowsher <maxb@ukf.net>
3465
3466 Set CYGWIN=nontsec, for postinstall scripts.
3467
3468 * main.cc (main): putenv("CYGWIN=nontsec").
3469
3470 2005-01-27 Bas van Gompel <patch-cygsup.buzz@bavag.tmfweb.nl>
3471
3472 Fix corrupt display of ini parse percentage in log file.
3473
3474 * ini.cc (GuiParseFeedback): Use a sensible data type for lastpct.
3475
3476 2004-12-29 Max Bowsher <maxb@ukf.net>
3477
3478 * site.cc (get_site_list): Filter the incoming mirrors list to contain
3479 only URL schemes that we can read.
3480
3481 2004-12-28 Max Bowsher <maxb@ukf.net>
3482
3483 The Big Cleanup: Phase "hash"
3484
3485 * hash.cc, hash.h: Delete.
3486 * Makefile.am (setup_SOURCES): Sync with deleted files.
3487
3488 * package_mets: Modify includes.
3489 (standard_dirs): Remove.
3490 (hash::add_subdirs): Remove.
3491 (packagemeta::uninstall): Re-implement using STL set instead of
3492 homebrew hash.
3493
3494 2004-12-28 Max Bowsher <maxb@ukf.net>
3495
3496 * String++.h (operator std::string): Take care to never do
3497 std::string((char*)NULL) - it causes a hang!
3498
3499 2004-12-27 Max Bowsher <maxb@ukf.net>
3500
3501 The Big Cleanup: Phase "log"
3502
3503 * log.cc, log.h: Delete old C-style compatibility wrapper around the
3504 logging subsystem.
3505 * Makefile.am (setup_SOURCES): Sync with deleted files.
3506
3507 * AntiVirus.cc, archive_tar_file.cc, ini.cc, install.cc,
3508 * io_stream_cygfile.cc, localdir.cc, msg.cc, net.cc, netio.cc,
3509 * netio.h, nio-ftp.cc, nio-ftp.h, root.cc, source.cc:
3510 Throughout, refine includes, and update code using the old
3511 compatibility wrapper to C++ streams style code.
3512
3513 2004-12-27 Max Bowsher <maxb@ukf.net>
3514
3515 * compress.cc: Refine includes. Remove placeholder function
3516 definitions. Make destructor an empty function.
3517 * compress.h: Refine includes. Make placeholder functions pure
3518 virtual. Add missing const on buffer argument to write function,
3519 to match derived classes.
3520 * compress_bz.cc, compress_gz.cc: Refine includes. Throw exception,
3521 rather than logging and returning an error, when an unimplemented
3522 function is called.
3523 * compress_bz.h, compress_gz.h: Refine includes.
3524
3525 2004-12-26 Max Bowsher <maxb@ukf.net>
3526
3527 The Big Cleanup: Phase "version"
3528
3529 * String++.h (operator std::string): Add.
3530 * desktop.cc, fromcwd.cc: Remove irrelevant include.
3531
3532 * version.cc, version.h: Delete, replacing all functionality in new
3533 files.
3534
3535 * setup_version.h: Add, taking over declaration of generated version
3536 symbol functionality.
3537
3538 * Makefile.am (setup_SOURCES): Sync with new/deleted files.
3539 (setup_version.c): Rename the symbol 'version' to 'setup_version'.
3540 * main.cc: Modify includes.
3541 (main): Adapt to setup_version rename.
3542 * splash.cc: Modify includes.
3543 (SplashPage::OnInit): Adapt to setup_version rename.
3544
3545 * csu_util/version_compare.cc, csu_util/version_compare.h: Add,
3546 containing a completely rewritten replacement for canonical_version().
3547
3548 * IniDBBuilderPackage.cc: Modify includes.
3549 (IniDBBuilderPackage::buildVersion): Use new version_compare API.
3550 * ini.cc: Modify includes.
3551 (setup_version): Rename...
3552 (ini_setup_version): ...to this.
3553 (do_local_ini, do_remote_ini): Adapt to above change.
3554 (do_ini_thread): Adapt to above change. Use new version_compare API.
3555
3556 2004-12-25 Max Bowsher <maxb@ukf.net>
3557
3558 * install.cc (Installer::installOneSource): Remove a stray "break;"
3559 left over from the switch-case -> if-else conversion in the previous
3560 change.
3561
3562 2004-12-25 Max Bowsher <maxb@ukf.net>
3563
3564 The Big Cleanup: Phase "win32"
3565
3566 * win32.h: Major overhaul. Document why we use _WIN32_IE. Move out
3567 fragment dealing with alloca() to the single file in which it is used.
3568 Remove fragment dealing with _MAX_PATH, and convert all uses of it
3569 elsewhere to MAX_PATH. Remove random include of <stdarg.h>. Remove
3570 NOCOMATTRIBUTE, as setup contains no code which it affects. Remove
3571 includes of <wininet.h> and <windowsx.h> - see later in this log.
3572 (IsWindowsNT): New inline function, a much simpler implementation of
3573 Win32::OS().
3574
3575 * win32.cc: Delete.
3576
3577 * Makefile.am (setup_SOURCES): Remove "win32.cc".
3578
3579 * AntiVirus.cc (detect), PickPackageLine.cc (PickPackageLine::paint),
3580 * install.c (Installer::installOneSource):
3581 Use IsWindowsNT(), not Win32::OS().
3582 * main.cc (main): Use IsWindowsNT(), not locally defined iswinnt.
3583
3584 * PickView.cc (PickView::WindowProc), netio.cc (auth_proc),
3585 * proppage.cc (PropertyPage::DialogProc):
3586 Avoid using obfuscating macros from <windowsx.h>.
3587
3588 * archive.cc: Include or #define alloca() in the only file in which
3589 it is used.
3590
3591 * nio-ie5.h: Include <wininet.h> here, where it is actually needed,
3592 rather than in "win32.h" which is included almost everywhere.
3593
3594 * archive_tar.cc, archive_tar.h, cygpackage.cc, cygpackage.h,
3595 * desktop.cc, find.cc, install.cc, main.cc, mklink2.c, mount.cc,
3596 * script.cc: Use MAX_PATH, not _MAX_PATH.
3597
3598 2004-12-25 Max Bowsher <maxb@ukf.net>
3599
3600 Remove some overcomplications.
3601
3602 * Makefile.am (setup_SOURCES): Remove FilterVisitor.{cc,h}.
3603 * FilterVisitor.cc, FilterVisitor.h: Delete.
3604 * String++.cc (strmatch, String::matches): Remove.
3605 * String++.h (String::matches): Remove.
3606 * postinstall.cc: Do not include "FilterVisitor.h".
3607 (RunFindVisitor): Exclude items with the extension ".done".
3608 (do_postinstall_thread): Remove overcomplicated exclusion of items
3609 with the extension ".done".
3610
3611 2004-12-24 Max Bowsher <maxb@ukf.net>
3612
3613 * String++.cc, String++.h: Remove unused and incomplete code.
3614 * LogFile.cc (LogFile::log_save): Don't leak memory.
3615 * filemanip.cc, geturl.cc, root.cc, version.cc:
3616 Don't pointlessly create temporary copies strings.
3617
3618 2004-12-23 Max Bowsher <maxb@ukf.net>
3619
3620 * choose.cc (ChooserPage::OnNext): Relegate some overly verbose
3621 logging to an #ifdef DEBUG section.
3622 * geturl.h (dismiss_url_status_dialog): Remove stale function
3623 declaration, for which there is no definition.
3624 * io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile):
3625 Motivated by the recent unexplained hang bug, add some extra logging.
3626
3627 2004-11-22 Max Bowsher <maxb@ukf.net>
3628
3629 * MD5++.cc, MD5++.h: Remove this class.
3630 * csu_util/MD5Sum.cc, csu_util/MD5Sum.h: New more complete MD5 class.
3631 * Makefile.am (setup_SOURCES): Adjust to new files.
3632 * download.cc (validateCachedPackage): Simplify, using the new class.
3633 * install.cc (md5_one): Ditto.
3634 * package_source.h (packagesource::md5): Change to be an object of the
3635 new class.
3636
3637 2004-11-22 Max Bowsher <maxb@ukf.net>
3638
3639 * main.cc (main): Fix bug in one of the 2004-11-19 commits.
3640 Avoid referring to the theLog pointer before it is set.
3641
3642 2004-11-20 Max Bowsher <maxb@ukf.net>
3643
3644 * res.rc (IDD_SOURCE): Clarify the radio-button option descriptions.
3645 Re-layout the radio buttons.
3646
3647 2004-11-20 Max Bowsher <maxb@ukf.net>
3648
3649 Repair the broken detection of wrongly-sized package files.
3650
3651 * download.cc (validateCachedPackage): Make static, since not used
3652 elsewhere. Improve logging. Migrate file-size tests to here, alongside
3653 the MD5 tests.
3654 (check_for_cached): Remove broken testing of file-size, now covered by
3655 the above. Code cleanups.
3656
3657 2004-11-19 Max Bowsher <maxb@ukf.net>
3658
3659 * package_version.cc (dumpAndList): Make dependencies much more
3660 readable in full log output.
3661
3662 2004-11-19 Max Bowsher <maxb@ukf.net>
3663
3664 * proppage.cc (PropertyPage::DialogProc): Wrap in a TOPLEVEL_CATCH
3665 block, since allowing exceptions to unwind into the guts of Windows is
3666 quite disasterous.
3667
3668 2004-11-19 Max Bowsher <maxb@ukf.net>
3669
3670 * main.cc (main): Move option parsing code earlier - it must execute
3671 before any significant object creations, which might test options in
3672 their initialization.
3673
3674 2004-11-19 Max Bowsher <maxb@ukf.net>
3675
3676 * main.cc (main): Remove some junk code - either commented out, or
3677 contained within unreachable preprocessor conditional sections.
3678
3679 2004-11-19 Max Bowsher <maxb@ukf.net>
3680
3681 * install.cc (Installer::installOneSource): Avoid leaking the open
3682 file handles of every tarball that is installed.
3683
3684 2004-11-19 Max Bowsher <maxb@ukf.net>
3685
3686 * package_source.h (packagesource::Canonical, packagesource::Base)
3687 (packagesource::Filename): Add "const" specification to accessor
3688 methods.
3689
3690 2004-11-18 Max Bowsher <maxb@ukf.net>
3691
3692 * archive.h (archive::~archive): Define a pure virtual destructor to
3693 enforce the abstract nature of this class.
3694 * archive.cc (archive::~archive): Pure virtual destructors require an
3695 implementation! Add one.
3696 * io_stream.h (io_stream::destroyed): Remove this severely
3697 brain-damaged implementation of a weakly-enforced abstract class.
3698 The pure virtual destructor was strongly enforcing the abstract nature
3699 anyway.
3700 * io_stream.cc (io_stream::~io_stream): Empty out horribly pointless
3701 code from the pure virtual destructor.
3702 * archive_tar.cc (archive_tar::~archive_tar): Remove all
3703 reference to the removed "destroyed" member.
3704 * archive_tar_file.cc (archive_tar_file::~archive_tar_file): Ditto.
3705 * compress_bz.cc (compress_bz::~compress_bz): Ditto.
3706 * compress_gz.cc (compress_gz::~compress_gz): Ditto.
3707 * io_stream_cygfile.cc (io_stream_cygfile::~io_stream_cygfile): Ditto.
3708 * io_stream_file.cc (io_stream_file::~io_stream_file): Ditto.
3709 * io_stream_memory.cc (io_stream_memory::~io_stream_memory): Ditto.
3710
3711 2004-11-17 Max Bowsher <maxb@ukf.net>
3712
3713 * mount.cc (create_mount): Fix operator precedence error introduced in
3714 first 2004-11-11 commit - warned of by gcc 3.3.3 but not 3.4.1 !
3715
3716 2004-11-13 Max Bowsher <maxb@ukf.net>
3717
3718 Miscellaneous cleanup.
3719
3720 * geturl.cc (getUrlToStream): Make static.
3721 * geturl.h (getUrlToStream): Remove declaration.
3722
3723 * geturl.cc, geturl.h, netio.cc, netio.h, nio-ftp.cc, nio-ftp.h,
3724 nio-http.cc, nio-http.h:
3725 Remove unused "allow_ftp_auth" flag throughout.
3726
3727 2004-11-11 Max Bowsher <maxb@ukf.net>
3728
3729 * libmd5-rfc: New directory, to hold code imported from the libmd5-rfc
3730 project in a clearly delineated fashion.
3731 * libmd5-rfc/README: New file.
3732 * md5.c, md5.h: Delete...
3733 * libmd5-rfc/md5.c, libmd5-rfc/md5.h: ...and replace with pristine
3734 versions from upstream (only change is restoration of upstream CVS
3735 keyword expansions).
3736 * libmd5-rfc/md5main.c: New file.
3737 * Makefile.ami (setup_SOURCES): Edit file paths.
3738 * download.cc, install.cc: Edit include paths.
3739
3740 2004-11-11 Max Bowsher <maxb@ukf.net>
3741
3742 * dialog.cc (fatal): Make capable of handling a passed-in error code,
3743 as an alternative to calling GetLastError().
3744 * dialog.h (fatal): Adjust prototype as above.
3745 * mount.cc (create_mount): Use the above to correctly report errors.
3746
3747 2004-10-28 Max Bowsher <maxb@ukf.net>
3748
3749 * LogFile.cc (LogFile::getFileName), splash.cc (SplashPage::Create),
3750 threebar.cc (ThreeBarProgressPage::SetBar2):
3751 Migrate from cistring and string resources
3752 to String and string literals.
3753 * localdir.cc: Remove unneeded #include of "cistring.h".
3754 * cistring.cc, cistring.h: Remove this now-redundant class.
3755 * Makefile.am: Remove mention of the above removed files.
3756 * res.rc, resource.h: Remove obsolete strings and IDs, both those
3757 obseleted by and obselete before the above changes.
3758 * res.rc: Merge the 2 adjacent STRINGTABLEs.
3759
3760 2004-10-27 Max Bowsher <maxb@ukf.net>
3761
3762 * Makefile.am (setup_SOURCES): Add "RECTWrapper.h". It was missing.
3763
3764 2004-10-25 Bas van Gompel <cygsup-patch.buzz@bavag.tmfweb.nl>
3765
3766 * package_source.cc (packagesource::set_canonical):
3767 Fix one-off in 'base' when ini is in same dir as package.
3768
3769 2004-10-25 Max Bowsher <maxb@ukf.net>
3770
3771 * main.cc (next_dialog): Remove this legacy global variable.
3772 * download.cc (do_download_thread): Return a value instead of setting
3773 a global variable, then returning void.
3774 (do_download_reflector): Look for the next dialog code as a return
3775 value instead of a global variable.
3776
3777 2004-10-25 Max Bowsher <maxb@ukf.net>
3778
3779 * port.h: Remove this redundant file - all contained definitions are
3780 duplicated in "win32.h".
3781 * Makefile.am, UserSetting.cc, UserSettings.cc, archive.cc,
3782 archive_tar.cc, archive_tar_file.cc, choose.cc, compress.cc,
3783 compress_bz.cc, compress_gz.cc, desktop.cc, find.cc, fromcwd.cc,
3784 iniparse.y, install.cc, io_stream_cygfile.cc, io_stream_file.cc,
3785 main.cc, netio.cc, site.cc, version.cc:
3786 Remove all references to "port.h".
3787
3788 2004-10-25 Max Bowsher <maxb@ukf.net>
3789
3790 Fix compilation with w32api 3.1 and later.
3791
3792 * ControlAdjuster.h, RECTWrapper.h, cistring.h, propsheet.h,
3793 window.cc, window.h: Include "win32.h" not <windows.h> directly.
3794 * win32.h (WINBASEAPI): Define to empty string.
3795
3796 2004-09-13 Igor Pechtchanski <pechtcha@cs.nyu.edu>
3797
3798 * script.cc (run): Kill stdin when running scripts.
3799
3800 2004-09-01 Max Bowsher <maxb@ukf.net>
3801
3802 * Makefile.am: Oops. Unwanted keyword expansion ate the code of the
3803 previous commit. Restore the code, escaped to not look like a keyword.
3804
3805 2004-09-01 Max Bowsher <maxb@ukf.net>
3806
3807 * Makefile.am: Simplify the shell incantation for getting the revision
3808 of ChangeLog from grep-and-sed to just sed.
3809
3810 2004-08-31 Max Bowsher <maxb@ukf.net>
3811
3812 Attain GCC 3.4 compatibility.
3813
3814 * PackageSpecification.h (PackageSpecification): Make the
3815 unnecessarily private copy-constructor public.
3816
3817 2004-08-30 Max Bowsher <maxb@ukf.net>
3818
3819 Rework the implementation of not including -Werror for specific files,
3820 to a way that does not require hardcoding modified automake output back
3821 into its input.
3822
3823 * Makefile.am (AM_CXXFLAGS, BASECXXFLAGS): Seperate out -Werror.
3824 (autoload.o): Drop this rule, -finline-functions is no longer required
3825 and -Werror is acceptable here now we have __attribute__ ((used)).
3826 (WARNONLY_CFLAGS, inilex.o): Drop these.
3827 (EXTRA_PROGRAMS): Add a fake "warnonly" program.
3828 (warnonly_CXXFLAGS): Set to the $(BASECXXFLAGS).
3829 (warnonly_SOURCES): Set to "inilex.cc".
3830 (EXTRA_setup_SOURCES): Set to $(warnonly_SOURCES).
3831 (setup_SOURCES): Remove "inilex.cc".
3832 (setup_LDADD): Add "warnonly-inilex.o".
3833
3834 2004-08-30 Max Bowsher <maxb@ukf.net>
3835
3836 Move closer to GCC 3.4 compatibility.
3837
3838 * IOStreamProvider.h, io_stream_cygfile.cc, io_stream_cygfile.h,
3839 io_stream_file.cc: Do not incorrectly use "enum" after it has been
3840 hidden inside a typedef.
3841 * archive.h: In "virtual func() = 0;", the 0 is a language construct,
3842 not some symbol that might evaluate to 0, and gcc 3.4 enforces this.
3843 * autoload.c (DllInfo.name): Silence warning by making const.
3844 (DLL, autoload_common): __attribute__ ((used)) is now required to
3845 prevent gcc being over-eager in it's optimization, and removing these
3846 seemingly-unused (used only from assembly) functions.
3847 Silences some warnings, too.
3848 * Makefile.am (AM_CXXFLAGS, AM_CFLAGS): The options
3849 -Wstrict-prototypes -Wmissing-prototypes do not apply to C++ and
3850 g++ 3.4 complains about them.
3851
3852 2004-08-29 Max Bowsher <maxb@ukf.net>
3853
3854 * Exception.h: Reformatting, #include more, remove incorrect and
3855 less-than-useful comments.
3856 (TOPLEVEL_CATCH): New preprocessor macro.
3857
3858 * LogFile.cc (LogFile::operator()): Throw an exception object, not a
3859 char* string.
3860
3861 Wrap the top-level of each thread (including the main thread) in a
3862 try...catch block, in order to display a useful error message if an
3863 exception is not caught.
3864 * download.cc (do_download_reflector): Here ...
3865 * ini.cc (do_ini_thread_reflector): ... and here ...
3866 * install.cc (do_install_reflector: ... and here ...
3867 * main.cc (main): ... and here ...
3868 * postinstall.cc (do_postinstall_thread): ... and here ...
3869 * site.cc (do_download_site_info_thread): ... and here!
3870
3871 * msg.h: Include a missing header requirement.
3872 * res.rc (IDS_UNCAUGHT_EXCEPTION, IDS_UNCAUGHT_EXCEPTION_WITH_ERRNO):
3873 New strings.
3874 * resource.h (IDS_UNCAUGHT_EXCEPTION)
3875 (IDS_UNCAUGHT_EXCEPTION_WITH_ERRNO): New IDs.
3876
3877 2004-08-28 Max Bowsher <maxb@ukf.net>
3878
3879 * res.rc (IDS_WINDOW_INIT_BADMSG): New string.
3880 * resource.h (IDS_WINDOW_INIT_BADMSG): New string resource ID.
3881 * window.cc (Window::FirstWindowProcReflector): Convert an abort()
3882 into a descriptive error.
3883
3884 2004-08-24 Max Bowsher <maxb@ukf.net>
3885
3886 The Doug Lee replacement malloc was no longer hooked up with the
3887 buildsystem in any way. Pruning the remaining unused file.
3888
3889 * dlmalloc.c: Removed.
3890
3891 2004-08-18 Max Bowsher <maxb@ukf.net>
3892
3893 "librsync is not wire-compatible with rsync 2.x, and is not likely
3894 to be in the future." -- librsync.sourceforge.net
3895
3896 So, it is of no practical use to setup. Therefore, removing all
3897 rsync related files and code from setup.
3898
3899 * rsync: Directory removed.
3900 * Makefile.am: Remove rsync support from the buildsystem.
3901 * configure.in: Ditto.
3902 * README: Since it seems vanishingly unlikely that it will ever happen,
3903 remove rsync support from the wishlist.
3904 * io_stream_rsync.cc: Remove.
3905 * io_stream_rsync.h: Remove.
3906
3907 2004-04-25 Robert Collins <rbtcollins@hotmail.com>
3908
3909 * package_meta.cc (packagemeta::set_requirements): fix problem with
3910 libpcre0 not being pulled in automatically.
3911
3912 2004-04-25 Robert Collins <rbtcollins@hotmail.com>
3913
3914 * IniDBBuilderPackage.cc (dumpAndList):
3915 Move out to packageversion for reuse.
3916 * package_meta.cc (packagemeta::logAllVersions): log dependencies.
3917 * package_version.cc (packageversion::depends):
3918 provide a const accessor.
3919 (dumpAndList): Moved from INIDBBuilder.cc.
3920 * package_version.h: declare new method and function.
3921
3922 2003-12-21 Robert Collins <rbtcollins@hotmail.com>
3923
3924 * main.cc (main): Update to head libgetopt++ syntax.
3925
3926 2003-11-2 Robert Collins <rbtcollins@hotmail.com>
3927
3928 * ControlAdjuster.h (ControlPosition::CP_MIDDLE): Rename to
3929 CP_CENTERED.
3930 * ControlAdjuster.cc: Ditto.
3931
3932 2003-10-31 Frank Richter <frichter@gmx.li>
3933
3934 * localdir.cc (OnNext): When SelectDirectoryA() fails, display a
3935 message with the error returned from the system instead of just
3936 'could not change dir'. Also, offer the user to 'Retry', 'Ignore' the
3937 error or 'Abort' the directory change.
3938
3939 2003-10-31 Frank Richter <frichter@gmx.li>
3940
3941 * propsheet.cc (PropSheetWndProc): Don't do child resizing if a the
3942 window gets minimized. Otherwise some glitches (e.g. wrong child
3943 sizes) occur.
3944 Added support for WM_GETMINMAXINFO. Prevents the property sheet from
3945 getting smaller than the original size.
3946
3947 2003-11-1 Robert Collins <rbtcollins@hotmail.com>
3948
3949 * ControlAdjuster.h (ControlDimension): Add.
3950 (ControlAdjuster): Factor adjust functionality into ControlInfo.
3951 * ControlAdjuster.cc (ControlAdjuster::adjust): Ditto.
3952 (ControlAdjuster::ControlInfo::adjust): Ditto.
3953
3954 2003-10-31 Igor Pechtchanski <pechtcha@cs.nyu.edu>
3955
3956 * ControlAdjuster.h (ControlPosition): New enum type.
3957 (ControlInfo::horizontalPos, ControlInfo::verticalPos): New
3958 instance variables.
3959 (ControlInfo::anchorLeft, ControlInfo::anchorTop,
3960 ControlInfo::anchorRight, ControlInfo::anchorBottom): Remove.
3961 * ControlAdjuster.cc (ControlAdjuster::AdjustControls): Switch to
3962 using position specifiers instead of anchors.
3963 * choose.cc (ChooserControlsInfo): Ditto.
3964 * proppage.cc (DefaultControlsInfo): Ditto.
3965 * propsheet.cc (PropSheetControlsInfo): Ditto.
3966 * site.cc (SiteControlsInfo): Position specifiers for site
3967 selection dialog controls.
3968 * threebar.cc (ThreeBarControlsInfo): Position specifiers for
3969 progress dialog controls.
3970
3971 2003-10-27 Ralf Habacker <ralf.habacker@freenet.de>
3972
3973 * main.cc (HelpOption): New instance.
3974 (main): Added help command line option handling.
3975 * localdir.cc (LocalDirOption): New instance.
3976 (LocalDirSetting::load): allow setting localdir from command line.
3977
3978 2003-10-16 Frank Richter <frichter@gmx.li>
3979
3980 * ControlAdjuster.cc: New file, helper to move elements of a dialog
3981 along when the it's resized.
3982 * ControlAdjuster.h: Ditto.
3983 * Makefile.am: Add new source files.
3984 * proppage.cc (PropertyPage::DialogProc): Adjust some common
3985 controls (Cygwin icon top right, separator below) when a page is
3986 resized.
3987 (PropertyPage::PropertyPage): Dito.
3988 * propsheet.cc (IsDialog): New. Test whether a window is a dialog.
3989 Used internally by resize logic.
3990 (EnumPages): New. Used internally by resize logic: resizes the
3991 property sheet's individual pages.
3992 (PropSheetWndProc): New. Hook for the propery sheet window proc.
3993 (PropSheetProc): More style tweaks, add maximize box and thick border
3994 as well. Hook into the property sheet's window proc.
3995 (PropSheet::AdjustPageSize): New. Adjust the metrics of a single page
3996 to fit nicely into the property sheet. Part of resize logic.
3997 * res.rc (All dialogs): The top-right Cygwin icon and top separator
3998 now have IDs distinct from IDC_STATIC, so their metrics can be
3999 adjusted upon a resize. Also, all those Cygwin icons are at the exact
4000 same spot now.
4001 * choose.cc (ChooserPage::ChooserPage): Now the controls on the
4002 chooser page move/size when the page size is changed.
4003 * choose.h: Dito.
4004
4005 2003-10-23 Jerry D. Hedden <jerry@hedden.us>
4006
4007 * ConnectionSetting.cc (ConnectionSetting::load): Load proxysettings.
4008 (ConnectionSetting::save): Save proxy settings.
4009
4010 2003-10-07 Robert Collins <rbtcollins@hotmail.com>
4011
4012 * proppage.h (PropertyPage::wantsActivation): const correctness fix.
4013
4014 2003-08-19 Max Bowsher <maxb@ukf.net>
4015
4016 * win32.h: Define NOMINMAX only if not already defined - because
4017 libstdc++-v3 3.3.1 defines NOMINMAX itself.
4018
4019 2003-08-03 Max Bowsher <maxb@ukf.net>
4020
4021 * ChangeLog: Fix broken line-wrapping throughout. Clarify that
4022 "Ran automake" in 2003-07-26 entry was in bz2lib and zlib subdirs.
4023
4024 2003-08-03 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
4025
4026 * propsheet.cc (Copyright): Update copyright dates.
4027 (PropSheet::PropSheet): Remove NumPropPages initialization.
4028 (PropSheet::CreatePages): Use PropertyPages.size() instead of
4029 NumPropPages.
4030 (PropSheet::Create): Ditto.
4031 (PropSheet::AddPage): Change to use new PropertyPages std::vector<>.
4032 * propsheet.h (Copyright): Update copyright dates.
4033 (File Scope): Include <vector>.
4034 (PropSheet::PropertyPages): Change from array to vector<>.
4035 (PropSheet::NumPropPages): Remove.
4036
4037 2003-08-02 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
4038
4039 Changes modified by Max Bowsher <maxb@ukf.net>
4040 * splash.cc (Copyright): Update copyright dates.
4041 (SplashPage::OnInit): Remove call to SetDlgItemFont(). Now handled in
4042 base class.
4043 * proppage.h (PropertyPage::setTitleFont): Declare.
4044 * proppage.cc (Copyright): Update copyright dates.
4045 (PropertyPage::DialogProc WM_INITDIALOG): Move all font setting code,
4046 including that from splash.cc into new function...
4047 (PropertyPage::setTitleFont): Create, using moved code. Change font
4048 "MS Sans Serif" to "MS Shell Dlg" in line with recent res.rc change.
4049 Set font for IDC_STATIC_WELCOME_TITLE here, to allow easy re-use of
4050 style for future "Finished" page.
4051
4052 2003-08-02 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
4053
4054 * propsheet.cc: Include "resource.h".
4055 (PropSheet::Create): Add the Cygwin icon in the left of the title bar.
4056
4057 2003-08-01 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
4058
4059 * proppage.cc (PropertyPage::FirstDialogProcReflector): Modify comment.
4060
4061 2003-08-01 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
4062
4063 * proppage.h (Copyright): Update copyright dates.
4064 (PropertyPage): Document OnNext and OnBack.
4065
4066 2003-07-31 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
4067
4068 * proppage.cc (PropertyPage::Create): Use more self-documenting
4069 MAKEINTRESOURCE() instead of cast to LPCSTR.
4070
4071 2003-07-31 Robert Collins <rbtcollins@hotmail.com>
4072
4073 * README: Mark completed items complete.
4074
4075 2003-07-31 Pierre Humblet <pierre.humblet@ieee.org>
4076
4077 * main.cc (set_default_sec): Set token owner from token user.
4078 Always try to set the token primary group to Users or Admins.
4079
4080 2003-07-30 Igor Pechtchanski <pechtcha@cs.nyu.edu>
4081
4082 * String++.h (String::replace): New instance functions.
4083 * String++.cc (String::replace): Implement.
4084 * filemanip.cc (backslash): Change to use String::replace.
4085 * desktop.cc (make_cygwin_bat): Escape '%' in path.
4086
4087 2003-07-30 Igor Pechtchanski <pechtcha@cs.nyu.edu>
4088
4089 * String++.h (TOSTRING): New macro.
4090 * UserSettings.cc (UserSettings::deRegisterSetting): Fix
4091 erroneous __LINE__/__FILE__ usage.
4092 * download.cc (validateCachedPackage, check_for_cached): Ditto.
4093 * geturl.cc (getUrlToStream): Ditto.
4094 * install.cc (md5_one): Ditto.
4095
4096 2003-07-30 Max Bowsher <maxb@ukf.net>
4097
4098 * ini.cc (do_ini_thread): Return bool.
4099 (do_ini_thread_reflector): Put returned bool in lParam.
4100 * threebar.cc (WM_APP_SETUP_INI_DOWNLOAD_COMPLETE): Rework for new
4101 meaning of lParam. Replace erroneous use of do_fromcwd with
4102 SetActivePageByID (IDD_SOURCE).
4103
4104 2003-07-30 Robert Collins <rbtcollins@hotmail.com>
4105
4106 * ConnectionSetting.cc: New file, persist connection type selection.
4107 * ConnectionSetting.h: Ditto.
4108 * net.cc: Hold a ConnectionSetting instance to trigger the logic.
4109 (NetPage::OnInit): Don't force net_method to any value.
4110 * Makefile.am: Add new source files.
4111
4112 2003-07-30 Robert Collins <rbtcollins@hotmail.com>
4113
4114 * SourceSetting.cc: New file, persist source selection.
4115 * SourceSetting.h: Ditto.
4116 * source.cc: Hold a Source setting instance to trigger the logic.
4117 * Makefile.am: Add new source files.
4118
4119 2003-07-30 Robert Collins <rbtcollins@hotmail.com>
4120
4121 * UserSettings.h (UserSettings::settingFileForLoad): Extracted method
4122 from LocalDirSetting::load().
4123 * UserSettings.cc (UserSettings::settingFileForLoad): Ditto.
4124 * UserSettings.h (UserSettings::settingFileForSave): Extracted method
4125 from LocalDirSetting::save().
4126 * UserSettings.cc (UserSettings::settingFileForSave): Ditto.
4127 * localdir.cc (LocalDirSetting::load): Extract location logic to
4128 UserSettings.
4129 (LocalDirSetting::save): Extract location logic to UserSettings.
4130 * site.cc (SiteSetting::getSavedSites): Use
4131 UserSettings::settingFileForLoad.
4132 (SiteSetting::save): Use UserSettings::settingFileForSave.
4133
4134 2003-07-30 Robert Collins <rbtcollins@hotmail.com>
4135
4136 * PickView.cc: Adjust ::GetClientRect(..) to the inherited one
4137 throughout.
4138
4139 2003-07-29 Max Bowsher <maxb@ukf.net>
4140
4141 Based on a patch by Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>.
4142 * AntiVirus.cc (AntiVirusPage::wantsActivation): Define.
4143 * AntiVirus.h (AntiVirusPage::wantsActivation): Declare.
4144 * localdir.cc (LocalDirPage::OnBack): Remove logic subsumed by
4145 RootPage::wantsActivation.
4146 * proppage.cc (PropertyPage::DialogProc): Call wantsActivation(),
4147 and skip to next page in sequence if activation is refused.
4148 * proppage.h (PropertyPage::wantsActivation): Default implementation.
4149 * root.cc (RootPage::wantsActivation): Define.
4150 * root.h (RootPage::wantsActivation): Declare.
4151 * source.cc: Don't include "AntiVirus.h".
4152 (SourcePage::OnNext): Remove logic subsumed by
4153 RootPage::wantsActivation.
4154 (SourcePage::OnBack): Remove logic subsumed by
4155 AntiVirusPage::wantsActivation.
4156 * splash.cc: Don't include "AntiVirus.h" or "dialog.h".
4157 (SplashPage::OnNext): Remove - subsumed by
4158 AntiVirusPage::wantsActivation.
4159 * splash.h (SplashPage::OnNext): Remove declaration.
4160
4161 2003-07-29 Robert Collins <rbtcollins@hotmail.com>
4162
4163 * PickView.h (PickView::refresh): New method.
4164 * PickView.cc (PickView::refresh): Extracted from various
4165 ChooserPage callers.
4166 * choose.cc: Use PickView::refresh wherever possible.
4167
4168 2003-07-29 Robert Collins <rbtcollins@hotmail.com>
4169
4170 * choose.h (ChooserPage::createListView): Remove last parameter.
4171 (ChooserPage::getDefaultListViewSize): Extracted method.
4172 * choose.cc (ChooserPage::createListView): Remove last parameter.
4173 (ChooserPage::getDefaultListViewSize): Extracted method.
4174
4175 2003-07-29 Robert Collins <rbtcollins@hotmail.com>
4176
4177 * choose.cc (ChooserPage::createListView): Remove unneeded
4178 parameter.
4179 * choose.h: Ditto.
4180
4181 2003-07-29 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
4182
4183 * dialog.h (do_fromcwd): Change function declaration.
4184 * fromcwd.cc (do_fromcwd): Change return type to bool. Eliminate
4185 use of next_dialog, return true or false instead.
4186 * localdir.cc (LocalDirPage::OnNext): Use do_fromcwd()'s return
4187 value instead of next_dialog.
4188
4189 2003-07-29 Robert Collins <rbtcollins@hotmail.com>
4190
4191 * package_db.h (packagedb::fillMissingCategory): Move from ChooserPage.
4192 * choose.h (ChooserPage::fillMissingCategory): Delete.
4193 * package_db.cc (packagedb::fillMissingCategory): Move from ChooserPage.
4194 * choose.cc (ChooserPage::fillMissingCategory): Delete and adjust
4195 callers.
4196
4197 2003-07-29 Robert Collins <rbtcollins@hotmail.com>
4198
4199 * PickView.h (CATEGORY_EXPANDED): Move from choose.h
4200 (CATEGORY_COLLAPSED): Move from choose.cc.
4201 (PickView::setViewMode): Move from ChooserPage.
4202 * choose.h (CATEGORY_EXPANDED): Delete.
4203 (CATEGORY_COLLAPSED): Delete.
4204 (ChooserPage::setViewMode): Delete.
4205 * PickView.cc (PickView::setViewMode): Move from ChooserPage.
4206 * chooser.cc (ChooserPage::setViewMode): Delete, and adjust callers
4207 throughout.
4208
4209 2003-07-28 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
4210
4211 * AntiVirus.cc (AntiVirusPage::OnNext): Do not explicitly specify the
4212 page to display next, since it follows in the default page ordering
4213 anyway.
4214
4215 2003-07-28 Max Bowsher <maxb@ukf.net>
4216
4217 * dialog.h: (NEXT): Remove obsolete macro.
4218 * site.cc (save_dialog): Remove use of NEXT(), and non-functional
4219 unnecessary error handler.
4220
4221 2003-07-28 Robert Collins <rbtcollins@hotmail.com>
4222
4223 * package_meta.h (packagemeta::addToCategoryAll): Declare.
4224 * package_meta.cc (packagemeta::addToCategoryAll): New method,
4225 separated to allow clear iteration.
4226 * choose.cc (ChooserPage::fillMissingCategory): BUGFIX: "all" is
4227 meant to be added unconditionally.
4228
4229 2003-07-27 Robert Collins <rbtcollins@hotmail.com>
4230
4231 * Generic.h: New file, home for generic programming tools.
4232 (visit_if): Move here from package_meta.cc.
4233 Adjust to be fully parameterised.
4234 * package_meta.h (packagemeta::hasNoCategories): Query for generic
4235 programming.
4236 (packagemeta::setDefaultCategories): set categories for packages
4237 with none.
4238 * package_meta.cc: Move visit_if out. Adjust users for
4239 full paramterised operation.
4240 (packagemeta::hasNoCategories): Implement.
4241 (packagemeta::setDefaultCategories): Implement.
4242 * choose.cc (ChooserPage::fillMissingCategory): Use visit_if to
4243 reduce duplicate code.
4244 (ChooserPage::setExistence): Delete.
4245 * choose.h (ChooserPage::setExistence): Rename to
4246 packagedb::setExistence.
4247 * package_db.h (packagedb::setExistence): Declare.
4248 * package_db.cc (packagedb::setExistence): Copy from choose.cc
4249
4250 2003-07-27 Robert Collins <rbtcollins@hotmail.com>
4251
4252 * localdir.h (LocalDirPage::OnInit): Remove.
4253 * localdir.cc (LocalDirPage::OnInit): Move to LocalDirSetting
4254 ::load().
4255 (LocalDirSetting::load): Copied from LocalDirPage::OnInit.
4256 * site.h (SitePage::OnInit): Remove.
4257 (SitePage::getSavedSites): New member, replaces get_saved_sites.
4258 (SitePage::registerSavedSite): New member, replaces
4259 register_saved_site.
4260 * site.cc (SitePage::OnInit): Move to SiteSetting::load().
4261 (SiteSetting::load): Copied from SitePage::OnInit.
4262 (SitePage::getSavedSites): Renamed from get_saved_sites.
4263 (SitePage::registerSavedSite): Renamed from register_saved_site.
4264 (do_download_site_info_thread): Don't look at the list size for
4265 determining if the download was successful.
4266
4267 2003-07-27 Robert Collins <rbtcollins@hotmail.com>
4268
4269 * choose.h (ChooserPage::setViewMode): Remove HWND from
4270 signature.
4271 (ChooserPage::defaultTrust): Ditto.
4272 Move to PickView.
4273 (ChooserPage::ifChecked): Use Window helper function
4274 IsButtonChecked.
4275 * choose.cc (ChooserPage::setViewMode): Use chooser->GetHWND()
4276 throughout.
4277 Update all callers with new signature.
4278 (ChooserPage::defaultTrust): Ditto.
4279 Move to PickView.
4280 * PickView.h (PickView::defaultTrust): Declare.
4281 * PickView.cc (PickView::defaultTrust): Copy from chooser.cc.
4282
4283 2003-07-27 Robert Collins <rbtcollins@hotmail.com>
4284
4285 * PickView.h (PickView::lv): Eliminate.
4286 * PickView.cc (PickView::init): Replace use of lv with
4287 GetHWND().
4288 (PickView::list_click): Ditto.
4289 * choose.h (ChooserPage::lv): Eliminate.
4290 * choose.cc: Replace lv with chooser->GetHWND()
4291 throughout.
4292
4293 2003-07-27 Robert Collins <rbtcollins@hotmail.com>
4294
4295 * PickView.h (PickView::chooser): Eliminate.
4296 (PickView::list_vscroll): Make non-static.
4297 (PickView::list_hscroll): Ditto.
4298 (PickView::list_click): Ditto.
4299 (PickView::paint): Ditto.
4300 * PickView.cc (PickView::list_vscroll): Eliminate use
4301 of PickView::chooser.
4302 (PickView::list_hscroll): Ditto.
4303 (PickView::list_click): Ditto.
4304 (PickView::paint): Ditto.
4305 * choose.cc (Chooser::createListView): Eliminate use
4306 of PickView::chooser.
4307
4308 2003-07-27 Robert Collins <rbtcollins@hotmail.com>
4309
4310 * PickView.h (PickView): Inherit from Window.
4311 (PickView::RegisterWindows): Move from ChooserPage.
4312 (PickView::listview_proc): Likewise.
4313 (PickView::paint): Ditto.
4314 (PickView::list_click): Ditto.
4315 (PickView::list_hscroll): Ditto.
4316 (PickView::list_vscroll): Ditto.
4317 (PickView::lv): Ditto.
4318 (PickView::chooser): Ditto.
4319 (PickView::Create): Override Windows::Create as we migrate.
4320 (PickView::registerWindowClass): Renamed RegisterWindows.
4321 (PickView::WindowClassAtom): Prevent double registration.
4322 (PickView::init): Declare.
4323 * PickView.cc: Adjust for new inheritance.
4324 (PickView::RegisterWindows): Move from ChooserPage.
4325 (PickView::listview_proc): Likewise.
4326 (PickView::paint): Ditto.
4327 (PickView::list_click): Ditto.
4328 (PickView::list_hscroll): Ditto.
4329 (PickView::list_vscroll): Ditto.
4330 (PickView::lv): Ditto.
4331 (PickView::chooser): Ditto.
4332 (PickView::Create): Introduce stub.
4333 (PickView::RegisterWindows): Rename
4334 (PickView::init): Extracted from constructor to allow
4335 reordering.
4336 * chooser.h (ChooserPage::registerWindows): Rename to
4337 PickView::RegisterWindows.
4338 (ChooserPage::listview_proc): Likewise.
4339 (ChooserPage::paint): Ditto.
4340 (ChooserPage::list_click): Ditto.
4341 (ChooserPage::list_hscroll): Ditto.
4342 (ChooserPage::list_vscroll): Ditto.
4343 (ChooserPage::lv): Duplicate into PickView, observe
4344 as non-static.
4345 (ChooserPage::chooser): Ditto.
4346 * chooser.cc (ChooserPage::registerWindows): Delete.
4347 (ChooserPage::listview_proc): Ditto.
4348 (ChooserPage::paint): Ditto.
4349 (ChooserPage::list_click): Ditto.
4350 (ChooserPage::list_hscroll): Ditto.
4351 (ChooserPage::list_vscroll): Ditto.
4352 (ChooserPage::createListView): Create() on PickView.
4353 * window.h (Window::RegisterWindowClass): Make virtual
4354 to allow Create to become a Template Method, and rename
4355 to registerWindowClass as it's not static.
4356 * window.cc (Window::registerWindowClass): Ditto.
4357 (Window::FirstWindowProcReflector): BUGFIX: Set window
4358 handle to prevent races with the window procedure.
4359
4360 2003-07-27 Robert Collins <rbtcollins@hotmail.com>
4361
4362 * choose.cc (set_view_mode): Rename to ChooserPage::setViewMode.
4363 (default_trust): Rename to ChooserPage::defaultTrust.
4364 (fill_missing_category): Rename to ChooserPage::fillMissingCategory.
4365 (set_existence): Rename to ChooserPage::setExistence.
4366 (register_windows): Rename to ChooserPage::registerWindows.
4367 (listview_proc): Rename to ChooserPage::listview_proc.
4368 (paint): Rename to ChooserPage::paint.
4369 (list_click): Rename to ChooserPage::list_click.
4370 (list_hscroll): Rename to ChooserPage::list_hscroll.
4371 (list_vscroll): Rename to ChooserPage::list_vscroll.
4372 (lv): Rename to ChooserPage::lv.
4373 (chooser): Rename to ChooserPage::chooser.
4374 * choose.h (ChooserPage::setViewMode): Declare.
4375 (ChooserPage::defaultTrust): Declare.
4376 (ChooserPage::fillMissingCategory): Declare.
4377 (ChooserPage::setExistence): Declare.
4378 (ChooserPage::registerWindows): Declare.
4379 (ChooserPage::listview_proc): Declare.
4380 (ChooserPage::paint): Declare.
4381 (ChooserPage::list_click): Declare.
4382 (ChooserPage::list_hscroll): Declare.
4383 (ChooserPage::list_vscroll): Declare.
4384 (ChooserPage::lv): Declare.
4385 (ChooserPage::chooser): Declare.
4386
4387 2003-07-27 Robert Collins <rbtcollins@hotmail.com>
4388
4389 * choose.cc (create_listview): Use for_each instead of explicit
4390 iteration.
4391 (create_listview): Rename to ChooserPage::createListview.
4392 * package_meta.h (packagemeta::set_requirements): Explicitly separate
4393 the 1 and 2 parameter versions.
4394
4395 2003-07-27 Robert Collins <rbtcollins@hotmail.com>
4396
4397 * String++.h (String::operator !=): Declare for char * and String.
4398 * String++.cc (String::operator !=): Implement.
4399 * package_meta.cc(StringConcatenator): Move above all users.
4400 (_visit_if): Predicate support for visitors.
4401 (packagemeta::getReadableCategoryList): Refactor to use
4402 StringConcatenator with a predicate.
4403 * choose.h: Remove unneeded c++ guards.
4404
4405 2003-07-26 Robert Collins <rbtcollins@hotmail.com>
4406
4407 * choose.cc (scan_downloaded_files): Rename to
4408 packagemeta::ScanDownloadedFiles.
4409 (scanAVersion): Rename to packageversion::scan.
4410 (GetParentRect): Rename to ChooserPage::getParentRect.
4411 * choose.h (ChooserPage::getParentRect): Declare.
4412 * package_meta.h (packagemeta::ScanDownloadedFiles): Declare.
4413 * package_version.h (packageversion::scan): Declare.
4414 * package_version.cc (packageversion::scan): Move from choose.cc
4415 * package_meta.cc (packagemeta::ScanDownloadedFiles): Move from
4416 choose.cc
4417
4418 2003-07-26 Robert Collins <rbtcollins@hotmail.com>
4419
4420 * choose.cc (ChooserPage::OnNext): log before starting activity threads.
4421 (ChooserPage::OnInit): Remove temporary variable frame.
4422 (ChooserPage::setPrompt): Extract method from OnInit.
4423 (choose_inst_text): Remove unused variable.
4424 * choose.h(ChooserPage::setPrompt): Declare
4425 * res.rc (IDD_CHOOSE): Bugfix: the chooser was setting a non-present
4426 caption.
4427
4428 2003-07-26 Robert Collins <rbtcollins@hotmail.com>
4429
4430 Remove package specific code from choose.cc.
4431 Update copyrights where appropriate.
4432 * choose.cc(ChooserPage::OnNext): Extract logging to
4433 packagemeta::logSelectionStatus.
4434 * package_meta.cc(packagemeta::logSelectionStatus): Extract from
4435 ChooserPage::OnNext.
4436 (StringConcatenator): helper for logSelectionStatus.
4437 (action_caption): Make const.
4438 * package_meta.h(packagemeta): Declare logSelectionStatus.
4439 (packagemeta::action_caption): Make const.
4440 * package_version.cc(packageversion::sourcePackage): Make const.
4441 * package_version.h(packageversion::sourcePackage): Make const.
4442
4443 2003-07-26 Robert Collins <rbtcollins@hotmail.com>
4444
4445 * choose.cc: Update copyright.
4446 (ChooserPage::keepClicked): Extracted from OnMessageCmd.
4447 (ChooserPage::changeTrust): Ditto.
4448 * choose.h (ChooserPage): Declare keepClicked and changeTrust.
4449 (ChooserPage::ifChecked): Extracted from OnMessageCmd.
4450 * package_meta.h (SetRequirement): Adapter for visiting package
4451 collections.
4452
4453 2003-07-26 Max Bowsher <maxb@ukf.net>
4454
4455 * tests/.cvsignore: New file, listing Makefile.in.
4456
4457 2003-07-26 Robert Collins <rbtcollins@hotmail.com>
4458
4459 Save used local cache dir from initial run of setup, so the user doesn't
4460 need to retype it.
4461 * localdir.h (LocalDirSetting): UserSetting class for the local cache
4462 dir.
4463 * localdir.cc (LocalDirSetting::save): Replace save_local_dir, and
4464 update callers.
4465
4466 2003-07-26 Robert Collins <rbtcollins@hotmail.com>
4467
4468 Save used site from initial run of setup, so the user doesn't need to
4469 retype it.
4470 * main.cc (main): Load and save all user settings.
4471 * site.cc (SiteSetting::save): Migrate logic from save_site_url.
4472 (SitePage::OnNext): Use ChosenSites.save() to remove uneeded
4473 save_site_url call.
4474 (save_site_url): Delete.
4475 * site.h (save_site_url): Remove declaration.
4476 * .cvsignore: Update autoconf generated files.
4477
4478 2003-07-26 Robert Collins <rbtcollins@hotmail.com>
4479
4480 * tests/Makefile.am: Driver for test suite.
4481 * tests/UserSettingTest.cc: Test UserSetting interface.
4482 * tests/UserSettingsTest.cc: Test UserSettings interface.
4483 * Makefile.am: Add the tests dir to recurse into.
4484 * configure.in: Ditto.
4485 * UserSetting.h: Add load and save methods to allow global
4486 serialisation.
4487 Add explicit copy and assignment operators to prevent synthetics.
4488 Make the constructor protected to prevent direct instantiation.
4489 * UserSettings.h (UserSettings::loadAllSettings): New method.
4490 (UserSettings::savedAllSettings): New method.
4491 * UserSettings.cc: Implement new methods.
4492 * site.cc: Implement stubs for new required UserSetting methods.
4493 * site.h (ChosenSite): Ditto.
4494 * bz2lib/: Ran automake.
4495 * zlib/: Ran automake.
4496
4497 2003-07-23 Max Bowsher <maxb@ukf.net>
4498
4499 * desktop.cc (DesktopSetupPage::OnBack): Remove obsolete use of NEXT().
4500 * root.cc (RootPage::OnNext): Ditto.
4501 (RootPage::OnBack): Ditto.
4502 * install.cc (do_install_thread): Remove obsolete use of next_dialog.
4503 * main.cc (main): Ditto.
4504 * postinstall.cc (do_postinstall_thread): Ditto.
4505
4506 2003-07-23 Max Bowsher <maxb@ukf.net>
4507
4508 * dialog.h (do_choose, do_desktop, do_local_dir, do_net, do_other)
4509 (do_root, do_site, do_source, do_splash): Remove declarations, since
4510 these functions no longer exist.
4511
4512 2003-07-23 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
4513
4514 * choose.cc (initialized): Remove obsolete file scope variable.
4515
4516 2003-07-18 Max Bowsher <maxb@ukf.net>
4517
4518 * res.rc: Make caption of every dialog page begin with "Cygwin Setup".
4519 This aids recognition when minimized.
4520 Prompted by Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>.
4521
4522 2003-07-10 Jeremy White <jwhite@codeweavers.com>
4523
4524 * mount.cc, root.cc, site.cc: Make StringOptions required,
4525 thereby making --longopt <parm> behave as a newbie would expect.
4526
4527 2003-07-08 Max Bowsher <maxb@ukf.net>
4528
4529 * LogFile.h, cistring.h, dialog.h, diskfull.h, filemanip.h, geturl.h,
4530 hash.h, log.h, mkdir.h, mklink2.h, mount.h, msg.h, netio.h, nio-file.h,
4531 nio-ftp.h, nio-http.h, nio-ie5.h, port.h, simpsock.h, state.h,
4532 version.h: Add inclusion guard.
4533 * root.h: Standardize naming of inclusion guard.
4534
4535 2003-06-23 Max Bowsher <maxb@ukf.net>
4536
4537 * AntiVirus.h, Exception.h, FilterVisitor.h, FindVisitor.h,
4538 IOStreamProvider.h, IniDBBuilder.h, IniDBBuilderPackage.h,
4539 IniParseFeedback.h, IniParseFindVisitor.h, LogSingleton.h, MD5++.h,
4540 PackageSpecification.h, PackageTrust.h, PickCategoryLine.h, PickLine.h,
4541 PickPackageLine.h, PickView.h, RECTWrapper.h, ScanFindVisitor.h,
4542 String++.h, UserSetting.h, UserSettings.h, archive.h, archive_tar.h,
4543 category.h, choose.h, compress.h, compress_bz.h, compress_gz.h,
4544 cygpackage.h, desktop.h, download.h, find.h, ini.h, io_stream.h,
4545 io_stream_cygfile.h, io_stream_file.h, io_stream_memory.h,
4546 io_stream_rsync.h, localdir.h, net.h, package_db.h, package_meta.h,
4547 package_source.h, package_version.h, proppage.h, propsheet.h, script.h,
4548 site.h, source.h, splash.h, threebar.h, win32.h, window.h:
4549 Standardize naming and placement of inclusion guards.
4550
4551 2003-06-22 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
4552
4553 * res.rc (all dialogs): Change font from "MS Sans Serif" to
4554 "MS Shell Dlg".
4555
4556 2003-06-22 Max Bowsher <maxb@ukf.net>
4557
4558 * Makefile.am: Clarify comment.
4559 Derive AM_CFLAGS from AM_CXXFLAGS, rather than the other way around.
4560 (AM_CXXFLAGS): Remove -Wmissing-declarations - it is a C-only warning.
4561 (AM_CFLAGS): Add -Winline, and -Wmissing-declarations.
4562
4563 2003-06-22 Max Bowsher <maxb@ukf.net>
4564
4565 * rfc1738.cc (rfc1738_do_escape): Eliminate redundant conditional.
4566
4567 2003-06-05 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
4568
4569 * window.h (SETUP_WINDOW_H): Rename multi-include guard.
4570 (Copyright): Update.
4571 (RECTWrapper): New forward declaration.
4572 (Window::Create): Move.
4573 (Window::MoveWindow): New overload declaration.
4574 * window.cc: (RECTWrapper.h) Include.
4575 (Copyright): Update.
4576 (Window::FirstWindowProcReflector): Use reinterpret_cast<> instead
4577 of C-style casts.
4578 (Window::MoveWindow): New overload.
4579
4580 2003-05-31 Max Bowsher <maxb@ukf.net>
4581
4582 * res.rc: Resize title controls to fully fill available width.
4583
4584 2003-05-07 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
4585
4586 * RECTWrapper.h: New file.
4587
4588 2003-04-12 Robert Collins <rbtcollins@hotmail.com>
4589
4590 * script.cc (Script::extension): Extract method from Script::run.
4591 (Script::run): Extract extension generation to Script::extension.
4592 * script.h (Script::extension): Declare.
4593
4594 2003-04-12 Robert Collins <rbtcollins@hotmail.com>
4595
4596 * script.cc (run_script): Remove.
4597 (try_run_script): Inline method run_script.
4598 * script.h (run_script): Remove.
4599
4600 2003-04-12 Robert Collins <rbtcollins@hotmail.com>
4601
4602 * postinstall.cc (RunScript::operator()): Use new run syntax.
4603 * script.h (Script::run): Eliminate to_log parameter.
4604 * script.cc (Script::run): Ditto.
4605 (run_script): Use new run syntax.
4606
4607 2003-04-12 Robert Collins <rbtcollins@hotmail.com>
4608
4609 * script.cc (Script::run): Eliminate temp variable 'f2'.
4610 Rename temp variable 'f2' to 'windowsName' for increased clarity.
4611
4612 2003-04-12 Robert Collins <rbtcollins@hotmail.com>
4613
4614 * script.cc (Script::run): Eliminate temp variable 'fname'.
4615
4616 2003-04-12 Robert Collins <rbtcollins@hotmail.com>
4617
4618 * script.cc (Script::run): Eliminate temp variable 'dir'.
4619
4620 2003-04-12 Robert Collins <rbtcollins@hotmail.com>
4621
4622 * script.cc (run_script): Always pass TRUE to Script::run.
4623 * script.h (run_script): Remove optional to_log parameter.
4624
4625 2003-04-12 Robert Collins <rbtcollins@hotmail.com>
4626
4627 * script.cc (run_script): Move functionality into Script.
4628 (Script::run): Absorb run_script.
4629
4630 2003-04-12 Robert Collins <rbtcollins@hotmail.com>
4631
4632 * PickCategoryLine.cc (PickCategoryLine::click): Tell packagemeta we
4633 are about to perform a visit.
4634 * PickPackageLine.cc (PickPackageLine::click): Tell packagemeta we
4635 are about to perform a visit.
4636 * package_db.cc (packagedb::markUnVisited): Convenience wrapper -
4637 mark all packages as unvisited.
4638 * package_db.h (packagedb::markUnVisited): Declare.
4639 * package_meta.cc (packagemeta::PrepareForVisit): New static method
4640 to prepare for a loop-free visit.
4641 (packagemeta::packagemeta): Adjust for new member.
4642 (packagemeta::set_requirements): Only visit a node once.
4643 (packagemeta::visited): Get and Set methods for new member visited_.
4644 * package_meta.h (packagemeta::PrepareForVisit): Declare.
4645 (packagemeta::visited): Declare.
4646 (packagemeta::visited_): Declare.
4647
4648 2003-04-07 Max Bowsher <maxb@ukf.net>
4649
4650 * download.cc: Add command line option to suppress MD5 checks.
4651 (validateCachedPackage): Test option and possibly skip.
4652
4653 2003-04-02 Robert Collins <rbtcollins@hotmail.com>
4654
4655 Merge in setup-200303-troubleshooting fixes.
4656
4657 2003-04-02 Robert Collins <rbtcollins@hotmail.com>
4658
4659 * main.cc (NTSecurity::setDefaultDACL): Reinstate commented code.
4660 (NTSecurity::setDefaultSecurity): Ditto.
4661
4662 2003-04-02 Robert Collins <rbtcollins@hotmail.com>
4663
4664 * main.cc (NTSecurity::setDefaultDACL): Use MS calculations for ACL
4665 buffer sizing.
4666
4667 2003-04-02 Robert Collins <rbtcollins@hotmail.com>
4668
4669 * main.cc (NTSecurity::setDefaultDACL): Sanity check memory allocation.
4670
4671 2003-04-02 Robert Collins <rbtcollins@hotmail.com>
4672
4673 * main.cc (NTSecurity::setDefaultDACL): Adjust commented code for
4674 auto_ptr use.
4675
4676 2003-04-02 Robert Collins <rbtcollins@hotmail.com>
4677
4678 * main.cc (NTSecurity::NoteFailedAPI): Helper function.
4679 Use throughout NTSecurity routines.
4680 (NTSecurity::setDefaultDACL): Use dynamic memory for ACL storage.
4681
4682 2003-04-02 Robert Collins <rbtcollins@hotmail.com>
4683
4684 * main.cc (NTSecurity::setDefaultDACL): Disable ~ 50% of remaining
4685 active code.
4686
4687 2003-04-02 Robert Collins <rbtcollins@hotmail.com>
4688
4689 * main.cc (NTSecurity::GroupInfo): Extract group query code.
4690 (NTSecurity::setDefaultDACL): Disable ~ 50% of code.
4691
4692 2003-04-02 Robert Collins <rbtcollins@hotmail.com>
4693
4694 * main.cc (NTSecurity::setDefaultSecurity): Disable ~ 50% of security
4695 code.
4696
4697 2003-04-01 Robert Collins <rbtcollins@hotmail.com>
4698
4699 * main.cc (NTSecurity::setDefaultSecurity): Remove double declaration of
4700 sz. User TokenGroupCollection to abstract token searching logic,
4701 eliminate isadmin and isuser temporary variables.
4702 (TokenGroupCollection): New class for querying token group information.
4703
4704 2003-04-01 Robert Collins <rbtcollins@hotmail.com>
4705
4706 * main.cc (NTSecurity::setDefaultSecurity): Extract esid initialisation.
4707 Move local variables to just before first use.
4708 SetTokenInformationFailures where being handled inconsistently.
4709 Remove assignments from if statements.
4710 (NTSecurity::esid): Rename to everyOneSID.
4711 (NTSecurity::initialiseEveryOneSID): new method.
4712 (NTSecurity::setDefaultDACL): Extract method for default DACL logic.
4713
4714 2003-04-01 Robert Collins <rbtcollins@hotmail.com>
4715
4716 * main.cc (SIDWrapper): Manage SID memory.
4717 (HANDLEWrapper): Likewise for HANDLES.
4718 (NTSecurity): Worker class for set_default_sec().
4719 (set_default_sec): Move body into NTSecurity::setDefaultSecurity().
4720 (NTSecurity::setDefaultSecurity): Eliminate goto out: via memory
4721 managing objects.
4722
4723 2003-04-01 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
4724
4725 * cygwin.ico: Added two new resolutions, 64x64 and 72x72.
4726
4727 2003-03-29 Robert Collins <rbtcollins@hotmail.com>
4728
4729 * GUIDELINES: New file documenting code guidelines.
4730
4731 2003-03-26 Max Bowsher <maxb@ukf.net>
4732
4733 * .cvsignore: Add cfgaux.
4734
4735 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
4736
4737 * package_version.cc (_defaultversion::accessible): Override and make
4738 always false.
4739 (_packageversion::accessible): Fix a couple of logic bugs resulting in
4740 incorrect trues.
4741 * package_version.h (_packageversion::accessible): Make virtual.
4742
4743 2003-03-25 Igor Pechtchanski <pechtcha@cs.nyu.edu>
4744
4745 * threebar.h (WM_APP_START_POSTINSTALL): New message.
4746 (WM_APP_POSTINSTALL_THREAD_COMPLETE): New message.
4747 * threebar.cc (ThreeBarProgressPage::OnMessageApp):
4748 Add handling for WM_APP_START_POSTINSTALL and
4749 WM_APP_POSTINSTALL_THREAD_COMPLETE.
4750 * install.cc (do_install_thread): Set next_dialog to
4751 IDD_S_POSTINSTALL.
4752 * desktop.cc (DesktopSetupPage::OnFinish): Move the
4753 do_postinstall call to ThreeBarProgressPage::OnMessageApp.
4754 * script.h (Script::fullName): New member function.
4755 (Script::run): New member function.
4756 (Script::ETCPostinstall): New static member constant.
4757 * script.cc (Script::fullName): Implement.
4758 (Script::run): Implement.
4759 (Script::ETCPostinstall): Define.
4760 (Script::isAScript): Use ETCPostinstall instead of a
4761 hardcoded string constant.
4762 (run): Enable "#if 0"'d code.
4763 * postinstall.cc (Progress): New extern variable.
4764 (RunFindVisitor::visitFile): Add script to vector
4765 instead of running.
4766 (RunFindVisitor::_scripts): New member variable.
4767 (RunScript): New helper class for use in for_each.
4768 (do_postinstall_thread): Rename do_postinstall to. Add
4769 Progress bar and text setting. Add package count.
4770 (do_postinstall_reflector): New static function.
4771 (do_postinstall): Rename to do_postinstall_thread.
4772 Create a thread instead.
4773
4774 2003-03-18 Igor Pechtchanski <pechtcha@cs.nyu.edu>
4775
4776 * script.cc (run): Add file_out parameter.
4777 Redirect output of subprocess to file, creating the
4778 path if necessary. Minimize the script window.
4779 (run_script): Add optional to_log boolean parameter.
4780 If to_log, redirect output to temporary file and then
4781 import it into LOG_BABBLE.
4782 (OutputLog): New helper class.
4783 (operator<<): New operation on OutputLog.
4784 * script.h (run_script): Add optional to_log parameter.
4785 * postinstall.cc (RunFindVisitor::visitFile): Instruct
4786 run_script() to log script output.
4787 (do_postinstall): Ditto.
4788
4789 2003-03-20 Robert Collins <rbtcollins@hotmail.com>
4790
4791 * package_meta.cc (packagemeta::set_action): The logic
4792 test for the default action was reversed.
4793
4794 2003-03-18 Igor Pechtchanski <pechtcha@cs.nyu.edu>
4795
4796 * postinstall.cc (do_postinstall): Filter out '*.done'.
4797 * FilterVisitor.h: New header file. Declare the
4798 FilterVisitor, Filter, and ExcludeNameFilter classes.
4799 * FilterVisitor.cc: New file. Implement FilterVisitor,
4800 Filter, and ExcludeNameFilter.
4801 * String++.h (String::matches): New instance function.
4802 * String++.cc (String::matches): Implement.
4803 (strmatch) Import and adapt for <buf,len> strings.
4804 * Makefile.am (setup_SOURCES): Add FilterVisitor.cc and
4805 FilterVisitor.h to value.
4806
4807 2002-03-18 Max Bowsher <maxb@ukf.net>
4808
4809 * LogFile.cc (LogFile::exit): Use CRT exit() instead of ExitProcess().
4810 Use passed exit_code even if been_here.
4811 Remove incorrect _CYGWIN_ preprocessor conditional.
4812
4813 2003-03-16 Robert Collins <rbtcollins@hotmail.com>
4814
4815 * package_db.h (PackageDBConnectedIterator): Typedef
4816 for connected loop detection collection iterator.
4817 * package_db.cc (ConnectedLoopDetector): An
4818 implementation of R.E. Tarjans strongly connected
4819 set visitor algorithm.
4820 * postinstall.cc (do_postinstall): Use the new iterator
4821 for visiting postinstall scripts.
4822
4823 2003-03-16 Robert Collins <rbtcollins@hotmail.com>
4824
4825 * install.cc: Introduce Installer class.
4826 (init_dialog): Rename to Installer::initDialog.
4827 (progress): Rename to Installer::progress.
4828 (standard_dirs): Rename to Installer::StandardDirs.
4829 (uninstall_one): Rename to Installer::uninstallOne.
4830 (replace_one): Rename to Installer::replaceOne.
4831 (log_ror_failure): Rename to
4832 Installer::replaceOnRebootFailed.
4833 (log_ror_success): Rename to
4834 Installer::replaceOnRebootSucceeded.
4835 (install_one_source): Rename to Installer::installOneSource.
4836 Note script files as they are installed.
4837 * package_version.cc (packageversion::addScript): Implement.
4838 (packageversion::scripts): Implement.
4839 * package_version.h (packageversion::addScript): Record the
4840 presence of a script.
4841 * script.h (Script): New class to track scripts.
4842 * postinstall.cc (do_postinstall): Iterate through the
4843 package listed scripts before searching for scripts.
4844 * String++.cc (String::substr): Second argument needed to
4845 be signed.
4846 * String++.h (String::substr): Second argument needed to
4847 be signed.
4848
4849 2003-03-16 Max Bowsher <maxb@ukf.net>
4850
4851 * .cvsignore: Create, to ignore configure, aclocal.m4, Makefile.in and
4852 autom4te.cache.
4853
4854 2003-03-16 Max Bowsher <maxb@ukf.net>
4855
4856 * UserSettings.cc (UserSettings::Instance): Remove premature return.
4857
4858 2003-03-15 Robert Collins <rbtcollins@hotmail.com>
4859
4860 * script.cc (run): Rename variable b to createSucceeded.
4861
4862 2003-03-15 Igor Pechtchanski <pechtcha@cs.nyu.edu>
4863
4864 * script.cc (run): Close unneeded handles.
4865
4866 2003-03-15 Robert Collins <rbtcollins@hotmail.com>
4867
4868 * configure: Remove.
4869 * aclocal.m4: Remove.
4870 * Makefile.in: Remove.
4871 * cfgaux: Remove.
4872 * cfgaux/compile: Remove.
4873 * cfgaux/config.guess: Remove.
4874 * cfgaux/config.sub: Remove.
4875 * cfgaux/depcomp: Remove.
4876 * cfgaux/install-sh: Remove.
4877 * cfgaux/ltmain.sh: Remove.
4878 * cfgaux/missing: Remove.
4879 * cfgaux/mkinstalldirs: Remove.
4880
4881 2003-03-14 Igor Pechtchanski <pechtcha@cs.nyu.edu>
4882
4883 * install.cc (replace_one): Clear Text3.
4884
4885 2003-03-14 Igor Pechtchanski <pechtcha@cs.nyu.edu>
4886
4887 * install.cc (install_one_source): Add logging for successful
4888 replace-on-reboot scheduling. Factor out duplicate code.
4889 Set rebootneeded on Win9x.
4890 (log_ror_failure): New static function.
4891 (log_ror_success): New static function.
4892
4893 2003-03-14 Robert Collins <rbtcollins@hotmail.com>
4894
4895 * choose.cc (ChooserPage::OnNext): Fix iterator bug. Reported by
4896 Igor Pechtchanski <pechtcha@cs.nyu.edu>.
4897
4898 2003-03-13 Max Bowsher <maxb@ukf.net>
4899
4900 * Update included zlib to 1.1.4.
4901
4902 2003-03-13 Robert Collins <rbtcollins@hotmail.com>
4903
4904 * install.cc (do_install_thread): Use a query method rather than temp
4905 variable do_skip.
4906
4907 2003-03-09 Pavel Tsekov <ptsekov@gmx.net>
4908
4909 * install.cc (do_install_thread): Use IDS_SKIP_PACKAGE
4910 instead of IDS_CORRUPT_PACKAGE when asking the user to take
4911 action if the hash verification check fails for a source package.
4912 Do not increase the value of 'total_bytes' variable if the
4913 user chooses to skip over a package, which failed the hash
4914 verification.
4915
4916 2003-03-10 Max Bowsher <maxb@ukf.net>
4917
4918 * Makefile.am: Add foreign to AUTOMAKE_OPTIONS.
4919
4920 2003-03-10 Robert Collins <rbtcollins@hotmail.com>
4921
4922 * UserSettings.cc (UserSettings::init): Really initialize all members.
4923
4924 2003-03-10 Robert Collins <rbtcollins@hotmail.com>
4925
4926 * Exception.h: Add a logic error exception id.
4927 * Makefile.am: Add new sources.
4928 * UserSettings.cc: New file.
4929 * UserSettings.h: New file.
4930 * UserSetting.cc: New file.
4931 * UserSetting.h: New file.
4932 * site.h: Add a SiteSetting as example of a UserSetting.
4933 * site.cc (ChosenSites): Add a instance of SiteSetting to trigger
4934 registration.
4935
4936 2003-03-10 Robert Collins <rbtcollins@hotmail.com>
4937
4938 * compress_bz.cc (compress_bz::read): Adjust incorrect assignment of
4939 lasterr.
4940 (compress_bz::error): Return lasterr which will indicate any error.
4941
4942 2003-03-10 Robert Collins <rbtcollins@hotmail.com>
4943
4944 * choose.h (ChooserPage): Override OnActivate.
4945 * choose.cc (ChooserPage::OnActivate): Refresh the current view when
4946 activating the dialog.
4947
4948 2003-03-09 Robert Collins <rbtcollins@hotmail.com>
4949
4950 * package_version.cc (_defaultversion::pick(bool)): Override this and
4951 do nothing.
4952 (packageversion::pick(bool): Use a mutator function rather than direct
4953 member access.
4954 * package_version.h (_packageversion::pick(bool)): Move method from
4955 _packageversion.
4956
4957 2003-02-16 Pavel Tsekov <ptsekov@gmx.net>
4958
4959 * install.cc (install_one_source): Remove the MD5 verification
4960 code.
4961 Delay the creation of the package listing file.
4962 (do_install_thread): Check the hashes for packages which need
4963 to be installed before the uninstall step. Allow the user to
4964 skip over packages, which fail the hash verification.
4965 (md5_one): Define new function.
4966 * res.rc (IDS_SKIP_PACKAGE): New string resource.
4967 * resource.h (IDS_SKIP_PACKAGE): New macro definition.
4968
4969 2003-02-16 Pavel Tsekov <ptsekov@gmx.net>
4970
4971 * Exception.h: Declare new constructor.
4972 (Exception::_message): Change the type from 'const char *' to
4973 'class String'.
4974 (Exception::~Exception): Implement destructor (make gcc shut up).
4975 * Exception.cc: Implement new constructor.
4976 (Exception::what): Use String::cstr_oneuse ().
4977 * download.cc (validateCachedPackage): Use the constructor, which
4978 takes String& as its second argument, when throwing objects
4979 of type Exception.
4980 (check_for_cached): Ditto.
4981 * install.cc (install_one_source): Ditto.
4982
4983 2003-02-01 Igor Pechtchanski <pechtcha@cs.nyu.edu>
4984
4985 * res.rc (IDS_INSTALL_INCOMPLETE): Change hard-coded
4986 log filename to %s.
4987 (IDS_MISSING_LOG): New string resource.
4988 * resource.h (IDS_MISSING_LOG): New resource.
4989 * LogFile.cc (LogFile::exit): Pass log filename for
4990 LOG_BABBLE to note().
4991 (LogFile::getFileName): New function.
4992 * LogFile.h (LogFile::getFileName): New function.
4993
4994 2003-02-01 Igor Pechtchanski <pechtcha@cs.nyu.edu>
4995
4996 * String++.cc: Don't include concat.h.
4997 * Makefile.am: Remove concat.cc and concat.h references.
4998 * concat.h: Remove.
4999 * concat.cc: Remove.
5000
5001 2003-03-09 Max Bowsher <maxb@ukf.net>
5002
5003 * bootstrap.sh: Add sanity check of current directory.
5004 Recurse into libgetopt++ if needed.
5005
5006 2003-03-09 Robert Collins <rbtcollins@hotmail.com>
5007
5008 * Update readme of bugs and wishes.
5009
5010 2003-03-05 Max Bowsher <maxb@ukf.net>
5011
5012 * netio.cc (save_dialog): Allocate an empty string if the password is
5013 null, so that an empty password is accepted elsewhere in setup.
5014 (check_if_enable_ok): An empty password is OK.
5015
5016 2003-03-05 Brian Keener <bkeener@thesoftwaresource.com>
5017
5018 * PickView.cc (PickView::views): Add two new views for Skipped
5019 packages and Installed Packages not requiring update.
5020 (PickView::set_headers () ): Ditto.
5021 (PickView::clear_view (void) ): Ditto.
5022 (PickView::views::caption () ): Add two new captions for the new
5023 views added for Skipped and Installed Packages.
5024 (PickView::scroll () ): Modify Scroll Bar property to Disable
5025 instead of disappearing when there is nothing to Scroll.
5026 * PickView.h: Add two new views for Skipped packages and Installed
5027 packages to public class view.
5028 * choose.cc (list_click () ): Modify Scroll Bar property to Disable
5029 instead of disappearing when there is nothing to Scroll.
5030 (listview_proc () ): Ditto.
5031 (set_view_mode): Add two new views for Skipped Packages and Installed
5032 Packages not requiring update. Modify Scroll Bar property to Disable
5033 instead of disappearing when there is nothing to scroll.
5034 * res.rc (IDD_CHOOSE): Reposition Radio Buttons, View Selection
5035 Button and View Button Caption to make room for longer captions.
5036
5037 2003-03-04 Max Bowsher <maxb@ukf.net>
5038
5039 * compress_gz.cc (compress_gz::construct):
5040 Fix broken checkin dated 2002-07-03.
5041
5042 2003-02-28 Max Bowsher <maxb@ukf.net>
5043
5044 * main.cc (set_default_sec): Add logging.
5045
5046 2003-02-28 Pierre Humblet <pierre.humblet@ieee.org>
5047
5048 * main.cc (set_default_dacl): Replace with set_default_sec.
5049 (set_default_sec): Attempt to change the default group to
5050 Users or Administrators if it is None, in addition to setting
5051 Everyone in the default DACL.
5052 (main): Call set_default_sec instead of set_default_dacl.
5053
5054 2003-01-31 Max Bowsher <maxb@ukf.net>
5055
5056 * install.cc (install_one_source): Fix spacing in log message.
5057
5058 2003-01-19 Max Bowsher <maxb@ukf.net>
5059
5060 * resource.h (IDC_CHOOSE_KEEP): Define.
5061 * res.rc (IDD_CHOOSE): Add radio button IDC_CHOOSE_KEEP.
5062 * choose.cc (create_listview): Add IDC_CHOOSE_KEEP to ta[].
5063 (ChooserPage::OnMessageCmd): Handle new IDC_CHOOSE_KEEP button.
5064
5065 2003-01-15 Max Bowsher <maxb@ukf.net>
5066
5067 * mkdir.cc [_CYGWIN_]: Implement what was pseudocode.
5068 * io_stream.h [__CYGWIN__]: Don't typedef ssize_t.
5069 * proppage.h: Include "win32.h" instead of <windows.h>.
5070
5071 2003-01-15 Max Bowsher <maxb@ukf.net>
5072
5073 * mount.cc [MAINTAINER_FEATURES]: Add --override-registry-name option.
5074
5075 2002-12-11 Abraham Backus <abraham@backus.com>
5076
5077 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Leave port out of Host header,
5078 unless non-default.
5079
5080 2002-12-11 Max Bowsher <maxb@ukf.net>
5081
5082 * package_meta.cc: Change 'endl' to 'endLog' as appropriate.
5083 * package_version.cc: Ditto.
5084
5085 2002-09-22 Max Bowsher <maxb@ukf.net>
5086
5087 * PickView.cc (pkg_headers): Rename column 'Category' to 'Categories'.
5088 * package_meta.h (packagemeta::getReadableCategoryList): Declare.
5089 * package_meta.cc (packagemeta::getReadableCategoryList): Implement.
5090 * PickPackageLine.cc (PickPackageLine::paint): Change to use
5091 getReadableCategoryList.
5092 Fix x2 argument to IntersectClipRect.
5093
5094 2002-11-25 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
5095
5096 * window.h (Window::GetWindowRect): New method declaration.
5097 (Window::GetClientRect): Ditto.
5098 (Window::MoveWindow): Ditto.
5099 (Window::ScreenToClient): Ditto.
5100 * window.cc (REFLECTION_INFO): Remove.
5101 (ReflectionInfo): Remove.
5102 (Window::FirstWindowProcReflector): Use the WM_NCCREATE message instead
5103 of the horrid REFLECTION_INFO hack to hook the Window instance to the
5104 HWND instance.
5105 (Window::WindowProcReflector): Use GetWindowLongPtr() now that it's
5106 available.
5107 (Window::Create): Change to use new WM_NCCREATE reflection procedure
5108 above.
5109 (Window::GetWindowRect): New method.
5110 (Window::GetClientRect): New method.
5111 (Window::MoveWindow): New method.
5112 (Window::CenterWindow): Use new methods, also specify "::" for some non-
5113 member functions with the same names.
5114 (Window::ScreenToClient): New method.
5115
5116 2002-11-26 Robert Collins <rbtcollins@hotmail.com>
5117
5118 * AntiVirus.cc: Change the short option again! It's now 'A'.
5119 * desktop.cc (etc_profile): Remove.
5120 (make_etc_profile): Remove.
5121 (uexists): Remove.
5122 (make_passwd_group): Remove.
5123 (do_desktop_setup): Don't call removed functions.
5124
5125 2002-11-26 Robert Collins <rbtcollins@hotmail.com>
5126
5127 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Fix my botched application of
5128 Marcel's patch.
5129
5130 2002-07-08 Marcel Telka <marcel@telka.sk>
5131
5132 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Fixed decoding of the FTP
5133 reply (code 227) to the PASV command.
5134
5135 2002-11-26 Robert Collins <rbtcollins@hotmail.com>
5136
5137 * IniDBBuilderPackage.cc (IniDBBuilderPackage::~IniDBBuilderPackage):
5138 Sort the packages db once all the new packages have been added.
5139 * IniDBBuilderPackage.h (IniDBBuilderPackage::~IniDBBuilderPackage):
5140 Declare this.
5141
5142 2002-11-26 Robert Collins <rbtcollins@hotmail.com>
5143
5144 * choose.cc (ChooserPage::OnNext): Remove extracted comment.
5145 * package_version.cc (processOneDependency): Return once selecting
5146 a package (bugfix to prevous rework).
5147 Log if the default trust fails the package specification.
5148
5149 2002-11-26 Robert Collins <rbtcollins@hotmail.com>
5150
5151 * package_meta.h (packagemeta::logAllVersions): Declare.
5152 (packagemeta::trustLabel): Ditto.
5153 * choose.cc (ChooserPage::OnNext): Get each package to log all it's
5154 versions.
5155 * package_meta.cc (packagemeta::logAllVersions): Implement.
5156 (packagemeta::trustLabel): Ditto.
5157
5158 2002-11-25 Robert Collins <rbtcollins@hotmail.com>
5159
5160 * AntiVirus.cc: Change 'd' to 'D' to fix command line conflict.
5161
5162 2002-11-25 Robert Collins <rbtcollins@hotmail.com>
5163
5164 * AntiVirus.cc: New file.
5165 * AntiVirus.h: Ditto.
5166 * LogFile.cc: Include AntiVirus.h for class definition.
5167 (LogFile::exit): Trigger AntiVirus::AtExit().
5168 * MakeFile.am(setup_SOURCES): Add AntiVirus files.
5169 * autoload.c: Declare Service Control Manager related API's.
5170 * main.cc: Include AntiVirus.h for class definition.
5171 (main): Add the AntiVirus page in.
5172 * res.rc: Define IDD_VIRUS.
5173 * resource.h: Define IDD_VIRUS related control ID's.
5174 * splash.h: Override OnNext.
5175 * splash.cc: Only show AntiVirus page when one has been detected.
5176 * source.cc: Ditto.
5177
5178 2002-11-25 Robert Collins <rbtcollins@hotmail.com>
5179
5180 * package_version.cc (DependencyProcessor): Create convenience class.
5181 (select): Extract version selection method.
5182 (processOneDependency): Check for a satisfactory trusted version
5183 first.
5184
5185 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
5186
5187 * main.cc (main): Use the factory for LogFile.
5188 * String++.cc: Update to use sstream.
5189 (String::String): Use a ostringstream for libC++ 3.2.
5190 * LogFile.h (LogFile): Make createLogFile static.
5191
5192 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
5193
5194 * main.cc (main): Oops, pass LogSingleton a reference, not a pointer.
5195
5196 2002-11-04 Max Bowsher <maxb@ukf.net>
5197
5198 * Exception.h (Exception::what): Add throw() specification,
5199 to agree with libstdc++-v3.
5200 * Exception.cc (Exception::what): Ditto.
5201 * IniDBBuilderPackage.h: Add 'std::' where needed.
5202 * PickCategoryLine.h: Ditto.
5203 * category.h: Ditto.
5204 * package_db.h: Ditto.
5205 * package_meta.h: Ditto.
5206 * package_source.h: Ditto.
5207 * package_version.h: Ditto.
5208 * site.h: Ditto.
5209 * win32.h: Define NOMINMAX before including <windows.h>.
5210 * package_meta.cc: Add 'using namespace std;'.
5211 (packagemeta::set_requirements): Remove default parameter values
5212 from definition (gcc3 likes them only in declaration).
5213 * package_version.cc: Add 'using namespace std;'.
5214 (packageversion::set_requirements): Remove default parameter
5215 values from definition (gcc3 likes them only in declaration).
5216
5217 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
5218
5219 * compress_bz.cc: Don't include bzlib.h directly, the compress_bz.h
5220 header includes it.
5221
5222 2002-11-04 Max Bowsher <maxb@ukf.net>
5223
5224 * compress_bz.h: #undef small before including bzlib.h - if we are
5225 going to hide the fact that we are _WIN32 from bzlib, then we need
5226 to #undef small for it as well (bad windows.h clash).
5227
5228 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
5229
5230 * localdir.cc: Update the extern LogFile to be a pointer.
5231 (save_local_dir): Change . to -> for the above.
5232 * main.cc (theFile): Change from an instance to a pointer.
5233 (main): Change . to -> for the above.
5234
5235 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
5236
5237 * LogFile.cc: use 'std::' where needed throughout.
5238 (LogFile::createLogFile): Implement a factory for LogFile.
5239 (LogFile::LogFile): Update for use with the factory, and to
5240 handle the latest g++ library changes.
5241 (LogFile::operator()): Ditto.
5242 (LogFile::endEntry()): Ditto.
5243 * LogFile.h: Ditto.
5244 * LogSingleton.cc: Ditto.
5245 * LogSingleton.h: Ditto.
5246
5247 2002-11-04 Max Bowsher <maxb@ukf.net>
5248
5249 * String++.h: Add 'std::' where needed.
5250
5251 2002-11-04 Max Bowsher <maxb@ukf.net>
5252
5253 * IniDBBuilderPackage.cc: Add 'using namespace std;'.
5254 * IniParseFindVisitor.cc: Ditto.
5255 * LogFile.cc: Ditto.
5256 * LogSingleton.cc: Ditto.
5257 * PickView.cc: Ditto.
5258 * String++.cc: Ditto.
5259 * choose.cc: Ditto.
5260 * download.cc: Ditto.
5261 * find.cc: Ditto.
5262 * install.cc: Ditto.
5263 * io_stream.cc: Ditto.
5264 * io_stream_file.cc: Ditto.
5265 * package_db.cc: Ditto.
5266 * root.cc: Ditto.
5267 * site.cc: Ditto.
5268
5269 2002-11-04 Max Bowsher <maxb@ukf.net>
5270
5271 * LogSingleton.h: Add 'std::' where needed.
5272
5273 2002-11-04 Max Bowsher <maxb@ukf.net>
5274
5275 * archive_tar_file.cc: Include <algorithm>.
5276 Change min(a,b) to std::min(a,b)
5277 * compress_bz.cc: Ditto.
5278 * compress_gz.cc: Ditto.
5279
5280 2002-11-04 Max Bowsher <maxb@ukf.net>
5281
5282 * res.rc: Change a #-comment (invalid) to a //-comment.
5283
5284 2002-11-04 Max Bowsher <maxb@ukf.net>
5285
5286 * Makefile.am (%.o: %.rc): Make windres use $(CC) not hardcoded gcc.
5287 (inilint_LDADD): Remove -lstd++.
5288 (setup_LDADD): Ditto.
5289
5290 2002-09-22 Max Bowsher <maxb@ukf.net>
5291
5292 * IniDBBuilderPackage.cc: Update DEBUG code to current class
5293 layout.
5294
5295 2002-09-21 Robert Collins <rbtcollins@hotmail.com>
5296
5297 * choose.h: Add OnUnattended method.
5298 * desktop.cc (DesktopSetupPage::OnInit): Allow fine grained
5299 control via command line options.
5300 (DesktopSetupPage::OnUnattended): Implement.
5301 (DesktopSetupPage::OnMessageApp): Implement.
5302 * desktop.h (DesktopSetupPage::OnUnattended): declare.
5303 (DesktopSetupPage::OnMessageApp): Ditto.
5304 * download.cc (do_download_thread): Support unattended mode.
5305 * install.cc (do_install_thread): Ditto.
5306 * localdir.h: Ditto.
5307 * main.cc (main): Ditto.
5308 * net.cc (NetPage::OnUnattended): Ditto.
5309 * net.h (NetPage::OnUnattended): Declare.
5310 * proppage.cc (PropertyPage::DialogProc): Support unattended mode.
5311 * proppage.h (PropertyPage::OnUnattended): Declare.
5312 * root.cc (RootPage::OnInit): Support unattended mode.
5313 (RootPage::OnUnattended): Implement.
5314 * root.h (RootPage::OnUnattended): Declare.
5315 * site.cc (register_saved_site): Extract Method from get_saved_sites.
5316 (get_saved_sites): Remove common code for adding a site.
5317 (SitePage::OnInit): Support unattended mode.
5318 (SitePage::OnUnattended): Implement.
5319 * site.h (SitePage::OnUnattended): Declare.
5320 * source.cc (SourcePage::OnActivate): Support unattended mode.
5321 (SourcePage::OnUnattended): Implement.
5322 * source.h (SourcePage::OnUnattended): Declare.
5323 * splash.h (SplashPage::OnUnattended): Declare.
5324 * state.cc (unattended_mode): Declare.
5325 * state.h (unattended_mode): Declare.
5326 * threebar.h (ThreeBarProgressPage::OnUnattended): New method.
5327
5328 2002-09-21 Robert Collins <rbtcollins@hotmail.com>
5329
5330 * res.rc: Commit Harry Johnston's dialog caption patch. From July.
5331
5332 2002-07-15 Robert Collins <rbtcollins@hotmail.com>
5333
5334 * package_version.cc (packageversion::sources): Implement this.
5335 * download.cc (do_download_thread): Support multiple files per package.
5336
5337 2002-07-15 Robert Collins <rbtcollins@hotmail.com>
5338
5339 * package_version.h (packageversion::sources): Support multiple files in
5340 a single package version.
5341 * package_version.cc (_packageversion::accessible): Ditto.
5342 (packageversion::source): Ditto.
5343
5344 2002-07-15 Robert Collins <rbtcollins@hotmail.com>
5345
5346 * iniparse.y: Implement support for multiple source files for a source
5347 package.
5348 * IniDBBuilder.h (IniDBBuilder::buildSourceFile): Ditto.
5349 * IniDBBuilderPackage.h (IniDBBuilder::buildSourceFile): Ditto.
5350 * IniDBBuilder.cc (IniDBBuilder::buildSourceFile): Ditto.
5351 * IniDBBuilderPackage.cc (IniDBBuilder::buildSourceFile): Implement a
5352 stub as preparation.
5353
5354 2002-07-13 Robert Collins <rbtcollins@hotmail.com>
5355
5356 * PickPackageLine.cc (PickPackageLine::click): Set requirements for
5357 packages under all circumstances - slightly higher overheader, simpler
5358 code.
5359 * download.cc (do_download_thread): Correctly download source
5360 packages.
5361 * package_meta.cc (checkForInstalled): Remove.
5362 (checkForUpgradeable): Ditto.
5363 (checkForSatisfiable): Ditto.
5364 (processOneDependency): Ditto.
5365 (packagemeta::set_requirements): Move guts to packageversion.
5366 * package_version.cc (checkForInstalled): Copied from package_meta.cc.
5367 (checkForUpgradeable): Ditto.
5368 (checkForSatisfiable): Ditto.
5369 (processOneDependency): Ditto.
5370 (packageversion::set_requirements): Ditto.
5371 * package_version.h (packageversion::set_requirements): Declare.
5372
5373 2002-07-13 Robert Collins <rbtcollins@hotmail.com>
5374
5375 * IniDBBuilder.cc (IniDBBuilder::buildBeginBuildDepends): Implement.
5376 (IniDBBuilder::buildBeginBinary): Implement.
5377 * IniDBBuilder.h (IniDBBuilder::buildBeginBuildDepends): Declare.
5378 (IniDBBuilder::buildBeginBinary): Ditto.
5379 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildBeginBuildDepends):
5380 Implement.
5381 (IniDBBuilderPackage::buildBeginBinary): Ditto.
5382 * IniDBBuilderPackage.h (IniDBBuilderPackage::buildBeginBuildDepends):
5383 Declare.
5384 (IniDBBuilderPackage::buildBeginBinary): Ditto.
5385 * inilex.l: Recognise Build-Depends-Indep, [,], >, < and remove
5386 T_UNKNOWN.
5387 * iniparse.y: Full support for parsing a debian Sources file in-line in
5388 setup.ini.
5389 * package_version.cc (packageversion::binaries): Implement.
5390 * package_version.h (packageversion::binaries): Declare list of what
5391 packages are created from a given source package.
5392 (_packageversion::binaries): Ditto.
5393
5394 2002-07-10 Robert Collins <rbtcollins@hotmail.com>
5395
5396 * iniparse.y: Add basis for support for parsing a debian Sources file.
5397 * inilex.l: Ditto.
5398
5399 2002-07-09 Robert Collins <rbtcollins@hotmail.com>
5400
5401 Change custom container code for packagedb::packages to STL containers
5402 throughout.
5403 * IniDBBuilderPackage.cc: Ditto.
5404 * PickView.cc: Ditto.
5405 * choose.cc: Ditto.
5406 * desktop.cc: Ditto.
5407 * download.cc: Ditto.
5408 * install.cc: Ditto.
5409 * package_db.cc: Ditto.
5410 * package_db.h: Ditto.
5411 * Makefile.am: Remove list.h references.
5412 * list.h: Remove.
5413
5414 2002-07-08 Max Bowsher <maxb@ukf.net>
5415
5416 * PickView.cc (PickView::PickView): Set font of package list header to
5417 the same as used in the rest of the package list.
5418
5419 2002-07-08 Robert Collins <rbtcollins@hotmail.com>
5420
5421 * install.cc (NoReplaceOnReboot): New command line option to prevent
5422 replacing in use files.
5423 (install_one_source): Check the option and use it.
5424 * README: Update TODO lists.
5425
5426 2002-07-08 Robert Collins <rbtcollins@hotmail.com>
5427
5428 * PickCategoryLine.cc: Change bucket to use STL container syntax
5429 throughout.
5430 (PickCategoryLine::paint): Use new Category type syntax.
5431 * PickCategoryLine.h: Use STL vectors rather than custom containers
5432 throughout.
5433 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageCategory):
5434 Use new add_category syntax.
5435 * PickView.cc (PickView::insert_pkg): Use new Category type syntax.
5436 (PickView::insert_category): Ditto.
5437 (PickView::init_headers): Ditto.
5438 * category.cc: Trim obsolete code.
5439 * category.h: Replace interconnecting class with a typedef to
5440 facilitate leveraging STL maps.
5441 * choose.cc (fill_missing_category): Use updated pkg.add_category
5442 syntax.
5443 (default_trust): Use new Category type syntax.
5444 (set_view_mode): Ditto.
5445 (create_listview): Ditto.
5446 * package_db.cc (categories): Ditto.
5447 * package_db.h: Update headers list to include needed headers.
5448 (packagedb::categories): Replace custom list with STL map.
5449 * package_meta.cc: Use new Category type syntax throughout.
5450 (packagemeta::add_category): Implement new syntax.
5451 * package_meta.h: Remove commented out source.
5452 (packagemeta::add_category): Update syntax to decouple interface from
5453 packagedb.
5454
5455 2002-07-06 Christopher Faylor <cgf@redhat.com>
5456
5457 * site.cc (do_download_site_info_thread): Correct spelling error.
5458
5459 2002-07-06 Robert Collins <rbtcollins@hotmail.com>
5460
5461 * PickCategoryLine.h: Include required header list.h.
5462 * PickPackageLine.cc (PickPackageLine::paint): Adjust to use STL
5463 containers for listing of packages per category and vice verca.
5464 * PickView.cc (PickView::insert_pkg): Ditto.
5465 (PickView::insert_category): Ditto.
5466 * String++.h (String::caseless): STL helper to allow trivial containers
5467 of Strings with case insensitive comparisons.
5468 * category.h: Adjust to use STL containers for listing of packages per
5469 category and vice verca.
5470 * choose.cc (fill_missing_category): Ditto.
5471 (default_trust): Ditto.
5472 (ChooserPage::OnNext): Ditto.
5473 * package_meta.cc (CategoryPackage::~CategoryPackage): Remove.
5474 (packagemeta::packagemeta): Adjust for new category list name.
5475 (packagemeta::~packagemeta): Adjust to use STL containers for listing
5476 of packages per category and vice verca.
5477 (packagemeta::set_action): Ditto.
5478 * package_meta.h (CategoryPackage): Remove.
5479 (packagemeta): Adjust to use STL containers for listing of packages per
5480 category and vice verca.
5481
5482 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
5483
5484 * io_stream.cc: Use STL containers rather than custom ones.
5485 (io_stream::registerProvider): Ditto.
5486 (findProvider): Ditto.
5487
5488 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
5489
5490 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
5491 Use STL collections for download site collections.
5492 (IniDBBuilderPackage::add_correct_version): Ditto.
5493 (IniDBBuilderPackage::process_src): Ditto.
5494 * PickPackageLine.cc (PickPackageLine::click): Use the packageversion
5495 accessible() call to abstract package availability.
5496 * choose.cc (scanAVersion): Use STL collections for download site
5497 collections.
5498 * download.cc (check_for_cached): Ditto.
5499 (download_one): Ditto.
5500 * package_meta.cc (packagemeta::set_action): Use the packageversion
5501 accessible() call to abstract package availability.
5502 * package_source.h: Use STL containers rather than custom containers.
5503 (site): Create a == operator to allow STL container use.
5504 (packagesource::sites): Use STL containers rather than custom
5505 containers.
5506 * package_version.cc (_packageversion::accessible): Use STL containers
5507 for download site containers.
5508
5509 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
5510
5511 * LogFile.cc: Use STL containers rather than custom containers.
5512 (filedef): Create == and < operators for STL use.
5513 (files): Convert to an STL set.
5514 (LogFile::setFile): Use STL operations on files.
5515 (LogFile::exit): Ditto.
5516
5517 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
5518
5519 * ini.cc (do_remote_ini): Use STL collection for site collection.
5520 * site.cc: Include site.h first to ensure it's parsable standalone.
5521 Use STL algorithms.
5522 (site_list): Convert to an STL container.
5523 (all_site_list): Ditto.
5524 (site_list_type::site_list_type): Implement copy constructor.
5525 (site_list_type::operator=): Implement assignment operator.
5526 (site_list_type::operator ==): Implement.
5527 (site_list_type::operator <): Ditto.
5528 (save_dialog): Use STL collection calls for site collection.
5529 (save_site_url): Ditto.
5530 (get_site_list): Ditto.
5531 (get_saved_sites): Ditto.
5532 (do_download_site_info_thread): Ditto.
5533 (SitePage::OnNext): Ditto.
5534 (SitePage::PopulateListBox): Ditto.
5535 (SitePage::OnMessageCmd): Ditto.
5536 * site.h: Use STL vectors instead of custom code.
5537 (site_list_type::site_list_type): Declare.
5538 (site_list_type::operator=): Ditto.
5539 (site_list_type::operator ==): Ditto.
5540 (site_list_type::operator !=): Ditto.
5541 (site_list_type::operator <): Ditto.
5542 (site_list_type::operator <=): Ditto.
5543 (site_list_type::operator >): Ditto.
5544 (site_list_type::operator >=): Ditto.
5545 (site_list): Convert to an STL container.
5546 (all_site_list): Ditto.
5547
5548 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
5549
5550 * choose.cc (default_trust): Check package accessibility before
5551 triggering an install. (Suggested by Pavel).
5552
5553 2002-07-03 Pavel Tsekov <ptsekov@gmx.net>
5554
5555 * compress_gz.cc (compress_gz::construct): Always initialize key members
5556 to ensure the destructor does the right thing.
5557
5558 2002-07-03 Pavel Tsekov <ptsekov@gmx.net>
5559
5560 * filemanip.cc (parse_filename): Do not try to parse empty
5561 strings (filenames).
5562 * package_db.cc (packagedb::packagedb): For each line check if sscanf()
5563 extracted good package name and filename.
5564
5565 2002-07-03 Robert Collins <rbtcollins@hotmail.com>
5566
5567 * package_meta.cc (packagemeta::set_requirements): Automatically select
5568 version of dependent packages that satisfies the requirements.
5569 Use processOneDependency to trigger the install of those packages.
5570 (checkForInstalled): Check that the package remains installed.
5571 (processOneDependency): Helper function for dependent packages.
5572 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackage): Add more
5573 debug information.
5574 Clear out all current state on new packages.
5575 (IniDBBuilderPackage::add_correct_version): Copy the dependency list
5576 across.
5577
5578 2002-07-02 Robert Collins <rbtcollins@hotmail.com>
5579
5580 * Makefile.am (inilint_SOURCES): Add PackageSpecification sources.
5581 nb: inilint is still incomplete, as the packageversion code is not
5582 ready for database-less linking.
5583 * site.cc (get_site_list): When the same site is reentered by the user
5584 replace the old one. (Suggested by John Marshall).
5585
5586 2002-07-02 Robert Collins <rbtcollins@hotmail.com>
5587
5588 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
5589 Clear out package selections when generating implicit source packages.
5590 * PackageSpecification.cc (PackageSpecification::satisfies): Implement.
5591 (PackageSpecification::_operators::satisfies): Implement.
5592 * PackageSpecification.h (PackageSpecification::_operators::satisfies):
5593 Worker function for testing versions.
5594
5595 2002-07-01 Robert Collins <rbtcollins@hotmail.com>
5596
5597 * IniDBBuilder.cc (IniDBBuilder::buildPackageRequirement): Remove.
5598 * IniDBBuilder.h (IniDBBuilder::buildPackageRequirement): Ditto.
5599 * IniDBBuilderPackage.cc: Use the STL algorithms.
5600 Change cpv to cbpv throughout. Adjust -> to ., and use the new accessor
5601 functions for the same variable throughout.
5602 (IniDBBuilderPackage::IniDBBuilderPackage): Initialise new members.
5603 (IniDBBuilderPackage::buildPackage): Use new cygpackage syntax,
5604 and set an empty source package.
5605 (IniDBBuilderPackage::buildPackageInstall): Use the new source member
5606 to record an install package.
5607 (IniDBBuilderPackage::buildPackageSource): Move source package logic
5608 out from process_src, as it now occurs at separate times.
5609 (IniDBBuilderPackage::buildPackageRequirement): Remove.
5610 (IniDBBuilderPackage::buildSourceName): Use renamed package
5611 specifiation accessor for clarity.
5612 (IniDBBuilderPackage::buildSourceNameVersion): Ditto.
5613 (IniDBBuilderPackage::add_correct_version): Use STL iterators rather
5614 than custom code.
5615 Remove source package references.
5616 (IniDBBuilderPackage::process_src): Remove source package code as it's
5617 now handled separately.
5618 Set Path information before merging versions, to prevent dangling
5619 pointers.
5620 * IniDBBuilderPackage.h (IniDBBuilderPackage::buildPackageRequirement):
5621 Remove.
5622 (IniDBBuilderPackage::cpv): Remove.
5623 (IniDBBuilderPackage::cbpv): New generic binary working variable.
5624 (IniDBBuilderPackage::cspv): Ditto, but for source packages.
5625 (IniDBBuilderPackage::csp): Source package variable for disjoint
5626 source packages.
5627 * Makefile.am (AM_CFLAGS): Remove -Winline to allow stl set code
5628 to compile. If it compiles cleanly in gcc 3.1, then reinstate.
5629 * PickPackageLine.cc: Adjust packageversion accessors to the new
5630 reference calls. (i.e. -> to .) throughout.
5631 (PickPackageLine::paint): Use accessible() for clarity.
5632 Use new split out source package logic.
5633 (PickPackageLine::click): Ditto.
5634 * PickView.cc (PickView::init_headers): Adjust packageversion accessors
5635 to the new reference calls. (i.e. -> to .) throughout.
5636 Use new split out source package logic.
5637 * choose.cc: Don't depend on a specific package type.
5638 Adjust packageversion accessors to the new reference calls. (i.e. -> to
5639 .) throughout.
5640 (set_existence): Use accessible () for clarity.
5641 (default_trust): Simplify a little.
5642 (scanAVersion): Factored out code from scan_downloaded_files for
5643 clarity.
5644 (scan_downloaded_files): Factor out inner loop for clarity.
5645 (ChooserPage::OnNext): Don't dump the dependency list,
5646 it's parsing is robust now!.
5647 * cygpackage.cc (createInstance): Use a factory method to create new
5648 objects.
5649 (cygpackage::cygpackage): Make this private for use by the factory.
5650 (cygpackage::setCanonicalVersion): Renamed from set_canonical_version.
5651 Remove key usage as it's obsolete.
5652 * cygpackage.h (cygpackage): Inherit from _packageversion, not
5653 packageversion.
5654 (cygpackage::createInstance): New factory.
5655 (cygpackage::cygpackage): Make private.
5656 * desktop.cc (make_passwd_group): Use new packageversion reference.
5657 * download.cc (do_download_thread): Use changeRequested() for clarity.
5658 Use new packageversion reference calls.
5659 * iniparse.y (REQUIRES): Reuse the packageList code and dump the one-off
5660 requires code.
5661 * install.cc: Adjust -> to ., and use the new accessor functions for
5662 packageversion throughout.
5663 * package_db.cc: Adjust -> to ., and use the new accessor functions for
5664 packageversion throughout.
5665 (packagedb::packagedb): Use the new cygpackage factory.
5666 (packagedb::flush): Leverage String to remove buffer overflow chance in
5667 sprintf.
5668 (packagedb::findBinary): Find a binary meta package that has a version
5669 matching a given specification.
5670 (packagedb::findSource): Ditto, but for source.
5671 * package_db.h (packagedb::findBinary): Declare.
5672 (packagedb::findSource): Ditto.
5673 * package_meta.cc: Adjust packageversion accessors to the new
5674 reference calls. (i.e. -> to .) throughout.
5675 Include the package_meta header first to ensure it parses standalone.
5676 Use the STL algorithms.
5677 (packagemeta::packagemeta): Create a copy constructor to allowing
5678 cloning binary package metadata to source package metadata.
5679 (packagemeta::~packagemeta): Use the STL coleltion code rather than
5680 custom collection code.
5681 (packagemeta::add_version): Ditto.
5682 (packagemeta::set_installed): Ditto.
5683 (packagemeta::SDesc): Ditto.
5684 (hasSDesc): Helper function for find_if.
5685 (checkForInstalled): Ditto.
5686 (checkForUpgradeable): Ditto.
5687 (checkForSatisfiable): Ditto.
5688 (packagemeta::action_caption): Update for split out source packages.
5689 (packagemeta::set_action): Ditto.
5690 (packagemeta::set_requirements): Support multi-valued dependency
5691 lists - a|b & c|d - with versioned package specifications.
5692 (packagemeta::accessible): Helper member to improve abstraction.
5693 (packagemeta::sourceAccessible): Ditto.
5694 * package_meta.h: Adjust packageversion accessors to the new
5695 reference calls. (i.e. "->" to "." and"*" to "" ) throughout.
5696 (packagemeta::packagemeta): Declare copy constructor.
5697 Remove self initialising members.
5698 (packagemeta::set_action): Update parameters for new packageversion.
5699 (packagemeta::trustp): Ditto.
5700 (packagemeta::versions): Becomes an STL set.
5701 * package_source.h (packagesource::Cached): Const correctness change.
5702 * package_version.cc: Rewrite the packageversion interface to remove
5703 the cygpackage nonvirtual members, and provide a copy by value,
5704 pointer semantics reference counting wrapper class to ease use and
5705 comparison of packageversions.
5706 Change existing packageversion class to _packageversion throughout.
5707 (_defaultversion): A trivial concrete class to prevent specialcasing
5708 the default constructor for packageversion;
5709 (packageversion::packageversion): Implement.
5710 (packageversion::~packageversion): Ditto.
5711 (packageversion::operator=): Ditto.
5712 (packageversion::operator !): Ditto.
5713 (packageversion::operator bool): Ditto.
5714 (packageversion::operator ==): Ditto.
5715 (packageversion::operator !=): Ditto.
5716 (packageversion::operator <): Ditto.
5717 (packageversion::Name): Ditto.
5718 (packageversion::Canonical_version): Ditto.
5719 (packageversion::setCanonicalVersion): Ditto.
5720 (packageversion::getfirstfile): Ditto.
5721 (packageversion::getnextfile): Ditto.
5722 (packageversion::SDesc): Ditto.
5723 (packageversion::set_sdesc): Ditto.
5724 (packageversion::LDesc): Ditto.
5725 (packageversion::set_ldesc): Ditto.
5726 (packageversion::sourcePackage): Ditto.
5727 (packageversion::sourcePackageSpecification): Ditto.
5728 (packageversion::setSourcePackageSpecification): Ditto.
5729 (packageversion::depends): Ditto.
5730 (packageversion::predepends): Ditto.
5731 (packageversion::recommends): Ditto.
5732 (packageversion::suggests): Ditto.
5733 (packageversion::replaces): Ditto.
5734 (packageversion::conflicts): Ditto.
5735 (packageversion::provides): Ditto.
5736 (packageversion::picked): Ditto.
5737 (packageversion::pick): Ditto.
5738 (packageversion::changeRequested): Ditto.
5739 (packageversion::uninstall): Ditto.
5740 (packageversion::source): Ditto.
5741 (packageversion::accessible): Ditto.
5742 (_packageversion::sourcePackage): Ditto.
5743 (_packageversion::accessible): Ditto.
5744 (_packageversion::changeRequested): Ditto.
5745 * package_version.h: Rewrite the packageversion interface to remove
5746 the cygpackage nonvirtual members, and provide a copy by value,
5747 pointer semantics reference counting wrapper class to ease use and
5748 comparison of packageversions.
5749 Change existing packageversion class to _packageversion throughout.
5750 (Dependency): Remove.
5751 (packageversion): New wrapper class.
5752 (_packageversion): Renamed from packageversion.
5753 (_packageversion::setCanonicalVersion): New method.
5754 (_packageversion::sourcePackage): Ditto.
5755 (_packageversion::sourcePackageSpecification): Ditto.
5756 (_packageversion::setSourcePackageSpecification): Ditto.
5757 (_packageversion::changeRequested): Ditto.
5758 (_packageversion::bin): Rename to source.
5759 (_packageversion::src): Remove.
5760 (_packageversion::accessible): New method.
5761 (_packageversion::references): Allow reference counting.
5762 (_packageversion::sourceVersion): Cached the best-match source
5763 package version.
5764
5765 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
5766
5767 * compress_bz.h (compress_bz::position): Track how much has been read.
5768 * compress_bz.cc (compress_bz::compress_bz): And initialise it.
5769 (compress_bz::read): Track amount read by the client.
5770 (compress_bz::tell): And report it when asked.
5771
5772 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
5773
5774 * Makefile.am (snapshot): Automate snapshot creation some more.
5775
5776 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
5777
5778 * msg.cc (msg): Use vsnprintf to avoid buffer overflows.
5779 (mbox): Ditto.
5780 * ini.cc (fprintf): Ditto.
5781 * log.cc (log): Ditto.
5782 * package_db.cc (packagedb::sourcePackages): Split out source packages
5783 from binary packages.
5784 * package_db.h: Ditto.
5785
5786 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
5787
5788 * PackageSpecification.h: New file. Abstracts the ability to refer
5789 to another package, by name, or name and version.
5790 * PackageSpecification.cc: Ditto.
5791 * IniDBBuilder.cc (IniDBBuilder::buildPackageInstall): Simplify.
5792 (IniDBBuilder::buildPackageSource): Ditto.
5793 (IniDBBuilder::buildBeginDepends): New method for versioned
5794 dependencies.
5795 (IniDBBuilder::buildBeginPreDepends): Likewise, for dependencies to be
5796 satisfied before pre-install.
5797 (IniDBBuilder::buildPriority): New method, for getting the package
5798 Priority.
5799 (IniDBBuilder::buildInstalledSize): How much disk space does it need?
5800 (IniDBBuilder::buildMaintainer): Who maintains the package?
5801 (IniDBBuilder::buildArchitecture): What platform is it for?
5802 (IniDBBuilder::buildInstallSize): How big is the binary download?
5803 (IniDBBuilder::buildInstallMD5): Whats the MD5 on the binary?
5804 (IniDBBuilder::buildSourceMD5): Whats the MD5 on the source package?
5805 (IniDBBuilder::buildBeginRecommends): What other packages are
5806 recommended with this one?
5807 (IniDBBuilder::buildBeginSuggests): And suggested?
5808 (IniDBBuilder::buildBeginReplaces): What packages does this replace?
5809 (IniDBBuilder::buildBeginConflicts): And collide with?
5810 (IniDBBuilder::buildBeginProvides): What virtual packages (or obsolete
5811 package names) does this provide?
5812 (IniDBBuilder::buildDescription): Grab a multi line description one
5813 line at a time.
5814 (IniDBBuilder::buildSourceName): What source package should be used to
5815 install the source for this binary package?
5816 (IniDBBuilder::buildSourceNameVersion): Is a specific version needed?
5817 (IniDBBuilder::buildPackageListAndNode): Add another AND clause to a
5818 list of package specifications.
5819 (IniDBBuilder::buildPackageListOrNode): Add another OR clause.
5820 (IniDBBuilder::buildPackageListOperator): Add a versioning operator
5821 to the current specification.
5822 (IniDBBuilder::buildPackageListOperatorVersion): What version does the
5823 operator act on?
5824 * IniDBBuilder.h: Declare all the IniDBBuilder.cc changes.
5825 * IniDBBuilderPackage.cc: As for IniDBBuilder.cc.
5826 (IniDBBuilderPackage::IniDBBuilderPackage): Iniitialize new members.
5827 (IniDBBuilderPackage::process_src): Streamline and split out
5828 functionality.
5829 (IniDBBuilderPackage::setSourceSize): From process_src.
5830 * IniDBBuilderPackage.h: Declare the IniDBBuilderPackage.cc changes.
5831 (IniDBBuilderPackage::currentSpec): Track the in-progress specifiation.
5832 (IniDBBuilderPackage::currentOrList): Track the current Or list.
5833 (IniDBBuilderPackage::currentAndList): Track the current And list.
5834 * IniParseFeedback.cc (IniParseFeedback::progress): Provide completion
5835 progress on parsing.
5836 (IniParseFeedback::iniName): Tell what ini filename we are currently
5837 processing.
5838 * IniParseFeedback.h: Declare IniParseFeedback.cc changes.
5839 * IniParseFindVisitor.cc (IniParseFindVisitor::IniParseFindVisitor):
5840 Make the feedback object non-const to allow mutating methods which are
5841 needed when the object has state.
5842 (IniParseFindVisitor::visitFile): Tell the caller the name of each
5843 .ini found.
5844 Initialise the parser with the feedback object to allow it to tell of
5845 progress.
5846 * IniParseFindVisitor.h: Declare IniParseFindVisitor.cc changes.
5847 * Makefile.am (inilinst_SOURCES): Add more requisite classes.
5848 (setup_SOURCES): Add the new PackageSpecification sources.
5849 * ScanFindVisitor.cc (ScanFindVisitor::visitFile): Use the new
5850 builder syntax to setup binary package details.
5851 * choose.cc: Use the LogSingleton calls throughout.
5852 * configure.in: Create the INILINT substitution correctly for recent
5853 autotool configurations.
5854 * cygpackage.cc (cygpackage::getfirstfile): Return an empty String
5855 rather than a string built from an int. Thanks to Pavel Tsekov for
5856 identifying the bug.
5857 (cygpackage::getnextfile): Ditto.
5858 * download.cc: Use LogSIngletion calls throughout.
5859 (validateCachedPackage): A refactoring of the
5860 check_for_cached code to eliminate duplciation.
5861 (check_for_cached): Use validateCachedPackage to check packages.
5862 * ini.cc (GuiParseFeedback): Provide gui feedback on ini name and
5863 parsing progress.
5864 (do_remote_ini): Ditto.
5865 * ini.h (ini_init): Pass a IniParseFeedback to the parser, to allow
5866 progress reporting.
5867 * inilex.l: Identify new symbols - operators, and multi line plain text.
5868 Releases files.
5869 * inilintmain.cc (show_help): Provide basic infomation on inilint.
5870 * iniparse.y: Adjust for the new builder syntax, and process debian
5871 Release files.
5872 * io_stream_file.cc: Always include mkdir.h.
5873 * list.h: Factor index location into a private routine.
5874 (list::findindex): Implement this.
5875 * mkdir.cc (mkdir_p): Make the use of WIN32 code conditional on mingw
5876 builds. NB: This breaks cygwin build functionality still.
5877 * package_meta.cc: Use the LogSingleton calls throughout.
5878 (packagemeta::set_requirements): Adjust for object changes in
5879 dependencies.
5880 * package_meta.h (packagemeta::packagemeta): Initialise new members.
5881 (packagemeta::architecture): What platform does this package run on?
5882 This may need to move in the future to a per packagefile object.
5883 (packagemeta::priority): What priority does this package have?
5884 * package_source.h (packagesource::packagesource): Initialise new
5885 members.
5886 (packagesource::installedSize): How much space does the package need?
5887 (packagesource::setInstalledSize): Tell the amount.
5888 (packagesource::_installedSize): And store it.
5889 * package_version.cc (packageversion::sourcePackage): return the
5890 source package.
5891 (packageversion::setSourcePackage): And set it.
5892 * package_version.h: Declare the package_version.cc changes.
5893 (packageversion::depends): New package specification AND list.
5894 (packageversion::predepends): Ditto.
5895 (packageversion::recommends): Ditto.
5896 (packageversion::suggests): Ditto.
5897 (packageversion::replaces): Ditto.
5898 (packageversion::conflicts): Ditto.
5899 (packageversion::provides): Ditto.
5900 (packageversion::sourcePackage): What source package is needed?
5901 * threebar.cc (ThreeBarProgressPage::SetText4): Set the label beside
5902 the bottom bar.
5903 * threebar.h: Declare the threebar.cc change.
5904
5905 2002-06-27 John Marshall <johnm@falch.net>
5906
5907 * res.rc (SETUPINI_MISSING): Make trailing spaces visible.
5908 * site.cc (SitePage::OnMessageCmd): Ditto
5909
5910 2002-06-15 Robert Collins <rbtcollins@hotmail.com>
5911
5912 * nio-ie5.cc (NetIO_IE5::NetIO_IE): Allow cached data.
5913
5914 2002-06-15 Robert Collins <rbtcollins@hotmail.com>
5915
5916 * package_meta.cc (packagemeta::set_action): When installing packages
5917 with no binaries, choose the source package.
5918
5919 2002-06-10 Robert Collins <rbtcollins@hotmail.com>
5920
5921 * IniParseFindVisitor (IniParseFindVisitor::visitFile): Apply Max
5922 Bowshers fix for the crash with a root level setup.ini.
5923 * README: Update todos.
5924
5925 2002-05-26 Ralf Habacker <ralf.habacker@freenet.de>
5926
5927 * archive_tar.cc (archive_tar::next_file_name()): fixed broken
5928 GNU long name extension support.
5929
5930 2002-05-27 Robert Collins <rbtcollins@hotmail.com>
5931
5932 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Don't
5933 unescape 0 length strings.
5934
5935 2002-05-20 Robert Collins <rbtcollins@hotmail.com>
5936
5937 * package_meta.cc (packagemeta::set_action): Don't allow reinstall
5938 when local with no cached file, and install the default source if the
5939 default version has no binary.
5940
5941 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
5942
5943 * IniDBBuilderPackage.cc (IniDBBuilderPackage::IniDBBuilderPackage): New
5944 method.
5945 (IniDBBuilderPackage::buildVersion): Provide a warning when a newer
5946 setup version created the ini file.
5947 * IniDBBuilderPackage.h (IniDBBuilderPackage::IniDBBuilderPackage): New
5948 method.
5949 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Use the new
5950 feedback strategy.
5951 * IniParseFindVisitor.h (IniParseFindVisitor::IniParseFindVisitor):
5952 Require a feedback strategy.
5953 * Makefile.am (setup_SOURCES): Add IniParseFeedback sources.
5954 * Makefile.in: Regenerate.
5955
5956 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
5957
5958 * io_stream_file.cc (io_stream_file::remove): Use the SetFileAttributes
5959 trick to delete read only files.
5960 * io_stream_cygfile.cc (io_stream_cygfile::remove): Use file:// to
5961 remove files.
5962 * Makefile.am (release): Tweak to be more helpful.
5963 * Makefile.in: Regenerate.
5964
5965 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
5966
5967 * Makefile.am (release): Tweak to be more helpful.
5968 * Makefile.in: Regenerate.
5969
5970 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
5971
5972 * Makefile.am (release): Tweak to be more helpful.
5973 * Makefile.in: Regenerate.
5974
5975 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
5976
5977 * choose.cc (scan_downloaded_files): When a non-installed version
5978 has neither bin nor src cached files for local installs,
5979 remove the version from availability.
5980
5981 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
5982
5983 * ini.cc (do_remote_ini): Save uncompressed ini's correctly.
5984
5985 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
5986
5987 * rsync: New support library, contains librsync. This is not (yet)
5988 rsync interoperable.
5989 * configure.in: --with-rsync to enable rsync support. (Not complete).
5990 * Makefile.am: Enable building with rsync.
5991 * Makefile.in: Regenerate.
5992 * configure: Ditto.
5993 * IniDBBuilder.cc (IniDBBuilder::buildPackageInstall): Pass the md5 as
5994 an array.
5995 (IniDBBuilder::buildPackageSource): Ditto.
5996 * IniDBBuilder.h: Ditto.
5997 * IniDBBuilderPackage.cc: Ditto.
5998 * IniDBBuilderPackage.h: Ditto.
5999 * FindVisitor.cc: New file.
6000 * FindVisitor.h: New file, interface for visiting a file system
6001 aggregate.
6002 * IniParseFindVisitor.cc: New file.
6003 * IniParseFindVisitor.h: New file, concrete FindVisitor that parses
6004 found setup.ini's.
6005 * README: Update TODO's.
6006 * String++.cc (String::String): New constructor for <string> inter-
6007 operability.
6008 (String::substr): New method.
6009 * String++.h: Ditto.
6010 * choose.cc (scan2): Remove.
6011 (scan_downloaded_files): Simplify.
6012 * dialog.h: Include parsing pre-requirements.
6013 * download.cc (check_for_cached): Fullname was used incorrectly - fix.
6014 * filemanip.cc (parse_filename): -src packages where incorrectly parsed.
6015 * find.cc: Rewrite. Now uses a Visitor pattern and is re-entrant.
6016 * find.h: Ditto.
6017 * fromcwd.cc: Remove unneeded includes.
6018 (is_test_version): Remove.
6019 (found_file): Remove.
6020 (SetupFindVisitor): Trivial visitor to detect setup.ini's.
6021 (found_ini): Remove.
6022 (do_fromcwd): Remove commented code that has be replaced elsewhere.
6023 * ini.cc (local_ini): Remove.
6024 (findBuilder): Remove.
6025 (find_routine): Remove.
6026 (do_local_ini): Use new IniParseFindVisitor.
6027 * iniparse.y: Typecase MD5 arrays, as we know they are allocated as
6028 unsigned char.
6029 * postinstall.cc: Remove non-core includes.
6030 (run_script_in_postinstall): Remove.
6031 (RunFindVisitor): Trivial Visitor, runs each found script.
6032 (do_postinstall): Use new find syntax.
6033
6034 2002-05-14 Christopher Faylor <cgf@redhat.com>
6035
6036 * ini.cc (find_routine): Don't clear buffer it it's NULL.
6037
6038 2002-05-14 Christopher Faylor <cgf@redhat.com>
6039
6040 * filemanip.h (trail): Declare.
6041 * filemanip.cc (trail): New function.
6042 (find_tar_ext): Use trail() instead of strstr().
6043 * fromcwd.cc (check_ini): Ditto.
6044 * ini.cc (find_routine): Ditto. Don't tack local_dir to path since it
6045 should now be fully qualified. Set ini_filename. Reset error_buf and
6046 error_count for any subsequent ini file parsing.
6047 (ini_filename): New static variable for parse error reporting.
6048 (yyerror): Use full path of setup.ini in error message. Subtract one
6049 from line number if at bol.
6050 * find.cc (found_part): Eliminate.
6051 (find_sub): Call for_each with full path found rather than just file
6052 component.
6053 (find): Don't calculate found_part.
6054 * inilex.l (ini_init): Flush input buffer and reset line number.
6055 (yybol): New function. Exports YY_AT_BOL.
6056 * iniparse.y: Increase stack depth to allow more tokens to be processed.
6057 (yyparse): Remove newline from error condition to allow subsequent
6058 per-line error processing to proceed normally.
6059
6060 2002-05-14 Christopher Faylor <cgf@redhat.com>
6061
6062 * find.cc (find_sub): Be more defensive in preserving trailing parts of
6063 components when doing recursive directory searches or calling user
6064 supplied for_each().
6065 * ini.cc (find_routine): Don't assume that any path name with
6066 "setup.ini" in it is actually a setup.ini file. Only honor trailing
6067 components. Copy path argument to temporary storage when unescaping
6068 to prevent nuking of argument.
6069
6070 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
6071
6072 * CONTRIBUTORS: New file.
6073
6074 2002-04-02 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
6075
6076 * choose.cc: Run indent.
6077 (nextbutton): Remove static variable.
6078 (default_trust): Remove use of nextbutton.
6079 (set_view_mode): Ditto.
6080 (create_listview): Add IDC_CHOOSE_PREV and IDC_CHOOSE_NEXT to ta[] so
6081 rbset() sets the prev/next/curr radio buttons properly.
6082 (dialog_cmd): Delete function.
6083 (dialog_proc): Delete function. Move WM_INITDIALOG functionality to
6084 ChooserPage::OnInit.
6085 (do_choose): Delete function. Move pre-DialogBox() code to
6086 ChooserPage::OnInit(), post-DialogBox() code to ChooserPage::OnNext.
6087 (WM_APP_START_CHOOSE): Remove define.
6088 (WM_APP_CHOOSE_IS_FINISHED): Remove define.
6089 (do_choose_thread): Delete function.
6090 (ChooserPage::OnActivate): Delete method.
6091 (ChooserPage::OnMessageApp): Delete method.
6092 (ChooserPage::OnInit): New method.
6093 (ChooserPage::OnNext): New method.
6094 (ChooserPage::OnBack): New method.
6095 (ChooserPage::OnMessageCmd): New method.
6096 * choose.h: Run indent.
6097 (ChooserPage::OnMessageApp): Delete declaration.
6098 (ChooserPage::OnActivate): Ditto.
6099 (ChooserPage::OnMessageCmd): New declaration.
6100 (ChooserPage::OnInit): Ditto.
6101 (ChooserPage::OnNext): Ditto.
6102 (ChooserPage::OnBack): Ditto.
6103 * desktop.cc (DesktopSetupPage::OnBack): Replace use of IDD_CHOOSER
6104 with IDD_CHOOSE.
6105 * fromcwd.cc (do_fromcwd): Replace use of IDD_CHOOSER with IDD_CHOOSE.
6106 * ini.cc (do_ini_thread): Replace use of IDD_CHOOSER with IDD_CHOOSE.
6107 * res.rc (IDD_CHOOSE): Remove dialog template.
6108 (IDD_CHOOSER): Alter dialog template to fit wizard size and format.
6109
6110 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
6111
6112 * LogFile.cc (endLog): Work around an apparent libg++-3 bug causing
6113 corrupt log file entries.
6114 * geturl.cc: Convert to the new LogSingleton logging.
6115
6116 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
6117
6118 * ini.cc (do_remote_ini): Use setup.bz2 if it exists in preference to
6119 setup.ini.
6120
6121 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
6122
6123 * geturl.h: Declare getUrlToStream.
6124 * geturl.cc (getUrlToStream): New function.
6125 (get_url_to_membuf): Refactor to use getUrlToStream.
6126
6127 2002-05-11 Robert Collins <rbtcollins@hotmail.com>
6128
6129 * Makefile.am: Add a release target to automate some of the routine
6130 work.
6131 * Makefile.in: Regenerate.
6132
6133 2002-05-11 Robert Collins <rbtcollins@hotmail.com>
6134
6135 * choose.cc (scan_downloaded_files): On local installs remove all
6136 mirror sites if no cached copy of a package is found.
6137
6138 2002-05-10 Robert Collins <rbtcollins@hotmail.com>
6139
6140 * Makefile.in: Regenerate.
6141 * iniparse.y: Use left recursion, not right in the lines rule to
6142 avoid stack overflows.
6143 * README: Update TODO's.
6144 * io_stream_file.cc: Native builds need to include sys/stat.h
6145
6146 2002-05-06 John Marshall <jmarshall@acm.org>
6147
6148 * site.cc (SitePage::OnMessageCmd): recalculate navigation
6149 button activation when "Add" is pressed.
6150 (SitePage::CheckControlsAndDisableAccordingly): tweak comment.
6151
6152 2002-05-07 Robert Collins <rbtcollins@hotmail.com>
6153
6154 * Makefile.am (inlint_SOURCES): Add conditional objects to inilint
6155 depending on platform.
6156 Add file:// support.
6157 * configure.in: Set conditional MINGWTARGET if compiling against mingw
6158 libraries.
6159 * Makefile.in: Regenerate.
6160 * configure: Ditto.
6161 * io_stream_file.cc: Only use win32 calls when building for mingw.
6162
6163 2002-05-05 Robert Collins <rbtcollins@hotmail.com>
6164
6165 * Makefile.am (noinst_PROGRAMS): Make inilint configurable.
6166 * configure.in: Ditto.
6167 Fix incorrect header checking syntax.
6168 * aclocal.m4: Regenerate.
6169 * configure: Regenerate.
6170 * Makefile.in: Regenerate.
6171 * io_stream.cc: Remove platform specific and provider specific code.
6172 (io_stream::registerProvider): New method, registers a Url provider with
6173 the io_stream code.
6174 Make all methods consistently throw invalid_argument exceptions when
6175 a provider that is requested is not present.
6176 (findProvider): New private function, finds a provider.
6177 * io_stream.h: Declare io_stream::registerProvider.
6178 * io_stream_cygfile.cc: Create a Provider class to register with
6179 io_stream.cc.
6180 * io_stream_file.cc: Ditto.
6181 * archive.cc: Remove unneeded includes.
6182 * archive_tar.cc: Remove unneeded includes.
6183 * archive_tar.h: Add required include.
6184 * archive_tar_file.cc: Remove unneded includes.
6185 * choose.cc: Remove unneeded includes:
6186
6187 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
6188
6189 * io_stream.cc: Use the new log interface thruout.
6190
6191 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
6192
6193 * log.cc (log): Reimplement via LogSingleton.
6194 (log_save): Remove.
6195 (exit_setup): Remove.
6196 * log.h (log_save): Remove.
6197 (exit_setup): Remove.
6198 * LogSingleton.cc: New file.
6199 * LogSingleton.h: New file.
6200 * LogFile.cc: New file.
6201 * LogFile.h: New file.
6202 * Makefile.am (inilint_SOURCES): Add the new log interface.
6203 (setup_SOURCES): Add the new log interface and the concrete File
6204 implementation.
6205 * Makefile.in: Regenerate.
6206 * archive.cc: Use the new log interface thruout.
6207 * archive_tar.cc: Ditto.
6208 * main.cc: Ditto.
6209 * dialog.cc (fatal): Use the new log interface.
6210 * ini.cc (do_ini_thread): Use the log interface to exit.
6211 * isntall.cc (do_install_thread): Ditto.
6212 * netio.cc (auth_cmd): Ditto.
6213 * msg.cc (fatal): Ditto.
6214 * localdir.cc (save_local_dir): Save to different files depending on
6215 the mode, and if a root dir exists.
6216
6217 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
6218
6219 * IniDBBuilder.cc: New file.
6220 * IniDBBuilder.h: New file.
6221 * IniDBBuilderPackage.cc: New file.
6222 * IniDBBuilderPackage.h: New file.
6223 * PackageTrust.h: New file.
6224 * IniState.h: Remove, wasn't thought out well enough.
6225 * Makefile.am (inilint_SOURCES): Add more requirements.
6226 (setup_SOURCES): Add new Builder base and concrete classes.
6227 * Makefile.in: Regenerate.
6228 * String++.cc (String::String): Implement int contructor.
6229 * String++.h (String): Declare int constructor.
6230 * archive_tar.cc (archive_tar::next_file_name): Return String() when
6231 no filename exists.
6232 * archive_tar.h (archive_tar_file): Remove get_next_filename method,
6233 it's not needed.
6234 * ini.cc: Replace IniState wuth IniDBBuilderPacakge.
6235 (find_routine): Use new IniDBBuilder to configure the parser.
6236 (do_local_ini): Ditto.
6237 (do_remote_ini): Ditto.
6238 * ini.h: Use IniDBBuilder to initialise parsing.
6239 * inilex.l (MD5): Parse the MD5 string correctly, we had the nibbles
6240 swapped.
6241 (ini_init): Use an IniDBBuilder rather than static variables.
6242 * iniparse.y: Hand off all the object creation to a builder, rather
6243 than hardcoding the behaviour. This allows run-time configured
6244 behaviour.
6245 * io_stream_cygfile.h (io_stream_cygfile): Remove get_next_filename
6246 method, it's not needed.
6247 * io_stream_file.h (io_stream_file): Ditto.
6248 * mount.cc (cygpath): Return String() for missing mounts.
6249 * package_meta.cc (packagemeta::SDesc): Return String() for blank
6250 descriptions.
6251 * package_meta.h (trusts): Remove - replaced by PackageTrust.h.
6252 (packagemeta::packagemeta): Fix incorrect syntax in String constructor
6253 usage.
6254 * cygpackage.cc (cygpackage::cygpackage): Fix incorrect syntax in
6255 String constructor usage.
6256 * site.h (site_list_type): Ditto.
6257
6258 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
6259
6260 * String++.h: Declare a << operator that accepts String objects.
6261 * String++.cc: We need iostream for..
6262 (operator <<): this. Provide a << operator that accepts String objects.
6263 * ini.cc (yyerror): Remove the "C" classifier - it's not needed.
6264 Change from vargs to a String parameter.
6265 * inilintmail.cc: Remove the gui related headers.
6266 (yyerror): Implement this for parsing.
6267 * iniparse.y: Use the new yyerror syntax.
6268
6269 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
6270
6271 * Makefile.am: Add IniState.h.
6272 * Makefile.in: Regenerate.
6273 * IniState.h: New file.
6274 * choose.cc: Don't include ini.h - it's not needed.
6275 * configure: Regenerate.
6276 * desktop.cc: Don't include ini.h - it's not needed.
6277 * download.cc: Ditto.
6278 * fromcwd.cc: Ditto.
6279 * ini.cc: Use IniState.h to track each parsing calling.
6280 (find_routine): Ditto.
6281 (do_remote_ini): Ditto.
6282 (do_ini_thread): Ditto.
6283 * ini.h (ini_init): Adjust parameters to include state object.
6284 * inilex.l: Declare parser state variable.
6285 (ini_init): Adjust parameters to include state object.
6286 * iniparse.y: Remove obsolete setup_timestamp and setup_version
6287 declarations.
6288 (setup_header): Use new state variable to track time and version.
6289 (add_correct_version): Ditto.
6290 * install.cc: Don't include ini.h - it's not needed.
6291
6292 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
6293
6294 * nio-files.cc (NetIO): Use io_stream syntax for get_file_size.
6295 * io_stream_file.cc: Don't include filemanip.h.
6296 (io_stream_file::get_size): Implement here to remove filemanip
6297 dependency.
6298 * io_stream_cygfile.cc: Don't include filemanip.h.
6299 (io_stream_cygfile::get_size): Implement here to remove filemanip
6300 dependency.
6301 Implement a stat based version for when win32 is not available.
6302 * filemanip.h (get_file_size): Return size_t - it's more appropriate.
6303 * filemanip.cc: Don't include win32.h - be platform independent.
6304 Include strings.h and io_stream.h as part of that.
6305 (get_file_size): Leverage io_streams and remove win32 implementation.
6306 * download.cc (check_for_cached): Use io_stream syntax for
6307 get_file_size.
6308 (download_one): Ditto.
6309
6310 2002-05-02 Robert Collins <rbtcollins@hotmail.com>
6311
6312 * configure.in: Correct a typo in last change.
6313 * configure: Regenerate.
6314 * Makefile.in: Regenerate.
6315
6316 2002-05-02 Robert Collins <rbtcollins@hotmail.com>
6317
6318 * configure.in: Check for string.h and string.
6319 * configure: Regenerate.
6320 * Makefile.in: Regenerate.
6321
6322 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
6323
6324 * res.rc (IDD_SPLASH): Remove white box.
6325
6326 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
6327
6328 Oops! forgot to list these in the last checkin.
6329 * inilintmain.cc: New file.
6330 * md5.h: New file - imported md5 source, BSD style licence.
6331 * md5.cc: New file - imported md5 source, BSD style licence.
6332 * Exception.cc: New file.
6333 * Exception.h: New file.
6334 * MD5++.cc: New file.
6335 * MD5++.h: New file.
6336
6337 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
6338
6339 * Makefile.am (AM_CFLAGS): Remove -mwindows, it's a linker flag.
6340 Remove -fno-rtti, we need it for exceptions.
6341 (AM_CXXFLAGS): Ditto.
6342 (WARNONLY_CFLAGS): Ditto.
6343 (EXTRA_PROGRAMS): Add with initial linter sources - not functional yet.
6344 (setup_LDFLAGS): Add and set to -mwindows.
6345 (setup_SOURCES): Add new sources.
6346 * Makefile.in: Regenerate.
6347 * README: Update TODO.
6348 * choose.cc (scan_downloaded_files): Use ini information if it's
6349 available.
6350 * configure: Regenerate.
6351 * download.cc (check_for_cached): Make reusable from elsewhere.
6352 Throw exceptions on errors (as opposed to failures).
6353 Check MD5 sum when it's known.
6354 (download_one): Never force a download.
6355 Handle corrupt package exceptions.
6356 * ini.cc (find_routine): Reverse escape the URL to correctly identify
6357 the site URL.
6358 * inilex.l (MD5): Provide a parsing rule (note: lowercase is required).
6359 * iniparse.y: Allow calculation of MD5 sums, and allow src only
6360 packages.
6361 (process_src): New helper function.
6362 * isntall.cc (install_one_source): Check MD5 sums when possible.
6363 Throw exceptions on errors.
6364 (do_install_thread): Handle exceptions for installation calls.
6365 * package_source.h: Store MD5 information.
6366 * propsheet.cc (PropSheet::Create): Add a useful comment.
6367 * res.rc (IDS_INSTALL_ERROR): Define.
6368 (IDS_CORRUPT_PACKAGE): Define.
6369 * resource.h (IDS_INSTALL_ERROR): Define.
6370 (IDS_CORRUPT_PACKAGE): Define.
6371 * rfc1738.cc (rfc1738_unescape_part): Implement.
6372 * rfc1738.h (rfc1738_unescape_part): Declare.
6373
6374 2002-04-29 Robert Collins <rbtcollins@hotmail.com>
6375
6376 * Makefile.am: Remove dependecy rules that automake emits.
6377 Correct badly copied dependency info for manually compiled files.
6378 (setup_SOURCES): Add all used headers.
6379 (EXTRA_DIST): Include non compilate but required sources.
6380 (setup_LDADD): Remove mingw32, it is autodetected.
6381 * Makefile.in: Regenerate.
6382 * String++.h: sys/types is a system header.
6383 * choose.cc (do_choose_thread): Make into a Win32 thread routine.
6384 Use ExitThread.
6385 (ChooserPage::OnMessageApp): Use Win32 threads. (_beginthread is not
6386 portable).
6387 * configure: Regenerate.
6388 * configure.in: Check for mingw32/cygwin specific headers and libraries.
6389 * cygpackage.h: Include the win32.h header to get correct macro
6390 definitions in all situations.
6391 * download.cc (do_download_reflector): Make into a Win32 thread routine.
6392 Use ExitThread.
6393 (do_download): Use Win32 threads.
6394 * ini.cc: Ditto.
6395 * install.cc: Ditto.
6396 * (WinMain): Adjust to build valid command line using application
6397 under both mingw32 and cygwin.
6398 * mount.cc (set)cygdrive_flags): Create new system flags if the
6399 user requests system and the value does not exist.
6400 * nio-http.cc: Define a _strnicmp for cygwin.
6401 * package_db.cc: Include <errno.h> if it exists.
6402 * site.cc (do_download_site_info_thread): Make into a Win32 thread
6403 routine.
6404 Use ExitThread.
6405 (do_download_site-Info): Use Win32 threads.
6406 * state.cc: Explicity declare variables to avoid header conflicts
6407 caused by '#define extern" on cygwin.
6408 * win32.h: Include <alloca.h> if it exists.
6409 (_MAX_PATH): Define as MAX_PATH when not defined by windows.h.
6410 (_access): Define as access if not defined by windows.h.
6411
6412 2002-04-27 Robert Collins <rbtcollins@hotmail.com>
6413
6414 * compress_gz.cc (compress_gz::error): EOF is not an error condition.
6415
6416 2002-04-27 Robert Collins <rbtcollins@hotmail.com>
6417
6418 * Makefile.am: Add libgetopt++ to the subdirs list.
6419 Search the libgetopt++ header directory.
6420 Link against libgetopt++.la.
6421 (setup_SOURCES): Remove GetOption.cc and getopt.c and Option.cc.
6422 (setup_LDADD): Explicitly include res.o.
6423 * Makefile.in: Regenerate.
6424 * aclocal.m4: Regenerate.
6425 * bootstrap.sh: Call libtoolize.
6426 * configure: Regenerate.
6427 * configure.in: Add libtool support and configure libgetopt++.
6428 * desktop.cc (NoShortcutsOption): Turn into a BoolOption.
6429 (DesktopSetupPage::OnInit): Use the simpler syntax.
6430 * desktop.h: Remove dependency on Option.h, and remove NoShortcustOption
6431 declaration.
6432 * main.cc: Include getopt++/GetOption.h.
6433 (main): Use simpler syntax.
6434 * cdefs.h: Remove.
6435 * getopt.h: Remove.
6436 * getopt.c: Remove.
6437 * GetOption.h: Remove.
6438 * GetOption.cc: Remove.
6439 * Option.h: Remove.
6440 * Option.cc: Remove.
6441
6442 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
6443
6444 * Makefile.am: Add zlib and bz2lib to SUBDIRS.
6445
6446 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
6447
6448 * aclocal.m4: New file, cached macros.
6449 * bootstrap.sh: New file, calls required autotools in appropriate
6450 order.
6451 * Makefile.am: New file, input Makefile for automake.
6452 * Makefile,in: Now a generated file - regenerate.
6453 * configure: Regenerate.
6454 * configure.in: Add automake support.
6455 * inilex.l: Change VERSION to PACKAGEVERSION to avoid a collision with
6456 automake's VERSION define.
6457 * iniparse.y: Ditto.
6458
6459 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
6460
6461 * cdefs.h: New file, imported to allow getopt.c to build without
6462 cygwin headers.
6463 * getopt.h: New file, imported to allow building without cygwin headers.
6464 * getopt.c: Ditto.
6465 * bz2lib: New directory, contains copy of bz2lib.
6466 * cfgaux: New directory, contains autotool helper scripts.
6467 * Makefile,in: Adjust library and target definitions for building
6468 outside the sourceware tree.
6469 * compress_bz.h: Use new bz2lib header location.
6470 * mount.cc: Import key defines and enums to be independent of cygwin
6471 headers.
6472 * configure.in: Update to autoconf 2.53, and to be sourceware
6473 independent.
6474 * configure: Regenerate.
6475
6476 2002-04-12 Robert Collins <rbtcollins@hotmail.com>
6477
6478 * mklink2.cc (make_link_2): Tweak to work with current w32api
6479 headers.
6480
6481 2002-04-10 Pavel Tsekov <ptsekov@gmx.net>
6482
6483 * version.cc (canonicalize_version): Fix a call delete[]
6484 to delete the allocated address.
6485
6486 2002-03-29 Robert Collins <rbtcollins@hotmail.com>
6487
6488 * PickView.cc (PickView::set_headers): Set last_col correctly. Thanks
6489 to Ton van Overbeek for locating the bug area.
6490
6491 2003-03-27 Robert Collins <rbtcollins@hotmail.com>
6492
6493 * PickView.cc (PickView::insert_pkg): Be more generic with
6494 object use.
6495 (PickView::insert_category): Ditto.
6496 (PickView::~PickView): Create.
6497 * PickView.h (PickView::~PickView): Declare.
6498
6499 2003-03-27 Robert Collins <rbtcollins@hotmail.com>
6500
6501 * Makefile.in (OBJS): Add new commandline objects.
6502 * desktop.cc (NoShortCutsOption): New option code.
6503 (DesktopSetupPage::OnInit): Check whether to skip shortcuts.
6504 * desktop.h (NoShortCutsOption): New concrete command line option class.
6505 * main.cc (WinMain): Process command line options.
6506 * GetOption.h: New file, singleton command line class.
6507 * GetOption.cc: New file, implementation of the above.
6508 * Option.h : New file, abstract option for GetOption.
6509 * Option.cc: New file, implement constructor and destructor.
6510
6511 2002-03-26 Pavel Tsekov <ptsekov@gmx.net>
6512
6513 * mkdir.cc (mkdir_p): Stop processing if the path is exhausted.
6514
6515 2002-03-26 Ton van Overbeek <tvoverbe@cistron.nl>
6516
6517 * PickPackageLine.cc (PickPackageline::paint): Adjust clipping rectangle
6518 to textheight, so large fonts work.
6519
6520 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
6521
6522 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Don't translate
6523 symlinks.
6524
6525 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
6526
6527 * io_stream_cygfile.cc (cwd): New static for cwd storage.
6528 (io_stream_cygfile::normalise): New method.
6529 (io_stream_cygfile::io_stream_cygfile): Use it.
6530 (io_stream_cygfile::exists): Ditto.
6531 (io_stream_cygfile::remove): Ditto.
6532 (io_stream_cygfile::mklink): And again.
6533 (cygmkdir_p): Yes, again.
6534 (io_stream_cygfile::move): And once more.
6535 * io_stream_cygfile.h (io_stream_cygfile::normalise): Declare.
6536 (io_stream_cygfile::cwd): Ditto.
6537
6538 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
6539
6540 * package_meta.cc (package_meta::~package_meta): Remove duplicate.
6541 (CategoryPackage::~CategoryPackage): Ditto. (Thanks to Ton van
6542 Overbeek for the report).
6543 * mklink2.cc: Moved from mklink2.c to avoid 'not a prototype error'.
6544 Make g++ compatible.
6545 * mklink2.c: Remove.
6546 * site.cc (site_list_type::init): Delete the correct memory addres.
6547 Thanks to Pavel Tsekov for tracking this down.
6548
6549 2002-03-20 Robert Collins <rbtcollins@hotmail.com>
6550
6551 * win32.h: Only define alloca if it's not already.
6552
6553 2002-03-20 Robert Collins <rbtcollins@hotmail.com>
6554
6555 * package_meta.h (packamgemeta::trustp): Make 'test' choice leave
6556 installed packages alone.
6557 * README: Update with latest requests.
6558 * Various: MTC fixes from setup200202 branch.
6559
6560 2002-03-19 Christopher Faylor <cgf@redhat.com>
6561
6562 * Makefile.in (setup_version.c): Add back magic which allows detection
6563 of setup.exe version number.
6564
6565 2002-03-17 Robert Collins <rbtcollins@hotmail.com>
6566
6567 * PickPackageLine.cc (PickPackageLine::paint): Fix incorrect clip region
6568 calculation on win9x systems.
6569
6570 2002-03-16 Robert Collins <rbtcollins@hotmail.com>
6571
6572 * install.cc (install_one_source): Write the correct length of a string
6573 to the lst file (Thanks to Pavel Tsekov for reporting the bug).
6574
6575 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
6576
6577 * choose.cc (list_click): Always refresh the entire chooser, as our
6578 package state change mechanism is broken with the new improved list
6579 classes.
6580
6581 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
6582
6583 * desktop.cc (make_passwd_group): Check for .lnk suffix on /etc/passwd
6584 and /etc/group.
6585
6586 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
6587
6588 * PickPackageLine.cc (PickPackageLine::DrawCheck): New method factored
6589 out from paint().
6590 (PickPackageLine::paint): Use DrawCheck to draw the src tick box, and
6591 the new bin tickbox.
6592 (PickPackageLine::click): Handle the new bin tickbox.
6593 * PickPackageLine.h (PickPackageLine::DrawCheck): Declare this.
6594 * PickView.cc (pkg_headers): Add a Bin? column.
6595 (cat_headers): Ditto.
6596 (PickView::set_headers): Ditto.
6597 (PickView::init_headers): Ditto.
6598 * PickView.h (PickView): Ditto.
6599 * choose.cc (list_click): Use the new name for src_col to set the clip
6600 rectangle.
6601
6602 2002-02-24 Michael A Chase <mchase@ix.netcom.com>
6603
6604 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Fix up Robert's
6605 fixup.
6606
6607 2002-02-24 Michael A Chase <mchase@ix.netcom.com>
6608
6609 * desktop.cc (make_link): Add "file://" prefix to io_stream::mkpath_p()
6610 call.
6611 (make_passwd_group): Ditto.
6612 * localdir.cc (save_local_dir): Ditto.
6613 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Wrap long lines.
6614 Add "cygfile://" prefix to io_stream::open() calls.
6615
6616 2002-02-24 Robert Collins <rbtcollins@hotmail.com>
6617
6618 * log.cc (log_save): Fix creating /var/log.
6619 * packate_meta.cc (standard_dirs): Remove duplicate '/''s.
6620
6621 2002-02-24 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
6622
6623 * res.rc (STRINGTABLE): Add IDS_CYGWIN_SETUP and
6624 IDS_CYGWIN_SETUP_WITH_PROGRESS strings.
6625 * resource.h: Add IDS_CYGWIN_SETUP and
6626 IDS_CYGWIN_SETUP_WITH_PROGRESS IDs.
6627
6628 * splash.cc (OnInit): Qualify SetWindowText() call with global scope
6629 operator (::SetWindowText()).
6630
6631 * threebar.cc: Run indent.
6632 (cistring.h): Add include.
6633 (SetText1, SetText2, SetText3): Qualify SetWindowText() call with
6634 global scope operator.
6635 (SetBar2): Add logic for writing percent complete into window title.
6636
6637 * window.h: Run indent.
6638 (SetWindowText): New function.
6639 (String): Add forward declaration.
6640 * window.cc: Run indent.
6641 (String++.h): Add include.
6642 (SetWindowText): New function.
6643
6644 2002-02-24 Robert Collins <rbtcollins@hotmail.com>
6645
6646 * README: Update TODO list.
6647 * install.cc (install_one): Fix src package location.
6648 (do_install_thread): Fix creating directories.
6649
6650 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
6651
6652 * choose.cc: Include cygpackage.h for scan2 use.
6653 (set_existence): Ignore setup.ini mirrors when installing from cwd.
6654 (scan2): Process any valid file.
6655 Add cache entries when a file matching a setup.ini listed version is
6656 found.
6657 * filemanip.cc (parse_filename): Remove pkgtar - not used anywhere else.
6658 * filemanip.h (filemanip::pkgtar): Remove.
6659 * package_meta.cc (CategoryPackage::~CategoryPackage): New method.
6660 (packagemeta::~packagemeta): Move from package_meta.h
6661 Remove and delete all version and category information.
6662 * package_meta.h (CategoryPackage): Create a destructor.
6663 (packagemeta::~packagemeta): Move to .cc file.
6664
6665 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
6666
6667 * install.cc (install_one_source): Make NULL cached package names cause
6668 errors.
6669
6670 2002-02-18 Michael A Chase <mchase@ix.netcom.com>
6671
6672 * desktop.cc (make_passwd_group): Don't create passwd-grp.bat
6673 unnecessarily.
6674
6675 2002-02-18 Michael A Chase <mchase@ix.netcom.com>
6676
6677 * log.cc (log_save): Put "\n" at end of log lines instead of "'".
6678
6679 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
6680
6681 * mount.cc (create_mount): Avoid a const char*->char* warning.
6682 (read_mounts): Ditto.
6683
6684 2002-02-05 Jason Tishler <jason@tishler.net>
6685
6686 * download.cc (do_download_thread): Fix off-by-one error.
6687
6688 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
6689
6690 * configure.in (CXXFLAGS): Substitute at configure time, not runtime.
6691 * configure (CXXFLAGS): Regenerate.
6692 * Makefile.in (iniparse.o): Build via default rules - no errors now.
6693 * README: TODO list updates.
6694
6695 2002-02-19 Michael A Chase <mchase@ix.netcom.com>
6696
6697 * String++.cc (String::concat):: Remove.
6698 (String::vconcat):: Ditto.
6699 * String++.h (String::concat):: Remove.
6700 (String::vconcat):: Ditto.
6701 * archive_tar.cc: Don't include concat.h.
6702 * archive_tar_file.cc: Don't include concat.h.
6703 * compress_bz.cc (compress_bz::peek): Don't log unneeded messages.
6704 (compress_bz::seek): Ditto.
6705 (compress_bz::~compress_bz): Ditto.
6706 * compress_gz.cc (compress_gz::peek): Ditto.
6707 (compress_gz::error): Ditto.
6708 (compress_gz::~compress_gz): Ditto.
6709 * concat.cc (vconcat): Remove.
6710 (concat): Ditto.
6711 * concat.h (vconcat): Remove.
6712 (concat): Ditto.
6713 * desktop.cc (desktop_icon): Use new cygpath.
6714 (make_etc_profile): Ditto.
6715 (uexists): Ditto.
6716 (make_passwd_group): Ditto.
6717 (save_icon): Ditto.
6718 (check_desktop): Remove concat use.
6719 (check_start_menu): Ditto.
6720 * download.cc (download_one): Use new mkpath_p correctly.
6721 Use LOG_PLAIN.
6722 * fromcwd.cc: Don't include concat.h.
6723 * geturl.cc (get_url_to_membuf): Use String log() call.
6724 (get_url_to_file): Ditto.
6725 * install.cc: Don't include concat.h.
6726 (uninstall_one): Use LOG_PLAIN.
6727 (replace_one): Ditto.
6728 (install_one_source): Ditto.
6729 (install_one): More char to String conversion.
6730 (do_install_thread): Use new cygpath.
6731 Use new create_mount.
6732 * io_stream.cc (io_stream::move): Use new log().
6733 * io_stream_cygfile (io_stream_cygfile::io_stream_cygfile): Use new
6734 cygpath.
6735 (io_stream_cygfile::exists): Ditto.
6736 (io_stream_cygfile::remove): Ditto.
6737 (io_stream_cygfile::mklink): Ditto.
6738 (io_stream_cygfile::write): Ditto.
6739 (cygmkdir_p): Ditto.
6740 (io_stream_cygfile::move): Ditto.
6741 * io_stream_file.cc: Don't include log.h.
6742 (io_stream_file::write): Don't log unneeded messages.
6743 * localdir.cc: Don't include concat.h.
6744 (LocalDirPage::OnNext): Use LOG_PLAIN.
6745 * log.cc: Don't include log.h.
6746 (exit_setup): Use new cygpath.
6747 * log.h (log_level): Add new level LOG_PLAIN.
6748 * main.cc (WinMain): Use new log().
6749 * mount.cc (SLASH_P): New macro from concat.h.
6750 (cygpath): Make String version globally visible.
6751 Remove varargs version.
6752 * mount,h: Ditto.
6753 * msg.cc (mbox): Use LOG_PLAIN.
6754 * net.cc (NetPage::OnNext): Ditto.
6755 * nio-ftp.cc (ftp_line): Use new log().
6756 * nio-http.cc: Don't include log.h.
6757 (retry_get): Use alternative url variable.
6758 * package_db.cc: Don't include concat.h.
6759 (packagedb::flush): Don't use concat.
6760 * package_meta.cc: Don't include concat.h.
6761 (packagemeta::uninstall): Use new cygpath.
6762 * postinstall.cc (do_postinstall): Ditto.
6763 * root.cc (RootPage::OnNext): Use LOG_PLAIN.
6764 * script.cc: Don't include concat.h.
6765 (init_run_script): Use new cygpath.
6766 (run_script): More char * to String conversion.
6767 (try_run_script): Ditto.
6768 * site.cc: Don't include concat.h.
6769 (SitePage::OnNext): Use LOG_PLAIN.
6770 (SitePage::OnMessageCmd): Use new log().
6771 * source.cc (SourcePage::OnDeactivate): Use LOG_PLAIN.
6772
6773 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
6774
6775 * Makefile.in (OBJS): Add new object.
6776 * PickCategoryLine.cc (PickCategoryLine::paint): Print a "+" before the
6777 name.
6778 * PickCategoryLine.h (PickCategoryLine::bucket): Use the String class.
6779 * PickLine.h (Pickline::key): Change to a String to help plug leaks.
6780 (PickLine::Pickline): Accept a String for the key.
6781 * PickPackageLine.cc (PickPackageLine::paint): Convert all char use to
6782 Strings.
6783 * PickPackageLine.h (PickPackageLine::PickPackageLine): The key is
6784 automatically initialised now.
6785 * PickView.cc (PickView::note_width): Convert all char * use to Strings.
6786 (PickView::init_header): Move category length checking out of the inner
6787 loop for efficiency.
6788 Convert all char use to Strings.
6789 * PickView.h: Include the String++ header.
6790 (PickView::note_width): Update the prototype.
6791 * String++.cc: New file, implements a reference counting string class.
6792 * String++.h: New file, declares a reference counting string class.
6793 * archive.cc: Include String++ instead of concat.
6794 (archive::extract_file): Convert char * usage to Strings.
6795 * archive.h: Inlude the String++ header.
6796 (archive::extract_file): Update prototype.
6797 (archive::next_file_name): Convert to a String.
6798 (archive::linktarget): Ditto.
6799 * archive_tar.cc (archive_tar::next_file_name): Convert to String usage.
6800 (archive_tar::linktarget): Ditto.
6801 * arhive_tar.h: Update the copyright.
6802 Explicitly include the relevant headers.
6803 (tar_map_result_type): Convert to String usage.
6804 (archive_tar::next_file_name): Update prototype.
6805 (archive_tar::linktarget): Ditto.
6806 * category.cc (Category::Category): Update initialisers.
6807 Convert to String usage.
6808 (Categorycmp): Update to String usage.
6809 * category.h: Include the String++ header.
6810 (Category::Category): Update to String usage.
6811 (Category::name): Ditto.
6812 (Category::key): Ditto.
6813 * choose.cc: Remove concat.h, it's not needed.
6814 (scan2): Update to String usage.
6815 (do_choose): Ditto.
6816 * cygpackage.cc: Update includes for use of String class.
6817 (cygpackage::cygpackage): Update for String usage.
6818 (cygpackage::set_canonical_version): Ditto.
6819 (cygpackage::destroy): Ditto.
6820 (cygpackage::getfirstfile): Ditto.
6821 (cygpackage::getnextfile): Ditto.
6822 (cygpackage::Name): Ditto.
6823 (cygpackage::Vendor_version): Ditto.
6824 (cygpackage::Package_version): Ditto.
6825 (cygpackage::Canonical_version): Ditto.
6826 (cygpackage::set_sdesc): Ditto.
6827 (cygpackage::set_ldesc): Ditto.
6828 * cygpackage.h: Include String++.h for parsing this file.
6829 (cygpackage::cygpackage): Update for String usage.
6830 (cygpackage::set_canonical_version): Ditto.
6831 (cygpackage::destroy): Ditto.
6832 (cygpackage::getfirstfile): Ditto.
6833 (cygpackage::getnextfile): Ditto.
6834 (cygpackage::Name): Ditto.
6835 (cygpackage::Vendor_version): Ditto.
6836 (cygpackage::Package_version): Ditto.
6837 (cygpackage::Canonical_version): Ditto.
6838 (cygpackage::set_sdesc): Ditto.
6839 (cygpackage::set_ldesc): Ditto.
6840 (cygpackage::name): Ditto.
6841 (cygpackage::vendor): Ditto.
6842 (cygpackage::packagev): Ditto.
6843 (cygpackage::canonical): Ditto.
6844 (cygpackage::fn): Ditto.
6845 (cygpackage::sdesc): Ditto.
6846 (cygpackage::ldesc): Ditto.
6847 * desktop.cc: Update includes for use of String class.
6848 (batname): Update for String usage.
6849 (iconname): Ditto.
6850 (make_link): Ditto.
6851 (start)menu): Ditto.
6852 (desktop_icon): Ditto.
6853 (make_cygwin_bat): Ditto.
6854 (make_etc_profile): Ditto.
6855 (uexists): Ditto.
6856 (make_passwd_group): Ditto.
6857 (save_icon): Ditto.
6858 (check_desktop): Ditto.
6859 (check_startmenu): Ditto.
6860 * dialog.cc (eget): Update for String usage.
6861 (egetString): New function.
6862 (eset): New variant for Strings.
6863 * dialog.h: Include String++.h for parsing this file.
6864 (egetString): New function.
6865 (eset): New variant for Strings.
6866 * diskfull.cc (diskfull): Update for String usage.
6867 * diskfull.h: Include String++.h for parsing this file.
6868 (diskfull): Update for String usage.
6869 * download.cc: Update includes for use of String class.
6870 (check_for_cached): Update for String usage.
6871 (download_one): Ditto.
6872 * filemanip.cc (get_file_size): Ditto.
6873 (base): Ditto.
6874 (parse_filename): Ditto.
6875 (backslash): Ditto.
6876 * filemanip.h: Include String++.h for parsing this file.
6877 (fileparse): Update for String usage.
6878 (base): Ditto.
6879 (parse_filename): Ditto.
6880 Don't consider '_' to be a separator.
6881 (backslash): Ditto.
6882 * find.cc: Update includes for use of String class.
6883 (find_sub): Make more flexible.
6884 (find): Update for String usage.
6885 * find.h (find): Use Strings.
6886 * fromcwd.cc (found_file): Update for String usage.
6887 * geturl.cc: Ditto.
6888 (init_dialog): Ditto.
6889 (get_url_to_membuf): Ditto.
6890 (get_url_to_string): Ditto.
6891 (get_url_to_file): Ditto.
6892 * geturl.h: Ditto.
6893 (get_url_to_membuf): Ditto.
6894 (get_url_to_string): Ditto.
6895 (get_url_to_file): Ditto.
6896 * hash.h: Ditto.
6897 (add_subdirs): Ditto.
6898 * ini.cc: Update includes for String usage.
6899 (find_routine): Update for String usage.
6900 (do_remote_ini): Ditto.
6901 (do_ini_thread): Ditto.
6902 * ini.h (ini_init): Ditto.
6903 * inilex.l: Update includes for String usage.
6904 (ini_init): Update for String usage.
6905 * iniparse.y: Ditto.
6906 (add_correct_version): Ditto.
6907 * install.cc: Update includes for String usage.
6908 (install_one_source): Update for String usage.
6909 (uninstall_one): Ditto.
6910 (replace_one): Ditto.
6911 (install_one_source): Ditto.
6912 (do_install_thread): Ditto.
6913 * io_stream.cc: Update includes for String usage.
6914 (io_stream::open): Update for String usage.
6915 (io_stream::mkpath_p): Ditto.
6916 (io_stream::remove): Ditto.
6917 (io_stream::mklink): Ditto.
6918 (io_stream::move_copy): Ditto.
6919 (io_stream::move): Ditto.
6920 (io_stream::exists): Ditto.
6921 * io_stream.h: Update includes to allow correct parsing.
6922 (io_stream::open): Update for String usage.
6923 (io_stream::mkpath_p): Ditto.
6924 (io_stream::remove): Ditto.
6925 (io_stream::mklink): Ditto.
6926 (io_stream::move_copy): Ditto.
6927 (io_stream::move): Ditto.
6928 (io_stream::exists): Ditto.
6929 * io_stream_cygfile.cc: Update includes for String usage.
6930 (get_root_dir_now): Update for String usage.
6931 (io_stream_cygfile::io_stream_cygfile): Ditto.
6932 (io_stream_cygfile::~io_stream_cygfile): Ditto.
6933 (io_stream_cygfile::exists): Ditto.
6934 (io_stream_cygfile::remove): Ditto.
6935 (io_stream_cygfile::mklink): Ditto.
6936 (cygmkdir_p): Ditto.
6937 (io_stream_cygfile::set_mtime): Ditto.
6938 (io_stream_cygfile::move): Ditto.
6939 (io_stream_cygfile::get_size): Ditto.
6940 * io_stream_cygfile.h: Update includes for String usage.
6941 (io_stream_cygfile::io_stream_cygfile): Update for String usage.
6942 (io_stream_cygfile::~io_stream_cygfile): Ditto.
6943 (io_stream_cygfile::exists): Ditto.
6944 (io_stream_cygfile::remove): Ditto.
6945 (io_stream_cygfile::mklink): Ditto.
6946 (cygmkdir_p): Ditto.
6947 (io_stream_cygfile::set_mtime): Ditto.
6948 (io_stream_cygfile::move): Ditto.
6949 (io_stream_cygfile::get_size): Ditto.
6950 (io_stream_cygfile::fname): Ditto.
6951 (io_stream_cygfile::lmode): Ditto.
6952 * io_stream_file.cc: Update includes for String usage.
6953 (io_stream_file::io_stream_file): Update for String usage.
6954 (io_stream_file::~io_stream_file): Ditto.
6955 (io_stream_file::exists): Ditto.
6956 (io_stream_file::remove): Ditto.
6957 (io_stream_file::mklink): Ditto.
6958 (io_stream_file::set_mtime): Ditto.
6959 (io_stream_file::move): Ditto.
6960 (io_stream_file::get_size): Ditto.
6961 * io_stream_file.h: Update includes for String usage.
6962 * io_stream_file.cc: Update includes for String usage.
6963 (io_stream_file::io_stream_file): Update for String usage.
6964 (io_stream_file::~io_stream_file): Ditto.
6965 (io_stream_file::exists): Ditto.
6966 (io_stream_file::remove): Ditto.
6967 (io_stream_file::mklink): Ditto.
6968 (io_stream_file::set_mtime): Ditto.
6969 (io_stream_file::move): Ditto.
6970 (io_stream_file::get_size): Ditto.
6971 (io_stream_file::fname): Ditto.
6972 (io_stream_file::lmode): Ditto.
6973 * localdir.cc: Update includes for String usage.
6974 (save_local_dir): Update for String usage.
6975 (check_if_enable_next): Ditto.
6976 (load_dialog): Ditto.
6977 (browse_cb): Ditto.
6978 (LocalDirPage::OnInit): Ditto.
6979 (LocalDirPage::OnNext): Ditto.
6980 * log.cc: Update includes for String usage.
6981 (struct LogEnt): Update for String usage.
6982 (log): Ditto.
6983 (log_save): Ditto.
6984 (exit_setup): Ditto.
6985 * log.h: Update includes for String usage.
6986 (log_level): Update for String usage.
6987 (log): Ditto.
6988 (log_save): Ditto.
6989 * main.cc (WinMain): Update for String usage.
6990 * mklink2.c (make_link_2): Update for String usage.
6991 * mklink2.h (make_link_2): Update for String usage.
6992 * mount.cc: Update includes for String usage.
6993 (mount_table): Update for String usage.
6994 (find2): Ditto.
6995 (create_mount): Ditto.
6996 (remove1): Ditto.
6997 (remove_mount): Ditto.
6998 (read_mounts): Ditto.
6999 (set_root_dir): Ditto.
7000 (get_root_dir): Ditto.
7001 (path_prefix_p): Ditto.
7002 (cygpath): Ditto.
7003 * mount.h: Update includes for String usage.
7004 (create_mount): Update for String usage.
7005 (remove_mount): Ditto.
7006 (cygpath): Ditto.
7007 (set_root_dir): Ditto.
7008 (get_root_dir): Ditto.
7009 * msg.cc (mbox): Ditto.
7010 * net.cc (NetPage::OnNext): Ditto.
7011 * package_db.cc (packagedb::flush): Ditto.
7012 (packagedb::packages): Ditto.
7013 (packagedb::categories): Ditto.
7014 * package_db.h: Update includes for String usage.
7015 (packagedb::packages): Update for String usage.
7016 (packagedb::categories): Ditto.
7017 * package_meta.cc: Update includes for String usage.
7018 (hash::add_subdirs): Update for String usage.
7019 (packagemeta::uninstall): Ditto.
7020 (packagemeta::SDesc): Ditto.
7021 (packagemeta::action_caption): Ditto.
7022 * package_meta.h: Update includes for String usage.
7023 (packagemeta::packagemeta): Update for String usage.
7024 (packagemeta::~packagemeta): Ditto.
7025 (packagemeta::uninstall): Ditto.
7026 (packagemeta::SDesc): Ditto.
7027 (packagemeta::action_caption): Ditto.
7028 (package_source.cc site::site): Ditto.
7029 (packagesource::set_canonical): Ditto.
7030 (packagesource::set_cached): Ditto.
7031 * package_source.h: Update includes for String usage.
7032 (site::site): Update for String usage.
7033 (packagesource::set_canonical): Ditto.
7034 (packagesource::set_cached): Ditto.
7035 (packagesource::packagesource): Ditto.
7036 (packagesource::sites): Ditto.
7037 (packagesource::cached): Ditto.
7038 * package_version.h: Update includes for String usage.
7039 (Dependency): Update for String usage.
7040 (packageversion): Ditto.
7041 * postinstall.cc: Update includes for String usage.
7042 (do_postinstall): Update for String usage.
7043 * res.rc (IDD_LOCAL_DIR): Fix typo again!
7044 * rfc1738.cc (rfc1738_escape_part): Update for String usage.
7045 * rfc1738.h: Update includes for String usage.
7046 (rfc1738_escape_part): Update for String usage.
7047 * root.cc: Update includes for String usage.
7048 (check_if_enable_next): Update for String usage.
7049 (save_dialog): Ditto.
7050 (browse_cb): Ditto.
7051 (directory_is_absolute): Ditto.
7052 (directory_is_rootdir): Ditto.
7053 (directory_has_spaces): Ditto.
7054 (RootPage::OnInit): Ditto.
7055 (RootPage::OnNext): Ditto.
7056 * script.cc: Update includes for String usage.
7057 (init_run_script): Update for String usage.
7058 (run): Ditto.
7059 (run_script): Ditto.
7060 (try_run_script): Ditto.
7061 * script.h: Update includes for String usage.
7062 (run_script): Update for String usage.
7063 (try_run_script): Ditto.
7064 * site.cc site_list): Ditto.
7065 (all_site_list): Ditto.
7066 (other_url): Eliminate.
7067 (site_list_type::init): Update for String usage.
7068 (site_list_type::site_list_type): Ditto.
7069 (get_site_list): Ditto.
7070 (get_saved_sites): Ditto.
7071 (do_download_site_info_thread): Ditto.
7072 (SitePage::OnNext): Ditto.
7073 (SitePage::OnActivate): Ditto.
7074 (SitePage::PopulateListBox): Ditto.
7075 (SitePage::OnMessageCmd): Handle empty url's.
7076 * site.h: Update includes for String usage.
7077 (site_list_type::site_list_type): Update for String usage.
7078 (site_list_type::init): Ditto.
7079 (site_list_type::~site_list_type): Ditto.
7080 (site_list_type::url): Ditto.
7081 (site_list_type::displayed_url): Ditto.
7082 (site_list_type::key): Ditto.
7083 * source.cc (SourcePage::OnDeactivate): Ditto.
7084 * state.h: Update includes for String usage.
7085 (local_dir): Update for String usage.
7086 (trust_level): Remove.
7087 * version.cc: Update includes for String usage.
7088 (canonicalize_version): Update for String usage.
7089 * version.h: Update includes for String usage.
7090 (canonicalize_version): Update for String usage.
7091
7092 2002-02-15 Christopher Faylor <cgf@redhat.com>
7093
7094 * filemanip.c (parse_filename): Revert previous change.
7095
7096 2002-02-14 Christopher Faylor <cgf@redhat.com>
7097
7098 * filemanip.c (parse_filename): Don't treat '_' as a version number
7099 introducer.
7100
7101 2002-01-29 Christopher Faylor <cgf@redhat.com>
7102
7103 * configure: Regenerate.
7104
7105 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
7106
7107 * res.rc (IDD_LOCAL_DIR): Fix typo reported by Rene
7108 <Hoeck@extern.lrz-muenchen.de>
7109
7110 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
7111
7112 * README: Update Todo's.
7113 * list.h: Run indent.
7114 (list): New methods checksize and insert to reduce code duplication.
7115 (list::registerbykey): Use them.
7116 (list::registerbyobject): Ditto.
7117 (list::removebyindex): Copy each object individually - safe for non
7118 trivial objects.
7119 (list::checksize): Implement.
7120 (list::insert): Implement.
7121
7122 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
7123
7124 * Makefile.in: Remove the dlmalloc object by default.
7125 * install.cc (do_install_thread): Remove the mallinfo call for 'working
7126 around' the crashing issue.
7127 * package_db.h: Include <string.h> - it's needed to parse this.
7128 * package_source.cc (site::site): Move here from the header file.
7129 * package_source.h (site): Stop the constructor being inlinable.
7130
7131 2002-01-26 Robert Collins <rbtcollins@hotmail.com>
7132
7133 * filemanip.cc (find_tar_ext): Add a descriptive comment.
7134
7135 2002-01-25 Michael A Chase <mchase@ix.netcom.com>
7136
7137 * filemanip.cc (find_tar_ext): Clean up tests for .tar.gz and .tar.
7138 * fromcwd.cc (do_fromcwd): Expand FIXME comment in source file check.
7139 * install.cc (install_one_source): Add space between words in log()
7140 call.
7141
7142 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
7143
7144 * log.cc (exit_setup): When saving to the download dir, explicity
7145 specify the path.
7146
7147 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
7148
7149 * archive.cc (extract_file): Separate out the prefix and the URL
7150 scheme.
7151 * archive.h (archive::extract_file): Ditto.
7152 * install.cc (install_one_source): Ditto. Use the new
7153 archive::extract_file syntax.
7154 (replace_one): Use the new syntax.
7155 (io_stream.cc): Add some log info for links.
7156
7157 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
7158
7159 * PickCategoryLine.cc (PickCategoryLine::actiontext): Remove.
7160 (PickCategoryLine::paint): Use the new action method.
7161 (PickCategoryLine::click): Set the action for all children.
7162 (PickCategoryLine::set_action): New method.
7163 * PickCategoryLine.h (PickCategoryLine::-actions): Remove.
7164 (PickCategoryLine::current_default): Use packagemeta _actions class.
7165 * PickLine.h (PickLine::set_action): New abstract method that requires
7166 including package_meta.h.
7167 * PickPackageLine.cc (PickPackageLine::set_action): New method.
7168 * PickPackageLine.h (PickPackageLine::set_action): Declare this.
7169 * list.h (getbykey): A const correctness fix.
7170 * package_meta.cc: Run indent.
7171 (packagemeta::Default_action): New const.
7172 (packagemeta::Install_action): Ditto.
7173 (packagemeta::Reinstall_action): Ditto.
7174 (packagemeta::Uninstall_action): Ditto.
7175 (packagemeta::_actions::caption): New method.
7176 (packagemeta::_actions::operator++): Ditto.
7177 (packagemeta::set_action): New overload.
7178 * package_meta.h (packagemeta::_actions): New class.
7179 (packagemeta::set_action): Declare this.
7180
7181 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
7182
7183 * Makefile.in (OBJS): Remove supp.o - it appears accidental.
7184 * choose.cc: Don't define alloca anymore, it's done in win32.h
7185
7186 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
7187
7188 * PickPackageLine.cc: New file.
7189 * PickPackageLine.h: New file.
7190 * PickLine.cc: New file.
7191 * PickLine.h: New file.
7192 * PickCategoryLine.cc: New file.
7193 * PickCategoryLine.h: New file.
7194 * PickView.cc: New file.
7195 * PickView.h: New file.
7196 * Makefile.in: Add new objects to setup.exe.
7197 Backout -fno-exceptions option.
7198 * choose.cc: Include PickView.h.
7199 Remove view related defines and static variables.
7200 (_pkg_headers): Moved to PickView.cc.
7201 (_cat_headers): Ditto.
7202 (view::views::Unknown): Ditto.
7203 (view::views::PackageFull):
7204 (view::views::Package):
7205 (view::views::Category):
7206 (pkgtrustp): Moved to package_meta.cc.
7207 (add_required): Moved to package_meta.cc.
7208 (pick_category_line::empty): Moved to PickCategoryLine.cc
7209 (paint): Adjust for moved static variables.
7210 (view::scroll): Moved to PickView.cc.
7211 (list_vscroll): Adjust for moved static variables.
7212 (list_hscroll): Ditto.
7213 (list_click): Ditto.
7214 (note_width): Moved to PickView.cc.
7215 (view::view): Ditto.
7216 (view::set_view_mode): Ditto.
7217 (view::mode_caption): Ditto.
7218 (view::views::caption): Ditto.
7219 (view::set_headers): Ditto.
7220 (DoInsertItem): Ditto.
7221 (view::init_headers): Ditto.
7222 (view::insert_pkg): Ditto.
7223 (view::insert_category): Ditto.
7224 (view::clear_view): Ditto.
7225 (view::views::operator++): Ditto.
7226 (view::click): Ditto.
7227 (default_trust): Adjust for moved statics.
7228 (pick_pkg_line::paint): Moved to PickPackageLine.cc.
7229 (pick_pkg_line::click): Ditto.
7230 (pick_category_line::actiontext): Moved to PickCategoryLine.cc
7231 (pick_category_line::paint): Ditto.
7232 (pick_category_line::click): Ditto.
7233 (set_view_mode): Adjust for moved statics.
7234 (create_listview): Ditto.
7235 * choose.h: Remove Category and packagemeta forward defines -
7236 not needed.
7237 Don't include unneeded headers list and package_meta.
7238 (_header): Move to PickView.h.
7239 (pick_line): Move to PickLine.h.
7240 (pick_pkg_line): Move to PickPackageLine.h.
7241 (pick_category_line): Move to PickCategoryLine.h.
7242 (view): Move to PickView.h.
7243 * ini.h (trusts): Move to package_meta.h.
7244 * package_meta.h (trusts): New enum.
7245 (packagemeta::set_requirements): New helper method.
7246 (packagemeta::trustp): Ditto.
7247
7248 2002-01-21 Christopher Faylor <cgf@redhat.com>
7249
7250 * choose.h (view): Move forward declaration of views into public area
7251 or g++ v3 will complain.
7252
7253 2002-01-21 Christopher Faylor <cgf@redhat.com>
7254
7255 * Makefile.in (CXXFLAGS): Add -fno-exceptions.
7256 * win32.h (alloca): Define as __builtin_alloca.
7257 * io_stream_memory.cc: Add include file.
7258
7259 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
7260
7261 * archive_tar.cc (archive_tar::~archive_tar): Mark the stream as
7262 destroyed.
7263 * archive_tar_file.cc (archive_tar_file::~archive_tar_file): Ditto.
7264 * compress.cc (compress::~compress): Be less verbose.
7265 * compress_bz.cc (compress_bz::~compress_bz): Ditto.
7266 Mark the stream as destroyed.
7267 * compress_gz.cc (compress_gz::~compress_gz): Mark the stream as
7268 destroyed.
7269 * io_stream.cc (io_stream::~io_stream): Only warn when the stream is not
7270 marked as destroyed.
7271 * io_stream_cygfile.cc (io_stream_cygfile::~io_stream_cygfile): Mark the
7272 stream as destroyed.
7273 * io_stream_file.cc (io_stream_file::~io_stream_file): Ditto.
7274 * io_stream_memory.cc (io_stream_memory::~io_stream_memory): Ditto.
7275
7276 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
7277
7278 * Makefile.in (CFLAGS): Allow customisable malloc debug flags.
7279 (OBJS): Link in malloc objects.
7280 * category.cc (category): Use new char, not strdup.
7281 * choose.cc (pick_pkg_line::paint): Allow for the regionsize to shrink.
7282 (do_choose): Use new char, not malloc.
7283 * concat.cc (vconcat): Ditto.
7284 * cygpackage.cc (cygpackage): Use new char, not strdup.
7285 (set_canonical_version): Ditto.
7286 (cygpackage::destroy): Use delete[], not free.
7287 * desktop.cc (uexists): Ditto.
7288 * dialog.cc (egest): Use new char, not strdup.
7289 * dlmalloc.c: New file - Doug Lea's malloc 2.7.0
7290 * hash.cc (hash::hash): Use delete instead of free.
7291 (hash::add): Use new char, not strdup.
7292 * ini.cc (do_remote_ini): Use delete[] not free.
7293 * inilex.l: Use new char, not strdup.
7294 (ini_init): Ditto.
7295 * iniparse.y: Ditto.
7296 Use a local package_db rather than a static one.
7297 * install.cc (struct mallinfo): Workaround an apparent dlmalloc bug.
7298 (do_install_thread): Call mallinfo to force a consistency check. Appears
7299 to fix a 'inuse' error in -DDEBUG builds.
7300 Use delete[] for strings.
7301 * io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile): Use new
7302 char, not strdup.
7303 (io_stream_cygfile::~io_stream_cygfile): Use delete[], not free.
7304 (io_stream_cygfile::remove): Use new char, not strdup.
7305 * io_stream_file.cc (io_stream_file::io_stream_file): Use new char, not
7306 strdup.
7307 (io_stream_file::io_stream_file): Use delete[], not free.
7308 (io_stream_file::remove): Use new char, not strdup.
7309 * io_stream_memory.cc (memblock::~memblock): Use delete[], not free.
7310 * io_stream_memory.h (memblock): Use new char, not malloc.
7311 * localdir.cc (LocalDirPage::OnInit): Use new char, not strdup.
7312 * main.cc (WinMain): Use new char, not strdup.
7313 * mount.cc (find2): Use new char, not malloc.
7314 (read_mounts): Ditto.
7315 (cygpath): Use new char, not strdup.
7316 * netio.cc (NetIO::~NetIO): Use delete[], not free.
7317 (NetIO::set_url): Use new char, not strdup.
7318 (NetIO::get_ftp_auth): Use delete[], not free.
7319 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
7320 Use new char instead of strdup.
7321 * nio-http.cc (base64_encode): Use new char, not malloc.
7322 * package_meta.cc (hash::add_subdirs): Use new char instead of strdup.
7323 * package_source.h (~ packagesource): Use delete[] instead of delete.
7324 * port.h (strdup): Deprecate the use of strdup.
7325 * rfc1738.cc (rfc1738_do_escape): Use new char, not calloc.
7326 * script.cc (init_run_script): Us delete[], not free.
7327 (run_script): Ditto.
7328 * simpsock.cc (SimpleSocket::fill): Use new char, not malloc.
7329 (SimpleSocket::invalidate): Use delete[], not free.
7330 * site.cc (site_list_type::init): Use new char instead of strdup.
7331 * site.h (~site_list_type): Use delete[], not free.
7332
7333 2002-01-20 Robert Collins <rbtcollins@hotmail.com>
7334
7335 * Makefile.in (OBJS): Add win32.o - win32 support functions.
7336 * README: Update todos.
7337 * archive.cc (extract_file): Support a suffix for appending to extracted
7338 files.
7339 * archive.h: Ditto.
7340 * choose.cc (set_view_mode): Use the new view::views class.
7341 (view::views::Unknown): New static for defaulting view::views variables.
7342 (view::views::PackageFull): New static for the current view.
7343 (view::views::Package): Ditto.
7344 (view::views::Category): Ditto.
7345 (topbucket::paint): Remove.
7346 (topbucket::empty): Rename to pick_category_line::empty.
7347 (topbucket::~topbucket): Remove.
7348 (paint): Use the new view::views class.
7349 Don't paint 'all' as a category when showing package categoies.
7350 (pick_category_line::actiontext): New method.
7351 (pick_category_line::paint): Make showing the category optional, and
7352 show the 'category action'.
7353 (pick_category_line::click): Make showing the category optional, and
7354 differentiate between the name being clicked, and the action
7355 description.
7356 (view::view): Use the new view::views class.
7357 (view::set_view_mode): Ditto.
7358 (view::mode_caption): Ditto.
7359 (view::views::caption): New method.
7360 (view::set_headers): Use the new view::views class.
7361 (view::clear_view): Ditto.
7362 (viewsplusplus): Replaced by
7363 (view::views::operator++): New operator.
7364 (set_view_mode): Use the new view::views class.
7365 (create_listview): Ditto.
7366 (dialog_cmd): Ditto.
7367 * choose.h (actions): Remove.
7368 (views): Remove.
7369 (pick_line): Add a new convenience constructor.
7370 (top_bucket): Remove.
7371 (pick_category_line): Reparent under pick_line, and adsorb top_bucket.
7372 (view::views): New class.
7373 * ini.h: Don't include choose.h
7374 (is_download_action): Remove.
7375 (is_upgrade_action): Remove.
7376 (is_uninstall_action): Remove.
7377 (is_full_action): Remove.
7378 * install.cc (num_replacements): New static.
7379 (rebootneeded): Ditto.
7380 (replace_one): Handle upgrades separate from removal or new installs.
7381 (install_one_source): Handle in use files.
7382 (install_one): Don't repeat upgrades.
7383 (do_install_thread): Initialize new statics.
7384 Order actions as uninstall, replace, install.
7385 Warn about rebooting if needed.
7386 * res.rc (IDS_REBOOT_REQUIRED): New string.
7387 * resource.h (IDS_REBOOT_REQUIRED): Give value.
7388 * win32.h: Declare class Win32, and update copyright and intent message.
7389 * win32.cc: New file.
7390
7391 2002-01-15 Corinna Vinschen <corinna@vinschen.de>
7392
7393 * io_stream.cc (io_stream::gets): Eliminate trailing new line chars.
7394 * package_meta.cc (packagemeta::uninstall): Check for additional
7395 Windows shortcut. Unset R/O file attribute before trying to delete
7396 file.
7397
7398 2002-01-09 Robert Collins <rbtcollins@hotmail.com>
7399
7400 * choose.cc (pkgtrustp): Fall back to installed if a package is not
7401 present in the current trust level. For prev, fall back via curr.
7402 (set_existence): Allow sources with no sites, but cached files to be
7403 kept.
7404 (pick_category_line::paint): Start drawing clickable categories.
7405 * fromcwd.cc (found_file): Reinstate local file scanning.
7406
7407 2002-01-07 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
7408
7409 * fromcwd.cc: Run indent.
7410 (do_fromcwd): Reverse sense of comment. Set next_dialog
7411 to IDD_CHOOSER instead of IDD_CHOOSE.
7412 * ini.cc (find_routine): Remove "/" from "/setup.ini".
7413
7414 2001-01-07 Robert Collins <rbtcollins@hotmail.com>
7415
7416 * category.cc (Categorycmp): Add a const safe version.
7417 * category.h (Categorycmp): Add a const safe version.
7418 (Category): Add operator ==.
7419 * choose.cc (fill_missing_category): Add every package to "All".
7420 (pick_category_line::paint): Add support for hidden labels, and a tree
7421 depth.
7422 (pick_category_line::click): Ditto.
7423 (view::view): Pass in a top level category to use.
7424 (view::insert_pkg): Special case - skip category "All".
7425 (view::insert_category): Ditto.
7426 (view::clear_view): Set the contents label state.
7427 (create_listview): Pass in a top level category to view().
7428 * choose.h (topbucket): Make bucket available to derived classes.
7429 (pick_category_line): Add support for hidden labels, and a tree depth.
7430 Remove our second copy of bucket.
7431 (view): Pass in a top level category to the constructor.
7432 Use pick_category_line to allow three level display.
7433
7434 2001-01-06 Robert Collins <rbtcollins@hotmail.com>
7435
7436 * cygpackage.h (cygpackage): Make set_[s|l]desc virtual.
7437 * iniparse.y (add_correct_version): Copy descriptions across.
7438 * package_meta.cc (SDesc): Iterate through versions, return the first
7439 with a description.
7440 * package_version.h (packageversion): Add new virtuals set_[l|s]desc.
7441
7442 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
7443
7444 * script.cc (run_script): Change cygpath:// to cygfile://.
7445 * install.cc (do_install_thread): Fix off-by-one errors.
7446
7447 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
7448
7449 * package_db.cc (packagedb::flush): Fix an off-by-one error.
7450
7451 2002-01-04 Jan Nieuwenhuizen <janneke@gnu.org>
7452
7453 * Makefile.in (realclean): more clean.
7454 (OBJS): Add script.o.
7455 * postinstall.cc (run_script_in_etc_postinstall): New function.
7456 (do_postinstall): Split off new funtion init_run_script ().
7457 (init_run_script):
7458 (run):
7459 (run_script): Move to script.cc. Replace some deprecated remove
7460 and move calls.
7461 * script.h:
7462 * script.cc: New file.
7463 * Forward port cygwin-20010707.jcn3.patch.
7464 * package_meta.cc (uninstall): Run pre- and postremove scripts.
7465 * install.cc: Typo fix.
7466 (do_install): Run script initialisation.
7467
7468 2001-01-04 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
7469
7470 * cistring.cc: Run d2u.
7471 * cistring.h: Run d2u.
7472
7473 * desktop.cc (etc_profile): Remove "test -f ./.bashrc && . ./.bashrc"
7474 from the generated /etc/profile. Bash will source this file
7475 automatically, and having this here merely results in .bashrc being
7476 executed twice. Run d2u.
7477 * desktop.h: Run d2u.
7478
7479 * propsheet.cc: Run d2u.
7480 (PropSheetProc): New function. Add minimize box here instead of in
7481 PropertyPage::DialogProc.
7482 (PropSheet::Create): Change to use creation callback PropSheetProc.
7483 (DLGTEMPLATEEX): Add 'hidden' Windows struct definition.
7484
7485 * propsheet.h: Run indent, d2u.
7486 * proppage.h: Run indent, d2u.
7487
7488 * proppage.cc: Run d2u.
7489 (PropertyPage::DialogProc): Remove minimize-box-adding
7490 functionality. Remove commented-out "PropSheet_SetWizButtons" calls.
7491 Add support for calling virtual OnMessageCmd. Add setting of fonts in
7492 WM_INITDIALOG handler.
7493 (resource.h): New include for resource IDs.
7494
7495 * res.rc: Resize and rearrange property page dialog templates
7496 to bring them in line with "Microsoft's Backward Compatible Wizard 97"
7497 specification. Run d2u.
7498 (IDD_SITE): Add an edit control and an "Add" button in order to
7499 combine the IDD_SITE and IDD_OTHER_URL functionality onto one page.
7500 (IDD_OTHER_URL): Remove dialog template.
7501 (IDD_DLSTATUS): Remove dialog template.
7502
7503 * site.cc: Run d2u.
7504 (SitePage::OnBack): Remove NEXT() macro invocation.
7505 (SitePage::OnActivate): New member function.
7506 (load_dialog): Remove. Functionality subsumed into
7507 SitePage::OnActivate.
7508 (save_dialog): Change to support both list and user URLs. Remove
7509 OTHER_IDX and mirror_idx logic.
7510 (SitePage::PopulateListBox): New member function.
7511 (SitePage::CheckControlsAndDisableAccordingly): New member function.
7512 (SitePage::OnMessageCmd): New override.
7513 (check_if_enable_next): Remove.
7514 (dialog_cmd): Remove.
7515 (do_download_site_info_thread): Remove calls to NEXT() macro.
7516 (SitePage::Create): Call the single-param PropertyPage::Create
7517 overload.
7518 (other_url): New static taken from other.cc.
7519 (SitePage::OnNext): Remove mirror_idx logic.
7520 (SitePage::OnInit): Remove "Other URL" entry from list box. Remove
7521 list box populating code, now handled in SitePage::PopulateListBox.
7522 (mirror_idx, NO_IDX, OTHER_IDX): Remove.
7523 (save_site_url): Fix potential buffer overflow problem. Switched to
7524 TCHAR in grossly premature preparation for multilingual support.
7525 * site.h: Run d2u.
7526 (SitePage::OnActivate): New member function.
7527 (SitePage::CheckControlsAndDisableAccordingly) New member.
7528 (SitePage::OnMessageCmd): New override.
7529 (do_download_site_info_thread): Add MessageBox call on failure to
7530 download site list.
7531
7532 * splash.cc: Run d2u.
7533 (SplashPage::OnInit): Set the font for the title.
7534 * splash.h: Run d2u.
7535
7536 * threebar.cc: Run d2u.
7537 * threebar.h: Run d2u.
7538
7539 * window.h: Run d2u.
7540 (Window::IsButtonChecked): New member function declaration.
7541 (Window::OnMessageCmd): New member function.
7542 (Window::SetDlgItemFont): New member function declaration.
7543 (Window::MAXFONTS, Window::Fonts, Window::FontCounter): New data
7544 members.
7545 * window.cc: Run d2u.
7546 (Window::IsButtonChecked): New member function definition.
7547 (Window::SetDlgItemFont): New member function definition.
7548 (Window::Window): Add initialization for FontCounter.
7549 (Window::~Window): Delete any fonts we created.
7550
7551 * geturl.cc: Run d2u.
7552 (progress): Remove the "3" field width from the "%3d"
7553 percent-complete format indicator. Causes line to not start at
7554 beginning of text box, and does little to help with "jumping", since
7555 the "bytes downloaded so far" field is variable-width anyway. Change
7556 kb/s format field to "%03.1" to 0-pad the kb/s number in the event of
7557 painfully slow connections, or temporary slowdowns in faster
7558 connections should such more-instantaneous functionality become
7559 available.
7560
7561 * net.h: Run d2u.
7562 (NetPage::OnMessageCmd): New member function declaration.
7563 (NetPage::CheckIfEnableNext): New member function declaration.
7564 * net.cc: Run d2u.
7565 (NetPage::OnMessageCmd): New member function definition.
7566 (dialog_cmd): Remove, subsumed into NetPage::OnMessageCmd.
7567 (check_if_enable_next): Remove.
7568 (NetPage::CheckIfEnableNext): New member function, subsumes
7569 check_if_enable_next.
7570 (propsheet.h): Add include.
7571 (NetPage::Init): Add call to CheckIfEnableNext.
7572 (load_dialog): Remove call to check_if_enable_next.
7573 (NetPage::Create): Call single-template-ID-parameter overload of
7574 PropertyPage::Create instead of three-parameter one.
7575
7576 * Makefile.in (OBJS): Remove other.o.
7577 * other.cc: Remove file.
7578
7579 2002-01-01 Robert Collins <rbtcollins@hotmail.com>
7580
7581 * README: Update TODO's.
7582 * choose.cc (set_existence): Delete non installed packages with no
7583 mirrors.
7584 (fill_missing_category): Fix an off-by-one error.
7585 (default_trust): Ditto. Also delete any unused categories.
7586 (view::init_headers): Fix an off-by-one error.
7587 (set_view_mode): Ditto.
7588 (set_view_mode): Ditto.
7589 (create_listview): Ditto.
7590 (dialog_cmd): Ditto.
7591 (do_choose): Ditto.
7592 * io_stream.cc: Indent.
7593 * io_stream.h: Ditto.
7594 * package_db.cc: Ditto.
7595 * package_meta.h: Const correctness for SDesc ();
7596 * proppage.cc: Run d2u and indent.
7597 * propsheet.cc: Run d2u and indent.
7598 * window.cc: Run d2u and indent.
7599 * window.h: Run d2u and indent.
7600
7601 2001-12-28 Christopher Faylor <cgf@redhat.com>
7602
7603 * Makefile.in (iniparse.o): Accommodate newer bisons.
7604
7605 2001-12-23 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
7606
7607 * window.h (Window): New file, new class.
7608 * window.cc (Window): New file, new class.
7609
7610 * threebar.h (ThreeBarProgressPage): New file, new class.
7611 * threebar.cc (ThreeBarProgressPage): New file, new class.
7612
7613 * splash.h (SplashPage): New file, new class.
7614 * splash.cc (SplashPage): Replace file with implementation of new
7615 class.
7616
7617 * source.h (SourcePage): New file, new class.
7618 * source.cc: Run indent.
7619 (SourcePage): Add class implementation to this file.
7620 (do_source): Remove, functionality subsumed by SourcePage::Create()
7621 and SourcePage::OnDeactivate().
7622 (dialog_proc): Remove, functionality subsumed by
7623 SourcePage::OnActivate().
7624
7625 * site.h: Run indent.
7626 (SitePage): Add class declaration.
7627 * site.cc: Run indent.
7628 (SitePage): Add class implementation.
7629 (do_download_site_info_thread): New function.
7630 (context): New var. Context info for do_download_site_info_thread().
7631 (do_download_site_info): New function.
7632 (SitePage::Create, SitePage::OnInit SitePage::OnNext)
7633 (SitePage::OnBack): SitePage class implementation..
7634 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers, now handled
7635 by SitePage members.
7636 (dialog_proc): Remove, now handled by SitePage::OnInit and base class
7637 functionality.
7638 (do_site): Remove, now handled by do_download_site_info_thread() and
7639 SitePage::OnNext functionality.
7640 (get_site_list): Remove dismiss_url_status_dialog() call.
7641
7642 * root.h (RootPage): New file, new class.
7643 * root.cc: Run indent.
7644 (dialog_cmd): Pass parent HWND parameter to note(), yesno().
7645 (dialog_proc): Remove.
7646 (do_root): Remove
7647 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL clauses from switch.
7648 (RootPage::OnInit): New member function. Move get_root_dir() logic to
7649 here from do_root().
7650 (RootPage::Create): New member function.
7651 (RootPage::OnNext): New member function. Move IDOK logic from
7652 dialog_cmd() to here.
7653 (RootPage::OnBack): New member function.
7654
7655 * propsheet.h (PropSheet): New file, new class.
7656 * propsheet.cc (PropSheet): New file, new class.
7657
7658 * proppage.h (PropertyPage): New file, new class.
7659 * proppage.cc (PropertyPage): New file, new class.
7660
7661 * postinstall.cc (do_postinstall): Add owner parameter.
7662
7663 * other.cc (do_other): Add owner parameter.
7664
7665 * nio-file.cc (NetIO::Purl): Pass NULL parent param to note().
7666 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Pass NULL parent param to
7667 get_ftp_auth().
7668 * nio-http.cc (retry_get): Pass NULL parent param to get_auth(),
7669 get_proxy_auth(),
7670 and get_ftp_auth().
7671 * nio-ie5.cc (NetIO::_url): Pass NULL parent param to note(),
7672 get_auth(), get_proxy_auth().
7673
7674 * netio.h (get_auth, get_proxy_auth, get_ftp_auth): Add owner param.
7675 * netio.cc (auth_common, NetIO::get_auth, NetIO::get_proxy_auth,
7676 NetIO::get_ftp_auth)
7677 (auth_common): Add owner param. Pass owner param to DialogBox.
7678 (NetIO::get_auth, NetIO::get_proxy_auth, NetIO::get_ftp_auth): Pass
7679 owner param to auth_common().
7680
7681 * net.h (NetPage): New file, new class.
7682 * net.cc: Run indent.
7683 (net.h, threebar.h): Add includes.
7684 (Progress): Add extern.
7685 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, now handled by
7686 property sheet logic. Saved temporarily for reference.
7687 (NetPage::Create, NetPage::OnInit, NetPage::OnDeactivate,
7688 NetPage::OnNext, NetPage::OnBack):
7689 New implementation of NetPage class members.
7690 (do_net): Remove.
7691 (dialog_proc): Remove.
7692
7693 * msg.h (fatal, note, yesno): Add owner param.
7694 * msg.c (fatal, note, yesno, mbox): Add owner param.
7695 (mbox): Remove MB_TOPMOST from MessageBox call. Unnecessary and wrong
7696 now that we have a parent.
7697
7698 * main.cc: Run indent.
7699 (commctrl.h, proppage.h, propsheet.h, splash.h, source.h)
7700 (localdir.h, net.h, site.h, choose.h, threebar.h, desktop.h): Include
7701 headers.
7702 (root_dialog_proc): extern into this file.
7703 (Progress): Progress dialog defined here, used in several other files.
7704 (WinMain): Instantiate and create Splash, Source, Root, LocalDir, Net,
7705 Site, Chooser, Desktop pages and MainWindow sheet. Call
7706 InitCommonControls() to make sure Windows is set up for our use of
7707 property sheets. Add pages to sheet.
7708 Call MainWindow.Create() to "DoModal". Remove main loop, that logic is
7709 now handled by the PropSheet class.
7710 (root.h): Add include.
7711
7712 * log.cc (log_save): Pass NULL parent to fatal().
7713 (exit_setup): Pass NULL parent to note().
7714
7715 * localdir.h (LocalDirPage): New file, new class.
7716 * localdir.cc: Run indent.
7717 (localdir.h): New include.
7718 (threebar.h): New include.
7719 (Progress): extern into this file.
7720 (LocalDirPage::Create, LocalDirPage::OnInit, LocalDirPage::OnActivate)
7721 (LocalDirPage::OnNext, LocalDirPage::OnBack): Implementation of
7722 LocalDirPage.
7723 (LocalDirPage::OnNext): Move log() call from do_local_dir() to here.
7724 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers.
7725 (do_local_dir): Remove.
7726 (dialog_proc): Remove.
7727 (cwd): Remove, not used by anything.
7728
7729 * install.cc: Run indent.
7730 (process.h, threebar.h): New includes.
7731 (Progress): extern into this file.
7732 (ins_dialog, ins_action, ins_pkgname, ins_filename, ins_pprogress)
7733 (ins_iprogress, ins_diskfull, init_event): Remove, now handled by
7734 ThreeBarProgressPage.
7735 (dialog_cmd, dialog_proc, dialog): Removed, handled in
7736 ThreeBarProgressPage.
7737 (init_dialog): Remove all mention of the above ins_* handles. Now
7738 handled in ThreeBarProgressPage. Altered SetWindowText()s to call
7739 ThreeBarProgressPage instance Progress directly.
7740 (progress): Alter bar update logic to call ThreeBarProgressPage
7741 instance Progress directly.
7742 (uninstall_one): Alter SetWindowText()s to call ThreeBarProgressPage
7743 instance Progress directly.
7744 (install_one_source): Alter SetWindowText()s to call
7745 ThreeBarProgressPage
7746 instance Progress directly. Pass NULL parent to note().
7747 (do_install_thread): Rename from do_install(), added owner param.
7748 Alter SetWindowText()s to call ThreeBarProgressPage instance Progress
7749 directly.
7750 Remove dismiss_url_status_dialog() call, no longer necessary. Remove
7751 ShowWindow(<hide>) call, also unnecessary now. Pass owner handle to
7752 fatal().
7753 (do_install_reflector): New function.
7754 (do_install): New function.
7755
7756 * ini.cc (process.h, threebar.h): New includes.
7757 (Progress): externed into this file.
7758 (find_routine): Pass NULL parent to note().
7759 (do_local_ini): Add owner param.
7760 (do_remote_ini): Add owner param. Pass owner to get_url_to_membuf()
7761 and note(). Remove call to dismiss_url_status_dialog().
7762 (do_ini_thread): Rename from do_ini(). Add owner param. Pass owner to
7763 do_local_ini(), do_remote_ini(), yesno(), and note(). Set next_dialog
7764 to IDD_CHOOSER on exit.
7765 (do_ini_thread_reflector): New function.
7766 (context): New var. Context for do_ini_thread.
7767 (do_ini): New function.
7768
7769 * geturl.h (get_url_to_membuf, get_url_to_string, get_url_to_file): Add
7770 owner param.
7771 * geturl.cc (gw_dialog, gw_url, gw_rate, gw_progress, gw_pprogress,
7772 gw_iprogress)
7773 (gw_progress_text, gw_pprogress_text, gw_iprogress_text, init_event):
7774 Removed.
7775 (threebar.h): New include.
7776 (Progress): externed into this file.
7777 (dialog_cmd, dialog_proc, dialog): Removed, handled by
7778 ThreeBarProgressPage now.
7779 (init_dialog): Remove "if (gw_dialog == 0)" clause. Alter
7780 SetWindowText()s
7781 and bar setting SendMessage()s to call ThreeBarProgressPage instance
7782 Progress directly. Remove "one bar only" logic, this is now handled
7783 explicitly in the ThreeBarProgressPage class.
7784 (progress): Altered bar and text update logic to call
7785 ThreeBarProgressPage instance Progress directly. Changed kbps
7786 calculation to floating point and now print out a single decimal
7787 place.
7788 (get_url_to_membuf): Add owner param. Pass it to init_dialog.
7789 (get_url_to_string): Add owner param. Pass it to get_url_to_membuf.
7790 (get_url_to_file): Add owner param. Pass it to init_dialog. Alter bar
7791 update logic to call ThreeBarProgressPage instance Progress directly.
7792 (dismiss_url_status_dialog): Remove.
7793
7794 * fromcwd.cc (do_fromcwd): Add owner param. Initialize found_ini to
7795 false, was true.
7796
7797 * download.cc: Run indent.
7798 (process.h, threebar.h): New includes.
7799 (Progress): externed into this file.
7800 (download_one): Add owner param. Pass it to get_url_to_file().
7801 (do_download_thread): Renamed from do_download. Add owner param. When
7802 calculating total_download_bytes, take binpicked and srcpicked into
7803 account. Remove call to dismiss_url_status_dialog(), no longer needed.
7804 Pass owner handle to download_one() and yesno().
7805 (do_download_reflector, do_download): New functions.
7806 (context): New var. Context for do_download_thread().
7807
7808 * dialog.h (D(x)): Add owner param.
7809
7810 * desktop.h (DesktopSetupPage): New file, new class.
7811 * desktop.cc: Run indent.
7812 (desktop.h): Add include.
7813 (dialog_proc, do_desktop): Remove, now handled in
7814 DesktopSetupPage::OnInit().
7815 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, handled in
7816 DesktopSetupPage::OnFinish(), DesktopSetupPage::OnBack(), and PropSheet
7817 resp.
7818 (DesktopSetupPage::Create, DesktopSetupPage::OnInit)
7819 (DesktopSetupPage::OnBack, DesktopSetupPage::OnFinish): Implementation
7820 of DesktopSetupPage.
7821
7822 * cistring.h: New file, new class.
7823 * cistring.cc: New file, new class.
7824
7825 * choose.h: Run indent.
7826 (Chooser): New class declaration.
7827 * choose.cc: Run indent.
7828 (do_choose): Add owner param. Pass it to DialogBox() and
7829 fatal().
7830 (Chooser): New class implementation.
7831
7832 * res.rc (IDS_VERSION_INFO): New string.
7833 (IDD_SOURCE, IDD_LOCAL_DIR, IDD_ROOT, IDD_SITE, IDD_OTHER_URL)
7834 (IDD_DLSTATUS, IDD_INSTATUS, IDD_SPLASH, IDD_CHOOSE, IDD_DESKTOP):
7835 Change WS_POPUP to WS_CHILD. Numerous positioning/size changes
7836 throughout.
7837 (IDD_CHOOSE): Give template the WS_EX_CONTROLPARENT style to enable
7838 TAB control navigation etc. Give the controls a reasonable tab order.
7839 Grouped radio buttons. Something's still not right, can't tab away
7840 from back/next/cancel group reliably.
7841 * resource.h (IDD_CHOOSER): New dialog ID.
7842
7843 * Makefile.in (OBJS): Add cistring.o, proppage.o, propsheet.o,
7844 threebar.o, and window.o.
7845
7846 2001-12-21 Robert Collins <rbtcollins@hotmail.com>
7847
7848 * choose.cc (listview_proc): Update the scrollbar when the headers are
7849 dragged.
7850 (pick_pkg_line::paint): Clip columns to prevent overlap.
7851
7852 2001-12-20 Robert Collins <rbtcollins@hotmail.com>
7853
7854 * Makefile.in: Add libcomctl32.a for setup.exe.
7855 * archive.h (archive): Prevent non-child direct creation of the class.
7856 * archive_tar.h (archive_tar): Prevent inaccurate synthetic copy and
7857 assignment.
7858 * choose.cc: Include commctrl for the choose header.
7859 (NEW_COL_SIZE_SLOP): Define without magic numbers.
7860 (pkgtrustp): Convert to function.
7861 (set_action): Remove.
7862 (add_required, fill_missing_category,default_trust): Use list syntax for
7863 package list.
7864 Use new set_action.
7865 (choose_caption): Remove.
7866 (topbucket::paint): New method.
7867 (topbucket::empty): Ditto.
7868 (topbucket::click): Ditto.
7869 (topbucket::~topbucket): Ditto.
7870 (paint): Remove i,ii and p as they are obsolete.
7871 Remove header drawing code.
7872 Use new chooser method to paint the chooser.
7873 Use new chooser itemcount method.
7874 (scroll_common): Rename to view::scroll.
7875 Scroll the header window separately.
7876 (list_vscroll, list_hscroll, list_click): Update for new chooser
7877 methods.
7878 (listview_proc): Look for header messages.
7879 (note_width): Accept stringless calls.
7880 (pick_line::set_line): Remove.
7881 (pick_line::paint): Remove.
7882 (pick_pkg_line::paint): Paint this one line, using the header column
7883 widths.
7884 (pick_category_line::paint): Paint this category, and anything in the
7885 bucket.
7886 (pick_line::click): Remove.
7887 (pick_pkg_line::click): Handle a click.
7888 (pick_category_line::click): Handle a click.
7889 (_view): Rename all to view.
7890 (view::view): Initialise the control contents.
7891 (view::set_headers): Work with the header control.
7892 (view::init_headers): Use list syntax for package list.
7893 Rearrange the width logic a little.
7894 (view::insert_pkg): Update to use the hierarchy.
7895 (view::insert_category): Ditto.
7896 (view::insert_at, view::insert_under): Remove.
7897 (view::clear_view): Update to use the hierarchy.
7898 (view::click): Update to use the hierarchy.
7899 (set_view_mode): Use list syntax for package list.
7900 Update for new chooser methods.
7901 (DoInsertItem): New helper function. (Needs a home somewhere).
7902 (create_listview): Remove choose control code and use the constructor
7903 instead.
7904 (dialog_cmd,scan2,do_choose): Use list syntax for package list.
7905 * choose.h: Include newly required headers list and package_meta.
7906 (_voew): Rename to view.
7907 (pick_line): Convert to an ABC.
7908 (pick_pkg_line): New class.
7909 (pick_catgory_line): New class.
7910 (topbucket): New class.
7911 (view::scroll): New method created from listview_scroll function.
7912 * desktop.cc (make_passwd_group): Use list syntax for package list.
7913 * download.cc (do_download): Use list syntax for package list.
7914 * fromcwd.cc (found_file): Use list syntax for package list.
7915 * iniparse.y (pacakges): Use list syntax for package list.
7916 * install.cc (uninstall_one): Use list syntax for package list.
7917 (do_install): Use list syntax for package list.
7918 * io_stream.h (io_stream): Prevent non-child direct creation of the
7919 class.
7920 Prevent inaccurate synthetic copy and assignment.
7921 * list.h: Include required header stdlib.
7922 Work on const correctness.
7923 * package_db.cc (packagedb::getpackagebyname): Remove.
7924 (packagedb::packagedb): Remove custom list code, and make db a local.
7925 (packagedb::getfirstpackage): Remove.
7926 (packagedb::getnextpackage): Remove.
7927 (packagedb::addpackage): Remove.
7928 (flush): Remove custom list code.
7929 (packagedb::registerpackage): Remove.
7930 (packagedb::packages): New static member.
7931 (packagedb::task): New static member.
7932 * package_db.h (PackageDBActions): New enum.
7933 (packagedb): Remove getfirstpackage, getnextpackage, getpackagebyname,
7934 addpackage, registerpackage, packages, packagecount, curr_package, db.
7935 Add packages, task.
7936 * pacakge_meta.cc: Include package_db.h.
7937 (packagemeta::action_caption): New method.
7938 (packagemeta::set_action): New method.
7939 * package_meta.h (CategoryPackage): Initialise key.
7940 (packagemeta): Initialise key.
7941 Add set_action and action_caption methods.
7942 Prevent inaccurate synthetic copy and assignment.
7943 * resource.h (IDC_CHOOSE_LISTHEADER): New ID.
7944 * source.cc: Include package_db for db manipulation.
7945 (save_dialog): Set the db task.
7946 * win32.h: Tell the w32 include headers what IE version to
7947 expect/require.
7948
7949 2001-12-06 Robert Collins <rbtcollins@hotmail.com>
7950
7951 * README: Wishlist updates.
7952
7953 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
7954
7955 * package_db.cc (getnextpackage): Don't overrun the array.
7956
7957 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
7958
7959 * Makefile.in (OBJS): Add setup_version.o.
7960 (version.c): Rename to setup_version.
7961 * choose.cc (set_action): Prevent NULL pointer dereference.
7962 (package_sort): Remove.
7963 * fromcwd.cc (canonicalize_version): Moved to version.cc.
7964 (check_ini): New function for use with find to see if there is a cached
7965 setup.ini.
7966 (do_fromcwd): Check for a cached setup.ini from any mirror site.
7967 * ini.cc (find_routine): New function, for finding cached setup.ini's.
7968 (do_local_ini): New function, drives parsing of local ini's.
7969 (do_remote_ini): New function, drives parsing and caching of remote
7970 ini's.
7971 (do_ini): Move guts to do_remote_ini and do_local_ini.
7972 * list.h (removebyindex): New method.
7973 * other.cc (save_dialog): Use new site_list and all_site_list to add the
7974 new site to the site picklist.
7975 (dialog_cmd): Only save the dialog when exiting the dialog.
7976 * res.rc (IDD_SITE): Make IDC_URL_LIST a multiple-selection control.
7977 * site.cc (site_list_type): Move to site.h
7978 (site_list): New global, sites chosen by the user.
7979 (all_site_list): New global, all potential sites.
7980 (site_list_type::init): New method, parses a mirror.lst URL string into
7981 a site_list_type object.
7982 (site_list_type::site_list_type): New method.
7983 (check_if_enable_next): Examine the control, not a local variable.
7984 (load_dialog): Select all the user chosen sites by default.
7985 (save_dialog): Adjust for multiple selection semantics.
7986 (save_site_url): Save all user chosen sites.
7987 (dialog_cmd): Don't save the dialog when the listbox recieves a message
7988 - thats not needed.
7989 Remove obsolete other_url reference.
7990 (dialog_proc): Use all_site_list instead of site_list.
7991 (site_sort): Remove.
7992 (get_site_list): Remove malloc use - use list template instead.
7993 Move site_list_type initialisation to site_list_type::init().
7994 (get_initial_list_idx): Renamed to ...
7995 (get_saved_sites): this. Also read in multiple sites to the site_list.
7996 (do_site): Use all_site_list not site_list.
7997 Log all chosen sites.
7998 * site.h: New file, defines site related class, functions and variables.
7999 * state.h: Add comment about use of state.h
8000 (mirror_site): Remove.
8001 (other_url): Remove.
8002 (MIRROR_SITE): Remove.
8003 * version.cc: New file, for version-handling and related functions.
8004
8005 2001-12-02 Robert Collins <rbtcollins@hotmail.com>
8006
8007 * Makefile.in: Add filemanip.o to setup.
8008 * archive.cc (archive::extract_file): Use new io_stream method 'copy'.
8009 * archive_tar.h (archive_tar_file): Implement get_size virtual.
8010 (archive_tar): Ditto.
8011 * choose.cc (set_action): Use [] operator instead of getnth - its more
8012 readable.
8013 (paint): Ditto.
8014 (_view::init_headers): Ditto.
8015 (_view::insert_pkg): Ditto.
8016 (set_view_mode): Ditto.
8017 (scan2): Ditto.
8018 (do_choose): Ditto.
8019 (base): Moved to filemanip.cc.
8020 (find_tar_ext): Ditto.
8021 (parse_filename): Ditto.
8022 (_Info::_Info): Remove.
8023 * compress_bz.h (compress_bz): Implement get_size virtual.
8024 * compress_gz.h (compress_gz): Implement get_size virtual.
8025 * cygpackage.cc (cygpackage::destroy): Use array delete for char *
8026 objects.
8027 * download.cc (get_file_size): Move to filemanip.cc.
8028 (check_for_cached): Use [] operator instead of getnth - its more
8029 readable.
8030 (download_one): Ditto.
8031 * filemanip.cc: New file.
8032 * geturl.cc (init_dialog): Make url a pointer to const as it is not
8033 modified.
8034 (get_url_to_membuf): New function - contains get_url_to_string worker
8035 code.
8036 (get_url_to_string): Becomes a trivial wrapper to get_url_to_membuf.
8037 * geturl.h: Declare new prototype.
8038 * ini.cc (do_ini): Use get_url_to_membuf and pass ini_init an io_stream.
8039 Tidy up the error code a little.
8040 * ini.h: Remove __cplusplus protection for ini_init.
8041 (_Info): Remove.
8042 * inilex.l: Remove old globals.
8043 (ini_init): Use an io_stream for getting the characters.
8044 (ini_getchar): Ditto.
8045 * iniparse.y: Declare yylex as a C++ function.
8046 (add_correct_version): Use [] operator instead of getnth - its more
8047 readable.
8048 * io_stream.cc (io_stream::move_copy): Use the copy method.
8049 (io_stream::copy): New method to simply copy from one stream to another.
8050 * io_stream.h (io_stream): New static method copy, and virtual method
8051 get_size.
8052 * io_stream_cygfile.cc (io_stream_cygfile::get_size): Implement this.
8053 * io_stream_cygfile.h (io_stream_cygfile::get_size): Declare this.
8054 * io_stream_file.cc (io_stream_file::get_size): Implement this.
8055 * io_stream_file.h (io_stream_file::get_size): Declare this.
8056 * io_stream_memory.h: Include errno as it's neded to parse the header.
8057 (io_stream_memory::get_size): Implement this.
8058 (io_stream_memory::st_size): Delete this.
8059 * list.h: Change getnth into the [] operator.
8060 * netio.cc (NetIO::NetIO): Change prototype to reflect Purl not being
8061 modified.
8062 (NetIO::set_url): Ditto.
8063 (NetIO::open): Ditto.
8064 * netio.h: As for netio.cc.
8065 * nio-file.cc (NetIO_File::NetIO_File): Change prototype to reflect
8066 Purl not being modified.
8067 * nio-file.h: Ditto.
8068 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
8069 * nio-ftp.h (NetIO_FTP::NetIO_FTP): Ditto.
8070 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Ditto.
8071 * nio-http.h (NetIO_HTTP::NetIO_HTTP): Ditto.
8072 * nio-i5.cc (NetIO_IE5::NetIO_IE5): Ditto.
8073 * nio-i5.h (NetIO_IE5::NetIO_IE5): Ditto.
8074 * package_meta.cc (packagemeta::~packagemeta): Bugfix: use array delete.
8075 * package_source.cc (packagesource::set_canonical): Ditto.
8076 (packagesource::set_cached): Ditto.
8077 * package_source.h (site::~site): Ditto.
8078 * site.cc: Change site_list_type to a class, and search and replace
8079 sort_key to key globally.
8080
8081 2001-12-01 Robert Collins <rbtcollins@hotmail.com>
8082
8083 * package_source.cc (packagesource::set_canonical): Filename was out by
8084 one.
8085
8086 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
8087
8088 * Makefile.in (OBJS): Remove category_list - it's not needed.
8089 * README: More wishlist updates.
8090 * category.cc (Category::Category): Initialise new members.
8091 (Categorycmp): New function.
8092 * category.h (Category): New member key for template use.
8093 * category_list.cc: Remove.
8094 * category_list.h: Remove.
8095 (Categorycmp): New function prototype.
8096 * choose.cc: Remove category_list - not needed.
8097 (set_action): Only show the 'source' option when the source is actually
8098 available.
8099 (add_required): Fix recursion limiter to 5.
8100 (fill_missing_category): Use list access.
8101 (default_trust): Ditto.
8102 (pick_line::paint): Ditto.
8103 (_view::init_headers): Ditto.
8104 (_view::insert_pkg): Ditto.
8105 (_view::insert_category): Ditto.
8106 (_view::click): Ditto.
8107 (set_view_mode): Ditto.
8108 (do_choose): Ditto.
8109 * cygpackage.h: Remove category_list - not needed.
8110 * geturl.cc (get_url_to_string): Fix null byte insertion.
8111 * inipatse.y: Remove category_list - not needed.
8112 (categories): Use list access.
8113 * package_db.cc: Ditto.
8114 * package_db.h: Remove category_list - not needed.
8115 (packagedb): Use the list template for categories.
8116 * package_meta.cc (add_category): Ditto.
8117 * package_meta.h (CategoryPackage): Link to the category as well.
8118 (packagemeta): Use a list of CategoryPackages instead of Categories
8119 for more memory efficient cross-referencing.
8120
8121 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
8122
8123 * package_db.cc (packagedb::flush): Write a canonical version for all
8124 packages irrespective of the media they were installed from.
8125
8126 2001-11-29 Robert Collins <rbtcollins@hotmail.com>
8127
8128 * Makefile.in (OBJS): Add package_source and rfc1738.
8129 * README: Wishlist update.
8130 * category_list.cc (register_category): Use references.
8131 * category_list.h (CategoryList): Ditto.
8132 * choose.cc (isinstalled): Remove.
8133 (pkgtrustp): New macro.
8134 (set_action): Use packagemeta.
8135 (add_required): Ditto.
8136 (choose_caption): Example package to choose caption, rather than state
8137 flags.
8138 (check_existence): Remove.
8139 (set_existence): Remove old code.
8140 (fill_missing_category): Use packagemeta.
8141 (keep_or_skip): Remove.
8142 (default_trust): Use packagemeta and set trust values directly.
8143 (pick_line::set_line): Use packagemeta.
8144 (_view::insert_pkg): Ditto.
8145 (_view::insert_category): Ditto.
8146 (_view::click): Ditto.
8147 (set_view_mode): Ditto. Also remove "exclude" code.
8148 (create_listview): Use packagemeta.
8149 (dialog_cmd): Ditto.
8150 (getpkgbyname): Remove
8151 (scan2): Use packagemeta. Temporarily comment out the holefinding code.
8152 (read_installed_db): Remove.
8153 (package_sort): Use packagemeta.
8154 (do_choose): Use packagemeta. Don't sort the packages - the db does
8155 that.
8156 * choose.h: Use packagemeta.
8157 * cygpackage.cc (cygpackage::cygpackage): Initialise all variables.
8158 (cygpackage::cygpackage): Ditto.
8159 (cygpackage::set_canonical_version): Copy the passed string.
8160 (cygpackage::~cygpackage): Move cleanup code to destroy().
8161 (cygpackage::destroy): New function.
8162 (cygpackage::getfirstfile): Use a separate buffer.
8163 (cygpackage::getnextfile): Ditto.
8164 (cygpackage::Canonical_version): New function.
8165 (cygpackage::set_sdesc): Ditto.
8166 (cygpackage::set_ldesc): Ditto.
8167 * cygpackage.h (cygpackage::Canonical_version): New method.
8168 (cygpackage::set_sdesc): New method.
8169 (cygpackage::set_ldesc): New method.
8170 (cygpackage::SDesc): New method.
8171 (cygpackage::LDesc): New method.
8172 (cygpackage::set_canonical_version): New method.
8173 * desktop.cc: Include packagedb headers.
8174 (make_password_group): Use packagemeta.
8175 * download.cc: Include packagedb headers.
8176 (check_for_cached): New method to find any cached file and fill out the
8177 database info.
8178 (download_one): Take a packagesource, support multiple mirrors.
8179 (do_download): Use packagemeta.
8180 * from cwd.cc: Include packagedb headers.
8181 (found_file): Use packagemeta.
8182 * ini.cc (do_ini): Beginning of multiple-mirror support.
8183 * ini.h (CategoryPackage): Remove.
8184 (Dependency): Remove.
8185 (Package): Remove.
8186 (new_package,getpkgbyname,getpackagecategorybyname,add_category):
8187 Remove.
8188 * inilex.l: Support multiple mirrors.
8189 * iniparse.y: Include packagedb headers.
8190 (parser): Use packagemeta.
8191 (new_package): Remove.
8192 (add_correct_version): New function.
8193 (new_requirement): Remove.
8194 (add_category): Remove.
8195 * install.cc (uninstall_one): Use packagemeta.
8196 (install_one_source): New function.
8197 (install_one): Use packagemeta.
8198 (do_install): Use packagemeta.
8199 * io_stream.cc (io_stream::move): Bugfix on move/copy case.
8200 * io_stream_cygfile.cc (io-stream_cygfile::set_mtime): Do not reopen the
8201 file after setting the mtime, it makes no sense, and results in 0 length
8202 files.
8203 * io_stream_file.cc (io-stream_file::set_mtime): Ditto.
8204 * list.h: New file, template class for a form of list.
8205 * package_db.cc (packagedb::registerpackage): New function.
8206 * package_db.h (packagedb::npackages ()): New method.
8207 * package_meta.cc (packagemeta::add_version): Use list template.
8208 (packagemeta::set_installed): Ditto.
8209 (packagemeta::add_category): New method.
8210 * package_meta.h: Include necessary headers to parse the class.
8211 (CategoryPackage): New class.
8212 (packagemeta): Initialise all members.
8213 (packagemeta::SDesc): New method.
8214 (packagemeta::Categories): New method.
8215 (packagemeta::add_category): Ditto.
8216 (packagemeta::versions): Change to be a list instance.
8217 * package_source.cc (packagesource::set_canonical): New method.
8218 (packagesource::set_cached): New method.
8219 * package_source.h: Include necessary headers to parse the class.
8220 (site): New class.
8221 (packagesource::packagesource): Initialize all members.
8222 (packagesource): Make this class non-abstract.
8223 * package_version.cc (packageversion::packageversion): New method.
8224 * package_version.h (Dependency): New class.
8225 (packageversion::Canonical_vesion): New method.
8226 (packageversion::SDesc): New method.
8227 (packageversion::LDesc): New method.
8228 (packageversion::new_requirement): Ditto.
8229 (packageversion::srcpicked, binpicked): What to install.
8230 (packageversion::src, bin): Installation source data.
8231 * rfc1738.cc: New file. Escapes special characters in URL's.
8232 * rfc1738.h: Ditto.
8233
8234 2001-11-26 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
8235
8236 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Stop header parsing when
8237 SimpleSocket::gets() returns a zero-length string, so that we
8238 don't end up eating the entire stream thinking it's all header info.
8239
8240 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
8241
8242 * install.cc (badrename): Remove.
8243 (do_install): Use packagedb flush method to write
8244 /etc/setup/installed.db.
8245 * io_stream.cc (io_stream::move_copy): New method.
8246 (io_stream::move): New method.
8247 * io_stream.h (io_stream): New methods move and move_copy.
8248 * io_stream_cygfile.cc (io_stream_cygfile::move): New method.
8249 * io_stream_cygfile.h (io_stream_cygfile): New method move.
8250 * io_stream_file.cc (io_stream_file::move): New method.
8251 * io_stream_file.h (io_stream_file): New method move.
8252 * package_db.cc (packagedb::flush): New method.
8253 * package_db.h (packagedb): New method flush.
8254
8255 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
8256
8257 * Makefile.in (OBJS): Add package_version.
8258 * ategory.cc (Category::Category): Update constructors.
8259 * category_list.cc (CategoryList::register_category): Insert correctly.
8260 * choose.cc: Include package_version.h, not package.h.
8261 * cygpackage.cc: Ditto.
8262 (cygpackage::uninstall): New method.
8263 * cygpackage.h (cygpackage): Rename genericpackage to packageversion.
8264 New method uninstall.
8265 * hash.cc (add, has, enumerate): Change prototype to be accurate.
8266 * hash.h (hash): Change prototypes to be accurate.
8267 * ini.h (_Info): New parameterless constructor.
8268 (CategoryPackage): New constructor.
8269 (Package): Ditto.
8270 * install.cc: Don't include unneeded headers.
8271 Include package database headers.
8272 (hash::add_subdirs): Remove.
8273 (uninstall_one): Use packagemeta->uninstall to perform the
8274 uninstallation. Don't uninstall source packages.
8275 (do_install): Just can uninstall_one once as we ignore source packages
8276 now. Don't copy the installed.old database accross, instead iterate
8277 through the packagedb packages list and write the installed packages
8278 out.
8279 * package_db.cc: Include package_version.h, not package.h.
8280 (packagedb::packagedb): Never let db be undefined.
8281 Record the installation filename, so we can reconstruct installed.db.
8282 (packagedb::addpackage): Insert packages in alpha sorted order.
8283 (packagedb::categories): Initialise correctly.
8284 * package_meta.cc: Include win32 and mount headers as a workaround to
8285 current io_stream limitations. Include a TODO about that.
8286 (standard_dirs): New, from install.cc.
8287 (hash::add_subdirs): New, from install.cc.
8288 (packagemeta::set_installed): Rename genericpackage to packageversion.
8289 (packagemeta::uninstall): New method.
8290 * package_meta.h: Rename genericpackage to packageversion.
8291 (packagemeta): Update constructor.
8292 (add_version, set_installed): Rename genericpackage to packageversion.
8293 (uninstall): New method.
8294 (installed_from): New member.
8295 * package_source.cc: New file.
8296 * package_source.h: New file.
8297 * package_version.cc: New file.
8298 * package_version.h: New file.
8299 * package.cc: Removed.
8300 * package.h: Removed.
8301
8302 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
8303
8304 * Makefile.in (OBJS): Add category.o and category_list.o.
8305 * category.h: New file.
8306 * category.cc: New file.
8307 * category_list.h: New file.
8308 * category_list.cc: New file.
8309 * choose.cc: Include category headers.
8310 (fill_missing_category): Use package_db to access global categories.
8311 (_view::insert_pkg): Ditto.
8312 (_view::insert_category): Ditto.
8313 (set_view_mode): Ditto.
8314 (getcategorybyname): Remove.
8315 * cygpackage.h: Include category_list.h to parse this correctly.
8316 (cygpackage): New virtual &Categories.
8317 * ini.h (_CategoryPackage): More C to C++ conversion.
8318 (Category): Remove.
8319 (getcategorybyname): Remove.
8320 (register_category): Remove.
8321 * iniparse.y: Include package db and category headers.
8322 (categories): Use package_db to access global categories.
8323 (category): Remove.
8324 (ncategories): Remove.
8325 (register_category): Remove.
8326 * package.h: New virtual &Categories.
8327 * package_db.cc (packagedb::packagedb): Don't read the installed db
8328 twice.
8329 (packagedb::categories): Declare.
8330 * package_db.h (packagedb): New member categories for global categories
8331 list.
8332
8333 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
8334
8335 * choose.h: Don't include ini.h
8336 * ini.h: Allow pure c++ in the header file.
8337
8338 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
8339
8340 * install.cc (do_install): Write a version 2 installed.db file.
8341 * package_db.cc (packagedb::packagedb): Read version 1 and 2
8342 installed.db files.
8343
8344 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
8345
8346 * Makefile.in (OBJS): Add package abstraction objects.
8347 * choose.cc: Include package abstraction headers.
8348 (read_installed_db): Use packagedb class and ignore installed sources.
8349 * cygpackage.cc: New file.
8350 * cygpackage.h: New file.
8351 * filemanip.h (get_file_size): Use unixy types.
8352 * package.h: New file.
8353 * package.cc: New file.
8354 * package_db.cc: New file.
8355 * package_db.h: New file.
8356 * package_meta.cc: New file.
8357 * package_meta.h: New file.
8358
8359 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
8360
8361 * REAME: Updates to wishlist.
8362
8363 2001-11-16 Robert Collins <rbtcollins@hotmail.com>
8364
8365 * README: Updated and added my list of wishlist and todo items.
8366
8367 2001-11-14 Robert Collins <rbtcollins@hotmail.com>
8368
8369 * Makefile.in (OBJS): Include io_stream_memory in setup.exe.
8370 * archive_tar.cc (archive_tar::write): New prototype.
8371 (archive_tar::seek): New method.
8372 * archive.h (archive_tar_file): Update write() and add seek().
8373 (archive_tar): Ditto.
8374 * archive_tar_file.cc (archive_tar_file::write): New prototype.
8375 (archive_tar_file::seek): New method.
8376 * compress_bz.cc (compress_bz::write): New prototype.
8377 (compress_bz::seek): New function.
8378 * compress_bz.h (compress_bz): Update write() and add seek().
8379 * compress_gz.cc (compress_gz::write): New prototype.
8380 (compress_gz::seek): New function.
8381 * compress_gz.h (compress_gz): Update write() and add seek().
8382 * geturl.cc: Include io_stream headers.
8383 (GUBuf): Remove.
8384 (get_url_to_string): Use a io_stream_memory buffer instead of GUBuf.
8385 * io_stream.h (io_stream_seek_t): New enum.
8386 (io_stream): Update write() and add seek().
8387 * io_stream_cygfile.cc (io_stream_cygfile::write): New prototype.
8388 (io_stream_cygfile::seek): New function.
8389 * io_stream_cygfile.h (io_stream_cygfile): Update write() and add
8390 seek().
8391 * io_stream_file.cc (io_stream_file::write): New prototype.
8392 (io_stream_file::seek): New function.
8393 * io_stream_file.h (io_stream_file): Update write() and add seek().
8394
8395 2001-11-13 Brian Keener <bkeener@thesoftwaresource.com>
8396
8397 * localdir.cc: Add headers unistd.h and port.h.
8398 (save_local_dir): Expand search logic to include local directory for
8399 location of file last-cache.
8400 (dialog_cmd): Skip IDD_ROOT when downloading and use Back button.
8401 (do_local_dir): Expand search logic to include local directory for file
8402 last-cache.
8403 * res.rc (IDD_CHOOSE_DIALOG): Add hotkey to View button.
8404 * Source.cc (dialog_cmd): Skip IDD_ROOT if select Download from
8405 Internet.
8406 (do_source): Default to Install from Internet on first entry or
8407 previous selection if backing up from IDD_ROOT or IDD_LOCAL_DIR.
8408
8409 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
8410
8411 * choose.cc (find_tar_ext): Only match at the end of the string.
8412 (getpkgbyname): Prevent NULL pointer dereference.
8413
8414 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
8415
8416 * Makefile.in (CFLAGS): Add warnings and -Werr.
8417 (WARNONLY_FLAGS): For sources that produce (harmless) errors no matter
8418 what.
8419 (OBJS): Add io_stream class' objects.
8420 (autoload.o): Use WARNONLY_FLAGS.
8421 (inilex.o): Ditto.
8422 (iniparse.o): Ditto.
8423 * archive.cc: New file.
8424 * archive.h: New file.
8425 * archive_tar.cc: New file.
8426 * archive_tar.h: New file.
8427 * archive_tar_file.cc: New file.
8428 * autoload.c: Fix compiler warnings (unused, deprecated conversion).
8429 * choose.cc: Use io_stream.h, not mount.h.
8430 Run indent.
8431 (find_tar_ext): Rewritten to use strstr, and to accept .tar as an
8432 extension.
8433 (read_installed_db): Use io_streams.
8434 * choose.h: Run indent.
8435 * compress.cc: New file.
8436 * compress.h: New file.
8437 * compress_bz.cc: New file.
8438 * compress_bz.h: New file.
8439 * compress_gz.cc: New file.
8440 * compress_gz.h: New file.
8441 * concat.cc: Run indent.
8442 (cvsid): Fix compiler warnings (unused, deprecated conversion).
8443 * concat.h: Run indent.
8444 * desktop.cc: Run indent.
8445 Include mklink2.h rather than redefining by hand.
8446 (cvsid): Fix compiler warnings (unused, deprecated conversion).
8447 (etc_profile): Fix compiler warning (deprecated conversion).
8448 (make_link): Fix compiler warning (deprecated conversion).
8449 Tidy up use of args variable - consolidate into argbuf.
8450 (start_menu): Fix compiler warning (deprecated conversion).
8451 (desktop_icon): Fix compiler warning (deprecated conversion).
8452 (make_etc_profile): Fix compiler warning (deprecated conversion).
8453 (uexists): Fix compiler warning (deprecated conversion).
8454 (check_desktop): Fix compiler warning (deprecated conversion).
8455 (check_startmenu): Fix compiler warning (deprecated conversion).
8456 * dialog.cc: Run indent.
8457 (cvsid): Fix compiler warnings (unused, deprecated conversion).
8458 (fatal): Fix compiler warning (deprecated conversion).
8459 * dialog.h: Run indent.
8460 * diskfull.cc: Run indent.
8461 (cvsid): Fix compiler warnings (unused, deprecated conversion).
8462 * download.cc: Run indent.
8463 (cvsid): Fix compiler warnings (unused, deprecated conversion).
8464 (download_one): Fix compiler warning (signed vs unsigned comparison).
8465 * filemanip.h: Run indent.
8466 * find.cc: Run indent.
8467 (cvsid): Fix compiler warnings (unused, deprecated conversion).
8468 (find): Fix compiler warning (deprecated conversion).
8469 * find.h: Run indent.
8470 * fromcwd.cc: Run indent.
8471 * geturl.cc: Run indent.
8472 (cvsid): Fix compiler warnings (unused, deprecated conversion).
8473 (dialog_cmd): Return a value.
8474 (dialog_proc): Remove unused variables.
8475 Return a value.
8476 (get_url_to_file): Fix compiler warning (deprecated conversion).
8477 * geturl.h: Run indent.
8478 * hash.cc: Run indent.
8479 (cvsid): Fix compiler warnings (unused, deprecated conversion).
8480 * hash.h: Run indent.
8481 * ini.cc: Run indent.
8482 Use io_streams.
8483 (cvsid): Fix compiler warnings (unused, deprecated conversion).
8484 (do_ini): Use io_streams for local io.
8485 * ini.h: Run indent.
8486 * inilex.l (ignore_line): Fix compiler warning (is not a prototype).
8487 Fix compiler warning (brackets for truth assignment).
8488 * install.cc: Run indent.
8489 Fix compiler warning (/* in comment).
8490 Use io_streams.
8491 (cvsid): Fix compiler warnings (unused, deprecated conversion).
8492 (dialog_cmd): Return a value.
8493 (dialog_proc): Return a value.
8494 (start_tics): Deleted - was unused.
8495 (badrename): Fix compiler warnings (unused, deprecated conversion).
8496 (standard_dirs): Fix compiler warning (deprecated conversion).
8497 (exists): Remove.
8498 (uninstall_one): Convert to io_streams.
8499 (install_one): Convert to io_streams.
8500 (do_install): Convert to io_streans.
8501 Fix compiler warning (deprecated conversion).
8502 * io_stream.cc: New file.
8503 * io_stream.h: New file.
8504 * io_stream_cygfile.cc: New file.
8505 * io_stream_cygfile.h: New file.
8506 * io_stream_file.cc: New file.
8507 * io_stream_file.h: New file.
8508 * localdir.cc: Run indent.
8509 Use io_streams.
8510 (cvsid): Fix compiler warnings (unused, deprecated conversion).
8511 (get_root_dir_now): Remove.
8512 (save_local_dir): Convert to io_streams.
8513 (dialog_cmd): Return a value.
8514 (do_local_dir): Convert to io_streams.
8515 (log.cc): Run indent.
8516 (cvsid): Fix compiler warnings (unused, deprecated conversion).
8517 (log): Fix compiler warning (deprecated conversion).
8518 (log_save): Fix compiler warning (deprecated conversion).
8519 * log.h: Run indent.
8520 (log): Fix compiler warning (deprecated conversion).
8521 (log_save): Fix compiler warning (deprecated conversion).
8522 * main.cc: Run indent.
8523 Don't include "netio.h".
8524 (cvsid): Fix compiler warnings (unused, deprecated conversion).
8525 (netio_test): Remove.
8526 (sid_auth): Fix compiler warning (partially bracketed initialiser).
8527 (WinMain): Return a value.
8528 * mkdir.cc: Run indent.
8529 (cvsid): Fix compiler warnings (unused, deprecated conversion).
8530 * mklink2.c: Run indent.
8531 (cvsid): Fix compiler warnings (unused, deprecated conversion).
8532 (mkcygsymlink): New function.
8533 * mklink2.h: New file.
8534 * mount.cc: Run indent.
8535 (cvsid): Fix compiler warnings (unused, deprecated conversion).
8536 (create_mount): Remove unused variables.
8537 (cygpath): Fix compiler warning (signed vs unsigned comparison).
8538 * mount.h: Run indent.
8539 * msg.cc: Run indent.
8540 (cvsid): Fix compiler warnings (unused, deprecated conversion).
8541 (msg): Fix compiler warning (deprecated conversion).
8542 (mbox): Fix compiler warning (deprecated conversion).
8543 * msg.h: Run indent.
8544 (msg): Fix compiler warning (deprecated conversion).
8545 * net.cc: Run indent.
8546 (cvsid): Fix compiler warnings (unused, deprecated conversion).
8547 (dialog_cmd): Return a value.
8548 * netio.cc: Run indent.
8549 (cvsid): Fix compiler warnings (unused, deprecated conversion).
8550 (auth_cmd): Return a value.
8551 * netio.h: Run indent.
8552 * nio-file.cc: Run indent.
8553 (cvsid): Fix compiler warnings (unused, deprecated conversion).
8554 (NetIO_File::NetIO_File): Fix compiler warning (deprecated conversion).
8555 * nio-file.h: Run indent.
8556 * nio-ftp.cc: Run indent.
8557 (cvsid): Fix compiler warnings (unused, deprecated conversion).
8558 * nio-ftp.h: Run indent.
8559 * nio-http.cc: Run indent.
8560 (cvsid): Fix compiler warnings (unused, deprecated conversion).
8561 * nio-http.h: Run indent.
8562 * nio-ie5.cc: Run indent.
8563 (cvsid): Fix compiler warnings (unused, deprecated conversion).
8564 * nio-ie5.h: Run indent.
8565 * other.cc: Run indent.
8566 (cvsid): Fix compiler warnings (unused, deprecated conversion).
8567 (dialog_cmd): Return a value.
8568 * port.h: Run indent.
8569 * postinstall.cc: Run indent.
8570 (cvsid): Fix compiler warnings (unused, deprecated conversion).
8571 (cmd): Fix compiler warning (deprecated conversion).
8572 (eun): Fix compiler warning (deprecated conversion).
8573 * root.cc: Run indent.
8574 (cvsid): Fix compiler warnings (unused, deprecated conversion).
8575 * simpsock.cc: Run indent.
8576 (cvsid): Fix compiler warnings (unused, deprecated conversion).
8577 * simpsock.h: Run indent.
8578 * site.cc: Run indent.
8579 Use io_streams.
8580 (cvsid): Fix compiler warnings (unused, deprecated conversion).
8581 (get_root_dir_now): Remove.
8582 (save_site_url): Convert to io_streams.
8583 (dialog_cmd): Return 0.
8584 (get_initial_list_idx): Convert to io_streans.
8585 * source.cc: Run indent.
8586 (cvsid): Fix compiler warnings (unused, deprecated conversion).
8587 (check_if_enable_next): Remove.
8588 (load_dialog): Remove unused variables.
8589 (save_dialog): Ditto.
8590 (dialog_cmd): Return a value.
8591 * splash.cc: Return a value.
8592 (cvsid): Fix compiler warnings (unused, deprecated conversion).
8593 (dialog_cmd): Return a value.
8594 * state.cc: Run indent.
8595 (cvsid): Fix compiler warnings (unused, deprecated conversion).
8596 * state.h: Run indent.
8597 * tar.h: Remove.
8598 * tar.cc: Remove.
8599
8600 2001-11-12 Christopher Faylor <cgf@redhat.com>
8601
8602 * desktop.cc (start_menu): Change start menu name to "Cygwin".
8603 (check_startmenu): Ditto.
8604
8605 2001-11-11 Christopher Faylor <cgf@redhat.com>
8606
8607 * choose.cc (parse_filename): Finish reorganization by correctly
8608 decrementing p in memmove.
8609
8610 2001-11-11 Christopher Faylor <cgf@redhat.com>
8611
8612 * choose.cc (parse_filename): Reorganize code to work around gcc
8613 optimization problem.
8614
8615 2001-11-09 Gareth Pearce <tilps@hotmail.com>
8616
8617 * choose.cc (set_action): Allow skip as an option for installed
8618 packages that have version number not listed in setup.ini.
8619
8620 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
8621
8622 * choose.cc (set_cation): Backout last change.
8623 (choose_caption): Ditto.
8624
8625 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
8626
8627 * ini.h (actions): Remove - transferred to choose.h.
8628 (views): Ditto.
8629 * choose.h: Protect class's from "C" compilers.
8630 (actions): New enum, from ini.h. This may not be the 'right' place
8631 but that place doesn't exist yet.
8632 (_views): New enum, from ini.h.
8633 * choose.cc (set_action): Handle installed packages with a version not
8634 in setup.ini.
8635 (choose_caption): Ditto.
8636 * iniparse.y: Rearrange header order to handle new ini.h.
8637
8638 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
8639
8640 * ini.h (_Info): Fix compiler warnings (signed vs unsigned comparison).
8641 (registry_category): Fix compiler warning (deprecated conversion).
8642 * iniparse.y (registry_category): Ditto.
8643 * choose.cc (cvsid): Fix compiler warnings (unused, deprecated
8644 conversion).
8645 (add_requried): Remove unused variable.
8646 (choose_caption): Handle all enumeration values via a default.
8647 (paint): Fix compiler warnings (unused, deprecated conversion).
8648 (scroll_common): Fix compiler warnings (unused, signed vs unsigned
8649 comparison).
8650 (list_clicK): Fix compiler warnings (signed vs unsigned comparison).
8651 (note_width): Fix compiler warnings (deprecated conversion).
8652 (keep_or_skip): Fix compiler warnings (unused).
8653 (_view::mode_caption): Fix compiler warnings (deprecated conversion).
8654 (set_view_mode): Fix compiler warnings (unused).
8655 (create_listview): Fix compiler warnings (unused, incorrect format,
8656 reaches end of function).
8657 (dialog_proc): Fix compiler warnings (unused).
8658 (read_installed_db): Fix compiler warnings (unused, deprecated
8659 conversion).
8660 * choose.h (_header): Fix compiler warnings (deprecated conversion).
8661 (_view): Ditto.
8662
8663 2001-11-08 Pavel Tsekov <ptsekov@syntrex.com>
8664
8665 * simpsock.h (SimpleSocket::invalidate): Declare new method.
8666 * simpsock.cc (SimpleSocket::invalidate): Implement new method.
8667 (SimpleSocket::SimpleSocket): Initialize buf to zero. Do not allocate
8668 memory for buf in the constructor.
8669 (SimpleSocket::~SimpleSocket): Use SimpleSocket::invalidate().
8670 (SimpleSocket::printf): Use SimpleSocket::write() instead of send().
8671 (SimpleSocket::write): Check object consistency - return -1 on error.
8672 invalidate() the object on socket write error.
8673 (SimpleSocket::fill): Check object consistency - return -1 on error.
8674 invalidate() the object if socket read error is encountered and there
8675 is no more data available in the internal read buffer.
8676 Allocate memory for the internal read buffer.
8677 (SimpleSocket::gets): Return zero (NULL pointer) if error is encountered
8678 during fill() and no more data is available in the internal read buffer.
8679 (SimpleSocket::read): Check object consistency - return -1 on error.
8680 invalidate() the object if socket read error is encountered.
8681 * nio-ftp.cc (NetIO_FTP:NetIO_FTP): Allow 125 as valid response code to
8682 the RETR command (fix for MS IIS ftp server 5 - possibly others too).
8683 (NetIO_FTP::ok): Check if the SimpleSocket object is ok().
8684 (NetIO_FTP::read): Use NetIO_FTP::ok().
8685 * nio-http.cc: Check for valid return value of SimpleSocket::gets().
8686 (NetIO_HTTP::ok): Check if the SimpleSocket object is ok().
8687
8688 2001-11-09 Robert Collins <rbtcollins@hotmail.com>
8689
8690 * simpsock.cc (cvsid): Avoid compiler warnings (not used, deprecated
8691 conversion).
8692 (SimpleSocket::SimpleSocket): Avoid compiler warnings (deprecated
8693 conversion).
8694 (SimpleSocket::printf): Ditto.
8695 (SimpleSocket::write): Ditto.
8696 * simpsock.h (SimpleSocket): Avoid compiler warnings for constructor,
8697 printf and write.
8698 * nio-ftp.cc (cvsid): Avoid compiler warnings (not used, deprecated
8699 conversion).
8700 (NetIO_FTP::NetIO_FTP): Remove unused variable done.
8701 * nio-http.cc (cvsid): Avoid compiler warnings (not used, deprecated
8702 conversion).
8703
8704 2001-11-07 Charles Wilson <cwilson@ece.gatech.edu>
8705
8706 * geturl.cc (get_url_to_string): clean up memory leak
8707 (get_url_to_file): ditto
8708
8709 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
8710
8711 * localdir.cc (dialog_cmd): Go back to IDD_ROOT in every case.
8712 * source.cc (dialog_cmd): Go forward to IDD_ROOT in every case.
8713
8714 2001-11-06 Pavel Tsekov <ptsekov@syntrex.com>
8715
8716 * fromcwd.cc (found_file): Free() memory containing the version and
8717 filepath information for a given package, before replacing the pointers
8718 which reference this memory.
8719
8720 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
8721
8722 * fromcwd: Fix compiler warnings for cvsid.
8723 (canonicalize_version): Fix compilter warnings.
8724 (do_fromcwd): Ditto.
8725 * version.h: Fix compiler warnings for canonicalize_version.
8726
8727 2001-11-03 Robert Collins <rbtcollins@hotmail.com>
8728
8729 * res.rc (IDD_CHOOSE): Move the view caption to the right hand side.
8730
8731 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
8732
8733 * res.rc (IDD_CHOOSE): Tweak for use on a 640x480 screen.
8734
8735 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
8736
8737 * choose.cc (set_action): Correctly allow skip for any uninstalled
8738 package.
8739
8740 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
8741
8742 * choose.cc (default_trust): Change the "Required" forced install
8743 category to "Base".
8744
8745 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
8746
8747 * choose.cc: Ran indent.
8748 (set_action): When the requested trust level is missing and the level
8749 was not user requested, set the action to ACTION_SAME_CURR.
8750
8751 2001-11-01 Christopher Faylor <cgf@redhat.com>
8752
8753 * Makefile.in (mingw_getopt.o): Fix typo in non-verbose compilation.
8754
8755 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
8756
8757 * choose.cc (_view::init_headers): Resync with the paint logic.
8758
8759 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
8760
8761 * choose.cc (add_required): Allow SKIP and SRC_ONLY for currently
8762 installed packages.
8763
8764 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
8765
8766 * choose.cc (default_trust): Autoset currently installed packages per
8767 the user's selection of prev/curr/exp.
8768
8769 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
8770
8771 * splash.cc (dialog_proc): Return TRUE as specified in the WIN32 API.
8772
8773 2001-11-02 Pavel Tsekov <ptsekov@syntrex.com>
8774
8775 * geturl.cc (is_showing): Remove.
8776 (is_local_install): New static variable. Controls whether the
8777 progress dialog and the supporting thread will be created.
8778 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the WIN32
8779 API.
8780 (init_dialog): Remove usage of SetForegroundWindow and is_showing.
8781 This prevents the progress dialog to gain control over the
8782 application and fixes the "setup.exe going to background" problem.
8783 (progress): Use is_local_install.
8784 (get_url_to_string): Set is_local_install.
8785 (dismiss_url_status_dialog): Use is_local_install.
8786 * install.cc (dialog_proc): Return TRUE as specified in WIN32 API.
8787 (init_dialog): Remove usage of SetForegroundWindow.
8788 This prevents the progress dialog to gain control over the
8789 application and fixes the "setup.exe going to background" problem.
8790
8791 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
8792
8793 * choose.cc (list_click): Change r to row for clarity.
8794 When we shrink the list below 1 page, scroll to the top of the list.
8795 (_view::click): Return the actual change for contractions.
8796 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the Win32
8797 API.
8798
8799 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
8800
8801 * choose.cc (dialog_cmd): Swap cygwin root selection and local dir
8802 selection order.
8803 * localdir.cc: Ran indent.
8804 (get_root_dir_now): New function.
8805 (save_local_dir): New function.
8806 (dialog_cmd): Use it and swap cygwin root selection and local dir
8807 selection order.
8808 (do_local_dir): If there is a saved local dir, read it in.
8809 * net.cc (dialog_cmd): Swap cygwin root selection and local dir
8810 selection order.
8811 * root.cc (dialog_cmd): Ditto.
8812 * source.cc (dialog_cmd): Ditto.
8813
8814 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
8815
8816 * choose.cc(list_vscroll): Return 0 as required by win32.
8817 (list_hscroll): Ditto.
8818 (list_click): Ditto.
8819
8820 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
8821
8822 * argv.cc: Remove.
8823 * argv.h: Remove.
8824 * main.cc(WinMain): Use __argv to retrieve command line parameters.
8825 * Makefile,in: Remove argv.o.
8826
8827 2001-11-01 Matt Hargett <matt@use.net>
8828
8829 * geturl.cc (progress): Change int to unsigned int to eliminate
8830 lint warnings.
8831 * (get_url_to_string): Check for NULL pointer.
8832 * mount.cc (find2): Use free instead of delete for malloc'd
8833 memory.
8834 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Fix memory leak.
8835
8836 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
8837
8838 * choose.cc(_view::insert_under): Handle linen > nlines and lines[linen]
8839 with neither a package nor a category. The lines[linen] bug was reported
8840 by Matt (matt@usa.net).
8841 (read_installed_db): Bugfix for testing whether a package has a source
8842 tarball. Reported by Matt (matt@usa.net).
8843 * geturl.cc(dialog): Rename gw_dialog to local_gw_dialog to avoid
8844 programmer confusion and lint errors. Reported by Matt (matt@usa.net).
8845
8846 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
8847
8848 * argv.cc: New file, converts arguments for -mwindows
8849 programs. (Simplified derivation from dcrt0.cc.)
8850 * argv.h: New file.
8851 * Makefile,in: Add argv.o and mingw_getopt.o to setup.exe object list.
8852 Add mingw_getopt.o build rule.
8853 * main.cc(WinMain): Initialise argv and argc for use by getopt.
8854
8855 2001-10-27 Christopher Faylor <cgf@redhat.com>
8856
8857 * res.rc: Rearrange info on top line slightly.
8858
8859 2001-10-27 Christopher Faylor <cgf@redhat.com>
8860
8861 * desktop.cc (make_passwd_group): Move file creation earlier in the
8862 process to ensure that passwd-grp.bat reflects desired operation.
8863
8864 2001-27-10 Trevor Forbes <t4bs@hotmail.com>
8865
8866 * postinstall.cc (each): Remove "*.done" file else rename will fail.
8867
8868 2001-10-16 Christopher Faylor <cgf@redhat.com>
8869
8870 * res.rc: Oops. Take 640x480 screen size into account.
8871
8872 2001-10-16 Christopher Faylor <cgf@redhat.com>
8873
8874 * res.rc: Enlarge chooser screen.
8875
8876 2001-10-12 Christopher Faylor <cgf@redhat.com>
8877
8878 * Makefile.in: Accomodate changes to w32api_include macro.
8879
8880 2001-10-12 Christopher Faylor <cgf@redhat.com>
8881
8882 * Makefile.in: Use correct flags for windres.
8883
8884 2001-10-12 Christopher Faylor <cgf@redhat.com>
8885
8886 * Makefile.in (CFLAGS): Remove -nostdinc from CFLAGS.
8887
8888 2001-10-12 Christopher Faylor <cgf@redhat.com>
8889
8890 * choose.cc (pick_line::paint): Reorganize after botched patch.
8891
8892 2001-10-12 Christopher Faylor <cgf@redhat.com>
8893
8894 * choose.cc (pick_line::paint): Add missing declaration.
8895
8896 2001-10-10 Ralf Habacker <Ralf.Habacker@freenet.de>
8897
8898 * choose.cc (pick_line::paint): Add package name to sdesc for display.
8899
8900 Wed Sep 26 21:39:00 Robert Collins rbtcollins@hotmail.com
8901
8902 * choose.cc (_view::insert_pkg): Correctly exit loop.
8903 * iniparse.y (register_category): Always insert new categories.
8904
8905 Fri Sep 21 13:56:32 2001 Christopher Faylor <cgf@cygnus.com>
8906
8907 * inilex.l (yylex): For comments, eat all characters up to, but not
8908 including newline.
8909
8910 Sun Aug 26 12:50:01 2001 John Marshall <jmarshall@acm.org>
8911
8912 * fromcwd.cc (found_file): Use correct package name when adding an
8913 unknown package rather than random stack garbage.
8914
8915 Sun Aug 12 14:25:21 2001 Christopher Faylor <cgf@cygnus.com>
8916
8917 * desktop.cc (make_passwd_group): .bat files need \r\n endings.
8918
8919 Wed Aug 8 13:53:47 2001 Christopher Faylor <cgf@cygnus.com>
8920
8921 * desktop.cc (etc_profile): Leave environment variables untouched.
8922
8923 2001-08-07 Corinna Vinschen <corinna@vinschen.de>
8924
8925 * autoload.c: Add dynamic load statements for NT/W2K
8926 advapi32 functions not available in 9x/ME.
8927 * main.cc (set_default_dacl): New function.
8928 (WinMain): Call `set_default_dacl' if running on NT/W2K.
8929
8930 Sat Aug 4 21:35:53 2001 Christopher Faylor <cgf@cygnus.com>
8931
8932 * ini.h (_CategoryPackage): Change pkg field to pkgname for
8933 consistency.
8934 * choose.cc: Use pkgname field when referencing _CategoryPackage
8935 throughout.
8936 (fill_missing_category): Don't add excluded packages.
8937 (default_trust): Ditto.
8938 (_view::insert_pkg): Ditto.
8939 * iniparse.y (register_category): Use consistent variable name.
8940
8941 2001-07-09 Egor Duda <deo@logos-m.ru>
8942
8943 * choose.cc: Use system foreground color for text output.
8944
8945 Sat Jul 7 00:40:28 2001 Christopher Faylor <cgf@cygnus.com>
8946
8947 * choose.cc (set_action): Use default trust for determining reinstall
8948 and source only.
8949 (default_trust): Set default trust.
8950 (pick_line::paint): Allow source selection when reinstalling or
8951 retrieving.
8952
8953 Fri Jul 6 18:08:49 2001 Christopher Faylor <cgf@cygnus.com>
8954
8955 * choose.cc (isinstalled): Modify to properly accomodate special case
8956 of "download only".
8957 (set_action): Check downloaded components, not installed components if
8958 "download only".
8959 (set_existence): Always include full list of files when "download
8960 only".
8961
8962 Fri Jul 6 00:37:05 2001 Christopher Faylor <cgf@cygnus.com>
8963
8964 * choose.cc (pick_line::paint): Properly display "na" field when no
8965 source exists.
8966
8967 Thu Jul 5 00:34:23 2001 Christopher Faylor <cgf@cygnus.com>
8968
8969 * choose.cc (scan2): Ensure that older versions do not show up in
8970 "Test" slot.
8971
8972 Mon Jul 2 15:47:59 2001 Christopher Faylor <cgf@cygnus.com>
8973
8974 * choose.cc (set_action): Allow "Skip" action if trust != installed.
8975 * res.rc: Fix copyright.
8976
8977 Sat Jun 30 14:05:21 2001 Michael A Chase <mchase@ix.netcom.com>
8978
8979 * res.rc (IDD_LOCAL_DIR): Change caption to match the other dialog
8980 boxes.
8981 (IDD_CHOOSE): Adjust horizontal size so package names are visible.
8982
8983 * choose.cc: Restore some more changes from 2001-06-25, throughout.
8984 (paint): Wrap some excessively long lines.
8985 (pick_line::paint): Ditto. Move the arrow in the "Current" column
8986 right to where it belongs. Move the source checkbox slightly to the
8987 right.
8988 (do_choose): List categories and required packages in setup.log.full.
8989
8990 Sat Jun 30 23:04:59 2001 Christopher Faylor <cgf@cygnus.com>
8991
8992 * choose.cc (scan2): Restore source scanning eliminated by previous
8993 checkin.
8994
8995 Sat Jun 30 15:18:33 2001 Christopher Faylor <cgf@cygnus.com>
8996
8997 * ini.h (struct _Info): Add "derived" element.
8998 * choose.cc (scan2): Try to place unknown tar files into proper slot
8999 when package exists in setup.ini but tar file does not.
9000
9001 Sat Jun 30 13:39:00 2001 Robert Collins <rbtcollins@hotmail.com>
9002
9003 * choose.cc (create_listview): Call set_view_mode with VIEW_CATEGORY.
9004 (do_choose): Log the first category name.
9005
9006 Fri Jun 29 23:07:44 2001 Christopher Faylor <cgf@cygnus.com>
9007
9008 *ini.h: Reapply 2001-06-25 changes.
9009 * choose.cc (add_required): Ditto. Default to "Keep" state if
9010 UNINSTALL and product is installed. Default to curr state if SKIP,
9011 etc.
9012 (keep_or_skip): New function. Returns skip or keep state depending on
9013 installed state of package.
9014 (default_trust): Use keep_or_skip to set state.
9015 (_view::insert_pkg): Use calloc to allocate lines.
9016 (set_view_mode): Adapt 2001-06-25 change to set_full_list here.
9017
9018 Sat Jun 30 11:01:00 2001 Robert Collins <rbtcollins@hotmail.com>
9019
9020 * choose.cc: Remove globals full_list, headers, package_indexes and
9021 nindexes.
9022 Add globals cat_headers, pkg_headers and chooser.
9023 (add_required): New function.
9024 (paint): Use the chooser for header details.
9025 Call into the chooser to paint each line.
9026 (list_click): Use new global variables.
9027 Call into the chooser to handle the click.
9028 Repaint the entire view if packages have been added or removed.
9029 (note_width): Get passed a headers struct rather than using a global
9030 variable.
9031 (fill_missing_category): New function.
9032 (default_trust): Skip non-"Required" or "Misc" packages.
9033 (pick_line::set_line (Package *)): New function.
9034 (pick_line::set_line (Category *)): New function.
9035 (pick_line::paint): New function.
9036 (pick_line::click): New function.
9037 (_view::_view): New function.
9038 (_view::set_view_mode): New function.
9039 (_view::mode_caption): New function.
9040 (_view::set_headers): New function.
9041 (_view::init_header): New function.
9042 (_view::insert_pkg): New function.
9043 (_view::insert_category): New function.
9044 (_view::insert_at): New function.
9045 (_view::insert_under): New function.
9046 (_view::clear_view): New function.
9047 (viewsplusplus): New function.
9048 (_view::client): New function.
9049 (set_view_mode): Use new chooser functionality.
9050 (set_full_list): Use new global variables.
9051 (create_listview): Instantiate chooser.
9052 Remove all hardcoded headers[] code.
9053 (dialog_cmd): On trust changes, check dependencies.
9054 (getcategorybyname): New function.
9055 (getpackagecategorybyname): New function.
9056 (scan2): Use case-insensitive package comparison.
9057 (do_choose): Use fill_missing_category ().
9058 Show some category data.
9059 * ini.h: Protect against multiple inclusion.
9060 (views) New enum.
9061 (_CategoryPackage): New struct.
9062 (_Category): New struct.
9063 (_Package): Change category to Category * from char *.
9064 (extern Category category): New global variable.
9065 (extern in ncategories): Ditto.
9066 (getcategorybyname): New prototype.
9067 (catpackagecategorybyname): New prototype.
9068 (register_category): New prototype.
9069 (add_category): New prototype.
9070 * iniparse.y: Parse multiple categories per package.
9071 (category): New global variable.
9072 (ncategories): New global variable.
9073 (new_package): Compare package against NULL, not 0.
9074 (new_requirement): Source formatting fix.
9075 (register_category): New function.
9076 (add_category): New function.
9077 * res.rc: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
9078 IDC_CHOOSE_VIEWCAPTION: New control.
9079 * resource.h: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
9080 IDC_CHOOSE_VIEWCAPTION: New control.
9081 Increment _APS_NEXT_CONTROL_VALUE.
9082
9083 Mon Jun 25 00:56:37 2001 Michael A Chase <mchase@ix.netcom.com>
9084
9085 * choose.cc (paint): Wrap excessively long lines.
9086 (list_click): Ditto.
9087 (create_listview): Ditto.
9088 (do_choose): Ditto. Replace TABs and remove CRs in lines written to
9089 setup.log.full. Allow "Yes" for source exists in setup.log.full when
9090 installing from local directories.
9091
9092 Mon Jun 25 00:56:37 2001 Christopher Faylor <cgf@cygnus.com>
9093
9094 * choose.cc (set_action): Only clear srcpicked when moving to next
9095 state. Allow source installation if it exists in the current "trust"
9096 state. Don't move to skip state when package is installed.
9097 (list_click): Don't allow source clicking when no source is available.
9098 (set_full_list): Display package when not is_full_action.
9099 * ini.h (is_full_action): Define.
9100
9101 Sun Jun 17 12:06:14 2001 Christopher Faylor <cgf@cygnus.com>
9102
9103 * install.cc (check_for_old_cygwin): New function. First stab at
9104 checking for old cygwin versions.
9105 (do_install): Call check_for_old_cygwin if there were no errors during
9106 the install.
9107
9108 Sat Jun 16 11:33:51 2001 Michael A Chase <mchase@ix.netcom.com>
9109
9110 * choose.cc (_Info::_Info): Test _source paramenter for non-NULL rather
9111 than zeroed "source" element.
9112
9113 Fri Jun 15 20:54:43 2001 Christopher Faylor <cgf@cygnus.com>
9114
9115 * choose.cc (scan2): Insert unknown tar archives, found on disk, into
9116 the highest available "hole" in the trust array.
9117
9118 Fri Jun 15 00:20:48 2001 Christopher Faylor <cgf@cygnus.com>
9119
9120 * choose.cc (set_existence): Use pointer method for indexing in trust
9121 array.
9122 (create_listview): Ditto.
9123 (scan2): Ditto. Also, use consistent variable name for indexing into
9124 trust array.
9125 * ini.h (Package): Reorganize info array for easier scanning.
9126
9127 Fri Jun 15 00:01:51 2001 Christopher Faylor <cgf@cygnus.com>
9128
9129 * choose.cc (isinstalled): Eliminate special download only test.
9130 (set_action): Don't move to next state if in ACTION_SAME range and not
9131 incrementing.
9132 (choose_caption): Display "Retrieve" rather than "Reinstall" when just
9133 downloading.
9134 (do_choose): Sort packages after all packages have been read.
9135 Accomodate the fact that first element in trust array is empty so that
9136 log files don't report the wrong trust value.
9137 * iniparse.y (new_package): Malloc space for package name or suffer
9138 memory corruption.
9139
9140 Thu Jun 14 22:43:59 2001 Robert Collins <rbtcollins@hotmail.com>
9141
9142 * ini.h (Dependency): New structure. Declare new function.
9143 * inilex.l (yylex): Detect new setup.ini options - category and
9144 requires.
9145 * iniparse.y: Declare new setup.ini token values.
9146 (yyparse): Parse new token values.
9147 (new_requirement): New function.
9148
9149 Thu Jun 14 22:43:26 2001 Christopher Faylor <cgf@cygnus.com>
9150
9151 * choose.cc (read_installed_db): Eliminate obsolete code.
9152
9153 Thu Jun 14 22:11:53 2001 Christopher Faylor <cgf@cygnus.com>
9154
9155 * choose.cc (set_action): Set trust on "redo".
9156 (_Info::_Info): New constructor.
9157 (read_installed_db): Use new constructor. Use trusts type for
9158 iterator.
9159 * ini.h (struct _Info): Label struct, add constructor.
9160 (Package): Make installed_ix a type 'trusts.'
9161 * install.cc (uninstall_one): Unset any installed info for current
9162 package.
9163 (install_one): Allocate new Info struct for installed reflecting new
9164 installed info.
9165 (do_install): Don't output line to installed.db if package is being
9166 uninstalled.
9167
9168 Thu Jun 14 20:33:01 2001 Robert Collins <rbtcollins@hotmail.com>
9169
9170 * choose.cc (getpkgbyname): Use consistent method for scanning package
9171 array.
9172
9173 Wed Jun 13 23:33:08 2001 Christopher Faylor <cgf@cygnus.com>
9174
9175 * choose.cc: Add some comments.
9176 (getpkgbyname): Use strcasecmp for comparisons.
9177
9178 Wed Jun 13 16:07:00 2001 Christopher Faylor <cgf@cygnus.com>
9179
9180 * install.cc (do_install): Avoid checking for download action if
9181 package wasn't currently retrieved.
9182
9183 Wed Jun 13 11:27:22 2001 Christopher Faylor <cgf@cygnus.com>
9184
9185 * choose.cc: Eliminate extra array throughout. Use element in package
9186 structure instead. Use pointers rather than array indexes where
9187 appropriate.
9188 (set_action): New function to set next action based on current.
9189 (choose_caption): New function. Returns display caption.
9190 (check_existence): Change arguments. Use pointer to 'info' structure.
9191 (set_existence): Use pointer rather than array index.
9192 (default_trust): Use trusts enum for second argument.
9193 (set_full_list): Honor exclude element in package structure.
9194 (build_labels): Eliminate.
9195 (base): Make global. Use const char * argument.
9196 (get_package_version): Eliminate.
9197 (getpkgbyname): New function.
9198 (read_installed_db): Use parse_filename to get version info.
9199 * desktop.cc (make_passwd_group): Use getpkgbyname function.
9200 * download.cc (get_file_size): const argument.
9201 (do_download): Use is_download_action to determine when something
9202 should be downloaded.
9203 * filemanip.h: Add some functions.
9204 * ini.cc (do_ini): Use NULL rather than 0 for pointer assignment.
9205 * ini.h: Use enums for actions and trusts.
9206 (is_download_action): New macro.
9207 (is_upgrade_action): Ditto.
9208 (is_uninstall_action): Ditto.
9209 (struct Package): Add new fields.
9210 * inilex.l (yylex): Detect new setup.ini options.
9211 * iniparse.y: Declare new tokens.
9212 (yyparse): Detect exclude keyword. Fill out version field even if
9213 version == 0.
9214 (new_package): Use greater granularity when allocating package array to
9215 avoid repeated calls to realloc.
9216 * install.cc (exists): const argument.
9217 (uninstall_one): Take pkg argument.
9218 (install_one): Ditto. Eliminate unneeded arguments which can be
9219 derived from package info.
9220 (do_install): Iterate over package array using a pointer. Use
9221 is_download_action to control when package should be downloaded.
9222 * tar.cc (tar_open): const argument.
9223 * tar.h: Refloect const argument.
9224
9225 2001-05-31 Michael Chase mchase@ix.netcom.com
9226
9227 * main.cc (WinMain): Add setup version to starting setup.log entry
9228
9229 Tue May 29 21:37:58 2001 Yukihiko Sohda <sohda@is.titech.ac.jp>
9230
9231 * inilex.l: Add + to list of valid string characters.
9232
9233 Mon May 28 20:54:50 2001 Christopher Faylor <cgf@cygnus.com>
9234
9235 * Makefile.in: Remove more stuff in the clean target.
9236
9237 Mon May 28 18:24:59 2001 Christopher Faylor <cgf@cygnus.com>
9238
9239 * Makefile.in: Correctly generate iniparse.h.
9240
9241 Tue Mar 6 19:14:00 2001 Corinna Vinschen <corinna@vinschen.de>
9242
9243 * geturl.cc (get_url_to_file): Add parameter `allow_ftp_auth'.
9244 * geturl.h: Change declaration of `get_url_to_file' accordingly.
9245 * netio.cc (NetIO::NetIO): Add parameter `allow_ftp_auth'.
9246 Set member `ftp_auth'.
9247 (NetIO::open): Add parameter `allow_ftp_auth'. Use it in calls
9248 to constructors of derived classes.
9249 (NetIO::get_ftp_auth): New method.
9250 * netio.h: Change class definition accordingly.
9251 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Add parameter `allow_ftp_auth'.
9252 Take global variables `net_ftp_user' and `net_ftp_passwd' into account.
9253 Add code for ftp authentication retry.
9254 * nio-ftp.h: Change class definition accordingly.
9255 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Add parameter `allow_ftp_auth'.
9256 Add code for ftp authentication retry in case of proxy connection.
9257 * nio-http.h: Change class definition accordingly.
9258 * res.rc: Add FTP authentication dialog.
9259 * resource.h: Add new constants used in res.rc.
9260 * state.h: Add variables `net_ftp_user' and `net_ftp_passwd'.
9261
9262 Sun May 27 17:12:23 2001 Christopher Faylor <cgf@cygnus.com>
9263
9264 * res.rc (IDD_SPLASH): Add a copyright year.
9265
9266 Sun May 27 15:42:18 2001 Christopher Faylor <cgf@cygnus.com>
9267
9268 * Makefile.in: Make iniparse.y produce a c++ file.
9269 * choose.cc (set_existence): Revert 2001-05-27 change.
9270 * ini.cc: Remove "C" from declaration of yyparse.
9271 * iniparse.y (yyparse): Fill out version field by default when a binary
9272 install is detected and no version has been set yet.
9273 * install.cc (do_install): Mount things earlier so that we can use
9274 proper mount table settings. Don't remove mounts since they are now
9275 honored.
9276 * mount.cc (create_mount): Reread the mount table after establishing a
9277 new mount.
9278 (read_mounts): Explicitly clear root_here to allow multiple uses of
9279 this function. Ensure that there is no garbage in the table when we've
9280 exhausted all of the mounts in the registry.
9281 (cygpath): Accomodate ./ in path.
9282
9283 Sun May 27 02:59:07 2001 Christopher Faylor <cgf@cygnus.com>
9284
9285 Use parse_filename method to parse filenames throughout. Use
9286 get_root_dir to retrieve the current root directory throughout. Set
9287 const in argument list, where appropriate, throughout.
9288 * choose.cc (set_existence): Detect case of uninstalled package with no
9289 version.
9290 (parse_filename): New function.
9291 * filemanip.h (fileparse): New structure.
9292 * mount.cc (read_mounts): Remember where we found the root mount.
9293 (set_root_dir): New function.
9294 (get_root_dir): Ditto.
9295 * mount.h: Declare new functions.
9296 * site.cc (get_root_dir_now): Renamed from get_root_dir.
9297 (save_site_url): Use new function name.
9298 (get_initial_list_idx): Ditto.
9299
9300 Sat May 26 21:23:59 2001 Christopher Faylor <cgf@cygnus.com>
9301
9302 * choose.cc: Use a constant throughout to deal with chooser icon
9303 length.
9304 * res.rc (IDD_CHOOSE): Increase size of chooser box.
9305
9306 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
9307
9308 * choose.cc (do_choose): Fix incorrect assignment of trust setting to
9309 use when Redownload or Sources Only selected.
9310
9311 Thu May 10 22:35:59 2001 Christopher Faylor <cgf@cygnus.com>
9312
9313 Reformat file after botched patch formatting.
9314 * choose.cc (which_trust): Eliminate variable.
9315 (default_trust): Don't set which_trust.
9316 (do_choose): Use selected trust when reinstalling or installing source.
9317
9318 Thu May 10 21:04:18 2001 Christopher Faylor <cgf@cygnus.com>
9319
9320 Change concat to cygpath throughout.
9321 Change map_filename to cygpath throughout.
9322 * concat.cc (vconcat): New function.
9323 (concat): Use vconcat.
9324 * concat.h: Reflect above.
9325 * install.cc (map_filename): Eliminate.
9326 (install_one): Free dest_file.
9327 * mount.cc (find2): Expect input key to be pointing to mount record.
9328 (in_table): New function.
9329 (is_admin): Move from root.cc.
9330 (read_mounts): New function.
9331 (path_prefix_p): New function.
9332 (cygpath): New function.
9333 * mount.h: Define new functions and structure.
9334 * root.cc (in_table): Move to mount.cc.
9335 (do_root): Call read_mounts to initialize root stuff and mount table.
9336 * site.cc (get_root_dir): Ditto.
9337
9338 2001-05-09 Matt Hargett <matt@use.net>
9339
9340 * Makefile.in: Remove *.rc from clean.
9341
9342 Tue May 8 23:33:38 2001 Christopher Faylor <cgf@cygnus.com>
9343
9344 * choose.cc (scan2): Fix incorrect setting of TRUST_CURR rather than
9345 TRUST_PREV which produced "0" versions.
9346
9347 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
9348
9349 * resource.h: Add new field IDC_CHOOSE_INST_TEXT. Modify
9350 _APS_NEXT_CONTROL_VALUE to account for addition of
9351 IDC_CHOOSE_INST_TEXT.
9352 * res.rc (IDD_CHOOSE): Modify choose dialog to use new field
9353 IDC_CHOOSE_INST_TEXT for screen text. Modify choose Dialog to allow
9354 hot keys to select Prev, Curr, Exp.
9355 * ini.h: Add new actions for ACTION_REDO and ACTION_SRC_ONLY. Modify
9356 define for LOOP_PACKAGES to include new actions ACTION_REDO and
9357 ACTION_SRC_ONLY.
9358 * choose.cc: Add new Trusts for TRUST_REDO and TRUST_SRC_ONLY.
9359 (paint): Modify to check TRUST_SRC_ONLY when determining Bitmap for
9360 source Checkbox to use.
9361 (build_labels): Add logic to allow for selection of Source only
9362 Download/ReDownload/Install/Reinstall and also to Redownload/Reinstall
9363 current version binary.
9364 (dialog_proc): Add conditional display for file selection prompt based
9365 on download vs install using IDC_CHOOSE_INST_TEXT.
9366 (do_choose): Add new logic for TRUST_REDO and TRUST_SRC_ONLY selection
9367 and modify logic for TRUST_UNINSTALL, TRUST_KEEP, and TRUST_NONE to
9368 handle the instance where Source Download/Install was selected. Modify
9369 log file to store appropriate information regarding Action selected and
9370 the new actions that were added (I.E.: ACTION_REDO and
9371 ACTION_SRC_ONLY).
9372 * download.cc: Add include for <unistd.h> and "port.h".
9373 (download_one): Modify parameter list to include the selected action
9374 for the file to be downloaded. Modify size check against expected size
9375 to include check for ACTION_REDO and ACTION_SRC_ONLY. Modify rename of
9376 .tmp file to also remove the destination file if exists due to ability
9377 to redownload source and binary now.
9378 (do_download): Modify to also use ACTION_REDO and ACTION_SRC_ONLY in
9379 calculation of Download Bytes. Modify to also use ACTION_REDO and
9380 ACTION_SRC_ONLY in determining files selected for download.
9381 * install.cc (uninstall_one): Add check to treat a Reinstall like an
9382 upgrade so current version will be uninstalled prior to reinstall.
9383 (do_install): Add logic to handle ACTION_REDO and ACTION_SRC_ONLY for
9384 uninstalling and installing binary and source packages.
9385 * desktop.cc (make_passwd_group): Modify logic to account for a Source
9386 only cygwin install when checking for cygwin to determine need for
9387 mkpasswd and mkgroup.
9388
9389 Mon May 7 23:33:30 2001 Matt Hargett <matt@use.net>
9390
9391 * winsup/cinstall/res.rc: Added accelerators and improved focus order.
9392 Removed WS_DISABLED from "OK" buttons to accomodate default focus
9393 changes in net.cc and source.cc.
9394 * winsup/cinstall/net.cc (dialog_proc): If no radio button is selected,
9395 a default is selected.
9396 * winsup/cinstall/source.cc (dialog_proc): Ditto.
9397 (check_if_enable_next): Removed. No longer needed since a radio button
9398 will always be selected.
9399 (load_dialog): Removed call to check_if_enable_next.
9400 (dialog_cmd): Ditto. Also added default to switch.
9401
9402 Tue Apr 24 23:42:02 2001 Christopher Faylor <cgf@cygnus.com>
9403
9404 * res.rc: Resize affected text.
9405
9406 Tue Apr 24 23:35:31 2001 Christopher Faylor <cgf@cygnus.com>
9407
9408 * net.cc (do_net): Default to direct download.
9409 * res.rc: Move default selections to the top.
9410
9411 2001-04-18 Earnie Boyd <earnie@users.sourceforge.net>
9412
9413 * win32.h: Remove the definitions for _UNION_NAME and _STRUCT_NAME.
9414 Must now include <windows.h> and not the pieces.
9415 * choose.cc (create_listview): Clean up type mismatch problems.
9416 * dialog.h (NEXT(id)): Ditto.
9417 * geturl.cc (dialog): Ditto.
9418 * install.cc (dialog): Ditto.
9419 * splash.cc (load_dialog): Ditto.
9420
9421 Wed Apr 18 18:59:21 2001 Christopher Faylor <cgf@cygnus.com>
9422
9423 * tar.cc (class gzbz): Define dummy virtual functions.
9424
9425 Wed Apr 18 16:01:21 2001 Christopher Faylor <cgf@cygnus.com>
9426
9427 * Makefile.in: Add bz2 include/library support.
9428 * filemanip.h: New file.
9429 * choose.cc (find_tar_ext): New function. Returns TRUE if .tar.gz or
9430 .tar.bz2 found.
9431 (scan2): Reorganize to use find_tar_ext, accomodating .bz2 extension.
9432 (read_installed_db): Ditto.
9433 (do_choose): Ditto.
9434 * fromcwd.cc (found_file): Ditto.
9435 (do_fromcwd): Ditto.
9436 * tar.cc (class gzbz): New super class for uncompression support.
9437 (gz): New class for gzip support.
9438 (bz): New class for bzip2 support.
9439 (tar_open): Use gzbz class to control file opening.
9440 (tar_ftell): Ditto for returning position in file.
9441 (skip_file): Ditto for reading file.
9442 (tar_next_file): Ditto.
9443 (tar_read_file): Ditto.
9444 (tar_close): Ditto for close.
9445
9446 * zlib/configure.in: Force NM substitution.
9447
9448 * source.cc (do_source): Default to "Install from Internet".
9449
9450 2001-03-16 Brian Keener <bkeener@thesoftwaresource.com>
9451
9452 * nio-file.cc (NetIO_File::NetIO_File): Use `get_file_size' instead of
9453 `stat'.
9454 * choose.cc (list_click): Correct inability to select source code for
9455 download.
9456 (scan2): Modify to skip source tarballs when scanning disk for
9457 installable packages.
9458
9459 2001-03-10 Chris Abbey <chris_abbey@yahoo.com>
9460
9461 * install.cc: install sources into /usr/src instead
9462 of /, also include the sizes of source tarballs
9463 in total_bytes.
9464 * download.cc: include sizes of source tarballs in
9465 total_download_bytes.
9466
9467 Tue Mar 6 19:31:00 2000 Corinna Vinschen <corinna@vinschen.com>
9468
9469 * download.cc (get_file_size): Remove `static'.
9470
9471 Tue Mar 6 19:11:00 2000 Corinna Vinschen <corinna@vinschen.com>
9472
9473 * tar.cc (tar_open): Use `get_file_size' instead of `stat'.
9474
9475 2001-03-06 Brian Keener <bkeener@thesoftwaresource.com>
9476
9477 * choose.cc (paint): Modify message for nothing to download vs
9478 nothing to install/update based on installation method.
9479 (list_click): Modify to skip versions in selection process if
9480 installing from local directory and installation file does not exist.
9481 Also leaves Source Action set to N/A if the source file does not exist
9482 and installing from local directory.
9483 (check_existence): New method to check current existence of installation
9484 files based on selected installation method.
9485 (set_existence): New method to set the current existence of installation
9486 files based on selected installation method.
9487 (best_trust): Modify decision process for best trust to base decision on
9488 current trust selected (IE: Prev, Curr, or Test), existence of file and
9489 installation method selected.
9490 (default_trust): Add logic to capture the current trust level and the
9491 trust selected for the given package.
9492 (set_full_list): Expand decision criteria for displaying a package in
9493 the selection list to include file existence/non-existence and selected
9494 installation method.
9495 (build_labels): Modify criteria for label addition to include
9496 installation method and file existence/non-existence.
9497 (create_listview): Modify to establish package trust level for each
9498 package before setting up the display list. Also modification to set
9499 current trust button as the default.
9500 (dialog_cmd): Set response for Prev, Curr, Test button push to perform
9501 a reset of the selection list in addition to setting the default trust.
9502 (get_package_version): New method to provide reusable code for
9503 determining the package version from the file name for a specified
9504 trust.
9505 (scan2): Modify to use new method get_package_version and
9506 also enhance handling of the build for the structures package and
9507 extra.
9508 (read_installed_db): Modify to use the new method
9509 get_package_version and also enhance handling of the build for the
9510 structures package and extra.
9511 (do_choose): Add additional initialization of package and extra
9512 structures. Modify to use read_installed_db all the time despite
9513 install method. Modify output to setup.log.full log file to increase
9514 readability by adding additional spacing, expanded code and available
9515 versions.
9516 * ini.h: Add new fields install_exists, source_exists and
9517 partial_list_display to the structure definition for package.
9518 * res.rc (IDD_CHOOSE): Modify choose dialog Prev, Curr, and Test
9519 pushbuttons by replacing with Radio Buttons thus allowing the
9520 operator to better determine which is selected.
9521
9522 2001-02-20 Brian Keener <bkeener@thesoftwaresource.com>
9523
9524 * download.cc (do_download): Add new variables total_download_bytes and
9525 total_download_bytes_sofar for download progress meter. Add loop
9526 to accumulate the total bytes to download from the selected packages.
9527 * geturl.cc: Add state.h and diskfull.h to include list. Add new
9528 variables gw_iprogress, gw_pprogress, gw_progress_text,
9529 gw_pprogress_text, and gw_iprogress_text to allow for addition of
9530 total packages download progress meter and disk full percent
9531 progress meter. Add variables total_download_bytes and
9532 total_download_bytes_sofar for use by progress meters.
9533 (dialog_proc): Add new variables gw_iprogress, gw_pprogress,
9534 gw_progress_text, gw_pprogress_text, and gw_iprogress_text to
9535 allow for addition of total packages download progress meter and disk
9536 full percent progress meter.
9537 (init_dialog): Ditto.
9538 (progress): Ditto.
9539 (get_url_to_file): Ditto.
9540 * geturl.h: Add external definition for total_download_bytes and
9541 total_download_bytes_sofar.
9542 * res.rc: Add two additional progress meters (IDC_DLS_IPROGRESS)
9543 and (IDC_DLS_PPROGRESS) and three text objects (IDC_DLS_PROGRESS_TEXT)
9544 and (IDC_DLS_IPROGRESS_TEXT, IDC_DLS_PPROGRESS_TEXT) for use in the
9545 download meters.
9546 * resource.h: Add new fields for progress meters and text and update
9547 _APS_NEXT_CONTROL_VALUE.
9548
9549 Wed Feb 21 13:05:00 2000 Corinna Vinschen <vinschen@redhat.com>
9550
9551 * download.cc (get_file_size): Check for INVALID_HANDLE_VALUE instead
9552 for NULL.
9553
9554 Wed Feb 21 11:21:00 2000 Corinna Vinschen <vinschen@redhat.com>
9555
9556 * download.cc (download_one): Add missing parenthesis.
9557
9558 Mon Feb 19 18:59:00 2000 Corinna Vinschen <vinschen@redhat.com>
9559
9560 * download.cc (get_file_size): New function. Eliminates the need
9561 to call `stat'.
9562 (download_one): Call `get_file_size' instead of `stat'. This
9563 workarounds a problem with mingw's `stat' call.
9564
9565 2001-02-07 Earnie Boyd <earnie@users.sourceforge.net>
9566
9567 * Makefile.in: (%.o: %.rc): Specify --include-dir $(w32api_include).
9568 This is to allow cinstall to build with 2.95.2-7 and to make the
9569 use of headers consistent.
9570
9571 2000-12-26 Earnie Boyd <earnie_boyd@yahoo.com>
9572
9573 * Makefile.in (autoload.o): Add target to specify -fno-inline-functions
9574
9575 Tue Dec 26 03:46:00 2000 Matt Hargett <matt@use.net>
9576
9577 * winsup/cinstall/res.rc: Added accelerators and improved focus
9578 order.
9579
9580 2000-12-10 Egor Duda <deo@logos-m.ru>
9581
9582 * choose.cc (paint): Use system background color for text output.
9583
9584 Sun Dec 10 19:05:25 2000 Christopher Faylor <cgf@cygnus.com>
9585
9586 * Makefile.in: Use CXX for linking and for compiling .cc files.
9587 * configure.in: Find correct c++ compiler.
9588 * configure: Regenerate.
9589
9590 2000-11-17 DJ Delorie <dj@redhat.com>
9591
9592 * splash.cc (load_dialog): Make message more obvious.
9593 * res.rc: Ditto.
9594
9595 Fri Nov 17 17:15:21 2000 Christopher Faylor <cgf@cygnus.com>
9596
9597 * Makefile.in: Use g++ to link so that libstdc++.a gets used. This is
9598 necessary for newer compilers.
9599
9600 Wed Nov 9 2:19:00 2000 Corinna Vinschen <vinschen@redhat.com>
9601
9602 * desktop.cc: Include "ini.h" and "version.h".
9603 (make_passwd_group): Skip the function on 9x/ME boxes when an
9604 older version of Cygwin has been installed which doesn't
9605 support mkpasswd/mkgroup on 9x/ME.
9606 * install.cc: Move the `LOOP_PACKAGES' and `pi' macros to...
9607 * ini.h: ...here.
9608
9609 Wed Nov 8 17:10:00 2000 Corinna Vinschen <vinschen@redhat.com>
9610
9611 * desktop.cc (make_passwd_group): Don't exit when started
9612 on 9x/ME since mkpasswd/mkgroup are usable on 9x/ME now.
9613
9614 Sun Nov 5 12:51:42 2000 Jason Tishler <jt@dothill.com>
9615
9616 * install.cc (do_install): Add call to set_cygdrive_flags to sync
9617 the mount modes.
9618 * mount.cc (set_cygdrive_flags): New function.
9619 (get_cygdrive_flags): Ditto.
9620 (default_cygdrive): Ditto.
9621 (set_cygdrive_flags): Ditto.
9622 * mount.h: Add prototype for set_cygdrive_flags.
9623
9624 2000-10-23 DJ Delorie <dj@redhat.com>
9625
9626 * ini.h: add source actions
9627 * fromcwd.cc: check for available sources
9628 * res.rc: add checkbox bitmaps
9629 * resource.h: ditto
9630 * check-*.bmp: new
9631 * choose.cc: add source column
9632 * download.cc: download sources if called for
9633 * install.cc: [un]install sources too
9634
9635 2000-10-22 DJ Delorie <dj@redhat.com>
9636
9637 * choose.cc (build_labels): Don't skip TRUST_PREV completely; only
9638 ignore it wrt full_list if there's already a version installed.
9639 (do_choose): Sort the list.
9640 (package_sort): New.
9641
9642 2000-10-12 DJ Delorie <dj@redhat.com>
9643
9644 * res.rc: Add more error strings.
9645 * resource.h: Ditto.
9646 * iniparse.y (new_package): re-initialize if needed.
9647 * download.cc (do_download): Keep track of errors; notify and
9648 allow retry.
9649 * install.cc (do_install): Ditto.
9650
9651 2000-10-05 DJ Delorie <dj@redhat.com>
9652
9653 * Makefile.in: fix %.cc rule
9654
9655 2000-10-04 DJ Delorie <dj@redhat.com>
9656
9657 * desktop.cc: quote HOME and USER, don't . ./.profile
9658
9659 * choose.cc (build_labels): don't include in partial list just
9660 because there's a *previous* version available.
9661
9662 * install.cc (do_install): if installing from local directory with
9663 setup.ini and the file isn't found, look in "." also. Note errors.
9664
9665 2000-10-02 DJ Delorie <dj@redhat.com>
9666
9667 * ini.cc (do_ini): save setup.ini locally
9668
9669 2000-10-02 Chris Abbey <cabbey@bresnanlink.net>
9670
9671 * desktop.cc: quote escapes in prompt
9672
9673 2000-10-02 Jason Tishler <jt@dothill.com>
9674
9675 * root.cc (is_admin): New function.
9676 (read_mount_table): Check for administrative priviledges and set
9677 installation scope as appropriate.
9678
9679 2000-09-28 DJ Delorie <dj@redhat.com>
9680
9681 * nio-ftp.cc (ftp_line): handle continuations more robustly
9682
9683 2000-09-14 Brian Keener <bkeener@thesoftwaresource.com>
9684
9685 * res.rc: increased the size of the site dialog (IDD_SITE) & the
9686 corresponding list box to provide for more URL's to be listed.
9687 Modified the position of the Back, Next and Cancel buttons to
9688 correspond to the new size of the dialog.
9689
9690 2000-09-13 DJ Delorie <dj@redhat.com>
9691
9692 * install.cc (do_install): update disk fullness once per package
9693 to improve performance
9694
9695 * choose.cc (create_listview): call ReleaseDC
9696
9697 Mon Sep 11 22:40 2000 Harold L Hunt II <harold@compasstechnologies.com>
9698
9699 * mkdir.cc: Create directories when ERROR_FILE_NOT_FOUND is
9700 returned, as it seems Samba 2.0.6+ returns this instead of
9701 ERROR_PATH_NOT_FOUND
9702
9703 Mon Sep 11 19:35:24 2000 Christopher Faylor <cgf@cygnus.com>
9704
9705 * site.cc (get_initial_list_idx): Don't default to saved URL if it
9706 refers to sources.
9707
9708 2000-09-07 DJ Delorie <dj@redhat.com>
9709
9710 * splash.cc: use version.h, not local decl
9711 * res.rc: add "old version" message
9712 * resource.h: ditto
9713 * version.h: new
9714 * fromcwd.cc (canonicalize_version): make global
9715 * iniparse.y: add setup-version support, fix bug in blank line
9716 handling
9717
9718 * inilex.l: add [exp] as alias for [test], add setup-version
9719 * Makefile.in (version.c): add setup-version tag
9720
9721 * desktop.cc (do_desktop): remove 1.1 version number
9722 (do_desktop_setup): ditto
9723
9724 * ini.cc (do_ini): zero out package list just in case we redo it.
9725
9726 2000-09-07 Jeffrey Juliano <juliano@cs.unc.edu>
9727
9728 * choose.cc (list_click): Check for nindexes==0; if so, return.
9729
9730 2000-09-06 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
9731
9732 * localdir.cc: new, local package directory selection dialog; cd
9733 into selected directory
9734 * Makefile.in (OBJS): add localdir.o
9735 * dialog.h: add prototype for do_local_dir
9736 * main.cc (WinMain): initialize local_dir to cwd; add call to
9737 do_local_dir
9738 * net.cc (dialog_cmd): make DO_LOCAL_DIR next dialog
9739 * source.cc (dialog_cmd): ditto
9740 * res.rc: add DO_LOCAL_DIR dialog; remove "current directory" from
9741 presented choices in IDD_SOURCE; add IDS_ERR_CHDIR error string
9742 * resource.h: defines for DO_LOCAL_DIR dialog; define IDS_ERR_CHDIR
9743 * root.cc (dialog_cmd): make DO_LOCAL_DIR previous dialog
9744 * state.h: add local_dir variable
9745
9746 2000-09-06 Brian Keener <bkeener@thesoftwaresource.com>
9747
9748 * desktop.cc: added logic to handle to the new dialog and to
9749 default the setting for the new checkboxes based on whether the
9750 desktop icon or start menu link already exist.
9751 (desktop_icon): correction to desktop directories for desktop icon
9752 creation. Additional logic added for Win95 which does not appear
9753 to have Common Directories so if Common selected and null uses
9754 normal directory.
9755 (start_menu): Additional logic added for Win95 which does not
9756 appear to have Common Directories so if Common selected and null
9757 uses normal directory.
9758 (do_desktop_setup): moved the saving of the icon, creation of the
9759 bat file, profile, passwd, Start Menu link and desktop shortcut to
9760 this method from do_desktop. Made the creation of the desktop
9761 icon and start menu link conditional on settings of new dialog
9762 created for desktop.
9763 * install.cc (do_install): changed next from IDD_S_DESKTOP to
9764 IDD_DESKTOP.
9765 * main.cc (WinMain): changed case IDD_S_DESKTOP to IDD_DESKTOP.
9766 * res.rc: added new resource to create a desktop dialog with 2
9767 checkboxes for creating the desktop icon and start menu link.
9768 * resource.h: changed IDD_S_DESKTOP to IDD_DESKTOP and added two
9769 new controls: IDC_ROOT_MENU and IDC_ROOT_DESKTOP for new dialog.
9770 * state.h: added root_menu and root_desktop for use in dialog.
9771
9772 2000-08-29 DJ Delorie <dj@redhat.com>
9773
9774 * choose.cc (scan_downloaded_files): scan for existing files, so
9775 that the user only sees new downloads.
9776
9777 * nio-ie5.cc (NetIO_IE5): pre-check for wininet.dll, enable dial-up
9778 * site.cc (do_site): if we can't download the mirror list, go back
9779 to the net setup box to choose another transport.
9780 * autoload.c: add more functions
9781 * Makefile.in (ALL_DEP_LDLIBS): remove wininet.a
9782 * resource.h: add WININET message
9783
9784 * net.cc (do_net): no longer default to IE5
9785 * simpsock.h (class SimpleSocket): new, simplify socket operations
9786 * simpsock.cc: ditto
9787 * nio-http.h: new, for direct http protocol
9788 * nio-http.cc: ditto
9789 * nio-ftp.h: new, for direct http protocol
9790 * nio-ftp.cc: ditto
9791 * netio.cc (set_url): move initialization here to handle redirections
9792 (open): add direct http/ftp
9793 * netio.h (NetIO::set_url): new
9794
9795 * log.cc (log_save): create directory for log if needed
9796
9797 * hash.cc, hash.h: new
9798 * Makefile: add hash.o
9799 * choose.cc: enable "uninstall" option
9800 * download.cc: invert action test to accomodate uninstalling
9801 * ini.h: add ACTION_UNINSTALL
9802 * install.cc: add uninstall functionality
9803 * res.rc: make install tag changeable
9804 * resource.h: add uninstall resources
9805
9806 * res.rc: update mirror list URL
9807
9808 2000-08-24 DJ Delorie <dj@redhat.com>
9809
9810 * log.cc, log.h: new files
9811 * Makefile.in (OBJS): add log.o
9812 * tar.cc: use exit_setup instead of exit
9813 * dialog.cc (fatal): use exit_setup instead of ExitProcess
9814 * msg.cc (fatal): ditto
9815 * install.cc (dialog_cmd): ditto
9816 * ini.cc (do_ini): ditto
9817 * main.cc (main): add logging
9818 * source.cc (do_source): ditto
9819 * root.cc (do_source): ditto
9820 * site.cc (do_site): ditto
9821 * other.cc (do_other): ditto
9822 * net.cc (do_net): ditto
9823 * choose.cc (do_choose): ditto
9824 * download.cc (do_download): ditto
9825 * install.cc (do_install): ditto
9826 * msg.cc (fatal): ditto
9827
9828 * res.rc: mark password boxes as *being* password boxes.
9829
9830 * fromcwd.cc (canonicalize_version): use multiple buffers so that
9831 multiple calls won't use the same buffer.
9832 * choose.cc (create_listview): don't default to full list if no changes
9833 (base): return computed value, not temporary :-(
9834 (do_choose): don't use installed.db if we're only downloading.
9835
9836 2000-08-23 DJ Delorie <dj@redhat.com>
9837
9838 * nio-ie5.cc (NetIO_IE5): Fix authentication logic
9839 * nio-ie5.h (flush_io): new
9840 * netio.cc (load_dialog): note when we're initializing the dialog
9841 box, and ignore changes to the edit fields then.
9842
9843 2000-08-21 DJ Delorie <dj@redhat.com>
9844
9845 * README: Update
9846
9847 * fromcwd.cc (found_file): don't remember the canonicalized version
9848
9849 * choose.cc (paint): print "nothing to do" message when list is empty.
9850 (build_labels): Use version "0.0" if no version is available.
9851 (create_listview): default to full list if nothing to install/update.
9852 (base): new, returns basename of file
9853 (read_installed_db): compare base names, not full paths
9854
9855 2000-08-11 DJ Delorie <dj@redhat.com>
9856
9857 * choose.cc: add new chooser dialog
9858 * fromcwd.cc: use IDD_CHOOSE
9859 * ini.cc: use IDD_CHOOSE
9860 * main.cc: use IDD_CHOOSE
9861 * ini.h: cosmetic changes
9862 * res.rc: add choose dialog, bitmaps
9863 * choose-spin.bmp: new
9864 * choose-rtarrow.bmp: new
9865 * resource.h: add choose dialog controls
9866
9867 * mount.cc: remove debug statement
9868
9869 2000-08-08 DJ Delorie <dj@redhat.com>
9870
9871 * Makefile.in (version.c): make version checking more robust
9872 * splash.cc (load_dialog): handle case where there's no version
9873
9874 2000-08-07 DJ Delorie <dj@redhat.com>
9875
9876 * (all): add cvsid tags
9877 * Makefile.in: generate version.c from ChangeLog, add splash.o
9878 * splash.o: new
9879 * res.rc: add splash screen
9880
9881 2000-08-02 DJ Delorie <dj@redhat.com>
9882
9883 * net.cc: remove proxy password code
9884 * res.rc: remove proxy user/pass from net, add auth dialogs
9885 * netio.cc,h: add sys/proxy auth methods
9886 * nio-ie5: use them, check for http status codes
9887 * state.h: add system authorization
9888
9889 * concat.cc (concat): canonicalize x:// to x:/ (exception to ://
9890 meaning an url)
9891
9892 2000-08-02 Norman Vine <nhv@yahoo,com>
9893
9894 * msg.cc (mbox): added MB_TOPMOST to MessageBox type flags
9895
9896 2000-08-01 DJ Delorie <dj@redhat.com>
9897
9898 * postinstall.cc (each): don't rename files we ignore
9899 (do_postinstall): set CYGWINROOT to root_dir, chdir there
9900
9901 * desktop.cc: have /etc/profile call ~/.profile and ~/.bashrc
9902
9903 2000-07-31 DJ Delorie <dj@redhat.com>
9904
9905 * desktop.cc: reverse PATH so /usr/bin precedes /bin
9906
9907 2000-07-18 DJ Delorie <dj@redhat.com>
9908
9909 * autoload.c: new, autoload dlls that might not be available.
9910 * Makefile.in (OBJS): add autoload.o
9911
9912 * res.rc: rewrite root options (text/binary, system/user) to be
9913 more obvious.
9914
9915 * site.cc (get_site_list): trim displayed URL, sort by domain
9916
9917 * net.cc (do_net): make IE5 default to checked, for now
9918
9919 * choose.cc (do_choose): sort packages correctly
9920 * ini.cc (do_ini): handle parse errors more gracefully
9921 (yyerror): ditto
9922 (fprintf): line buffer output
9923 (do_ini): if we can't load setup.ini, go back to the site list.
9924 * ini.h: add "unknown" trust level
9925 * inilex.l: absorb unknown trust levels and key/value pairs,
9926 add line number logic
9927 * iniparse.y: handle parse errors more gracefully.
9928 * install.cc: skip packages with no valid install entry
9929
9930 2000-07-17 DJ Delorie <dj@cygnus.com>
9931
9932 * coding standards fixups, many files
9933 * mkdir.cc: warn about deletions *before* deleting them
9934
9935 2000-07-17 Jeff Juliano <juliano@cs.unc.edu>
9936
9937 * res.rc (IDD_OTHER_URL): reorder to give default focus to entry
9938
9939 * other.cc (dialog_cmd): save download site URL
9940 * site.cc (get_root_dir): new
9941 (save_mirror_site): new
9942 (dialog_cmd): save download site URL
9943 (get_site_list): make list big enough to add prev site
9944 (get_initial_list_idx): new, read last-used URL from file and
9945 append it to site_list
9946 (do_site): call get_initial_list_idx
9947
9948 * concat.cc (concat): avoid segfault when first parm is null
9949
9950 2000-07-13 DJ Delorie <dj@cygnus.com>
9951
9952 * postinstall.cc: new
9953 * Makefile.in: add postinstall.o
9954 * concat.h: add backslash ()
9955 * concat.cc: ditto
9956 * desktop.cc (etc_profile): don't do postinstall
9957 (backslash): moved to concat.cc
9958 (uexists): new
9959 (make_postinstall_script): run directly
9960 (do_desktop): chain to do_postinstall
9961 * dialog.h: add exit_msg, do_postinstall
9962 * download.cc: use exit_msg
9963 * install.cc: ditto
9964 * main.cc: add postinstall, exit_msg
9965 * resource.h: add postinstall
9966 * README: add more to-do items
9967
9968 2000-07-12 DJ Delorie <dj@cygnus.com>
9969
9970 * desktop.cc: add /etc/postinstall/ support
9971 * install.cc: add more "standard" directories
9972
9973 2000-07-11 DJ Delorie <dj@cygnus.com>
9974
9975 * desktop.cc: create /etc/profile
9976 * desktop.cc: fix include syntax
9977 * Makefile.in: add auto-dependencies
9978 * root.cc: support system vs user
9979 * desktop.cc: ditto
9980 * mount.h: ditto
9981 * mount.cc: ditto
9982 * install.cc: ditto
9983 * res.rc: ditto
9984 * resource.h: ditto
9985 * state.h: ditto
9986 * desktop.cc: make sure we use backslashes, not slashes.
9987 * desktop.cc: don't set PATH in cygwin.bat, create /etc/passwd
9988 * geturl.cc: change math for percentage to avoid overflow
9989 * install.cc: ditto
9990 * download.cc: post "download complete" message.
9991 * root.cc: pre-fill in defaults if needed, don't start
9992 browse at root_dir unless it's set.
9993 * desktop.cc: quote $PATH in case it has spaces in it
9994
9995 2000-07-10 DJ Delorie <dj@cygnus.com>
9996
9997 * Makefile.in: add desktop.o and mklink2.o
9998 * dialog.h: add do_desktop
9999 * install.cc: create standard directories, call do_desktop
10000 * res.rc: add cygwin.ico as a file also
10001 * desktop.cc: new, do shortcuts, batch files, and icons
10002 * mklink2.c: new, for COM
10003 * README: update to-do list
10004
10005 2000-07-10 DJ Delorie <dj@cygnus.com>
10006
10007 * ini.cc (do_ini): don't worry about timestamps if we're not
10008 actually installing.
10009
10010 2000-07-09 DJ Delorie <dj@cygnus.com>
10011
10012 * Makefile.in: add -I$(srcdir) for ini.h
10013
10014 2000-07-06 DJ Delorie <dj@cygnus.com>
10015
10016 * Replace everything with a new GUI version
10017 * zlib/gzio.c: add gzctell() for progress displays
10018
10019 2000-06-22 DJ Delorie <dj@cygnus.com>
10020
10021 * setup.c (tarx): re-add call to write_pkg()
10022
10023 2000-06-07 DJ Delorie <dj@cygnus.com>
10024
10025 * cygcalls.c: new, call cygwin1.dll functions directly
10026 * cygcalls.h: header for same
10027 * Makefile.in: add cygcalls.[ch], remove mount/cygpath/umount
10028 exes, fix cinstall.rc dependencies.
10029 * path.c: remove unneeded code
10030 * setup.c: use cygcalls instead of xcreate_process.
10031 uncompress embedded files with zlib
10032 add "-d" for "download only"
10033 add "-h" for help
10034 postpone mount changes until very end
10035 add download progress indicators
10036 pack multi-column listings more
10037 auto-delete temp files
10038 customize banner message according to options
10039 prompt user for text/binary mounts
10040 add warnings about empty setup directory, root installs, etc
10041
10042 2000-05-24 DJ Delorie <dj@cygnus.com>
10043
10044 * tar.c: New file; built-in tar using zlib.
10045 * tar.h: New file; header for same.
10046 * ctar.c: New file; test program for same.
10047 * Makefile.in: add built-in tar, remove tar.exe and gzip.exe
10048 * path.c (pathcat): convert slashes and canonicalize, instead of
10049 aborting
10050 * setup.c (tarx): add support for built-in tar
10051 (main): accept unix-style slashes, check root dir for drive letters,
10052 warn about installing in /, make sure cwd is empty for internet
10053 installs, defer mounts to end of install, support built-in tar.
10054
10055 Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
10056
10057 Fix compiler warnings throughout.
10058 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
10059 get_pkg_stuff.
10060 * setup.c: Make 'root' global.
10061 (istargz): Return pointer to "stem" of matched .tar.gz file.
10062 (tarx): Special case cygwin-20000301 to == cygwin-1.1.0.tar.gz. Remove
10063 bogus check_for_installed check.
10064 (recurse_dirs): Add preliminary support for .bat file execution.
10065 (create_uninstall): Eliminate unneeded parameter.
10066 (do_start_menu): Ditto.
10067 (mkmount): Ditto.
10068 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
10069 scanning for the version number. Eliminate unneeded argument to
10070 create_uninstall.
10071 (getdownloadsource): Add 'name' to list of names rather than url.
10072 (main): Eliminate unneeded argument in get_pkg_stuff. Eliminate
10073 unneeded argument in mkmount and do_start_menu.
10074
10075 2000-05-18 DJ Delorie <dj@cygnus.com>
10076
10077 * setup.c (optionprompt): allow multi-column, clean up message
10078 about more options, be more robust about user input.
10079 (getdownloadsource): make the mirror URL a macro.
10080 (main): do mounts after done prompting user.
10081
10082 Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
10083
10084 * setup.c (cleanup): Inverse order of deletion stands a better chance
10085 of deleting cygpath.exe. Still seems to suffer from occasional races,
10086 though.
10087 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
10088 w2k.
10089 (output_file): Defend against an unlikely handle leak.
10090 (main): Don't set up signal handling until we have something special to
10091 do.
10092
10093 Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
10094
10095 * path.c (kill_cygpath): Delete function.
10096 (exit_cygpath): Make more defensive so that it can be called at any
10097 time.
10098 (cygpath_pipe): Don't set up signal here. Do it in main().
10099 * setup.c (istargz): New function.
10100 (recurse_dirs): Look for *.gz pattern rather than *tar.gz since *tar.gz
10101 inexplicably fails on samba mounted partitions. Use istargz to match
10102 tar.gz tail.
10103 (processdirlisting) Use istargz to match tar.gz tail.
10104 (cleanup): Renamed from filedel.
10105 (cleanup_on_signal): New function. Called on CTRL-C.
10106 (main): Record handle of main thread so that it can be suspended when
10107 CTRL-C occurs. Set up cleanup_on_signal signal handler.
10108
10109 Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
10110
10111 * setup.c (do_start_menu): Don't concatenate paths to already built
10112 paths.
10113
10114 Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
10115
10116 * path.c (exit_cygpath): Wait for subprocess to exit before returning.
10117 (cygpath_pipe): Don't call exit_cygpath. Let main atexit routine do
10118 that.
10119 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
10120 root"-specific.
10121 * setup.c (filedel): Call exit_cygpath here so that we can be assured
10122 that cygpath subprocess has died. This allows us to delete cygpath.exe
10123 and cygwin1.dll.
10124 (optionprompt): Initialize response to -1 so that second screen of
10125 mirrors will appear.
10126 (get_pkg_stuff): Don't attempt to use HKCLU. Pass root to init_pkgs.
10127 * setup.h: Reflect init_pkgs prototype change.
10128
10129 Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
10130
10131 * pkg.c (init_pkgs): Accept an argument to control what root registry
10132 key should be used.
10133 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
10134 * setup.h: Reflect init_pkgs prototype change.
10135
10136 Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
10137
10138 * error.c (winerror): Respond to gcc warning.
10139 * path.c (cygpath_pipe): Ditto.
10140 * setup.c (filedel): Call sa_cleanup on deleteme.
10141 (create_shortcut): Coerce argument to eliminate compiler warning.
10142 (tarx): Use installed version of cygwin1.dll, overriding tar file name.
10143 (refmatches): New function. Tests if ref is contained in a list of
10144 packages to install.
10145 (filematches): New function. Tests if filename matches one of a list
10146 of packages to install.
10147 (recurse_dirs): Accept list of packages to install. Generalize tar.gz
10148 test to accomodate _tar.gz.
10149 (prompt): Ensure that stdout is flushed prior to asking for input.
10150 (findhref): Initialize variables to quiet a compiler warning.
10151 (processdirlisting): Accept list of packages to install. Special case
10152 cygwin tar file version number.
10153 (downloaddir): Accept list of packages to install.
10154 (downloadfrom): Ditto.
10155 (create_uninstall): Eliminate unneeded variables. Quote arguments to
10156 regtool.
10157 (do_start_menu): Don't create uninstall bat file if updating or user
10158 specified a list of packages.
10159 (mkmount): Eliminate unneeded variables.
10160 (get_pkg_stuff): New function. Checks for previous unversioned
10161 installation.
10162 (main): Accept -u and -f options and package names on the command line.
10163 Use get_pkg_stuff to initialize package information. Umount /etc.
10164 Call recurse_dirs and downloadfrom with list of package to install.
10165 Ensure that all /usr/local directories are created. Output
10166 installation time to setup.log.
10167 * setup.h: Add some prototypes.
10168 * xsystem.c (xcreate_process): Eliminate unneeded variable.
10169
10170 Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
10171
10172 * setup.c (optionprompt): Don't overlap display of already seen options
10173 on next page.
10174 (geturl): Print name of site which we're connecting to rather than "ftp
10175 site".
10176 (processdirlisting): Avoid URLs that contain a /. or ./ . Is this
10177 test too simplistic?
10178 (do_start_menu): Use pathcat to build path to <root>\bin to avoid
10179 problems when user chooses x:\ as their root.
10180 (main): For now, default to "non-update" mode. Allow -u option to
10181 signify an update.
10182
10183 Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
10184
10185 * pkg.c: New file.
10186 * setup.c (tarx): Skip already installed or older packages. Report
10187 when a package has been updated.
10188 (processdirlisting): Skip already installed or older packages.
10189 (main): Detect -f option for forced installation. Initialize pkg stuff
10190 if appropriate.
10191 * setup.h: Add pkg definitions.
10192
10193 Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
10194
10195 * setup.c (findhref): Return NULL on empty string. Eat any trailing
10196 ";something".
10197 (processdirlisting): Attempt to limit recursively processing the same
10198 directory.
10199
10200 Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
10201
10202 * setup.c (filedel): New function.
10203 (output_file): Keep track of files extracted from setup.exe for
10204 subsequent deletion.
10205 (tarx): Close process handle of child tar process or suffer handle
10206 leak.
10207 (getdownloadsource): Close mirror file so that it can be unlinked.
10208 (processdirlisting): Return total number of files extracted.
10209 (main): Initialize array of files to delete. Ensure that files are
10210 closed on exit. Make the directory that setup.exe is started from ==
10211 the directory where temporary files are placed. Issue an error if no
10212 files were found to download.
10213 * xsystem.c (xcreate_process): Close the thread handle. Close the
10214 process handle if we waited for it to exit.
10215
10216 Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
10217
10218 * setup.c (main): Change version number output.
10219
10220 Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
10221
10222 * setup.c (tarx): Use full path name to tar executable.
10223 (main): Build full pathname to tar executable. Create /usr/local/etc
10224 by default.
10225
10226 Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
10227
10228 * setup.c (findhref): Change method for scanning for href= to choose
10229 the last one on the line. This is still not foolproof and probably
10230 will need to be changed eventually. Don't abort if no "size" field is
10231 evident.
10232 (processdirlisting): Fix boolean algebra.
10233
10234 Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
10235
10236 * main.c (tarx): Add some code for future task of unmounting
10237 directories encountered in tar file.
10238
10239 Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
10240
10241 * setup.c (findhref): Decode file size, when appropriate.
10242 (needfile): New function. Returns 1 when file should be
10243 downloaded.
10244 (processdirlisting): Always download if file size does not
10245 match. Prompt when download fails for some reason.
10246 (getdownloadsource): Accomodate findhref argument changes.
10247
10248 Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
10249
10250 Throughout, use global session handle rather than reinitializing for
10251 each connect. Don't pass session as an argument to setup.c functions.
10252 * setup.c (geturl): Only issue "Connecting to.." message when using
10253 http or first time for ftp since subsequent connections will be fast.
10254 (processdirlisting): Allocate space for "N" when user has specified
10255 "N"ever option so that it can be subsequently freed.
10256 (main): Abort if we can't get the list of mirrors.
10257
10258 Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
10259
10260 * setup.c (main): Umount /bin and /lib.
10261
10262 Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
10263
10264 * setup.c (main): Create an empty /var/run/utmp.
10265
10266 Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
10267
10268 * Makefile.in: Add umount to list of files to include in setup.exe.
10269 * setup.c (xumount): New function for unmounting directories.
10270 (main): Unmount /usr.
10271 (mkmount): Unmount "unix directory" before trying to figure out where
10272 to create the directory.
10273
10274 Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
10275
10276 * setup.c (mkmount): Use xcreate_process to start mount process,
10277 avoiding the shell.
10278 (main): Don't do buffering on stdout or prompts won't be displayed
10279 correctly if running in a cygwin shell with CYGWIN=tty.
10280
10281 Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
10282
10283 * setup.c (main): Remove the CYGWIN environment variable before
10284 starting any cygwin programs.
10285
10286 Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
10287
10288 * setup.c (geturl): Use alternative method for finding filename part of
10289 a URL.
10290 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
10291 (downloaddir): Unlink file containing dir listing.
10292 (downloadfrom): Ditto.
10293
10294 Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
10295
10296 * setup.c (main): Disallow running setup.exe from the "root".
10297
10298 Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
10299
10300 Use "warning" function, where appropriate, to output warnings.
10301 * setup.c (warning): New function -- outputs warning to console and log
10302 file.
10303 (tarx): Fix index used to reset file protection.
10304 (main): Open the log file earlier so that more stuff can be sent to it.
10305
10306 Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
10307
10308 * setup.c (processdirlisting): Make "N" option a little less aggressive.
10309
10310 Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
10311
10312 * setup.c (tarx): Wait to after tar has completed to reset protections
10313 or suffer races with tar process.
10314
10315 Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
10316
10317 * Makefile.in: Eliminate duplicate -nostdinc from CFLAGS.
10318 * setup.c (create_uninstall): Create the uninstall .bat file in the
10319 "root" so that we can remove the /bin directory. Add bin\cygwin.bat to
10320 list of files to be deleted. Fix directory detection for determining
10321 when to use 'rmdir'.
10322 (do_start_menu): Add /usr/local/bin to the path.
10323 (main): Add slop to files.array allocation so that we don't have to
10324 worry about reallocating the array when it grows too large when doing
10325 some trivial "pushes". Add /tmp and /usr/local/{bin,lib} to list of
10326 files.
10327
10328 Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
10329
10330 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
10331 download.
10332
10333 Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
10334
10335 * path.c (kill_cygpath): New cleanup function.
10336 (exit_cygpath): New cleanup function.
10337 (cygpath_pipe): New function. Sets up cygpath in the background for
10338 translating filenames.
10339 (pathcvt): Use background cygpath for file translation.
10340 * setup.c (tarx): New function. Called to extract tar files, capture
10341 logging output, and translate it to Windows format.
10342 (recurse_dirs): Use 'tarx' function to extract files.
10343 (create_uninstall): Use file list built up by tarx rather than reading
10344 the log file.
10345 (mkmount): Add ability to mount root.
10346 (main): Track elapsed install time. Mount root.
10347 * starry.h: Add index field to strarry for tracking of tarx's usage of
10348 this structure.
10349 * xsystem.c (xcreate_process): Return proces handle when not waiting.
10350
10351 Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
10352
10353 * path.c: New file.
10354 (pathfp): New function. Preliminary work for new -f cygpath
10355 functionality.
10356 * Makefile.in: Add new file.
10357 (pathcvt): Move to new file.
10358 (dtoupath): Ditto.
10359 (utodpath): Ditto.
10360 (pathcat): Ditto.
10361 * setup.c (processdirlisting): Always open file in text mode.
10362 (create_uninstall): Ditto.
10363 (getdownloadsource): Ditto.
10364 (main): Ditto.
10365
10366 Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
10367
10368 * xsystem.c: New file.
10369 * Makefile.in: Accomodate new file.
10370 * setup.c (xsystem): Move to new file.
10371 (recurse_dirs): Accept handle to output log file. Don't use ">"
10372 redirection to trap tar output. Use supplied handle instead.
10373 (create_uninstall): Accept FILE pointer to opened log file. Don't
10374 unlink log file here.
10375 (do_start_menu): Accept FILE pointer to pass to create_uninstall.
10376 (main): Open log file here and pass it to various functions. Unlink
10377 when done.
10378
10379 Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
10380
10381 Change occurrences of .usr.bin to .bin throughout.
10382 * setup.c (geturl): Increase number of retries to 20. Let user know
10383 what's going on during long connects.
10384 (processdirlisting): Accept "A"lways and "N"ever as update options.
10385 (create_uninstall): Load cygwin1.dll from the current directory rather
10386 than \bin.
10387 (main): Add some expository text.
10388
10389 Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
10390
10391 * Makefile.in: Change method for compressing cygwin1.dll to avoid
10392 creating a cygwin1.dll in the current directory. Ensure the addition
10393 of -nostdinc to MINGW_CFLAGS.
10394
10395 Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
10396
10397 * Makefile.in: Augment clean target.
10398
10399 Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
10400
10401 * README: Added info about non-working mingw implementation
10402 * gzip.exe.gz: Replace with a version from the same build as the other
10403 tools.
10404 * tar.exe.gz: Replace with a version from the same build as the other
10405 tools.
10406 * mount.exe.gz: Add to repository until, mingw can build setup.
10407 * cygpath.exe.gz: ditto
10408 * cygwin1.dll.gz: ditto
10409 * setup.c: Overwrite /bin and /lib mounts. Generate working shortcut
10410 for Win9x. Display only a screenfull of options at a time. Call all
10411 tools with an absolute path.
10412 * setup.dsp: Restore the carriage returns, MS Developer Studio needs
10413 them.
10414 * setup.dsw: ditto
10415 * zlib.dsw: ditto
10416
10417 Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
10418
10419 * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab
10420 cygwin1.dll from ../cygwin subdirectory.
10421 * gzip.exe.gz: Update.
10422 * tar.exe.gz: Update.
10423
10424 Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
10425
10426 * Makefile.in: Use ZLIB variable as a target.
10427
10428 Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
10429
10430 * Makefile.in: Eliminate traces of cygwinisms. Don't link with
10431 libmsvcrt.a. It's unneeded. Build .rc file on the fly from various
10432 sources.
10433 * configure.in: Locate correct objcopy.
10434 * configure: Regenerate.
10435
10436 Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
10437
10438 * Makefile.in: New file.
10439 * configure.in: New file.
10440 * configure: New file.
10441 * zlib/Makefile.am: New file.
10442 * zlib/configure.in: New file.
10443 * zlib/aclocal.m4: New file.
10444 * zlib/acinclude.m4: New file.
10445 * zlib/configure: Regenerate from configure.in.
10446 * zlib/Makefile.in: Regenerate from Makefile.am
10447
10448 %%% $Id$
10449 $Revision$
This page took 0.48816 seconds and 5 git commands to generate.