1 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
3 * Makefile.in (OBJS): Add setup_version.o.
4 (version.c): Rename to setup_version.
5 * choose.cc (set_action): Prevent NULL pointer dereference.
6 (package_sort): Remove.
7 * fromcwd.cc (canonicalize_version): Moved to version.cc.
8 (check_ini): New function for use with find to see if there is a cached setup.ini.
9 (do_fromcwd): Check for a cached setup.ini from any mirror site.
10 * ini.cc (find_routine): New function, for finding cached setup.ini's.
11 (do_local_ini): New function, drives parsing of local ini's.
12 (do_remote_ini): New function, drives parsing and caching of remote ini's.
13 (do_ini): Move guts to do_remote_ini and do_local_ini.
14 * list.h (removebyindex): New method.
15 * other.cc (save_dialog): Use new site_list and all_site_list to add the
16 new site to the site picklist.
17 (dialog_cmd): Only save the dialog when exiting the dialog.
18 * res.rc (IDD_SITE): Make IDC_URL_LIST a multiple-selection control.
19 * site.cc (site_list_type): Move to site.h
20 (site_list): New global, sites chosen by the user.
21 (all_site_list): New global, all potential sites.
22 (site_list_type::init): New method, parses a mirror.lst URL string into a
23 site_list_type object.
24 (site_list_type::site_list_type): New method.
25 (check_if_enable_next): Examine the control, not a local variable.
26 (load_dialog): Select all the user chosen sites by default.
27 (save_dialog): Adjust for multiple selection semantics.
28 (save_site_url): Save all user chosen sites.
29 (dialog_cmd): Don't save the dialog when the listbox recieves a message -
31 Remove obsolete other_url reference.
32 (dialog_proc): Use all_site_list instead of site_list.
34 (get_site_list): Remove malloc use - use list template instead.
35 Move site_list_type initialisation to site_list_type::init().
36 (get_initial_list_idx): Renamed to ...
37 (get_saved_sites): this. Also read in multiple sites to the site_list.
38 (do_site): Use all_site_list not site_list.
40 * site.h: New file, defines site related class, functions and variables.
41 * state.h: Add comment about use of state.h
42 (mirror_site): Remove.
44 (MIRROR_SITE): Remove.
45 * version.cc: New file, for version-handling and related functions.
47 2001-12-02 Robert Collins <rbtcollins@hotmail.com>
49 * Makefile.in: Add filemanip.o to setup.
50 * archive.cc (archive::extract_file): Use new io_stream method 'copy'.
51 * archive_tar.h (archive_tar_file): Implement get_size virtual.
53 * choose.cc (set_action): Use [] operator instead of getnth - its more readable.
55 (_view::init_headers): Ditto.
56 (_view::insert_pkg): Ditto.
57 (set_view_mode): Ditto.
60 (base): Moved to filemanip.cc.
61 (find_tar_ext): Ditto.
62 (parse_filename): Ditto.
63 (_Info::_Info): Remove.
64 * compress_bz.h (compress_bz): Implement get_size virtual.
65 * compress_gz.h (compress_gz): Implement get_size virtual.
66 * cygpackage.cc (cygpackage::destroy): Use array delete for char * objects.
67 * download.cc (get_file_size): Move to filemanip.cc.
68 (check_for_cached): Use [] operator instead of getnth - its more readable.
69 (download_one): Ditto.
70 * filemanip.cc: New file.
71 * geturl.cc (init_dialog): Make url a pointer to const as it is not modified.
72 (get_url_to_membuf): New function - contains get_url_to_string worker code.
73 (get_url_to_string): Becomes a trivial wrapper to get_url_to_membuf.
74 * geturl.h: Declare new prototype.
75 * ini.cc (do_ini): Use get_url_to_membuf and pass ini_init an io_stream.
76 Tidy up the error code a little.
77 * ini.h: Remove __cplusplus protection for ini_init.
79 * inilex.l: Remove old globals.
80 (ini_init): Use an io_stream for getting the characters.
82 * iniparse.y: Declare yylex as a C++ function.
83 (add_correct_version): Use [] operator instead of getnth - its more readable.
84 * io_stream.cc (io_stream::move_copy): Use the copy method.
85 (io_stream::copy): New method to simply copy from one stream to another.
86 * io_stream.h (io_stream): New static method copy, and virtual method get_size.
87 * io_stream_cygfile.cc (io_stream_cygfile::get_size): Implement this.
88 * io_stream_cygfile.h (io_stream_cygfile::get_size): Declare this.
89 * io_stream_file.cc (io_stream_file::get_size): Implement this.
90 * io_stream_file.h (io_stream_file::get_size): Declare this.
91 * io_stream_memory.h: Include errno as it's neded to parse the header.
92 (io_stream_memory::get_size): Implement this.
93 (io_stream_memory::st_size): Delete this.
94 * list.h: Change getnth into the [] operator.
95 * netio.cc (NetIO::NetIO): Change prototype to reflect Purl not being modified.
96 (NetIO::set_url): Ditto.
98 * netio.h: As for netio.cc.
99 * nio-file.cc (NetIO_File::NetIO_File): Change prototype to reflect Purl not
102 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
103 * nio-ftp.h (NetIO_FTP::NetIO_FTP): Ditto.
104 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Ditto.
105 * nio-http.h (NetIO_HTTP::NetIO_HTTP): Ditto.
106 * nio-i5.cc (NetIO_IE5::NetIO_IE5): Ditto.
107 * nio-i5.h (NetIO_IE5::NetIO_IE5): Ditto.
108 * package_meta.cc (packagemeta::~packagemeta): Bugfix: use array delete.
109 * package_source.cc (packagesource::set_canonical): Ditto.
110 (packagesource::set_cached): Ditto.
111 * package_source.h (site::~site): Ditto.
112 * site.cc: Change site_list_type to a class, and search and replace sort_key to
115 2001-12-01 Robert Collins <rbtcollins@hotmail.com>
117 * package_source.cc (packagesource::set_canonical): Filename was out by one.
119 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
121 * Makefile.in (OBJS): Remove category_list - it's not needed.
122 * README: More wishlist updates.
123 * category.cc (Category::Category): Initialise new members.
124 (Categorycmp): New function.
125 * category.h (Category): New member key for template use.
126 * category_list.cc: Remove.
127 * category_list.h: Remove.
128 (Categorycmp): New function prototype.
129 * choose.cc: Remove category_list - not needed.
130 (set_action): Only show the 'source' option when the source is actually
132 (add_required): Fix recursion limiter to 5.
133 (fill_missing_category): Use list access.
134 (default_trust): Ditto.
135 (pick_line::paint): Ditto.
136 (_view::init_headers): Ditto.
137 (_view::insert_pkg): Ditto.
138 (_view::insert_category): Ditto.
139 (_view::click): Ditto.
140 (set_view_mode): Ditto.
142 * cygpackage.h: Remove category_list - not needed.
143 * geturl.cc (get_url_to_string): Fix null byte insertion.
144 * inipatse.y: Remove category_list - not needed.
145 (categories): Use list access.
146 * package_db.cc: Ditto.
147 * package_db.h: Remove category_list - not needed.
148 (packagedb): Use the list template for categories.
149 * package_meta.cc (add_category): Ditto.
150 * package_meta.h (CategoryPackage): Link to the category as well.
151 (packagemeta): Use a list of CategoryPackages instead of Categories
152 for more memory efficient cross-referencing.
154 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
156 * package_db.cc (packagedb::flush): Write a canonical version for all packages
157 irrespective of the media they were installed from.
159 2001-11-29 Robert Collins <rbtcollins@hotmail.com>
161 * Makefile.in (OBJS): Add package_source and rfc1738.
162 * README: Wishlist update.
163 * category_list.cc (register_category): Use references.
164 * category_list.h (CategoryList): Ditto.
165 * choose.cc (isinstalled): Remove.
166 (pkgtrustp): New macro.
167 (set_action): Use packagemeta.
168 (add_required): Ditto.
169 (choose_caption): Example package to choose caption, rather than state flags.
170 (check_existence): Remove.
171 (set_existence): Remove old code.
172 (fill_missing_category): Use packagemeta.
173 (keep_or_skip): Remove.
174 (default_trust): Use packagemeta and set trust values directly.
175 (pick_line::set_line): Use packagemeta.
176 (_view::insert_pkg): Ditto.
177 (_view::insert_category): Ditto.
178 (_view::click): Ditto.
179 (set_view_mode): Ditto. Also remove "exclude" code.
180 (create_listview): Use packagemeta.
182 (getpkgbyname): Remove
183 (scan2): Use packagemeta. Temporarily comment out the holefinding code.
184 (read_installed_db): Remove.
185 (package_sort): Use packagemeta.
186 (do_choose): Use packagemeta. Don't sort the packages - the db does that.
187 * choose.h: Use packagemeta.
188 * cygpackage.cc (cygpackage::cygpackage): Initialise all variables.
189 (cygpackage::cygpackage): Ditto.
190 (cygpackage::set_canonical_version): Copy the passed string.
191 (cygpackage::~cygpackage): Move cleanup code to destroy().
192 (cygpackage::destroy): New function.
193 (cygpackage::getfirstfile): Use a separate buffer.
194 (cygpackage::getnextfile): Ditto.
195 (cygpackage::Canonical_version): New function.
196 (cygpackage::set_sdesc): Ditto.
197 (cygpackage::set_ldesc): Ditto.
198 * cygpackage.h (cygpackage::Canonical_version): New method.
199 (cygpackage::set_sdesc): New method.
200 (cygpackage::set_ldesc): New method.
201 (cygpackage::SDesc): New method.
202 (cygpackage::LDesc): New method.
203 (cygpackage::set_canonical_version): New method.
204 * desktop.cc: Include packagedb headers.
205 (make_password_group): Use packagemeta.
206 * download.cc: Include packagedb headers.
207 (check_for_cached): New method to find any cached file and fill out the database
209 (download_one): Take a packagesource, support multiple mirrors.
210 (do_download): Use packagemeta.
211 * from cwd.cc: Include packagedb headers.
212 (found_file): Use packagemeta.
213 * ini.cc (do_ini): Beginning of multiple-mirror support.
214 * ini.h (CategoryPackage): Remove.
215 (Dependency): Remove.
217 (new_package,getpkgbyname,getpackagecategorybyname,add_category): Remove.
218 * inilex.l: Support multiple mirrors.
219 * iniparse.y: Include packagedb headers.
220 (parser): Use packagemeta.
221 (new_package): Remove.
222 (add_correct_version): New function.
223 (new_requirement): Remove.
224 (add_category): Remove.
225 * install.cc (uninstall_one): Use packagemeta.
226 (install_one_source): New function.
227 (install_one): Use packagemeta.
228 (do_install): Use packagemeta.
229 * io_stream.cc (io_stream::move): Bugfix on move/copy case.
230 * io_stream_cygfile.cc (io-stream_cygfile::set_mtime): Do not reopen the file
231 after setting the mtime, it makes no sense, and results in 0 length files.
232 * io_stream_file.cc (io-stream_file::set_mtime): Ditto.
233 * list.h: New file, template class for a form of list.
234 * package_db.cc (packagedb::registerpackage): New function.
235 * package_db.h (packagedb::npackages ()): New method.
236 * package_meta.cc (packagemeta::add_version): Use list template.
237 (packagemeta::set_installed): Ditto.
238 (packagemeta::add_category): New method.
239 * package_meta.h: Include necessary headers to parse the class.
240 (CategoryPackage): New class.
241 (packagemeta): Initialise all members.
242 (packagemeta::SDesc): New method.
243 (packagemeta::Categories): New method.
244 (packagemeta::add_category): Ditto.
245 (packagemeta::versions): Change to be a list instance.
246 * package_source.cc (packagesource::set_canonical): New method.
247 (packagesource::set_cached): New method.
248 * package_source.h: Include necessary headers to parse the class.
250 (packagesource::packagesource): Initialize all members.
251 (packagesource): Make this class non-abstract.
252 * package_version.cc (packageversion::packageversion): New method.
253 * package_version.h (Dependency): New class.
254 (packageversion::Canonical_vesion): New method.
255 (packageversion::SDesc): New method.
256 (packageversion::LDesc): New method.
257 (packageversion::new_requirement): Ditto.
258 (packageversion::srcpicked, binpicked): What to install.
259 (packageversion::src, bin): Installation source data.
260 * rfc1738.cc: New file. Escapes special characters in URL's.
263 2001-11-26 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
265 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Stop header parsing when
266 SimpleSocket::gets() returns a zero-length string, so that we
267 don't end up eating the entire stream thinking it's all header info.
269 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
271 * install.cc (badrename): Remove.
272 (do_install): Use packagedb flush method to write /etc/setup/installed.db.
273 * io_stream.cc (io_stream::move_copy): New method.
274 (io_stream::move): New method.
275 * io_stream.h (io_stream): New methods move and move_copy.
276 * io_stream_cygfile.cc (io_stream_cygfile::move): New method.
277 * io_stream_cygfile.h (io_stream_cygfile): New method move.
278 * io_stream_file.cc (io_stream_file::move): New method.
279 * io_stream_file.h (io_stream_file): New method move.
280 * package_db.cc (packagedb::flush): New method.
281 * package_db.h (packagedb): New method flush.
283 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
285 * Makefile.in (OBJS): Add package_version.
286 * ategory.cc (Category::Category): Update constructors.
287 * category_list.cc (CategoryList::register_category): Insert correctly.
288 * choose.cc: Include package_version.h, not package.h.
289 * cygpackage.cc: Ditto.
290 (cygpackage::uninstall): New method.
291 * cygpackage.h (cygpackage): Rename genericpackage to packageversion.
292 New method uninstall.
293 * hash.cc (add, has, enumerate): Change prototype to be accurate.
294 * hash.h (hash): Change prototypes to be accurate.
295 * ini.h (_Info): New parameterless constructor.
296 (CategoryPackage): New constructor.
298 * install.cc: Don't include unneeded headers.
299 Include package database headers.
300 (hash::add_subdirs): Remove.
301 (uninstall_one): Use packagemeta->uninstall to perform the uninstallation.
302 Don't uninstall source packages.
303 (do_install): Just can uninstall_one once as we ignore source packages now.
304 Don't copy the installed.old database accross, instead iterate through the
305 packagedb packages list and write the isntalled packages out.
306 * package_db.cc: Include package_version.h, not package.h.
307 (packagedb::packagedb): Never let db be undefined.
308 Record the installation filename, so we can reconstruct installed.db.
309 (packagedb::addpackage): Insert packages in alpha sorted order.
310 (packagedb::categories): Initialise correctly.
311 * package_meta.cc: Include win32 and mount headers as a workaround to
312 current io_stream limitations. Include a TODO about that.
313 (standard_dirs): New, from install.cc.
314 (hash::add_subdirs): New, from install.cc.
315 (packagemeta::set_installed): Rename genericpackage to packageversion.
316 (packagemeta::uninstall): New method.
317 * package_meta.h: Rename genericpackage to packageversion.
318 (packagemeta): Update constructor.
319 (add_version, set_installed): Rename genericpackage to packageversion.
320 (uninstall): New method.
321 (installed_from): New member.
322 * package_source.cc: New file.
323 * package_source.h: New file.
324 * package_version.cc: New file.
325 * package_version.h: New file.
326 * package.cc: Removed.
327 * package.h: Removed.
329 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
331 * Makefile.in (OBJS): Add category.o and category_list.o.
332 * category.h: New file.
333 * category.cc: New file.
334 * category_list.h: New file.
335 * category_list.cc: New file.
336 * choose.cc: Include category headers.
337 (fill_missing_category): Use package_db to access global categories.
338 (_view::insert_pkg): Ditto.
339 (_view::insert_category): Ditto.
340 (set_view_mode): Ditto.
341 (getcategorybyname): Remove.
342 * cygpackage.h: Include category_list.h to parse this correctly.
343 (cygpackage): New virtual &Categories.
344 * ini.h (_CategoryPackage): More C to C++ conversion.
346 (getcategorybyname): Remove.
347 (register_category): Remove.
348 * iniparse.y: Include package db and category headers.
349 (categories): Use package_db to access global categories.
351 (ncategories): Remove.
352 (register_category): Remove.
353 * package.h: New virtual &Categories.
354 * package_db.cc (packagedb::packagedb): Don't read the installed db twice.
355 (packagedb::categories): Declare.
356 * package_db.h (packagedb): New member categories for global categories list.
358 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
360 * choose.h: Don't include ini.h
361 * ini.h: Allow pure c++ in the header file.
363 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
365 * install.cc (do_install): Write a version 2 installed.db file.
366 * package_db.cc (packagedb::packagedb): Read version 1 and 2 installed.db files.
368 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
370 * Makefile.in (OBJS): Add package abstraction objects.
371 * choose.cc: Include package abstraction headers.
372 (read_installed_db): Use packagedb class and ignore installed sources.
373 * cygpackage.cc: New file.
374 * cygpackage.h: New file.
375 * filemanip.h (get_file_size): Use unixy types.
376 * package.h: New file.
377 * package.cc: New file.
378 * package_db.cc: New file.
379 * package_db.h: New file.
380 * package_meta.cc: New file.
381 * package_meta.h: New file.
383 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
385 * REAME: Updates to wishlist.
387 2001-11-16 Robert Collins <rbtcollins@hotmail.com>
389 * README: Updated and added my list of wishlist and todo items.
391 2001-11-14 Robert Collins <rbtcollins@hotmail.com>
393 * Makefile.in (OBJS): Include io_stream_memory in setup.exe.
394 * archive_tar.cc (archive_tar::write): New prototype.
395 (archive_tar::seek): New method.
396 * archive.h (archive_tar_file): Update write() and add seek().
397 (archive_tar): Ditto.
398 * archive_tar_file.cc (archive_tar_file::write): New prototype.
399 (archive_tar_file::seek): New method.
400 * compress_bz.cc (compress_bz::write): New prototype.
401 (compress_bz::seek): New function.
402 * compress_bz.h (compress_bz): Update write() and add seek().
403 * compress_gz.cc (compress_gz::write): New prototype.
404 (compress_gz::seek): New function.
405 * compress_gz.h (compress_gz): Update write() and add seek().
406 * geturl.cc: Include io_stream headers.
408 (get_url_to_string): Use a io_stream_memory buffer instead of GUBuf.
409 * io_stream.h (io_stream_seek_t): New enum.
410 (io_stream): Update write() and add seek().
411 * io_stream_cygfile.cc (io_stream_cygfile::write): New prototype.
412 (io_stream_cygfile::seek): New function.
413 * io_stream_cygfile.h (io_stream_cygfile): Update write() and add seek().
414 * io_stream_file.cc (io_stream_file::write): New prototype.
415 (io_stream_file::seek): New function.
416 * io_stream_file.h (io_stream_file): Update write() and add seek().
418 2001-11-13 Brian Keener <bkeener@thesoftwaresource.com>
420 * localdir.cc: Add headers unistd.h and port.h.
421 (save_local_dir): Expand search logic to include local directory for
422 location of file last-cache.
423 (dialog_cmd): Skip IDD_ROOT when downloading and use Back button.
424 (do_local_dir): Expand search logic to include local directory for file
426 * res.rc (IDD_CHOOSE_DIALOG): Add hotkey to View button.
427 * Source.cc (dialog_cmd): Skip IDD_ROOT if select Download from
429 (do_source): Default to Install from Internet on first entry or
430 previous selection if backing up from IDD_ROOT or IDD_LOCAL_DIR.
432 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
434 * choose.cc (find_tar_ext): Only match at the end of the string.
435 (getpkgbyname): Prevent NULL pointer dereference.
437 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
439 * Makefile.in (CFLAGS): Add warnings and -Werr.
440 (WARNONLY_FLAGS): For sources that produce (harmless) errors no matter what.
441 (OBJS): Add io_stream class' objects.
442 (autoload.o): Use WARNONLY_FLAGS.
445 * archive.cc: New file.
446 * archive.h: New file.
447 * archive_tar.cc: New file.
448 * archive_tar.h: New file.
449 * archive_tar_file.cc: New file.
450 * autoload.c: Fix compiler warnings (unused, deprecated conversion).
451 * choose.cc: Use io_stream.h, not mount.h.
453 (find_tar_ext): Rewritten to use strstr, and to accept .tar as an extension.
454 (read_installed_db): Use io_streams.
455 * choose.h: Run indent.
456 * compress.cc: New file.
457 * compress.h: New file.
458 * compress_bz.cc: New file.
459 * compress_bz.h: New file.
460 * compress_gz.cc: New file.
461 * compress_gz.h: New file.
462 * concat.cc: Run indent.
463 (cvsid): Fix compiler warnings (unused, deprecated conversion).
464 * concat.h: Run indent.
465 * desktop.cc: Run indent.
466 Include mklink2.h rather than redefining by hand.
467 (cvsid): Fix compiler warnings (unused, deprecated conversion).
468 (etc_profile): Fix compiler warning (deprecated conversion).
469 (make_link): Fix compiler warning (deprecated conversion).
470 Tidy up use of args variable - consolidate into argbuf.
471 (start_menu): Fix compiler warning (deprecated conversion).
472 (desktop_icon): Fix compiler warning (deprecated conversion).
473 (make_etc_profile): Fix compiler warning (deprecated conversion).
474 (uexists): Fix compiler warning (deprecated conversion).
475 (check_desktop): Fix compiler warning (deprecated conversion).
476 (check_startmenu): Fix compiler warning (deprecated conversion).
477 * dialog.cc: Run indent.
478 (cvsid): Fix compiler warnings (unused, deprecated conversion).
479 (fatal): Fix compiler warning (deprecated conversion).
480 * dialog.h: Run indent.
481 * diskfull.cc: Run indent.
482 (cvsid): Fix compiler warnings (unused, deprecated conversion).
483 * download.cc: Run indent.
484 (cvsid): Fix compiler warnings (unused, deprecated conversion).
485 (download_one): Fix compiler warning (signed vs unsigned comparison).
486 * filemanip.h: Run indent.
487 * find.cc: Run indent.
488 (cvsid): Fix compiler warnings (unused, deprecated conversion).
489 (find): Fix compiler warning (deprecated conversion).
490 * find.h: Run indent.
491 * fromcwd.cc: Run indent.
492 * geturl.cc: Run indent.
493 (cvsid): Fix compiler warnings (unused, deprecated conversion).
494 (dialog_cmd): Return a value.
495 (dialog_proc): Remove unused variables.
497 (get_url_to_file): Fix compiler warning (deprecated conversion).
498 * geturl.h: Run indent.
499 * hash.cc: Run indent.
500 (cvsid): Fix compiler warnings (unused, deprecated conversion).
501 * hash.h: Run indent.
502 * ini.cc: Run indent.
504 (cvsid): Fix compiler warnings (unused, deprecated conversion).
505 (do_ini): Use io_streams for local io.
507 * inilex.l (ignore_line): Fix compiler warning (is not a prototype).
508 Fix compiler warning (brackets for truth assignment).
509 * install.cc: Run indent.
510 Fix compiler warning (/* in comment).
512 (cvsid): Fix compiler warnings (unused, deprecated conversion).
513 (dialog_cmd): Return a value.
514 (dialog_proc): Return a value.
515 (start_tics): Deleted - was unused.
516 (badrename): Fix compiler warnings (unused, deprecated conversion).
517 (standard_dirs): Fix compiler warning (deprecated conversion).
519 (uninstall_one): Convert to io_streams.
520 (install_one): Convert to io_streams.
521 (do_install): Convert to io_streans.
522 Fix compiler warning (deprecated conversion).
523 * io_stream.cc: New file.
524 * io_stream.h: New file.
525 * io_stream_cygfile.cc: New file.
526 * io_stream_cygfile.h: New file.
527 * io_stream_file.cc: New file.
528 * io_stream_file.h: New file.
529 * localdir.cc: Run indent.
531 (cvsid): Fix compiler warnings (unused, deprecated conversion).
532 (get_root_dir_now): Remove.
533 (save_local_dir): Convert to io_streams.
534 (dialog_cmd): Return a value.
535 (do_local_dir): Convert to io_streams.
536 (log.cc): Run indent.
537 (cvsid): Fix compiler warnings (unused, deprecated conversion).
538 (log): Fix compiler warning (deprecated conversion).
539 (log_save): Fix compiler warning (deprecated conversion).
541 (log): Fix compiler warning (deprecated conversion).
542 (log_save): Fix compiler warning (deprecated conversion).
543 * main.cc: Run indent.
544 Don't include "netio.h".
545 (cvsid): Fix compiler warnings (unused, deprecated conversion).
546 (netio_test): Remove.
547 (sid_auth): Fix compiler warning (partially bracketed initialiser).
548 (WinMain): Return a value.
549 * mkdir.cc: Run indent.
550 (cvsid): Fix compiler warnings (unused, deprecated conversion).
551 * mklink2.c: Run indent.
552 (cvsid): Fix compiler warnings (unused, deprecated conversion).
553 (mkcygsymlink): New function.
554 * mklink2.h: New file.
555 * mount.cc: Run indent.
556 (cvsid): Fix compiler warnings (unused, deprecated conversion).
557 (create_mount): Remove unused variables.
558 (cygpath): Fix compiler warning (signed vs unsigned comparison).
559 * mount.h: Run indent.
560 * msg.cc: Run indent.
561 (cvsid): Fix compiler warnings (unused, deprecated conversion).
562 (msg): Fix compiler warning (deprecated conversion).
563 (mbox): Fix compiler warning (deprecated conversion).
565 (msg): Fix compiler warning (deprecated conversion).
566 * net.cc: Run indent.
567 (cvsid): Fix compiler warnings (unused, deprecated conversion).
568 (dialog_cmd): Return a value.
569 * netio.cc: Run indent.
570 (cvsid): Fix compiler warnings (unused, deprecated conversion).
571 (auth_cmd): Return a value.
572 * netio.h: Run indent.
573 * nio-file.cc: Run indent.
574 (cvsid): Fix compiler warnings (unused, deprecated conversion).
575 (NetIO_File::NetIO_File): Fix compiler warning (deprecated conversion).
576 * nio-file.h: Run indent.
577 * nio-ftp.cc: Run indent.
578 (cvsid): Fix compiler warnings (unused, deprecated conversion).
579 * nio-ftp.h: Run indent.
580 * nio-http.cc: Run indent.
581 (cvsid): Fix compiler warnings (unused, deprecated conversion).
582 * nio-http.h: Run indent.
583 * nio-ie5.cc: Run indent.
584 (cvsid): Fix compiler warnings (unused, deprecated conversion).
585 * nio-ie5.h: Run indent.
586 * other.cc: Run indent.
587 (cvsid): Fix compiler warnings (unused, deprecated conversion).
588 (dialog_cmd): Return a value.
589 * port.h: Run indent.
590 * postinstall.cc: Run indent.
591 (cvsid): Fix compiler warnings (unused, deprecated conversion).
592 (cmd): Fix compiler warning (deprecated conversion).
593 (eun): Fix compiler warning (deprecated conversion).
594 * root.cc: Run indent.
595 (cvsid): Fix compiler warnings (unused, deprecated conversion).
596 * simpsock.cc: Run indent.
597 (cvsid): Fix compiler warnings (unused, deprecated conversion).
598 * simpsock.h: Run indent.
599 * site.cc: Run indent.
601 (cvsid): Fix compiler warnings (unused, deprecated conversion).
602 (get_root_dir_now): Remove.
603 (save_site_url): Convert to io_streams.
604 (dialog_cmd): Return 0.
605 (get_initial_list_idx): Convert to io_streans.
606 * source.cc: Run indent.
607 (cvsid): Fix compiler warnings (unused, deprecated conversion).
608 (check_if_enable_next): Remove.
609 (load_dialog): Remove unused variables.
610 (save_dialog): Ditto.
611 (dialog_cmd): Return a value.
612 * splash.cc: Return a value.
613 (cvsid): Fix compiler warnings (unused, deprecated conversion).
614 (dialog_cmd): Return a value.
615 * state.cc: Run indent.
616 (cvsid): Fix compiler warnings (unused, deprecated conversion).
617 * state.h: Run indent.
621 2001-11-12 Christopher Faylor <cgf@redhat.com>
623 * desktop.cc (start_menu): Change start menu name to "Cygwin".
624 (check_startmenu): Ditto.
626 2001-11-11 Christopher Faylor <cgf@redhat.com>
628 * choose.cc (parse_filename): Finish reorganization by correctly
629 decrementing p in memmove.
631 2001-11-11 Christopher Faylor <cgf@redhat.com>
633 * choose.cc (parse_filename): Reorganize code to work around gcc
634 optimization problem.
636 2001-11-09 Gareth Pearce <tilps@hotmail.com>
638 * choose.cc (set_action): Allow skip as an option for installed
639 packages that have version number not listed in setup.ini.
641 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
643 * choose.cc (set_cation): Backout last change.
644 (choose_caption): Ditto.
646 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
648 * ini.h (actions): Remove - transferred to choose.h.
650 * choose.h: Protect class's from "C" compilers.
651 (actions): New enum, from ini.h. This may not be the 'right' place
652 but that place doesn't exist yet.
653 (_views): New enum, from ini.h.
654 * choose.cc (set_action): Handle installed packages with a version not in
656 (choose_caption): Ditto.
657 * iniparse.y: Rearrange header order to handle new ini.h.
659 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
661 * ini.h (_Info): Fix compiler warnings (signed vs unsigned comparison).
662 (registry_category): Fix compiler warning (deprecated conversion).
663 * iniparse.y (registry_category): Ditto.
664 * choose.cc (cvsid): Fix compiler warnings (unused, deprecated conversion).
665 (add_requried): Remove unused variable.
666 (choose_caption): Handle all enumeration values via a default.
667 (paint): Fix compiler warnings (unused, deprecated conversion).
668 (scroll_common): Fix compiler warnings (unused, signed vs unsigned comparison).
669 (list_clicK): Fix compiler warnings (signed vs unsigned comparison).
670 (note_width): Fix compiler warnings (deprecated conversion).
671 (keep_or_skip): Fix compiler warnings (unused).
672 (_view::mode_caption): Fix compiler warnings (deprecated conversion).
673 (set_view_mode): Fix compiler warnings (unused).
674 (create_listview): Fix compiler warnings (unused, incorrect format, reaches
676 (dialog_proc): Fix compiler warnings (unused).
677 (read_installed_db): Fix compiler warnings (unused, deprecated conversion).
678 * choose.h (_header): Fix compiler warnings (deprecated conversion).
681 2001-11-08 Pavel Tsekov <ptsekov@syntrex.com>
683 * simpsock.h (SimpleSocket::invalidate): Declare new method.
684 * simpsock.cc (SimpleSocket::invalidate): Implement new method.
685 (SimpleSocket::SimpleSocket): Initialize buf to zero. Do not allocate
686 memory for buf in the constructor.
687 (SimpleSocket::~SimpleSocket): Use SimpleSocket::invalidate().
688 (SimpleSocket::printf): Use SimpleSocket::write() instead of send().
689 (SimpleSocket::write): Check object consistency - return -1 on error.
690 invalidate() the object on socket write error.
691 (SimpleSocket::fill): Check object consistency - return -1 on error.
692 invalidate() the object if socket read error is encountered and there
693 is no more data available in the internal read buffer.
694 Allocate memory for the internal read buffer.
695 (SimpleSocket::gets): Return zero (NULL pointer) if error is encountered
696 during fill() and no more data is available in the internal read buffer.
697 (SimpleSocket::read): Check object consistency - return -1 on error.
698 invalidate() the object if socket read error is encountered.
699 * nio-ftp.cc (NetIO_FTP:NetIO_FTP): Allow 125 as valid response code to
700 the RETR command (fix for MS IIS ftp server 5 - possibly others too).
701 (NetIO_FTP::ok): Check if the SimpleSocket object is ok().
702 (NetIO_FTP::read): Use NetIO_FTP::ok().
703 * nio-http.cc: Check for valid return value of SimpleSocket::gets().
704 (NetIO_HTTP::ok): Check if the SimpleSocket object is ok().
706 2001-11-09 Robert Collins <rbtcollins@hotmail.com>
708 * simpsock.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
709 (SimpleSocket::SimpleSocket): Avoid compiler warnings (deprecated conversion).
710 (SimpleSocket::printf): Ditto.
711 (SimpleSocket::write): Ditto.
712 * simpsock.h (SimpleSocket): Avoid compiler warnings for constructor,
714 * nio-ftp.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
715 (NetIO_FTP::NetIO_FTP): Remove unused variable done.
716 * nio-http.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
718 2001-11-07 Charles Wilson <cwilson@ece.gatech.edu>
720 * geturl.cc (get_url_to_string): clean up memory leak
721 (get_url_to_file): ditto
723 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
725 * localdir.cc (dialog_cmd): Go back to IDD_ROOT in every case.
726 * source.cc (dialog_cmd): Go forward to IDD_ROOT in every case.
728 2001-11-06 Pavel Tsekov <ptsekov@syntrex.com>
730 * fromcwd.cc (found_file): Free() memory containing the version and
731 filepath information for a given package, before replacing the pointers which
732 reference this memory.
734 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
736 * fromcwd: Fix compiler warnings for cvsid.
737 (canonicalize_version): Fix compilter warnings.
739 * version.h: Fix compiler warnings for canonicalize_version.
741 2001-11-03 Robert Collins <rbtcollins@hotmail.com>
743 * res.rc (IDD_CHOOSE): Move the view caption to the right hand side.
745 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
747 * res.rc (IDD_CHOOSE): Tweak for use on a 640x480 screen.
749 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
751 * choose.cc (set_action): Correctly allow skip for any uninstalled package.
753 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
755 * choose.cc (default_trust): Change the "Required" forced install category to
758 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
760 * choose.cc: Ran indent.
761 (set_action): When the requested trust level is missing and the level was not
762 user requested, set the action to ACTION_SAME_CURR.
764 2001-11-01 Christopher Faylor <cgf@redhat.com>
766 * Makefile.in (mingw_getopt.o): Fix typo in non-verbose compilation.
768 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
770 * choose.cc (_view::init_headers): Resync with the paint logic.
772 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
774 * choose.cc (add_required): Allow SKIP and SRC_ONLY for currently installed
777 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
779 * choose.cc (default_trust): Autoset currently installed packages per the user's
780 selection of prev/curr/exp.
782 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
784 * splash.cc (dialog_proc): Return TRUE as specified in the WIN32 API.
786 2001-11-02 Pavel Tsekov <ptsekov@syntrex.com>
788 * geturl.cc (is_showing): Remove.
789 (is_local_install): New static variable. Controls whether the
790 progress dialog and the supporting thread will be created.
791 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the WIN32 API.
792 (init_dialog): Remove usage of SetForegroundWindow and is_showing.
793 This prevents the progress dialog to gain control over the
794 application and fixes the "setup.exe going to background" problem.
795 (progress): Use is_local_install.
796 (get_url_to_string): Set is_local_install.
797 (dismiss_url_status_dialog): Use is_local_install.
798 * install.cc (dialog_proc): Return TRUE as specified in WIN32 API.
799 (init_dialog): Remove usage of SetForegroundWindow.
800 This prevents the progress dialog to gain control over the
801 application and fixes the "setup.exe going to background" problem.
803 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
805 * choose.cc (list_click): Change r to row for clarity.
806 When we shrink the list below 1 page, scroll to the top of the list.
807 (_view::click): Return the actual change for contractions.
808 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the Win32 API.
810 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
812 * choose.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
813 * localdir.cc: Ran indent.
814 (get_root_dir_now): New function.
815 (save_local_dir): New function.
816 (dialog_cmd): Use it and swap cygwin root selection and local dir selection order.
817 (do_local_dir): If there is a saved local dir, read it in.
818 * net.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
819 * root.cc (dialog_cmd): Ditto.
820 * source.cc (dialog_cmd): Ditto.
822 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
824 * choose.cc(list_vscroll): Return 0 as required by win32.
825 (list_hscroll): Ditto.
828 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
832 * main.cc(WinMain): Use __argv to retrieve command line parameters.
833 * Makefile,in: Remove argv.o.
835 2001-11-01 Matt Hargett <matt@use.net>
837 * geturl.cc (progress): Change int to unsigned int to eliminate
839 * (get_url_to_string): Check for NULL pointer.
840 * mount.cc (find2): Use free instead of delete for malloc'd
842 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Fix memory leak.
844 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
846 * choose.cc(_view::insert_under): Handle linen > nlines and lines[linen] with neither
847 a package nor a category. The lines[linen] bug was reported by Matt (matt@usa.net).
848 (read_installed_db): Bugfix for testing whether a package has a source tarball.
849 Reported by Matt (matt@usa.net).
850 * geturl.cc(dialog): Rename gw_dialog to local_gw_dialog to avoid programmer
851 confusion and lint errors. Reported by Matt (matt@usa.net).
853 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
855 * argv.cc: New file, converts arguments for -mwindows programs. (Simplified derivation
858 * Makefile,in: Add argv.o and mingw_getopt.o to setup.exe object list.
859 Add mingw_getopt.o build rule.
860 * main.cc(WinMain): Initialise argv and argc for use by getopt.
862 2001-10-27 Christopher Faylor <cgf@redhat.com>
864 * res.rc: Rearrange info on top line slightly.
866 2001-10-27 Christopher Faylor <cgf@redhat.com>
868 * desktop.cc (make_passwd_group): Move file creation earlier in the
869 process to ensure that passwd-grp.bat reflects desired operation.
871 2001-27-10 Trevor Forbes <t4bs@hotmail.com>
873 * postinstall.cc (each): Remove "*.done" file else rename will fail.
875 2001-10-16 Christopher Faylor <cgf@redhat.com>
877 * res.rc: Oops. Take 640x480 screen size into account.
879 2001-10-16 Christopher Faylor <cgf@redhat.com>
881 * res.rc: Enlarge chooser screen.
883 2001-10-12 Christopher Faylor <cgf@redhat.com>
885 * Makefile.in: Accomodate changes to w32api_include macro.
887 2001-10-12 Christopher Faylor <cgf@redhat.com>
889 * Makefile.in: Use correct flags for windres.
891 2001-10-12 Christopher Faylor <cgf@redhat.com>
893 * Makefile.in (CFLAGS): Remove -nostdinc from CFLAGS.
895 2001-10-12 Christopher Faylor <cgf@redhat.com>
897 * choose.cc (pick_line::paint): Reorganize after botched patch.
899 2001-10-12 Christopher Faylor <cgf@redhat.com>
901 * choose.cc (pick_line::paint): Add missing declaration.
903 2001-10-10 Ralf Habacker <Ralf.Habacker@freenet.de>
905 * choose.cc (pick_line::paint): Add package name to sdesc for display.
907 Wed Sep 26 21:39:00 Robert Collins rbtcollins@hotmail.com
909 * choose.cc (_view::insert_pkg): Correctly exit loop.
910 * iniparse.y (register_category): Always insert new categories.
912 Fri Sep 21 13:56:32 2001 Christopher Faylor <cgf@cygnus.com>
914 * inilex.l (yylex): For comments, eat all characters up to, but not
917 Sun Aug 26 12:50:01 2001 John Marshall <jmarshall@acm.org>
919 * fromcwd.cc (found_file): Use correct package name when adding an
920 unknown package rather than random stack garbage.
922 Sun Aug 12 14:25:21 2001 Christopher Faylor <cgf@cygnus.com>
924 * desktop.cc (make_passwd_group): .bat files need \r\n endings.
926 Wed Aug 8 13:53:47 2001 Christopher Faylor <cgf@cygnus.com>
928 * desktop.cc (etc_profile): Leave environment variables untouched.
930 2001-08-07 Corinna Vinschen <corinna@vinschen.de>
932 * autoload.c: Add dynamic load statements for NT/W2K
933 advapi32 functions not available in 9x/ME.
934 * main.cc (set_default_dacl): New function.
935 (WinMain): Call `set_default_dacl' if running on NT/W2K.
937 Sat Aug 4 21:35:53 2001 Christopher Faylor <cgf@cygnus.com>
939 * ini.h (_CategoryPackage): Change pkg field to pkgname for
941 * choose.cc: Use pkgname field when referencing _CategoryPackage
943 (fill_missing_category): Don't add excluded packages.
944 (default_trust): Ditto.
945 (_view::insert_pkg): Ditto.
946 * iniparse.y (register_category): Use consistent variable name.
948 2001-07-09 Egor Duda <deo@logos-m.ru>
950 * choose.cc: Use system foreground color for text output.
952 Sat Jul 7 00:40:28 2001 Christopher Faylor <cgf@cygnus.com>
954 * choose.cc (set_action): Use default trust for determining reinstall
956 (default_trust): Set default trust.
957 (pick_line::paint): Allow source selection when reinstalling or
960 Fri Jul 6 18:08:49 2001 Christopher Faylor <cgf@cygnus.com>
962 * choose.cc (isinstalled): Modify to properly accomodate special case
964 (set_action): Check downloaded components, not installed components if
966 (set_existence): Always include full list of files when "download
969 Fri Jul 6 00:37:05 2001 Christopher Faylor <cgf@cygnus.com>
971 * choose.cc (pick_line::paint): Properly display "na" field when no
974 Thu Jul 5 00:34:23 2001 Christopher Faylor <cgf@cygnus.com>
976 * choose.cc (scan2): Ensure that older versions do not show up in
979 Mon Jul 2 15:47:59 2001 Christopher Faylor <cgf@cygnus.com>
981 * choose.cc (set_action): Allow "Skip" action if trust != installed.
982 * res.rc: Fix copyright.
984 Sat Jun 30 14:05:21 2001 Michael A Chase <mchase@ix.netcom.com>
986 * res.rc (IDD_LOCAL_DIR): Change caption to match the other dialog
988 (IDD_CHOOSE): Adjust horizontal size so package names are visible.
990 * choose.cc: Restore some more changes from 2001-06-25, throughout.
991 (paint): Wrap some excessively long lines.
992 (pick_line::paint): Ditto. Move the arrow in the "Current" column
993 right to where it belongs. Move the source checkbox slightly to the
995 (do_choose): List categories and required packages in setup.log.full.
997 Sat Jun 30 23:04:59 2001 Christopher Faylor <cgf@cygnus.com>
999 * choose.cc (scan2): Restore source scanning eliminated by previous checkin.
1001 Sat Jun 30 15:18:33 2001 Christopher Faylor <cgf@cygnus.com>
1003 * ini.h (struct _Info): Add "derived" element.
1004 * choose.cc (scan2): Try to place unknown tar files into proper slot
1005 when package exists in setup.ini but tar file does not.
1007 Sat Jun 30 13:39:00 2001 Robert Collins <rbtcollins@hotmail.com>
1009 * choose.cc (create_listview): Call set_view_mode with VIEW_CATEGORY.
1010 (do_choose): Log the first category name.
1012 Fri Jun 29 23:07:44 2001 Christopher Faylor <cgf@cygnus.com>
1014 *ini.h: Reapply 2001-06-25 changes.
1015 * choose.cc (add_required): Ditto. Default to "Keep" state if
1016 UNINSTALL and product is installed. Default to curr state if SKIP,
1018 (keep_or_skip): New function. Returns skip or keep state depending on
1019 installed state of package.
1020 (default_trust): Use keep_or_skip to set state.
1021 (_view::insert_pkg): Use calloc to allocate lines.
1022 (set_view_mode): Adapt 2001-06-25 change to set_full_list here.
1024 Sat Jun 30 11:01:00 2001 Robert Collins <rbtcollins@hotmail.com>
1026 * choose.cc: Remove globals full_list, headers, package_indexes and
1028 Add globals cat_headers, pkg_headers and chooser.
1029 (add_required): New function.
1030 (paint): Use the chooser for header details.
1031 Call into the chooser to paint each line.
1032 (list_click): Use new global variables.
1033 Call into the chooser to handle the click.
1034 Repaint the entire view if packages have been added or removed.
1035 (note_width): Get passed a headers struct rather than using a global
1037 (fill_missing_category): New function.
1038 (default_trust): Skip non-"Required" or "Misc" packages.
1039 (pick_line::set_line (Package *)): New function.
1040 (pick_line::set_line (Category *)): New function.
1041 (pick_line::paint): New function.
1042 (pick_line::click): New function.
1043 (_view::_view): New function.
1044 (_view::set_view_mode): New function.
1045 (_view::mode_caption): New function.
1046 (_view::set_headers): New function.
1047 (_view::init_header): New function.
1048 (_view::insert_pkg): New function.
1049 (_view::insert_category): New function.
1050 (_view::insert_at): New function.
1051 (_view::insert_under): New function.
1052 (_view::clear_view): New function.
1053 (viewsplusplus): New function.
1054 (_view::client): New function.
1055 (set_view_mode): Use new chooser functionality.
1056 (set_full_list): Use new global variables.
1057 (create_listview): Instantiate chooser.
1058 Remove all hardcoded headers[] code.
1059 (dialog_cmd): On trust changes, check dependencies.
1060 (getcategorybyname): New function.
1061 (getpackagecategorybyname): New function.
1062 (scan2): Use case-insensitive package comparison.
1063 (do_choose): Use fill_missing_category ().
1064 Show some category data.
1065 * ini.h: Protect against multiple inclusion.
1067 (_CategoryPackage): New struct.
1068 (_Category): New struct.
1069 (_Package): Change category to Category * from char *.
1070 (extern Category category): New global variable.
1071 (extern in ncategories): Ditto.
1072 (getcategorybyname): New prototype.
1073 (catpackagecategorybyname): New prototype.
1074 (register_category): New prototype.
1075 (add_category): New prototype.
1076 * iniparse.y: Parse multiple categories per package.
1077 (category): New global variable.
1078 (ncategories): New global variable.
1079 (new_package): Compare package against NULL, not 0.
1080 (new_requirement): Source formatting fix.
1081 (register_category): New function.
1082 (add_category): New function.
1083 * res.rc: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
1084 IDC_CHOOSE_VIEWCAPTION: New control.
1085 * resource.h: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
1086 IDC_CHOOSE_VIEWCAPTION: New control.
1087 Increment _APS_NEXT_CONTROL_VALUE.
1089 Mon Jun 25 00:56:37 2001 Michael A Chase <mchase@ix.netcom.com>
1091 * choose.cc (paint): Wrap excessively long lines.
1092 (list_click): Ditto.
1093 (create_listview): Ditto.
1094 (do_choose): Ditto. Replace TABs and remove CRs in lines written to
1095 setup.log.full. Allow "Yes" for source exists in setup.log.full when
1096 installing from local directories.
1098 Mon Jun 25 00:56:37 2001 Christopher Faylor <cgf@cygnus.com>
1100 * choose.cc (set_action): Only clear srcpicked when moving to next
1101 state. Allow source installation if it exists in the current "trust"
1102 state. Don't move to skip state when package is installed.
1103 (list_click): Don't allow source clicking when no source is available.
1104 (set_full_list): Display package when not is_full_action.
1105 * ini.h (is_full_action): Define.
1107 Sun Jun 17 12:06:14 2001 Christopher Faylor <cgf@cygnus.com>
1109 * install.cc (check_for_old_cygwin): New function. First stab at
1110 checking for old cygwin versions.
1111 (do_install): Call check_for_old_cygwin if there were no errors during
1114 Sat Jun 16 11:33:51 2001 Michael A Chase <mchase@ix.netcom.com>
1116 * choose.cc (_Info::_Info): Test _source paramenter for non-NULL rather
1117 than zeroed "source" element.
1119 Fri Jun 15 20:54:43 2001 Christopher Faylor <cgf@cygnus.com>
1121 * choose.cc (scan2): Insert unknown tar archives, found on disk, into
1122 the highest available "hole" in the trust array.
1124 Fri Jun 15 00:20:48 2001 Christopher Faylor <cgf@cygnus.com>
1126 * choose.cc (set_existence): Use pointer method for indexing in trust
1128 (create_listview): Ditto.
1129 (scan2): Ditto. Also, use consistent variable name for indexing into
1131 * ini.h (Package): Reorganize info array for easier scanning.
1133 Fri Jun 15 00:01:51 2001 Christopher Faylor <cgf@cygnus.com>
1135 * choose.cc (isinstalled): Eliminate special download only test.
1136 (set_action): Don't move to next state if in ACTION_SAME range and not
1138 (choose_caption): Display "Retrieve" rather than "Reinstall" when just
1140 (do_choose): Sort packages after all packages have been read.
1141 Accomodate the fact that first element in trust array is empty so that
1142 log files don't report the wrong trust value.
1143 * iniparse.y (new_package): Malloc space for package name or suffer
1146 Thu Jun 14 22:43:59 2001 Robert Collins <rbtcollins@hotmail.com>
1148 * ini.h (Dependency): New structure. Declare new function.
1149 * inilex.l (yylex): Detect new setup.ini options - category and requires.
1150 * iniparse.y: Declare new setup.ini token values.
1151 (yyparse): Parse new token values.
1152 (new_requirement): New function.
1154 Thu Jun 14 22:43:26 2001 Christopher Faylor <cgf@cygnus.com>
1156 * choose.cc (read_installed_db): Eliminate obsolete code.
1158 Thu Jun 14 22:11:53 2001 Christopher Faylor <cgf@cygnus.com>
1160 * choose.cc (set_action): Set trust on "redo".
1161 (_Info::_Info): New constructor.
1162 (read_installed_db): Use new constructor. Use trusts type for
1164 * ini.h (struct _Info): Label struct, add constructor.
1165 (Package): Make installed_ix a type 'trusts.'
1166 * install.cc (uninstall_one): Unset any installed info for current
1168 (install_one): Allocate new Info struct for installed reflecting new
1170 (do_install): Don't output line to installed.db if package is being
1173 Thu Jun 14 20:33:01 2001 Robert Collins <rbtcollins@hotmail.com>
1175 * choose.cc (getpkgbyname): Use consistent method for scanning package
1178 Wed Jun 13 23:33:08 2001 Christopher Faylor <cgf@cygnus.com>
1180 * choose.cc: Add some comments.
1181 (getpkgbyname): Use strcasecmp for comparisons.
1183 Wed Jun 13 16:07:00 2001 Christopher Faylor <cgf@cygnus.com>
1185 * install.cc (do_install): Avoid checking for download action if
1186 package wasn't currently retrieved.
1188 Wed Jun 13 11:27:22 2001 Christopher Faylor <cgf@cygnus.com>
1190 * choose.cc: Eliminate extra array throughout. Use element in package
1191 structure instead. Use pointers rather than array indexes where
1193 (set_action): New function to set next action based on current.
1194 (choose_caption): New function. Returns display caption.
1195 (check_existence): Change arguments. Use pointer to 'info' structure.
1196 (set_existence): Use pointer rather than array index.
1197 (default_trust): Use trusts enum for second argument.
1198 (set_full_list): Honor exclude element in package structure.
1199 (build_labels): Eliminate.
1200 (base): Make global. Use const char * argument.
1201 (get_package_version): Eliminate.
1202 (getpkgbyname): New function.
1203 (read_installed_db): Use parse_filename to get version info.
1204 * desktop.cc (make_passwd_group): Use getpkgbyname function.
1205 * download.cc (get_file_size): const argument.
1206 (do_download): Use is_download_action to determine when something
1207 should be downloaded.
1208 * filemanip.h: Add some functions.
1209 * ini.cc (do_ini): Use NULL rather than 0 for pointer assignment.
1210 * ini.h: Use enums for actions and trusts.
1211 (is_download_action): New macro.
1212 (is_upgrade_action): Ditto.
1213 (is_uninstall_action): Ditto.
1214 (struct Package): Add new fields.
1215 * inilex.l (yylex): Detect new setup.ini options.
1216 * iniparse.y: Declare new tokens.
1217 (yyparse): Detect exclude keyword. Fill out version field even if
1219 (new_package): Use greater granularity when allocating package array to
1220 avoid repeated calls to realloc.
1221 * install.cc (exists): const argument.
1222 (uninstall_one): Take pkg argument.
1223 (install_one): Ditto. Eliminate unneeded arguments which can be
1224 derived from package info.
1225 (do_install): Iterate over package array using a pointer. Use
1226 is_download_action to control when package should be downloaded.
1227 * tar.cc (tar_open): const argument.
1228 * tar.h: Refloect const argument.
1230 2001-05-31 Michael Chase mchase@ix.netcom.com
1232 * main.cc (WinMain): Add setup version to starting setup.log entry
1234 Tue May 29 21:37:58 2001 Yukihiko Sohda <sohda@is.titech.ac.jp>
1236 * inilex.l: Add + to list of valid string characters.
1238 Mon May 28 20:54:50 2001 Christopher Faylor <cgf@cygnus.com>
1240 * Makefile.in: Remove more stuff in the clean target.
1242 Mon May 28 18:24:59 2001 Christopher Faylor <cgf@cygnus.com>
1244 * Makefile.in: Correctly generate iniparse.h.
1246 Tue Mar 6 19:14:00 2001 Corinna Vinschen <corinna@vinschen.de>
1248 * geturl.cc (get_url_to_file): Add parameter `allow_ftp_auth'.
1249 * geturl.h: Change declaration of `get_url_to_file' accordingly.
1250 * netio.cc (NetIO::NetIO): Add parameter `allow_ftp_auth'.
1251 Set member `ftp_auth'.
1252 (NetIO::open): Add parameter `allow_ftp_auth'. Use it in calls
1253 to constructors of derived classes.
1254 (NetIO::get_ftp_auth): New method.
1255 * netio.h: Change class definition accordingly.
1256 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Add parameter `allow_ftp_auth'.
1257 Take global variables `net_ftp_user' and `net_ftp_passwd' into account.
1258 Add code for ftp authentication retry.
1259 * nio-ftp.h: Change class definition accordingly.
1260 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Add parameter `allow_ftp_auth'.
1261 Add code for ftp authentication retry in case of proxy connection.
1262 * nio-http.h: Change class definition accordingly.
1263 * res.rc: Add FTP authentication dialog.
1264 * resource.h: Add new constants used in res.rc.
1265 * state.h: Add variables `net_ftp_user' and `net_ftp_passwd'.
1267 Sun May 27 17:12:23 2001 Christopher Faylor <cgf@cygnus.com>
1269 * res.rc (IDD_SPLASH): Add a copyright year.
1271 Sun May 27 15:42:18 2001 Christopher Faylor <cgf@cygnus.com>
1273 * Makefile.in: Make iniparse.y produce a c++ file.
1274 * choose.cc (set_existence): Revert 2001-05-27 change.
1275 * ini.cc: Remove "C" from declaration of yyparse.
1276 * iniparse.y (yyparse): Fill out version field by default when a binary
1277 install is detected and no version has been set yet.
1278 * install.cc (do_install): Mount things earlier so that we can use
1279 proper mount table settings. Don't remove mounts since they are now
1281 * mount.cc (create_mount): Reread the mount table after establishing a
1283 (read_mounts): Explicitly clear root_here to allow multiple uses of
1284 this function. Ensure that there is no garbage in the table when we've
1285 exhausted all of the mounts in the registry.
1286 (cygpath): Accomodate ./ in path.
1288 Sun May 27 02:59:07 2001 Christopher Faylor <cgf@cygnus.com>
1290 Use parse_filename method to parse filenames throughout. Use
1291 get_root_dir to retrieve the current root directory throughout. Set
1292 const in argument list, where appropriate, throughout.
1293 * choose.cc (set_existence): Detect case of uninstalled package with no
1295 (parse_filename): New function.
1296 * filemanip.h (fileparse): New structure.
1297 * mount.cc (read_mounts): Remember where we found the root mount.
1298 (set_root_dir): New function.
1299 (get_root_dir): Ditto.
1300 * mount.h: Declare new functions.
1301 * site.cc (get_root_dir_now): Renamed from get_root_dir.
1302 (save_site_url): Use new function name.
1303 (get_initial_list_idx): Ditto.
1305 Sat May 26 21:23:59 2001 Christopher Faylor <cgf@cygnus.com>
1307 * choose.cc: Use a constant throughout to deal with chooser icon
1309 * res.rc (IDD_CHOOSE): Increase size of chooser box.
1311 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
1313 * choose.cc (do_choose): Fix incorrect assignment of trust setting to
1314 use when Redownload or Sources Only selected.
1316 Thu May 10 22:35:59 2001 Christopher Faylor <cgf@cygnus.com>
1318 Reformat file after botched patch formatting.
1319 * choose.cc (which_trust): Eliminate variable.
1320 (default_trust): Don't set which_trust.
1321 (do_choose): Use selected trust when reinstalling or installing source.
1323 Thu May 10 21:04:18 2001 Christopher Faylor <cgf@cygnus.com>
1325 Change concat to cygpath throughout.
1326 Change map_filename to cygpath throughout.
1327 * concat.cc (vconcat): New function.
1328 (concat): Use vconcat.
1329 * concat.h: Reflect above.
1330 * install.cc (map_filename): Eliminate.
1331 (install_one): Free dest_file.
1332 * mount.cc (find2): Expect input key to be pointing to mount record.
1333 (in_table): New function.
1334 (is_admin): Move from root.cc.
1335 (read_mounts): New function.
1336 (path_prefix_p): New function.
1337 (cygpath): New function.
1338 * mount.h: Define new functions and structure.
1339 * root.cc (in_table): Move to mount.cc.
1340 (do_root): Call read_mounts to initialize root stuff and mount table.
1341 * site.cc (get_root_dir): Ditto.
1343 2001-05-09 Matt Hargett <matt@use.net>
1345 * Makefile.in: Remove *.rc from clean.
1347 Tue May 8 23:33:38 2001 Christopher Faylor <cgf@cygnus.com>
1349 * choose.cc (scan2): Fix incorrect setting of TRUST_CURR rather than
1350 TRUST_PREV which produced "0" versions.
1352 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
1354 * resource.h: Add new field IDC_CHOOSE_INST_TEXT. Modify
1355 _APS_NEXT_CONTROL_VALUE to account for addition of
1356 IDC_CHOOSE_INST_TEXT.
1357 * res.rc (IDD_CHOOSE): Modify choose dialog to use new field
1358 IDC_CHOOSE_INST_TEXT for screen text. Modify choose Dialog to allow
1359 hot keys to select Prev, Curr, Exp.
1360 * ini.h: Add new actions for ACTION_REDO and ACTION_SRC_ONLY. Modify
1361 define for LOOP_PACKAGES to include new actions ACTION_REDO and
1363 * choose.cc: Add new Trusts for TRUST_REDO and TRUST_SRC_ONLY.
1364 (paint): Modify to check TRUST_SRC_ONLY when determining Bitmap for
1365 source Checkbox to use.
1366 (build_labels): Add logic to allow for selection of Source only
1367 Download/ReDownload/Install/Reinstall and also to Redownload/Reinstall
1368 current version binary.
1369 (dialog_proc): Add conditional display for file selection prompt based
1370 on download vs install using IDC_CHOOSE_INST_TEXT.
1371 (do_choose): Add new logic for TRUST_REDO and TRUST_SRC_ONLY selection
1372 and modify logic for TRUST_UNINSTALL, TRUST_KEEP, and TRUST_NONE to
1373 handle the instance where Source Download/Install was selected. Modify
1374 log file to store appropriate information regarding Action selected and
1375 the new actions that were added (I.E.: ACTION_REDO and
1377 * download.cc: Add include for <unistd.h> and "port.h".
1378 (download_one): Modify parameter list to include the selected action
1379 for the file to be downloaded. Modify size check against expected size
1380 to include check for ACTION_REDO and ACTION_SRC_ONLY. Modify rename of
1381 .tmp file to also remove the destination file if exists due to ability
1382 to redownload source and binary now.
1383 (do_download): Modify to also use ACTION_REDO and ACTION_SRC_ONLY in
1384 calculation of Download Bytes. Modify to also use ACTION_REDO and
1385 ACTION_SRC_ONLY in determining files selected for download.
1386 * install.cc (uninstall_one): Add check to treat a Reinstall like an
1387 upgrade so current version will be uninstalled prior to reinstall.
1388 (do_install): Add logic to handle ACTION_REDO and ACTION_SRC_ONLY for
1389 uninstalling and installing binary and source packages.
1390 * desktop.cc (make_passwd_group): Modify logic to account for a Source
1391 only cygwin install when checking for cygwin to determine need for
1392 mkpasswd and mkgroup.
1394 Mon May 7 23:33:30 2001 Matt Hargett <matt@use.net>
1396 * winsup/cinstall/res.rc: Added accelerators and improved focus order.
1397 Removed WS_DISABLED from "OK" buttons to accomodate default focus
1398 changes in net.cc and source.cc.
1399 * winsup/cinstall/net.cc (dialog_proc): If no radio button is selected,
1400 a default is selected.
1401 * winsup/cinstall/source.cc (dialog_proc): Ditto.
1402 (check_if_enable_next): Removed. No longer needed since a radio button
1403 will always be selected.
1404 (load_dialog): Removed call to check_if_enable_next.
1405 (dialog_cmd): Ditto. Also added default to switch.
1407 Tue Apr 24 23:42:02 2001 Christopher Faylor <cgf@cygnus.com>
1409 * res.rc: Resize affected text.
1411 Tue Apr 24 23:35:31 2001 Christopher Faylor <cgf@cygnus.com>
1413 * net.cc (do_net): Default to direct download.
1414 * res.rc: Move default selections to the top.
1416 2001-04-18 Earnie Boyd <earnie@users.sourceforge.net>
1418 * win32.h: Remove the definitions for _UNION_NAME and _STRUCT_NAME.
1419 Must now include <windows.h> and not the pieces.
1420 * choose.cc (create_listview): Clean up type mismatch problems.
1421 * dialog.h (NEXT(id)): Ditto.
1422 * geturl.cc (dialog): Ditto.
1423 * install.cc (dialog): Ditto.
1424 * splash.cc (load_dialog): Ditto.
1426 Wed Apr 18 18:59:21 2001 Christopher Faylor <cgf@cygnus.com>
1428 * tar.cc (class gzbz): Define dummy virtual functions.
1430 Wed Apr 18 16:01:21 2001 Christopher Faylor <cgf@cygnus.com>
1432 * Makefile.in: Add bz2 include/library support.
1433 * filemanip.h: New file.
1434 * choose.cc (find_tar_ext): New function. Returns TRUE if .tar.gz or
1436 (scan2): Reorganize to use find_tar_ext, accomodating .bz2 extension.
1437 (read_installed_db): Ditto.
1439 * fromcwd.cc (found_file): Ditto.
1440 (do_fromcwd): Ditto.
1441 * tar.cc (class gzbz): New super class for uncompression support.
1442 (gz): New class for gzip support.
1443 (bz): New class for bzip2 support.
1444 (tar_open): Use gzbz class to control file opening.
1445 (tar_ftell): Ditto for returning position in file.
1446 (skip_file): Ditto for reading file.
1447 (tar_next_file): Ditto.
1448 (tar_read_file): Ditto.
1449 (tar_close): Ditto for close.
1451 * zlib/configure.in: Force NM substitution.
1453 * source.cc (do_source): Default to "Install from Internet".
1455 2001-03-16 Brian Keener <bkeener@thesoftwaresource.com>
1457 * nio-file.cc (NetIO_File::NetIO_File): Use `get_file_size' instead of
1459 * choose.cc (list_click): Correct inability to select source code for
1461 (scan2): Modify to skip source tarballs when scanning disk for
1462 installable packages.
1464 2001-03-10 Chris Abbey <chris_abbey@yahoo.com>
1466 * install.cc: install sources into /usr/src instead
1467 of /, also include the sizes of source tarballs
1469 * download.cc: include sizes of source tarballs in
1470 total_download_bytes.
1472 Tue Mar 6 19:31:00 2000 Corinna Vinschen <corinna@vinschen.com>
1474 * download.cc (get_file_size): Remove `static'.
1476 Tue Mar 6 19:11:00 2000 Corinna Vinschen <corinna@vinschen.com>
1478 * tar.cc (tar_open): Use `get_file_size' instead of `stat'.
1480 2001-03-06 Brian Keener <bkeener@thesoftwaresource.com>
1482 * choose.cc (paint): Modify message for nothing to download vs
1483 nothing to install/update based on installation method.
1484 (list_click): Modify to skip versions in selection process if
1485 installing from local directory and installation file does not exist.
1486 Also leaves Source Action set to N/A if the source file does not exist
1487 and installing from local directory.
1488 (check_existence): New method to check current existence of installation
1489 files based on selected installation method.
1490 (set_existence): New method to set the current existence of installation
1491 files based on selected installation method.
1492 (best_trust): Modify decision process for best trust to base decision on
1493 current trust selected (IE: Prev, Curr, or Test), existence of file and
1494 installation method selected.
1495 (default_trust): Add logic to capture the current trust level and the
1496 trust selected for the given package.
1497 (set_full_list): Expand decision criteria for displaying a package in
1498 the selection list to include file existence/non-existence and selected
1499 installation method.
1500 (build_labels): Modify criteria for label addition to include
1501 installation method and file existence/non-existence.
1502 (create_listview): Modify to establish package trust level for each
1503 package before setting up the display list. Also modification to set
1504 current trust button as the default.
1505 (dialog_cmd): Set response for Prev, Curr, Test button push to perform
1506 a reset of the selection list in addition to setting the default trust.
1507 (get_package_version): New method to provide reusable code for
1508 determining the package version from the file name for a specified
1510 (scan2): Modify to use new method get_package_version and
1511 also enhance handling of the build for the structures package and
1513 (read_installed_db): Modify to use the new method
1514 get_package_version and also enhance handling of the build for the
1515 structures package and extra.
1516 (do_choose): Add additional initialization of package and extra
1517 structures. Modify to use read_installed_db all the time despite
1518 install method. Modify output to setup.log.full log file to increase
1519 readability by adding additional spacing, expanded code and available
1521 * ini.h: Add new fields install_exists, source_exists and
1522 partial_list_display to the structure definition for package.
1523 * res.rc (IDD_CHOOSE): Modify choose dialog Prev, Curr, and Test
1524 pushbuttons by replacing with Radio Buttons thus allowing the
1525 operator to better determine which is selected.
1527 2001-02-20 Brian Keener <bkeener@thesoftwaresource.com>
1529 * download.cc (do_download): Add new variables total_download_bytes and
1530 total_download_bytes_sofar for download progress meter. Add loop
1531 to accumulate the total bytes to download from the selected packages.
1532 * geturl.cc: Add state.h and diskfull.h to include list. Add new
1533 variables gw_iprogress, gw_pprogress, gw_progress_text,
1534 gw_pprogress_text, and gw_iprogress_text to allow for addition of
1535 total packages download progress meter and disk full percent
1536 progress meter. Add variables total_download_bytes and
1537 total_download_bytes_sofar for use by progress meters.
1538 (dialog_proc): Add new variables gw_iprogress, gw_pprogress,
1539 gw_progress_text, gw_pprogress_text, and gw_iprogress_text to
1540 allow for addition of total packages download progress meter and disk
1541 full percent progress meter.
1542 (init_dialog): Ditto.
1544 (get_url_to_file): Ditto.
1545 * geturl.h: Add external definition for total_download_bytes and
1546 total_download_bytes_sofar.
1547 * res.rc: Add two additional progress meters (IDC_DLS_IPROGRESS)
1548 and (IDC_DLS_PPROGRESS) and three text objects (IDC_DLS_PROGRESS_TEXT)
1549 and (IDC_DLS_IPROGRESS_TEXT, IDC_DLS_PPROGRESS_TEXT) for use in the
1551 * resource.h: Add new fields for progress meters and text and update
1552 _APS_NEXT_CONTROL_VALUE.
1554 Wed Feb 21 13:05:00 2000 Corinna Vinschen <vinschen@redhat.com>
1556 * download.cc (get_file_size): Check for INVALID_HANDLE_VALUE instead
1559 Wed Feb 21 11:21:00 2000 Corinna Vinschen <vinschen@redhat.com>
1561 * download.cc (download_one): Add missing parenthesis.
1563 Mon Feb 19 18:59:00 2000 Corinna Vinschen <vinschen@redhat.com>
1565 * download.cc (get_file_size): New function. Eliminates the need
1567 (download_one): Call `get_file_size' instead of `stat'. This
1568 workarounds a problem with mingw's `stat' call.
1570 2001-02-07 Earnie Boyd <earnie@users.sourceforge.net>
1572 * Makefile.in: (%.o: %.rc): Specify --include-dir $(w32api_include).
1573 This is to allow cinstall to build with 2.95.2-7 and to make the
1574 use of headers consistent.
1576 2000-12-26 Earnie Boyd <earnie_boyd@yahoo.com>
1578 * Makefile.in (autoload.o): Add target to specify -fno-inline-functions
1580 Tue Dec 26 03:46:00 2000 Matt Hargett <matt@use.net>
1582 * winsup/cinstall/res.rc: Added accelerators and improved focus
1585 2000-12-10 Egor Duda <deo@logos-m.ru>
1587 * choose.cc (paint): Use system background color for text output.
1589 Sun Dec 10 19:05:25 2000 Christopher Faylor <cgf@cygnus.com>
1591 * Makefile.in: Use CXX for linking and for compiling .cc files.
1592 * configure.in: Find correct c++ compiler.
1593 * configure: Regenerate.
1595 2000-11-17 DJ Delorie <dj@redhat.com>
1597 * splash.cc (load_dialog): Make message more obvious.
1600 Fri Nov 17 17:15:21 2000 Christopher Faylor <cgf@cygnus.com>
1602 * Makefile.in: Use g++ to link so that libstdc++.a gets used. This is
1603 necessary for newer compilers.
1605 Wed Nov 9 2:19:00 2000 Corinna Vinschen <vinschen@redhat.com>
1607 * desktop.cc: Include "ini.h" and "version.h".
1608 (make_passwd_group): Skip the function on 9x/ME boxes when an
1609 older version of Cygwin has been installed which doesn't
1610 support mkpasswd/mkgroup on 9x/ME.
1611 * install.cc: Move the `LOOP_PACKAGES' and `pi' macros to...
1614 Wed Nov 8 17:10:00 2000 Corinna Vinschen <vinschen@redhat.com>
1616 * desktop.cc (make_passwd_group): Don't exit when started
1617 on 9x/ME since mkpasswd/mkgroup are usable on 9x/ME now.
1619 Sun Nov 5 12:51:42 2000 Jason Tishler <jt@dothill.com>
1621 * install.cc (do_install): Add call to set_cygdrive_flags to sync
1623 * mount.cc (set_cygdrive_flags): New function.
1624 (get_cygdrive_flags): Ditto.
1625 (default_cygdrive): Ditto.
1626 (set_cygdrive_flags): Ditto.
1627 * mount.h: Add prototype for set_cygdrive_flags.
1629 2000-10-23 DJ Delorie <dj@redhat.com>
1631 * ini.h: add source actions
1632 * fromcwd.cc: check for available sources
1633 * res.rc: add checkbox bitmaps
1636 * choose.cc: add source column
1637 * download.cc: download sources if called for
1638 * install.cc: [un]install sources too
1640 2000-10-22 DJ Delorie <dj@redhat.com>
1642 * choose.cc (build_labels): Don't skip TRUST_PREV completely; only
1643 ignore it wrt full_list if there's already a version installed.
1644 (do_choose): Sort the list.
1645 (package_sort): New.
1647 2000-10-12 DJ Delorie <dj@redhat.com>
1649 * res.rc: Add more error strings.
1650 * resource.h: Ditto.
1651 * iniparse.y (new_package): re-initialize if needed.
1652 * download.cc (do_download): Keep track of errors; notify and
1654 * install.cc (do_install): Ditto.
1656 2000-10-05 DJ Delorie <dj@redhat.com>
1658 * Makefile.in: fix %.cc rule
1660 2000-10-04 DJ Delorie <dj@redhat.com>
1662 * desktop.cc: quote HOME and USER, don't . ./.profile
1664 * choose.cc (build_labels): don't include in partial list just
1665 because there's a *previous* version available.
1667 * install.cc (do_install): if installing from local directory with
1668 setup.ini and the file isn't found, look in "." also. Note errors.
1670 2000-10-02 DJ Delorie <dj@redhat.com>
1672 * ini.cc (do_ini): save setup.ini locally
1674 2000-10-02 Chris Abbey <cabbey@bresnanlink.net>
1676 * desktop.cc: quote escapes in prompt
1678 2000-10-02 Jason Tishler <jt@dothill.com>
1680 * root.cc (is_admin): New function.
1681 (read_mount_table): Check for administrative priviledges and set
1682 installation scope as appropriate.
1684 2000-09-28 DJ Delorie <dj@redhat.com>
1686 * nio-ftp.cc (ftp_line): handle continuations more robustly
1688 2000-09-14 Brian Keener <bkeener@thesoftwaresource.com>
1690 * res.rc: increased the size of the site dialog (IDD_SITE) & the
1691 corresponding list box to provide for more URL's to be listed.
1692 Modified the position of the Back, Next and Cancel buttons to
1693 correspond to the new size of the dialog.
1695 2000-09-13 DJ Delorie <dj@redhat.com>
1697 * install.cc (do_install): update disk fullness once per package
1698 to improve performance
1700 * choose.cc (create_listview): call ReleaseDC
1702 Mon Sep 11 22:40 2000 Harold L Hunt II <harold@compasstechnologies.com>
1704 * mkdir.cc: Create directories when ERROR_FILE_NOT_FOUND is
1705 returned, as it seems Samba 2.0.6+ returns this instead of
1706 ERROR_PATH_NOT_FOUND
1708 Mon Sep 11 19:35:24 2000 Christopher Faylor <cgf@cygnus.com>
1710 * site.cc (get_initial_list_idx): Don't default to saved URL if it
1713 2000-09-07 DJ Delorie <dj@redhat.com>
1715 * splash.cc: use version.h, not local decl
1716 * res.rc: add "old version" message
1719 * fromcwd.cc (canonicalize_version): make global
1720 * iniparse.y: add setup-version support, fix bug in blank line
1723 * inilex.l: add [exp] as alias for [test], add setup-version
1724 * Makefile.in (version.c): add setup-version tag
1726 * desktop.cc (do_desktop): remove 1.1 version number
1727 (do_desktop_setup): ditto
1729 * ini.cc (do_ini): zero out package list just in case we redo it.
1731 2000-09-07 Jeffrey Juliano <juliano@cs.unc.edu>
1733 * choose.cc (list_click): Check for nindexes==0; if so, return.
1735 2000-09-06 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
1737 * localdir.cc: new, local package directory selection dialog; cd
1738 into selected directory
1739 * Makefile.in (OBJS): add localdir.o
1740 * dialog.h: add prototype for do_local_dir
1741 * main.cc (WinMain): initialize local_dir to cwd; add call to
1743 * net.cc (dialog_cmd): make DO_LOCAL_DIR next dialog
1744 * source.cc (dialog_cmd): ditto
1745 * res.rc: add DO_LOCAL_DIR dialog; remove "current directory" from
1746 presented choices in IDD_SOURCE; add IDS_ERR_CHDIR error string
1747 * resource.h: defines for DO_LOCAL_DIR dialog; define IDS_ERR_CHDIR
1748 * root.cc (dialog_cmd): make DO_LOCAL_DIR previous dialog
1749 * state.h: add local_dir variable
1751 2000-09-06 Brian Keener <bkeener@thesoftwaresource.com>
1753 * desktop.cc: added logic to handle to the new dialog and to
1754 default the setting for the new checkboxes based on whether the
1755 desktop icon or start menu link already exist.
1756 (desktop_icon): correction to desktop directories for desktop icon
1757 creation. Additional logic added for Win95 which does not appear
1758 to have Common Directories so if Common selected and null uses
1760 (start_menu): Additional logic added for Win95 which does not
1761 appear to have Common Directories so if Common selected and null
1762 uses normal directory.
1763 (do_desktop_setup): moved the saving of the icon, creation of the
1764 bat file, profile, passwd, Start Menu link and desktop shortcut to
1765 this method from do_desktop. Made the creation of the desktop
1766 icon and start menu link conditional on settings of new dialog
1767 created for desktop.
1768 * install.cc (do_install): changed next from IDD_S_DESKTOP to
1770 * main.cc (WinMain): changed case IDD_S_DESKTOP to IDD_DESKTOP.
1771 * res.rc: added new resource to create a desktop dialog with 2
1772 checkboxes for creating the desktop icon and start menu link.
1773 * resource.h: changed IDD_S_DESKTOP to IDD_DESKTOP and added two
1774 new controls: IDC_ROOT_MENU and IDC_ROOT_DESKTOP for new dialog.
1775 * state.h: added root_menu and root_desktop for use in dialog.
1777 2000-08-29 DJ Delorie <dj@redhat.com>
1779 * choose.cc (scan_downloaded_files): scan for existing files, so
1780 that the user only sees new downloads.
1782 * nio-ie5.cc (NetIO_IE5): pre-check for wininet.dll, enable dial-up
1783 * site.cc (do_site): if we can't download the mirror list, go back
1784 to the net setup box to choose another transport.
1785 * autoload.c: add more functions
1786 * Makefile.in (ALL_DEP_LDLIBS): remove wininet.a
1787 * resource.h: add WININET message
1789 * net.cc (do_net): no longer default to IE5
1790 * simpsock.h (class SimpleSocket): new, simplify socket operations
1791 * simpsock.cc: ditto
1792 * nio-http.h: new, for direct http protocol
1793 * nio-http.cc: ditto
1794 * nio-ftp.h: new, for direct http protocol
1796 * netio.cc (set_url): move initialization here to handle redirections
1797 (open): add direct http/ftp
1798 * netio.h (NetIO::set_url): new
1800 * log.cc (log_save): create directory for log if needed
1802 * hash.cc, hash.h: new
1803 * Makefile: add hash.o
1804 * choose.cc: enable "uninstall" option
1805 * download.cc: invert action test to accomodate uninstalling
1806 * ini.h: add ACTION_UNINSTALL
1807 * install.cc: add uninstall functionality
1808 * res.rc: make install tag changeable
1809 * resource.h: add uninstall resources
1811 * res.rc: update mirror list URL
1813 2000-08-24 DJ Delorie <dj@redhat.com>
1815 * log.cc, log.h: new files
1816 * Makefile.in (OBJS): add log.o
1817 * tar.cc: use exit_setup instead of exit
1818 * dialog.cc (fatal): use exit_setup instead of ExitProcess
1819 * msg.cc (fatal): ditto
1820 * install.cc (dialog_cmd): ditto
1821 * ini.cc (do_ini): ditto
1822 * main.cc (main): add logging
1823 * source.cc (do_source): ditto
1824 * root.cc (do_source): ditto
1825 * site.cc (do_site): ditto
1826 * other.cc (do_other): ditto
1827 * net.cc (do_net): ditto
1828 * choose.cc (do_choose): ditto
1829 * download.cc (do_download): ditto
1830 * install.cc (do_install): ditto
1831 * msg.cc (fatal): ditto
1833 * res.rc: mark password boxes as *being* password boxes.
1835 * fromcwd.cc (canonicalize_version): use multiple buffers so that multiple
1836 calls won't use the same buffer.
1837 * choose.cc (create_listview): don't default to full list if no changes
1838 (base): return computed value, not temporary :-(
1839 (do_choose): don't use installed.db if we're only downloading.
1841 2000-08-23 DJ Delorie <dj@redhat.com>
1843 * nio-ie5.cc (NetIO_IE5): Fix authentication logic
1844 * nio-ie5.h (flush_io): new
1845 * netio.cc (load_dialog): note when we're initializing the dialog
1846 box, and ignore changes to the edit fields then.
1848 2000-08-21 DJ Delorie <dj@redhat.com>
1852 * fromcwd.cc (found_file): don't remember the canonicalized version
1854 * choose.cc (paint): print "nothing to do" message when list is empty.
1855 (build_labels): Use version "0.0" if no version is available.
1856 (create_listview): default to full list if nothing to install/update.
1857 (base): new, returns basename of file
1858 (read_installed_db): compare base names, not full paths
1860 2000-08-11 DJ Delorie <dj@redhat.com>
1862 * choose.cc: add new chooser dialog
1863 * fromcwd.cc: use IDD_CHOOSE
1864 * ini.cc: use IDD_CHOOSE
1865 * main.cc: use IDD_CHOOSE
1866 * ini.h: cosmetic changes
1867 * res.rc: add choose dialog, bitmaps
1868 * choose-spin.bmp: new
1869 * choose-rtarrow.bmp: new
1870 * resource.h: add choose dialog controls
1872 * mount.cc: remove debug statement
1874 2000-08-08 DJ Delorie <dj@redhat.com>
1876 * Makefile.in (version.c): make version checking more robust
1877 * splash.cc (load_dialog): handle case where there's no version
1879 2000-08-07 DJ Delorie <dj@redhat.com>
1881 * (all): add cvsid tags
1882 * Makefile.in: generate version.c from ChangeLog, add splash.o
1884 * res.rc: add splash screen
1886 2000-08-02 DJ Delorie <dj@redhat.com>
1888 * net.cc: remove proxy password code
1889 * res.rc: remove proxy user/pass from net, add auth dialogs
1890 * netio.cc,h: add sys/proxy auth methods
1891 * nio-ie5: use them, check for http status codes
1892 * state.h: add system authorization
1894 * concat.cc (concat): canonicalize x:// to x:/ (exception to ://
1897 2000-08-02 Norman Vine <nhv@yahoo,com>
1899 * msg.cc (mbox): added MB_TOPMOST to MessageBox type flags
1901 2000-08-01 DJ Delorie <dj@redhat.com>
1903 * postinstall.cc (each): don't rename files we ignore
1904 (do_postinstall): set CYGWINROOT to root_dir, chdir there
1906 * desktop.cc: have /etc/profile call ~/.profile and ~/.bashrc
1908 2000-07-31 DJ Delorie <dj@redhat.com>
1910 * desktop.cc: reverse PATH so /usr/bin precedes /bin
1912 2000-07-18 DJ Delorie <dj@redhat.com>
1914 * autoload.c: new, autoload dlls that might not be available.
1915 * Makefile.in (OBJS): add autoload.o
1917 * res.rc: rewrite root options (text/binary, system/user) to be
1920 * site.cc (get_site_list): trim displayed URL, sort by domain
1922 * net.cc (do_net): make IE5 default to checked, for now
1924 * choose.cc (do_choose): sort packages correctly
1925 * ini.cc (do_ini): handle parse errors more gracefully
1927 (fprintf): line buffer output
1928 (do_ini): if we can't load setup.ini, go back to the site list.
1929 * ini.h: add "unknown" trust level
1930 * inilex.l: absorb unknown trust levels and key/value pairs,
1931 add line number logic
1932 * iniparse.y: handle parse errors more gracefully.
1933 * install.cc: skip packages with no valid install entry
1935 2000-07-17 DJ Delorie <dj@cygnus.com>
1937 * coding standards fixups, many files
1938 * mkdir.cc: warn about deletions *before* deleting them
1940 2000-07-17 Jeff Juliano <juliano@cs.unc.edu>
1942 * res.rc (IDD_OTHER_URL): reorder to give default focus to entry
1944 * other.cc (dialog_cmd): save download site URL
1945 * site.cc (get_root_dir): new
1946 (save_mirror_site): new
1947 (dialog_cmd): save download site URL
1948 (get_site_list): make list big enough to add prev site
1949 (get_initial_list_idx): new, read last-used URL from file and
1950 append it to site_list
1951 (do_site): call get_initial_list_idx
1953 * concat.cc (concat): avoid segfault when first parm is null
1955 2000-07-13 DJ Delorie <dj@cygnus.com>
1957 * postinstall.cc: new
1958 * Makefile.in: add postinstall.o
1959 * concat.h: add backslash ()
1961 * desktop.cc (etc_profile): don't do postinstall
1962 (backslash): moved to concat.cc
1964 (make_postinstall_script): run directly
1965 (do_desktop): chain to do_postinstall
1966 * dialog.h: add exit_msg, do_postinstall
1967 * download.cc: use exit_msg
1969 * main.cc: add postinstall, exit_msg
1970 * resource.h: add postinstall
1971 * README: add more to-do items
1973 2000-07-12 DJ Delorie <dj@cygnus.com>
1975 * desktop.cc: add /etc/postinstall/ support
1976 * install.cc: add more "standard" directories
1978 2000-07-11 DJ Delorie <dj@cygnus.com>
1980 * desktop.cc: create /etc/profile
1981 * desktop.cc: fix include syntax
1982 * Makefile.in: add auto-dependencies
1983 * root.cc: support system vs user
1991 * desktop.cc: make sure we use backslashes, not slashes.
1992 * desktop.cc: don't set PATH in cygwin.bat, create /etc/passwd
1993 * geturl.cc: change math for percentage to avoid overflow
1995 * download.cc: post "download complete" message.
1996 * root.cc: pre-fill in defaults if needed, don't start
1997 browse at root_dir unless it's set.
1998 * desktop.cc: quote $PATH in case it has spaces in it
2000 2000-07-10 DJ Delorie <dj@cygnus.com>
2002 * Makefile.in: add desktop.o and mklink2.o
2003 * dialog.h: add do_desktop
2004 * install.cc: create standard directories, call do_desktop
2005 * res.rc: add cygwin.ico as a file also
2006 * desktop.cc: new, do shortcuts, batch files, and icons
2007 * mklink2.c: new, for COM
2008 * README: update to-do list
2010 2000-07-10 DJ Delorie <dj@cygnus.com>
2012 * ini.cc (do_ini): don't worry about timestamps if we're not
2013 actually installing.
2015 2000-07-09 DJ Delorie <dj@cygnus.com>
2017 * Makefile.in: add -I$(srcdir) for ini.h
2019 2000-07-06 DJ Delorie <dj@cygnus.com>
2021 * Replace everything with a new GUI version
2022 * zlib/gzio.c: add gzctell() for progress displays
2024 2000-06-22 DJ Delorie <dj@cygnus.com>
2026 * setup.c (tarx): re-add call to write_pkg()
2028 2000-06-07 DJ Delorie <dj@cygnus.com>
2030 * cygcalls.c: new, call cygwin1.dll functions directly
2031 * cygcalls.h: header for same
2032 * Makefile.in: add cygcalls.[ch], remove mount/cygpath/umount
2033 exes, fix cinstall.rc dependencies.
2034 * path.c: remove unneeded code
2035 * setup.c: use cygcalls instead of xcreate_process.
2036 uncompress embedded files with zlib
2037 add "-d" for "download only"
2039 postpone mount changes until very end
2040 add download progress indicators
2041 pack multi-column listings more
2042 auto-delete temp files
2043 customize banner message according to options
2044 prompt user for text/binary mounts
2045 add warnings about empty setup directory, root installs, etc
2047 2000-05-24 DJ Delorie <dj@cygnus.com>
2049 * tar.c: New file; built-in tar using zlib.
2050 * tar.h: New file; header for same.
2051 * ctar.c: New file; test program for same.
2052 * Makefile.in: add built-in tar, remove tar.exe and gzip.exe
2053 * path.c (pathcat): convert slashes and canonicalize, instead of aborting
2054 * setup.c (tarx): add support for built-in tar
2055 (main): accept unix-style slashes, check root dir for drive letters,
2056 warn about installing in /, make sure cwd is empty for internet installs,
2057 defer mounts to end of install, support built-in tar.
2059 Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
2061 Fix compiler warnings throughout.
2062 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
2064 * setup.c: Make 'root' global.
2065 (istargz): Return pointer to "stem" of matched .tar.gz file.
2066 (tarx): Special case cygwin-20000301 to == cygwin-1.1.0.tar.gz. Remove
2067 bogus check_for_installed check.
2068 (recurse_dirs): Add preliminary support for .bat file execution.
2069 (create_uninstall): Eliminate unneeded parameter.
2070 (do_start_menu): Ditto.
2072 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
2073 scanning for the version number. Eliminate unneeded argument to
2075 (getdownloadsource): Add 'name' to list of names rather than url.
2076 (main): Eliminate unneeded argument in get_pkg_stuff. Eliminate
2077 unneeded argument in mkmount and do_start_menu.
2079 2000-05-18 DJ Delorie <dj@cygnus.com>
2081 * setup.c (optionprompt): allow multi-column, clean up message
2082 about more options, be more robust about user input.
2083 (getdownloadsource): make the mirror URL a macro.
2084 (main): do mounts after done prompting user.
2086 Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
2088 * setup.c (cleanup): Inverse order of deletion stands a better chance
2089 of deleting cygpath.exe. Still seems to suffer from occasional races,
2091 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
2093 (output_file): Defend against an unlikely handle leak.
2094 (main): Don't set up signal handling until we have something special to
2097 Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
2099 * path.c (kill_cygpath): Delete function.
2100 (exit_cygpath): Make more defensive so that it can be called at any
2102 (cygpath_pipe): Don't set up signal here. Do it in main().
2103 * setup.c (istargz): New function.
2104 (recurse_dirs): Look for *.gz pattern rather than *tar.gz since *tar.gz
2105 inexplicably fails on samba mounted partitions. Use istargz to match
2107 (processdirlisting) Use istargz to match tar.gz tail.
2108 (cleanup): Renamed from filedel.
2109 (cleanup_on_signal): New function. Called on CTRL-C.
2110 (main): Record handle of main thread so that it can be suspended when
2111 CTRL-C occurs. Set up cleanup_on_signal signal handler.
2113 Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
2115 * setup.c (do_start_menu): Don't concatenate paths to already built
2118 Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
2120 * path.c (exit_cygpath): Wait for subprocess to exit before returning.
2121 (cygpath_pipe): Don't call exit_cygpath. Let main atexit routine do
2123 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
2125 * setup.c (filedel): Call exit_cygpath here so that we can be assured
2126 that cygpath subprocess has died. This allows us to delete cygpath.exe
2128 (optionprompt): Initialize response to -1 so that second screen of
2129 mirrors will appear.
2130 (get_pkg_stuff): Don't attempt to use HKCLU. Pass root to init_pkgs.
2131 * setup.h: Reflect init_pkgs prototype change.
2133 Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
2135 * pkg.c (init_pkgs): Accept an argument to control what root registry
2137 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
2138 * setup.h: Reflect init_pkgs prototype change.
2140 Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
2142 * error.c (winerror): Respond to gcc warning.
2143 * path.c (cygpath_pipe): Ditto.
2144 * setup.c (filedel): Call sa_cleanup on deleteme.
2145 (create_shortcut): Coerce argument to eliminate compiler warning.
2146 (tarx): Use installed version of cygwin1.dll, overriding tar file name.
2147 (refmatches): New function. Tests if ref is contained in a list of
2148 packages to install.
2149 (filematches): New function. Tests if filename matches one of a list
2150 of packages to install.
2151 (recurse_dirs): Accept list of packages to install. Generalize tar.gz
2152 test to accomodate _tar.gz.
2153 (prompt): Ensure that stdout is flushed prior to asking for input.
2154 (findhref): Initialize variables to quiet a compiler warning.
2155 (processdirlisting): Accept list of packages to install. Special case
2156 cygwin tar file version number.
2157 (downloaddir): Accept list of packages to install.
2158 (downloadfrom): Ditto.
2159 (create_uninstall): Eliminate unneeded variables. Quote arguments to
2161 (do_start_menu): Don't create uninstall bat file if updating or user
2162 specified a list of packages.
2163 (mkmount): Eliminate unneeded variables.
2164 (get_pkg_stuff): New function. Checks for previous unversioned
2166 (main): Accept -u and -f options and package names on the command line.
2167 Use get_pkg_stuff to initialize package information. Umount /etc.
2168 Call recurse_dirs and downloadfrom with list of package to install.
2169 Ensure that all /usr/local directories are created. Output
2170 installation time to setup.log.
2171 * setup.h: Add some prototypes.
2172 * xsystem.c (xcreate_process): Eliminate unneeded variable.
2174 Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
2176 * setup.c (optionprompt): Don't overlap display of already seen options
2178 (geturl): Print name of site which we're connecting to rather than "ftp
2180 (processdirlisting): Avoid URLs that contain a /. or ./ . Is this
2181 test too simplistic?
2182 (do_start_menu): Use pathcat to build path to <root>\bin to avoid
2183 problems when user chooses x:\ as their root.
2184 (main): For now, default to "non-update" mode. Allow -u option to
2187 Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
2190 * setup.c (tarx): Skip already installed or older packages. Report
2191 when a package has been updated.
2192 (processdirlisting): Skip already installed or older packages.
2193 (main): Detect -f option for forced installation. Initialize pkg stuff
2195 * setup.h: Add pkg definitions.
2197 Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
2199 * setup.c (findhref): Return NULL on empty string. Eat any trailing
2201 (processdirlisting): Attempt to limit recursively processing the same
2204 Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
2206 * setup.c (filedel): New function.
2207 (output_file): Keep track of files extracted from setup.exe for
2208 subsequent deletion.
2209 (tarx): Close process handle of child tar process or suffer handle
2211 (getdownloadsource): Close mirror file so that it can be unlinked.
2212 (processdirlisting): Return total number of files extracted.
2213 (main): Initialize array of files to delete. Ensure that files are
2214 closed on exit. Make the directory that setup.exe is started from ==
2215 the directory where temporary files are placed. Issue an error if no
2216 files were found to download.
2217 * xsystem.c (xcreate_process): Close the thread handle. Close the
2218 process handle if we waited for it to exit.
2220 Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
2222 * setup.c (main): Change version number output.
2224 Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
2226 * setup.c (tarx): Use full path name to tar executable.
2227 (main): Build full pathname to tar executable. Create /usr/local/etc
2230 Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
2232 * setup.c (findhref): Change method for scanning for href= to choose
2233 the last one on the line. This is still not foolproof and probably
2234 will need to be changed eventually. Don't abort if no "size" field is
2236 (processdirlisting): Fix boolean algebra.
2238 Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
2240 * main.c (tarx): Add some code for future task of unmounting
2241 directories encountered in tar file.
2243 Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
2245 * setup.c (findhref): Decode file size, when appropriate.
2246 (needfile): New function. Returns 1 when file should be
2248 (processdirlisting): Always download if file size does not
2249 match. Prompt when download fails for some reason.
2250 (getdownloadsource): Accomodate findhref argument changes.
2252 Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
2254 Throughout, use global session handle rather than reinitializing for
2255 each connect. Don't pass session as an argument to setup.c functions.
2256 * setup.c (geturl): Only issue "Connecting to.." message when using
2257 http or first time for ftp since subsequent connections will be fast.
2258 (processdirlisting): Allocate space for "N" when user has specified
2259 "N"ever option so that it can be subsequently freed.
2260 (main): Abort if we can't get the list of mirrors.
2262 Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
2264 * setup.c (main): Umount /bin and /lib.
2266 Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
2268 * setup.c (main): Create an empty /var/run/utmp.
2270 Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
2272 * Makefile.in: Add umount to list of files to include in setup.exe.
2273 * setup.c (xumount): New function for unmounting directories.
2274 (main): Unmount /usr.
2275 (mkmount): Unmount "unix directory" before trying to figure out where
2276 to create the directory.
2278 Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
2280 * setup.c (mkmount): Use xcreate_process to start mount process,
2282 (main): Don't do buffering on stdout or prompts won't be displayed
2283 correctly if running in a cygwin shell with CYGWIN=tty.
2285 Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
2287 * setup.c (main): Remove the CYGWIN environment variable before
2288 starting any cygwin programs.
2290 Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
2292 * setup.c (geturl): Use alternative method for finding filename part of
2294 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
2295 (downloaddir): Unlink file containing dir listing.
2296 (downloadfrom): Ditto.
2298 Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
2300 * setup.c (main): Disallow running setup.exe from the "root".
2302 Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
2304 Use "warning" function, where appropriate, to output warnings.
2305 * setup.c (warning): New function -- outputs warning to console and log
2307 (tarx): Fix index used to reset file protection.
2308 (main): Open the log file earlier so that more stuff can be sent to it.
2310 Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
2312 * setup.c (processdirlisting): Make "N" option a little less aggressive.
2314 Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
2316 * setup.c (tarx): Wait to after tar has completed to reset protections
2317 or suffer races with tar process.
2319 Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
2321 * Makefile.in: Eliminate duplicate -nostdinc from CFLAGS.
2322 * setup.c (create_uninstall): Create the uninstall .bat file in the
2323 "root" so that we can remove the /bin directory. Add bin\cygwin.bat to
2324 list of files to be deleted. Fix directory detection for determining
2325 when to use 'rmdir'.
2326 (do_start_menu): Add /usr/local/bin to the path.
2327 (main): Add slop to files.array allocation so that we don't have to
2328 worry about reallocating the array when it grows too large when doing
2329 some trivial "pushes". Add /tmp and /usr/local/{bin,lib} to list of
2332 Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
2334 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
2337 Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
2339 * path.c (kill_cygpath): New cleanup function.
2340 (exit_cygpath): New cleanup function.
2341 (cygpath_pipe): New function. Sets up cygpath in the background for
2342 translating filenames.
2343 (pathcvt): Use background cygpath for file translation.
2344 * setup.c (tarx): New function. Called to extract tar files, capture
2345 logging output, and translate it to Windows format.
2346 (recurse_dirs): Use 'tarx' function to extract files.
2347 (create_uninstall): Use file list built up by tarx rather than reading
2349 (mkmount): Add ability to mount root.
2350 (main): Track elapsed install time. Mount root.
2351 * starry.h: Add index field to strarry for tracking of tarx's usage of
2353 * xsystem.c (xcreate_process): Return proces handle when not waiting.
2355 Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
2358 (pathfp): New function. Preliminary work for new -f cygpath
2360 * Makefile.in: Add new file.
2361 (pathcvt): Move to new file.
2365 * setup.c (processdirlisting): Always open file in text mode.
2366 (create_uninstall): Ditto.
2367 (getdownloadsource): Ditto.
2370 Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
2372 * xsystem.c: New file.
2373 * Makefile.in: Accomodate new file.
2374 * setup.c (xsystem): Move to new file.
2375 (recurse_dirs): Accept handle to output log file. Don't use ">"
2376 redirection to trap tar output. Use supplied handle instead.
2377 (create_uninstall): Accept FILE pointer to opened log file. Don't
2378 unlink log file here.
2379 (do_start_menu): Accept FILE pointer to pass to create_uninstall.
2380 (main): Open log file here and pass it to various functions. Unlink
2383 Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
2385 Change occurrences of .usr.bin to .bin throughout.
2386 * setup.c (geturl): Increase number of retries to 20. Let user know
2387 what's going on during long connects.
2388 (processdirlisting): Accept "A"lways and "N"ever as update options.
2389 (create_uninstall): Load cygwin1.dll from the current directory rather
2391 (main): Add some expository text.
2393 Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
2395 * Makefile.in: Change method for compressing cygwin1.dll to avoid
2396 creating a cygwin1.dll in the current directory. Ensure the addition
2397 of -nostdinc to MINGW_CFLAGS.
2399 Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
2401 * Makefile.in: Augment clean target.
2403 Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
2405 * README: Added info about non-working mingw implementation
2406 * gzip.exe.gz: Replace with a version from the same build as the other
2408 * tar.exe.gz: Replace with a version from the same build as the other
2410 * mount.exe.gz: Add to repository until, mingw can build setup.
2411 * cygpath.exe.gz: ditto
2412 * cygwin1.dll.gz: ditto
2413 * setup.c: Overwrite /bin and /lib mounts. Generate working shortcut
2414 for Win9x. Display only a screenfull of options at a time. Call all
2415 tools with an absolute path.
2416 * setup.dsp: Restore the carriage returns, MS Developer Studio needs
2421 Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
2423 * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab
2424 cygwin1.dll from ../cygwin subdirectory.
2425 * gzip.exe.gz: Update.
2426 * tar.exe.gz: Update.
2428 Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
2430 * Makefile.in: Use ZLIB variable as a target.
2432 Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
2434 * Makefile.in: Eliminate traces of cygwinisms. Don't link with
2435 libmsvcrt.a. It's unneeded. Build .rc file on the fly from various
2437 * configure.in: Locate correct objcopy.
2438 * configure: Regenerate.
2440 Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
2442 * Makefile.in: New file.
2443 * configure.in: New file.
2444 * configure: New file.
2445 * zlib/Makefile.am: New file.
2446 * zlib/configure.in: New file.
2447 * zlib/aclocal.m4: New file.
2448 * zlib/acinclude.m4: New file.
2449 * zlib/configure: Regenerate from configure.in.
2450 * zlib/Makefile.in: Regenerate from Makefile.am