]> cygwin.com Git - cygwin-apps/setup.git/blob - ChangeLog
2001-11-16 Robert Collins <rbtcollins@hotmail.com>
[cygwin-apps/setup.git] / ChangeLog
1 2001-11-16 Robert Collins <rbtcollins@hotmail.com>
2
3 * README: Updated and added my list of wishlist and todo items.
4
5 2001-11-14 Robert Collins <rbtcollins@hotmail.com>
6
7 * Makefile.in (OBJS): Include io_stream_memory in setup.exe.
8 * archive_tar.cc (archive_tar::write): New prototype.
9 (archive_tar::seek): New method.
10 * archive.h (archive_tar_file): Update write() and add seek().
11 (archive_tar): Ditto.
12 * archive_tar_file.cc (archive_tar_file::write): New prototype.
13 (archive_tar_file::seek): New method.
14 * compress_bz.cc (compress_bz::write): New prototype.
15 (compress_bz::seek): New function.
16 * compress_bz.h (compress_bz): Update write() and add seek().
17 * compress_gz.cc (compress_gz::write): New prototype.
18 (compress_gz::seek): New function.
19 * compress_gz.h (compress_gz): Update write() and add seek().
20 * geturl.cc: Include io_stream headers.
21 (GUBuf): Remove.
22 (get_url_to_string): Use a io_stream_memory buffer instead of GUBuf.
23 * io_stream.h (io_stream_seek_t): New enum.
24 (io_stream): Update write() and add seek().
25 * io_stream_cygfile.cc (io_stream_cygfile::write): New prototype.
26 (io_stream_cygfile::seek): New function.
27 * io_stream_cygfile.h (io_stream_cygfile): Update write() and add seek().
28 * io_stream_file.cc (io_stream_file::write): New prototype.
29 (io_stream_file::seek): New function.
30 * io_stream_file.h (io_stream_file): Update write() and add seek().
31
32 2001-11-13 Brian Keener <bkeener@thesoftwaresource.com>
33
34 * localdir.cc: Add headers unistd.h and port.h.
35 (save_local_dir): Expand search logic to include local directory for
36 location of file last-cache.
37 (dialog_cmd): Skip IDD_ROOT when downloading and use Back button.
38 (do_local_dir): Expand search logic to include local directory for file
39 last-cache.
40 * res.rc (IDD_CHOOSE_DIALOG): Add hotkey to View button.
41 * Source.cc (dialog_cmd): Skip IDD_ROOT if select Download from
42 Internet.
43 (do_source): Default to Install from Internet on first entry or
44 previous selection if backing up from IDD_ROOT or IDD_LOCAL_DIR.
45
46 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
47
48 * choose.cc (find_tar_ext): Only match at the end of the string.
49 (getpkgbyname): Prevent NULL pointer dereference.
50
51 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
52
53 * Makefile.in (CFLAGS): Add warnings and -Werr.
54 (WARNONLY_FLAGS): For sources that produce (harmless) errors no matter what.
55 (OBJS): Add io_stream class' objects.
56 (autoload.o): Use WARNONLY_FLAGS.
57 (inilex.o): Ditto.
58 (iniparse.o): Ditto.
59 * archive.cc: New file.
60 * archive.h: New file.
61 * archive_tar.cc: New file.
62 * archive_tar.h: New file.
63 * archive_tar_file.cc: New file.
64 * autoload.c: Fix compiler warnings (unused, deprecated conversion).
65 * choose.cc: Use io_stream.h, not mount.h.
66 Run indent.
67 (find_tar_ext): Rewritten to use strstr, and to accept .tar as an extension.
68 (read_installed_db): Use io_streams.
69 * choose.h: Run indent.
70 * compress.cc: New file.
71 * compress.h: New file.
72 * compress_bz.cc: New file.
73 * compress_bz.h: New file.
74 * compress_gz.cc: New file.
75 * compress_gz.h: New file.
76 * concat.cc: Run indent.
77 (cvsid): Fix compiler warnings (unused, deprecated conversion).
78 * concat.h: Run indent.
79 * desktop.cc: Run indent.
80 Include mklink2.h rather than redefining by hand.
81 (cvsid): Fix compiler warnings (unused, deprecated conversion).
82 (etc_profile): Fix compiler warning (deprecated conversion).
83 (make_link): Fix compiler warning (deprecated conversion).
84 Tidy up use of args variable - consolidate into argbuf.
85 (start_menu): Fix compiler warning (deprecated conversion).
86 (desktop_icon): Fix compiler warning (deprecated conversion).
87 (make_etc_profile): Fix compiler warning (deprecated conversion).
88 (uexists): Fix compiler warning (deprecated conversion).
89 (check_desktop): Fix compiler warning (deprecated conversion).
90 (check_startmenu): Fix compiler warning (deprecated conversion).
91 * dialog.cc: Run indent.
92 (cvsid): Fix compiler warnings (unused, deprecated conversion).
93 (fatal): Fix compiler warning (deprecated conversion).
94 * dialog.h: Run indent.
95 * diskfull.cc: Run indent.
96 (cvsid): Fix compiler warnings (unused, deprecated conversion).
97 * download.cc: Run indent.
98 (cvsid): Fix compiler warnings (unused, deprecated conversion).
99 (download_one): Fix compiler warning (signed vs unsigned comparison).
100 * filemanip.h: Run indent.
101 * find.cc: Run indent.
102 (cvsid): Fix compiler warnings (unused, deprecated conversion).
103 (find): Fix compiler warning (deprecated conversion).
104 * find.h: Run indent.
105 * fromcwd.cc: Run indent.
106 * geturl.cc: Run indent.
107 (cvsid): Fix compiler warnings (unused, deprecated conversion).
108 (dialog_cmd): Return a value.
109 (dialog_proc): Remove unused variables.
110 Return a value.
111 (get_url_to_file): Fix compiler warning (deprecated conversion).
112 * geturl.h: Run indent.
113 * hash.cc: Run indent.
114 (cvsid): Fix compiler warnings (unused, deprecated conversion).
115 * hash.h: Run indent.
116 * ini.cc: Run indent.
117 Use io_streams.
118 (cvsid): Fix compiler warnings (unused, deprecated conversion).
119 (do_ini): Use io_streams for local io.
120 * ini.h: Run indent.
121 * inilex.l (ignore_line): Fix compiler warning (is not a prototype).
122 Fix compiler warning (brackets for truth assignment).
123 * install.cc: Run indent.
124 Fix compiler warning (/* in comment).
125 Use io_streams.
126 (cvsid): Fix compiler warnings (unused, deprecated conversion).
127 (dialog_cmd): Return a value.
128 (dialog_proc): Return a value.
129 (start_tics): Deleted - was unused.
130 (badrename): Fix compiler warnings (unused, deprecated conversion).
131 (standard_dirs): Fix compiler warning (deprecated conversion).
132 (exists): Remove.
133 (uninstall_one): Convert to io_streams.
134 (install_one): Convert to io_streams.
135 (do_install): Convert to io_streans.
136 Fix compiler warning (deprecated conversion).
137 * io_stream.cc: New file.
138 * io_stream.h: New file.
139 * io_stream_cygfile.cc: New file.
140 * io_stream_cygfile.h: New file.
141 * io_stream_file.cc: New file.
142 * io_stream_file.h: New file.
143 * localdir.cc: Run indent.
144 Use io_streams.
145 (cvsid): Fix compiler warnings (unused, deprecated conversion).
146 (get_root_dir_now): Remove.
147 (save_local_dir): Convert to io_streams.
148 (dialog_cmd): Return a value.
149 (do_local_dir): Convert to io_streams.
150 (log.cc): Run indent.
151 (cvsid): Fix compiler warnings (unused, deprecated conversion).
152 (log): Fix compiler warning (deprecated conversion).
153 (log_save): Fix compiler warning (deprecated conversion).
154 * log.h: Run indent.
155 (log): Fix compiler warning (deprecated conversion).
156 (log_save): Fix compiler warning (deprecated conversion).
157 * main.cc: Run indent.
158 Don't include "netio.h".
159 (cvsid): Fix compiler warnings (unused, deprecated conversion).
160 (netio_test): Remove.
161 (sid_auth): Fix compiler warning (partially bracketed initialiser).
162 (WinMain): Return a value.
163 * mkdir.cc: Run indent.
164 (cvsid): Fix compiler warnings (unused, deprecated conversion).
165 * mklink2.c: Run indent.
166 (cvsid): Fix compiler warnings (unused, deprecated conversion).
167 (mkcygsymlink): New function.
168 * mklink2.h: New file.
169 * mount.cc: Run indent.
170 (cvsid): Fix compiler warnings (unused, deprecated conversion).
171 (create_mount): Remove unused variables.
172 (cygpath): Fix compiler warning (signed vs unsigned comparison).
173 * mount.h: Run indent.
174 * msg.cc: Run indent.
175 (cvsid): Fix compiler warnings (unused, deprecated conversion).
176 (msg): Fix compiler warning (deprecated conversion).
177 (mbox): Fix compiler warning (deprecated conversion).
178 * msg.h: Run indent.
179 (msg): Fix compiler warning (deprecated conversion).
180 * net.cc: Run indent.
181 (cvsid): Fix compiler warnings (unused, deprecated conversion).
182 (dialog_cmd): Return a value.
183 * netio.cc: Run indent.
184 (cvsid): Fix compiler warnings (unused, deprecated conversion).
185 (auth_cmd): Return a value.
186 * netio.h: Run indent.
187 * nio-file.cc: Run indent.
188 (cvsid): Fix compiler warnings (unused, deprecated conversion).
189 (NetIO_File::NetIO_File): Fix compiler warning (deprecated conversion).
190 * nio-file.h: Run indent.
191 * nio-ftp.cc: Run indent.
192 (cvsid): Fix compiler warnings (unused, deprecated conversion).
193 * nio-ftp.h: Run indent.
194 * nio-http.cc: Run indent.
195 (cvsid): Fix compiler warnings (unused, deprecated conversion).
196 * nio-http.h: Run indent.
197 * nio-ie5.cc: Run indent.
198 (cvsid): Fix compiler warnings (unused, deprecated conversion).
199 * nio-ie5.h: Run indent.
200 * other.cc: Run indent.
201 (cvsid): Fix compiler warnings (unused, deprecated conversion).
202 (dialog_cmd): Return a value.
203 * port.h: Run indent.
204 * postinstall.cc: Run indent.
205 (cvsid): Fix compiler warnings (unused, deprecated conversion).
206 (cmd): Fix compiler warning (deprecated conversion).
207 (eun): Fix compiler warning (deprecated conversion).
208 * root.cc: Run indent.
209 (cvsid): Fix compiler warnings (unused, deprecated conversion).
210 * simpsock.cc: Run indent.
211 (cvsid): Fix compiler warnings (unused, deprecated conversion).
212 * simpsock.h: Run indent.
213 * site.cc: Run indent.
214 Use io_streams.
215 (cvsid): Fix compiler warnings (unused, deprecated conversion).
216 (get_root_dir_now): Remove.
217 (save_site_url): Convert to io_streams.
218 (dialog_cmd): Return 0.
219 (get_initial_list_idx): Convert to io_streans.
220 * source.cc: Run indent.
221 (cvsid): Fix compiler warnings (unused, deprecated conversion).
222 (check_if_enable_next): Remove.
223 (load_dialog): Remove unused variables.
224 (save_dialog): Ditto.
225 (dialog_cmd): Return a value.
226 * splash.cc: Return a value.
227 (cvsid): Fix compiler warnings (unused, deprecated conversion).
228 (dialog_cmd): Return a value.
229 * state.cc: Run indent.
230 (cvsid): Fix compiler warnings (unused, deprecated conversion).
231 * state.h: Run indent.
232 * tar.h: Remove.
233 * tar.cc: Remove.
234
235 2001-11-12 Christopher Faylor <cgf@redhat.com>
236
237 * desktop.cc (start_menu): Change start menu name to "Cygwin".
238 (check_startmenu): Ditto.
239
240 2001-11-11 Christopher Faylor <cgf@redhat.com>
241
242 * choose.cc (parse_filename): Finish reorganization by correctly
243 decrementing p in memmove.
244
245 2001-11-11 Christopher Faylor <cgf@redhat.com>
246
247 * choose.cc (parse_filename): Reorganize code to work around gcc
248 optimization problem.
249
250 2001-11-09 Gareth Pearce <tilps@hotmail.com>
251
252 * choose.cc (set_action): Allow skip as an option for installed
253 packages that have version number not listed in setup.ini.
254
255 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
256
257 * choose.cc (set_cation): Backout last change.
258 (choose_caption): Ditto.
259
260 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
261
262 * ini.h (actions): Remove - transferred to choose.h.
263 (views): Ditto.
264 * choose.h: Protect class's from "C" compilers.
265 (actions): New enum, from ini.h. This may not be the 'right' place
266 but that place doesn't exist yet.
267 (_views): New enum, from ini.h.
268 * choose.cc (set_action): Handle installed packages with a version not in
269 setup.ini.
270 (choose_caption): Ditto.
271 * iniparse.y: Rearrange header order to handle new ini.h.
272
273 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
274
275 * ini.h (_Info): Fix compiler warnings (signed vs unsigned comparison).
276 (registry_category): Fix compiler warning (deprecated conversion).
277 * iniparse.y (registry_category): Ditto.
278 * choose.cc (cvsid): Fix compiler warnings (unused, deprecated conversion).
279 (add_requried): Remove unused variable.
280 (choose_caption): Handle all enumeration values via a default.
281 (paint): Fix compiler warnings (unused, deprecated conversion).
282 (scroll_common): Fix compiler warnings (unused, signed vs unsigned comparison).
283 (list_clicK): Fix compiler warnings (signed vs unsigned comparison).
284 (note_width): Fix compiler warnings (deprecated conversion).
285 (keep_or_skip): Fix compiler warnings (unused).
286 (_view::mode_caption): Fix compiler warnings (deprecated conversion).
287 (set_view_mode): Fix compiler warnings (unused).
288 (create_listview): Fix compiler warnings (unused, incorrect format, reaches
289 end of function).
290 (dialog_proc): Fix compiler warnings (unused).
291 (read_installed_db): Fix compiler warnings (unused, deprecated conversion).
292 * choose.h (_header): Fix compiler warnings (deprecated conversion).
293 (_view): Ditto.
294
295 2001-11-08 Pavel Tsekov <ptsekov@syntrex.com>
296
297 * simpsock.h (SimpleSocket::invalidate): Declare new method.
298 * simpsock.cc (SimpleSocket::invalidate): Implement new method.
299 (SimpleSocket::SimpleSocket): Initialize buf to zero. Do not allocate
300 memory for buf in the constructor.
301 (SimpleSocket::~SimpleSocket): Use SimpleSocket::invalidate().
302 (SimpleSocket::printf): Use SimpleSocket::write() instead of send().
303 (SimpleSocket::write): Check object consistency - return -1 on error.
304 invalidate() the object on socket write error.
305 (SimpleSocket::fill): Check object consistency - return -1 on error.
306 invalidate() the object if socket read error is encountered and there
307 is no more data available in the internal read buffer.
308 Allocate memory for the internal read buffer.
309 (SimpleSocket::gets): Return zero (NULL pointer) if error is encountered
310 during fill() and no more data is available in the internal read buffer.
311 (SimpleSocket::read): Check object consistency - return -1 on error.
312 invalidate() the object if socket read error is encountered.
313 * nio-ftp.cc (NetIO_FTP:NetIO_FTP): Allow 125 as valid response code to
314 the RETR command (fix for MS IIS ftp server 5 - possibly others too).
315 (NetIO_FTP::ok): Check if the SimpleSocket object is ok().
316 (NetIO_FTP::read): Use NetIO_FTP::ok().
317 * nio-http.cc: Check for valid return value of SimpleSocket::gets().
318 (NetIO_HTTP::ok): Check if the SimpleSocket object is ok().
319
320 2001-11-09 Robert Collins <rbtcollins@hotmail.com>
321
322 * simpsock.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
323 (SimpleSocket::SimpleSocket): Avoid compiler warnings (deprecated conversion).
324 (SimpleSocket::printf): Ditto.
325 (SimpleSocket::write): Ditto.
326 * simpsock.h (SimpleSocket): Avoid compiler warnings for constructor,
327 printf and write.
328 * nio-ftp.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
329 (NetIO_FTP::NetIO_FTP): Remove unused variable done.
330 * nio-http.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
331
332 2001-11-07 Charles Wilson <cwilson@ece.gatech.edu>
333
334 * geturl.cc (get_url_to_string): clean up memory leak
335 (get_url_to_file): ditto
336
337 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
338
339 * localdir.cc (dialog_cmd): Go back to IDD_ROOT in every case.
340 * source.cc (dialog_cmd): Go forward to IDD_ROOT in every case.
341
342 2001-11-06 Pavel Tsekov <ptsekov@syntrex.com>
343
344 * fromcwd.cc (found_file): Free() memory containing the version and
345 filepath information for a given package, before replacing the pointers which
346 reference this memory.
347
348 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
349
350 * fromcwd: Fix compiler warnings for cvsid.
351 (canonicalize_version): Fix compilter warnings.
352 (do_fromcwd): Ditto.
353 * version.h: Fix compiler warnings for canonicalize_version.
354
355 2001-11-03 Robert Collins <rbtcollins@hotmail.com>
356
357 * res.rc (IDD_CHOOSE): Move the view caption to the right hand side.
358
359 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
360
361 * res.rc (IDD_CHOOSE): Tweak for use on a 640x480 screen.
362
363 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
364
365 * choose.cc (set_action): Correctly allow skip for any uninstalled package.
366
367 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
368
369 * choose.cc (default_trust): Change the "Required" forced install category to
370 "Base".
371
372 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
373
374 * choose.cc: Ran indent.
375 (set_action): When the requested trust level is missing and the level was not
376 user requested, set the action to ACTION_SAME_CURR.
377
378 2001-11-01 Christopher Faylor <cgf@redhat.com>
379
380 * Makefile.in (mingw_getopt.o): Fix typo in non-verbose compilation.
381
382 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
383
384 * choose.cc (_view::init_headers): Resync with the paint logic.
385
386 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
387
388 * choose.cc (add_required): Allow SKIP and SRC_ONLY for currently installed
389 packages.
390
391 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
392
393 * choose.cc (default_trust): Autoset currently installed packages per the user's
394 selection of prev/curr/exp.
395
396 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
397
398 * splash.cc (dialog_proc): Return TRUE as specified in the WIN32 API.
399
400 2001-11-02 Pavel Tsekov <ptsekov@syntrex.com>
401
402 * geturl.cc (is_showing): Remove.
403 (is_local_install): New static variable. Controls whether the
404 progress dialog and the supporting thread will be created.
405 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the WIN32 API.
406 (init_dialog): Remove usage of SetForegroundWindow and is_showing.
407 This prevents the progress dialog to gain control over the
408 application and fixes the "setup.exe going to background" problem.
409 (progress): Use is_local_install.
410 (get_url_to_string): Set is_local_install.
411 (dismiss_url_status_dialog): Use is_local_install.
412 * install.cc (dialog_proc): Return TRUE as specified in WIN32 API.
413 (init_dialog): Remove usage of SetForegroundWindow.
414 This prevents the progress dialog to gain control over the
415 application and fixes the "setup.exe going to background" problem.
416
417 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
418
419 * choose.cc (list_click): Change r to row for clarity.
420 When we shrink the list below 1 page, scroll to the top of the list.
421 (_view::click): Return the actual change for contractions.
422 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the Win32 API.
423
424 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
425
426 * choose.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
427 * localdir.cc: Ran indent.
428 (get_root_dir_now): New function.
429 (save_local_dir): New function.
430 (dialog_cmd): Use it and swap cygwin root selection and local dir selection order.
431 (do_local_dir): If there is a saved local dir, read it in.
432 * net.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
433 * root.cc (dialog_cmd): Ditto.
434 * source.cc (dialog_cmd): Ditto.
435
436 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
437
438 * choose.cc(list_vscroll): Return 0 as required by win32.
439 (list_hscroll): Ditto.
440 (list_click): Ditto.
441
442 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
443
444 * argv.cc: Remove.
445 * argv.h: Remove.
446 * main.cc(WinMain): Use __argv to retrieve command line parameters.
447 * Makefile,in: Remove argv.o.
448
449 2001-11-01 Matt Hargett <matt@use.net>
450
451 * geturl.cc (progress): Change int to unsigned int to eliminate
452 lint warnings.
453 * (get_url_to_string): Check for NULL pointer.
454 * mount.cc (find2): Use free instead of delete for malloc'd
455 memory.
456 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Fix memory leak.
457
458 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
459
460 * choose.cc(_view::insert_under): Handle linen > nlines and lines[linen] with neither
461 a package nor a category. The lines[linen] bug was reported by Matt (matt@usa.net).
462 (read_installed_db): Bugfix for testing whether a package has a source tarball.
463 Reported by Matt (matt@usa.net).
464 * geturl.cc(dialog): Rename gw_dialog to local_gw_dialog to avoid programmer
465 confusion and lint errors. Reported by Matt (matt@usa.net).
466
467 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
468
469 * argv.cc: New file, converts arguments for -mwindows programs. (Simplified derivation
470 from dcrt0.cc.)
471 * argv.h: New file.
472 * Makefile,in: Add argv.o and mingw_getopt.o to setup.exe object list.
473 Add mingw_getopt.o build rule.
474 * main.cc(WinMain): Initialise argv and argc for use by getopt.
475
476 2001-10-27 Christopher Faylor <cgf@redhat.com>
477
478 * res.rc: Rearrange info on top line slightly.
479
480 2001-10-27 Christopher Faylor <cgf@redhat.com>
481
482 * desktop.cc (make_passwd_group): Move file creation earlier in the
483 process to ensure that passwd-grp.bat reflects desired operation.
484
485 2001-27-10 Trevor Forbes <t4bs@hotmail.com>
486
487 * postinstall.cc (each): Remove "*.done" file else rename will fail.
488
489 2001-10-16 Christopher Faylor <cgf@redhat.com>
490
491 * res.rc: Oops. Take 640x480 screen size into account.
492
493 2001-10-16 Christopher Faylor <cgf@redhat.com>
494
495 * res.rc: Enlarge chooser screen.
496
497 2001-10-12 Christopher Faylor <cgf@redhat.com>
498
499 * Makefile.in: Accomodate changes to w32api_include macro.
500
501 2001-10-12 Christopher Faylor <cgf@redhat.com>
502
503 * Makefile.in: Use correct flags for windres.
504
505 2001-10-12 Christopher Faylor <cgf@redhat.com>
506
507 * Makefile.in (CFLAGS): Remove -nostdinc from CFLAGS.
508
509 2001-10-12 Christopher Faylor <cgf@redhat.com>
510
511 * choose.cc (pick_line::paint): Reorganize after botched patch.
512
513 2001-10-12 Christopher Faylor <cgf@redhat.com>
514
515 * choose.cc (pick_line::paint): Add missing declaration.
516
517 2001-10-10 Ralf Habacker <Ralf.Habacker@freenet.de>
518
519 * choose.cc (pick_line::paint): Add package name to sdesc for display.
520
521 Wed Sep 26 21:39:00 Robert Collins rbtcollins@hotmail.com
522
523 * choose.cc (_view::insert_pkg): Correctly exit loop.
524 * iniparse.y (register_category): Always insert new categories.
525
526 Fri Sep 21 13:56:32 2001 Christopher Faylor <cgf@cygnus.com>
527
528 * inilex.l (yylex): For comments, eat all characters up to, but not
529 including newline.
530
531 Sun Aug 26 12:50:01 2001 John Marshall <jmarshall@acm.org>
532
533 * fromcwd.cc (found_file): Use correct package name when adding an
534 unknown package rather than random stack garbage.
535
536 Sun Aug 12 14:25:21 2001 Christopher Faylor <cgf@cygnus.com>
537
538 * desktop.cc (make_passwd_group): .bat files need \r\n endings.
539
540 Wed Aug 8 13:53:47 2001 Christopher Faylor <cgf@cygnus.com>
541
542 * desktop.cc (etc_profile): Leave environment variables untouched.
543
544 2001-08-07 Corinna Vinschen <corinna@vinschen.de>
545
546 * autoload.c: Add dynamic load statements for NT/W2K
547 advapi32 functions not available in 9x/ME.
548 * main.cc (set_default_dacl): New function.
549 (WinMain): Call `set_default_dacl' if running on NT/W2K.
550
551 Sat Aug 4 21:35:53 2001 Christopher Faylor <cgf@cygnus.com>
552
553 * ini.h (_CategoryPackage): Change pkg field to pkgname for
554 consistency.
555 * choose.cc: Use pkgname field when referencing _CategoryPackage
556 throughout.
557 (fill_missing_category): Don't add excluded packages.
558 (default_trust): Ditto.
559 (_view::insert_pkg): Ditto.
560 * iniparse.y (register_category): Use consistent variable name.
561
562 2001-07-09 Egor Duda <deo@logos-m.ru>
563
564 * choose.cc: Use system foreground color for text output.
565
566 Sat Jul 7 00:40:28 2001 Christopher Faylor <cgf@cygnus.com>
567
568 * choose.cc (set_action): Use default trust for determining reinstall
569 and source only.
570 (default_trust): Set default trust.
571 (pick_line::paint): Allow source selection when reinstalling or
572 retrieving.
573
574 Fri Jul 6 18:08:49 2001 Christopher Faylor <cgf@cygnus.com>
575
576 * choose.cc (isinstalled): Modify to properly accomodate special case
577 of "download only".
578 (set_action): Check downloaded components, not installed components if
579 "download only".
580 (set_existence): Always include full list of files when "download
581 only".
582
583 Fri Jul 6 00:37:05 2001 Christopher Faylor <cgf@cygnus.com>
584
585 * choose.cc (pick_line::paint): Properly display "na" field when no
586 source exists.
587
588 Thu Jul 5 00:34:23 2001 Christopher Faylor <cgf@cygnus.com>
589
590 * choose.cc (scan2): Ensure that older versions do not show up in
591 "Test" slot.
592
593 Mon Jul 2 15:47:59 2001 Christopher Faylor <cgf@cygnus.com>
594
595 * choose.cc (set_action): Allow "Skip" action if trust != installed.
596 * res.rc: Fix copyright.
597
598 Sat Jun 30 14:05:21 2001 Michael A Chase <mchase@ix.netcom.com>
599
600 * res.rc (IDD_LOCAL_DIR): Change caption to match the other dialog
601 boxes.
602 (IDD_CHOOSE): Adjust horizontal size so package names are visible.
603
604 * choose.cc: Restore some more changes from 2001-06-25, throughout.
605 (paint): Wrap some excessively long lines.
606 (pick_line::paint): Ditto. Move the arrow in the "Current" column
607 right to where it belongs. Move the source checkbox slightly to the
608 right.
609 (do_choose): List categories and required packages in setup.log.full.
610
611 Sat Jun 30 23:04:59 2001 Christopher Faylor <cgf@cygnus.com>
612
613 * choose.cc (scan2): Restore source scanning eliminated by previous checkin.
614
615 Sat Jun 30 15:18:33 2001 Christopher Faylor <cgf@cygnus.com>
616
617 * ini.h (struct _Info): Add "derived" element.
618 * choose.cc (scan2): Try to place unknown tar files into proper slot
619 when package exists in setup.ini but tar file does not.
620
621 Sat Jun 30 13:39:00 2001 Robert Collins <rbtcollins@hotmail.com>
622
623 * choose.cc (create_listview): Call set_view_mode with VIEW_CATEGORY.
624 (do_choose): Log the first category name.
625
626 Fri Jun 29 23:07:44 2001 Christopher Faylor <cgf@cygnus.com>
627
628 *ini.h: Reapply 2001-06-25 changes.
629 * choose.cc (add_required): Ditto. Default to "Keep" state if
630 UNINSTALL and product is installed. Default to curr state if SKIP,
631 etc.
632 (keep_or_skip): New function. Returns skip or keep state depending on
633 installed state of package.
634 (default_trust): Use keep_or_skip to set state.
635 (_view::insert_pkg): Use calloc to allocate lines.
636 (set_view_mode): Adapt 2001-06-25 change to set_full_list here.
637
638 Sat Jun 30 11:01:00 2001 Robert Collins <rbtcollins@hotmail.com>
639
640 * choose.cc: Remove globals full_list, headers, package_indexes and
641 nindexes.
642 Add globals cat_headers, pkg_headers and chooser.
643 (add_required): New function.
644 (paint): Use the chooser for header details.
645 Call into the chooser to paint each line.
646 (list_click): Use new global variables.
647 Call into the chooser to handle the click.
648 Repaint the entire view if packages have been added or removed.
649 (note_width): Get passed a headers struct rather than using a global
650 variable.
651 (fill_missing_category): New function.
652 (default_trust): Skip non-"Required" or "Misc" packages.
653 (pick_line::set_line (Package *)): New function.
654 (pick_line::set_line (Category *)): New function.
655 (pick_line::paint): New function.
656 (pick_line::click): New function.
657 (_view::_view): New function.
658 (_view::set_view_mode): New function.
659 (_view::mode_caption): New function.
660 (_view::set_headers): New function.
661 (_view::init_header): New function.
662 (_view::insert_pkg): New function.
663 (_view::insert_category): New function.
664 (_view::insert_at): New function.
665 (_view::insert_under): New function.
666 (_view::clear_view): New function.
667 (viewsplusplus): New function.
668 (_view::client): New function.
669 (set_view_mode): Use new chooser functionality.
670 (set_full_list): Use new global variables.
671 (create_listview): Instantiate chooser.
672 Remove all hardcoded headers[] code.
673 (dialog_cmd): On trust changes, check dependencies.
674 (getcategorybyname): New function.
675 (getpackagecategorybyname): New function.
676 (scan2): Use case-insensitive package comparison.
677 (do_choose): Use fill_missing_category ().
678 Show some category data.
679 * ini.h: Protect against multiple inclusion.
680 (views) New enum.
681 (_CategoryPackage): New struct.
682 (_Category): New struct.
683 (_Package): Change category to Category * from char *.
684 (extern Category category): New global variable.
685 (extern in ncategories): Ditto.
686 (getcategorybyname): New prototype.
687 (catpackagecategorybyname): New prototype.
688 (register_category): New prototype.
689 (add_category): New prototype.
690 * iniparse.y: Parse multiple categories per package.
691 (category): New global variable.
692 (ncategories): New global variable.
693 (new_package): Compare package against NULL, not 0.
694 (new_requirement): Source formatting fix.
695 (register_category): New function.
696 (add_category): New function.
697 * res.rc: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
698 IDC_CHOOSE_VIEWCAPTION: New control.
699 * resource.h: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
700 IDC_CHOOSE_VIEWCAPTION: New control.
701 Increment _APS_NEXT_CONTROL_VALUE.
702
703 Mon Jun 25 00:56:37 2001 Michael A Chase <mchase@ix.netcom.com>
704
705 * choose.cc (paint): Wrap excessively long lines.
706 (list_click): Ditto.
707 (create_listview): Ditto.
708 (do_choose): Ditto. Replace TABs and remove CRs in lines written to
709 setup.log.full. Allow "Yes" for source exists in setup.log.full when
710 installing from local directories.
711
712 Mon Jun 25 00:56:37 2001 Christopher Faylor <cgf@cygnus.com>
713
714 * choose.cc (set_action): Only clear srcpicked when moving to next
715 state. Allow source installation if it exists in the current "trust"
716 state. Don't move to skip state when package is installed.
717 (list_click): Don't allow source clicking when no source is available.
718 (set_full_list): Display package when not is_full_action.
719 * ini.h (is_full_action): Define.
720
721 Sun Jun 17 12:06:14 2001 Christopher Faylor <cgf@cygnus.com>
722
723 * install.cc (check_for_old_cygwin): New function. First stab at
724 checking for old cygwin versions.
725 (do_install): Call check_for_old_cygwin if there were no errors during
726 the install.
727
728 Sat Jun 16 11:33:51 2001 Michael A Chase <mchase@ix.netcom.com>
729
730 * choose.cc (_Info::_Info): Test _source paramenter for non-NULL rather
731 than zeroed "source" element.
732
733 Fri Jun 15 20:54:43 2001 Christopher Faylor <cgf@cygnus.com>
734
735 * choose.cc (scan2): Insert unknown tar archives, found on disk, into
736 the highest available "hole" in the trust array.
737
738 Fri Jun 15 00:20:48 2001 Christopher Faylor <cgf@cygnus.com>
739
740 * choose.cc (set_existence): Use pointer method for indexing in trust
741 array.
742 (create_listview): Ditto.
743 (scan2): Ditto. Also, use consistent variable name for indexing into
744 trust array.
745 * ini.h (Package): Reorganize info array for easier scanning.
746
747 Fri Jun 15 00:01:51 2001 Christopher Faylor <cgf@cygnus.com>
748
749 * choose.cc (isinstalled): Eliminate special download only test.
750 (set_action): Don't move to next state if in ACTION_SAME range and not
751 incrementing.
752 (choose_caption): Display "Retrieve" rather than "Reinstall" when just
753 downloading.
754 (do_choose): Sort packages after all packages have been read.
755 Accomodate the fact that first element in trust array is empty so that
756 log files don't report the wrong trust value.
757 * iniparse.y (new_package): Malloc space for package name or suffer
758 memory corruption.
759
760 Thu Jun 14 22:43:59 2001 Robert Collins <rbtcollins@hotmail.com>
761
762 * ini.h (Dependency): New structure. Declare new function.
763 * inilex.l (yylex): Detect new setup.ini options - category and requires.
764 * iniparse.y: Declare new setup.ini token values.
765 (yyparse): Parse new token values.
766 (new_requirement): New function.
767
768 Thu Jun 14 22:43:26 2001 Christopher Faylor <cgf@cygnus.com>
769
770 * choose.cc (read_installed_db): Eliminate obsolete code.
771
772 Thu Jun 14 22:11:53 2001 Christopher Faylor <cgf@cygnus.com>
773
774 * choose.cc (set_action): Set trust on "redo".
775 (_Info::_Info): New constructor.
776 (read_installed_db): Use new constructor. Use trusts type for
777 iterator.
778 * ini.h (struct _Info): Label struct, add constructor.
779 (Package): Make installed_ix a type 'trusts.'
780 * install.cc (uninstall_one): Unset any installed info for current
781 package.
782 (install_one): Allocate new Info struct for installed reflecting new
783 installed info.
784 (do_install): Don't output line to installed.db if package is being
785 uninstalled.
786
787 Thu Jun 14 20:33:01 2001 Robert Collins <rbtcollins@hotmail.com>
788
789 * choose.cc (getpkgbyname): Use consistent method for scanning package
790 array.
791
792 Wed Jun 13 23:33:08 2001 Christopher Faylor <cgf@cygnus.com>
793
794 * choose.cc: Add some comments.
795 (getpkgbyname): Use strcasecmp for comparisons.
796
797 Wed Jun 13 16:07:00 2001 Christopher Faylor <cgf@cygnus.com>
798
799 * install.cc (do_install): Avoid checking for download action if
800 package wasn't currently retrieved.
801
802 Wed Jun 13 11:27:22 2001 Christopher Faylor <cgf@cygnus.com>
803
804 * choose.cc: Eliminate extra array throughout. Use element in package
805 structure instead. Use pointers rather than array indexes where
806 appropriate.
807 (set_action): New function to set next action based on current.
808 (choose_caption): New function. Returns display caption.
809 (check_existence): Change arguments. Use pointer to 'info' structure.
810 (set_existence): Use pointer rather than array index.
811 (default_trust): Use trusts enum for second argument.
812 (set_full_list): Honor exclude element in package structure.
813 (build_labels): Eliminate.
814 (base): Make global. Use const char * argument.
815 (get_package_version): Eliminate.
816 (getpkgbyname): New function.
817 (read_installed_db): Use parse_filename to get version info.
818 * desktop.cc (make_passwd_group): Use getpkgbyname function.
819 * download.cc (get_file_size): const argument.
820 (do_download): Use is_download_action to determine when something
821 should be downloaded.
822 * filemanip.h: Add some functions.
823 * ini.cc (do_ini): Use NULL rather than 0 for pointer assignment.
824 * ini.h: Use enums for actions and trusts.
825 (is_download_action): New macro.
826 (is_upgrade_action): Ditto.
827 (is_uninstall_action): Ditto.
828 (struct Package): Add new fields.
829 * inilex.l (yylex): Detect new setup.ini options.
830 * iniparse.y: Declare new tokens.
831 (yyparse): Detect exclude keyword. Fill out version field even if
832 version == 0.
833 (new_package): Use greater granularity when allocating package array to
834 avoid repeated calls to realloc.
835 * install.cc (exists): const argument.
836 (uninstall_one): Take pkg argument.
837 (install_one): Ditto. Eliminate unneeded arguments which can be
838 derived from package info.
839 (do_install): Iterate over package array using a pointer. Use
840 is_download_action to control when package should be downloaded.
841 * tar.cc (tar_open): const argument.
842 * tar.h: Refloect const argument.
843
844 2001-05-31 Michael Chase mchase@ix.netcom.com
845
846 * main.cc (WinMain): Add setup version to starting setup.log entry
847
848 Tue May 29 21:37:58 2001 Yukihiko Sohda <sohda@is.titech.ac.jp>
849
850 * inilex.l: Add + to list of valid string characters.
851
852 Mon May 28 20:54:50 2001 Christopher Faylor <cgf@cygnus.com>
853
854 * Makefile.in: Remove more stuff in the clean target.
855
856 Mon May 28 18:24:59 2001 Christopher Faylor <cgf@cygnus.com>
857
858 * Makefile.in: Correctly generate iniparse.h.
859
860 Tue Mar 6 19:14:00 2001 Corinna Vinschen <corinna@vinschen.de>
861
862 * geturl.cc (get_url_to_file): Add parameter `allow_ftp_auth'.
863 * geturl.h: Change declaration of `get_url_to_file' accordingly.
864 * netio.cc (NetIO::NetIO): Add parameter `allow_ftp_auth'.
865 Set member `ftp_auth'.
866 (NetIO::open): Add parameter `allow_ftp_auth'. Use it in calls
867 to constructors of derived classes.
868 (NetIO::get_ftp_auth): New method.
869 * netio.h: Change class definition accordingly.
870 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Add parameter `allow_ftp_auth'.
871 Take global variables `net_ftp_user' and `net_ftp_passwd' into account.
872 Add code for ftp authentication retry.
873 * nio-ftp.h: Change class definition accordingly.
874 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Add parameter `allow_ftp_auth'.
875 Add code for ftp authentication retry in case of proxy connection.
876 * nio-http.h: Change class definition accordingly.
877 * res.rc: Add FTP authentication dialog.
878 * resource.h: Add new constants used in res.rc.
879 * state.h: Add variables `net_ftp_user' and `net_ftp_passwd'.
880
881 Sun May 27 17:12:23 2001 Christopher Faylor <cgf@cygnus.com>
882
883 * res.rc (IDD_SPLASH): Add a copyright year.
884
885 Sun May 27 15:42:18 2001 Christopher Faylor <cgf@cygnus.com>
886
887 * Makefile.in: Make iniparse.y produce a c++ file.
888 * choose.cc (set_existence): Revert 2001-05-27 change.
889 * ini.cc: Remove "C" from declaration of yyparse.
890 * iniparse.y (yyparse): Fill out version field by default when a binary
891 install is detected and no version has been set yet.
892 * install.cc (do_install): Mount things earlier so that we can use
893 proper mount table settings. Don't remove mounts since they are now
894 honored.
895 * mount.cc (create_mount): Reread the mount table after establishing a
896 new mount.
897 (read_mounts): Explicitly clear root_here to allow multiple uses of
898 this function. Ensure that there is no garbage in the table when we've
899 exhausted all of the mounts in the registry.
900 (cygpath): Accomodate ./ in path.
901
902 Sun May 27 02:59:07 2001 Christopher Faylor <cgf@cygnus.com>
903
904 Use parse_filename method to parse filenames throughout. Use
905 get_root_dir to retrieve the current root directory throughout. Set
906 const in argument list, where appropriate, throughout.
907 * choose.cc (set_existence): Detect case of uninstalled package with no
908 version.
909 (parse_filename): New function.
910 * filemanip.h (fileparse): New structure.
911 * mount.cc (read_mounts): Remember where we found the root mount.
912 (set_root_dir): New function.
913 (get_root_dir): Ditto.
914 * mount.h: Declare new functions.
915 * site.cc (get_root_dir_now): Renamed from get_root_dir.
916 (save_site_url): Use new function name.
917 (get_initial_list_idx): Ditto.
918
919 Sat May 26 21:23:59 2001 Christopher Faylor <cgf@cygnus.com>
920
921 * choose.cc: Use a constant throughout to deal with chooser icon
922 length.
923 * res.rc (IDD_CHOOSE): Increase size of chooser box.
924
925 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
926
927 * choose.cc (do_choose): Fix incorrect assignment of trust setting to
928 use when Redownload or Sources Only selected.
929
930 Thu May 10 22:35:59 2001 Christopher Faylor <cgf@cygnus.com>
931
932 Reformat file after botched patch formatting.
933 * choose.cc (which_trust): Eliminate variable.
934 (default_trust): Don't set which_trust.
935 (do_choose): Use selected trust when reinstalling or installing source.
936
937 Thu May 10 21:04:18 2001 Christopher Faylor <cgf@cygnus.com>
938
939 Change concat to cygpath throughout.
940 Change map_filename to cygpath throughout.
941 * concat.cc (vconcat): New function.
942 (concat): Use vconcat.
943 * concat.h: Reflect above.
944 * install.cc (map_filename): Eliminate.
945 (install_one): Free dest_file.
946 * mount.cc (find2): Expect input key to be pointing to mount record.
947 (in_table): New function.
948 (is_admin): Move from root.cc.
949 (read_mounts): New function.
950 (path_prefix_p): New function.
951 (cygpath): New function.
952 * mount.h: Define new functions and structure.
953 * root.cc (in_table): Move to mount.cc.
954 (do_root): Call read_mounts to initialize root stuff and mount table.
955 * site.cc (get_root_dir): Ditto.
956
957 2001-05-09 Matt Hargett <matt@use.net>
958
959 * Makefile.in: Remove *.rc from clean.
960
961 Tue May 8 23:33:38 2001 Christopher Faylor <cgf@cygnus.com>
962
963 * choose.cc (scan2): Fix incorrect setting of TRUST_CURR rather than
964 TRUST_PREV which produced "0" versions.
965
966 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
967
968 * resource.h: Add new field IDC_CHOOSE_INST_TEXT. Modify
969 _APS_NEXT_CONTROL_VALUE to account for addition of
970 IDC_CHOOSE_INST_TEXT.
971 * res.rc (IDD_CHOOSE): Modify choose dialog to use new field
972 IDC_CHOOSE_INST_TEXT for screen text. Modify choose Dialog to allow
973 hot keys to select Prev, Curr, Exp.
974 * ini.h: Add new actions for ACTION_REDO and ACTION_SRC_ONLY. Modify
975 define for LOOP_PACKAGES to include new actions ACTION_REDO and
976 ACTION_SRC_ONLY.
977 * choose.cc: Add new Trusts for TRUST_REDO and TRUST_SRC_ONLY.
978 (paint): Modify to check TRUST_SRC_ONLY when determining Bitmap for
979 source Checkbox to use.
980 (build_labels): Add logic to allow for selection of Source only
981 Download/ReDownload/Install/Reinstall and also to Redownload/Reinstall
982 current version binary.
983 (dialog_proc): Add conditional display for file selection prompt based
984 on download vs install using IDC_CHOOSE_INST_TEXT.
985 (do_choose): Add new logic for TRUST_REDO and TRUST_SRC_ONLY selection
986 and modify logic for TRUST_UNINSTALL, TRUST_KEEP, and TRUST_NONE to
987 handle the instance where Source Download/Install was selected. Modify
988 log file to store appropriate information regarding Action selected and
989 the new actions that were added (I.E.: ACTION_REDO and
990 ACTION_SRC_ONLY).
991 * download.cc: Add include for <unistd.h> and "port.h".
992 (download_one): Modify parameter list to include the selected action
993 for the file to be downloaded. Modify size check against expected size
994 to include check for ACTION_REDO and ACTION_SRC_ONLY. Modify rename of
995 .tmp file to also remove the destination file if exists due to ability
996 to redownload source and binary now.
997 (do_download): Modify to also use ACTION_REDO and ACTION_SRC_ONLY in
998 calculation of Download Bytes. Modify to also use ACTION_REDO and
999 ACTION_SRC_ONLY in determining files selected for download.
1000 * install.cc (uninstall_one): Add check to treat a Reinstall like an
1001 upgrade so current version will be uninstalled prior to reinstall.
1002 (do_install): Add logic to handle ACTION_REDO and ACTION_SRC_ONLY for
1003 uninstalling and installing binary and source packages.
1004 * desktop.cc (make_passwd_group): Modify logic to account for a Source
1005 only cygwin install when checking for cygwin to determine need for
1006 mkpasswd and mkgroup.
1007
1008 Mon May 7 23:33:30 2001 Matt Hargett <matt@use.net>
1009
1010 * winsup/cinstall/res.rc: Added accelerators and improved focus order.
1011 Removed WS_DISABLED from "OK" buttons to accomodate default focus
1012 changes in net.cc and source.cc.
1013 * winsup/cinstall/net.cc (dialog_proc): If no radio button is selected,
1014 a default is selected.
1015 * winsup/cinstall/source.cc (dialog_proc): Ditto.
1016 (check_if_enable_next): Removed. No longer needed since a radio button
1017 will always be selected.
1018 (load_dialog): Removed call to check_if_enable_next.
1019 (dialog_cmd): Ditto. Also added default to switch.
1020
1021 Tue Apr 24 23:42:02 2001 Christopher Faylor <cgf@cygnus.com>
1022
1023 * res.rc: Resize affected text.
1024
1025 Tue Apr 24 23:35:31 2001 Christopher Faylor <cgf@cygnus.com>
1026
1027 * net.cc (do_net): Default to direct download.
1028 * res.rc: Move default selections to the top.
1029
1030 2001-04-18 Earnie Boyd <earnie@users.sourceforge.net>
1031
1032 * win32.h: Remove the definitions for _UNION_NAME and _STRUCT_NAME.
1033 Must now include <windows.h> and not the pieces.
1034 * choose.cc (create_listview): Clean up type mismatch problems.
1035 * dialog.h (NEXT(id)): Ditto.
1036 * geturl.cc (dialog): Ditto.
1037 * install.cc (dialog): Ditto.
1038 * splash.cc (load_dialog): Ditto.
1039
1040 Wed Apr 18 18:59:21 2001 Christopher Faylor <cgf@cygnus.com>
1041
1042 * tar.cc (class gzbz): Define dummy virtual functions.
1043
1044 Wed Apr 18 16:01:21 2001 Christopher Faylor <cgf@cygnus.com>
1045
1046 * Makefile.in: Add bz2 include/library support.
1047 * filemanip.h: New file.
1048 * choose.cc (find_tar_ext): New function. Returns TRUE if .tar.gz or
1049 .tar.bz2 found.
1050 (scan2): Reorganize to use find_tar_ext, accomodating .bz2 extension.
1051 (read_installed_db): Ditto.
1052 (do_choose): Ditto.
1053 * fromcwd.cc (found_file): Ditto.
1054 (do_fromcwd): Ditto.
1055 * tar.cc (class gzbz): New super class for uncompression support.
1056 (gz): New class for gzip support.
1057 (bz): New class for bzip2 support.
1058 (tar_open): Use gzbz class to control file opening.
1059 (tar_ftell): Ditto for returning position in file.
1060 (skip_file): Ditto for reading file.
1061 (tar_next_file): Ditto.
1062 (tar_read_file): Ditto.
1063 (tar_close): Ditto for close.
1064
1065 * zlib/configure.in: Force NM substitution.
1066
1067 * source.cc (do_source): Default to "Install from Internet".
1068
1069 2001-03-16 Brian Keener <bkeener@thesoftwaresource.com>
1070
1071 * nio-file.cc (NetIO_File::NetIO_File): Use `get_file_size' instead of
1072 `stat'.
1073 * choose.cc (list_click): Correct inability to select source code for
1074 download.
1075 (scan2): Modify to skip source tarballs when scanning disk for
1076 installable packages.
1077
1078 2001-03-10 Chris Abbey <chris_abbey@yahoo.com>
1079
1080 * install.cc: install sources into /usr/src instead
1081 of /, also include the sizes of source tarballs
1082 in total_bytes.
1083 * download.cc: include sizes of source tarballs in
1084 total_download_bytes.
1085
1086 Tue Mar 6 19:31:00 2000 Corinna Vinschen <corinna@vinschen.com>
1087
1088 * download.cc (get_file_size): Remove `static'.
1089
1090 Tue Mar 6 19:11:00 2000 Corinna Vinschen <corinna@vinschen.com>
1091
1092 * tar.cc (tar_open): Use `get_file_size' instead of `stat'.
1093
1094 2001-03-06 Brian Keener <bkeener@thesoftwaresource.com>
1095
1096 * choose.cc (paint): Modify message for nothing to download vs
1097 nothing to install/update based on installation method.
1098 (list_click): Modify to skip versions in selection process if
1099 installing from local directory and installation file does not exist.
1100 Also leaves Source Action set to N/A if the source file does not exist
1101 and installing from local directory.
1102 (check_existence): New method to check current existence of installation
1103 files based on selected installation method.
1104 (set_existence): New method to set the current existence of installation
1105 files based on selected installation method.
1106 (best_trust): Modify decision process for best trust to base decision on
1107 current trust selected (IE: Prev, Curr, or Test), existence of file and
1108 installation method selected.
1109 (default_trust): Add logic to capture the current trust level and the
1110 trust selected for the given package.
1111 (set_full_list): Expand decision criteria for displaying a package in
1112 the selection list to include file existence/non-existence and selected
1113 installation method.
1114 (build_labels): Modify criteria for label addition to include
1115 installation method and file existence/non-existence.
1116 (create_listview): Modify to establish package trust level for each
1117 package before setting up the display list. Also modification to set
1118 current trust button as the default.
1119 (dialog_cmd): Set response for Prev, Curr, Test button push to perform
1120 a reset of the selection list in addition to setting the default trust.
1121 (get_package_version): New method to provide reusable code for
1122 determining the package version from the file name for a specified
1123 trust.
1124 (scan2): Modify to use new method get_package_version and
1125 also enhance handling of the build for the structures package and
1126 extra.
1127 (read_installed_db): Modify to use the new method
1128 get_package_version and also enhance handling of the build for the
1129 structures package and extra.
1130 (do_choose): Add additional initialization of package and extra
1131 structures. Modify to use read_installed_db all the time despite
1132 install method. Modify output to setup.log.full log file to increase
1133 readability by adding additional spacing, expanded code and available
1134 versions.
1135 * ini.h: Add new fields install_exists, source_exists and
1136 partial_list_display to the structure definition for package.
1137 * res.rc (IDD_CHOOSE): Modify choose dialog Prev, Curr, and Test
1138 pushbuttons by replacing with Radio Buttons thus allowing the
1139 operator to better determine which is selected.
1140
1141 2001-02-20 Brian Keener <bkeener@thesoftwaresource.com>
1142
1143 * download.cc (do_download): Add new variables total_download_bytes and
1144 total_download_bytes_sofar for download progress meter. Add loop
1145 to accumulate the total bytes to download from the selected packages.
1146 * geturl.cc: Add state.h and diskfull.h to include list. Add new
1147 variables gw_iprogress, gw_pprogress, gw_progress_text,
1148 gw_pprogress_text, and gw_iprogress_text to allow for addition of
1149 total packages download progress meter and disk full percent
1150 progress meter. Add variables total_download_bytes and
1151 total_download_bytes_sofar for use by progress meters.
1152 (dialog_proc): Add new variables gw_iprogress, gw_pprogress,
1153 gw_progress_text, gw_pprogress_text, and gw_iprogress_text to
1154 allow for addition of total packages download progress meter and disk
1155 full percent progress meter.
1156 (init_dialog): Ditto.
1157 (progress): Ditto.
1158 (get_url_to_file): Ditto.
1159 * geturl.h: Add external definition for total_download_bytes and
1160 total_download_bytes_sofar.
1161 * res.rc: Add two additional progress meters (IDC_DLS_IPROGRESS)
1162 and (IDC_DLS_PPROGRESS) and three text objects (IDC_DLS_PROGRESS_TEXT)
1163 and (IDC_DLS_IPROGRESS_TEXT, IDC_DLS_PPROGRESS_TEXT) for use in the
1164 download meters.
1165 * resource.h: Add new fields for progress meters and text and update
1166 _APS_NEXT_CONTROL_VALUE.
1167
1168 Wed Feb 21 13:05:00 2000 Corinna Vinschen <vinschen@redhat.com>
1169
1170 * download.cc (get_file_size): Check for INVALID_HANDLE_VALUE instead
1171 for NULL.
1172
1173 Wed Feb 21 11:21:00 2000 Corinna Vinschen <vinschen@redhat.com>
1174
1175 * download.cc (download_one): Add missing parenthesis.
1176
1177 Mon Feb 19 18:59:00 2000 Corinna Vinschen <vinschen@redhat.com>
1178
1179 * download.cc (get_file_size): New function. Eliminates the need
1180 to call `stat'.
1181 (download_one): Call `get_file_size' instead of `stat'. This
1182 workarounds a problem with mingw's `stat' call.
1183
1184 2001-02-07 Earnie Boyd <earnie@users.sourceforge.net>
1185
1186 * Makefile.in: (%.o: %.rc): Specify --include-dir $(w32api_include).
1187 This is to allow cinstall to build with 2.95.2-7 and to make the
1188 use of headers consistent.
1189
1190 2000-12-26 Earnie Boyd <earnie_boyd@yahoo.com>
1191
1192 * Makefile.in (autoload.o): Add target to specify -fno-inline-functions
1193
1194 Tue Dec 26 03:46:00 2000 Matt Hargett <matt@use.net>
1195
1196 * winsup/cinstall/res.rc: Added accelerators and improved focus
1197 order.
1198
1199 2000-12-10 Egor Duda <deo@logos-m.ru>
1200
1201 * choose.cc (paint): Use system background color for text output.
1202
1203 Sun Dec 10 19:05:25 2000 Christopher Faylor <cgf@cygnus.com>
1204
1205 * Makefile.in: Use CXX for linking and for compiling .cc files.
1206 * configure.in: Find correct c++ compiler.
1207 * configure: Regenerate.
1208
1209 2000-11-17 DJ Delorie <dj@redhat.com>
1210
1211 * splash.cc (load_dialog): Make message more obvious.
1212 * res.rc: Ditto.
1213
1214 Fri Nov 17 17:15:21 2000 Christopher Faylor <cgf@cygnus.com>
1215
1216 * Makefile.in: Use g++ to link so that libstdc++.a gets used. This is
1217 necessary for newer compilers.
1218
1219 Wed Nov 9 2:19:00 2000 Corinna Vinschen <vinschen@redhat.com>
1220
1221 * desktop.cc: Include "ini.h" and "version.h".
1222 (make_passwd_group): Skip the function on 9x/ME boxes when an
1223 older version of Cygwin has been installed which doesn't
1224 support mkpasswd/mkgroup on 9x/ME.
1225 * install.cc: Move the `LOOP_PACKAGES' and `pi' macros to...
1226 * ini.h: ...here.
1227
1228 Wed Nov 8 17:10:00 2000 Corinna Vinschen <vinschen@redhat.com>
1229
1230 * desktop.cc (make_passwd_group): Don't exit when started
1231 on 9x/ME since mkpasswd/mkgroup are usable on 9x/ME now.
1232
1233 Sun Nov 5 12:51:42 2000 Jason Tishler <jt@dothill.com>
1234
1235 * install.cc (do_install): Add call to set_cygdrive_flags to sync
1236 the mount modes.
1237 * mount.cc (set_cygdrive_flags): New function.
1238 (get_cygdrive_flags): Ditto.
1239 (default_cygdrive): Ditto.
1240 (set_cygdrive_flags): Ditto.
1241 * mount.h: Add prototype for set_cygdrive_flags.
1242
1243 2000-10-23 DJ Delorie <dj@redhat.com>
1244
1245 * ini.h: add source actions
1246 * fromcwd.cc: check for available sources
1247 * res.rc: add checkbox bitmaps
1248 * resource.h: ditto
1249 * check-*.bmp: new
1250 * choose.cc: add source column
1251 * download.cc: download sources if called for
1252 * install.cc: [un]install sources too
1253
1254 2000-10-22 DJ Delorie <dj@redhat.com>
1255
1256 * choose.cc (build_labels): Don't skip TRUST_PREV completely; only
1257 ignore it wrt full_list if there's already a version installed.
1258 (do_choose): Sort the list.
1259 (package_sort): New.
1260
1261 2000-10-12 DJ Delorie <dj@redhat.com>
1262
1263 * res.rc: Add more error strings.
1264 * resource.h: Ditto.
1265 * iniparse.y (new_package): re-initialize if needed.
1266 * download.cc (do_download): Keep track of errors; notify and
1267 allow retry.
1268 * install.cc (do_install): Ditto.
1269
1270 2000-10-05 DJ Delorie <dj@redhat.com>
1271
1272 * Makefile.in: fix %.cc rule
1273
1274 2000-10-04 DJ Delorie <dj@redhat.com>
1275
1276 * desktop.cc: quote HOME and USER, don't . ./.profile
1277
1278 * choose.cc (build_labels): don't include in partial list just
1279 because there's a *previous* version available.
1280
1281 * install.cc (do_install): if installing from local directory with
1282 setup.ini and the file isn't found, look in "." also. Note errors.
1283
1284 2000-10-02 DJ Delorie <dj@redhat.com>
1285
1286 * ini.cc (do_ini): save setup.ini locally
1287
1288 2000-10-02 Chris Abbey <cabbey@bresnanlink.net>
1289
1290 * desktop.cc: quote escapes in prompt
1291
1292 2000-10-02 Jason Tishler <jt@dothill.com>
1293
1294 * root.cc (is_admin): New function.
1295 (read_mount_table): Check for administrative priviledges and set
1296 installation scope as appropriate.
1297
1298 2000-09-28 DJ Delorie <dj@redhat.com>
1299
1300 * nio-ftp.cc (ftp_line): handle continuations more robustly
1301
1302 2000-09-14 Brian Keener <bkeener@thesoftwaresource.com>
1303
1304 * res.rc: increased the size of the site dialog (IDD_SITE) & the
1305 corresponding list box to provide for more URL's to be listed.
1306 Modified the position of the Back, Next and Cancel buttons to
1307 correspond to the new size of the dialog.
1308
1309 2000-09-13 DJ Delorie <dj@redhat.com>
1310
1311 * install.cc (do_install): update disk fullness once per package
1312 to improve performance
1313
1314 * choose.cc (create_listview): call ReleaseDC
1315
1316 Mon Sep 11 22:40 2000 Harold L Hunt II <harold@compasstechnologies.com>
1317
1318 * mkdir.cc: Create directories when ERROR_FILE_NOT_FOUND is
1319 returned, as it seems Samba 2.0.6+ returns this instead of
1320 ERROR_PATH_NOT_FOUND
1321
1322 Mon Sep 11 19:35:24 2000 Christopher Faylor <cgf@cygnus.com>
1323
1324 * site.cc (get_initial_list_idx): Don't default to saved URL if it
1325 refers to sources.
1326
1327 2000-09-07 DJ Delorie <dj@redhat.com>
1328
1329 * splash.cc: use version.h, not local decl
1330 * res.rc: add "old version" message
1331 * resource.h: ditto
1332 * version.h: new
1333 * fromcwd.cc (canonicalize_version): make global
1334 * iniparse.y: add setup-version support, fix bug in blank line
1335 handling
1336
1337 * inilex.l: add [exp] as alias for [test], add setup-version
1338 * Makefile.in (version.c): add setup-version tag
1339
1340 * desktop.cc (do_desktop): remove 1.1 version number
1341 (do_desktop_setup): ditto
1342
1343 * ini.cc (do_ini): zero out package list just in case we redo it.
1344
1345 2000-09-07 Jeffrey Juliano <juliano@cs.unc.edu>
1346
1347 * choose.cc (list_click): Check for nindexes==0; if so, return.
1348
1349 2000-09-06 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
1350
1351 * localdir.cc: new, local package directory selection dialog; cd
1352 into selected directory
1353 * Makefile.in (OBJS): add localdir.o
1354 * dialog.h: add prototype for do_local_dir
1355 * main.cc (WinMain): initialize local_dir to cwd; add call to
1356 do_local_dir
1357 * net.cc (dialog_cmd): make DO_LOCAL_DIR next dialog
1358 * source.cc (dialog_cmd): ditto
1359 * res.rc: add DO_LOCAL_DIR dialog; remove "current directory" from
1360 presented choices in IDD_SOURCE; add IDS_ERR_CHDIR error string
1361 * resource.h: defines for DO_LOCAL_DIR dialog; define IDS_ERR_CHDIR
1362 * root.cc (dialog_cmd): make DO_LOCAL_DIR previous dialog
1363 * state.h: add local_dir variable
1364
1365 2000-09-06 Brian Keener <bkeener@thesoftwaresource.com>
1366
1367 * desktop.cc: added logic to handle to the new dialog and to
1368 default the setting for the new checkboxes based on whether the
1369 desktop icon or start menu link already exist.
1370 (desktop_icon): correction to desktop directories for desktop icon
1371 creation. Additional logic added for Win95 which does not appear
1372 to have Common Directories so if Common selected and null uses
1373 normal directory.
1374 (start_menu): Additional logic added for Win95 which does not
1375 appear to have Common Directories so if Common selected and null
1376 uses normal directory.
1377 (do_desktop_setup): moved the saving of the icon, creation of the
1378 bat file, profile, passwd, Start Menu link and desktop shortcut to
1379 this method from do_desktop. Made the creation of the desktop
1380 icon and start menu link conditional on settings of new dialog
1381 created for desktop.
1382 * install.cc (do_install): changed next from IDD_S_DESKTOP to
1383 IDD_DESKTOP.
1384 * main.cc (WinMain): changed case IDD_S_DESKTOP to IDD_DESKTOP.
1385 * res.rc: added new resource to create a desktop dialog with 2
1386 checkboxes for creating the desktop icon and start menu link.
1387 * resource.h: changed IDD_S_DESKTOP to IDD_DESKTOP and added two
1388 new controls: IDC_ROOT_MENU and IDC_ROOT_DESKTOP for new dialog.
1389 * state.h: added root_menu and root_desktop for use in dialog.
1390
1391 2000-08-29 DJ Delorie <dj@redhat.com>
1392
1393 * choose.cc (scan_downloaded_files): scan for existing files, so
1394 that the user only sees new downloads.
1395
1396 * nio-ie5.cc (NetIO_IE5): pre-check for wininet.dll, enable dial-up
1397 * site.cc (do_site): if we can't download the mirror list, go back
1398 to the net setup box to choose another transport.
1399 * autoload.c: add more functions
1400 * Makefile.in (ALL_DEP_LDLIBS): remove wininet.a
1401 * resource.h: add WININET message
1402
1403 * net.cc (do_net): no longer default to IE5
1404 * simpsock.h (class SimpleSocket): new, simplify socket operations
1405 * simpsock.cc: ditto
1406 * nio-http.h: new, for direct http protocol
1407 * nio-http.cc: ditto
1408 * nio-ftp.h: new, for direct http protocol
1409 * nio-ftp.cc: ditto
1410 * netio.cc (set_url): move initialization here to handle redirections
1411 (open): add direct http/ftp
1412 * netio.h (NetIO::set_url): new
1413
1414 * log.cc (log_save): create directory for log if needed
1415
1416 * hash.cc, hash.h: new
1417 * Makefile: add hash.o
1418 * choose.cc: enable "uninstall" option
1419 * download.cc: invert action test to accomodate uninstalling
1420 * ini.h: add ACTION_UNINSTALL
1421 * install.cc: add uninstall functionality
1422 * res.rc: make install tag changeable
1423 * resource.h: add uninstall resources
1424
1425 * res.rc: update mirror list URL
1426
1427 2000-08-24 DJ Delorie <dj@redhat.com>
1428
1429 * log.cc, log.h: new files
1430 * Makefile.in (OBJS): add log.o
1431 * tar.cc: use exit_setup instead of exit
1432 * dialog.cc (fatal): use exit_setup instead of ExitProcess
1433 * msg.cc (fatal): ditto
1434 * install.cc (dialog_cmd): ditto
1435 * ini.cc (do_ini): ditto
1436 * main.cc (main): add logging
1437 * source.cc (do_source): ditto
1438 * root.cc (do_source): ditto
1439 * site.cc (do_site): ditto
1440 * other.cc (do_other): ditto
1441 * net.cc (do_net): ditto
1442 * choose.cc (do_choose): ditto
1443 * download.cc (do_download): ditto
1444 * install.cc (do_install): ditto
1445 * msg.cc (fatal): ditto
1446
1447 * res.rc: mark password boxes as *being* password boxes.
1448
1449 * fromcwd.cc (canonicalize_version): use multiple buffers so that multiple
1450 calls won't use the same buffer.
1451 * choose.cc (create_listview): don't default to full list if no changes
1452 (base): return computed value, not temporary :-(
1453 (do_choose): don't use installed.db if we're only downloading.
1454
1455 2000-08-23 DJ Delorie <dj@redhat.com>
1456
1457 * nio-ie5.cc (NetIO_IE5): Fix authentication logic
1458 * nio-ie5.h (flush_io): new
1459 * netio.cc (load_dialog): note when we're initializing the dialog
1460 box, and ignore changes to the edit fields then.
1461
1462 2000-08-21 DJ Delorie <dj@redhat.com>
1463
1464 * README: Update
1465
1466 * fromcwd.cc (found_file): don't remember the canonicalized version
1467
1468 * choose.cc (paint): print "nothing to do" message when list is empty.
1469 (build_labels): Use version "0.0" if no version is available.
1470 (create_listview): default to full list if nothing to install/update.
1471 (base): new, returns basename of file
1472 (read_installed_db): compare base names, not full paths
1473
1474 2000-08-11 DJ Delorie <dj@redhat.com>
1475
1476 * choose.cc: add new chooser dialog
1477 * fromcwd.cc: use IDD_CHOOSE
1478 * ini.cc: use IDD_CHOOSE
1479 * main.cc: use IDD_CHOOSE
1480 * ini.h: cosmetic changes
1481 * res.rc: add choose dialog, bitmaps
1482 * choose-spin.bmp: new
1483 * choose-rtarrow.bmp: new
1484 * resource.h: add choose dialog controls
1485
1486 * mount.cc: remove debug statement
1487
1488 2000-08-08 DJ Delorie <dj@redhat.com>
1489
1490 * Makefile.in (version.c): make version checking more robust
1491 * splash.cc (load_dialog): handle case where there's no version
1492
1493 2000-08-07 DJ Delorie <dj@redhat.com>
1494
1495 * (all): add cvsid tags
1496 * Makefile.in: generate version.c from ChangeLog, add splash.o
1497 * splash.o: new
1498 * res.rc: add splash screen
1499
1500 2000-08-02 DJ Delorie <dj@redhat.com>
1501
1502 * net.cc: remove proxy password code
1503 * res.rc: remove proxy user/pass from net, add auth dialogs
1504 * netio.cc,h: add sys/proxy auth methods
1505 * nio-ie5: use them, check for http status codes
1506 * state.h: add system authorization
1507
1508 * concat.cc (concat): canonicalize x:// to x:/ (exception to ://
1509 meaning an url)
1510
1511 2000-08-02 Norman Vine <nhv@yahoo,com>
1512
1513 * msg.cc (mbox): added MB_TOPMOST to MessageBox type flags
1514
1515 2000-08-01 DJ Delorie <dj@redhat.com>
1516
1517 * postinstall.cc (each): don't rename files we ignore
1518 (do_postinstall): set CYGWINROOT to root_dir, chdir there
1519
1520 * desktop.cc: have /etc/profile call ~/.profile and ~/.bashrc
1521
1522 2000-07-31 DJ Delorie <dj@redhat.com>
1523
1524 * desktop.cc: reverse PATH so /usr/bin precedes /bin
1525
1526 2000-07-18 DJ Delorie <dj@redhat.com>
1527
1528 * autoload.c: new, autoload dlls that might not be available.
1529 * Makefile.in (OBJS): add autoload.o
1530
1531 * res.rc: rewrite root options (text/binary, system/user) to be
1532 more obvious.
1533
1534 * site.cc (get_site_list): trim displayed URL, sort by domain
1535
1536 * net.cc (do_net): make IE5 default to checked, for now
1537
1538 * choose.cc (do_choose): sort packages correctly
1539 * ini.cc (do_ini): handle parse errors more gracefully
1540 (yyerror): ditto
1541 (fprintf): line buffer output
1542 (do_ini): if we can't load setup.ini, go back to the site list.
1543 * ini.h: add "unknown" trust level
1544 * inilex.l: absorb unknown trust levels and key/value pairs,
1545 add line number logic
1546 * iniparse.y: handle parse errors more gracefully.
1547 * install.cc: skip packages with no valid install entry
1548
1549 2000-07-17 DJ Delorie <dj@cygnus.com>
1550
1551 * coding standards fixups, many files
1552 * mkdir.cc: warn about deletions *before* deleting them
1553
1554 2000-07-17 Jeff Juliano <juliano@cs.unc.edu>
1555
1556 * res.rc (IDD_OTHER_URL): reorder to give default focus to entry
1557
1558 * other.cc (dialog_cmd): save download site URL
1559 * site.cc (get_root_dir): new
1560 (save_mirror_site): new
1561 (dialog_cmd): save download site URL
1562 (get_site_list): make list big enough to add prev site
1563 (get_initial_list_idx): new, read last-used URL from file and
1564 append it to site_list
1565 (do_site): call get_initial_list_idx
1566
1567 * concat.cc (concat): avoid segfault when first parm is null
1568
1569 2000-07-13 DJ Delorie <dj@cygnus.com>
1570
1571 * postinstall.cc: new
1572 * Makefile.in: add postinstall.o
1573 * concat.h: add backslash ()
1574 * concat.cc: ditto
1575 * desktop.cc (etc_profile): don't do postinstall
1576 (backslash): moved to concat.cc
1577 (uexists): new
1578 (make_postinstall_script): run directly
1579 (do_desktop): chain to do_postinstall
1580 * dialog.h: add exit_msg, do_postinstall
1581 * download.cc: use exit_msg
1582 * install.cc: ditto
1583 * main.cc: add postinstall, exit_msg
1584 * resource.h: add postinstall
1585 * README: add more to-do items
1586
1587 2000-07-12 DJ Delorie <dj@cygnus.com>
1588
1589 * desktop.cc: add /etc/postinstall/ support
1590 * install.cc: add more "standard" directories
1591
1592 2000-07-11 DJ Delorie <dj@cygnus.com>
1593
1594 * desktop.cc: create /etc/profile
1595 * desktop.cc: fix include syntax
1596 * Makefile.in: add auto-dependencies
1597 * root.cc: support system vs user
1598 * desktop.cc: ditto
1599 * mount.h: ditto
1600 * mount.cc: ditto
1601 * install.cc: ditto
1602 * res.rc: ditto
1603 * resource.h: ditto
1604 * state.h: ditto
1605 * desktop.cc: make sure we use backslashes, not slashes.
1606 * desktop.cc: don't set PATH in cygwin.bat, create /etc/passwd
1607 * geturl.cc: change math for percentage to avoid overflow
1608 * install.cc: ditto
1609 * download.cc: post "download complete" message.
1610 * root.cc: pre-fill in defaults if needed, don't start
1611 browse at root_dir unless it's set.
1612 * desktop.cc: quote $PATH in case it has spaces in it
1613
1614 2000-07-10 DJ Delorie <dj@cygnus.com>
1615
1616 * Makefile.in: add desktop.o and mklink2.o
1617 * dialog.h: add do_desktop
1618 * install.cc: create standard directories, call do_desktop
1619 * res.rc: add cygwin.ico as a file also
1620 * desktop.cc: new, do shortcuts, batch files, and icons
1621 * mklink2.c: new, for COM
1622 * README: update to-do list
1623
1624 2000-07-10 DJ Delorie <dj@cygnus.com>
1625
1626 * ini.cc (do_ini): don't worry about timestamps if we're not
1627 actually installing.
1628
1629 2000-07-09 DJ Delorie <dj@cygnus.com>
1630
1631 * Makefile.in: add -I$(srcdir) for ini.h
1632
1633 2000-07-06 DJ Delorie <dj@cygnus.com>
1634
1635 * Replace everything with a new GUI version
1636 * zlib/gzio.c: add gzctell() for progress displays
1637
1638 2000-06-22 DJ Delorie <dj@cygnus.com>
1639
1640 * setup.c (tarx): re-add call to write_pkg()
1641
1642 2000-06-07 DJ Delorie <dj@cygnus.com>
1643
1644 * cygcalls.c: new, call cygwin1.dll functions directly
1645 * cygcalls.h: header for same
1646 * Makefile.in: add cygcalls.[ch], remove mount/cygpath/umount
1647 exes, fix cinstall.rc dependencies.
1648 * path.c: remove unneeded code
1649 * setup.c: use cygcalls instead of xcreate_process.
1650 uncompress embedded files with zlib
1651 add "-d" for "download only"
1652 add "-h" for help
1653 postpone mount changes until very end
1654 add download progress indicators
1655 pack multi-column listings more
1656 auto-delete temp files
1657 customize banner message according to options
1658 prompt user for text/binary mounts
1659 add warnings about empty setup directory, root installs, etc
1660
1661 2000-05-24 DJ Delorie <dj@cygnus.com>
1662
1663 * tar.c: New file; built-in tar using zlib.
1664 * tar.h: New file; header for same.
1665 * ctar.c: New file; test program for same.
1666 * Makefile.in: add built-in tar, remove tar.exe and gzip.exe
1667 * path.c (pathcat): convert slashes and canonicalize, instead of aborting
1668 * setup.c (tarx): add support for built-in tar
1669 (main): accept unix-style slashes, check root dir for drive letters,
1670 warn about installing in /, make sure cwd is empty for internet installs,
1671 defer mounts to end of install, support built-in tar.
1672
1673 Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
1674
1675 Fix compiler warnings throughout.
1676 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
1677 get_pkg_stuff.
1678 * setup.c: Make 'root' global.
1679 (istargz): Return pointer to "stem" of matched .tar.gz file.
1680 (tarx): Special case cygwin-20000301 to == cygwin-1.1.0.tar.gz. Remove
1681 bogus check_for_installed check.
1682 (recurse_dirs): Add preliminary support for .bat file execution.
1683 (create_uninstall): Eliminate unneeded parameter.
1684 (do_start_menu): Ditto.
1685 (mkmount): Ditto.
1686 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
1687 scanning for the version number. Eliminate unneeded argument to
1688 create_uninstall.
1689 (getdownloadsource): Add 'name' to list of names rather than url.
1690 (main): Eliminate unneeded argument in get_pkg_stuff. Eliminate
1691 unneeded argument in mkmount and do_start_menu.
1692
1693 2000-05-18 DJ Delorie <dj@cygnus.com>
1694
1695 * setup.c (optionprompt): allow multi-column, clean up message
1696 about more options, be more robust about user input.
1697 (getdownloadsource): make the mirror URL a macro.
1698 (main): do mounts after done prompting user.
1699
1700 Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
1701
1702 * setup.c (cleanup): Inverse order of deletion stands a better chance
1703 of deleting cygpath.exe. Still seems to suffer from occasional races,
1704 though.
1705 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
1706 w2k.
1707 (output_file): Defend against an unlikely handle leak.
1708 (main): Don't set up signal handling until we have something special to
1709 do.
1710
1711 Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
1712
1713 * path.c (kill_cygpath): Delete function.
1714 (exit_cygpath): Make more defensive so that it can be called at any
1715 time.
1716 (cygpath_pipe): Don't set up signal here. Do it in main().
1717 * setup.c (istargz): New function.
1718 (recurse_dirs): Look for *.gz pattern rather than *tar.gz since *tar.gz
1719 inexplicably fails on samba mounted partitions. Use istargz to match
1720 tar.gz tail.
1721 (processdirlisting) Use istargz to match tar.gz tail.
1722 (cleanup): Renamed from filedel.
1723 (cleanup_on_signal): New function. Called on CTRL-C.
1724 (main): Record handle of main thread so that it can be suspended when
1725 CTRL-C occurs. Set up cleanup_on_signal signal handler.
1726
1727 Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
1728
1729 * setup.c (do_start_menu): Don't concatenate paths to already built
1730 paths.
1731
1732 Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
1733
1734 * path.c (exit_cygpath): Wait for subprocess to exit before returning.
1735 (cygpath_pipe): Don't call exit_cygpath. Let main atexit routine do
1736 that.
1737 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
1738 root"-specific.
1739 * setup.c (filedel): Call exit_cygpath here so that we can be assured
1740 that cygpath subprocess has died. This allows us to delete cygpath.exe
1741 and cygwin1.dll.
1742 (optionprompt): Initialize response to -1 so that second screen of
1743 mirrors will appear.
1744 (get_pkg_stuff): Don't attempt to use HKCLU. Pass root to init_pkgs.
1745 * setup.h: Reflect init_pkgs prototype change.
1746
1747 Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
1748
1749 * pkg.c (init_pkgs): Accept an argument to control what root registry
1750 key should be used.
1751 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
1752 * setup.h: Reflect init_pkgs prototype change.
1753
1754 Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
1755
1756 * error.c (winerror): Respond to gcc warning.
1757 * path.c (cygpath_pipe): Ditto.
1758 * setup.c (filedel): Call sa_cleanup on deleteme.
1759 (create_shortcut): Coerce argument to eliminate compiler warning.
1760 (tarx): Use installed version of cygwin1.dll, overriding tar file name.
1761 (refmatches): New function. Tests if ref is contained in a list of
1762 packages to install.
1763 (filematches): New function. Tests if filename matches one of a list
1764 of packages to install.
1765 (recurse_dirs): Accept list of packages to install. Generalize tar.gz
1766 test to accomodate _tar.gz.
1767 (prompt): Ensure that stdout is flushed prior to asking for input.
1768 (findhref): Initialize variables to quiet a compiler warning.
1769 (processdirlisting): Accept list of packages to install. Special case
1770 cygwin tar file version number.
1771 (downloaddir): Accept list of packages to install.
1772 (downloadfrom): Ditto.
1773 (create_uninstall): Eliminate unneeded variables. Quote arguments to
1774 regtool.
1775 (do_start_menu): Don't create uninstall bat file if updating or user
1776 specified a list of packages.
1777 (mkmount): Eliminate unneeded variables.
1778 (get_pkg_stuff): New function. Checks for previous unversioned
1779 installation.
1780 (main): Accept -u and -f options and package names on the command line.
1781 Use get_pkg_stuff to initialize package information. Umount /etc.
1782 Call recurse_dirs and downloadfrom with list of package to install.
1783 Ensure that all /usr/local directories are created. Output
1784 installation time to setup.log.
1785 * setup.h: Add some prototypes.
1786 * xsystem.c (xcreate_process): Eliminate unneeded variable.
1787
1788 Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
1789
1790 * setup.c (optionprompt): Don't overlap display of already seen options
1791 on next page.
1792 (geturl): Print name of site which we're connecting to rather than "ftp
1793 site".
1794 (processdirlisting): Avoid URLs that contain a /. or ./ . Is this
1795 test too simplistic?
1796 (do_start_menu): Use pathcat to build path to <root>\bin to avoid
1797 problems when user chooses x:\ as their root.
1798 (main): For now, default to "non-update" mode. Allow -u option to
1799 signify an update.
1800
1801 Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
1802
1803 * pkg.c: New file.
1804 * setup.c (tarx): Skip already installed or older packages. Report
1805 when a package has been updated.
1806 (processdirlisting): Skip already installed or older packages.
1807 (main): Detect -f option for forced installation. Initialize pkg stuff
1808 if appropriate.
1809 * setup.h: Add pkg definitions.
1810
1811 Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
1812
1813 * setup.c (findhref): Return NULL on empty string. Eat any trailing
1814 ";something".
1815 (processdirlisting): Attempt to limit recursively processing the same
1816 directory.
1817
1818 Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
1819
1820 * setup.c (filedel): New function.
1821 (output_file): Keep track of files extracted from setup.exe for
1822 subsequent deletion.
1823 (tarx): Close process handle of child tar process or suffer handle
1824 leak.
1825 (getdownloadsource): Close mirror file so that it can be unlinked.
1826 (processdirlisting): Return total number of files extracted.
1827 (main): Initialize array of files to delete. Ensure that files are
1828 closed on exit. Make the directory that setup.exe is started from ==
1829 the directory where temporary files are placed. Issue an error if no
1830 files were found to download.
1831 * xsystem.c (xcreate_process): Close the thread handle. Close the
1832 process handle if we waited for it to exit.
1833
1834 Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
1835
1836 * setup.c (main): Change version number output.
1837
1838 Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
1839
1840 * setup.c (tarx): Use full path name to tar executable.
1841 (main): Build full pathname to tar executable. Create /usr/local/etc
1842 by default.
1843
1844 Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
1845
1846 * setup.c (findhref): Change method for scanning for href= to choose
1847 the last one on the line. This is still not foolproof and probably
1848 will need to be changed eventually. Don't abort if no "size" field is
1849 evident.
1850 (processdirlisting): Fix boolean algebra.
1851
1852 Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
1853
1854 * main.c (tarx): Add some code for future task of unmounting
1855 directories encountered in tar file.
1856
1857 Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
1858
1859 * setup.c (findhref): Decode file size, when appropriate.
1860 (needfile): New function. Returns 1 when file should be
1861 downloaded.
1862 (processdirlisting): Always download if file size does not
1863 match. Prompt when download fails for some reason.
1864 (getdownloadsource): Accomodate findhref argument changes.
1865
1866 Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
1867
1868 Throughout, use global session handle rather than reinitializing for
1869 each connect. Don't pass session as an argument to setup.c functions.
1870 * setup.c (geturl): Only issue "Connecting to.." message when using
1871 http or first time for ftp since subsequent connections will be fast.
1872 (processdirlisting): Allocate space for "N" when user has specified
1873 "N"ever option so that it can be subsequently freed.
1874 (main): Abort if we can't get the list of mirrors.
1875
1876 Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
1877
1878 * setup.c (main): Umount /bin and /lib.
1879
1880 Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
1881
1882 * setup.c (main): Create an empty /var/run/utmp.
1883
1884 Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
1885
1886 * Makefile.in: Add umount to list of files to include in setup.exe.
1887 * setup.c (xumount): New function for unmounting directories.
1888 (main): Unmount /usr.
1889 (mkmount): Unmount "unix directory" before trying to figure out where
1890 to create the directory.
1891
1892 Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
1893
1894 * setup.c (mkmount): Use xcreate_process to start mount process,
1895 avoiding the shell.
1896 (main): Don't do buffering on stdout or prompts won't be displayed
1897 correctly if running in a cygwin shell with CYGWIN=tty.
1898
1899 Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
1900
1901 * setup.c (main): Remove the CYGWIN environment variable before
1902 starting any cygwin programs.
1903
1904 Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
1905
1906 * setup.c (geturl): Use alternative method for finding filename part of
1907 a URL.
1908 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
1909 (downloaddir): Unlink file containing dir listing.
1910 (downloadfrom): Ditto.
1911
1912 Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
1913
1914 * setup.c (main): Disallow running setup.exe from the "root".
1915
1916 Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
1917
1918 Use "warning" function, where appropriate, to output warnings.
1919 * setup.c (warning): New function -- outputs warning to console and log
1920 file.
1921 (tarx): Fix index used to reset file protection.
1922 (main): Open the log file earlier so that more stuff can be sent to it.
1923
1924 Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
1925
1926 * setup.c (processdirlisting): Make "N" option a little less aggressive.
1927
1928 Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
1929
1930 * setup.c (tarx): Wait to after tar has completed to reset protections
1931 or suffer races with tar process.
1932
1933 Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
1934
1935 * Makefile.in: Eliminate duplicate -nostdinc from CFLAGS.
1936 * setup.c (create_uninstall): Create the uninstall .bat file in the
1937 "root" so that we can remove the /bin directory. Add bin\cygwin.bat to
1938 list of files to be deleted. Fix directory detection for determining
1939 when to use 'rmdir'.
1940 (do_start_menu): Add /usr/local/bin to the path.
1941 (main): Add slop to files.array allocation so that we don't have to
1942 worry about reallocating the array when it grows too large when doing
1943 some trivial "pushes". Add /tmp and /usr/local/{bin,lib} to list of
1944 files.
1945
1946 Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
1947
1948 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
1949 download.
1950
1951 Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
1952
1953 * path.c (kill_cygpath): New cleanup function.
1954 (exit_cygpath): New cleanup function.
1955 (cygpath_pipe): New function. Sets up cygpath in the background for
1956 translating filenames.
1957 (pathcvt): Use background cygpath for file translation.
1958 * setup.c (tarx): New function. Called to extract tar files, capture
1959 logging output, and translate it to Windows format.
1960 (recurse_dirs): Use 'tarx' function to extract files.
1961 (create_uninstall): Use file list built up by tarx rather than reading
1962 the log file.
1963 (mkmount): Add ability to mount root.
1964 (main): Track elapsed install time. Mount root.
1965 * starry.h: Add index field to strarry for tracking of tarx's usage of
1966 this structure.
1967 * xsystem.c (xcreate_process): Return proces handle when not waiting.
1968
1969 Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
1970
1971 * path.c: New file.
1972 (pathfp): New function. Preliminary work for new -f cygpath
1973 functionality.
1974 * Makefile.in: Add new file.
1975 (pathcvt): Move to new file.
1976 (dtoupath): Ditto.
1977 (utodpath): Ditto.
1978 (pathcat): Ditto.
1979 * setup.c (processdirlisting): Always open file in text mode.
1980 (create_uninstall): Ditto.
1981 (getdownloadsource): Ditto.
1982 (main): Ditto.
1983
1984 Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
1985
1986 * xsystem.c: New file.
1987 * Makefile.in: Accomodate new file.
1988 * setup.c (xsystem): Move to new file.
1989 (recurse_dirs): Accept handle to output log file. Don't use ">"
1990 redirection to trap tar output. Use supplied handle instead.
1991 (create_uninstall): Accept FILE pointer to opened log file. Don't
1992 unlink log file here.
1993 (do_start_menu): Accept FILE pointer to pass to create_uninstall.
1994 (main): Open log file here and pass it to various functions. Unlink
1995 when done.
1996
1997 Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
1998
1999 Change occurrences of .usr.bin to .bin throughout.
2000 * setup.c (geturl): Increase number of retries to 20. Let user know
2001 what's going on during long connects.
2002 (processdirlisting): Accept "A"lways and "N"ever as update options.
2003 (create_uninstall): Load cygwin1.dll from the current directory rather
2004 than \bin.
2005 (main): Add some expository text.
2006
2007 Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
2008
2009 * Makefile.in: Change method for compressing cygwin1.dll to avoid
2010 creating a cygwin1.dll in the current directory. Ensure the addition
2011 of -nostdinc to MINGW_CFLAGS.
2012
2013 Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
2014
2015 * Makefile.in: Augment clean target.
2016
2017 Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
2018
2019 * README: Added info about non-working mingw implementation
2020 * gzip.exe.gz: Replace with a version from the same build as the other
2021 tools.
2022 * tar.exe.gz: Replace with a version from the same build as the other
2023 tools.
2024 * mount.exe.gz: Add to repository until, mingw can build setup.
2025 * cygpath.exe.gz: ditto
2026 * cygwin1.dll.gz: ditto
2027 * setup.c: Overwrite /bin and /lib mounts. Generate working shortcut
2028 for Win9x. Display only a screenfull of options at a time. Call all
2029 tools with an absolute path.
2030 * setup.dsp: Restore the carriage returns, MS Developer Studio needs
2031 them.
2032 * setup.dsw: ditto
2033 * zlib.dsw: ditto
2034
2035 Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
2036
2037 * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab
2038 cygwin1.dll from ../cygwin subdirectory.
2039 * gzip.exe.gz: Update.
2040 * tar.exe.gz: Update.
2041
2042 Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
2043
2044 * Makefile.in: Use ZLIB variable as a target.
2045
2046 Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
2047
2048 * Makefile.in: Eliminate traces of cygwinisms. Don't link with
2049 libmsvcrt.a. It's unneeded. Build .rc file on the fly from various
2050 sources.
2051 * configure.in: Locate correct objcopy.
2052 * configure: Regenerate.
2053
2054 Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
2055
2056 * Makefile.in: New file.
2057 * configure.in: New file.
2058 * configure: New file.
2059 * zlib/Makefile.am: New file.
2060 * zlib/configure.in: New file.
2061 * zlib/aclocal.m4: New file.
2062 * zlib/acinclude.m4: New file.
2063 * zlib/configure: Regenerate from configure.in.
2064 * zlib/Makefile.in: Regenerate from Makefile.am
2065
2066 %%% $Id$
2067 $Revision$
This page took 0.12414 seconds and 6 git commands to generate.