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