]> cygwin.com Git - cygwin-apps/setup.git/blame - ChangeLog
2001-12-04 Robert Collins <rbtcollins@hotmail.com>
[cygwin-apps/setup.git] / ChangeLog
CommitLineData
de6a1a64
RC
12001-12-04 Robert Collins <rbtcollins@hotmail.com>
2
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 -
30 thats not needed.
31 Remove obsolete other_url reference.
32 (dialog_proc): Use all_site_list instead of site_list.
33 (site_sort): Remove.
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.
39 Log all chosen sites.
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.
43 (other_url): Remove.
44 (MIRROR_SITE): Remove.
45 * version.cc: New file, for version-handling and related functions.
46
341988b9
RC
472001-12-02 Robert Collins <rbtcollins@hotmail.com>
48
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.
52 (archive_tar): Ditto.
53 * choose.cc (set_action): Use [] operator instead of getnth - its more readable.
54 (paint): Ditto.
55 (_view::init_headers): Ditto.
56 (_view::insert_pkg): Ditto.
57 (set_view_mode): Ditto.
58 (scan2): Ditto.
59 (do_choose): 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.
78 (_Info): Remove.
79 * inilex.l: Remove old globals.
80 (ini_init): Use an io_stream for getting the characters.
81 (ini_getchar): Ditto.
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.
97 (NetIO::open): Ditto.
98 * netio.h: As for netio.cc.
99 * nio-file.cc (NetIO_File::NetIO_File): Change prototype to reflect Purl not
100 being modified.
101 * nio-file.h: Ditto.
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
113 key globally.
114
071c1c54
RC
1152001-12-01 Robert Collins <rbtcollins@hotmail.com>
116
117 * package_source.cc (packagesource::set_canonical): Filename was out by one.
118
4fe323f9
RC
1192001-11-30 Robert Collins <rbtcollins@hotmail.com>
120
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
131 available.
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.
141 (do_choose): 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.
153
7d66d192
RC
1542001-11-30 Robert Collins <rbtcollins@hotmail.com>
155
156 * package_db.cc (packagedb::flush): Write a canonical version for all packages
157 irrespective of the media they were installed from.
158
bb849dbd
RC
1592001-11-29 Robert Collins <rbtcollins@hotmail.com>
160
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.
181 (dialog_cmd): Ditto.
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
208 info.
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.
216 (Package): 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.
249 (site): New 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.
261 * rfc1738.h: Ditto.
262
90d14922
RC
2632001-11-26 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
264
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.
268
7c7034e8
RC
2692001-11-23 Robert Collins <rbtcollins@hotmail.com>
270
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.
282
fa0c0d10
RC
2832001-11-23 Robert Collins <rbtcollins@hotmail.com>
284
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.
297 (Package): Ditto.
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.
328
7b606ae5
RC
3292001-11-21 Robert Collins <rbtcollins@hotmail.com>
330
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.
345 (Category): Remove.
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.
350 (category): Remove.
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.
357
d0fa1c4e
RC
3582001-11-21 Robert Collins <rbtcollins@hotmail.com>
359
360 * choose.h: Don't include ini.h
361 * ini.h: Allow pure c++ in the header file.
362
24cbae7f
RC
3632001-11-21 Robert Collins <rbtcollins@hotmail.com>
364
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.
367
7939f6d1
RC
3682001-11-21 Robert Collins <rbtcollins@hotmail.com>
369
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.
382
33bc0053
RC
3832001-11-21 Robert Collins <rbtcollins@hotmail.com>
384
385 * REAME: Updates to wishlist.
386
12ccadc0
RC
3872001-11-16 Robert Collins <rbtcollins@hotmail.com>
388
389 * README: Updated and added my list of wishlist and todo items.
390
ca9506cc
RC
3912001-11-14 Robert Collins <rbtcollins@hotmail.com>
392
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.
407 (GUBuf): Remove.
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().
417
2db33f10
RC
4182001-11-13 Brian Keener <bkeener@thesoftwaresource.com>
419
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
425 last-cache.
426 * res.rc (IDD_CHOOSE_DIALOG): Add hotkey to View button.
427 * Source.cc (dialog_cmd): Skip IDD_ROOT if select Download from
428 Internet.
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.
431
03a6c5b1
RC
4322001-11-13 Robert Collins <rbtcollins@hotmail.com>
433
434 * choose.cc (find_tar_ext): Only match at the end of the string.
435 (getpkgbyname): Prevent NULL pointer dereference.
436
b24c88b3
RC
4372001-11-13 Robert Collins <rbtcollins@hotmail.com>
438
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.
443 (inilex.o): Ditto.
444 (iniparse.o): Ditto.
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.
452 Run indent.
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.
496 Return a value.
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.
503 Use io_streams.
504 (cvsid): Fix compiler warnings (unused, deprecated conversion).
505 (do_ini): Use io_streams for local io.
506 * ini.h: Run indent.
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).
511 Use io_streams.
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).
518 (exists): Remove.
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.
530 Use io_streams.
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).
540 * log.h: Run indent.
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).
564 * msg.h: Run indent.
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.
600 Use io_streams.
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.
618 * tar.h: Remove.
619 * tar.cc: Remove.
620
398dd7b2
CF
6212001-11-12 Christopher Faylor <cgf@redhat.com>
622
623 * desktop.cc (start_menu): Change start menu name to "Cygwin".
624 (check_startmenu): Ditto.
625
c29ee141
CF
6262001-11-11 Christopher Faylor <cgf@redhat.com>
627
628 * choose.cc (parse_filename): Finish reorganization by correctly
629 decrementing p in memmove.
630
3a8276de
CF
6312001-11-11 Christopher Faylor <cgf@redhat.com>
632
633 * choose.cc (parse_filename): Reorganize code to work around gcc
634 optimization problem.
635
6eea52fb
RC
6362001-11-09 Gareth Pearce <tilps@hotmail.com>
637
638 * choose.cc (set_action): Allow skip as an option for installed
639 packages that have version number not listed in setup.ini.
640
cf99b153
RC
6412001-11-10 Robert Collins <rbtcollins@hotmail.com>
642
643 * choose.cc (set_cation): Backout last change.
644 (choose_caption): Ditto.
645
55e204f6
RC
6462001-11-10 Robert Collins <rbtcollins@hotmail.com>
647
648 * ini.h (actions): Remove - transferred to choose.h.
649 (views): Ditto.
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
655 setup.ini.
656 (choose_caption): Ditto.
657 * iniparse.y: Rearrange header order to handle new ini.h.
658
6592001-11-10 Robert Collins <rbtcollins@hotmail.com>
660
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
675 end of function).
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).
679 (_view): Ditto.
680
67a55ad9
RC
6812001-11-08 Pavel Tsekov <ptsekov@syntrex.com>
682
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().
705
5898e300
RC
7062001-11-09 Robert Collins <rbtcollins@hotmail.com>
707
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,
713 printf and write.
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).
717
8e58f8fd
RC
7182001-11-07 Charles Wilson <cwilson@ece.gatech.edu>
719
720 * geturl.cc (get_url_to_string): clean up memory leak
721 (get_url_to_file): ditto
722
4b4002ab
RC
7232001-11-06 Robert Collins <rbtcollins@hotmail.com>
724
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.
727
94525fd9
RC
7282001-11-06 Pavel Tsekov <ptsekov@syntrex.com>
729
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.
733
7342001-11-06 Robert Collins <rbtcollins@hotmail.com>
ca83c665
RC
735
736 * fromcwd: Fix compiler warnings for cvsid.
737 (canonicalize_version): Fix compilter warnings.
738 (do_fromcwd): Ditto.
739 * version.h: Fix compiler warnings for canonicalize_version.
740
ce1f9ec2
RC
7412001-11-03 Robert Collins <rbtcollins@hotmail.com>
742
743 * res.rc (IDD_CHOOSE): Move the view caption to the right hand side.
744
89d82ec7
RC
7452001-11-02 Robert Collins <rbtcollins@hotmail.com>
746
747 * res.rc (IDD_CHOOSE): Tweak for use on a 640x480 screen.
748
c8fea72a
RC
7492001-11-02 Robert Collins <rbtcollins@hotmail.com>
750
8114d309
RC
751 * choose.cc (set_action): Correctly allow skip for any uninstalled package.
752
7532001-11-02 Robert Collins <rbtcollins@hotmail.com>
754
755 * choose.cc (default_trust): Change the "Required" forced install category to
756 "Base".
c8fea72a 757
f557695e
RC
7582001-11-02 Robert Collins <rbtcollins@hotmail.com>
759
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.
763
9a60dafc
CF
7642001-11-01 Christopher Faylor <cgf@redhat.com>
765
f557695e
RC
766 * Makefile.in (mingw_getopt.o): Fix typo in non-verbose compilation.
767
7682001-11-02 Robert Collins <rbtcollins@hotmail.com>
769
770 * choose.cc (_view::init_headers): Resync with the paint logic.
9a60dafc 771
878faffd
RC
7722001-11-02 Robert Collins <rbtcollins@hotmail.com>
773
774 * choose.cc (add_required): Allow SKIP and SRC_ONLY for currently installed
775 packages.
776
05bfdf26
RC
7772001-11-02 Robert Collins <rbtcollins@hotmail.com>
778
779 * choose.cc (default_trust): Autoset currently installed packages per the user's
780 selection of prev/curr/exp.
781
0b9af00c
RC
7822001-11-02 Robert Collins <rbtcollins@hotmail.com>
783
784 * splash.cc (dialog_proc): Return TRUE as specified in the WIN32 API.
785
7cefe128
RC
7862001-11-02 Pavel Tsekov <ptsekov@syntrex.com>
787
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.
802
42a99ed1
RC
8032001-11-02 Robert Collins <rbtcollins@hotmail.com>
804
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.
809
45c2d7d3
RC
8102001-11-02 Robert Collins <rbtcollins@hotmail.com>
811
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.
821
2399c54d
RC
8222001-11-01 Robert Collins <rbtcollins@hotmail.com>
823
824 * choose.cc(list_vscroll): Return 0 as required by win32.
825 (list_hscroll): Ditto.
826 (list_click): Ditto.
827
8e4402a9
RC
8282001-11-01 Robert Collins <rbtcollins@hotmail.com>
829
830 * argv.cc: Remove.
831 * argv.h: Remove.
832 * main.cc(WinMain): Use __argv to retrieve command line parameters.
833 * Makefile,in: Remove argv.o.
834
c168185f
RC
8352001-11-01 Matt Hargett <matt@use.net>
836
837 * geturl.cc (progress): Change int to unsigned int to eliminate
838 lint warnings.
839 * (get_url_to_string): Check for NULL pointer.
840 * mount.cc (find2): Use free instead of delete for malloc'd
841 memory.
842 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Fix memory leak.
843
f97a1ece
RC
8442001-10-31 Robert Collins <rbtcollins@hotmail.com>
845
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).
852
d52ed64b
RC
8532001-10-31 Robert Collins <rbtcollins@hotmail.com>
854
855 * argv.cc: New file, converts arguments for -mwindows programs. (Simplified derivation
856 from dcrt0.cc.)
857 * argv.h: New file.
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.
861
392ba1ba
CF
8622001-10-27 Christopher Faylor <cgf@redhat.com>
863
864 * res.rc: Rearrange info on top line slightly.
865
31324d15
CF
8662001-10-27 Christopher Faylor <cgf@redhat.com>
867
868 * desktop.cc (make_passwd_group): Move file creation earlier in the
869 process to ensure that passwd-grp.bat reflects desired operation.
870
8712001-27-10 Trevor Forbes <t4bs@hotmail.com>
872
873 * postinstall.cc (each): Remove "*.done" file else rename will fail.
874
ee411d77
CF
8752001-10-16 Christopher Faylor <cgf@redhat.com>
876
877 * res.rc: Oops. Take 640x480 screen size into account.
878
e74944da
CF
8792001-10-16 Christopher Faylor <cgf@redhat.com>
880
881 * res.rc: Enlarge chooser screen.
882
e368cfb9
CF
8832001-10-12 Christopher Faylor <cgf@redhat.com>
884
885 * Makefile.in: Accomodate changes to w32api_include macro.
886
a6ba3670
CF
8872001-10-12 Christopher Faylor <cgf@redhat.com>
888
889 * Makefile.in: Use correct flags for windres.
890
683e96f6
CF
8912001-10-12 Christopher Faylor <cgf@redhat.com>
892
893 * Makefile.in (CFLAGS): Remove -nostdinc from CFLAGS.
894
2c18c00b
CF
8952001-10-12 Christopher Faylor <cgf@redhat.com>
896
897 * choose.cc (pick_line::paint): Reorganize after botched patch.
898
0f61a05a
CF
8992001-10-12 Christopher Faylor <cgf@redhat.com>
900
901 * choose.cc (pick_line::paint): Add missing declaration.
902
308d6f3e
CF
9032001-10-10 Ralf Habacker <Ralf.Habacker@freenet.de>
904
905 * choose.cc (pick_line::paint): Add package name to sdesc for display.
906
3bcf85be
RC
907Wed Sep 26 21:39:00 Robert Collins rbtcollins@hotmail.com
908
909 * choose.cc (_view::insert_pkg): Correctly exit loop.
910 * iniparse.y (register_category): Always insert new categories.
911
fb2cd8f6
CF
912Fri Sep 21 13:56:32 2001 Christopher Faylor <cgf@cygnus.com>
913
914 * inilex.l (yylex): For comments, eat all characters up to, but not
915 including newline.
916
127b32e1
CF
917Sun Aug 26 12:50:01 2001 John Marshall <jmarshall@acm.org>
918
919 * fromcwd.cc (found_file): Use correct package name when adding an
920 unknown package rather than random stack garbage.
921
2cd555aa
CF
922Sun Aug 12 14:25:21 2001 Christopher Faylor <cgf@cygnus.com>
923
924 * desktop.cc (make_passwd_group): .bat files need \r\n endings.
925
4254cc64
CF
926Wed Aug 8 13:53:47 2001 Christopher Faylor <cgf@cygnus.com>
927
928 * desktop.cc (etc_profile): Leave environment variables untouched.
929
acbae401
CV
9302001-08-07 Corinna Vinschen <corinna@vinschen.de>
931
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.
936
969a294c
CF
937Sat Aug 4 21:35:53 2001 Christopher Faylor <cgf@cygnus.com>
938
939 * ini.h (_CategoryPackage): Change pkg field to pkgname for
940 consistency.
941 * choose.cc: Use pkgname field when referencing _CategoryPackage
942 throughout.
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.
947
9eeb0e83
ED
9482001-07-09 Egor Duda <deo@logos-m.ru>
949
950 * choose.cc: Use system foreground color for text output.
951
06560feb
CF
952Sat Jul 7 00:40:28 2001 Christopher Faylor <cgf@cygnus.com>
953
954 * choose.cc (set_action): Use default trust for determining reinstall
955 and source only.
956 (default_trust): Set default trust.
957 (pick_line::paint): Allow source selection when reinstalling or
958 retrieving.
959
1fb09149
CF
960Fri Jul 6 18:08:49 2001 Christopher Faylor <cgf@cygnus.com>
961
962 * choose.cc (isinstalled): Modify to properly accomodate special case
963 of "download only".
964 (set_action): Check downloaded components, not installed components if
965 "download only".
966 (set_existence): Always include full list of files when "download
967 only".
968
14cfffa5
CF
969Fri Jul 6 00:37:05 2001 Christopher Faylor <cgf@cygnus.com>
970
971 * choose.cc (pick_line::paint): Properly display "na" field when no
972 source exists.
973
f54385f6
CF
974Thu Jul 5 00:34:23 2001 Christopher Faylor <cgf@cygnus.com>
975
976 * choose.cc (scan2): Ensure that older versions do not show up in
977 "Test" slot.
978
85b1fb54
CF
979Mon Jul 2 15:47:59 2001 Christopher Faylor <cgf@cygnus.com>
980
981 * choose.cc (set_action): Allow "Skip" action if trust != installed.
982 * res.rc: Fix copyright.
983
2dada532
CF
984Sat Jun 30 14:05:21 2001 Michael A Chase <mchase@ix.netcom.com>
985
986 * res.rc (IDD_LOCAL_DIR): Change caption to match the other dialog
987 boxes.
06c6d195 988 (IDD_CHOOSE): Adjust horizontal size so package names are visible.
2dada532
CF
989
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
994 right.
995 (do_choose): List categories and required packages in setup.log.full.
996
997Sat Jun 30 23:04:59 2001 Christopher Faylor <cgf@cygnus.com>
998
999 * choose.cc (scan2): Restore source scanning eliminated by previous checkin.
1000
1b13eeec
CF
1001Sat Jun 30 15:18:33 2001 Christopher Faylor <cgf@cygnus.com>
1002
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.
1006
9307254d
RC
1007Sat Jun 30 13:39:00 2001 Robert Collins <rbtcollins@hotmail.com>
1008
1009 * choose.cc (create_listview): Call set_view_mode with VIEW_CATEGORY.
1010 (do_choose): Log the first category name.
1011
3467d79f
CF
1012Fri Jun 29 23:07:44 2001 Christopher Faylor <cgf@cygnus.com>
1013
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,
1017 etc.
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.
1023
8f53e82a
RC
1024Sat Jun 30 11:01:00 2001 Robert Collins <rbtcollins@hotmail.com>
1025
1fb09149 1026 * choose.cc: Remove globals full_list, headers, package_indexes and
8f53e82a
RC
1027 nindexes.
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.
1fb09149 1032 (list_click): Use new global variables.
8f53e82a
RC
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
1036 variable.
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.
1066 (views) New enum.
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.
2dada532
CF
1077 (category): New global variable.
1078 (ncategories): New global variable.
8f53e82a
RC
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.
1088
26a27c14
CF
1089Mon Jun 25 00:56:37 2001 Michael A Chase <mchase@ix.netcom.com>
1090
e19ad6a3 1091 * choose.cc (paint): Wrap excessively long lines.
26a27c14
CF
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.
1097
97312777
CF
1098Mon Jun 25 00:56:37 2001 Christopher Faylor <cgf@cygnus.com>
1099
5f9f0d8d
CF
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.
97312777
CF
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.
1106
72fd1d1e
CF
1107Sun Jun 17 12:06:14 2001 Christopher Faylor <cgf@cygnus.com>
1108
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
1112 the install.
1113
41ac91b5 1114Sat Jun 16 11:33:51 2001 Michael A Chase <mchase@ix.netcom.com>
86202506
CF
1115
1116 * choose.cc (_Info::_Info): Test _source paramenter for non-NULL rather
1117 than zeroed "source" element.
1118
80429b97
CF
1119Fri Jun 15 20:54:43 2001 Christopher Faylor <cgf@cygnus.com>
1120
1121 * choose.cc (scan2): Insert unknown tar archives, found on disk, into
1122 the highest available "hole" in the trust array.
1123
654ea642
CF
1124Fri Jun 15 00:20:48 2001 Christopher Faylor <cgf@cygnus.com>
1125
1126 * choose.cc (set_existence): Use pointer method for indexing in trust
1127 array.
1128 (create_listview): Ditto.
1129 (scan2): Ditto. Also, use consistent variable name for indexing into
1130 trust array.
1131 * ini.h (Package): Reorganize info array for easier scanning.
1132
e98d90bd
CF
1133Fri Jun 15 00:01:51 2001 Christopher Faylor <cgf@cygnus.com>
1134
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
1137 incrementing.
1138 (choose_caption): Display "Retrieve" rather than "Reinstall" when just
1139 downloading.
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
1144 memory corruption.
1145
38c97581
CF
1146Thu Jun 14 22:43:59 2001 Robert Collins <rbtcollins@hotmail.com>
1147
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.
1153
1154Thu Jun 14 22:43:26 2001 Christopher Faylor <cgf@cygnus.com>
1155
1156 * choose.cc (read_installed_db): Eliminate obsolete code.
1157
3ae6c15c
CF
1158Thu Jun 14 22:11:53 2001 Christopher Faylor <cgf@cygnus.com>
1159
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
1163 iterator.
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
1167 package.
1168 (install_one): Allocate new Info struct for installed reflecting new
1169 installed info.
1170 (do_install): Don't output line to installed.db if package is being
1171 uninstalled.
1172
9c0a9876
CF
1173Thu Jun 14 20:33:01 2001 Robert Collins <rbtcollins@hotmail.com>
1174
1175 * choose.cc (getpkgbyname): Use consistent method for scanning package
1176 array.
1177
68b27c12
CF
1178Wed Jun 13 23:33:08 2001 Christopher Faylor <cgf@cygnus.com>
1179
1180 * choose.cc: Add some comments.
1181 (getpkgbyname): Use strcasecmp for comparisons.
1182
07108cc2
CF
1183Wed Jun 13 16:07:00 2001 Christopher Faylor <cgf@cygnus.com>
1184
f0984dcb 1185 * install.cc (do_install): Avoid checking for download action if
07108cc2
CF
1186 package wasn't currently retrieved.
1187
c46a33a9
CF
1188Wed Jun 13 11:27:22 2001 Christopher Faylor <cgf@cygnus.com>
1189
1190 * choose.cc: Eliminate extra array throughout. Use element in package
1191 structure instead. Use pointers rather than array indexes where
1192 appropriate.
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
1218 version == 0.
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.
1229
7cc06fd3
CF
12302001-05-31 Michael Chase mchase@ix.netcom.com
1231
1232 * main.cc (WinMain): Add setup version to starting setup.log entry
1233
9522028b
CF
1234Tue May 29 21:37:58 2001 Yukihiko Sohda <sohda@is.titech.ac.jp>
1235
1236 * inilex.l: Add + to list of valid string characters.
1237
e9b1aaa7
CF
1238Mon May 28 20:54:50 2001 Christopher Faylor <cgf@cygnus.com>
1239
1240 * Makefile.in: Remove more stuff in the clean target.
1241
8e1299fa
CF
1242Mon May 28 18:24:59 2001 Christopher Faylor <cgf@cygnus.com>
1243
1244 * Makefile.in: Correctly generate iniparse.h.
1245
85553593
CV
1246Tue Mar 6 19:14:00 2001 Corinna Vinschen <corinna@vinschen.de>
1247
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'.
1266
c4174b9c
CF
1267Sun May 27 17:12:23 2001 Christopher Faylor <cgf@cygnus.com>
1268
1269 * res.rc (IDD_SPLASH): Add a copyright year.
1270
0af2d779
CF
1271Sun May 27 15:42:18 2001 Christopher Faylor <cgf@cygnus.com>
1272
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
1280 honored.
1281 * mount.cc (create_mount): Reread the mount table after establishing a
1282 new mount.
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.
1287
85b43844
CF
1288Sun May 27 02:59:07 2001 Christopher Faylor <cgf@cygnus.com>
1289
0af2d779
CF
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
1294 version.
85b43844
CF
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.
1304
08f8c762
CF
1305Sat May 26 21:23:59 2001 Christopher Faylor <cgf@cygnus.com>
1306
1307 * choose.cc: Use a constant throughout to deal with chooser icon
1308 length.
1309 * res.rc (IDD_CHOOSE): Increase size of chooser box.
1310
47f8d8b3
CF
13112001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
1312
1313 * choose.cc (do_choose): Fix incorrect assignment of trust setting to
1314 use when Redownload or Sources Only selected.
1315
6a748750
CF
1316Thu May 10 22:35:59 2001 Christopher Faylor <cgf@cygnus.com>
1317
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.
1322
a351e48c
CF
1323Thu May 10 21:04:18 2001 Christopher Faylor <cgf@cygnus.com>
1324
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.
1342
e227ee24
CF
13432001-05-09 Matt Hargett <matt@use.net>
1344
1345 * Makefile.in: Remove *.rc from clean.
1346
25fd2965
CF
1347Tue May 8 23:33:38 2001 Christopher Faylor <cgf@cygnus.com>
1348
1349 * choose.cc (scan2): Fix incorrect setting of TRUST_CURR rather than
1350 TRUST_PREV which produced "0" versions.
1351
42bf5b92
CF
13522001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
1353
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
1362 ACTION_SRC_ONLY.
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
1376 ACTION_SRC_ONLY).
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.
1393
1394Mon May 7 23:33:30 2001 Matt Hargett <matt@use.net>
8a09aa99
CF
1395
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.
1406
87bdba0c
CF
1407Tue Apr 24 23:42:02 2001 Christopher Faylor <cgf@cygnus.com>
1408
1409 * res.rc: Resize affected text.
1410
8293fc16
CF
1411Tue Apr 24 23:35:31 2001 Christopher Faylor <cgf@cygnus.com>
1412
1413 * net.cc (do_net): Default to direct download.
87bdba0c 1414 * res.rc: Move default selections to the top.
8293fc16 1415
ed96c6da
EB
14162001-04-18 Earnie Boyd <earnie@users.sourceforge.net>
1417
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.
1425
fe94cc29
CF
1426Wed Apr 18 18:59:21 2001 Christopher Faylor <cgf@cygnus.com>
1427
1428 * tar.cc (class gzbz): Define dummy virtual functions.
1429
fb087b80
CF
1430Wed Apr 18 16:01:21 2001 Christopher Faylor <cgf@cygnus.com>
1431
1432 * Makefile.in: Add bz2 include/library support.
1433 * filemanip.h: New file.
fe94cc29
CF
1434 * choose.cc (find_tar_ext): New function. Returns TRUE if .tar.gz or
1435 .tar.bz2 found.
fb087b80
CF
1436 (scan2): Reorganize to use find_tar_ext, accomodating .bz2 extension.
1437 (read_installed_db): Ditto.
1438 (do_choose): 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.
1450
1451 * zlib/configure.in: Force NM substitution.
1452
1453 * source.cc (do_source): Default to "Install from Internet".
1454
88bcaf07
CF
14552001-03-16 Brian Keener <bkeener@thesoftwaresource.com>
1456
1457 * nio-file.cc (NetIO_File::NetIO_File): Use `get_file_size' instead of
1458 `stat'.
1459 * choose.cc (list_click): Correct inability to select source code for
1460 download.
1461 (scan2): Modify to skip source tarballs when scanning disk for
1462 installable packages.
1463
ef45c299
CV
14642001-03-10 Chris Abbey <chris_abbey@yahoo.com>
1465
1466 * install.cc: install sources into /usr/src instead
1467 of /, also include the sizes of source tarballs
1468 in total_bytes.
1469 * download.cc: include sizes of source tarballs in
1470 total_download_bytes.
1471
9fe1181b
CV
1472Tue Mar 6 19:31:00 2000 Corinna Vinschen <corinna@vinschen.com>
1473
1474 * download.cc (get_file_size): Remove `static'.
1475
2bfdb848
CV
1476Tue Mar 6 19:11:00 2000 Corinna Vinschen <corinna@vinschen.com>
1477
1478 * tar.cc (tar_open): Use `get_file_size' instead of `stat'.
1479
60c632b3
CV
14802001-03-06 Brian Keener <bkeener@thesoftwaresource.com>
1481
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
88bcaf07 1485 installing from local directory and installation file does not exist.
60c632b3
CV
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.
88bcaf07 1497 (set_full_list): Expand decision criteria for displaying a package in
60c632b3
CV
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.
88bcaf07 1502 (create_listview): Modify to establish package trust level for each
60c632b3
CV
1503 package before setting up the display list. Also modification to set
1504 current trust button as the default.
88bcaf07 1505 (dialog_cmd): Set response for Prev, Curr, Test button push to perform
60c632b3
CV
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
1509 trust.
1510 (scan2): Modify to use new method get_package_version and
1511 also enhance handling of the build for the structures package and
1512 extra.
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.
88bcaf07 1516 (do_choose): Add additional initialization of package and extra
60c632b3
CV
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
1520 versions.
1521 * ini.h: Add new fields install_exists, source_exists and
88bcaf07 1522 partial_list_display to the structure definition for package.
60c632b3
CV
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.
1526
2f9645a1
CV
15272001-02-20 Brian Keener <bkeener@thesoftwaresource.com>
1528
88bcaf07 1529 * download.cc (do_download): Add new variables total_download_bytes and
2f9645a1
CV
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.
88bcaf07
CF
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.
2f9645a1
CV
1542 (init_dialog): Ditto.
1543 (progress): Ditto.
1544 (get_url_to_file): Ditto.
1545 * geturl.h: Add external definition for total_download_bytes and
1546 total_download_bytes_sofar.
88bcaf07 1547 * res.rc: Add two additional progress meters (IDC_DLS_IPROGRESS)
2f9645a1
CV
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
1550 download meters.
88bcaf07 1551 * resource.h: Add new fields for progress meters and text and update
2f9645a1
CV
1552 _APS_NEXT_CONTROL_VALUE.
1553
b41962a3
CV
1554Wed Feb 21 13:05:00 2000 Corinna Vinschen <vinschen@redhat.com>
1555
1556 * download.cc (get_file_size): Check for INVALID_HANDLE_VALUE instead
1557 for NULL.
1558
1559Wed Feb 21 11:21:00 2000 Corinna Vinschen <vinschen@redhat.com>
01954c34
CV
1560
1561 * download.cc (download_one): Add missing parenthesis.
1562
88a77116
CV
1563Mon Feb 19 18:59:00 2000 Corinna Vinschen <vinschen@redhat.com>
1564
1565 * download.cc (get_file_size): New function. Eliminates the need
1566 to call `stat'.
1567 (download_one): Call `get_file_size' instead of `stat'. This
1568 workarounds a problem with mingw's `stat' call.
1569
577f35ed
EB
15702001-02-07 Earnie Boyd <earnie@users.sourceforge.net>
1571
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.
1575
38f5563e
DD
15762000-12-26 Earnie Boyd <earnie_boyd@yahoo.com>
1577
1578 * Makefile.in (autoload.o): Add target to specify -fno-inline-functions
1579
c0a7e0f2
DD
1580Tue Dec 26 03:46:00 2000 Matt Hargett <matt@use.net>
1581
1582 * winsup/cinstall/res.rc: Added accelerators and improved focus
1583 order.
1584
72826a5b
CF
15852000-12-10 Egor Duda <deo@logos-m.ru>
1586
1587 * choose.cc (paint): Use system background color for text output.
1588
1589Sun Dec 10 19:05:25 2000 Christopher Faylor <cgf@cygnus.com>
1590
1591 * Makefile.in: Use CXX for linking and for compiling .cc files.
1592 * configure.in: Find correct c++ compiler.
1593 * configure: Regenerate.
1594
67bebcb5
DD
15952000-11-17 DJ Delorie <dj@redhat.com>
1596
1597 * splash.cc (load_dialog): Make message more obvious.
1598 * res.rc: Ditto.
1599
25fb9139
CF
1600Fri Nov 17 17:15:21 2000 Christopher Faylor <cgf@cygnus.com>
1601
1602 * Makefile.in: Use g++ to link so that libstdc++.a gets used. This is
1603 necessary for newer compilers.
1604
ef2007fd
CV
1605Wed Nov 9 2:19:00 2000 Corinna Vinschen <vinschen@redhat.com>
1606
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...
1612 * ini.h: ...here.
1613
277b4d56
CV
1614Wed Nov 8 17:10:00 2000 Corinna Vinschen <vinschen@redhat.com>
1615
1616 * desktop.cc (make_passwd_group): Don't exit when started
1617 on 9x/ME since mkpasswd/mkgroup are usable on 9x/ME now.
1618
f8a6415f
DD
1619Sun Nov 5 12:51:42 2000 Jason Tishler <jt@dothill.com>
1620
1621 * install.cc (do_install): Add call to set_cygdrive_flags to sync
1622 the mount modes.
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.
1628
3b9077d4
DD
16292000-10-23 DJ Delorie <dj@redhat.com>
1630
1631 * ini.h: add source actions
1632 * fromcwd.cc: check for available sources
1633 * res.rc: add checkbox bitmaps
1634 * resource.h: ditto
1635 * check-*.bmp: new
1636 * choose.cc: add source column
1637 * download.cc: download sources if called for
1638 * install.cc: [un]install sources too
1639
1b1b33ac
DD
16402000-10-22 DJ Delorie <dj@redhat.com>
1641
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.
1646
2a1a01e0
DD
16472000-10-12 DJ Delorie <dj@redhat.com>
1648
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
1653 allow retry.
1654 * install.cc (do_install): Ditto.
1655
1a9886fe
DD
16562000-10-05 DJ Delorie <dj@redhat.com>
1657
1658 * Makefile.in: fix %.cc rule
1659
40aef45e
DD
16602000-10-04 DJ Delorie <dj@redhat.com>
1661
1662 * desktop.cc: quote HOME and USER, don't . ./.profile
1663
1664 * choose.cc (build_labels): don't include in partial list just
1665 because there's a *previous* version available.
1666
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.
1669
dd3f7f9b
DD
16702000-10-02 DJ Delorie <dj@redhat.com>
1671
1672 * ini.cc (do_ini): save setup.ini locally
1673
16742000-10-02 Chris Abbey <cabbey@bresnanlink.net>
1675
1676 * desktop.cc: quote escapes in prompt
1677
fee2a8d0
DD
16782000-10-02 Jason Tishler <jt@dothill.com>
1679
1680 * root.cc (is_admin): New function.
1681 (read_mount_table): Check for administrative priviledges and set
1682 installation scope as appropriate.
1683
a03db251
DD
16842000-09-28 DJ Delorie <dj@redhat.com>
1685
1686 * nio-ftp.cc (ftp_line): handle continuations more robustly
1687
b151e01e 16882000-09-14 Brian Keener <bkeener@thesoftwaresource.com>
0b758d4c
DD
1689
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.
1694
d07591a3
DD
16952000-09-13 DJ Delorie <dj@redhat.com>
1696
1697 * install.cc (do_install): update disk fullness once per package
1698 to improve performance
1699
1700 * choose.cc (create_listview): call ReleaseDC
1701
89725f30
DD
1702Mon Sep 11 22:40 2000 Harold L Hunt II <harold@compasstechnologies.com>
1703
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
88bcaf07 1707
6fbc690d
CF
1708Mon Sep 11 19:35:24 2000 Christopher Faylor <cgf@cygnus.com>
1709
1710 * site.cc (get_initial_list_idx): Don't default to saved URL if it
1711 refers to sources.
1712
13d27274
DD
17132000-09-07 DJ Delorie <dj@redhat.com>
1714
1715 * splash.cc: use version.h, not local decl
1716 * res.rc: add "old version" message
1717 * resource.h: ditto
1718 * version.h: new
1719 * fromcwd.cc (canonicalize_version): make global
89725f30
DD
1720 * iniparse.y: add setup-version support, fix bug in blank line
1721 handling
1722
13d27274
DD
1723 * inilex.l: add [exp] as alias for [test], add setup-version
1724 * Makefile.in (version.c): add setup-version tag
1725
1726 * desktop.cc (do_desktop): remove 1.1 version number
1727 (do_desktop_setup): ditto
1728
1729 * ini.cc (do_ini): zero out package list just in case we redo it.
1730
8cfbc487
DD
17312000-09-07 Jeffrey Juliano <juliano@cs.unc.edu>
1732
1733 * choose.cc (list_click): Check for nindexes==0; if so, return.
1734
c92e1307
DD
17352000-09-06 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
1736
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
1742 do_local_dir
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
1750
17512000-09-06 Brian Keener <bkeener@thesoftwaresource.com>
50225eae
DD
1752
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
1759 normal directory.
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
1769 IDD_DESKTOP.
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.
1776
4a83b7b0
DD
17772000-08-29 DJ Delorie <dj@redhat.com>
1778
1779 * choose.cc (scan_downloaded_files): scan for existing files, so
1780 that the user only sees new downloads.
1781
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
1788
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
1795 * nio-ftp.cc: ditto
1796 * netio.cc (set_url): move initialization here to handle redirections
1797 (open): add direct http/ftp
1798 * netio.h (NetIO::set_url): new
1799
1800 * log.cc (log_save): create directory for log if needed
1801
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
1810
1811 * res.rc: update mirror list URL
88bcaf07 1812
50f64a4b
DD
18132000-08-24 DJ Delorie <dj@redhat.com>
1814
89b1a15b
DD
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
1832
1833 * res.rc: mark password boxes as *being* password boxes.
1834
50f64a4b
DD
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.
1840
348860fa
DD
18412000-08-23 DJ Delorie <dj@redhat.com>
1842
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.
1847
5f48f258
DD
18482000-08-21 DJ Delorie <dj@redhat.com>
1849
1850 * README: Update
1851
1852 * fromcwd.cc (found_file): don't remember the canonicalized version
1853
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
1859
713bbe5f
DD
18602000-08-11 DJ Delorie <dj@redhat.com>
1861
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
1871
1872 * mount.cc: remove debug statement
88bcaf07 1873
2e9cbac5
DD
18742000-08-08 DJ Delorie <dj@redhat.com>
1875
1876 * Makefile.in (version.c): make version checking more robust
1877 * splash.cc (load_dialog): handle case where there's no version
1878
8507f105
DD
18792000-08-07 DJ Delorie <dj@redhat.com>
1880
1881 * (all): add cvsid tags
1882 * Makefile.in: generate version.c from ChangeLog, add splash.o
1883 * splash.o: new
1884 * res.rc: add splash screen
88bcaf07 1885
f5d0464b
DD
18862000-08-02 DJ Delorie <dj@redhat.com>
1887
4e8ff53f
DD
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
1893
f5d0464b
DD
1894 * concat.cc (concat): canonicalize x:// to x:/ (exception to ://
1895 meaning an url)
1896
76cbfa85
DD
18972000-08-02 Norman Vine <nhv@yahoo,com>
1898
1899 * msg.cc (mbox): added MB_TOPMOST to MessageBox type flags
1900
e92c4436
DD
19012000-08-01 DJ Delorie <dj@redhat.com>
1902
bf74c544
DD
1903 * postinstall.cc (each): don't rename files we ignore
1904 (do_postinstall): set CYGWINROOT to root_dir, chdir there
1905
e92c4436
DD
1906 * desktop.cc: have /etc/profile call ~/.profile and ~/.bashrc
1907
a6100861
DD
19082000-07-31 DJ Delorie <dj@redhat.com>
1909
1910 * desktop.cc: reverse PATH so /usr/bin precedes /bin
1911
b11b49f3
DD
19122000-07-18 DJ Delorie <dj@redhat.com>
1913
a99bdfd8
DD
1914 * autoload.c: new, autoload dlls that might not be available.
1915 * Makefile.in (OBJS): add autoload.o
1916
1917 * res.rc: rewrite root options (text/binary, system/user) to be
1918 more obvious.
1919
b5b282c4
DD
1920 * site.cc (get_site_list): trim displayed URL, sort by domain
1921
1922 * net.cc (do_net): make IE5 default to checked, for now
1923
b11b49f3
DD
1924 * choose.cc (do_choose): sort packages correctly
1925 * ini.cc (do_ini): handle parse errors more gracefully
1926 (yyerror): ditto
1927 (fprintf): line buffer output
b5b282c4 1928 (do_ini): if we can't load setup.ini, go back to the site list.
b11b49f3
DD
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
1934
1fd6d0a2
DD
19352000-07-17 DJ Delorie <dj@cygnus.com>
1936
1937 * coding standards fixups, many files
1938 * mkdir.cc: warn about deletions *before* deleting them
1939
ed3e8b9b
DD
19402000-07-17 Jeff Juliano <juliano@cs.unc.edu>
1941
1942 * res.rc (IDD_OTHER_URL): reorder to give default focus to entry
1943
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
1952
1953 * concat.cc (concat): avoid segfault when first parm is null
88bcaf07 1954
f57c332f
DD
19552000-07-13 DJ Delorie <dj@cygnus.com>
1956
1957 * postinstall.cc: new
1958 * Makefile.in: add postinstall.o
1959 * concat.h: add backslash ()
1960 * concat.cc: ditto
1961 * desktop.cc (etc_profile): don't do postinstall
1962 (backslash): moved to concat.cc
1963 (uexists): new
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
1968 * install.cc: ditto
1969 * main.cc: add postinstall, exit_msg
1970 * resource.h: add postinstall
d6cda811 1971 * README: add more to-do items
f57c332f 1972
3a8e3956
DD
19732000-07-12 DJ Delorie <dj@cygnus.com>
1974
1975 * desktop.cc: add /etc/postinstall/ support
1a18aed7 1976 * install.cc: add more "standard" directories
3a8e3956 1977
e0c3d906
DD
19782000-07-11 DJ Delorie <dj@cygnus.com>
1979
1980 * desktop.cc: create /etc/profile
ad09bcd9
DD
1981 * desktop.cc: fix include syntax
1982 * Makefile.in: add auto-dependencies
24e259bb
DD
1983 * root.cc: support system vs user
1984 * desktop.cc: ditto
1985 * mount.h: ditto
1986 * mount.cc: ditto
1987 * install.cc: ditto
1988 * res.rc: ditto
1989 * resource.h: ditto
1990 * state.h: ditto
84d58d4c 1991 * desktop.cc: make sure we use backslashes, not slashes.
bf1d5889
DD
1992 * desktop.cc: don't set PATH in cygwin.bat, create /etc/passwd
1993 * geturl.cc: change math for percentage to avoid overflow
1994 * install.cc: ditto
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.
a3f48e18 1998 * desktop.cc: quote $PATH in case it has spaces in it
88bcaf07 1999
904d24fe
DD
20002000-07-10 DJ Delorie <dj@cygnus.com>
2001
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
1ab805b8 2008 * README: update to-do list
904d24fe 2009
04d6e06b
DD
20102000-07-10 DJ Delorie <dj@cygnus.com>
2011
2012 * ini.cc (do_ini): don't worry about timestamps if we're not
88bcaf07 2013 actually installing.
04d6e06b 2014
5601a13d
DD
20152000-07-09 DJ Delorie <dj@cygnus.com>
2016
2017 * Makefile.in: add -I$(srcdir) for ini.h
2018
23c9e63c
DD
20192000-07-06 DJ Delorie <dj@cygnus.com>
2020
2021 * Replace everything with a new GUI version
2022 * zlib/gzio.c: add gzctell() for progress displays
2023
20242000-06-22 DJ Delorie <dj@cygnus.com>
2025
2026 * setup.c (tarx): re-add call to write_pkg()
2027
aa32874b
DD
20282000-06-07 DJ Delorie <dj@cygnus.com>
2029
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"
2038 add "-h" for help
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
2046
99d1bf2d
DD
20472000-05-24 DJ Delorie <dj@cygnus.com>
2048
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.
2058
55650749
CF
2059Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
2060
2061 Fix compiler warnings throughout.
2062 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
2063 get_pkg_stuff.
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.
2071 (mkmount): Ditto.
2072 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
2073 scanning for the version number. Eliminate unneeded argument to
2074 create_uninstall.
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.
2078
f4dda8f0
DD
20792000-05-18 DJ Delorie <dj@cygnus.com>
2080
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.
2085
62844d84
CF
2086Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
2087
2088 * setup.c (cleanup): Inverse order of deletion stands a better chance
2089 of deleting cygpath.exe. Still seems to suffer from occasional races,
2090 though.
2091 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
2092 w2k.
2093 (output_file): Defend against an unlikely handle leak.
2094 (main): Don't set up signal handling until we have something special to
2095 do.
2096
ad6749c8
CF
2097Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
2098
2099 * path.c (kill_cygpath): Delete function.
2100 (exit_cygpath): Make more defensive so that it can be called at any
2101 time.
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
2106 tar.gz tail.
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.
2112
460cf7b6
CF
2113Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
2114
2115 * setup.c (do_start_menu): Don't concatenate paths to already built
2116 paths.
2117
9e76799c
CF
2118Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
2119
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
2122 that.
2123 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
2124 root"-specific.
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
2127 and cygwin1.dll.
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.
2132
2cf65e6e
CF
2133Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
2134
2135 * pkg.c (init_pkgs): Accept an argument to control what root registry
2136 key should be used.
2137 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
2138 * setup.h: Reflect init_pkgs prototype change.
2139
2140Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
2141
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
2160 regtool.
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
2165 installation.
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.
2173
4cf88dd9
CF
2174Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
2175
2176 * setup.c (optionprompt): Don't overlap display of already seen options
2177 on next page.
2178 (geturl): Print name of site which we're connecting to rather than "ftp
2179 site".
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
2185 signify an update.
2186
36591a07
CF
2187Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
2188
2189 * pkg.c: New file.
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
2194 if appropriate.
2195 * setup.h: Add pkg definitions.
2196
c298ea4a
CF
2197Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
2198
2199 * setup.c (findhref): Return NULL on empty string. Eat any trailing
2200 ";something".
2201 (processdirlisting): Attempt to limit recursively processing the same
2202 directory.
2203
f4cafa7e
CF
2204Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
2205
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
2210 leak.
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.
2219
cd475210
CF
2220Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
2221
2222 * setup.c (main): Change version number output.
2223
7dff5e71
CF
2224Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
2225
2226 * setup.c (tarx): Use full path name to tar executable.
2227 (main): Build full pathname to tar executable. Create /usr/local/etc
2228 by default.
2229
99437fdb
CF
2230Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
2231
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
2235 evident.
2236 (processdirlisting): Fix boolean algebra.
2237
0f562d55
CF
2238Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
2239
2240 * main.c (tarx): Add some code for future task of unmounting
2241 directories encountered in tar file.
2242
4356382d
CF
2243Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
2244
2245 * setup.c (findhref): Decode file size, when appropriate.
2246 (needfile): New function. Returns 1 when file should be
2247 downloaded.
2248 (processdirlisting): Always download if file size does not
2249 match. Prompt when download fails for some reason.
2250 (getdownloadsource): Accomodate findhref argument changes.
2251
6ab1ce6c
CF
2252Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
2253
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.
2261
37ee316b
CF
2262Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
2263
2264 * setup.c (main): Umount /bin and /lib.
2265
a59fb4fa
CF
2266Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
2267
2268 * setup.c (main): Create an empty /var/run/utmp.
2269
75f4b861
CF
2270Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
2271
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.
2277
d4a66789
CF
2278Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
2279
2280 * setup.c (mkmount): Use xcreate_process to start mount process,
2281 avoiding the shell.
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.
2284
a6c3982d
CF
2285Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
2286
2287 * setup.c (main): Remove the CYGWIN environment variable before
2288 starting any cygwin programs.
2289
0ffd5e3b
CF
2290Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
2291
2292 * setup.c (geturl): Use alternative method for finding filename part of
2293 a URL.
2294 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
2295 (downloaddir): Unlink file containing dir listing.
2296 (downloadfrom): Ditto.
2297
3e54bcf9
CF
2298Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
2299
2300 * setup.c (main): Disallow running setup.exe from the "root".
2301
005b73c4
CF
2302Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
2303
2cf65e6e 2304 Use "warning" function, where appropriate, to output warnings.
005b73c4
CF
2305 * setup.c (warning): New function -- outputs warning to console and log
2306 file.
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.
2309
36dc5fc8
CF
2310Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
2311
2312 * setup.c (processdirlisting): Make "N" option a little less aggressive.
2313
c73320de
CF
2314Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
2315
2316 * setup.c (tarx): Wait to after tar has completed to reset protections
2317 or suffer races with tar process.
2318
68cdfc92
CF
2319Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
2320
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
2330 files.
2331
35d18861
CF
2332Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
2333
2334 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
2335 download.
2336
20904de1
CF
2337Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
2338
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
2348 the log file.
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
2352 this structure.
2353 * xsystem.c (xcreate_process): Return proces handle when not waiting.
2354
c1246750
CF
2355Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
2356
2357 * path.c: New file.
2358 (pathfp): New function. Preliminary work for new -f cygpath
2359 functionality.
2360 * Makefile.in: Add new file.
2361 (pathcvt): Move to new file.
2362 (dtoupath): Ditto.
2363 (utodpath): Ditto.
2364 (pathcat): Ditto.
2365 * setup.c (processdirlisting): Always open file in text mode.
2366 (create_uninstall): Ditto.
2367 (getdownloadsource): Ditto.
2368 (main): Ditto.
2369
4b40edd0
CF
2370Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
2371
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
2381 when done.
2382
6f8e3b45
CF
2383Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
2384
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
2390 than \bin.
2391 (main): Add some expository text.
2392
2a907b70
CF
2393Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
2394
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.
2398
c4285a3c
CF
2399Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
2400
2401 * Makefile.in: Augment clean target.
2402
ea615d51
RP
2403Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
2404
2405 * README: Added info about non-working mingw implementation
c1246750 2406 * gzip.exe.gz: Replace with a version from the same build as the other
ea615d51 2407 tools.
c1246750 2408 * tar.exe.gz: Replace with a version from the same build as the other
ea615d51 2409 tools.
c1246750 2410 * mount.exe.gz: Add to repository until, mingw can build setup.
ea615d51
RP
2411 * cygpath.exe.gz: ditto
2412 * cygwin1.dll.gz: ditto
c1246750
CF
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
2417 them.
ea615d51
RP
2418 * setup.dsw: ditto
2419 * zlib.dsw: ditto
2420
51954e74
CF
2421Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
2422
c1246750
CF
2423 * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab
2424 cygwin1.dll from ../cygwin subdirectory.
51954e74
CF
2425 * gzip.exe.gz: Update.
2426 * tar.exe.gz: Update.
2427
7b777418
CF
2428Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
2429
2430 * Makefile.in: Use ZLIB variable as a target.
2431
4306b490
CF
2432Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
2433
5e7eb909
CF
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
2436 sources.
4306b490
CF
2437 * configure.in: Locate correct objcopy.
2438 * configure: Regenerate.
2439
739457f4
CF
2440Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
2441
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
8507f105
DD
2451
2452%%% $Id$
2453$Revision$
This page took 0.304856 seconds and 5 git commands to generate.