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