1 2001-12-28 Christopher Faylor <cgf@redhat.com>
3 * Makefile.in (iniparse.o): Accommodate newer bisons.
5 2001-12-23 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
7 * window.h (Window): New file, new class.
8 * window.cc (Window): New file, new class.
10 * threebar.h (ThreeBarProgressPage): New file, new class.
11 * threebar.cc (ThreeBarProgressPage): New file, new class.
13 * splash.h (SplashPage): New file, new class.
14 * splash.cc (SplashPage): Replace file with implementation of new
17 * source.h (SourcePage): New file, new class.
18 * source.cc: Run indent.
19 (SourcePage): Add class implementation to this file.
20 (do_source): Remove, functionality subsumed by SourcePage::Create()
21 and SourcePage::OnDeactivate().
22 (dialog_proc): Remove, functionality subsumed by
23 SourcePage::OnActivate().
26 (SitePage): Add class declaration.
27 * site.cc: Run indent.
28 (SitePage): Add class implementation.
29 (do_download_site_info_thread): New function.
30 (context): New var. Context info for do_download_site_info_thread().
31 (do_download_site_info): New function.
32 (SitePage::Create, SitePage::OnInit SitePage::OnNext)
33 (SitePage::OnBack): SitePage class implementation..
34 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers, now handled
36 (dialog_proc): Remove, now handled by SitePage::OnInit and base class
38 (do_site): Remove, now handled by do_download_site_info_thread() and
39 SitePage::OnNext functionality.
40 (get_site_list): Remove dismiss_url_status_dialog() call.
42 * root.h (RootPage): New file, new class.
43 * root.cc: Run indent.
44 (dialog_cmd): Pass parent HWND parameter to note(), yesno().
45 (dialog_proc): Remove.
47 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL clauses from switch.
48 (RootPage::OnInit): New member function. Move get_root_dir() logic to
50 (RootPage::Create): New member function.
51 (RootPage::OnNext): New member function. Move IDOK logic from
53 (RootPage::OnBack): New member function.
55 * propsheet.h (PropSheet): New file, new class.
56 * propsheet.cc (PropSheet): New file, new class.
58 * proppage.h (PropertyPage): New file, new class.
59 * proppage.cc (PropertyPage): New file, new class.
61 * postinstall.cc (do_postinstall): Add owner parameter.
63 * other.cc (do_other): Add owner parameter.
65 * nio-file.cc (NetIO::Purl): Pass NULL parent param to note().
66 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Pass NULL parent param to
68 * nio-http.cc (retry_get): Pass NULL parent param to get_auth(),
71 * nio-ie5.cc (NetIO::_url): Pass NULL parent param to note(),
72 get_auth(), get_proxy_auth().
74 * netio.h (get_auth, get_proxy_auth, get_ftp_auth): Add owner param.
75 * netio.cc (auth_common, NetIO::get_auth, NetIO::get_proxy_auth,
77 (auth_common): Add owner param. Pass owner param to DialogBox.
78 (NetIO::get_auth, NetIO::get_proxy_auth, NetIO::get_ftp_auth): Pass
79 owner param to auth_common().
81 * net.h (NetPage): New file, new class.
83 (net.h, threebar.h): Add includes.
84 (Progress): Add extern.
85 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, now handled by
86 property sheet logic. Saved temporarily for reference.
87 (NetPage::Create, NetPage::OnInit, NetPage::OnDeactivate,
88 NetPage::OnNext, NetPage::OnBack):
89 New implementation of NetPage class members.
91 (dialog_proc): Remove.
93 * msg.h (fatal, note, yesno): Add owner param.
94 * msg.c (fatal, note, yesno, mbox): Add owner param.
95 (mbox): Remove MB_TOPMOST from MessageBox call. Unnecessary and wrong
96 now that we have a parent.
98 * main.cc: Run indent.
99 (commctrl.h, proppage.h, propsheet.h, splash.h, source.h)
100 (localdir.h, net.h, site.h, choose.h, threebar.h, desktop.h): Include
102 (root_dialog_proc): extern into this file.
103 (Progress): Progress dialog defined here, used in several other files.
104 (WinMain): Instantiate and create Splash, Source, Root, LocalDir, Net,
105 Site, Chooser, Desktop pages and MainWindow sheet. Call
106 InitCommonControls() to make sure Windows is set up for our use of
107 property sheets. Add pages to sheet.
108 Call MainWindow.Create() to "DoModal". Remove main loop, that logic is
109 now handled by the PropSheet class.
110 (root.h): Add include.
112 * log.cc (log_save): Pass NULL parent to fatal().
113 (exit_setup): Pass NULL parent to note().
115 * localdir.h (LocalDirPage): New file, new class.
116 * localdir.cc: Run indent.
117 (localdir.h): New include.
118 (threebar.h): New include.
119 (Progress): extern into this file.
120 (LocalDirPage::Create, LocalDirPage::OnInit, LocalDirPage::OnActivate)
121 (LocalDirPage::OnNext, LocalDirPage::OnBack): Implementation of
123 (LocalDirPage::OnNext): Move log() call from do_local_dir() to here.
124 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers.
125 (do_local_dir): Remove.
126 (dialog_proc): Remove.
127 (cwd): Remove, not used by anything.
129 * install.cc: Run indent.
130 (process.h, threebar.h): New includes.
131 (Progress): extern into this file.
132 (ins_dialog, ins_action, ins_pkgname, ins_filename, ins_pprogress)
133 (ins_iprogress, ins_diskfull, init_event): Remove, now handled by
134 ThreeBarProgressPage.
135 (dialog_cmd, dialog_proc, dialog): Removed, handled in
136 ThreeBarProgressPage.
137 (init_dialog): Remove all mention of the above ins_* handles. Now
138 handled in ThreeBarProgressPage. Altered SetWindowText()s to call
139 ThreeBarProgressPage instance Progress directly.
140 (progress): Alter bar update logic to call ThreeBarProgressPage
141 instance Progress directly.
142 (uninstall_one): Alter SetWindowText()s to call ThreeBarProgressPage
143 instance Progress directly.
144 (install_one_source): Alter SetWindowText()s to call
146 instance Progress directly. Pass NULL parent to note().
147 (do_install_thread): Rename from do_install(), added owner param.
148 Alter SetWindowText()s to call ThreeBarProgressPage instance Progress
150 Remove dismiss_url_status_dialog() call, no longer necessary. Remove
151 ShowWindow(<hide>) call, also unnecessary now. Pass owner handle to
153 (do_install_reflector): New function.
154 (do_install): New function.
156 * ini.cc (process.h, threebar.h): New includes.
157 (Progress): externed into this file.
158 (find_routine): Pass NULL parent to note().
159 (do_local_ini): Add owner param.
160 (do_remote_ini): Add owner param. Pass owner to get_url_to_membuf()
161 and note(). Remove call to dismiss_url_status_dialog().
162 (do_ini_thread): Rename from do_ini(). Add owner param. Pass owner to
163 do_local_ini(), do_remote_ini(), yesno(), and note(). Set next_dialog
164 to IDD_CHOOSER on exit.
165 (do_ini_thread_reflector): New function.
166 (context): New var. Context for do_ini_thread.
167 (do_ini): New function.
169 * geturl.h (get_url_to_membuf, get_url_to_string, get_url_to_file): Add
171 * geturl.cc (gw_dialog, gw_url, gw_rate, gw_progress, gw_pprogress,
173 (gw_progress_text, gw_pprogress_text, gw_iprogress_text, init_event):
175 (threebar.h): New include.
176 (Progress): externed into this file.
177 (dialog_cmd, dialog_proc, dialog): Removed, handled by
178 ThreeBarProgressPage now.
179 (init_dialog): Remove "if (gw_dialog == 0)" clause. Alter
181 and bar setting SendMessage()s to call ThreeBarProgressPage instance
182 Progress directly. Remove "one bar only" logic, this is now handled
183 explicitly in the ThreeBarProgressPage class.
184 (progress): Altered bar and text update logic to call
185 ThreeBarProgressPage instance Progress directly. Changed kbps
186 calculation to floating point and now print out a single decimal
188 (get_url_to_membuf): Add owner param. Pass it to init_dialog.
189 (get_url_to_string): Add owner param. Pass it to get_url_to_membuf.
190 (get_url_to_file): Add owner param. Pass it to init_dialog. Alter bar
191 update logic to call ThreeBarProgressPage instance Progress directly.
192 (dismiss_url_status_dialog): Remove.
194 * fromcwd.cc (do_fromcwd): Add owner param. Initialize found_ini to
197 * download.cc: Run indent.
198 (process.h, threebar.h): New includes.
199 (Progress): externed into this file.
200 (download_one): Add owner param. Pass it to get_url_to_file().
201 (do_download_thread): Renamed from do_download. Add owner param. When
202 calculating total_download_bytes, take binpicked and srcpicked into
203 account. Remove call to dismiss_url_status_dialog(), no longer needed.
204 Pass owner handle to download_one() and yesno().
205 (do_download_reflector, do_download): New functions.
206 (context): New var. Context for do_download_thread().
208 * dialog.h (D(x)): Add owner param.
210 * desktop.h (DesktopSetupPage): New file, new class.
211 * desktop.cc: Run indent.
212 (desktop.h): Add include.
213 (dialog_proc, do_desktop): Remove, now handled in
214 DesktopSetupPage::OnInit().
215 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, handled in
216 DesktopSetupPage::OnFinish(), DesktopSetupPage::OnBack(), and PropSheet
218 (DesktopSetupPage::Create, DesktopSetupPage::OnInit)
219 (DesktopSetupPage::OnBack, DesktopSetupPage::OnFinish): Implementation
222 * cistring.h: New file, new class.
223 * cistring.cc: New file, new class.
225 * choose.h: Run indent.
226 (Chooser): New class declaration.
227 * choose.cc: Run indent.
228 (do_choose): Add owner param. Pass it to DialogBox() and
230 (Chooser): New class implementation.
232 * res.rc (IDS_VERSION_INFO): New string.
233 (IDD_SOURCE, IDD_LOCAL_DIR, IDD_ROOT, IDD_SITE, IDD_OTHER_URL)
234 (IDD_DLSTATUS, IDD_INSTATUS, IDD_SPLASH, IDD_CHOOSE, IDD_DESKTOP):
235 Change WS_POPUP to WS_CHILD. Numerous positioning/size changes
237 (IDD_CHOOSE): Give template the WS_EX_CONTROLPARENT style to enable
238 TAB control navigation etc. Give the controls a reasonable tab order.
239 Grouped radio buttons. Something's still not right, can't tab away
240 from back/next/cancel group reliably.
241 * resource.h (IDD_CHOOSER): New dialog ID.
243 * Makefile.in (OBJS): Add cistring.o, proppage.o, propsheet.o,
244 threebar.o, and window.o.
246 2001-12-21 Robert Collins <rbtcollins@hotmail.com>
248 * choose.cc (listview_proc): Update the scrollbar when the headers are dragged.
249 (pick_pkg_line::paint): Clip columns to prevent overlap.
251 2001-12-20 Robert Collins <rbtcollins@hotmail.com>
253 * Makefile.in: Add libcomctl32.a for setup.exe.
254 * archive.h (archive): Prevent non-child direct creation of the class.
255 * archive_tar.h (archive_tar): Prevent inaccurate synthetic copy and assignment.
256 * choose.cc: Include commctrl for the choose header.
257 (NEW_COL_SIZE_SLOP): Define without magic numbers.
258 (pkgtrustp): Convert to function.
259 (set_action): Remove.
260 (add_required, fill_missing_category,default_trust): Use list syntax for
263 (choose_caption): Remove.
264 (topbucket::paint): New method.
265 (topbucket::empty): Ditto.
266 (topbucket::click): Ditto.
267 (topbucket::~topbucket): Ditto.
268 (paint): Remove i,ii and p as they are obsolete.
269 Remove header drawing code.
270 Use new chooser method to paint the chooser.
271 Use new chooser itemcount method.
272 (scroll_common): Rename to view::scroll.
273 Scroll the header window separately.
274 (list_vscroll, list_hscroll, list_click): Update for new chooser methods.
275 (listview_proc): Look for header messages.
276 (note_width): Accept stringless calls.
277 (pick_line::set_line): Remove.
278 (pick_line::paint): Remove.
279 (pick_pkg_line::paint): Paint this one line, using the header column widths.
280 (pick_category_line::paint): Paint this category, and anything in the bucket.
281 (pick_line::click): Remove.
282 (pick_pkg_line::click): Handle a click.
283 (pick_category_line::click): Handle a click.
284 (_view): Rename all to view.
285 (view::view): Initialise the control contents.
286 (view::set_headers): Work with the header control.
287 (view::init_headers): Use list syntax for package list.
288 Rearrange the width logic a little.
289 (view::insert_pkg): Update to use the hierarchy.
290 (view::insert_category): Ditto.
291 (view::insert_at, view::insert_under): Remove.
292 (view::clear_view): Update to use the hierarchy.
293 (view::click): Update to use the hierarchy.
294 (set_view_mode): Use list syntax for package list.
295 Update for new chooser methods.
296 (DoInsertItem): New helper function. (Needs a home somewhere).
297 (create_listview): Remove choose control code and use the constructor instead.
298 (dialog_cmd,scan2,do_choose): Use list syntax for package list.
299 * choose.h: Include newly required headers list and package_meta.
300 (_voew): Rename to view.
301 (pick_line): Convert to an ABC.
302 (pick_pkg_line): New class.
303 (pick_catgory_line): New class.
304 (topbucket): New class.
305 (view::scroll): New method created from listview_scroll function.
306 * desktop.cc (make_passwd_group): Use list syntax for package list.
307 * download.cc (do_download): Use list syntax for package list.
308 * fromcwd.cc (found_file): Use list syntax for package list.
309 * iniparse.y (pacakges): Use list syntax for package list.
310 * install.cc (uninstall_one): Use list syntax for package list.
311 (do_install): Use list syntax for package list.
312 * io_stream.h (io_stream): Prevent non-child direct creation of the class.
313 Prevent inaccurate synthetic copy and assignment.
314 * list.h: Include required header stdlib.
315 Work on const correctness.
316 * package_db.cc (packagedb::getpackagebyname): Remove.
317 (packagedb::packagedb): Remove custom list code, and make db a local.
318 (packagedb::getfirstpackage): Remove.
319 (packagedb::getnextpackage): Remove.
320 (packagedb::addpackage): Remove.
321 (flush): Remove custom list code.
322 (packagedb::registerpackage): Remove.
323 (packagedb::packages): New static member.
324 (packagedb::task): New static member.
325 * package_db.h (PackageDBActions): New enum.
326 (packagedb): Remove getfirstpackage, getnextpackage, getpackagebyname,
327 addpackage, registerpackage, packages, packagecount, curr_package, db.
329 * pacakge_meta.cc: Include package_db.h.
330 (packagemeta::action_caption): New method.
331 (packagemeta::set_action): New method.
332 * package_meta.h (CategoryPackage): Initialise key.
333 (packagemeta): Initialise key.
334 Add set_action and action_caption methods.
335 Prevent inaccurate synthetic copy and assignment.
336 * resource.h (IDC_CHOOSE_LISTHEADER): New ID.
337 * source.cc: Include package_db for db manipulation.
338 (save_dialog): Set the db task.
339 * win32.h: Tell the w32 include headers what IE version to expect/require.
341 2001-12-06 Robert Collins <rbtcollins@hotmail.com>
343 * README: Wishlist updates.
345 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
347 * package_db.cc (getnextpackage): Don't overrun the array.
349 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
351 * Makefile.in (OBJS): Add setup_version.o.
352 (version.c): Rename to setup_version.
353 * choose.cc (set_action): Prevent NULL pointer dereference.
354 (package_sort): Remove.
355 * fromcwd.cc (canonicalize_version): Moved to version.cc.
356 (check_ini): New function for use with find to see if there is a cached setup.ini.
357 (do_fromcwd): Check for a cached setup.ini from any mirror site.
358 * ini.cc (find_routine): New function, for finding cached setup.ini's.
359 (do_local_ini): New function, drives parsing of local ini's.
360 (do_remote_ini): New function, drives parsing and caching of remote ini's.
361 (do_ini): Move guts to do_remote_ini and do_local_ini.
362 * list.h (removebyindex): New method.
363 * other.cc (save_dialog): Use new site_list and all_site_list to add the
364 new site to the site picklist.
365 (dialog_cmd): Only save the dialog when exiting the dialog.
366 * res.rc (IDD_SITE): Make IDC_URL_LIST a multiple-selection control.
367 * site.cc (site_list_type): Move to site.h
368 (site_list): New global, sites chosen by the user.
369 (all_site_list): New global, all potential sites.
370 (site_list_type::init): New method, parses a mirror.lst URL string into a
371 site_list_type object.
372 (site_list_type::site_list_type): New method.
373 (check_if_enable_next): Examine the control, not a local variable.
374 (load_dialog): Select all the user chosen sites by default.
375 (save_dialog): Adjust for multiple selection semantics.
376 (save_site_url): Save all user chosen sites.
377 (dialog_cmd): Don't save the dialog when the listbox recieves a message -
379 Remove obsolete other_url reference.
380 (dialog_proc): Use all_site_list instead of site_list.
382 (get_site_list): Remove malloc use - use list template instead.
383 Move site_list_type initialisation to site_list_type::init().
384 (get_initial_list_idx): Renamed to ...
385 (get_saved_sites): this. Also read in multiple sites to the site_list.
386 (do_site): Use all_site_list not site_list.
387 Log all chosen sites.
388 * site.h: New file, defines site related class, functions and variables.
389 * state.h: Add comment about use of state.h
390 (mirror_site): Remove.
392 (MIRROR_SITE): Remove.
393 * version.cc: New file, for version-handling and related functions.
395 2001-12-02 Robert Collins <rbtcollins@hotmail.com>
397 * Makefile.in: Add filemanip.o to setup.
398 * archive.cc (archive::extract_file): Use new io_stream method 'copy'.
399 * archive_tar.h (archive_tar_file): Implement get_size virtual.
400 (archive_tar): Ditto.
401 * choose.cc (set_action): Use [] operator instead of getnth - its more readable.
403 (_view::init_headers): Ditto.
404 (_view::insert_pkg): Ditto.
405 (set_view_mode): Ditto.
408 (base): Moved to filemanip.cc.
409 (find_tar_ext): Ditto.
410 (parse_filename): Ditto.
411 (_Info::_Info): Remove.
412 * compress_bz.h (compress_bz): Implement get_size virtual.
413 * compress_gz.h (compress_gz): Implement get_size virtual.
414 * cygpackage.cc (cygpackage::destroy): Use array delete for char * objects.
415 * download.cc (get_file_size): Move to filemanip.cc.
416 (check_for_cached): Use [] operator instead of getnth - its more readable.
417 (download_one): Ditto.
418 * filemanip.cc: New file.
419 * geturl.cc (init_dialog): Make url a pointer to const as it is not modified.
420 (get_url_to_membuf): New function - contains get_url_to_string worker code.
421 (get_url_to_string): Becomes a trivial wrapper to get_url_to_membuf.
422 * geturl.h: Declare new prototype.
423 * ini.cc (do_ini): Use get_url_to_membuf and pass ini_init an io_stream.
424 Tidy up the error code a little.
425 * ini.h: Remove __cplusplus protection for ini_init.
427 * inilex.l: Remove old globals.
428 (ini_init): Use an io_stream for getting the characters.
429 (ini_getchar): Ditto.
430 * iniparse.y: Declare yylex as a C++ function.
431 (add_correct_version): Use [] operator instead of getnth - its more readable.
432 * io_stream.cc (io_stream::move_copy): Use the copy method.
433 (io_stream::copy): New method to simply copy from one stream to another.
434 * io_stream.h (io_stream): New static method copy, and virtual method get_size.
435 * io_stream_cygfile.cc (io_stream_cygfile::get_size): Implement this.
436 * io_stream_cygfile.h (io_stream_cygfile::get_size): Declare this.
437 * io_stream_file.cc (io_stream_file::get_size): Implement this.
438 * io_stream_file.h (io_stream_file::get_size): Declare this.
439 * io_stream_memory.h: Include errno as it's neded to parse the header.
440 (io_stream_memory::get_size): Implement this.
441 (io_stream_memory::st_size): Delete this.
442 * list.h: Change getnth into the [] operator.
443 * netio.cc (NetIO::NetIO): Change prototype to reflect Purl not being modified.
444 (NetIO::set_url): Ditto.
445 (NetIO::open): Ditto.
446 * netio.h: As for netio.cc.
447 * nio-file.cc (NetIO_File::NetIO_File): Change prototype to reflect Purl not
450 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
451 * nio-ftp.h (NetIO_FTP::NetIO_FTP): Ditto.
452 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Ditto.
453 * nio-http.h (NetIO_HTTP::NetIO_HTTP): Ditto.
454 * nio-i5.cc (NetIO_IE5::NetIO_IE5): Ditto.
455 * nio-i5.h (NetIO_IE5::NetIO_IE5): Ditto.
456 * package_meta.cc (packagemeta::~packagemeta): Bugfix: use array delete.
457 * package_source.cc (packagesource::set_canonical): Ditto.
458 (packagesource::set_cached): Ditto.
459 * package_source.h (site::~site): Ditto.
460 * site.cc: Change site_list_type to a class, and search and replace sort_key to
463 2001-12-01 Robert Collins <rbtcollins@hotmail.com>
465 * package_source.cc (packagesource::set_canonical): Filename was out by one.
467 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
469 * Makefile.in (OBJS): Remove category_list - it's not needed.
470 * README: More wishlist updates.
471 * category.cc (Category::Category): Initialise new members.
472 (Categorycmp): New function.
473 * category.h (Category): New member key for template use.
474 * category_list.cc: Remove.
475 * category_list.h: Remove.
476 (Categorycmp): New function prototype.
477 * choose.cc: Remove category_list - not needed.
478 (set_action): Only show the 'source' option when the source is actually
480 (add_required): Fix recursion limiter to 5.
481 (fill_missing_category): Use list access.
482 (default_trust): Ditto.
483 (pick_line::paint): Ditto.
484 (_view::init_headers): Ditto.
485 (_view::insert_pkg): Ditto.
486 (_view::insert_category): Ditto.
487 (_view::click): Ditto.
488 (set_view_mode): Ditto.
490 * cygpackage.h: Remove category_list - not needed.
491 * geturl.cc (get_url_to_string): Fix null byte insertion.
492 * inipatse.y: Remove category_list - not needed.
493 (categories): Use list access.
494 * package_db.cc: Ditto.
495 * package_db.h: Remove category_list - not needed.
496 (packagedb): Use the list template for categories.
497 * package_meta.cc (add_category): Ditto.
498 * package_meta.h (CategoryPackage): Link to the category as well.
499 (packagemeta): Use a list of CategoryPackages instead of Categories
500 for more memory efficient cross-referencing.
502 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
504 * package_db.cc (packagedb::flush): Write a canonical version for all packages
505 irrespective of the media they were installed from.
507 2001-11-29 Robert Collins <rbtcollins@hotmail.com>
509 * Makefile.in (OBJS): Add package_source and rfc1738.
510 * README: Wishlist update.
511 * category_list.cc (register_category): Use references.
512 * category_list.h (CategoryList): Ditto.
513 * choose.cc (isinstalled): Remove.
514 (pkgtrustp): New macro.
515 (set_action): Use packagemeta.
516 (add_required): Ditto.
517 (choose_caption): Example package to choose caption, rather than state flags.
518 (check_existence): Remove.
519 (set_existence): Remove old code.
520 (fill_missing_category): Use packagemeta.
521 (keep_or_skip): Remove.
522 (default_trust): Use packagemeta and set trust values directly.
523 (pick_line::set_line): Use packagemeta.
524 (_view::insert_pkg): Ditto.
525 (_view::insert_category): Ditto.
526 (_view::click): Ditto.
527 (set_view_mode): Ditto. Also remove "exclude" code.
528 (create_listview): Use packagemeta.
530 (getpkgbyname): Remove
531 (scan2): Use packagemeta. Temporarily comment out the holefinding code.
532 (read_installed_db): Remove.
533 (package_sort): Use packagemeta.
534 (do_choose): Use packagemeta. Don't sort the packages - the db does that.
535 * choose.h: Use packagemeta.
536 * cygpackage.cc (cygpackage::cygpackage): Initialise all variables.
537 (cygpackage::cygpackage): Ditto.
538 (cygpackage::set_canonical_version): Copy the passed string.
539 (cygpackage::~cygpackage): Move cleanup code to destroy().
540 (cygpackage::destroy): New function.
541 (cygpackage::getfirstfile): Use a separate buffer.
542 (cygpackage::getnextfile): Ditto.
543 (cygpackage::Canonical_version): New function.
544 (cygpackage::set_sdesc): Ditto.
545 (cygpackage::set_ldesc): Ditto.
546 * cygpackage.h (cygpackage::Canonical_version): New method.
547 (cygpackage::set_sdesc): New method.
548 (cygpackage::set_ldesc): New method.
549 (cygpackage::SDesc): New method.
550 (cygpackage::LDesc): New method.
551 (cygpackage::set_canonical_version): New method.
552 * desktop.cc: Include packagedb headers.
553 (make_password_group): Use packagemeta.
554 * download.cc: Include packagedb headers.
555 (check_for_cached): New method to find any cached file and fill out the database
557 (download_one): Take a packagesource, support multiple mirrors.
558 (do_download): Use packagemeta.
559 * from cwd.cc: Include packagedb headers.
560 (found_file): Use packagemeta.
561 * ini.cc (do_ini): Beginning of multiple-mirror support.
562 * ini.h (CategoryPackage): Remove.
563 (Dependency): Remove.
565 (new_package,getpkgbyname,getpackagecategorybyname,add_category): Remove.
566 * inilex.l: Support multiple mirrors.
567 * iniparse.y: Include packagedb headers.
568 (parser): Use packagemeta.
569 (new_package): Remove.
570 (add_correct_version): New function.
571 (new_requirement): Remove.
572 (add_category): Remove.
573 * install.cc (uninstall_one): Use packagemeta.
574 (install_one_source): New function.
575 (install_one): Use packagemeta.
576 (do_install): Use packagemeta.
577 * io_stream.cc (io_stream::move): Bugfix on move/copy case.
578 * io_stream_cygfile.cc (io-stream_cygfile::set_mtime): Do not reopen the file
579 after setting the mtime, it makes no sense, and results in 0 length files.
580 * io_stream_file.cc (io-stream_file::set_mtime): Ditto.
581 * list.h: New file, template class for a form of list.
582 * package_db.cc (packagedb::registerpackage): New function.
583 * package_db.h (packagedb::npackages ()): New method.
584 * package_meta.cc (packagemeta::add_version): Use list template.
585 (packagemeta::set_installed): Ditto.
586 (packagemeta::add_category): New method.
587 * package_meta.h: Include necessary headers to parse the class.
588 (CategoryPackage): New class.
589 (packagemeta): Initialise all members.
590 (packagemeta::SDesc): New method.
591 (packagemeta::Categories): New method.
592 (packagemeta::add_category): Ditto.
593 (packagemeta::versions): Change to be a list instance.
594 * package_source.cc (packagesource::set_canonical): New method.
595 (packagesource::set_cached): New method.
596 * package_source.h: Include necessary headers to parse the class.
598 (packagesource::packagesource): Initialize all members.
599 (packagesource): Make this class non-abstract.
600 * package_version.cc (packageversion::packageversion): New method.
601 * package_version.h (Dependency): New class.
602 (packageversion::Canonical_vesion): New method.
603 (packageversion::SDesc): New method.
604 (packageversion::LDesc): New method.
605 (packageversion::new_requirement): Ditto.
606 (packageversion::srcpicked, binpicked): What to install.
607 (packageversion::src, bin): Installation source data.
608 * rfc1738.cc: New file. Escapes special characters in URL's.
611 2001-11-26 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
613 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Stop header parsing when
614 SimpleSocket::gets() returns a zero-length string, so that we
615 don't end up eating the entire stream thinking it's all header info.
617 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
619 * install.cc (badrename): Remove.
620 (do_install): Use packagedb flush method to write /etc/setup/installed.db.
621 * io_stream.cc (io_stream::move_copy): New method.
622 (io_stream::move): New method.
623 * io_stream.h (io_stream): New methods move and move_copy.
624 * io_stream_cygfile.cc (io_stream_cygfile::move): New method.
625 * io_stream_cygfile.h (io_stream_cygfile): New method move.
626 * io_stream_file.cc (io_stream_file::move): New method.
627 * io_stream_file.h (io_stream_file): New method move.
628 * package_db.cc (packagedb::flush): New method.
629 * package_db.h (packagedb): New method flush.
631 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
633 * Makefile.in (OBJS): Add package_version.
634 * ategory.cc (Category::Category): Update constructors.
635 * category_list.cc (CategoryList::register_category): Insert correctly.
636 * choose.cc: Include package_version.h, not package.h.
637 * cygpackage.cc: Ditto.
638 (cygpackage::uninstall): New method.
639 * cygpackage.h (cygpackage): Rename genericpackage to packageversion.
640 New method uninstall.
641 * hash.cc (add, has, enumerate): Change prototype to be accurate.
642 * hash.h (hash): Change prototypes to be accurate.
643 * ini.h (_Info): New parameterless constructor.
644 (CategoryPackage): New constructor.
646 * install.cc: Don't include unneeded headers.
647 Include package database headers.
648 (hash::add_subdirs): Remove.
649 (uninstall_one): Use packagemeta->uninstall to perform the uninstallation.
650 Don't uninstall source packages.
651 (do_install): Just can uninstall_one once as we ignore source packages now.
652 Don't copy the installed.old database accross, instead iterate through the
653 packagedb packages list and write the isntalled packages out.
654 * package_db.cc: Include package_version.h, not package.h.
655 (packagedb::packagedb): Never let db be undefined.
656 Record the installation filename, so we can reconstruct installed.db.
657 (packagedb::addpackage): Insert packages in alpha sorted order.
658 (packagedb::categories): Initialise correctly.
659 * package_meta.cc: Include win32 and mount headers as a workaround to
660 current io_stream limitations. Include a TODO about that.
661 (standard_dirs): New, from install.cc.
662 (hash::add_subdirs): New, from install.cc.
663 (packagemeta::set_installed): Rename genericpackage to packageversion.
664 (packagemeta::uninstall): New method.
665 * package_meta.h: Rename genericpackage to packageversion.
666 (packagemeta): Update constructor.
667 (add_version, set_installed): Rename genericpackage to packageversion.
668 (uninstall): New method.
669 (installed_from): New member.
670 * package_source.cc: New file.
671 * package_source.h: New file.
672 * package_version.cc: New file.
673 * package_version.h: New file.
674 * package.cc: Removed.
675 * package.h: Removed.
677 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
679 * Makefile.in (OBJS): Add category.o and category_list.o.
680 * category.h: New file.
681 * category.cc: New file.
682 * category_list.h: New file.
683 * category_list.cc: New file.
684 * choose.cc: Include category headers.
685 (fill_missing_category): Use package_db to access global categories.
686 (_view::insert_pkg): Ditto.
687 (_view::insert_category): Ditto.
688 (set_view_mode): Ditto.
689 (getcategorybyname): Remove.
690 * cygpackage.h: Include category_list.h to parse this correctly.
691 (cygpackage): New virtual &Categories.
692 * ini.h (_CategoryPackage): More C to C++ conversion.
694 (getcategorybyname): Remove.
695 (register_category): Remove.
696 * iniparse.y: Include package db and category headers.
697 (categories): Use package_db to access global categories.
699 (ncategories): Remove.
700 (register_category): Remove.
701 * package.h: New virtual &Categories.
702 * package_db.cc (packagedb::packagedb): Don't read the installed db twice.
703 (packagedb::categories): Declare.
704 * package_db.h (packagedb): New member categories for global categories list.
706 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
708 * choose.h: Don't include ini.h
709 * ini.h: Allow pure c++ in the header file.
711 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
713 * install.cc (do_install): Write a version 2 installed.db file.
714 * package_db.cc (packagedb::packagedb): Read version 1 and 2 installed.db files.
716 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
718 * Makefile.in (OBJS): Add package abstraction objects.
719 * choose.cc: Include package abstraction headers.
720 (read_installed_db): Use packagedb class and ignore installed sources.
721 * cygpackage.cc: New file.
722 * cygpackage.h: New file.
723 * filemanip.h (get_file_size): Use unixy types.
724 * package.h: New file.
725 * package.cc: New file.
726 * package_db.cc: New file.
727 * package_db.h: New file.
728 * package_meta.cc: New file.
729 * package_meta.h: New file.
731 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
733 * REAME: Updates to wishlist.
735 2001-11-16 Robert Collins <rbtcollins@hotmail.com>
737 * README: Updated and added my list of wishlist and todo items.
739 2001-11-14 Robert Collins <rbtcollins@hotmail.com>
741 * Makefile.in (OBJS): Include io_stream_memory in setup.exe.
742 * archive_tar.cc (archive_tar::write): New prototype.
743 (archive_tar::seek): New method.
744 * archive.h (archive_tar_file): Update write() and add seek().
745 (archive_tar): Ditto.
746 * archive_tar_file.cc (archive_tar_file::write): New prototype.
747 (archive_tar_file::seek): New method.
748 * compress_bz.cc (compress_bz::write): New prototype.
749 (compress_bz::seek): New function.
750 * compress_bz.h (compress_bz): Update write() and add seek().
751 * compress_gz.cc (compress_gz::write): New prototype.
752 (compress_gz::seek): New function.
753 * compress_gz.h (compress_gz): Update write() and add seek().
754 * geturl.cc: Include io_stream headers.
756 (get_url_to_string): Use a io_stream_memory buffer instead of GUBuf.
757 * io_stream.h (io_stream_seek_t): New enum.
758 (io_stream): Update write() and add seek().
759 * io_stream_cygfile.cc (io_stream_cygfile::write): New prototype.
760 (io_stream_cygfile::seek): New function.
761 * io_stream_cygfile.h (io_stream_cygfile): Update write() and add seek().
762 * io_stream_file.cc (io_stream_file::write): New prototype.
763 (io_stream_file::seek): New function.
764 * io_stream_file.h (io_stream_file): Update write() and add seek().
766 2001-11-13 Brian Keener <bkeener@thesoftwaresource.com>
768 * localdir.cc: Add headers unistd.h and port.h.
769 (save_local_dir): Expand search logic to include local directory for
770 location of file last-cache.
771 (dialog_cmd): Skip IDD_ROOT when downloading and use Back button.
772 (do_local_dir): Expand search logic to include local directory for file
774 * res.rc (IDD_CHOOSE_DIALOG): Add hotkey to View button.
775 * Source.cc (dialog_cmd): Skip IDD_ROOT if select Download from
777 (do_source): Default to Install from Internet on first entry or
778 previous selection if backing up from IDD_ROOT or IDD_LOCAL_DIR.
780 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
782 * choose.cc (find_tar_ext): Only match at the end of the string.
783 (getpkgbyname): Prevent NULL pointer dereference.
785 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
787 * Makefile.in (CFLAGS): Add warnings and -Werr.
788 (WARNONLY_FLAGS): For sources that produce (harmless) errors no matter what.
789 (OBJS): Add io_stream class' objects.
790 (autoload.o): Use WARNONLY_FLAGS.
793 * archive.cc: New file.
794 * archive.h: New file.
795 * archive_tar.cc: New file.
796 * archive_tar.h: New file.
797 * archive_tar_file.cc: New file.
798 * autoload.c: Fix compiler warnings (unused, deprecated conversion).
799 * choose.cc: Use io_stream.h, not mount.h.
801 (find_tar_ext): Rewritten to use strstr, and to accept .tar as an extension.
802 (read_installed_db): Use io_streams.
803 * choose.h: Run indent.
804 * compress.cc: New file.
805 * compress.h: New file.
806 * compress_bz.cc: New file.
807 * compress_bz.h: New file.
808 * compress_gz.cc: New file.
809 * compress_gz.h: New file.
810 * concat.cc: Run indent.
811 (cvsid): Fix compiler warnings (unused, deprecated conversion).
812 * concat.h: Run indent.
813 * desktop.cc: Run indent.
814 Include mklink2.h rather than redefining by hand.
815 (cvsid): Fix compiler warnings (unused, deprecated conversion).
816 (etc_profile): Fix compiler warning (deprecated conversion).
817 (make_link): Fix compiler warning (deprecated conversion).
818 Tidy up use of args variable - consolidate into argbuf.
819 (start_menu): Fix compiler warning (deprecated conversion).
820 (desktop_icon): Fix compiler warning (deprecated conversion).
821 (make_etc_profile): Fix compiler warning (deprecated conversion).
822 (uexists): Fix compiler warning (deprecated conversion).
823 (check_desktop): Fix compiler warning (deprecated conversion).
824 (check_startmenu): Fix compiler warning (deprecated conversion).
825 * dialog.cc: Run indent.
826 (cvsid): Fix compiler warnings (unused, deprecated conversion).
827 (fatal): Fix compiler warning (deprecated conversion).
828 * dialog.h: Run indent.
829 * diskfull.cc: Run indent.
830 (cvsid): Fix compiler warnings (unused, deprecated conversion).
831 * download.cc: Run indent.
832 (cvsid): Fix compiler warnings (unused, deprecated conversion).
833 (download_one): Fix compiler warning (signed vs unsigned comparison).
834 * filemanip.h: Run indent.
835 * find.cc: Run indent.
836 (cvsid): Fix compiler warnings (unused, deprecated conversion).
837 (find): Fix compiler warning (deprecated conversion).
838 * find.h: Run indent.
839 * fromcwd.cc: Run indent.
840 * geturl.cc: Run indent.
841 (cvsid): Fix compiler warnings (unused, deprecated conversion).
842 (dialog_cmd): Return a value.
843 (dialog_proc): Remove unused variables.
845 (get_url_to_file): Fix compiler warning (deprecated conversion).
846 * geturl.h: Run indent.
847 * hash.cc: Run indent.
848 (cvsid): Fix compiler warnings (unused, deprecated conversion).
849 * hash.h: Run indent.
850 * ini.cc: Run indent.
852 (cvsid): Fix compiler warnings (unused, deprecated conversion).
853 (do_ini): Use io_streams for local io.
855 * inilex.l (ignore_line): Fix compiler warning (is not a prototype).
856 Fix compiler warning (brackets for truth assignment).
857 * install.cc: Run indent.
858 Fix compiler warning (/* in comment).
860 (cvsid): Fix compiler warnings (unused, deprecated conversion).
861 (dialog_cmd): Return a value.
862 (dialog_proc): Return a value.
863 (start_tics): Deleted - was unused.
864 (badrename): Fix compiler warnings (unused, deprecated conversion).
865 (standard_dirs): Fix compiler warning (deprecated conversion).
867 (uninstall_one): Convert to io_streams.
868 (install_one): Convert to io_streams.
869 (do_install): Convert to io_streans.
870 Fix compiler warning (deprecated conversion).
871 * io_stream.cc: New file.
872 * io_stream.h: New file.
873 * io_stream_cygfile.cc: New file.
874 * io_stream_cygfile.h: New file.
875 * io_stream_file.cc: New file.
876 * io_stream_file.h: New file.
877 * localdir.cc: Run indent.
879 (cvsid): Fix compiler warnings (unused, deprecated conversion).
880 (get_root_dir_now): Remove.
881 (save_local_dir): Convert to io_streams.
882 (dialog_cmd): Return a value.
883 (do_local_dir): Convert to io_streams.
884 (log.cc): Run indent.
885 (cvsid): Fix compiler warnings (unused, deprecated conversion).
886 (log): Fix compiler warning (deprecated conversion).
887 (log_save): Fix compiler warning (deprecated conversion).
889 (log): Fix compiler warning (deprecated conversion).
890 (log_save): Fix compiler warning (deprecated conversion).
891 * main.cc: Run indent.
892 Don't include "netio.h".
893 (cvsid): Fix compiler warnings (unused, deprecated conversion).
894 (netio_test): Remove.
895 (sid_auth): Fix compiler warning (partially bracketed initialiser).
896 (WinMain): Return a value.
897 * mkdir.cc: Run indent.
898 (cvsid): Fix compiler warnings (unused, deprecated conversion).
899 * mklink2.c: Run indent.
900 (cvsid): Fix compiler warnings (unused, deprecated conversion).
901 (mkcygsymlink): New function.
902 * mklink2.h: New file.
903 * mount.cc: Run indent.
904 (cvsid): Fix compiler warnings (unused, deprecated conversion).
905 (create_mount): Remove unused variables.
906 (cygpath): Fix compiler warning (signed vs unsigned comparison).
907 * mount.h: Run indent.
908 * msg.cc: Run indent.
909 (cvsid): Fix compiler warnings (unused, deprecated conversion).
910 (msg): Fix compiler warning (deprecated conversion).
911 (mbox): Fix compiler warning (deprecated conversion).
913 (msg): Fix compiler warning (deprecated conversion).
914 * net.cc: Run indent.
915 (cvsid): Fix compiler warnings (unused, deprecated conversion).
916 (dialog_cmd): Return a value.
917 * netio.cc: Run indent.
918 (cvsid): Fix compiler warnings (unused, deprecated conversion).
919 (auth_cmd): Return a value.
920 * netio.h: Run indent.
921 * nio-file.cc: Run indent.
922 (cvsid): Fix compiler warnings (unused, deprecated conversion).
923 (NetIO_File::NetIO_File): Fix compiler warning (deprecated conversion).
924 * nio-file.h: Run indent.
925 * nio-ftp.cc: Run indent.
926 (cvsid): Fix compiler warnings (unused, deprecated conversion).
927 * nio-ftp.h: Run indent.
928 * nio-http.cc: Run indent.
929 (cvsid): Fix compiler warnings (unused, deprecated conversion).
930 * nio-http.h: Run indent.
931 * nio-ie5.cc: Run indent.
932 (cvsid): Fix compiler warnings (unused, deprecated conversion).
933 * nio-ie5.h: Run indent.
934 * other.cc: Run indent.
935 (cvsid): Fix compiler warnings (unused, deprecated conversion).
936 (dialog_cmd): Return a value.
937 * port.h: Run indent.
938 * postinstall.cc: Run indent.
939 (cvsid): Fix compiler warnings (unused, deprecated conversion).
940 (cmd): Fix compiler warning (deprecated conversion).
941 (eun): Fix compiler warning (deprecated conversion).
942 * root.cc: Run indent.
943 (cvsid): Fix compiler warnings (unused, deprecated conversion).
944 * simpsock.cc: Run indent.
945 (cvsid): Fix compiler warnings (unused, deprecated conversion).
946 * simpsock.h: Run indent.
947 * site.cc: Run indent.
949 (cvsid): Fix compiler warnings (unused, deprecated conversion).
950 (get_root_dir_now): Remove.
951 (save_site_url): Convert to io_streams.
952 (dialog_cmd): Return 0.
953 (get_initial_list_idx): Convert to io_streans.
954 * source.cc: Run indent.
955 (cvsid): Fix compiler warnings (unused, deprecated conversion).
956 (check_if_enable_next): Remove.
957 (load_dialog): Remove unused variables.
958 (save_dialog): Ditto.
959 (dialog_cmd): Return a value.
960 * splash.cc: Return a value.
961 (cvsid): Fix compiler warnings (unused, deprecated conversion).
962 (dialog_cmd): Return a value.
963 * state.cc: Run indent.
964 (cvsid): Fix compiler warnings (unused, deprecated conversion).
965 * state.h: Run indent.
969 2001-11-12 Christopher Faylor <cgf@redhat.com>
971 * desktop.cc (start_menu): Change start menu name to "Cygwin".
972 (check_startmenu): Ditto.
974 2001-11-11 Christopher Faylor <cgf@redhat.com>
976 * choose.cc (parse_filename): Finish reorganization by correctly
977 decrementing p in memmove.
979 2001-11-11 Christopher Faylor <cgf@redhat.com>
981 * choose.cc (parse_filename): Reorganize code to work around gcc
982 optimization problem.
984 2001-11-09 Gareth Pearce <tilps@hotmail.com>
986 * choose.cc (set_action): Allow skip as an option for installed
987 packages that have version number not listed in setup.ini.
989 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
991 * choose.cc (set_cation): Backout last change.
992 (choose_caption): Ditto.
994 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
996 * ini.h (actions): Remove - transferred to choose.h.
998 * choose.h: Protect class's from "C" compilers.
999 (actions): New enum, from ini.h. This may not be the 'right' place
1000 but that place doesn't exist yet.
1001 (_views): New enum, from ini.h.
1002 * choose.cc (set_action): Handle installed packages with a version not in
1004 (choose_caption): Ditto.
1005 * iniparse.y: Rearrange header order to handle new ini.h.
1007 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
1009 * ini.h (_Info): Fix compiler warnings (signed vs unsigned comparison).
1010 (registry_category): Fix compiler warning (deprecated conversion).
1011 * iniparse.y (registry_category): Ditto.
1012 * choose.cc (cvsid): Fix compiler warnings (unused, deprecated conversion).
1013 (add_requried): Remove unused variable.
1014 (choose_caption): Handle all enumeration values via a default.
1015 (paint): Fix compiler warnings (unused, deprecated conversion).
1016 (scroll_common): Fix compiler warnings (unused, signed vs unsigned comparison).
1017 (list_clicK): Fix compiler warnings (signed vs unsigned comparison).
1018 (note_width): Fix compiler warnings (deprecated conversion).
1019 (keep_or_skip): Fix compiler warnings (unused).
1020 (_view::mode_caption): Fix compiler warnings (deprecated conversion).
1021 (set_view_mode): Fix compiler warnings (unused).
1022 (create_listview): Fix compiler warnings (unused, incorrect format, reaches
1024 (dialog_proc): Fix compiler warnings (unused).
1025 (read_installed_db): Fix compiler warnings (unused, deprecated conversion).
1026 * choose.h (_header): Fix compiler warnings (deprecated conversion).
1029 2001-11-08 Pavel Tsekov <ptsekov@syntrex.com>
1031 * simpsock.h (SimpleSocket::invalidate): Declare new method.
1032 * simpsock.cc (SimpleSocket::invalidate): Implement new method.
1033 (SimpleSocket::SimpleSocket): Initialize buf to zero. Do not allocate
1034 memory for buf in the constructor.
1035 (SimpleSocket::~SimpleSocket): Use SimpleSocket::invalidate().
1036 (SimpleSocket::printf): Use SimpleSocket::write() instead of send().
1037 (SimpleSocket::write): Check object consistency - return -1 on error.
1038 invalidate() the object on socket write error.
1039 (SimpleSocket::fill): Check object consistency - return -1 on error.
1040 invalidate() the object if socket read error is encountered and there
1041 is no more data available in the internal read buffer.
1042 Allocate memory for the internal read buffer.
1043 (SimpleSocket::gets): Return zero (NULL pointer) if error is encountered
1044 during fill() and no more data is available in the internal read buffer.
1045 (SimpleSocket::read): Check object consistency - return -1 on error.
1046 invalidate() the object if socket read error is encountered.
1047 * nio-ftp.cc (NetIO_FTP:NetIO_FTP): Allow 125 as valid response code to
1048 the RETR command (fix for MS IIS ftp server 5 - possibly others too).
1049 (NetIO_FTP::ok): Check if the SimpleSocket object is ok().
1050 (NetIO_FTP::read): Use NetIO_FTP::ok().
1051 * nio-http.cc: Check for valid return value of SimpleSocket::gets().
1052 (NetIO_HTTP::ok): Check if the SimpleSocket object is ok().
1054 2001-11-09 Robert Collins <rbtcollins@hotmail.com>
1056 * simpsock.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
1057 (SimpleSocket::SimpleSocket): Avoid compiler warnings (deprecated conversion).
1058 (SimpleSocket::printf): Ditto.
1059 (SimpleSocket::write): Ditto.
1060 * simpsock.h (SimpleSocket): Avoid compiler warnings for constructor,
1062 * nio-ftp.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
1063 (NetIO_FTP::NetIO_FTP): Remove unused variable done.
1064 * nio-http.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
1066 2001-11-07 Charles Wilson <cwilson@ece.gatech.edu>
1068 * geturl.cc (get_url_to_string): clean up memory leak
1069 (get_url_to_file): ditto
1071 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
1073 * localdir.cc (dialog_cmd): Go back to IDD_ROOT in every case.
1074 * source.cc (dialog_cmd): Go forward to IDD_ROOT in every case.
1076 2001-11-06 Pavel Tsekov <ptsekov@syntrex.com>
1078 * fromcwd.cc (found_file): Free() memory containing the version and
1079 filepath information for a given package, before replacing the pointers which
1080 reference this memory.
1082 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
1084 * fromcwd: Fix compiler warnings for cvsid.
1085 (canonicalize_version): Fix compilter warnings.
1086 (do_fromcwd): Ditto.
1087 * version.h: Fix compiler warnings for canonicalize_version.
1089 2001-11-03 Robert Collins <rbtcollins@hotmail.com>
1091 * res.rc (IDD_CHOOSE): Move the view caption to the right hand side.
1093 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1095 * res.rc (IDD_CHOOSE): Tweak for use on a 640x480 screen.
1097 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1099 * choose.cc (set_action): Correctly allow skip for any uninstalled package.
1101 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1103 * choose.cc (default_trust): Change the "Required" forced install category to
1106 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1108 * choose.cc: Ran indent.
1109 (set_action): When the requested trust level is missing and the level was not
1110 user requested, set the action to ACTION_SAME_CURR.
1112 2001-11-01 Christopher Faylor <cgf@redhat.com>
1114 * Makefile.in (mingw_getopt.o): Fix typo in non-verbose compilation.
1116 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1118 * choose.cc (_view::init_headers): Resync with the paint logic.
1120 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1122 * choose.cc (add_required): Allow SKIP and SRC_ONLY for currently installed
1125 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1127 * choose.cc (default_trust): Autoset currently installed packages per the user's
1128 selection of prev/curr/exp.
1130 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1132 * splash.cc (dialog_proc): Return TRUE as specified in the WIN32 API.
1134 2001-11-02 Pavel Tsekov <ptsekov@syntrex.com>
1136 * geturl.cc (is_showing): Remove.
1137 (is_local_install): New static variable. Controls whether the
1138 progress dialog and the supporting thread will be created.
1139 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the WIN32 API.
1140 (init_dialog): Remove usage of SetForegroundWindow and is_showing.
1141 This prevents the progress dialog to gain control over the
1142 application and fixes the "setup.exe going to background" problem.
1143 (progress): Use is_local_install.
1144 (get_url_to_string): Set is_local_install.
1145 (dismiss_url_status_dialog): Use is_local_install.
1146 * install.cc (dialog_proc): Return TRUE as specified in WIN32 API.
1147 (init_dialog): Remove usage of SetForegroundWindow.
1148 This prevents the progress dialog to gain control over the
1149 application and fixes the "setup.exe going to background" problem.
1151 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1153 * choose.cc (list_click): Change r to row for clarity.
1154 When we shrink the list below 1 page, scroll to the top of the list.
1155 (_view::click): Return the actual change for contractions.
1156 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the Win32 API.
1158 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1160 * choose.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
1161 * localdir.cc: Ran indent.
1162 (get_root_dir_now): New function.
1163 (save_local_dir): New function.
1164 (dialog_cmd): Use it and swap cygwin root selection and local dir selection order.
1165 (do_local_dir): If there is a saved local dir, read it in.
1166 * net.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
1167 * root.cc (dialog_cmd): Ditto.
1168 * source.cc (dialog_cmd): Ditto.
1170 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
1172 * choose.cc(list_vscroll): Return 0 as required by win32.
1173 (list_hscroll): Ditto.
1174 (list_click): Ditto.
1176 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
1180 * main.cc(WinMain): Use __argv to retrieve command line parameters.
1181 * Makefile,in: Remove argv.o.
1183 2001-11-01 Matt Hargett <matt@use.net>
1185 * geturl.cc (progress): Change int to unsigned int to eliminate
1187 * (get_url_to_string): Check for NULL pointer.
1188 * mount.cc (find2): Use free instead of delete for malloc'd
1190 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Fix memory leak.
1192 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
1194 * choose.cc(_view::insert_under): Handle linen > nlines and lines[linen] with neither
1195 a package nor a category. The lines[linen] bug was reported by Matt (matt@usa.net).
1196 (read_installed_db): Bugfix for testing whether a package has a source tarball.
1197 Reported by Matt (matt@usa.net).
1198 * geturl.cc(dialog): Rename gw_dialog to local_gw_dialog to avoid programmer
1199 confusion and lint errors. Reported by Matt (matt@usa.net).
1201 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
1203 * argv.cc: New file, converts arguments for -mwindows programs. (Simplified derivation
1206 * Makefile,in: Add argv.o and mingw_getopt.o to setup.exe object list.
1207 Add mingw_getopt.o build rule.
1208 * main.cc(WinMain): Initialise argv and argc for use by getopt.
1210 2001-10-27 Christopher Faylor <cgf@redhat.com>
1212 * res.rc: Rearrange info on top line slightly.
1214 2001-10-27 Christopher Faylor <cgf@redhat.com>
1216 * desktop.cc (make_passwd_group): Move file creation earlier in the
1217 process to ensure that passwd-grp.bat reflects desired operation.
1219 2001-27-10 Trevor Forbes <t4bs@hotmail.com>
1221 * postinstall.cc (each): Remove "*.done" file else rename will fail.
1223 2001-10-16 Christopher Faylor <cgf@redhat.com>
1225 * res.rc: Oops. Take 640x480 screen size into account.
1227 2001-10-16 Christopher Faylor <cgf@redhat.com>
1229 * res.rc: Enlarge chooser screen.
1231 2001-10-12 Christopher Faylor <cgf@redhat.com>
1233 * Makefile.in: Accomodate changes to w32api_include macro.
1235 2001-10-12 Christopher Faylor <cgf@redhat.com>
1237 * Makefile.in: Use correct flags for windres.
1239 2001-10-12 Christopher Faylor <cgf@redhat.com>
1241 * Makefile.in (CFLAGS): Remove -nostdinc from CFLAGS.
1243 2001-10-12 Christopher Faylor <cgf@redhat.com>
1245 * choose.cc (pick_line::paint): Reorganize after botched patch.
1247 2001-10-12 Christopher Faylor <cgf@redhat.com>
1249 * choose.cc (pick_line::paint): Add missing declaration.
1251 2001-10-10 Ralf Habacker <Ralf.Habacker@freenet.de>
1253 * choose.cc (pick_line::paint): Add package name to sdesc for display.
1255 Wed Sep 26 21:39:00 Robert Collins rbtcollins@hotmail.com
1257 * choose.cc (_view::insert_pkg): Correctly exit loop.
1258 * iniparse.y (register_category): Always insert new categories.
1260 Fri Sep 21 13:56:32 2001 Christopher Faylor <cgf@cygnus.com>
1262 * inilex.l (yylex): For comments, eat all characters up to, but not
1265 Sun Aug 26 12:50:01 2001 John Marshall <jmarshall@acm.org>
1267 * fromcwd.cc (found_file): Use correct package name when adding an
1268 unknown package rather than random stack garbage.
1270 Sun Aug 12 14:25:21 2001 Christopher Faylor <cgf@cygnus.com>
1272 * desktop.cc (make_passwd_group): .bat files need \r\n endings.
1274 Wed Aug 8 13:53:47 2001 Christopher Faylor <cgf@cygnus.com>
1276 * desktop.cc (etc_profile): Leave environment variables untouched.
1278 2001-08-07 Corinna Vinschen <corinna@vinschen.de>
1280 * autoload.c: Add dynamic load statements for NT/W2K
1281 advapi32 functions not available in 9x/ME.
1282 * main.cc (set_default_dacl): New function.
1283 (WinMain): Call `set_default_dacl' if running on NT/W2K.
1285 Sat Aug 4 21:35:53 2001 Christopher Faylor <cgf@cygnus.com>
1287 * ini.h (_CategoryPackage): Change pkg field to pkgname for
1289 * choose.cc: Use pkgname field when referencing _CategoryPackage
1291 (fill_missing_category): Don't add excluded packages.
1292 (default_trust): Ditto.
1293 (_view::insert_pkg): Ditto.
1294 * iniparse.y (register_category): Use consistent variable name.
1296 2001-07-09 Egor Duda <deo@logos-m.ru>
1298 * choose.cc: Use system foreground color for text output.
1300 Sat Jul 7 00:40:28 2001 Christopher Faylor <cgf@cygnus.com>
1302 * choose.cc (set_action): Use default trust for determining reinstall
1304 (default_trust): Set default trust.
1305 (pick_line::paint): Allow source selection when reinstalling or
1308 Fri Jul 6 18:08:49 2001 Christopher Faylor <cgf@cygnus.com>
1310 * choose.cc (isinstalled): Modify to properly accomodate special case
1312 (set_action): Check downloaded components, not installed components if
1314 (set_existence): Always include full list of files when "download
1317 Fri Jul 6 00:37:05 2001 Christopher Faylor <cgf@cygnus.com>
1319 * choose.cc (pick_line::paint): Properly display "na" field when no
1322 Thu Jul 5 00:34:23 2001 Christopher Faylor <cgf@cygnus.com>
1324 * choose.cc (scan2): Ensure that older versions do not show up in
1327 Mon Jul 2 15:47:59 2001 Christopher Faylor <cgf@cygnus.com>
1329 * choose.cc (set_action): Allow "Skip" action if trust != installed.
1330 * res.rc: Fix copyright.
1332 Sat Jun 30 14:05:21 2001 Michael A Chase <mchase@ix.netcom.com>
1334 * res.rc (IDD_LOCAL_DIR): Change caption to match the other dialog
1336 (IDD_CHOOSE): Adjust horizontal size so package names are visible.
1338 * choose.cc: Restore some more changes from 2001-06-25, throughout.
1339 (paint): Wrap some excessively long lines.
1340 (pick_line::paint): Ditto. Move the arrow in the "Current" column
1341 right to where it belongs. Move the source checkbox slightly to the
1343 (do_choose): List categories and required packages in setup.log.full.
1345 Sat Jun 30 23:04:59 2001 Christopher Faylor <cgf@cygnus.com>
1347 * choose.cc (scan2): Restore source scanning eliminated by previous checkin.
1349 Sat Jun 30 15:18:33 2001 Christopher Faylor <cgf@cygnus.com>
1351 * ini.h (struct _Info): Add "derived" element.
1352 * choose.cc (scan2): Try to place unknown tar files into proper slot
1353 when package exists in setup.ini but tar file does not.
1355 Sat Jun 30 13:39:00 2001 Robert Collins <rbtcollins@hotmail.com>
1357 * choose.cc (create_listview): Call set_view_mode with VIEW_CATEGORY.
1358 (do_choose): Log the first category name.
1360 Fri Jun 29 23:07:44 2001 Christopher Faylor <cgf@cygnus.com>
1362 *ini.h: Reapply 2001-06-25 changes.
1363 * choose.cc (add_required): Ditto. Default to "Keep" state if
1364 UNINSTALL and product is installed. Default to curr state if SKIP,
1366 (keep_or_skip): New function. Returns skip or keep state depending on
1367 installed state of package.
1368 (default_trust): Use keep_or_skip to set state.
1369 (_view::insert_pkg): Use calloc to allocate lines.
1370 (set_view_mode): Adapt 2001-06-25 change to set_full_list here.
1372 Sat Jun 30 11:01:00 2001 Robert Collins <rbtcollins@hotmail.com>
1374 * choose.cc: Remove globals full_list, headers, package_indexes and
1376 Add globals cat_headers, pkg_headers and chooser.
1377 (add_required): New function.
1378 (paint): Use the chooser for header details.
1379 Call into the chooser to paint each line.
1380 (list_click): Use new global variables.
1381 Call into the chooser to handle the click.
1382 Repaint the entire view if packages have been added or removed.
1383 (note_width): Get passed a headers struct rather than using a global
1385 (fill_missing_category): New function.
1386 (default_trust): Skip non-"Required" or "Misc" packages.
1387 (pick_line::set_line (Package *)): New function.
1388 (pick_line::set_line (Category *)): New function.
1389 (pick_line::paint): New function.
1390 (pick_line::click): New function.
1391 (_view::_view): New function.
1392 (_view::set_view_mode): New function.
1393 (_view::mode_caption): New function.
1394 (_view::set_headers): New function.
1395 (_view::init_header): New function.
1396 (_view::insert_pkg): New function.
1397 (_view::insert_category): New function.
1398 (_view::insert_at): New function.
1399 (_view::insert_under): New function.
1400 (_view::clear_view): New function.
1401 (viewsplusplus): New function.
1402 (_view::client): New function.
1403 (set_view_mode): Use new chooser functionality.
1404 (set_full_list): Use new global variables.
1405 (create_listview): Instantiate chooser.
1406 Remove all hardcoded headers[] code.
1407 (dialog_cmd): On trust changes, check dependencies.
1408 (getcategorybyname): New function.
1409 (getpackagecategorybyname): New function.
1410 (scan2): Use case-insensitive package comparison.
1411 (do_choose): Use fill_missing_category ().
1412 Show some category data.
1413 * ini.h: Protect against multiple inclusion.
1415 (_CategoryPackage): New struct.
1416 (_Category): New struct.
1417 (_Package): Change category to Category * from char *.
1418 (extern Category category): New global variable.
1419 (extern in ncategories): Ditto.
1420 (getcategorybyname): New prototype.
1421 (catpackagecategorybyname): New prototype.
1422 (register_category): New prototype.
1423 (add_category): New prototype.
1424 * iniparse.y: Parse multiple categories per package.
1425 (category): New global variable.
1426 (ncategories): New global variable.
1427 (new_package): Compare package against NULL, not 0.
1428 (new_requirement): Source formatting fix.
1429 (register_category): New function.
1430 (add_category): New function.
1431 * res.rc: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
1432 IDC_CHOOSE_VIEWCAPTION: New control.
1433 * resource.h: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
1434 IDC_CHOOSE_VIEWCAPTION: New control.
1435 Increment _APS_NEXT_CONTROL_VALUE.
1437 Mon Jun 25 00:56:37 2001 Michael A Chase <mchase@ix.netcom.com>
1439 * choose.cc (paint): Wrap excessively long lines.
1440 (list_click): Ditto.
1441 (create_listview): Ditto.
1442 (do_choose): Ditto. Replace TABs and remove CRs in lines written to
1443 setup.log.full. Allow "Yes" for source exists in setup.log.full when
1444 installing from local directories.
1446 Mon Jun 25 00:56:37 2001 Christopher Faylor <cgf@cygnus.com>
1448 * choose.cc (set_action): Only clear srcpicked when moving to next
1449 state. Allow source installation if it exists in the current "trust"
1450 state. Don't move to skip state when package is installed.
1451 (list_click): Don't allow source clicking when no source is available.
1452 (set_full_list): Display package when not is_full_action.
1453 * ini.h (is_full_action): Define.
1455 Sun Jun 17 12:06:14 2001 Christopher Faylor <cgf@cygnus.com>
1457 * install.cc (check_for_old_cygwin): New function. First stab at
1458 checking for old cygwin versions.
1459 (do_install): Call check_for_old_cygwin if there were no errors during
1462 Sat Jun 16 11:33:51 2001 Michael A Chase <mchase@ix.netcom.com>
1464 * choose.cc (_Info::_Info): Test _source paramenter for non-NULL rather
1465 than zeroed "source" element.
1467 Fri Jun 15 20:54:43 2001 Christopher Faylor <cgf@cygnus.com>
1469 * choose.cc (scan2): Insert unknown tar archives, found on disk, into
1470 the highest available "hole" in the trust array.
1472 Fri Jun 15 00:20:48 2001 Christopher Faylor <cgf@cygnus.com>
1474 * choose.cc (set_existence): Use pointer method for indexing in trust
1476 (create_listview): Ditto.
1477 (scan2): Ditto. Also, use consistent variable name for indexing into
1479 * ini.h (Package): Reorganize info array for easier scanning.
1481 Fri Jun 15 00:01:51 2001 Christopher Faylor <cgf@cygnus.com>
1483 * choose.cc (isinstalled): Eliminate special download only test.
1484 (set_action): Don't move to next state if in ACTION_SAME range and not
1486 (choose_caption): Display "Retrieve" rather than "Reinstall" when just
1488 (do_choose): Sort packages after all packages have been read.
1489 Accomodate the fact that first element in trust array is empty so that
1490 log files don't report the wrong trust value.
1491 * iniparse.y (new_package): Malloc space for package name or suffer
1494 Thu Jun 14 22:43:59 2001 Robert Collins <rbtcollins@hotmail.com>
1496 * ini.h (Dependency): New structure. Declare new function.
1497 * inilex.l (yylex): Detect new setup.ini options - category and requires.
1498 * iniparse.y: Declare new setup.ini token values.
1499 (yyparse): Parse new token values.
1500 (new_requirement): New function.
1502 Thu Jun 14 22:43:26 2001 Christopher Faylor <cgf@cygnus.com>
1504 * choose.cc (read_installed_db): Eliminate obsolete code.
1506 Thu Jun 14 22:11:53 2001 Christopher Faylor <cgf@cygnus.com>
1508 * choose.cc (set_action): Set trust on "redo".
1509 (_Info::_Info): New constructor.
1510 (read_installed_db): Use new constructor. Use trusts type for
1512 * ini.h (struct _Info): Label struct, add constructor.
1513 (Package): Make installed_ix a type 'trusts.'
1514 * install.cc (uninstall_one): Unset any installed info for current
1516 (install_one): Allocate new Info struct for installed reflecting new
1518 (do_install): Don't output line to installed.db if package is being
1521 Thu Jun 14 20:33:01 2001 Robert Collins <rbtcollins@hotmail.com>
1523 * choose.cc (getpkgbyname): Use consistent method for scanning package
1526 Wed Jun 13 23:33:08 2001 Christopher Faylor <cgf@cygnus.com>
1528 * choose.cc: Add some comments.
1529 (getpkgbyname): Use strcasecmp for comparisons.
1531 Wed Jun 13 16:07:00 2001 Christopher Faylor <cgf@cygnus.com>
1533 * install.cc (do_install): Avoid checking for download action if
1534 package wasn't currently retrieved.
1536 Wed Jun 13 11:27:22 2001 Christopher Faylor <cgf@cygnus.com>
1538 * choose.cc: Eliminate extra array throughout. Use element in package
1539 structure instead. Use pointers rather than array indexes where
1541 (set_action): New function to set next action based on current.
1542 (choose_caption): New function. Returns display caption.
1543 (check_existence): Change arguments. Use pointer to 'info' structure.
1544 (set_existence): Use pointer rather than array index.
1545 (default_trust): Use trusts enum for second argument.
1546 (set_full_list): Honor exclude element in package structure.
1547 (build_labels): Eliminate.
1548 (base): Make global. Use const char * argument.
1549 (get_package_version): Eliminate.
1550 (getpkgbyname): New function.
1551 (read_installed_db): Use parse_filename to get version info.
1552 * desktop.cc (make_passwd_group): Use getpkgbyname function.
1553 * download.cc (get_file_size): const argument.
1554 (do_download): Use is_download_action to determine when something
1555 should be downloaded.
1556 * filemanip.h: Add some functions.
1557 * ini.cc (do_ini): Use NULL rather than 0 for pointer assignment.
1558 * ini.h: Use enums for actions and trusts.
1559 (is_download_action): New macro.
1560 (is_upgrade_action): Ditto.
1561 (is_uninstall_action): Ditto.
1562 (struct Package): Add new fields.
1563 * inilex.l (yylex): Detect new setup.ini options.
1564 * iniparse.y: Declare new tokens.
1565 (yyparse): Detect exclude keyword. Fill out version field even if
1567 (new_package): Use greater granularity when allocating package array to
1568 avoid repeated calls to realloc.
1569 * install.cc (exists): const argument.
1570 (uninstall_one): Take pkg argument.
1571 (install_one): Ditto. Eliminate unneeded arguments which can be
1572 derived from package info.
1573 (do_install): Iterate over package array using a pointer. Use
1574 is_download_action to control when package should be downloaded.
1575 * tar.cc (tar_open): const argument.
1576 * tar.h: Refloect const argument.
1578 2001-05-31 Michael Chase mchase@ix.netcom.com
1580 * main.cc (WinMain): Add setup version to starting setup.log entry
1582 Tue May 29 21:37:58 2001 Yukihiko Sohda <sohda@is.titech.ac.jp>
1584 * inilex.l: Add + to list of valid string characters.
1586 Mon May 28 20:54:50 2001 Christopher Faylor <cgf@cygnus.com>
1588 * Makefile.in: Remove more stuff in the clean target.
1590 Mon May 28 18:24:59 2001 Christopher Faylor <cgf@cygnus.com>
1592 * Makefile.in: Correctly generate iniparse.h.
1594 Tue Mar 6 19:14:00 2001 Corinna Vinschen <corinna@vinschen.de>
1596 * geturl.cc (get_url_to_file): Add parameter `allow_ftp_auth'.
1597 * geturl.h: Change declaration of `get_url_to_file' accordingly.
1598 * netio.cc (NetIO::NetIO): Add parameter `allow_ftp_auth'.
1599 Set member `ftp_auth'.
1600 (NetIO::open): Add parameter `allow_ftp_auth'. Use it in calls
1601 to constructors of derived classes.
1602 (NetIO::get_ftp_auth): New method.
1603 * netio.h: Change class definition accordingly.
1604 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Add parameter `allow_ftp_auth'.
1605 Take global variables `net_ftp_user' and `net_ftp_passwd' into account.
1606 Add code for ftp authentication retry.
1607 * nio-ftp.h: Change class definition accordingly.
1608 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Add parameter `allow_ftp_auth'.
1609 Add code for ftp authentication retry in case of proxy connection.
1610 * nio-http.h: Change class definition accordingly.
1611 * res.rc: Add FTP authentication dialog.
1612 * resource.h: Add new constants used in res.rc.
1613 * state.h: Add variables `net_ftp_user' and `net_ftp_passwd'.
1615 Sun May 27 17:12:23 2001 Christopher Faylor <cgf@cygnus.com>
1617 * res.rc (IDD_SPLASH): Add a copyright year.
1619 Sun May 27 15:42:18 2001 Christopher Faylor <cgf@cygnus.com>
1621 * Makefile.in: Make iniparse.y produce a c++ file.
1622 * choose.cc (set_existence): Revert 2001-05-27 change.
1623 * ini.cc: Remove "C" from declaration of yyparse.
1624 * iniparse.y (yyparse): Fill out version field by default when a binary
1625 install is detected and no version has been set yet.
1626 * install.cc (do_install): Mount things earlier so that we can use
1627 proper mount table settings. Don't remove mounts since they are now
1629 * mount.cc (create_mount): Reread the mount table after establishing a
1631 (read_mounts): Explicitly clear root_here to allow multiple uses of
1632 this function. Ensure that there is no garbage in the table when we've
1633 exhausted all of the mounts in the registry.
1634 (cygpath): Accomodate ./ in path.
1636 Sun May 27 02:59:07 2001 Christopher Faylor <cgf@cygnus.com>
1638 Use parse_filename method to parse filenames throughout. Use
1639 get_root_dir to retrieve the current root directory throughout. Set
1640 const in argument list, where appropriate, throughout.
1641 * choose.cc (set_existence): Detect case of uninstalled package with no
1643 (parse_filename): New function.
1644 * filemanip.h (fileparse): New structure.
1645 * mount.cc (read_mounts): Remember where we found the root mount.
1646 (set_root_dir): New function.
1647 (get_root_dir): Ditto.
1648 * mount.h: Declare new functions.
1649 * site.cc (get_root_dir_now): Renamed from get_root_dir.
1650 (save_site_url): Use new function name.
1651 (get_initial_list_idx): Ditto.
1653 Sat May 26 21:23:59 2001 Christopher Faylor <cgf@cygnus.com>
1655 * choose.cc: Use a constant throughout to deal with chooser icon
1657 * res.rc (IDD_CHOOSE): Increase size of chooser box.
1659 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
1661 * choose.cc (do_choose): Fix incorrect assignment of trust setting to
1662 use when Redownload or Sources Only selected.
1664 Thu May 10 22:35:59 2001 Christopher Faylor <cgf@cygnus.com>
1666 Reformat file after botched patch formatting.
1667 * choose.cc (which_trust): Eliminate variable.
1668 (default_trust): Don't set which_trust.
1669 (do_choose): Use selected trust when reinstalling or installing source.
1671 Thu May 10 21:04:18 2001 Christopher Faylor <cgf@cygnus.com>
1673 Change concat to cygpath throughout.
1674 Change map_filename to cygpath throughout.
1675 * concat.cc (vconcat): New function.
1676 (concat): Use vconcat.
1677 * concat.h: Reflect above.
1678 * install.cc (map_filename): Eliminate.
1679 (install_one): Free dest_file.
1680 * mount.cc (find2): Expect input key to be pointing to mount record.
1681 (in_table): New function.
1682 (is_admin): Move from root.cc.
1683 (read_mounts): New function.
1684 (path_prefix_p): New function.
1685 (cygpath): New function.
1686 * mount.h: Define new functions and structure.
1687 * root.cc (in_table): Move to mount.cc.
1688 (do_root): Call read_mounts to initialize root stuff and mount table.
1689 * site.cc (get_root_dir): Ditto.
1691 2001-05-09 Matt Hargett <matt@use.net>
1693 * Makefile.in: Remove *.rc from clean.
1695 Tue May 8 23:33:38 2001 Christopher Faylor <cgf@cygnus.com>
1697 * choose.cc (scan2): Fix incorrect setting of TRUST_CURR rather than
1698 TRUST_PREV which produced "0" versions.
1700 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
1702 * resource.h: Add new field IDC_CHOOSE_INST_TEXT. Modify
1703 _APS_NEXT_CONTROL_VALUE to account for addition of
1704 IDC_CHOOSE_INST_TEXT.
1705 * res.rc (IDD_CHOOSE): Modify choose dialog to use new field
1706 IDC_CHOOSE_INST_TEXT for screen text. Modify choose Dialog to allow
1707 hot keys to select Prev, Curr, Exp.
1708 * ini.h: Add new actions for ACTION_REDO and ACTION_SRC_ONLY. Modify
1709 define for LOOP_PACKAGES to include new actions ACTION_REDO and
1711 * choose.cc: Add new Trusts for TRUST_REDO and TRUST_SRC_ONLY.
1712 (paint): Modify to check TRUST_SRC_ONLY when determining Bitmap for
1713 source Checkbox to use.
1714 (build_labels): Add logic to allow for selection of Source only
1715 Download/ReDownload/Install/Reinstall and also to Redownload/Reinstall
1716 current version binary.
1717 (dialog_proc): Add conditional display for file selection prompt based
1718 on download vs install using IDC_CHOOSE_INST_TEXT.
1719 (do_choose): Add new logic for TRUST_REDO and TRUST_SRC_ONLY selection
1720 and modify logic for TRUST_UNINSTALL, TRUST_KEEP, and TRUST_NONE to
1721 handle the instance where Source Download/Install was selected. Modify
1722 log file to store appropriate information regarding Action selected and
1723 the new actions that were added (I.E.: ACTION_REDO and
1725 * download.cc: Add include for <unistd.h> and "port.h".
1726 (download_one): Modify parameter list to include the selected action
1727 for the file to be downloaded. Modify size check against expected size
1728 to include check for ACTION_REDO and ACTION_SRC_ONLY. Modify rename of
1729 .tmp file to also remove the destination file if exists due to ability
1730 to redownload source and binary now.
1731 (do_download): Modify to also use ACTION_REDO and ACTION_SRC_ONLY in
1732 calculation of Download Bytes. Modify to also use ACTION_REDO and
1733 ACTION_SRC_ONLY in determining files selected for download.
1734 * install.cc (uninstall_one): Add check to treat a Reinstall like an
1735 upgrade so current version will be uninstalled prior to reinstall.
1736 (do_install): Add logic to handle ACTION_REDO and ACTION_SRC_ONLY for
1737 uninstalling and installing binary and source packages.
1738 * desktop.cc (make_passwd_group): Modify logic to account for a Source
1739 only cygwin install when checking for cygwin to determine need for
1740 mkpasswd and mkgroup.
1742 Mon May 7 23:33:30 2001 Matt Hargett <matt@use.net>
1744 * winsup/cinstall/res.rc: Added accelerators and improved focus order.
1745 Removed WS_DISABLED from "OK" buttons to accomodate default focus
1746 changes in net.cc and source.cc.
1747 * winsup/cinstall/net.cc (dialog_proc): If no radio button is selected,
1748 a default is selected.
1749 * winsup/cinstall/source.cc (dialog_proc): Ditto.
1750 (check_if_enable_next): Removed. No longer needed since a radio button
1751 will always be selected.
1752 (load_dialog): Removed call to check_if_enable_next.
1753 (dialog_cmd): Ditto. Also added default to switch.
1755 Tue Apr 24 23:42:02 2001 Christopher Faylor <cgf@cygnus.com>
1757 * res.rc: Resize affected text.
1759 Tue Apr 24 23:35:31 2001 Christopher Faylor <cgf@cygnus.com>
1761 * net.cc (do_net): Default to direct download.
1762 * res.rc: Move default selections to the top.
1764 2001-04-18 Earnie Boyd <earnie@users.sourceforge.net>
1766 * win32.h: Remove the definitions for _UNION_NAME and _STRUCT_NAME.
1767 Must now include <windows.h> and not the pieces.
1768 * choose.cc (create_listview): Clean up type mismatch problems.
1769 * dialog.h (NEXT(id)): Ditto.
1770 * geturl.cc (dialog): Ditto.
1771 * install.cc (dialog): Ditto.
1772 * splash.cc (load_dialog): Ditto.
1774 Wed Apr 18 18:59:21 2001 Christopher Faylor <cgf@cygnus.com>
1776 * tar.cc (class gzbz): Define dummy virtual functions.
1778 Wed Apr 18 16:01:21 2001 Christopher Faylor <cgf@cygnus.com>
1780 * Makefile.in: Add bz2 include/library support.
1781 * filemanip.h: New file.
1782 * choose.cc (find_tar_ext): New function. Returns TRUE if .tar.gz or
1784 (scan2): Reorganize to use find_tar_ext, accomodating .bz2 extension.
1785 (read_installed_db): Ditto.
1787 * fromcwd.cc (found_file): Ditto.
1788 (do_fromcwd): Ditto.
1789 * tar.cc (class gzbz): New super class for uncompression support.
1790 (gz): New class for gzip support.
1791 (bz): New class for bzip2 support.
1792 (tar_open): Use gzbz class to control file opening.
1793 (tar_ftell): Ditto for returning position in file.
1794 (skip_file): Ditto for reading file.
1795 (tar_next_file): Ditto.
1796 (tar_read_file): Ditto.
1797 (tar_close): Ditto for close.
1799 * zlib/configure.in: Force NM substitution.
1801 * source.cc (do_source): Default to "Install from Internet".
1803 2001-03-16 Brian Keener <bkeener@thesoftwaresource.com>
1805 * nio-file.cc (NetIO_File::NetIO_File): Use `get_file_size' instead of
1807 * choose.cc (list_click): Correct inability to select source code for
1809 (scan2): Modify to skip source tarballs when scanning disk for
1810 installable packages.
1812 2001-03-10 Chris Abbey <chris_abbey@yahoo.com>
1814 * install.cc: install sources into /usr/src instead
1815 of /, also include the sizes of source tarballs
1817 * download.cc: include sizes of source tarballs in
1818 total_download_bytes.
1820 Tue Mar 6 19:31:00 2000 Corinna Vinschen <corinna@vinschen.com>
1822 * download.cc (get_file_size): Remove `static'.
1824 Tue Mar 6 19:11:00 2000 Corinna Vinschen <corinna@vinschen.com>
1826 * tar.cc (tar_open): Use `get_file_size' instead of `stat'.
1828 2001-03-06 Brian Keener <bkeener@thesoftwaresource.com>
1830 * choose.cc (paint): Modify message for nothing to download vs
1831 nothing to install/update based on installation method.
1832 (list_click): Modify to skip versions in selection process if
1833 installing from local directory and installation file does not exist.
1834 Also leaves Source Action set to N/A if the source file does not exist
1835 and installing from local directory.
1836 (check_existence): New method to check current existence of installation
1837 files based on selected installation method.
1838 (set_existence): New method to set the current existence of installation
1839 files based on selected installation method.
1840 (best_trust): Modify decision process for best trust to base decision on
1841 current trust selected (IE: Prev, Curr, or Test), existence of file and
1842 installation method selected.
1843 (default_trust): Add logic to capture the current trust level and the
1844 trust selected for the given package.
1845 (set_full_list): Expand decision criteria for displaying a package in
1846 the selection list to include file existence/non-existence and selected
1847 installation method.
1848 (build_labels): Modify criteria for label addition to include
1849 installation method and file existence/non-existence.
1850 (create_listview): Modify to establish package trust level for each
1851 package before setting up the display list. Also modification to set
1852 current trust button as the default.
1853 (dialog_cmd): Set response for Prev, Curr, Test button push to perform
1854 a reset of the selection list in addition to setting the default trust.
1855 (get_package_version): New method to provide reusable code for
1856 determining the package version from the file name for a specified
1858 (scan2): Modify to use new method get_package_version and
1859 also enhance handling of the build for the structures package and
1861 (read_installed_db): Modify to use the new method
1862 get_package_version and also enhance handling of the build for the
1863 structures package and extra.
1864 (do_choose): Add additional initialization of package and extra
1865 structures. Modify to use read_installed_db all the time despite
1866 install method. Modify output to setup.log.full log file to increase
1867 readability by adding additional spacing, expanded code and available
1869 * ini.h: Add new fields install_exists, source_exists and
1870 partial_list_display to the structure definition for package.
1871 * res.rc (IDD_CHOOSE): Modify choose dialog Prev, Curr, and Test
1872 pushbuttons by replacing with Radio Buttons thus allowing the
1873 operator to better determine which is selected.
1875 2001-02-20 Brian Keener <bkeener@thesoftwaresource.com>
1877 * download.cc (do_download): Add new variables total_download_bytes and
1878 total_download_bytes_sofar for download progress meter. Add loop
1879 to accumulate the total bytes to download from the selected packages.
1880 * geturl.cc: Add state.h and diskfull.h to include list. Add new
1881 variables gw_iprogress, gw_pprogress, gw_progress_text,
1882 gw_pprogress_text, and gw_iprogress_text to allow for addition of
1883 total packages download progress meter and disk full percent
1884 progress meter. Add variables total_download_bytes and
1885 total_download_bytes_sofar for use by progress meters.
1886 (dialog_proc): Add new variables gw_iprogress, gw_pprogress,
1887 gw_progress_text, gw_pprogress_text, and gw_iprogress_text to
1888 allow for addition of total packages download progress meter and disk
1889 full percent progress meter.
1890 (init_dialog): Ditto.
1892 (get_url_to_file): Ditto.
1893 * geturl.h: Add external definition for total_download_bytes and
1894 total_download_bytes_sofar.
1895 * res.rc: Add two additional progress meters (IDC_DLS_IPROGRESS)
1896 and (IDC_DLS_PPROGRESS) and three text objects (IDC_DLS_PROGRESS_TEXT)
1897 and (IDC_DLS_IPROGRESS_TEXT, IDC_DLS_PPROGRESS_TEXT) for use in the
1899 * resource.h: Add new fields for progress meters and text and update
1900 _APS_NEXT_CONTROL_VALUE.
1902 Wed Feb 21 13:05:00 2000 Corinna Vinschen <vinschen@redhat.com>
1904 * download.cc (get_file_size): Check for INVALID_HANDLE_VALUE instead
1907 Wed Feb 21 11:21:00 2000 Corinna Vinschen <vinschen@redhat.com>
1909 * download.cc (download_one): Add missing parenthesis.
1911 Mon Feb 19 18:59:00 2000 Corinna Vinschen <vinschen@redhat.com>
1913 * download.cc (get_file_size): New function. Eliminates the need
1915 (download_one): Call `get_file_size' instead of `stat'. This
1916 workarounds a problem with mingw's `stat' call.
1918 2001-02-07 Earnie Boyd <earnie@users.sourceforge.net>
1920 * Makefile.in: (%.o: %.rc): Specify --include-dir $(w32api_include).
1921 This is to allow cinstall to build with 2.95.2-7 and to make the
1922 use of headers consistent.
1924 2000-12-26 Earnie Boyd <earnie_boyd@yahoo.com>
1926 * Makefile.in (autoload.o): Add target to specify -fno-inline-functions
1928 Tue Dec 26 03:46:00 2000 Matt Hargett <matt@use.net>
1930 * winsup/cinstall/res.rc: Added accelerators and improved focus
1933 2000-12-10 Egor Duda <deo@logos-m.ru>
1935 * choose.cc (paint): Use system background color for text output.
1937 Sun Dec 10 19:05:25 2000 Christopher Faylor <cgf@cygnus.com>
1939 * Makefile.in: Use CXX for linking and for compiling .cc files.
1940 * configure.in: Find correct c++ compiler.
1941 * configure: Regenerate.
1943 2000-11-17 DJ Delorie <dj@redhat.com>
1945 * splash.cc (load_dialog): Make message more obvious.
1948 Fri Nov 17 17:15:21 2000 Christopher Faylor <cgf@cygnus.com>
1950 * Makefile.in: Use g++ to link so that libstdc++.a gets used. This is
1951 necessary for newer compilers.
1953 Wed Nov 9 2:19:00 2000 Corinna Vinschen <vinschen@redhat.com>
1955 * desktop.cc: Include "ini.h" and "version.h".
1956 (make_passwd_group): Skip the function on 9x/ME boxes when an
1957 older version of Cygwin has been installed which doesn't
1958 support mkpasswd/mkgroup on 9x/ME.
1959 * install.cc: Move the `LOOP_PACKAGES' and `pi' macros to...
1962 Wed Nov 8 17:10:00 2000 Corinna Vinschen <vinschen@redhat.com>
1964 * desktop.cc (make_passwd_group): Don't exit when started
1965 on 9x/ME since mkpasswd/mkgroup are usable on 9x/ME now.
1967 Sun Nov 5 12:51:42 2000 Jason Tishler <jt@dothill.com>
1969 * install.cc (do_install): Add call to set_cygdrive_flags to sync
1971 * mount.cc (set_cygdrive_flags): New function.
1972 (get_cygdrive_flags): Ditto.
1973 (default_cygdrive): Ditto.
1974 (set_cygdrive_flags): Ditto.
1975 * mount.h: Add prototype for set_cygdrive_flags.
1977 2000-10-23 DJ Delorie <dj@redhat.com>
1979 * ini.h: add source actions
1980 * fromcwd.cc: check for available sources
1981 * res.rc: add checkbox bitmaps
1984 * choose.cc: add source column
1985 * download.cc: download sources if called for
1986 * install.cc: [un]install sources too
1988 2000-10-22 DJ Delorie <dj@redhat.com>
1990 * choose.cc (build_labels): Don't skip TRUST_PREV completely; only
1991 ignore it wrt full_list if there's already a version installed.
1992 (do_choose): Sort the list.
1993 (package_sort): New.
1995 2000-10-12 DJ Delorie <dj@redhat.com>
1997 * res.rc: Add more error strings.
1998 * resource.h: Ditto.
1999 * iniparse.y (new_package): re-initialize if needed.
2000 * download.cc (do_download): Keep track of errors; notify and
2002 * install.cc (do_install): Ditto.
2004 2000-10-05 DJ Delorie <dj@redhat.com>
2006 * Makefile.in: fix %.cc rule
2008 2000-10-04 DJ Delorie <dj@redhat.com>
2010 * desktop.cc: quote HOME and USER, don't . ./.profile
2012 * choose.cc (build_labels): don't include in partial list just
2013 because there's a *previous* version available.
2015 * install.cc (do_install): if installing from local directory with
2016 setup.ini and the file isn't found, look in "." also. Note errors.
2018 2000-10-02 DJ Delorie <dj@redhat.com>
2020 * ini.cc (do_ini): save setup.ini locally
2022 2000-10-02 Chris Abbey <cabbey@bresnanlink.net>
2024 * desktop.cc: quote escapes in prompt
2026 2000-10-02 Jason Tishler <jt@dothill.com>
2028 * root.cc (is_admin): New function.
2029 (read_mount_table): Check for administrative priviledges and set
2030 installation scope as appropriate.
2032 2000-09-28 DJ Delorie <dj@redhat.com>
2034 * nio-ftp.cc (ftp_line): handle continuations more robustly
2036 2000-09-14 Brian Keener <bkeener@thesoftwaresource.com>
2038 * res.rc: increased the size of the site dialog (IDD_SITE) & the
2039 corresponding list box to provide for more URL's to be listed.
2040 Modified the position of the Back, Next and Cancel buttons to
2041 correspond to the new size of the dialog.
2043 2000-09-13 DJ Delorie <dj@redhat.com>
2045 * install.cc (do_install): update disk fullness once per package
2046 to improve performance
2048 * choose.cc (create_listview): call ReleaseDC
2050 Mon Sep 11 22:40 2000 Harold L Hunt II <harold@compasstechnologies.com>
2052 * mkdir.cc: Create directories when ERROR_FILE_NOT_FOUND is
2053 returned, as it seems Samba 2.0.6+ returns this instead of
2054 ERROR_PATH_NOT_FOUND
2056 Mon Sep 11 19:35:24 2000 Christopher Faylor <cgf@cygnus.com>
2058 * site.cc (get_initial_list_idx): Don't default to saved URL if it
2061 2000-09-07 DJ Delorie <dj@redhat.com>
2063 * splash.cc: use version.h, not local decl
2064 * res.rc: add "old version" message
2067 * fromcwd.cc (canonicalize_version): make global
2068 * iniparse.y: add setup-version support, fix bug in blank line
2071 * inilex.l: add [exp] as alias for [test], add setup-version
2072 * Makefile.in (version.c): add setup-version tag
2074 * desktop.cc (do_desktop): remove 1.1 version number
2075 (do_desktop_setup): ditto
2077 * ini.cc (do_ini): zero out package list just in case we redo it.
2079 2000-09-07 Jeffrey Juliano <juliano@cs.unc.edu>
2081 * choose.cc (list_click): Check for nindexes==0; if so, return.
2083 2000-09-06 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
2085 * localdir.cc: new, local package directory selection dialog; cd
2086 into selected directory
2087 * Makefile.in (OBJS): add localdir.o
2088 * dialog.h: add prototype for do_local_dir
2089 * main.cc (WinMain): initialize local_dir to cwd; add call to
2091 * net.cc (dialog_cmd): make DO_LOCAL_DIR next dialog
2092 * source.cc (dialog_cmd): ditto
2093 * res.rc: add DO_LOCAL_DIR dialog; remove "current directory" from
2094 presented choices in IDD_SOURCE; add IDS_ERR_CHDIR error string
2095 * resource.h: defines for DO_LOCAL_DIR dialog; define IDS_ERR_CHDIR
2096 * root.cc (dialog_cmd): make DO_LOCAL_DIR previous dialog
2097 * state.h: add local_dir variable
2099 2000-09-06 Brian Keener <bkeener@thesoftwaresource.com>
2101 * desktop.cc: added logic to handle to the new dialog and to
2102 default the setting for the new checkboxes based on whether the
2103 desktop icon or start menu link already exist.
2104 (desktop_icon): correction to desktop directories for desktop icon
2105 creation. Additional logic added for Win95 which does not appear
2106 to have Common Directories so if Common selected and null uses
2108 (start_menu): Additional logic added for Win95 which does not
2109 appear to have Common Directories so if Common selected and null
2110 uses normal directory.
2111 (do_desktop_setup): moved the saving of the icon, creation of the
2112 bat file, profile, passwd, Start Menu link and desktop shortcut to
2113 this method from do_desktop. Made the creation of the desktop
2114 icon and start menu link conditional on settings of new dialog
2115 created for desktop.
2116 * install.cc (do_install): changed next from IDD_S_DESKTOP to
2118 * main.cc (WinMain): changed case IDD_S_DESKTOP to IDD_DESKTOP.
2119 * res.rc: added new resource to create a desktop dialog with 2
2120 checkboxes for creating the desktop icon and start menu link.
2121 * resource.h: changed IDD_S_DESKTOP to IDD_DESKTOP and added two
2122 new controls: IDC_ROOT_MENU and IDC_ROOT_DESKTOP for new dialog.
2123 * state.h: added root_menu and root_desktop for use in dialog.
2125 2000-08-29 DJ Delorie <dj@redhat.com>
2127 * choose.cc (scan_downloaded_files): scan for existing files, so
2128 that the user only sees new downloads.
2130 * nio-ie5.cc (NetIO_IE5): pre-check for wininet.dll, enable dial-up
2131 * site.cc (do_site): if we can't download the mirror list, go back
2132 to the net setup box to choose another transport.
2133 * autoload.c: add more functions
2134 * Makefile.in (ALL_DEP_LDLIBS): remove wininet.a
2135 * resource.h: add WININET message
2137 * net.cc (do_net): no longer default to IE5
2138 * simpsock.h (class SimpleSocket): new, simplify socket operations
2139 * simpsock.cc: ditto
2140 * nio-http.h: new, for direct http protocol
2141 * nio-http.cc: ditto
2142 * nio-ftp.h: new, for direct http protocol
2144 * netio.cc (set_url): move initialization here to handle redirections
2145 (open): add direct http/ftp
2146 * netio.h (NetIO::set_url): new
2148 * log.cc (log_save): create directory for log if needed
2150 * hash.cc, hash.h: new
2151 * Makefile: add hash.o
2152 * choose.cc: enable "uninstall" option
2153 * download.cc: invert action test to accomodate uninstalling
2154 * ini.h: add ACTION_UNINSTALL
2155 * install.cc: add uninstall functionality
2156 * res.rc: make install tag changeable
2157 * resource.h: add uninstall resources
2159 * res.rc: update mirror list URL
2161 2000-08-24 DJ Delorie <dj@redhat.com>
2163 * log.cc, log.h: new files
2164 * Makefile.in (OBJS): add log.o
2165 * tar.cc: use exit_setup instead of exit
2166 * dialog.cc (fatal): use exit_setup instead of ExitProcess
2167 * msg.cc (fatal): ditto
2168 * install.cc (dialog_cmd): ditto
2169 * ini.cc (do_ini): ditto
2170 * main.cc (main): add logging
2171 * source.cc (do_source): ditto
2172 * root.cc (do_source): ditto
2173 * site.cc (do_site): ditto
2174 * other.cc (do_other): ditto
2175 * net.cc (do_net): ditto
2176 * choose.cc (do_choose): ditto
2177 * download.cc (do_download): ditto
2178 * install.cc (do_install): ditto
2179 * msg.cc (fatal): ditto
2181 * res.rc: mark password boxes as *being* password boxes.
2183 * fromcwd.cc (canonicalize_version): use multiple buffers so that multiple
2184 calls won't use the same buffer.
2185 * choose.cc (create_listview): don't default to full list if no changes
2186 (base): return computed value, not temporary :-(
2187 (do_choose): don't use installed.db if we're only downloading.
2189 2000-08-23 DJ Delorie <dj@redhat.com>
2191 * nio-ie5.cc (NetIO_IE5): Fix authentication logic
2192 * nio-ie5.h (flush_io): new
2193 * netio.cc (load_dialog): note when we're initializing the dialog
2194 box, and ignore changes to the edit fields then.
2196 2000-08-21 DJ Delorie <dj@redhat.com>
2200 * fromcwd.cc (found_file): don't remember the canonicalized version
2202 * choose.cc (paint): print "nothing to do" message when list is empty.
2203 (build_labels): Use version "0.0" if no version is available.
2204 (create_listview): default to full list if nothing to install/update.
2205 (base): new, returns basename of file
2206 (read_installed_db): compare base names, not full paths
2208 2000-08-11 DJ Delorie <dj@redhat.com>
2210 * choose.cc: add new chooser dialog
2211 * fromcwd.cc: use IDD_CHOOSE
2212 * ini.cc: use IDD_CHOOSE
2213 * main.cc: use IDD_CHOOSE
2214 * ini.h: cosmetic changes
2215 * res.rc: add choose dialog, bitmaps
2216 * choose-spin.bmp: new
2217 * choose-rtarrow.bmp: new
2218 * resource.h: add choose dialog controls
2220 * mount.cc: remove debug statement
2222 2000-08-08 DJ Delorie <dj@redhat.com>
2224 * Makefile.in (version.c): make version checking more robust
2225 * splash.cc (load_dialog): handle case where there's no version
2227 2000-08-07 DJ Delorie <dj@redhat.com>
2229 * (all): add cvsid tags
2230 * Makefile.in: generate version.c from ChangeLog, add splash.o
2232 * res.rc: add splash screen
2234 2000-08-02 DJ Delorie <dj@redhat.com>
2236 * net.cc: remove proxy password code
2237 * res.rc: remove proxy user/pass from net, add auth dialogs
2238 * netio.cc,h: add sys/proxy auth methods
2239 * nio-ie5: use them, check for http status codes
2240 * state.h: add system authorization
2242 * concat.cc (concat): canonicalize x:// to x:/ (exception to ://
2245 2000-08-02 Norman Vine <nhv@yahoo,com>
2247 * msg.cc (mbox): added MB_TOPMOST to MessageBox type flags
2249 2000-08-01 DJ Delorie <dj@redhat.com>
2251 * postinstall.cc (each): don't rename files we ignore
2252 (do_postinstall): set CYGWINROOT to root_dir, chdir there
2254 * desktop.cc: have /etc/profile call ~/.profile and ~/.bashrc
2256 2000-07-31 DJ Delorie <dj@redhat.com>
2258 * desktop.cc: reverse PATH so /usr/bin precedes /bin
2260 2000-07-18 DJ Delorie <dj@redhat.com>
2262 * autoload.c: new, autoload dlls that might not be available.
2263 * Makefile.in (OBJS): add autoload.o
2265 * res.rc: rewrite root options (text/binary, system/user) to be
2268 * site.cc (get_site_list): trim displayed URL, sort by domain
2270 * net.cc (do_net): make IE5 default to checked, for now
2272 * choose.cc (do_choose): sort packages correctly
2273 * ini.cc (do_ini): handle parse errors more gracefully
2275 (fprintf): line buffer output
2276 (do_ini): if we can't load setup.ini, go back to the site list.
2277 * ini.h: add "unknown" trust level
2278 * inilex.l: absorb unknown trust levels and key/value pairs,
2279 add line number logic
2280 * iniparse.y: handle parse errors more gracefully.
2281 * install.cc: skip packages with no valid install entry
2283 2000-07-17 DJ Delorie <dj@cygnus.com>
2285 * coding standards fixups, many files
2286 * mkdir.cc: warn about deletions *before* deleting them
2288 2000-07-17 Jeff Juliano <juliano@cs.unc.edu>
2290 * res.rc (IDD_OTHER_URL): reorder to give default focus to entry
2292 * other.cc (dialog_cmd): save download site URL
2293 * site.cc (get_root_dir): new
2294 (save_mirror_site): new
2295 (dialog_cmd): save download site URL
2296 (get_site_list): make list big enough to add prev site
2297 (get_initial_list_idx): new, read last-used URL from file and
2298 append it to site_list
2299 (do_site): call get_initial_list_idx
2301 * concat.cc (concat): avoid segfault when first parm is null
2303 2000-07-13 DJ Delorie <dj@cygnus.com>
2305 * postinstall.cc: new
2306 * Makefile.in: add postinstall.o
2307 * concat.h: add backslash ()
2309 * desktop.cc (etc_profile): don't do postinstall
2310 (backslash): moved to concat.cc
2312 (make_postinstall_script): run directly
2313 (do_desktop): chain to do_postinstall
2314 * dialog.h: add exit_msg, do_postinstall
2315 * download.cc: use exit_msg
2317 * main.cc: add postinstall, exit_msg
2318 * resource.h: add postinstall
2319 * README: add more to-do items
2321 2000-07-12 DJ Delorie <dj@cygnus.com>
2323 * desktop.cc: add /etc/postinstall/ support
2324 * install.cc: add more "standard" directories
2326 2000-07-11 DJ Delorie <dj@cygnus.com>
2328 * desktop.cc: create /etc/profile
2329 * desktop.cc: fix include syntax
2330 * Makefile.in: add auto-dependencies
2331 * root.cc: support system vs user
2339 * desktop.cc: make sure we use backslashes, not slashes.
2340 * desktop.cc: don't set PATH in cygwin.bat, create /etc/passwd
2341 * geturl.cc: change math for percentage to avoid overflow
2343 * download.cc: post "download complete" message.
2344 * root.cc: pre-fill in defaults if needed, don't start
2345 browse at root_dir unless it's set.
2346 * desktop.cc: quote $PATH in case it has spaces in it
2348 2000-07-10 DJ Delorie <dj@cygnus.com>
2350 * Makefile.in: add desktop.o and mklink2.o
2351 * dialog.h: add do_desktop
2352 * install.cc: create standard directories, call do_desktop
2353 * res.rc: add cygwin.ico as a file also
2354 * desktop.cc: new, do shortcuts, batch files, and icons
2355 * mklink2.c: new, for COM
2356 * README: update to-do list
2358 2000-07-10 DJ Delorie <dj@cygnus.com>
2360 * ini.cc (do_ini): don't worry about timestamps if we're not
2361 actually installing.
2363 2000-07-09 DJ Delorie <dj@cygnus.com>
2365 * Makefile.in: add -I$(srcdir) for ini.h
2367 2000-07-06 DJ Delorie <dj@cygnus.com>
2369 * Replace everything with a new GUI version
2370 * zlib/gzio.c: add gzctell() for progress displays
2372 2000-06-22 DJ Delorie <dj@cygnus.com>
2374 * setup.c (tarx): re-add call to write_pkg()
2376 2000-06-07 DJ Delorie <dj@cygnus.com>
2378 * cygcalls.c: new, call cygwin1.dll functions directly
2379 * cygcalls.h: header for same
2380 * Makefile.in: add cygcalls.[ch], remove mount/cygpath/umount
2381 exes, fix cinstall.rc dependencies.
2382 * path.c: remove unneeded code
2383 * setup.c: use cygcalls instead of xcreate_process.
2384 uncompress embedded files with zlib
2385 add "-d" for "download only"
2387 postpone mount changes until very end
2388 add download progress indicators
2389 pack multi-column listings more
2390 auto-delete temp files
2391 customize banner message according to options
2392 prompt user for text/binary mounts
2393 add warnings about empty setup directory, root installs, etc
2395 2000-05-24 DJ Delorie <dj@cygnus.com>
2397 * tar.c: New file; built-in tar using zlib.
2398 * tar.h: New file; header for same.
2399 * ctar.c: New file; test program for same.
2400 * Makefile.in: add built-in tar, remove tar.exe and gzip.exe
2401 * path.c (pathcat): convert slashes and canonicalize, instead of aborting
2402 * setup.c (tarx): add support for built-in tar
2403 (main): accept unix-style slashes, check root dir for drive letters,
2404 warn about installing in /, make sure cwd is empty for internet installs,
2405 defer mounts to end of install, support built-in tar.
2407 Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
2409 Fix compiler warnings throughout.
2410 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
2412 * setup.c: Make 'root' global.
2413 (istargz): Return pointer to "stem" of matched .tar.gz file.
2414 (tarx): Special case cygwin-20000301 to == cygwin-1.1.0.tar.gz. Remove
2415 bogus check_for_installed check.
2416 (recurse_dirs): Add preliminary support for .bat file execution.
2417 (create_uninstall): Eliminate unneeded parameter.
2418 (do_start_menu): Ditto.
2420 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
2421 scanning for the version number. Eliminate unneeded argument to
2423 (getdownloadsource): Add 'name' to list of names rather than url.
2424 (main): Eliminate unneeded argument in get_pkg_stuff. Eliminate
2425 unneeded argument in mkmount and do_start_menu.
2427 2000-05-18 DJ Delorie <dj@cygnus.com>
2429 * setup.c (optionprompt): allow multi-column, clean up message
2430 about more options, be more robust about user input.
2431 (getdownloadsource): make the mirror URL a macro.
2432 (main): do mounts after done prompting user.
2434 Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
2436 * setup.c (cleanup): Inverse order of deletion stands a better chance
2437 of deleting cygpath.exe. Still seems to suffer from occasional races,
2439 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
2441 (output_file): Defend against an unlikely handle leak.
2442 (main): Don't set up signal handling until we have something special to
2445 Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
2447 * path.c (kill_cygpath): Delete function.
2448 (exit_cygpath): Make more defensive so that it can be called at any
2450 (cygpath_pipe): Don't set up signal here. Do it in main().
2451 * setup.c (istargz): New function.
2452 (recurse_dirs): Look for *.gz pattern rather than *tar.gz since *tar.gz
2453 inexplicably fails on samba mounted partitions. Use istargz to match
2455 (processdirlisting) Use istargz to match tar.gz tail.
2456 (cleanup): Renamed from filedel.
2457 (cleanup_on_signal): New function. Called on CTRL-C.
2458 (main): Record handle of main thread so that it can be suspended when
2459 CTRL-C occurs. Set up cleanup_on_signal signal handler.
2461 Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
2463 * setup.c (do_start_menu): Don't concatenate paths to already built
2466 Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
2468 * path.c (exit_cygpath): Wait for subprocess to exit before returning.
2469 (cygpath_pipe): Don't call exit_cygpath. Let main atexit routine do
2471 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
2473 * setup.c (filedel): Call exit_cygpath here so that we can be assured
2474 that cygpath subprocess has died. This allows us to delete cygpath.exe
2476 (optionprompt): Initialize response to -1 so that second screen of
2477 mirrors will appear.
2478 (get_pkg_stuff): Don't attempt to use HKCLU. Pass root to init_pkgs.
2479 * setup.h: Reflect init_pkgs prototype change.
2481 Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
2483 * pkg.c (init_pkgs): Accept an argument to control what root registry
2485 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
2486 * setup.h: Reflect init_pkgs prototype change.
2488 Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
2490 * error.c (winerror): Respond to gcc warning.
2491 * path.c (cygpath_pipe): Ditto.
2492 * setup.c (filedel): Call sa_cleanup on deleteme.
2493 (create_shortcut): Coerce argument to eliminate compiler warning.
2494 (tarx): Use installed version of cygwin1.dll, overriding tar file name.
2495 (refmatches): New function. Tests if ref is contained in a list of
2496 packages to install.
2497 (filematches): New function. Tests if filename matches one of a list
2498 of packages to install.
2499 (recurse_dirs): Accept list of packages to install. Generalize tar.gz
2500 test to accomodate _tar.gz.
2501 (prompt): Ensure that stdout is flushed prior to asking for input.
2502 (findhref): Initialize variables to quiet a compiler warning.
2503 (processdirlisting): Accept list of packages to install. Special case
2504 cygwin tar file version number.
2505 (downloaddir): Accept list of packages to install.
2506 (downloadfrom): Ditto.
2507 (create_uninstall): Eliminate unneeded variables. Quote arguments to
2509 (do_start_menu): Don't create uninstall bat file if updating or user
2510 specified a list of packages.
2511 (mkmount): Eliminate unneeded variables.
2512 (get_pkg_stuff): New function. Checks for previous unversioned
2514 (main): Accept -u and -f options and package names on the command line.
2515 Use get_pkg_stuff to initialize package information. Umount /etc.
2516 Call recurse_dirs and downloadfrom with list of package to install.
2517 Ensure that all /usr/local directories are created. Output
2518 installation time to setup.log.
2519 * setup.h: Add some prototypes.
2520 * xsystem.c (xcreate_process): Eliminate unneeded variable.
2522 Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
2524 * setup.c (optionprompt): Don't overlap display of already seen options
2526 (geturl): Print name of site which we're connecting to rather than "ftp
2528 (processdirlisting): Avoid URLs that contain a /. or ./ . Is this
2529 test too simplistic?
2530 (do_start_menu): Use pathcat to build path to <root>\bin to avoid
2531 problems when user chooses x:\ as their root.
2532 (main): For now, default to "non-update" mode. Allow -u option to
2535 Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
2538 * setup.c (tarx): Skip already installed or older packages. Report
2539 when a package has been updated.
2540 (processdirlisting): Skip already installed or older packages.
2541 (main): Detect -f option for forced installation. Initialize pkg stuff
2543 * setup.h: Add pkg definitions.
2545 Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
2547 * setup.c (findhref): Return NULL on empty string. Eat any trailing
2549 (processdirlisting): Attempt to limit recursively processing the same
2552 Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
2554 * setup.c (filedel): New function.
2555 (output_file): Keep track of files extracted from setup.exe for
2556 subsequent deletion.
2557 (tarx): Close process handle of child tar process or suffer handle
2559 (getdownloadsource): Close mirror file so that it can be unlinked.
2560 (processdirlisting): Return total number of files extracted.
2561 (main): Initialize array of files to delete. Ensure that files are
2562 closed on exit. Make the directory that setup.exe is started from ==
2563 the directory where temporary files are placed. Issue an error if no
2564 files were found to download.
2565 * xsystem.c (xcreate_process): Close the thread handle. Close the
2566 process handle if we waited for it to exit.
2568 Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
2570 * setup.c (main): Change version number output.
2572 Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
2574 * setup.c (tarx): Use full path name to tar executable.
2575 (main): Build full pathname to tar executable. Create /usr/local/etc
2578 Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
2580 * setup.c (findhref): Change method for scanning for href= to choose
2581 the last one on the line. This is still not foolproof and probably
2582 will need to be changed eventually. Don't abort if no "size" field is
2584 (processdirlisting): Fix boolean algebra.
2586 Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
2588 * main.c (tarx): Add some code for future task of unmounting
2589 directories encountered in tar file.
2591 Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
2593 * setup.c (findhref): Decode file size, when appropriate.
2594 (needfile): New function. Returns 1 when file should be
2596 (processdirlisting): Always download if file size does not
2597 match. Prompt when download fails for some reason.
2598 (getdownloadsource): Accomodate findhref argument changes.
2600 Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
2602 Throughout, use global session handle rather than reinitializing for
2603 each connect. Don't pass session as an argument to setup.c functions.
2604 * setup.c (geturl): Only issue "Connecting to.." message when using
2605 http or first time for ftp since subsequent connections will be fast.
2606 (processdirlisting): Allocate space for "N" when user has specified
2607 "N"ever option so that it can be subsequently freed.
2608 (main): Abort if we can't get the list of mirrors.
2610 Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
2612 * setup.c (main): Umount /bin and /lib.
2614 Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
2616 * setup.c (main): Create an empty /var/run/utmp.
2618 Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
2620 * Makefile.in: Add umount to list of files to include in setup.exe.
2621 * setup.c (xumount): New function for unmounting directories.
2622 (main): Unmount /usr.
2623 (mkmount): Unmount "unix directory" before trying to figure out where
2624 to create the directory.
2626 Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
2628 * setup.c (mkmount): Use xcreate_process to start mount process,
2630 (main): Don't do buffering on stdout or prompts won't be displayed
2631 correctly if running in a cygwin shell with CYGWIN=tty.
2633 Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
2635 * setup.c (main): Remove the CYGWIN environment variable before
2636 starting any cygwin programs.
2638 Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
2640 * setup.c (geturl): Use alternative method for finding filename part of
2642 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
2643 (downloaddir): Unlink file containing dir listing.
2644 (downloadfrom): Ditto.
2646 Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
2648 * setup.c (main): Disallow running setup.exe from the "root".
2650 Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
2652 Use "warning" function, where appropriate, to output warnings.
2653 * setup.c (warning): New function -- outputs warning to console and log
2655 (tarx): Fix index used to reset file protection.
2656 (main): Open the log file earlier so that more stuff can be sent to it.
2658 Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
2660 * setup.c (processdirlisting): Make "N" option a little less aggressive.
2662 Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
2664 * setup.c (tarx): Wait to after tar has completed to reset protections
2665 or suffer races with tar process.
2667 Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
2669 * Makefile.in: Eliminate duplicate -nostdinc from CFLAGS.
2670 * setup.c (create_uninstall): Create the uninstall .bat file in the
2671 "root" so that we can remove the /bin directory. Add bin\cygwin.bat to
2672 list of files to be deleted. Fix directory detection for determining
2673 when to use 'rmdir'.
2674 (do_start_menu): Add /usr/local/bin to the path.
2675 (main): Add slop to files.array allocation so that we don't have to
2676 worry about reallocating the array when it grows too large when doing
2677 some trivial "pushes". Add /tmp and /usr/local/{bin,lib} to list of
2680 Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
2682 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
2685 Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
2687 * path.c (kill_cygpath): New cleanup function.
2688 (exit_cygpath): New cleanup function.
2689 (cygpath_pipe): New function. Sets up cygpath in the background for
2690 translating filenames.
2691 (pathcvt): Use background cygpath for file translation.
2692 * setup.c (tarx): New function. Called to extract tar files, capture
2693 logging output, and translate it to Windows format.
2694 (recurse_dirs): Use 'tarx' function to extract files.
2695 (create_uninstall): Use file list built up by tarx rather than reading
2697 (mkmount): Add ability to mount root.
2698 (main): Track elapsed install time. Mount root.
2699 * starry.h: Add index field to strarry for tracking of tarx's usage of
2701 * xsystem.c (xcreate_process): Return proces handle when not waiting.
2703 Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
2706 (pathfp): New function. Preliminary work for new -f cygpath
2708 * Makefile.in: Add new file.
2709 (pathcvt): Move to new file.
2713 * setup.c (processdirlisting): Always open file in text mode.
2714 (create_uninstall): Ditto.
2715 (getdownloadsource): Ditto.
2718 Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
2720 * xsystem.c: New file.
2721 * Makefile.in: Accomodate new file.
2722 * setup.c (xsystem): Move to new file.
2723 (recurse_dirs): Accept handle to output log file. Don't use ">"
2724 redirection to trap tar output. Use supplied handle instead.
2725 (create_uninstall): Accept FILE pointer to opened log file. Don't
2726 unlink log file here.
2727 (do_start_menu): Accept FILE pointer to pass to create_uninstall.
2728 (main): Open log file here and pass it to various functions. Unlink
2731 Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
2733 Change occurrences of .usr.bin to .bin throughout.
2734 * setup.c (geturl): Increase number of retries to 20. Let user know
2735 what's going on during long connects.
2736 (processdirlisting): Accept "A"lways and "N"ever as update options.
2737 (create_uninstall): Load cygwin1.dll from the current directory rather
2739 (main): Add some expository text.
2741 Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
2743 * Makefile.in: Change method for compressing cygwin1.dll to avoid
2744 creating a cygwin1.dll in the current directory. Ensure the addition
2745 of -nostdinc to MINGW_CFLAGS.
2747 Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
2749 * Makefile.in: Augment clean target.
2751 Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
2753 * README: Added info about non-working mingw implementation
2754 * gzip.exe.gz: Replace with a version from the same build as the other
2756 * tar.exe.gz: Replace with a version from the same build as the other
2758 * mount.exe.gz: Add to repository until, mingw can build setup.
2759 * cygpath.exe.gz: ditto
2760 * cygwin1.dll.gz: ditto
2761 * setup.c: Overwrite /bin and /lib mounts. Generate working shortcut
2762 for Win9x. Display only a screenfull of options at a time. Call all
2763 tools with an absolute path.
2764 * setup.dsp: Restore the carriage returns, MS Developer Studio needs
2769 Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
2771 * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab
2772 cygwin1.dll from ../cygwin subdirectory.
2773 * gzip.exe.gz: Update.
2774 * tar.exe.gz: Update.
2776 Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
2778 * Makefile.in: Use ZLIB variable as a target.
2780 Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
2782 * Makefile.in: Eliminate traces of cygwinisms. Don't link with
2783 libmsvcrt.a. It's unneeded. Build .rc file on the fly from various
2785 * configure.in: Locate correct objcopy.
2786 * configure: Regenerate.
2788 Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
2790 * Makefile.in: New file.
2791 * configure.in: New file.
2792 * configure: New file.
2793 * zlib/Makefile.am: New file.
2794 * zlib/configure.in: New file.
2795 * zlib/aclocal.m4: New file.
2796 * zlib/acinclude.m4: New file.
2797 * zlib/configure: Regenerate from configure.in.
2798 * zlib/Makefile.in: Regenerate from Makefile.am