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