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