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