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