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