1 2001-01-04 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3 * cistring.cc: Run d2u.
6 * desktop.cc (etc_profile): Remove "test -f ./.bashrc && . ./.bashrc"
7 from the generated /etc/profile. Bash will source this file
8 automatically, and having this here merely results in .bashrc being
9 executed twice. Run d2u.
12 * propsheet.cc: Run d2u.
13 (PropSheetProc): New function. Add minimize box here instead of in
14 PropertyPage::DialogProc.
15 (PropSheet::Create): Change to use creation callback PropSheetProc.
16 (DLGTEMPLATEEX): Add 'hidden' Windows struct definition.
18 * propsheet.h: Run indent, d2u.
19 * proppage.h: Run indent, d2u.
21 * proppage.cc: Run d2u.
22 (PropertyPage::DialogProc): Remove minimize-box-adding
23 functionality. Remove commented-out "PropSheet_SetWizButtons" calls.
24 Add support for calling virtual OnMessageCmd. Add setting of fonts in
25 WM_INITDIALOG handler.
26 (resource.h): New include for resource IDs.
28 * res.rc: Resize and rearrange property page dialog templates
29 to bring them in line with "Microsoft's Backward Compatible Wizard 97"
30 specification. Run d2u.
31 (IDD_SITE): Add an edit control and an "Add" button in order to
32 combine the IDD_SITE and IDD_OTHER_URL functionality onto one page.
33 (IDD_OTHER_URL): Remove dialog template.
34 (IDD_DLSTATUS): Remove dialog template.
37 (SitePage::OnBack): Remove NEXT() macro invocation.
38 (SitePage::OnActivate): New member function.
39 (load_dialog): Remove. Functionality subsumed into
41 (save_dialog): Change to support both list and user URLs. Remove
42 OTHER_IDX and mirror_idx logic.
43 (SitePage::PopulateListBox): New member function.
44 (SitePage::CheckControlsAndDisableAccordingly): New member function.
45 (SitePage::OnMessageCmd): New override.
46 (check_if_enable_next): Remove.
48 (do_download_site_info_thread): Remove calls to NEXT() macro.
49 (SitePage::Create): Call the single-param PropertyPage::Create
51 (other_url): New static taken from other.cc.
52 (SitePage::OnNext): Remove mirror_idx logic.
53 (SitePage::OnInit): Remove "Other URL" entry from list box. Remove
54 list box populating code, now handled in SitePage::PopulateListBox.
55 (mirror_idx, NO_IDX, OTHER_IDX): Remove.
56 (save_site_url): Fix potential buffer overflow problem. Switched to
57 TCHAR in grossly premature preparation for multilingual support.
59 (SitePage::OnActivate): New member function.
60 (SitePage::CheckControlsAndDisableAccordingly) New member.
61 (SitePage::OnMessageCmd): New override.
62 (do_download_site_info_thread): Add MessageBox call on failure to
66 (SplashPage::OnInit): Set the font for the title.
69 * threebar.cc: Run d2u.
70 * threebar.h: Run d2u.
73 (Window::IsButtonChecked): New member function declaration.
74 (Window::OnMessageCmd): New member function.
75 (Window::SetDlgItemFont): New member function declaration.
76 (Window::MAXFONTS, Window::Fonts, Window::FontCounter): New data
79 (Window::IsButtonChecked): New member function definition.
80 (Window::SetDlgItemFont): New member function definition.
81 (Window::Window): Add initialization for FontCounter.
82 (Window::~Window): Delete any fonts we created.
85 (progress): Remove the "3" field width from the "%3d"
86 percent-complete format indicator. Causes line to not start at
87 beginning of text box, and does little to help with "jumping", since
88 the "bytes downloaded so far" field is variable-width anyway. Change
89 kb/s format field to "%03.1" to 0-pad the kb/s number in the event of
90 painfully slow connections, or temporary slowdowns in faster
91 connections should such more-instantaneous functionality become
95 (NetPage::OnMessageCmd): New member function declaration.
96 (NetPage::CheckIfEnableNext): New member function declaration.
98 (NetPage::OnMessageCmd): New member function definition.
99 (dialog_cmd): Remove, subsumed into NetPage::OnMessageCmd.
100 (check_if_enable_next): Remove.
101 (NetPage::CheckIfEnableNext): New member function, subsumes
102 check_if_enable_next.
103 (propsheet.h): Add include.
104 (NetPage::Init): Add call to CheckIfEnableNext.
105 (load_dialog): Remove call to check_if_enable_next.
106 (NetPage::Create): Call single-template-ID-parameter overload of
107 PropertyPage::Create instead of three-parameter one.
109 * Makefile.in (OBJS): Remove other.o.
110 * other.cc: Remove file.
112 2002-01-01 Robert Collins <rbtcollins@hotmail.com>
114 * README: Update TODO's.
115 * choose.cc (set_existence): Delete non installed packages with no
117 (fill_missing_category): Fix an off-by-one error.
118 (default_trust): Ditto. Also delete any unused categories.
119 (view::init_headers): Fix an off-by-one error.
120 (set_view_mode): Ditto.
121 (set_view_mode): Ditto.
122 (create_listview): Ditto.
125 * io_stream.cc: Indent.
126 * io_stream.h: Ditto.
127 * package_db.cc: Ditto.
128 * package_meta.h: Const correctness for SDesc ();
129 * proppage.cc: Run d2u and indent.
130 * propsheet.cc: Run d2u and indent.
131 * window.cc: Run d2u and indent.
132 * window.h: Run d2u and indent.
134 2001-12-28 Christopher Faylor <cgf@redhat.com>
136 * Makefile.in (iniparse.o): Accommodate newer bisons.
138 2001-12-23 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
140 * window.h (Window): New file, new class.
141 * window.cc (Window): New file, new class.
143 * threebar.h (ThreeBarProgressPage): New file, new class.
144 * threebar.cc (ThreeBarProgressPage): New file, new class.
146 * splash.h (SplashPage): New file, new class.
147 * splash.cc (SplashPage): Replace file with implementation of new
150 * source.h (SourcePage): New file, new class.
151 * source.cc: Run indent.
152 (SourcePage): Add class implementation to this file.
153 (do_source): Remove, functionality subsumed by SourcePage::Create()
154 and SourcePage::OnDeactivate().
155 (dialog_proc): Remove, functionality subsumed by
156 SourcePage::OnActivate().
158 * site.h: Run indent.
159 (SitePage): Add class declaration.
160 * site.cc: Run indent.
161 (SitePage): Add class implementation.
162 (do_download_site_info_thread): New function.
163 (context): New var. Context info for do_download_site_info_thread().
164 (do_download_site_info): New function.
165 (SitePage::Create, SitePage::OnInit SitePage::OnNext)
166 (SitePage::OnBack): SitePage class implementation..
167 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers, now handled
169 (dialog_proc): Remove, now handled by SitePage::OnInit and base class
171 (do_site): Remove, now handled by do_download_site_info_thread() and
172 SitePage::OnNext functionality.
173 (get_site_list): Remove dismiss_url_status_dialog() call.
175 * root.h (RootPage): New file, new class.
176 * root.cc: Run indent.
177 (dialog_cmd): Pass parent HWND parameter to note(), yesno().
178 (dialog_proc): Remove.
180 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL clauses from switch.
181 (RootPage::OnInit): New member function. Move get_root_dir() logic to
183 (RootPage::Create): New member function.
184 (RootPage::OnNext): New member function. Move IDOK logic from
185 dialog_cmd() to here.
186 (RootPage::OnBack): New member function.
188 * propsheet.h (PropSheet): New file, new class.
189 * propsheet.cc (PropSheet): New file, new class.
191 * proppage.h (PropertyPage): New file, new class.
192 * proppage.cc (PropertyPage): New file, new class.
194 * postinstall.cc (do_postinstall): Add owner parameter.
196 * other.cc (do_other): Add owner parameter.
198 * nio-file.cc (NetIO::Purl): Pass NULL parent param to note().
199 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Pass NULL parent param to
201 * nio-http.cc (retry_get): Pass NULL parent param to get_auth(),
204 * nio-ie5.cc (NetIO::_url): Pass NULL parent param to note(),
205 get_auth(), get_proxy_auth().
207 * netio.h (get_auth, get_proxy_auth, get_ftp_auth): Add owner param.
208 * netio.cc (auth_common, NetIO::get_auth, NetIO::get_proxy_auth,
210 (auth_common): Add owner param. Pass owner param to DialogBox.
211 (NetIO::get_auth, NetIO::get_proxy_auth, NetIO::get_ftp_auth): Pass
212 owner param to auth_common().
214 * net.h (NetPage): New file, new class.
215 * net.cc: Run indent.
216 (net.h, threebar.h): Add includes.
217 (Progress): Add extern.
218 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, now handled by
219 property sheet logic. Saved temporarily for reference.
220 (NetPage::Create, NetPage::OnInit, NetPage::OnDeactivate,
221 NetPage::OnNext, NetPage::OnBack):
222 New implementation of NetPage class members.
224 (dialog_proc): Remove.
226 * msg.h (fatal, note, yesno): Add owner param.
227 * msg.c (fatal, note, yesno, mbox): Add owner param.
228 (mbox): Remove MB_TOPMOST from MessageBox call. Unnecessary and wrong
229 now that we have a parent.
231 * main.cc: Run indent.
232 (commctrl.h, proppage.h, propsheet.h, splash.h, source.h)
233 (localdir.h, net.h, site.h, choose.h, threebar.h, desktop.h): Include
235 (root_dialog_proc): extern into this file.
236 (Progress): Progress dialog defined here, used in several other files.
237 (WinMain): Instantiate and create Splash, Source, Root, LocalDir, Net,
238 Site, Chooser, Desktop pages and MainWindow sheet. Call
239 InitCommonControls() to make sure Windows is set up for our use of
240 property sheets. Add pages to sheet.
241 Call MainWindow.Create() to "DoModal". Remove main loop, that logic is
242 now handled by the PropSheet class.
243 (root.h): Add include.
245 * log.cc (log_save): Pass NULL parent to fatal().
246 (exit_setup): Pass NULL parent to note().
248 * localdir.h (LocalDirPage): New file, new class.
249 * localdir.cc: Run indent.
250 (localdir.h): New include.
251 (threebar.h): New include.
252 (Progress): extern into this file.
253 (LocalDirPage::Create, LocalDirPage::OnInit, LocalDirPage::OnActivate)
254 (LocalDirPage::OnNext, LocalDirPage::OnBack): Implementation of
256 (LocalDirPage::OnNext): Move log() call from do_local_dir() to here.
257 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers.
258 (do_local_dir): Remove.
259 (dialog_proc): Remove.
260 (cwd): Remove, not used by anything.
262 * install.cc: Run indent.
263 (process.h, threebar.h): New includes.
264 (Progress): extern into this file.
265 (ins_dialog, ins_action, ins_pkgname, ins_filename, ins_pprogress)
266 (ins_iprogress, ins_diskfull, init_event): Remove, now handled by
267 ThreeBarProgressPage.
268 (dialog_cmd, dialog_proc, dialog): Removed, handled in
269 ThreeBarProgressPage.
270 (init_dialog): Remove all mention of the above ins_* handles. Now
271 handled in ThreeBarProgressPage. Altered SetWindowText()s to call
272 ThreeBarProgressPage instance Progress directly.
273 (progress): Alter bar update logic to call ThreeBarProgressPage
274 instance Progress directly.
275 (uninstall_one): Alter SetWindowText()s to call ThreeBarProgressPage
276 instance Progress directly.
277 (install_one_source): Alter SetWindowText()s to call
279 instance Progress directly. Pass NULL parent to note().
280 (do_install_thread): Rename from do_install(), added owner param.
281 Alter SetWindowText()s to call ThreeBarProgressPage instance Progress
283 Remove dismiss_url_status_dialog() call, no longer necessary. Remove
284 ShowWindow(<hide>) call, also unnecessary now. Pass owner handle to
286 (do_install_reflector): New function.
287 (do_install): New function.
289 * ini.cc (process.h, threebar.h): New includes.
290 (Progress): externed into this file.
291 (find_routine): Pass NULL parent to note().
292 (do_local_ini): Add owner param.
293 (do_remote_ini): Add owner param. Pass owner to get_url_to_membuf()
294 and note(). Remove call to dismiss_url_status_dialog().
295 (do_ini_thread): Rename from do_ini(). Add owner param. Pass owner to
296 do_local_ini(), do_remote_ini(), yesno(), and note(). Set next_dialog
297 to IDD_CHOOSER on exit.
298 (do_ini_thread_reflector): New function.
299 (context): New var. Context for do_ini_thread.
300 (do_ini): New function.
302 * geturl.h (get_url_to_membuf, get_url_to_string, get_url_to_file): Add
304 * geturl.cc (gw_dialog, gw_url, gw_rate, gw_progress, gw_pprogress,
306 (gw_progress_text, gw_pprogress_text, gw_iprogress_text, init_event):
308 (threebar.h): New include.
309 (Progress): externed into this file.
310 (dialog_cmd, dialog_proc, dialog): Removed, handled by
311 ThreeBarProgressPage now.
312 (init_dialog): Remove "if (gw_dialog == 0)" clause. Alter
314 and bar setting SendMessage()s to call ThreeBarProgressPage instance
315 Progress directly. Remove "one bar only" logic, this is now handled
316 explicitly in the ThreeBarProgressPage class.
317 (progress): Altered bar and text update logic to call
318 ThreeBarProgressPage instance Progress directly. Changed kbps
319 calculation to floating point and now print out a single decimal
321 (get_url_to_membuf): Add owner param. Pass it to init_dialog.
322 (get_url_to_string): Add owner param. Pass it to get_url_to_membuf.
323 (get_url_to_file): Add owner param. Pass it to init_dialog. Alter bar
324 update logic to call ThreeBarProgressPage instance Progress directly.
325 (dismiss_url_status_dialog): Remove.
327 * fromcwd.cc (do_fromcwd): Add owner param. Initialize found_ini to
330 * download.cc: Run indent.
331 (process.h, threebar.h): New includes.
332 (Progress): externed into this file.
333 (download_one): Add owner param. Pass it to get_url_to_file().
334 (do_download_thread): Renamed from do_download. Add owner param. When
335 calculating total_download_bytes, take binpicked and srcpicked into
336 account. Remove call to dismiss_url_status_dialog(), no longer needed.
337 Pass owner handle to download_one() and yesno().
338 (do_download_reflector, do_download): New functions.
339 (context): New var. Context for do_download_thread().
341 * dialog.h (D(x)): Add owner param.
343 * desktop.h (DesktopSetupPage): New file, new class.
344 * desktop.cc: Run indent.
345 (desktop.h): Add include.
346 (dialog_proc, do_desktop): Remove, now handled in
347 DesktopSetupPage::OnInit().
348 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, handled in
349 DesktopSetupPage::OnFinish(), DesktopSetupPage::OnBack(), and PropSheet
351 (DesktopSetupPage::Create, DesktopSetupPage::OnInit)
352 (DesktopSetupPage::OnBack, DesktopSetupPage::OnFinish): Implementation
355 * cistring.h: New file, new class.
356 * cistring.cc: New file, new class.
358 * choose.h: Run indent.
359 (Chooser): New class declaration.
360 * choose.cc: Run indent.
361 (do_choose): Add owner param. Pass it to DialogBox() and
363 (Chooser): New class implementation.
365 * res.rc (IDS_VERSION_INFO): New string.
366 (IDD_SOURCE, IDD_LOCAL_DIR, IDD_ROOT, IDD_SITE, IDD_OTHER_URL)
367 (IDD_DLSTATUS, IDD_INSTATUS, IDD_SPLASH, IDD_CHOOSE, IDD_DESKTOP):
368 Change WS_POPUP to WS_CHILD. Numerous positioning/size changes
370 (IDD_CHOOSE): Give template the WS_EX_CONTROLPARENT style to enable
371 TAB control navigation etc. Give the controls a reasonable tab order.
372 Grouped radio buttons. Something's still not right, can't tab away
373 from back/next/cancel group reliably.
374 * resource.h (IDD_CHOOSER): New dialog ID.
376 * Makefile.in (OBJS): Add cistring.o, proppage.o, propsheet.o,
377 threebar.o, and window.o.
379 2001-12-21 Robert Collins <rbtcollins@hotmail.com>
381 * choose.cc (listview_proc): Update the scrollbar when the headers are dragged.
382 (pick_pkg_line::paint): Clip columns to prevent overlap.
384 2001-12-20 Robert Collins <rbtcollins@hotmail.com>
386 * Makefile.in: Add libcomctl32.a for setup.exe.
387 * archive.h (archive): Prevent non-child direct creation of the class.
388 * archive_tar.h (archive_tar): Prevent inaccurate synthetic copy and assignment.
389 * choose.cc: Include commctrl for the choose header.
390 (NEW_COL_SIZE_SLOP): Define without magic numbers.
391 (pkgtrustp): Convert to function.
392 (set_action): Remove.
393 (add_required, fill_missing_category,default_trust): Use list syntax for
396 (choose_caption): Remove.
397 (topbucket::paint): New method.
398 (topbucket::empty): Ditto.
399 (topbucket::click): Ditto.
400 (topbucket::~topbucket): Ditto.
401 (paint): Remove i,ii and p as they are obsolete.
402 Remove header drawing code.
403 Use new chooser method to paint the chooser.
404 Use new chooser itemcount method.
405 (scroll_common): Rename to view::scroll.
406 Scroll the header window separately.
407 (list_vscroll, list_hscroll, list_click): Update for new chooser methods.
408 (listview_proc): Look for header messages.
409 (note_width): Accept stringless calls.
410 (pick_line::set_line): Remove.
411 (pick_line::paint): Remove.
412 (pick_pkg_line::paint): Paint this one line, using the header column widths.
413 (pick_category_line::paint): Paint this category, and anything in the bucket.
414 (pick_line::click): Remove.
415 (pick_pkg_line::click): Handle a click.
416 (pick_category_line::click): Handle a click.
417 (_view): Rename all to view.
418 (view::view): Initialise the control contents.
419 (view::set_headers): Work with the header control.
420 (view::init_headers): Use list syntax for package list.
421 Rearrange the width logic a little.
422 (view::insert_pkg): Update to use the hierarchy.
423 (view::insert_category): Ditto.
424 (view::insert_at, view::insert_under): Remove.
425 (view::clear_view): Update to use the hierarchy.
426 (view::click): Update to use the hierarchy.
427 (set_view_mode): Use list syntax for package list.
428 Update for new chooser methods.
429 (DoInsertItem): New helper function. (Needs a home somewhere).
430 (create_listview): Remove choose control code and use the constructor instead.
431 (dialog_cmd,scan2,do_choose): Use list syntax for package list.
432 * choose.h: Include newly required headers list and package_meta.
433 (_voew): Rename to view.
434 (pick_line): Convert to an ABC.
435 (pick_pkg_line): New class.
436 (pick_catgory_line): New class.
437 (topbucket): New class.
438 (view::scroll): New method created from listview_scroll function.
439 * desktop.cc (make_passwd_group): Use list syntax for package list.
440 * download.cc (do_download): Use list syntax for package list.
441 * fromcwd.cc (found_file): Use list syntax for package list.
442 * iniparse.y (pacakges): Use list syntax for package list.
443 * install.cc (uninstall_one): Use list syntax for package list.
444 (do_install): Use list syntax for package list.
445 * io_stream.h (io_stream): Prevent non-child direct creation of the class.
446 Prevent inaccurate synthetic copy and assignment.
447 * list.h: Include required header stdlib.
448 Work on const correctness.
449 * package_db.cc (packagedb::getpackagebyname): Remove.
450 (packagedb::packagedb): Remove custom list code, and make db a local.
451 (packagedb::getfirstpackage): Remove.
452 (packagedb::getnextpackage): Remove.
453 (packagedb::addpackage): Remove.
454 (flush): Remove custom list code.
455 (packagedb::registerpackage): Remove.
456 (packagedb::packages): New static member.
457 (packagedb::task): New static member.
458 * package_db.h (PackageDBActions): New enum.
459 (packagedb): Remove getfirstpackage, getnextpackage, getpackagebyname,
460 addpackage, registerpackage, packages, packagecount, curr_package, db.
462 * pacakge_meta.cc: Include package_db.h.
463 (packagemeta::action_caption): New method.
464 (packagemeta::set_action): New method.
465 * package_meta.h (CategoryPackage): Initialise key.
466 (packagemeta): Initialise key.
467 Add set_action and action_caption methods.
468 Prevent inaccurate synthetic copy and assignment.
469 * resource.h (IDC_CHOOSE_LISTHEADER): New ID.
470 * source.cc: Include package_db for db manipulation.
471 (save_dialog): Set the db task.
472 * win32.h: Tell the w32 include headers what IE version to expect/require.
474 2001-12-06 Robert Collins <rbtcollins@hotmail.com>
476 * README: Wishlist updates.
478 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
480 * package_db.cc (getnextpackage): Don't overrun the array.
482 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
484 * Makefile.in (OBJS): Add setup_version.o.
485 (version.c): Rename to setup_version.
486 * choose.cc (set_action): Prevent NULL pointer dereference.
487 (package_sort): Remove.
488 * fromcwd.cc (canonicalize_version): Moved to version.cc.
489 (check_ini): New function for use with find to see if there is a cached setup.ini.
490 (do_fromcwd): Check for a cached setup.ini from any mirror site.
491 * ini.cc (find_routine): New function, for finding cached setup.ini's.
492 (do_local_ini): New function, drives parsing of local ini's.
493 (do_remote_ini): New function, drives parsing and caching of remote ini's.
494 (do_ini): Move guts to do_remote_ini and do_local_ini.
495 * list.h (removebyindex): New method.
496 * other.cc (save_dialog): Use new site_list and all_site_list to add the
497 new site to the site picklist.
498 (dialog_cmd): Only save the dialog when exiting the dialog.
499 * res.rc (IDD_SITE): Make IDC_URL_LIST a multiple-selection control.
500 * site.cc (site_list_type): Move to site.h
501 (site_list): New global, sites chosen by the user.
502 (all_site_list): New global, all potential sites.
503 (site_list_type::init): New method, parses a mirror.lst URL string into a
504 site_list_type object.
505 (site_list_type::site_list_type): New method.
506 (check_if_enable_next): Examine the control, not a local variable.
507 (load_dialog): Select all the user chosen sites by default.
508 (save_dialog): Adjust for multiple selection semantics.
509 (save_site_url): Save all user chosen sites.
510 (dialog_cmd): Don't save the dialog when the listbox recieves a message -
512 Remove obsolete other_url reference.
513 (dialog_proc): Use all_site_list instead of site_list.
515 (get_site_list): Remove malloc use - use list template instead.
516 Move site_list_type initialisation to site_list_type::init().
517 (get_initial_list_idx): Renamed to ...
518 (get_saved_sites): this. Also read in multiple sites to the site_list.
519 (do_site): Use all_site_list not site_list.
520 Log all chosen sites.
521 * site.h: New file, defines site related class, functions and variables.
522 * state.h: Add comment about use of state.h
523 (mirror_site): Remove.
525 (MIRROR_SITE): Remove.
526 * version.cc: New file, for version-handling and related functions.
528 2001-12-02 Robert Collins <rbtcollins@hotmail.com>
530 * Makefile.in: Add filemanip.o to setup.
531 * archive.cc (archive::extract_file): Use new io_stream method 'copy'.
532 * archive_tar.h (archive_tar_file): Implement get_size virtual.
533 (archive_tar): Ditto.
534 * choose.cc (set_action): Use [] operator instead of getnth - its more readable.
536 (_view::init_headers): Ditto.
537 (_view::insert_pkg): Ditto.
538 (set_view_mode): Ditto.
541 (base): Moved to filemanip.cc.
542 (find_tar_ext): Ditto.
543 (parse_filename): Ditto.
544 (_Info::_Info): Remove.
545 * compress_bz.h (compress_bz): Implement get_size virtual.
546 * compress_gz.h (compress_gz): Implement get_size virtual.
547 * cygpackage.cc (cygpackage::destroy): Use array delete for char * objects.
548 * download.cc (get_file_size): Move to filemanip.cc.
549 (check_for_cached): Use [] operator instead of getnth - its more readable.
550 (download_one): Ditto.
551 * filemanip.cc: New file.
552 * geturl.cc (init_dialog): Make url a pointer to const as it is not modified.
553 (get_url_to_membuf): New function - contains get_url_to_string worker code.
554 (get_url_to_string): Becomes a trivial wrapper to get_url_to_membuf.
555 * geturl.h: Declare new prototype.
556 * ini.cc (do_ini): Use get_url_to_membuf and pass ini_init an io_stream.
557 Tidy up the error code a little.
558 * ini.h: Remove __cplusplus protection for ini_init.
560 * inilex.l: Remove old globals.
561 (ini_init): Use an io_stream for getting the characters.
562 (ini_getchar): Ditto.
563 * iniparse.y: Declare yylex as a C++ function.
564 (add_correct_version): Use [] operator instead of getnth - its more readable.
565 * io_stream.cc (io_stream::move_copy): Use the copy method.
566 (io_stream::copy): New method to simply copy from one stream to another.
567 * io_stream.h (io_stream): New static method copy, and virtual method get_size.
568 * io_stream_cygfile.cc (io_stream_cygfile::get_size): Implement this.
569 * io_stream_cygfile.h (io_stream_cygfile::get_size): Declare this.
570 * io_stream_file.cc (io_stream_file::get_size): Implement this.
571 * io_stream_file.h (io_stream_file::get_size): Declare this.
572 * io_stream_memory.h: Include errno as it's neded to parse the header.
573 (io_stream_memory::get_size): Implement this.
574 (io_stream_memory::st_size): Delete this.
575 * list.h: Change getnth into the [] operator.
576 * netio.cc (NetIO::NetIO): Change prototype to reflect Purl not being modified.
577 (NetIO::set_url): Ditto.
578 (NetIO::open): Ditto.
579 * netio.h: As for netio.cc.
580 * nio-file.cc (NetIO_File::NetIO_File): Change prototype to reflect Purl not
583 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
584 * nio-ftp.h (NetIO_FTP::NetIO_FTP): Ditto.
585 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Ditto.
586 * nio-http.h (NetIO_HTTP::NetIO_HTTP): Ditto.
587 * nio-i5.cc (NetIO_IE5::NetIO_IE5): Ditto.
588 * nio-i5.h (NetIO_IE5::NetIO_IE5): Ditto.
589 * package_meta.cc (packagemeta::~packagemeta): Bugfix: use array delete.
590 * package_source.cc (packagesource::set_canonical): Ditto.
591 (packagesource::set_cached): Ditto.
592 * package_source.h (site::~site): Ditto.
593 * site.cc: Change site_list_type to a class, and search and replace sort_key to
596 2001-12-01 Robert Collins <rbtcollins@hotmail.com>
598 * package_source.cc (packagesource::set_canonical): Filename was out by one.
600 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
602 * Makefile.in (OBJS): Remove category_list - it's not needed.
603 * README: More wishlist updates.
604 * category.cc (Category::Category): Initialise new members.
605 (Categorycmp): New function.
606 * category.h (Category): New member key for template use.
607 * category_list.cc: Remove.
608 * category_list.h: Remove.
609 (Categorycmp): New function prototype.
610 * choose.cc: Remove category_list - not needed.
611 (set_action): Only show the 'source' option when the source is actually
613 (add_required): Fix recursion limiter to 5.
614 (fill_missing_category): Use list access.
615 (default_trust): Ditto.
616 (pick_line::paint): Ditto.
617 (_view::init_headers): Ditto.
618 (_view::insert_pkg): Ditto.
619 (_view::insert_category): Ditto.
620 (_view::click): Ditto.
621 (set_view_mode): Ditto.
623 * cygpackage.h: Remove category_list - not needed.
624 * geturl.cc (get_url_to_string): Fix null byte insertion.
625 * inipatse.y: Remove category_list - not needed.
626 (categories): Use list access.
627 * package_db.cc: Ditto.
628 * package_db.h: Remove category_list - not needed.
629 (packagedb): Use the list template for categories.
630 * package_meta.cc (add_category): Ditto.
631 * package_meta.h (CategoryPackage): Link to the category as well.
632 (packagemeta): Use a list of CategoryPackages instead of Categories
633 for more memory efficient cross-referencing.
635 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
637 * package_db.cc (packagedb::flush): Write a canonical version for all packages
638 irrespective of the media they were installed from.
640 2001-11-29 Robert Collins <rbtcollins@hotmail.com>
642 * Makefile.in (OBJS): Add package_source and rfc1738.
643 * README: Wishlist update.
644 * category_list.cc (register_category): Use references.
645 * category_list.h (CategoryList): Ditto.
646 * choose.cc (isinstalled): Remove.
647 (pkgtrustp): New macro.
648 (set_action): Use packagemeta.
649 (add_required): Ditto.
650 (choose_caption): Example package to choose caption, rather than state flags.
651 (check_existence): Remove.
652 (set_existence): Remove old code.
653 (fill_missing_category): Use packagemeta.
654 (keep_or_skip): Remove.
655 (default_trust): Use packagemeta and set trust values directly.
656 (pick_line::set_line): Use packagemeta.
657 (_view::insert_pkg): Ditto.
658 (_view::insert_category): Ditto.
659 (_view::click): Ditto.
660 (set_view_mode): Ditto. Also remove "exclude" code.
661 (create_listview): Use packagemeta.
663 (getpkgbyname): Remove
664 (scan2): Use packagemeta. Temporarily comment out the holefinding code.
665 (read_installed_db): Remove.
666 (package_sort): Use packagemeta.
667 (do_choose): Use packagemeta. Don't sort the packages - the db does that.
668 * choose.h: Use packagemeta.
669 * cygpackage.cc (cygpackage::cygpackage): Initialise all variables.
670 (cygpackage::cygpackage): Ditto.
671 (cygpackage::set_canonical_version): Copy the passed string.
672 (cygpackage::~cygpackage): Move cleanup code to destroy().
673 (cygpackage::destroy): New function.
674 (cygpackage::getfirstfile): Use a separate buffer.
675 (cygpackage::getnextfile): Ditto.
676 (cygpackage::Canonical_version): New function.
677 (cygpackage::set_sdesc): Ditto.
678 (cygpackage::set_ldesc): Ditto.
679 * cygpackage.h (cygpackage::Canonical_version): New method.
680 (cygpackage::set_sdesc): New method.
681 (cygpackage::set_ldesc): New method.
682 (cygpackage::SDesc): New method.
683 (cygpackage::LDesc): New method.
684 (cygpackage::set_canonical_version): New method.
685 * desktop.cc: Include packagedb headers.
686 (make_password_group): Use packagemeta.
687 * download.cc: Include packagedb headers.
688 (check_for_cached): New method to find any cached file and fill out the database
690 (download_one): Take a packagesource, support multiple mirrors.
691 (do_download): Use packagemeta.
692 * from cwd.cc: Include packagedb headers.
693 (found_file): Use packagemeta.
694 * ini.cc (do_ini): Beginning of multiple-mirror support.
695 * ini.h (CategoryPackage): Remove.
696 (Dependency): Remove.
698 (new_package,getpkgbyname,getpackagecategorybyname,add_category): Remove.
699 * inilex.l: Support multiple mirrors.
700 * iniparse.y: Include packagedb headers.
701 (parser): Use packagemeta.
702 (new_package): Remove.
703 (add_correct_version): New function.
704 (new_requirement): Remove.
705 (add_category): Remove.
706 * install.cc (uninstall_one): Use packagemeta.
707 (install_one_source): New function.
708 (install_one): Use packagemeta.
709 (do_install): Use packagemeta.
710 * io_stream.cc (io_stream::move): Bugfix on move/copy case.
711 * io_stream_cygfile.cc (io-stream_cygfile::set_mtime): Do not reopen the file
712 after setting the mtime, it makes no sense, and results in 0 length files.
713 * io_stream_file.cc (io-stream_file::set_mtime): Ditto.
714 * list.h: New file, template class for a form of list.
715 * package_db.cc (packagedb::registerpackage): New function.
716 * package_db.h (packagedb::npackages ()): New method.
717 * package_meta.cc (packagemeta::add_version): Use list template.
718 (packagemeta::set_installed): Ditto.
719 (packagemeta::add_category): New method.
720 * package_meta.h: Include necessary headers to parse the class.
721 (CategoryPackage): New class.
722 (packagemeta): Initialise all members.
723 (packagemeta::SDesc): New method.
724 (packagemeta::Categories): New method.
725 (packagemeta::add_category): Ditto.
726 (packagemeta::versions): Change to be a list instance.
727 * package_source.cc (packagesource::set_canonical): New method.
728 (packagesource::set_cached): New method.
729 * package_source.h: Include necessary headers to parse the class.
731 (packagesource::packagesource): Initialize all members.
732 (packagesource): Make this class non-abstract.
733 * package_version.cc (packageversion::packageversion): New method.
734 * package_version.h (Dependency): New class.
735 (packageversion::Canonical_vesion): New method.
736 (packageversion::SDesc): New method.
737 (packageversion::LDesc): New method.
738 (packageversion::new_requirement): Ditto.
739 (packageversion::srcpicked, binpicked): What to install.
740 (packageversion::src, bin): Installation source data.
741 * rfc1738.cc: New file. Escapes special characters in URL's.
744 2001-11-26 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
746 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Stop header parsing when
747 SimpleSocket::gets() returns a zero-length string, so that we
748 don't end up eating the entire stream thinking it's all header info.
750 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
752 * install.cc (badrename): Remove.
753 (do_install): Use packagedb flush method to write /etc/setup/installed.db.
754 * io_stream.cc (io_stream::move_copy): New method.
755 (io_stream::move): New method.
756 * io_stream.h (io_stream): New methods move and move_copy.
757 * io_stream_cygfile.cc (io_stream_cygfile::move): New method.
758 * io_stream_cygfile.h (io_stream_cygfile): New method move.
759 * io_stream_file.cc (io_stream_file::move): New method.
760 * io_stream_file.h (io_stream_file): New method move.
761 * package_db.cc (packagedb::flush): New method.
762 * package_db.h (packagedb): New method flush.
764 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
766 * Makefile.in (OBJS): Add package_version.
767 * ategory.cc (Category::Category): Update constructors.
768 * category_list.cc (CategoryList::register_category): Insert correctly.
769 * choose.cc: Include package_version.h, not package.h.
770 * cygpackage.cc: Ditto.
771 (cygpackage::uninstall): New method.
772 * cygpackage.h (cygpackage): Rename genericpackage to packageversion.
773 New method uninstall.
774 * hash.cc (add, has, enumerate): Change prototype to be accurate.
775 * hash.h (hash): Change prototypes to be accurate.
776 * ini.h (_Info): New parameterless constructor.
777 (CategoryPackage): New constructor.
779 * install.cc: Don't include unneeded headers.
780 Include package database headers.
781 (hash::add_subdirs): Remove.
782 (uninstall_one): Use packagemeta->uninstall to perform the uninstallation.
783 Don't uninstall source packages.
784 (do_install): Just can uninstall_one once as we ignore source packages now.
785 Don't copy the installed.old database accross, instead iterate through the
786 packagedb packages list and write the isntalled packages out.
787 * package_db.cc: Include package_version.h, not package.h.
788 (packagedb::packagedb): Never let db be undefined.
789 Record the installation filename, so we can reconstruct installed.db.
790 (packagedb::addpackage): Insert packages in alpha sorted order.
791 (packagedb::categories): Initialise correctly.
792 * package_meta.cc: Include win32 and mount headers as a workaround to
793 current io_stream limitations. Include a TODO about that.
794 (standard_dirs): New, from install.cc.
795 (hash::add_subdirs): New, from install.cc.
796 (packagemeta::set_installed): Rename genericpackage to packageversion.
797 (packagemeta::uninstall): New method.
798 * package_meta.h: Rename genericpackage to packageversion.
799 (packagemeta): Update constructor.
800 (add_version, set_installed): Rename genericpackage to packageversion.
801 (uninstall): New method.
802 (installed_from): New member.
803 * package_source.cc: New file.
804 * package_source.h: New file.
805 * package_version.cc: New file.
806 * package_version.h: New file.
807 * package.cc: Removed.
808 * package.h: Removed.
810 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
812 * Makefile.in (OBJS): Add category.o and category_list.o.
813 * category.h: New file.
814 * category.cc: New file.
815 * category_list.h: New file.
816 * category_list.cc: New file.
817 * choose.cc: Include category headers.
818 (fill_missing_category): Use package_db to access global categories.
819 (_view::insert_pkg): Ditto.
820 (_view::insert_category): Ditto.
821 (set_view_mode): Ditto.
822 (getcategorybyname): Remove.
823 * cygpackage.h: Include category_list.h to parse this correctly.
824 (cygpackage): New virtual &Categories.
825 * ini.h (_CategoryPackage): More C to C++ conversion.
827 (getcategorybyname): Remove.
828 (register_category): Remove.
829 * iniparse.y: Include package db and category headers.
830 (categories): Use package_db to access global categories.
832 (ncategories): Remove.
833 (register_category): Remove.
834 * package.h: New virtual &Categories.
835 * package_db.cc (packagedb::packagedb): Don't read the installed db twice.
836 (packagedb::categories): Declare.
837 * package_db.h (packagedb): New member categories for global categories list.
839 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
841 * choose.h: Don't include ini.h
842 * ini.h: Allow pure c++ in the header file.
844 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
846 * install.cc (do_install): Write a version 2 installed.db file.
847 * package_db.cc (packagedb::packagedb): Read version 1 and 2 installed.db files.
849 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
851 * Makefile.in (OBJS): Add package abstraction objects.
852 * choose.cc: Include package abstraction headers.
853 (read_installed_db): Use packagedb class and ignore installed sources.
854 * cygpackage.cc: New file.
855 * cygpackage.h: New file.
856 * filemanip.h (get_file_size): Use unixy types.
857 * package.h: New file.
858 * package.cc: New file.
859 * package_db.cc: New file.
860 * package_db.h: New file.
861 * package_meta.cc: New file.
862 * package_meta.h: New file.
864 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
866 * REAME: Updates to wishlist.
868 2001-11-16 Robert Collins <rbtcollins@hotmail.com>
870 * README: Updated and added my list of wishlist and todo items.
872 2001-11-14 Robert Collins <rbtcollins@hotmail.com>
874 * Makefile.in (OBJS): Include io_stream_memory in setup.exe.
875 * archive_tar.cc (archive_tar::write): New prototype.
876 (archive_tar::seek): New method.
877 * archive.h (archive_tar_file): Update write() and add seek().
878 (archive_tar): Ditto.
879 * archive_tar_file.cc (archive_tar_file::write): New prototype.
880 (archive_tar_file::seek): New method.
881 * compress_bz.cc (compress_bz::write): New prototype.
882 (compress_bz::seek): New function.
883 * compress_bz.h (compress_bz): Update write() and add seek().
884 * compress_gz.cc (compress_gz::write): New prototype.
885 (compress_gz::seek): New function.
886 * compress_gz.h (compress_gz): Update write() and add seek().
887 * geturl.cc: Include io_stream headers.
889 (get_url_to_string): Use a io_stream_memory buffer instead of GUBuf.
890 * io_stream.h (io_stream_seek_t): New enum.
891 (io_stream): Update write() and add seek().
892 * io_stream_cygfile.cc (io_stream_cygfile::write): New prototype.
893 (io_stream_cygfile::seek): New function.
894 * io_stream_cygfile.h (io_stream_cygfile): Update write() and add seek().
895 * io_stream_file.cc (io_stream_file::write): New prototype.
896 (io_stream_file::seek): New function.
897 * io_stream_file.h (io_stream_file): Update write() and add seek().
899 2001-11-13 Brian Keener <bkeener@thesoftwaresource.com>
901 * localdir.cc: Add headers unistd.h and port.h.
902 (save_local_dir): Expand search logic to include local directory for
903 location of file last-cache.
904 (dialog_cmd): Skip IDD_ROOT when downloading and use Back button.
905 (do_local_dir): Expand search logic to include local directory for file
907 * res.rc (IDD_CHOOSE_DIALOG): Add hotkey to View button.
908 * Source.cc (dialog_cmd): Skip IDD_ROOT if select Download from
910 (do_source): Default to Install from Internet on first entry or
911 previous selection if backing up from IDD_ROOT or IDD_LOCAL_DIR.
913 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
915 * choose.cc (find_tar_ext): Only match at the end of the string.
916 (getpkgbyname): Prevent NULL pointer dereference.
918 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
920 * Makefile.in (CFLAGS): Add warnings and -Werr.
921 (WARNONLY_FLAGS): For sources that produce (harmless) errors no matter what.
922 (OBJS): Add io_stream class' objects.
923 (autoload.o): Use WARNONLY_FLAGS.
926 * archive.cc: New file.
927 * archive.h: New file.
928 * archive_tar.cc: New file.
929 * archive_tar.h: New file.
930 * archive_tar_file.cc: New file.
931 * autoload.c: Fix compiler warnings (unused, deprecated conversion).
932 * choose.cc: Use io_stream.h, not mount.h.
934 (find_tar_ext): Rewritten to use strstr, and to accept .tar as an extension.
935 (read_installed_db): Use io_streams.
936 * choose.h: Run indent.
937 * compress.cc: New file.
938 * compress.h: New file.
939 * compress_bz.cc: New file.
940 * compress_bz.h: New file.
941 * compress_gz.cc: New file.
942 * compress_gz.h: New file.
943 * concat.cc: Run indent.
944 (cvsid): Fix compiler warnings (unused, deprecated conversion).
945 * concat.h: Run indent.
946 * desktop.cc: Run indent.
947 Include mklink2.h rather than redefining by hand.
948 (cvsid): Fix compiler warnings (unused, deprecated conversion).
949 (etc_profile): Fix compiler warning (deprecated conversion).
950 (make_link): Fix compiler warning (deprecated conversion).
951 Tidy up use of args variable - consolidate into argbuf.
952 (start_menu): Fix compiler warning (deprecated conversion).
953 (desktop_icon): Fix compiler warning (deprecated conversion).
954 (make_etc_profile): Fix compiler warning (deprecated conversion).
955 (uexists): Fix compiler warning (deprecated conversion).
956 (check_desktop): Fix compiler warning (deprecated conversion).
957 (check_startmenu): Fix compiler warning (deprecated conversion).
958 * dialog.cc: Run indent.
959 (cvsid): Fix compiler warnings (unused, deprecated conversion).
960 (fatal): Fix compiler warning (deprecated conversion).
961 * dialog.h: Run indent.
962 * diskfull.cc: Run indent.
963 (cvsid): Fix compiler warnings (unused, deprecated conversion).
964 * download.cc: Run indent.
965 (cvsid): Fix compiler warnings (unused, deprecated conversion).
966 (download_one): Fix compiler warning (signed vs unsigned comparison).
967 * filemanip.h: Run indent.
968 * find.cc: Run indent.
969 (cvsid): Fix compiler warnings (unused, deprecated conversion).
970 (find): Fix compiler warning (deprecated conversion).
971 * find.h: Run indent.
972 * fromcwd.cc: Run indent.
973 * geturl.cc: Run indent.
974 (cvsid): Fix compiler warnings (unused, deprecated conversion).
975 (dialog_cmd): Return a value.
976 (dialog_proc): Remove unused variables.
978 (get_url_to_file): Fix compiler warning (deprecated conversion).
979 * geturl.h: Run indent.
980 * hash.cc: Run indent.
981 (cvsid): Fix compiler warnings (unused, deprecated conversion).
982 * hash.h: Run indent.
983 * ini.cc: Run indent.
985 (cvsid): Fix compiler warnings (unused, deprecated conversion).
986 (do_ini): Use io_streams for local io.
988 * inilex.l (ignore_line): Fix compiler warning (is not a prototype).
989 Fix compiler warning (brackets for truth assignment).
990 * install.cc: Run indent.
991 Fix compiler warning (/* in comment).
993 (cvsid): Fix compiler warnings (unused, deprecated conversion).
994 (dialog_cmd): Return a value.
995 (dialog_proc): Return a value.
996 (start_tics): Deleted - was unused.
997 (badrename): Fix compiler warnings (unused, deprecated conversion).
998 (standard_dirs): Fix compiler warning (deprecated conversion).
1000 (uninstall_one): Convert to io_streams.
1001 (install_one): Convert to io_streams.
1002 (do_install): Convert to io_streans.
1003 Fix compiler warning (deprecated conversion).
1004 * io_stream.cc: New file.
1005 * io_stream.h: New file.
1006 * io_stream_cygfile.cc: New file.
1007 * io_stream_cygfile.h: New file.
1008 * io_stream_file.cc: New file.
1009 * io_stream_file.h: New file.
1010 * localdir.cc: Run indent.
1012 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1013 (get_root_dir_now): Remove.
1014 (save_local_dir): Convert to io_streams.
1015 (dialog_cmd): Return a value.
1016 (do_local_dir): Convert to io_streams.
1017 (log.cc): Run indent.
1018 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1019 (log): Fix compiler warning (deprecated conversion).
1020 (log_save): Fix compiler warning (deprecated conversion).
1021 * log.h: Run indent.
1022 (log): Fix compiler warning (deprecated conversion).
1023 (log_save): Fix compiler warning (deprecated conversion).
1024 * main.cc: Run indent.
1025 Don't include "netio.h".
1026 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1027 (netio_test): Remove.
1028 (sid_auth): Fix compiler warning (partially bracketed initialiser).
1029 (WinMain): Return a value.
1030 * mkdir.cc: Run indent.
1031 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1032 * mklink2.c: Run indent.
1033 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1034 (mkcygsymlink): New function.
1035 * mklink2.h: New file.
1036 * mount.cc: Run indent.
1037 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1038 (create_mount): Remove unused variables.
1039 (cygpath): Fix compiler warning (signed vs unsigned comparison).
1040 * mount.h: Run indent.
1041 * msg.cc: Run indent.
1042 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1043 (msg): Fix compiler warning (deprecated conversion).
1044 (mbox): Fix compiler warning (deprecated conversion).
1045 * msg.h: Run indent.
1046 (msg): Fix compiler warning (deprecated conversion).
1047 * net.cc: Run indent.
1048 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1049 (dialog_cmd): Return a value.
1050 * netio.cc: Run indent.
1051 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1052 (auth_cmd): Return a value.
1053 * netio.h: Run indent.
1054 * nio-file.cc: Run indent.
1055 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1056 (NetIO_File::NetIO_File): Fix compiler warning (deprecated conversion).
1057 * nio-file.h: Run indent.
1058 * nio-ftp.cc: Run indent.
1059 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1060 * nio-ftp.h: Run indent.
1061 * nio-http.cc: Run indent.
1062 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1063 * nio-http.h: Run indent.
1064 * nio-ie5.cc: Run indent.
1065 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1066 * nio-ie5.h: Run indent.
1067 * other.cc: Run indent.
1068 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1069 (dialog_cmd): Return a value.
1070 * port.h: Run indent.
1071 * postinstall.cc: Run indent.
1072 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1073 (cmd): Fix compiler warning (deprecated conversion).
1074 (eun): Fix compiler warning (deprecated conversion).
1075 * root.cc: Run indent.
1076 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1077 * simpsock.cc: Run indent.
1078 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1079 * simpsock.h: Run indent.
1080 * site.cc: Run indent.
1082 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1083 (get_root_dir_now): Remove.
1084 (save_site_url): Convert to io_streams.
1085 (dialog_cmd): Return 0.
1086 (get_initial_list_idx): Convert to io_streans.
1087 * source.cc: Run indent.
1088 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1089 (check_if_enable_next): Remove.
1090 (load_dialog): Remove unused variables.
1091 (save_dialog): Ditto.
1092 (dialog_cmd): Return a value.
1093 * splash.cc: Return a value.
1094 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1095 (dialog_cmd): Return a value.
1096 * state.cc: Run indent.
1097 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1098 * state.h: Run indent.
1102 2001-11-12 Christopher Faylor <cgf@redhat.com>
1104 * desktop.cc (start_menu): Change start menu name to "Cygwin".
1105 (check_startmenu): Ditto.
1107 2001-11-11 Christopher Faylor <cgf@redhat.com>
1109 * choose.cc (parse_filename): Finish reorganization by correctly
1110 decrementing p in memmove.
1112 2001-11-11 Christopher Faylor <cgf@redhat.com>
1114 * choose.cc (parse_filename): Reorganize code to work around gcc
1115 optimization problem.
1117 2001-11-09 Gareth Pearce <tilps@hotmail.com>
1119 * choose.cc (set_action): Allow skip as an option for installed
1120 packages that have version number not listed in setup.ini.
1122 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
1124 * choose.cc (set_cation): Backout last change.
1125 (choose_caption): Ditto.
1127 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
1129 * ini.h (actions): Remove - transferred to choose.h.
1131 * choose.h: Protect class's from "C" compilers.
1132 (actions): New enum, from ini.h. This may not be the 'right' place
1133 but that place doesn't exist yet.
1134 (_views): New enum, from ini.h.
1135 * choose.cc (set_action): Handle installed packages with a version not in
1137 (choose_caption): Ditto.
1138 * iniparse.y: Rearrange header order to handle new ini.h.
1140 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
1142 * ini.h (_Info): Fix compiler warnings (signed vs unsigned comparison).
1143 (registry_category): Fix compiler warning (deprecated conversion).
1144 * iniparse.y (registry_category): Ditto.
1145 * choose.cc (cvsid): Fix compiler warnings (unused, deprecated conversion).
1146 (add_requried): Remove unused variable.
1147 (choose_caption): Handle all enumeration values via a default.
1148 (paint): Fix compiler warnings (unused, deprecated conversion).
1149 (scroll_common): Fix compiler warnings (unused, signed vs unsigned comparison).
1150 (list_clicK): Fix compiler warnings (signed vs unsigned comparison).
1151 (note_width): Fix compiler warnings (deprecated conversion).
1152 (keep_or_skip): Fix compiler warnings (unused).
1153 (_view::mode_caption): Fix compiler warnings (deprecated conversion).
1154 (set_view_mode): Fix compiler warnings (unused).
1155 (create_listview): Fix compiler warnings (unused, incorrect format, reaches
1157 (dialog_proc): Fix compiler warnings (unused).
1158 (read_installed_db): Fix compiler warnings (unused, deprecated conversion).
1159 * choose.h (_header): Fix compiler warnings (deprecated conversion).
1162 2001-11-08 Pavel Tsekov <ptsekov@syntrex.com>
1164 * simpsock.h (SimpleSocket::invalidate): Declare new method.
1165 * simpsock.cc (SimpleSocket::invalidate): Implement new method.
1166 (SimpleSocket::SimpleSocket): Initialize buf to zero. Do not allocate
1167 memory for buf in the constructor.
1168 (SimpleSocket::~SimpleSocket): Use SimpleSocket::invalidate().
1169 (SimpleSocket::printf): Use SimpleSocket::write() instead of send().
1170 (SimpleSocket::write): Check object consistency - return -1 on error.
1171 invalidate() the object on socket write error.
1172 (SimpleSocket::fill): Check object consistency - return -1 on error.
1173 invalidate() the object if socket read error is encountered and there
1174 is no more data available in the internal read buffer.
1175 Allocate memory for the internal read buffer.
1176 (SimpleSocket::gets): Return zero (NULL pointer) if error is encountered
1177 during fill() and no more data is available in the internal read buffer.
1178 (SimpleSocket::read): Check object consistency - return -1 on error.
1179 invalidate() the object if socket read error is encountered.
1180 * nio-ftp.cc (NetIO_FTP:NetIO_FTP): Allow 125 as valid response code to
1181 the RETR command (fix for MS IIS ftp server 5 - possibly others too).
1182 (NetIO_FTP::ok): Check if the SimpleSocket object is ok().
1183 (NetIO_FTP::read): Use NetIO_FTP::ok().
1184 * nio-http.cc: Check for valid return value of SimpleSocket::gets().
1185 (NetIO_HTTP::ok): Check if the SimpleSocket object is ok().
1187 2001-11-09 Robert Collins <rbtcollins@hotmail.com>
1189 * simpsock.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
1190 (SimpleSocket::SimpleSocket): Avoid compiler warnings (deprecated conversion).
1191 (SimpleSocket::printf): Ditto.
1192 (SimpleSocket::write): Ditto.
1193 * simpsock.h (SimpleSocket): Avoid compiler warnings for constructor,
1195 * nio-ftp.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
1196 (NetIO_FTP::NetIO_FTP): Remove unused variable done.
1197 * nio-http.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
1199 2001-11-07 Charles Wilson <cwilson@ece.gatech.edu>
1201 * geturl.cc (get_url_to_string): clean up memory leak
1202 (get_url_to_file): ditto
1204 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
1206 * localdir.cc (dialog_cmd): Go back to IDD_ROOT in every case.
1207 * source.cc (dialog_cmd): Go forward to IDD_ROOT in every case.
1209 2001-11-06 Pavel Tsekov <ptsekov@syntrex.com>
1211 * fromcwd.cc (found_file): Free() memory containing the version and
1212 filepath information for a given package, before replacing the pointers which
1213 reference this memory.
1215 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
1217 * fromcwd: Fix compiler warnings for cvsid.
1218 (canonicalize_version): Fix compilter warnings.
1219 (do_fromcwd): Ditto.
1220 * version.h: Fix compiler warnings for canonicalize_version.
1222 2001-11-03 Robert Collins <rbtcollins@hotmail.com>
1224 * res.rc (IDD_CHOOSE): Move the view caption to the right hand side.
1226 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1228 * res.rc (IDD_CHOOSE): Tweak for use on a 640x480 screen.
1230 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1232 * choose.cc (set_action): Correctly allow skip for any uninstalled package.
1234 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1236 * choose.cc (default_trust): Change the "Required" forced install category to
1239 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1241 * choose.cc: Ran indent.
1242 (set_action): When the requested trust level is missing and the level was not
1243 user requested, set the action to ACTION_SAME_CURR.
1245 2001-11-01 Christopher Faylor <cgf@redhat.com>
1247 * Makefile.in (mingw_getopt.o): Fix typo in non-verbose compilation.
1249 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1251 * choose.cc (_view::init_headers): Resync with the paint logic.
1253 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1255 * choose.cc (add_required): Allow SKIP and SRC_ONLY for currently installed
1258 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1260 * choose.cc (default_trust): Autoset currently installed packages per the user's
1261 selection of prev/curr/exp.
1263 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1265 * splash.cc (dialog_proc): Return TRUE as specified in the WIN32 API.
1267 2001-11-02 Pavel Tsekov <ptsekov@syntrex.com>
1269 * geturl.cc (is_showing): Remove.
1270 (is_local_install): New static variable. Controls whether the
1271 progress dialog and the supporting thread will be created.
1272 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the WIN32 API.
1273 (init_dialog): Remove usage of SetForegroundWindow and is_showing.
1274 This prevents the progress dialog to gain control over the
1275 application and fixes the "setup.exe going to background" problem.
1276 (progress): Use is_local_install.
1277 (get_url_to_string): Set is_local_install.
1278 (dismiss_url_status_dialog): Use is_local_install.
1279 * install.cc (dialog_proc): Return TRUE as specified in WIN32 API.
1280 (init_dialog): Remove usage of SetForegroundWindow.
1281 This prevents the progress dialog to gain control over the
1282 application and fixes the "setup.exe going to background" problem.
1284 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1286 * choose.cc (list_click): Change r to row for clarity.
1287 When we shrink the list below 1 page, scroll to the top of the list.
1288 (_view::click): Return the actual change for contractions.
1289 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the Win32 API.
1291 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1293 * choose.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
1294 * localdir.cc: Ran indent.
1295 (get_root_dir_now): New function.
1296 (save_local_dir): New function.
1297 (dialog_cmd): Use it and swap cygwin root selection and local dir selection order.
1298 (do_local_dir): If there is a saved local dir, read it in.
1299 * net.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
1300 * root.cc (dialog_cmd): Ditto.
1301 * source.cc (dialog_cmd): Ditto.
1303 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
1305 * choose.cc(list_vscroll): Return 0 as required by win32.
1306 (list_hscroll): Ditto.
1307 (list_click): Ditto.
1309 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
1313 * main.cc(WinMain): Use __argv to retrieve command line parameters.
1314 * Makefile,in: Remove argv.o.
1316 2001-11-01 Matt Hargett <matt@use.net>
1318 * geturl.cc (progress): Change int to unsigned int to eliminate
1320 * (get_url_to_string): Check for NULL pointer.
1321 * mount.cc (find2): Use free instead of delete for malloc'd
1323 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Fix memory leak.
1325 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
1327 * choose.cc(_view::insert_under): Handle linen > nlines and lines[linen] with neither
1328 a package nor a category. The lines[linen] bug was reported by Matt (matt@usa.net).
1329 (read_installed_db): Bugfix for testing whether a package has a source tarball.
1330 Reported by Matt (matt@usa.net).
1331 * geturl.cc(dialog): Rename gw_dialog to local_gw_dialog to avoid programmer
1332 confusion and lint errors. Reported by Matt (matt@usa.net).
1334 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
1336 * argv.cc: New file, converts arguments for -mwindows programs. (Simplified derivation
1339 * Makefile,in: Add argv.o and mingw_getopt.o to setup.exe object list.
1340 Add mingw_getopt.o build rule.
1341 * main.cc(WinMain): Initialise argv and argc for use by getopt.
1343 2001-10-27 Christopher Faylor <cgf@redhat.com>
1345 * res.rc: Rearrange info on top line slightly.
1347 2001-10-27 Christopher Faylor <cgf@redhat.com>
1349 * desktop.cc (make_passwd_group): Move file creation earlier in the
1350 process to ensure that passwd-grp.bat reflects desired operation.
1352 2001-27-10 Trevor Forbes <t4bs@hotmail.com>
1354 * postinstall.cc (each): Remove "*.done" file else rename will fail.
1356 2001-10-16 Christopher Faylor <cgf@redhat.com>
1358 * res.rc: Oops. Take 640x480 screen size into account.
1360 2001-10-16 Christopher Faylor <cgf@redhat.com>
1362 * res.rc: Enlarge chooser screen.
1364 2001-10-12 Christopher Faylor <cgf@redhat.com>
1366 * Makefile.in: Accomodate changes to w32api_include macro.
1368 2001-10-12 Christopher Faylor <cgf@redhat.com>
1370 * Makefile.in: Use correct flags for windres.
1372 2001-10-12 Christopher Faylor <cgf@redhat.com>
1374 * Makefile.in (CFLAGS): Remove -nostdinc from CFLAGS.
1376 2001-10-12 Christopher Faylor <cgf@redhat.com>
1378 * choose.cc (pick_line::paint): Reorganize after botched patch.
1380 2001-10-12 Christopher Faylor <cgf@redhat.com>
1382 * choose.cc (pick_line::paint): Add missing declaration.
1384 2001-10-10 Ralf Habacker <Ralf.Habacker@freenet.de>
1386 * choose.cc (pick_line::paint): Add package name to sdesc for display.
1388 Wed Sep 26 21:39:00 Robert Collins rbtcollins@hotmail.com
1390 * choose.cc (_view::insert_pkg): Correctly exit loop.
1391 * iniparse.y (register_category): Always insert new categories.
1393 Fri Sep 21 13:56:32 2001 Christopher Faylor <cgf@cygnus.com>
1395 * inilex.l (yylex): For comments, eat all characters up to, but not
1398 Sun Aug 26 12:50:01 2001 John Marshall <jmarshall@acm.org>
1400 * fromcwd.cc (found_file): Use correct package name when adding an
1401 unknown package rather than random stack garbage.
1403 Sun Aug 12 14:25:21 2001 Christopher Faylor <cgf@cygnus.com>
1405 * desktop.cc (make_passwd_group): .bat files need \r\n endings.
1407 Wed Aug 8 13:53:47 2001 Christopher Faylor <cgf@cygnus.com>
1409 * desktop.cc (etc_profile): Leave environment variables untouched.
1411 2001-08-07 Corinna Vinschen <corinna@vinschen.de>
1413 * autoload.c: Add dynamic load statements for NT/W2K
1414 advapi32 functions not available in 9x/ME.
1415 * main.cc (set_default_dacl): New function.
1416 (WinMain): Call `set_default_dacl' if running on NT/W2K.
1418 Sat Aug 4 21:35:53 2001 Christopher Faylor <cgf@cygnus.com>
1420 * ini.h (_CategoryPackage): Change pkg field to pkgname for
1422 * choose.cc: Use pkgname field when referencing _CategoryPackage
1424 (fill_missing_category): Don't add excluded packages.
1425 (default_trust): Ditto.
1426 (_view::insert_pkg): Ditto.
1427 * iniparse.y (register_category): Use consistent variable name.
1429 2001-07-09 Egor Duda <deo@logos-m.ru>
1431 * choose.cc: Use system foreground color for text output.
1433 Sat Jul 7 00:40:28 2001 Christopher Faylor <cgf@cygnus.com>
1435 * choose.cc (set_action): Use default trust for determining reinstall
1437 (default_trust): Set default trust.
1438 (pick_line::paint): Allow source selection when reinstalling or
1441 Fri Jul 6 18:08:49 2001 Christopher Faylor <cgf@cygnus.com>
1443 * choose.cc (isinstalled): Modify to properly accomodate special case
1445 (set_action): Check downloaded components, not installed components if
1447 (set_existence): Always include full list of files when "download
1450 Fri Jul 6 00:37:05 2001 Christopher Faylor <cgf@cygnus.com>
1452 * choose.cc (pick_line::paint): Properly display "na" field when no
1455 Thu Jul 5 00:34:23 2001 Christopher Faylor <cgf@cygnus.com>
1457 * choose.cc (scan2): Ensure that older versions do not show up in
1460 Mon Jul 2 15:47:59 2001 Christopher Faylor <cgf@cygnus.com>
1462 * choose.cc (set_action): Allow "Skip" action if trust != installed.
1463 * res.rc: Fix copyright.
1465 Sat Jun 30 14:05:21 2001 Michael A Chase <mchase@ix.netcom.com>
1467 * res.rc (IDD_LOCAL_DIR): Change caption to match the other dialog
1469 (IDD_CHOOSE): Adjust horizontal size so package names are visible.
1471 * choose.cc: Restore some more changes from 2001-06-25, throughout.
1472 (paint): Wrap some excessively long lines.
1473 (pick_line::paint): Ditto. Move the arrow in the "Current" column
1474 right to where it belongs. Move the source checkbox slightly to the
1476 (do_choose): List categories and required packages in setup.log.full.
1478 Sat Jun 30 23:04:59 2001 Christopher Faylor <cgf@cygnus.com>
1480 * choose.cc (scan2): Restore source scanning eliminated by previous checkin.
1482 Sat Jun 30 15:18:33 2001 Christopher Faylor <cgf@cygnus.com>
1484 * ini.h (struct _Info): Add "derived" element.
1485 * choose.cc (scan2): Try to place unknown tar files into proper slot
1486 when package exists in setup.ini but tar file does not.
1488 Sat Jun 30 13:39:00 2001 Robert Collins <rbtcollins@hotmail.com>
1490 * choose.cc (create_listview): Call set_view_mode with VIEW_CATEGORY.
1491 (do_choose): Log the first category name.
1493 Fri Jun 29 23:07:44 2001 Christopher Faylor <cgf@cygnus.com>
1495 *ini.h: Reapply 2001-06-25 changes.
1496 * choose.cc (add_required): Ditto. Default to "Keep" state if
1497 UNINSTALL and product is installed. Default to curr state if SKIP,
1499 (keep_or_skip): New function. Returns skip or keep state depending on
1500 installed state of package.
1501 (default_trust): Use keep_or_skip to set state.
1502 (_view::insert_pkg): Use calloc to allocate lines.
1503 (set_view_mode): Adapt 2001-06-25 change to set_full_list here.
1505 Sat Jun 30 11:01:00 2001 Robert Collins <rbtcollins@hotmail.com>
1507 * choose.cc: Remove globals full_list, headers, package_indexes and
1509 Add globals cat_headers, pkg_headers and chooser.
1510 (add_required): New function.
1511 (paint): Use the chooser for header details.
1512 Call into the chooser to paint each line.
1513 (list_click): Use new global variables.
1514 Call into the chooser to handle the click.
1515 Repaint the entire view if packages have been added or removed.
1516 (note_width): Get passed a headers struct rather than using a global
1518 (fill_missing_category): New function.
1519 (default_trust): Skip non-"Required" or "Misc" packages.
1520 (pick_line::set_line (Package *)): New function.
1521 (pick_line::set_line (Category *)): New function.
1522 (pick_line::paint): New function.
1523 (pick_line::click): New function.
1524 (_view::_view): New function.
1525 (_view::set_view_mode): New function.
1526 (_view::mode_caption): New function.
1527 (_view::set_headers): New function.
1528 (_view::init_header): New function.
1529 (_view::insert_pkg): New function.
1530 (_view::insert_category): New function.
1531 (_view::insert_at): New function.
1532 (_view::insert_under): New function.
1533 (_view::clear_view): New function.
1534 (viewsplusplus): New function.
1535 (_view::client): New function.
1536 (set_view_mode): Use new chooser functionality.
1537 (set_full_list): Use new global variables.
1538 (create_listview): Instantiate chooser.
1539 Remove all hardcoded headers[] code.
1540 (dialog_cmd): On trust changes, check dependencies.
1541 (getcategorybyname): New function.
1542 (getpackagecategorybyname): New function.
1543 (scan2): Use case-insensitive package comparison.
1544 (do_choose): Use fill_missing_category ().
1545 Show some category data.
1546 * ini.h: Protect against multiple inclusion.
1548 (_CategoryPackage): New struct.
1549 (_Category): New struct.
1550 (_Package): Change category to Category * from char *.
1551 (extern Category category): New global variable.
1552 (extern in ncategories): Ditto.
1553 (getcategorybyname): New prototype.
1554 (catpackagecategorybyname): New prototype.
1555 (register_category): New prototype.
1556 (add_category): New prototype.
1557 * iniparse.y: Parse multiple categories per package.
1558 (category): New global variable.
1559 (ncategories): New global variable.
1560 (new_package): Compare package against NULL, not 0.
1561 (new_requirement): Source formatting fix.
1562 (register_category): New function.
1563 (add_category): New function.
1564 * res.rc: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
1565 IDC_CHOOSE_VIEWCAPTION: New control.
1566 * resource.h: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
1567 IDC_CHOOSE_VIEWCAPTION: New control.
1568 Increment _APS_NEXT_CONTROL_VALUE.
1570 Mon Jun 25 00:56:37 2001 Michael A Chase <mchase@ix.netcom.com>
1572 * choose.cc (paint): Wrap excessively long lines.
1573 (list_click): Ditto.
1574 (create_listview): Ditto.
1575 (do_choose): Ditto. Replace TABs and remove CRs in lines written to
1576 setup.log.full. Allow "Yes" for source exists in setup.log.full when
1577 installing from local directories.
1579 Mon Jun 25 00:56:37 2001 Christopher Faylor <cgf@cygnus.com>
1581 * choose.cc (set_action): Only clear srcpicked when moving to next
1582 state. Allow source installation if it exists in the current "trust"
1583 state. Don't move to skip state when package is installed.
1584 (list_click): Don't allow source clicking when no source is available.
1585 (set_full_list): Display package when not is_full_action.
1586 * ini.h (is_full_action): Define.
1588 Sun Jun 17 12:06:14 2001 Christopher Faylor <cgf@cygnus.com>
1590 * install.cc (check_for_old_cygwin): New function. First stab at
1591 checking for old cygwin versions.
1592 (do_install): Call check_for_old_cygwin if there were no errors during
1595 Sat Jun 16 11:33:51 2001 Michael A Chase <mchase@ix.netcom.com>
1597 * choose.cc (_Info::_Info): Test _source paramenter for non-NULL rather
1598 than zeroed "source" element.
1600 Fri Jun 15 20:54:43 2001 Christopher Faylor <cgf@cygnus.com>
1602 * choose.cc (scan2): Insert unknown tar archives, found on disk, into
1603 the highest available "hole" in the trust array.
1605 Fri Jun 15 00:20:48 2001 Christopher Faylor <cgf@cygnus.com>
1607 * choose.cc (set_existence): Use pointer method for indexing in trust
1609 (create_listview): Ditto.
1610 (scan2): Ditto. Also, use consistent variable name for indexing into
1612 * ini.h (Package): Reorganize info array for easier scanning.
1614 Fri Jun 15 00:01:51 2001 Christopher Faylor <cgf@cygnus.com>
1616 * choose.cc (isinstalled): Eliminate special download only test.
1617 (set_action): Don't move to next state if in ACTION_SAME range and not
1619 (choose_caption): Display "Retrieve" rather than "Reinstall" when just
1621 (do_choose): Sort packages after all packages have been read.
1622 Accomodate the fact that first element in trust array is empty so that
1623 log files don't report the wrong trust value.
1624 * iniparse.y (new_package): Malloc space for package name or suffer
1627 Thu Jun 14 22:43:59 2001 Robert Collins <rbtcollins@hotmail.com>
1629 * ini.h (Dependency): New structure. Declare new function.
1630 * inilex.l (yylex): Detect new setup.ini options - category and requires.
1631 * iniparse.y: Declare new setup.ini token values.
1632 (yyparse): Parse new token values.
1633 (new_requirement): New function.
1635 Thu Jun 14 22:43:26 2001 Christopher Faylor <cgf@cygnus.com>
1637 * choose.cc (read_installed_db): Eliminate obsolete code.
1639 Thu Jun 14 22:11:53 2001 Christopher Faylor <cgf@cygnus.com>
1641 * choose.cc (set_action): Set trust on "redo".
1642 (_Info::_Info): New constructor.
1643 (read_installed_db): Use new constructor. Use trusts type for
1645 * ini.h (struct _Info): Label struct, add constructor.
1646 (Package): Make installed_ix a type 'trusts.'
1647 * install.cc (uninstall_one): Unset any installed info for current
1649 (install_one): Allocate new Info struct for installed reflecting new
1651 (do_install): Don't output line to installed.db if package is being
1654 Thu Jun 14 20:33:01 2001 Robert Collins <rbtcollins@hotmail.com>
1656 * choose.cc (getpkgbyname): Use consistent method for scanning package
1659 Wed Jun 13 23:33:08 2001 Christopher Faylor <cgf@cygnus.com>
1661 * choose.cc: Add some comments.
1662 (getpkgbyname): Use strcasecmp for comparisons.
1664 Wed Jun 13 16:07:00 2001 Christopher Faylor <cgf@cygnus.com>
1666 * install.cc (do_install): Avoid checking for download action if
1667 package wasn't currently retrieved.
1669 Wed Jun 13 11:27:22 2001 Christopher Faylor <cgf@cygnus.com>
1671 * choose.cc: Eliminate extra array throughout. Use element in package
1672 structure instead. Use pointers rather than array indexes where
1674 (set_action): New function to set next action based on current.
1675 (choose_caption): New function. Returns display caption.
1676 (check_existence): Change arguments. Use pointer to 'info' structure.
1677 (set_existence): Use pointer rather than array index.
1678 (default_trust): Use trusts enum for second argument.
1679 (set_full_list): Honor exclude element in package structure.
1680 (build_labels): Eliminate.
1681 (base): Make global. Use const char * argument.
1682 (get_package_version): Eliminate.
1683 (getpkgbyname): New function.
1684 (read_installed_db): Use parse_filename to get version info.
1685 * desktop.cc (make_passwd_group): Use getpkgbyname function.
1686 * download.cc (get_file_size): const argument.
1687 (do_download): Use is_download_action to determine when something
1688 should be downloaded.
1689 * filemanip.h: Add some functions.
1690 * ini.cc (do_ini): Use NULL rather than 0 for pointer assignment.
1691 * ini.h: Use enums for actions and trusts.
1692 (is_download_action): New macro.
1693 (is_upgrade_action): Ditto.
1694 (is_uninstall_action): Ditto.
1695 (struct Package): Add new fields.
1696 * inilex.l (yylex): Detect new setup.ini options.
1697 * iniparse.y: Declare new tokens.
1698 (yyparse): Detect exclude keyword. Fill out version field even if
1700 (new_package): Use greater granularity when allocating package array to
1701 avoid repeated calls to realloc.
1702 * install.cc (exists): const argument.
1703 (uninstall_one): Take pkg argument.
1704 (install_one): Ditto. Eliminate unneeded arguments which can be
1705 derived from package info.
1706 (do_install): Iterate over package array using a pointer. Use
1707 is_download_action to control when package should be downloaded.
1708 * tar.cc (tar_open): const argument.
1709 * tar.h: Refloect const argument.
1711 2001-05-31 Michael Chase mchase@ix.netcom.com
1713 * main.cc (WinMain): Add setup version to starting setup.log entry
1715 Tue May 29 21:37:58 2001 Yukihiko Sohda <sohda@is.titech.ac.jp>
1717 * inilex.l: Add + to list of valid string characters.
1719 Mon May 28 20:54:50 2001 Christopher Faylor <cgf@cygnus.com>
1721 * Makefile.in: Remove more stuff in the clean target.
1723 Mon May 28 18:24:59 2001 Christopher Faylor <cgf@cygnus.com>
1725 * Makefile.in: Correctly generate iniparse.h.
1727 Tue Mar 6 19:14:00 2001 Corinna Vinschen <corinna@vinschen.de>
1729 * geturl.cc (get_url_to_file): Add parameter `allow_ftp_auth'.
1730 * geturl.h: Change declaration of `get_url_to_file' accordingly.
1731 * netio.cc (NetIO::NetIO): Add parameter `allow_ftp_auth'.
1732 Set member `ftp_auth'.
1733 (NetIO::open): Add parameter `allow_ftp_auth'. Use it in calls
1734 to constructors of derived classes.
1735 (NetIO::get_ftp_auth): New method.
1736 * netio.h: Change class definition accordingly.
1737 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Add parameter `allow_ftp_auth'.
1738 Take global variables `net_ftp_user' and `net_ftp_passwd' into account.
1739 Add code for ftp authentication retry.
1740 * nio-ftp.h: Change class definition accordingly.
1741 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Add parameter `allow_ftp_auth'.
1742 Add code for ftp authentication retry in case of proxy connection.
1743 * nio-http.h: Change class definition accordingly.
1744 * res.rc: Add FTP authentication dialog.
1745 * resource.h: Add new constants used in res.rc.
1746 * state.h: Add variables `net_ftp_user' and `net_ftp_passwd'.
1748 Sun May 27 17:12:23 2001 Christopher Faylor <cgf@cygnus.com>
1750 * res.rc (IDD_SPLASH): Add a copyright year.
1752 Sun May 27 15:42:18 2001 Christopher Faylor <cgf@cygnus.com>
1754 * Makefile.in: Make iniparse.y produce a c++ file.
1755 * choose.cc (set_existence): Revert 2001-05-27 change.
1756 * ini.cc: Remove "C" from declaration of yyparse.
1757 * iniparse.y (yyparse): Fill out version field by default when a binary
1758 install is detected and no version has been set yet.
1759 * install.cc (do_install): Mount things earlier so that we can use
1760 proper mount table settings. Don't remove mounts since they are now
1762 * mount.cc (create_mount): Reread the mount table after establishing a
1764 (read_mounts): Explicitly clear root_here to allow multiple uses of
1765 this function. Ensure that there is no garbage in the table when we've
1766 exhausted all of the mounts in the registry.
1767 (cygpath): Accomodate ./ in path.
1769 Sun May 27 02:59:07 2001 Christopher Faylor <cgf@cygnus.com>
1771 Use parse_filename method to parse filenames throughout. Use
1772 get_root_dir to retrieve the current root directory throughout. Set
1773 const in argument list, where appropriate, throughout.
1774 * choose.cc (set_existence): Detect case of uninstalled package with no
1776 (parse_filename): New function.
1777 * filemanip.h (fileparse): New structure.
1778 * mount.cc (read_mounts): Remember where we found the root mount.
1779 (set_root_dir): New function.
1780 (get_root_dir): Ditto.
1781 * mount.h: Declare new functions.
1782 * site.cc (get_root_dir_now): Renamed from get_root_dir.
1783 (save_site_url): Use new function name.
1784 (get_initial_list_idx): Ditto.
1786 Sat May 26 21:23:59 2001 Christopher Faylor <cgf@cygnus.com>
1788 * choose.cc: Use a constant throughout to deal with chooser icon
1790 * res.rc (IDD_CHOOSE): Increase size of chooser box.
1792 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
1794 * choose.cc (do_choose): Fix incorrect assignment of trust setting to
1795 use when Redownload or Sources Only selected.
1797 Thu May 10 22:35:59 2001 Christopher Faylor <cgf@cygnus.com>
1799 Reformat file after botched patch formatting.
1800 * choose.cc (which_trust): Eliminate variable.
1801 (default_trust): Don't set which_trust.
1802 (do_choose): Use selected trust when reinstalling or installing source.
1804 Thu May 10 21:04:18 2001 Christopher Faylor <cgf@cygnus.com>
1806 Change concat to cygpath throughout.
1807 Change map_filename to cygpath throughout.
1808 * concat.cc (vconcat): New function.
1809 (concat): Use vconcat.
1810 * concat.h: Reflect above.
1811 * install.cc (map_filename): Eliminate.
1812 (install_one): Free dest_file.
1813 * mount.cc (find2): Expect input key to be pointing to mount record.
1814 (in_table): New function.
1815 (is_admin): Move from root.cc.
1816 (read_mounts): New function.
1817 (path_prefix_p): New function.
1818 (cygpath): New function.
1819 * mount.h: Define new functions and structure.
1820 * root.cc (in_table): Move to mount.cc.
1821 (do_root): Call read_mounts to initialize root stuff and mount table.
1822 * site.cc (get_root_dir): Ditto.
1824 2001-05-09 Matt Hargett <matt@use.net>
1826 * Makefile.in: Remove *.rc from clean.
1828 Tue May 8 23:33:38 2001 Christopher Faylor <cgf@cygnus.com>
1830 * choose.cc (scan2): Fix incorrect setting of TRUST_CURR rather than
1831 TRUST_PREV which produced "0" versions.
1833 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
1835 * resource.h: Add new field IDC_CHOOSE_INST_TEXT. Modify
1836 _APS_NEXT_CONTROL_VALUE to account for addition of
1837 IDC_CHOOSE_INST_TEXT.
1838 * res.rc (IDD_CHOOSE): Modify choose dialog to use new field
1839 IDC_CHOOSE_INST_TEXT for screen text. Modify choose Dialog to allow
1840 hot keys to select Prev, Curr, Exp.
1841 * ini.h: Add new actions for ACTION_REDO and ACTION_SRC_ONLY. Modify
1842 define for LOOP_PACKAGES to include new actions ACTION_REDO and
1844 * choose.cc: Add new Trusts for TRUST_REDO and TRUST_SRC_ONLY.
1845 (paint): Modify to check TRUST_SRC_ONLY when determining Bitmap for
1846 source Checkbox to use.
1847 (build_labels): Add logic to allow for selection of Source only
1848 Download/ReDownload/Install/Reinstall and also to Redownload/Reinstall
1849 current version binary.
1850 (dialog_proc): Add conditional display for file selection prompt based
1851 on download vs install using IDC_CHOOSE_INST_TEXT.
1852 (do_choose): Add new logic for TRUST_REDO and TRUST_SRC_ONLY selection
1853 and modify logic for TRUST_UNINSTALL, TRUST_KEEP, and TRUST_NONE to
1854 handle the instance where Source Download/Install was selected. Modify
1855 log file to store appropriate information regarding Action selected and
1856 the new actions that were added (I.E.: ACTION_REDO and
1858 * download.cc: Add include for <unistd.h> and "port.h".
1859 (download_one): Modify parameter list to include the selected action
1860 for the file to be downloaded. Modify size check against expected size
1861 to include check for ACTION_REDO and ACTION_SRC_ONLY. Modify rename of
1862 .tmp file to also remove the destination file if exists due to ability
1863 to redownload source and binary now.
1864 (do_download): Modify to also use ACTION_REDO and ACTION_SRC_ONLY in
1865 calculation of Download Bytes. Modify to also use ACTION_REDO and
1866 ACTION_SRC_ONLY in determining files selected for download.
1867 * install.cc (uninstall_one): Add check to treat a Reinstall like an
1868 upgrade so current version will be uninstalled prior to reinstall.
1869 (do_install): Add logic to handle ACTION_REDO and ACTION_SRC_ONLY for
1870 uninstalling and installing binary and source packages.
1871 * desktop.cc (make_passwd_group): Modify logic to account for a Source
1872 only cygwin install when checking for cygwin to determine need for
1873 mkpasswd and mkgroup.
1875 Mon May 7 23:33:30 2001 Matt Hargett <matt@use.net>
1877 * winsup/cinstall/res.rc: Added accelerators and improved focus order.
1878 Removed WS_DISABLED from "OK" buttons to accomodate default focus
1879 changes in net.cc and source.cc.
1880 * winsup/cinstall/net.cc (dialog_proc): If no radio button is selected,
1881 a default is selected.
1882 * winsup/cinstall/source.cc (dialog_proc): Ditto.
1883 (check_if_enable_next): Removed. No longer needed since a radio button
1884 will always be selected.
1885 (load_dialog): Removed call to check_if_enable_next.
1886 (dialog_cmd): Ditto. Also added default to switch.
1888 Tue Apr 24 23:42:02 2001 Christopher Faylor <cgf@cygnus.com>
1890 * res.rc: Resize affected text.
1892 Tue Apr 24 23:35:31 2001 Christopher Faylor <cgf@cygnus.com>
1894 * net.cc (do_net): Default to direct download.
1895 * res.rc: Move default selections to the top.
1897 2001-04-18 Earnie Boyd <earnie@users.sourceforge.net>
1899 * win32.h: Remove the definitions for _UNION_NAME and _STRUCT_NAME.
1900 Must now include <windows.h> and not the pieces.
1901 * choose.cc (create_listview): Clean up type mismatch problems.
1902 * dialog.h (NEXT(id)): Ditto.
1903 * geturl.cc (dialog): Ditto.
1904 * install.cc (dialog): Ditto.
1905 * splash.cc (load_dialog): Ditto.
1907 Wed Apr 18 18:59:21 2001 Christopher Faylor <cgf@cygnus.com>
1909 * tar.cc (class gzbz): Define dummy virtual functions.
1911 Wed Apr 18 16:01:21 2001 Christopher Faylor <cgf@cygnus.com>
1913 * Makefile.in: Add bz2 include/library support.
1914 * filemanip.h: New file.
1915 * choose.cc (find_tar_ext): New function. Returns TRUE if .tar.gz or
1917 (scan2): Reorganize to use find_tar_ext, accomodating .bz2 extension.
1918 (read_installed_db): Ditto.
1920 * fromcwd.cc (found_file): Ditto.
1921 (do_fromcwd): Ditto.
1922 * tar.cc (class gzbz): New super class for uncompression support.
1923 (gz): New class for gzip support.
1924 (bz): New class for bzip2 support.
1925 (tar_open): Use gzbz class to control file opening.
1926 (tar_ftell): Ditto for returning position in file.
1927 (skip_file): Ditto for reading file.
1928 (tar_next_file): Ditto.
1929 (tar_read_file): Ditto.
1930 (tar_close): Ditto for close.
1932 * zlib/configure.in: Force NM substitution.
1934 * source.cc (do_source): Default to "Install from Internet".
1936 2001-03-16 Brian Keener <bkeener@thesoftwaresource.com>
1938 * nio-file.cc (NetIO_File::NetIO_File): Use `get_file_size' instead of
1940 * choose.cc (list_click): Correct inability to select source code for
1942 (scan2): Modify to skip source tarballs when scanning disk for
1943 installable packages.
1945 2001-03-10 Chris Abbey <chris_abbey@yahoo.com>
1947 * install.cc: install sources into /usr/src instead
1948 of /, also include the sizes of source tarballs
1950 * download.cc: include sizes of source tarballs in
1951 total_download_bytes.
1953 Tue Mar 6 19:31:00 2000 Corinna Vinschen <corinna@vinschen.com>
1955 * download.cc (get_file_size): Remove `static'.
1957 Tue Mar 6 19:11:00 2000 Corinna Vinschen <corinna@vinschen.com>
1959 * tar.cc (tar_open): Use `get_file_size' instead of `stat'.
1961 2001-03-06 Brian Keener <bkeener@thesoftwaresource.com>
1963 * choose.cc (paint): Modify message for nothing to download vs
1964 nothing to install/update based on installation method.
1965 (list_click): Modify to skip versions in selection process if
1966 installing from local directory and installation file does not exist.
1967 Also leaves Source Action set to N/A if the source file does not exist
1968 and installing from local directory.
1969 (check_existence): New method to check current existence of installation
1970 files based on selected installation method.
1971 (set_existence): New method to set the current existence of installation
1972 files based on selected installation method.
1973 (best_trust): Modify decision process for best trust to base decision on
1974 current trust selected (IE: Prev, Curr, or Test), existence of file and
1975 installation method selected.
1976 (default_trust): Add logic to capture the current trust level and the
1977 trust selected for the given package.
1978 (set_full_list): Expand decision criteria for displaying a package in
1979 the selection list to include file existence/non-existence and selected
1980 installation method.
1981 (build_labels): Modify criteria for label addition to include
1982 installation method and file existence/non-existence.
1983 (create_listview): Modify to establish package trust level for each
1984 package before setting up the display list. Also modification to set
1985 current trust button as the default.
1986 (dialog_cmd): Set response for Prev, Curr, Test button push to perform
1987 a reset of the selection list in addition to setting the default trust.
1988 (get_package_version): New method to provide reusable code for
1989 determining the package version from the file name for a specified
1991 (scan2): Modify to use new method get_package_version and
1992 also enhance handling of the build for the structures package and
1994 (read_installed_db): Modify to use the new method
1995 get_package_version and also enhance handling of the build for the
1996 structures package and extra.
1997 (do_choose): Add additional initialization of package and extra
1998 structures. Modify to use read_installed_db all the time despite
1999 install method. Modify output to setup.log.full log file to increase
2000 readability by adding additional spacing, expanded code and available
2002 * ini.h: Add new fields install_exists, source_exists and
2003 partial_list_display to the structure definition for package.
2004 * res.rc (IDD_CHOOSE): Modify choose dialog Prev, Curr, and Test
2005 pushbuttons by replacing with Radio Buttons thus allowing the
2006 operator to better determine which is selected.
2008 2001-02-20 Brian Keener <bkeener@thesoftwaresource.com>
2010 * download.cc (do_download): Add new variables total_download_bytes and
2011 total_download_bytes_sofar for download progress meter. Add loop
2012 to accumulate the total bytes to download from the selected packages.
2013 * geturl.cc: Add state.h and diskfull.h to include list. Add new
2014 variables gw_iprogress, gw_pprogress, gw_progress_text,
2015 gw_pprogress_text, and gw_iprogress_text to allow for addition of
2016 total packages download progress meter and disk full percent
2017 progress meter. Add variables total_download_bytes and
2018 total_download_bytes_sofar for use by progress meters.
2019 (dialog_proc): Add new variables gw_iprogress, gw_pprogress,
2020 gw_progress_text, gw_pprogress_text, and gw_iprogress_text to
2021 allow for addition of total packages download progress meter and disk
2022 full percent progress meter.
2023 (init_dialog): Ditto.
2025 (get_url_to_file): Ditto.
2026 * geturl.h: Add external definition for total_download_bytes and
2027 total_download_bytes_sofar.
2028 * res.rc: Add two additional progress meters (IDC_DLS_IPROGRESS)
2029 and (IDC_DLS_PPROGRESS) and three text objects (IDC_DLS_PROGRESS_TEXT)
2030 and (IDC_DLS_IPROGRESS_TEXT, IDC_DLS_PPROGRESS_TEXT) for use in the
2032 * resource.h: Add new fields for progress meters and text and update
2033 _APS_NEXT_CONTROL_VALUE.
2035 Wed Feb 21 13:05:00 2000 Corinna Vinschen <vinschen@redhat.com>
2037 * download.cc (get_file_size): Check for INVALID_HANDLE_VALUE instead
2040 Wed Feb 21 11:21:00 2000 Corinna Vinschen <vinschen@redhat.com>
2042 * download.cc (download_one): Add missing parenthesis.
2044 Mon Feb 19 18:59:00 2000 Corinna Vinschen <vinschen@redhat.com>
2046 * download.cc (get_file_size): New function. Eliminates the need
2048 (download_one): Call `get_file_size' instead of `stat'. This
2049 workarounds a problem with mingw's `stat' call.
2051 2001-02-07 Earnie Boyd <earnie@users.sourceforge.net>
2053 * Makefile.in: (%.o: %.rc): Specify --include-dir $(w32api_include).
2054 This is to allow cinstall to build with 2.95.2-7 and to make the
2055 use of headers consistent.
2057 2000-12-26 Earnie Boyd <earnie_boyd@yahoo.com>
2059 * Makefile.in (autoload.o): Add target to specify -fno-inline-functions
2061 Tue Dec 26 03:46:00 2000 Matt Hargett <matt@use.net>
2063 * winsup/cinstall/res.rc: Added accelerators and improved focus
2066 2000-12-10 Egor Duda <deo@logos-m.ru>
2068 * choose.cc (paint): Use system background color for text output.
2070 Sun Dec 10 19:05:25 2000 Christopher Faylor <cgf@cygnus.com>
2072 * Makefile.in: Use CXX for linking and for compiling .cc files.
2073 * configure.in: Find correct c++ compiler.
2074 * configure: Regenerate.
2076 2000-11-17 DJ Delorie <dj@redhat.com>
2078 * splash.cc (load_dialog): Make message more obvious.
2081 Fri Nov 17 17:15:21 2000 Christopher Faylor <cgf@cygnus.com>
2083 * Makefile.in: Use g++ to link so that libstdc++.a gets used. This is
2084 necessary for newer compilers.
2086 Wed Nov 9 2:19:00 2000 Corinna Vinschen <vinschen@redhat.com>
2088 * desktop.cc: Include "ini.h" and "version.h".
2089 (make_passwd_group): Skip the function on 9x/ME boxes when an
2090 older version of Cygwin has been installed which doesn't
2091 support mkpasswd/mkgroup on 9x/ME.
2092 * install.cc: Move the `LOOP_PACKAGES' and `pi' macros to...
2095 Wed Nov 8 17:10:00 2000 Corinna Vinschen <vinschen@redhat.com>
2097 * desktop.cc (make_passwd_group): Don't exit when started
2098 on 9x/ME since mkpasswd/mkgroup are usable on 9x/ME now.
2100 Sun Nov 5 12:51:42 2000 Jason Tishler <jt@dothill.com>
2102 * install.cc (do_install): Add call to set_cygdrive_flags to sync
2104 * mount.cc (set_cygdrive_flags): New function.
2105 (get_cygdrive_flags): Ditto.
2106 (default_cygdrive): Ditto.
2107 (set_cygdrive_flags): Ditto.
2108 * mount.h: Add prototype for set_cygdrive_flags.
2110 2000-10-23 DJ Delorie <dj@redhat.com>
2112 * ini.h: add source actions
2113 * fromcwd.cc: check for available sources
2114 * res.rc: add checkbox bitmaps
2117 * choose.cc: add source column
2118 * download.cc: download sources if called for
2119 * install.cc: [un]install sources too
2121 2000-10-22 DJ Delorie <dj@redhat.com>
2123 * choose.cc (build_labels): Don't skip TRUST_PREV completely; only
2124 ignore it wrt full_list if there's already a version installed.
2125 (do_choose): Sort the list.
2126 (package_sort): New.
2128 2000-10-12 DJ Delorie <dj@redhat.com>
2130 * res.rc: Add more error strings.
2131 * resource.h: Ditto.
2132 * iniparse.y (new_package): re-initialize if needed.
2133 * download.cc (do_download): Keep track of errors; notify and
2135 * install.cc (do_install): Ditto.
2137 2000-10-05 DJ Delorie <dj@redhat.com>
2139 * Makefile.in: fix %.cc rule
2141 2000-10-04 DJ Delorie <dj@redhat.com>
2143 * desktop.cc: quote HOME and USER, don't . ./.profile
2145 * choose.cc (build_labels): don't include in partial list just
2146 because there's a *previous* version available.
2148 * install.cc (do_install): if installing from local directory with
2149 setup.ini and the file isn't found, look in "." also. Note errors.
2151 2000-10-02 DJ Delorie <dj@redhat.com>
2153 * ini.cc (do_ini): save setup.ini locally
2155 2000-10-02 Chris Abbey <cabbey@bresnanlink.net>
2157 * desktop.cc: quote escapes in prompt
2159 2000-10-02 Jason Tishler <jt@dothill.com>
2161 * root.cc (is_admin): New function.
2162 (read_mount_table): Check for administrative priviledges and set
2163 installation scope as appropriate.
2165 2000-09-28 DJ Delorie <dj@redhat.com>
2167 * nio-ftp.cc (ftp_line): handle continuations more robustly
2169 2000-09-14 Brian Keener <bkeener@thesoftwaresource.com>
2171 * res.rc: increased the size of the site dialog (IDD_SITE) & the
2172 corresponding list box to provide for more URL's to be listed.
2173 Modified the position of the Back, Next and Cancel buttons to
2174 correspond to the new size of the dialog.
2176 2000-09-13 DJ Delorie <dj@redhat.com>
2178 * install.cc (do_install): update disk fullness once per package
2179 to improve performance
2181 * choose.cc (create_listview): call ReleaseDC
2183 Mon Sep 11 22:40 2000 Harold L Hunt II <harold@compasstechnologies.com>
2185 * mkdir.cc: Create directories when ERROR_FILE_NOT_FOUND is
2186 returned, as it seems Samba 2.0.6+ returns this instead of
2187 ERROR_PATH_NOT_FOUND
2189 Mon Sep 11 19:35:24 2000 Christopher Faylor <cgf@cygnus.com>
2191 * site.cc (get_initial_list_idx): Don't default to saved URL if it
2194 2000-09-07 DJ Delorie <dj@redhat.com>
2196 * splash.cc: use version.h, not local decl
2197 * res.rc: add "old version" message
2200 * fromcwd.cc (canonicalize_version): make global
2201 * iniparse.y: add setup-version support, fix bug in blank line
2204 * inilex.l: add [exp] as alias for [test], add setup-version
2205 * Makefile.in (version.c): add setup-version tag
2207 * desktop.cc (do_desktop): remove 1.1 version number
2208 (do_desktop_setup): ditto
2210 * ini.cc (do_ini): zero out package list just in case we redo it.
2212 2000-09-07 Jeffrey Juliano <juliano@cs.unc.edu>
2214 * choose.cc (list_click): Check for nindexes==0; if so, return.
2216 2000-09-06 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
2218 * localdir.cc: new, local package directory selection dialog; cd
2219 into selected directory
2220 * Makefile.in (OBJS): add localdir.o
2221 * dialog.h: add prototype for do_local_dir
2222 * main.cc (WinMain): initialize local_dir to cwd; add call to
2224 * net.cc (dialog_cmd): make DO_LOCAL_DIR next dialog
2225 * source.cc (dialog_cmd): ditto
2226 * res.rc: add DO_LOCAL_DIR dialog; remove "current directory" from
2227 presented choices in IDD_SOURCE; add IDS_ERR_CHDIR error string
2228 * resource.h: defines for DO_LOCAL_DIR dialog; define IDS_ERR_CHDIR
2229 * root.cc (dialog_cmd): make DO_LOCAL_DIR previous dialog
2230 * state.h: add local_dir variable
2232 2000-09-06 Brian Keener <bkeener@thesoftwaresource.com>
2234 * desktop.cc: added logic to handle to the new dialog and to
2235 default the setting for the new checkboxes based on whether the
2236 desktop icon or start menu link already exist.
2237 (desktop_icon): correction to desktop directories for desktop icon
2238 creation. Additional logic added for Win95 which does not appear
2239 to have Common Directories so if Common selected and null uses
2241 (start_menu): Additional logic added for Win95 which does not
2242 appear to have Common Directories so if Common selected and null
2243 uses normal directory.
2244 (do_desktop_setup): moved the saving of the icon, creation of the
2245 bat file, profile, passwd, Start Menu link and desktop shortcut to
2246 this method from do_desktop. Made the creation of the desktop
2247 icon and start menu link conditional on settings of new dialog
2248 created for desktop.
2249 * install.cc (do_install): changed next from IDD_S_DESKTOP to
2251 * main.cc (WinMain): changed case IDD_S_DESKTOP to IDD_DESKTOP.
2252 * res.rc: added new resource to create a desktop dialog with 2
2253 checkboxes for creating the desktop icon and start menu link.
2254 * resource.h: changed IDD_S_DESKTOP to IDD_DESKTOP and added two
2255 new controls: IDC_ROOT_MENU and IDC_ROOT_DESKTOP for new dialog.
2256 * state.h: added root_menu and root_desktop for use in dialog.
2258 2000-08-29 DJ Delorie <dj@redhat.com>
2260 * choose.cc (scan_downloaded_files): scan for existing files, so
2261 that the user only sees new downloads.
2263 * nio-ie5.cc (NetIO_IE5): pre-check for wininet.dll, enable dial-up
2264 * site.cc (do_site): if we can't download the mirror list, go back
2265 to the net setup box to choose another transport.
2266 * autoload.c: add more functions
2267 * Makefile.in (ALL_DEP_LDLIBS): remove wininet.a
2268 * resource.h: add WININET message
2270 * net.cc (do_net): no longer default to IE5
2271 * simpsock.h (class SimpleSocket): new, simplify socket operations
2272 * simpsock.cc: ditto
2273 * nio-http.h: new, for direct http protocol
2274 * nio-http.cc: ditto
2275 * nio-ftp.h: new, for direct http protocol
2277 * netio.cc (set_url): move initialization here to handle redirections
2278 (open): add direct http/ftp
2279 * netio.h (NetIO::set_url): new
2281 * log.cc (log_save): create directory for log if needed
2283 * hash.cc, hash.h: new
2284 * Makefile: add hash.o
2285 * choose.cc: enable "uninstall" option
2286 * download.cc: invert action test to accomodate uninstalling
2287 * ini.h: add ACTION_UNINSTALL
2288 * install.cc: add uninstall functionality
2289 * res.rc: make install tag changeable
2290 * resource.h: add uninstall resources
2292 * res.rc: update mirror list URL
2294 2000-08-24 DJ Delorie <dj@redhat.com>
2296 * log.cc, log.h: new files
2297 * Makefile.in (OBJS): add log.o
2298 * tar.cc: use exit_setup instead of exit
2299 * dialog.cc (fatal): use exit_setup instead of ExitProcess
2300 * msg.cc (fatal): ditto
2301 * install.cc (dialog_cmd): ditto
2302 * ini.cc (do_ini): ditto
2303 * main.cc (main): add logging
2304 * source.cc (do_source): ditto
2305 * root.cc (do_source): ditto
2306 * site.cc (do_site): ditto
2307 * other.cc (do_other): ditto
2308 * net.cc (do_net): ditto
2309 * choose.cc (do_choose): ditto
2310 * download.cc (do_download): ditto
2311 * install.cc (do_install): ditto
2312 * msg.cc (fatal): ditto
2314 * res.rc: mark password boxes as *being* password boxes.
2316 * fromcwd.cc (canonicalize_version): use multiple buffers so that multiple
2317 calls won't use the same buffer.
2318 * choose.cc (create_listview): don't default to full list if no changes
2319 (base): return computed value, not temporary :-(
2320 (do_choose): don't use installed.db if we're only downloading.
2322 2000-08-23 DJ Delorie <dj@redhat.com>
2324 * nio-ie5.cc (NetIO_IE5): Fix authentication logic
2325 * nio-ie5.h (flush_io): new
2326 * netio.cc (load_dialog): note when we're initializing the dialog
2327 box, and ignore changes to the edit fields then.
2329 2000-08-21 DJ Delorie <dj@redhat.com>
2333 * fromcwd.cc (found_file): don't remember the canonicalized version
2335 * choose.cc (paint): print "nothing to do" message when list is empty.
2336 (build_labels): Use version "0.0" if no version is available.
2337 (create_listview): default to full list if nothing to install/update.
2338 (base): new, returns basename of file
2339 (read_installed_db): compare base names, not full paths
2341 2000-08-11 DJ Delorie <dj@redhat.com>
2343 * choose.cc: add new chooser dialog
2344 * fromcwd.cc: use IDD_CHOOSE
2345 * ini.cc: use IDD_CHOOSE
2346 * main.cc: use IDD_CHOOSE
2347 * ini.h: cosmetic changes
2348 * res.rc: add choose dialog, bitmaps
2349 * choose-spin.bmp: new
2350 * choose-rtarrow.bmp: new
2351 * resource.h: add choose dialog controls
2353 * mount.cc: remove debug statement
2355 2000-08-08 DJ Delorie <dj@redhat.com>
2357 * Makefile.in (version.c): make version checking more robust
2358 * splash.cc (load_dialog): handle case where there's no version
2360 2000-08-07 DJ Delorie <dj@redhat.com>
2362 * (all): add cvsid tags
2363 * Makefile.in: generate version.c from ChangeLog, add splash.o
2365 * res.rc: add splash screen
2367 2000-08-02 DJ Delorie <dj@redhat.com>
2369 * net.cc: remove proxy password code
2370 * res.rc: remove proxy user/pass from net, add auth dialogs
2371 * netio.cc,h: add sys/proxy auth methods
2372 * nio-ie5: use them, check for http status codes
2373 * state.h: add system authorization
2375 * concat.cc (concat): canonicalize x:// to x:/ (exception to ://
2378 2000-08-02 Norman Vine <nhv@yahoo,com>
2380 * msg.cc (mbox): added MB_TOPMOST to MessageBox type flags
2382 2000-08-01 DJ Delorie <dj@redhat.com>
2384 * postinstall.cc (each): don't rename files we ignore
2385 (do_postinstall): set CYGWINROOT to root_dir, chdir there
2387 * desktop.cc: have /etc/profile call ~/.profile and ~/.bashrc
2389 2000-07-31 DJ Delorie <dj@redhat.com>
2391 * desktop.cc: reverse PATH so /usr/bin precedes /bin
2393 2000-07-18 DJ Delorie <dj@redhat.com>
2395 * autoload.c: new, autoload dlls that might not be available.
2396 * Makefile.in (OBJS): add autoload.o
2398 * res.rc: rewrite root options (text/binary, system/user) to be
2401 * site.cc (get_site_list): trim displayed URL, sort by domain
2403 * net.cc (do_net): make IE5 default to checked, for now
2405 * choose.cc (do_choose): sort packages correctly
2406 * ini.cc (do_ini): handle parse errors more gracefully
2408 (fprintf): line buffer output
2409 (do_ini): if we can't load setup.ini, go back to the site list.
2410 * ini.h: add "unknown" trust level
2411 * inilex.l: absorb unknown trust levels and key/value pairs,
2412 add line number logic
2413 * iniparse.y: handle parse errors more gracefully.
2414 * install.cc: skip packages with no valid install entry
2416 2000-07-17 DJ Delorie <dj@cygnus.com>
2418 * coding standards fixups, many files
2419 * mkdir.cc: warn about deletions *before* deleting them
2421 2000-07-17 Jeff Juliano <juliano@cs.unc.edu>
2423 * res.rc (IDD_OTHER_URL): reorder to give default focus to entry
2425 * other.cc (dialog_cmd): save download site URL
2426 * site.cc (get_root_dir): new
2427 (save_mirror_site): new
2428 (dialog_cmd): save download site URL
2429 (get_site_list): make list big enough to add prev site
2430 (get_initial_list_idx): new, read last-used URL from file and
2431 append it to site_list
2432 (do_site): call get_initial_list_idx
2434 * concat.cc (concat): avoid segfault when first parm is null
2436 2000-07-13 DJ Delorie <dj@cygnus.com>
2438 * postinstall.cc: new
2439 * Makefile.in: add postinstall.o
2440 * concat.h: add backslash ()
2442 * desktop.cc (etc_profile): don't do postinstall
2443 (backslash): moved to concat.cc
2445 (make_postinstall_script): run directly
2446 (do_desktop): chain to do_postinstall
2447 * dialog.h: add exit_msg, do_postinstall
2448 * download.cc: use exit_msg
2450 * main.cc: add postinstall, exit_msg
2451 * resource.h: add postinstall
2452 * README: add more to-do items
2454 2000-07-12 DJ Delorie <dj@cygnus.com>
2456 * desktop.cc: add /etc/postinstall/ support
2457 * install.cc: add more "standard" directories
2459 2000-07-11 DJ Delorie <dj@cygnus.com>
2461 * desktop.cc: create /etc/profile
2462 * desktop.cc: fix include syntax
2463 * Makefile.in: add auto-dependencies
2464 * root.cc: support system vs user
2472 * desktop.cc: make sure we use backslashes, not slashes.
2473 * desktop.cc: don't set PATH in cygwin.bat, create /etc/passwd
2474 * geturl.cc: change math for percentage to avoid overflow
2476 * download.cc: post "download complete" message.
2477 * root.cc: pre-fill in defaults if needed, don't start
2478 browse at root_dir unless it's set.
2479 * desktop.cc: quote $PATH in case it has spaces in it
2481 2000-07-10 DJ Delorie <dj@cygnus.com>
2483 * Makefile.in: add desktop.o and mklink2.o
2484 * dialog.h: add do_desktop
2485 * install.cc: create standard directories, call do_desktop
2486 * res.rc: add cygwin.ico as a file also
2487 * desktop.cc: new, do shortcuts, batch files, and icons
2488 * mklink2.c: new, for COM
2489 * README: update to-do list
2491 2000-07-10 DJ Delorie <dj@cygnus.com>
2493 * ini.cc (do_ini): don't worry about timestamps if we're not
2494 actually installing.
2496 2000-07-09 DJ Delorie <dj@cygnus.com>
2498 * Makefile.in: add -I$(srcdir) for ini.h
2500 2000-07-06 DJ Delorie <dj@cygnus.com>
2502 * Replace everything with a new GUI version
2503 * zlib/gzio.c: add gzctell() for progress displays
2505 2000-06-22 DJ Delorie <dj@cygnus.com>
2507 * setup.c (tarx): re-add call to write_pkg()
2509 2000-06-07 DJ Delorie <dj@cygnus.com>
2511 * cygcalls.c: new, call cygwin1.dll functions directly
2512 * cygcalls.h: header for same
2513 * Makefile.in: add cygcalls.[ch], remove mount/cygpath/umount
2514 exes, fix cinstall.rc dependencies.
2515 * path.c: remove unneeded code
2516 * setup.c: use cygcalls instead of xcreate_process.
2517 uncompress embedded files with zlib
2518 add "-d" for "download only"
2520 postpone mount changes until very end
2521 add download progress indicators
2522 pack multi-column listings more
2523 auto-delete temp files
2524 customize banner message according to options
2525 prompt user for text/binary mounts
2526 add warnings about empty setup directory, root installs, etc
2528 2000-05-24 DJ Delorie <dj@cygnus.com>
2530 * tar.c: New file; built-in tar using zlib.
2531 * tar.h: New file; header for same.
2532 * ctar.c: New file; test program for same.
2533 * Makefile.in: add built-in tar, remove tar.exe and gzip.exe
2534 * path.c (pathcat): convert slashes and canonicalize, instead of aborting
2535 * setup.c (tarx): add support for built-in tar
2536 (main): accept unix-style slashes, check root dir for drive letters,
2537 warn about installing in /, make sure cwd is empty for internet installs,
2538 defer mounts to end of install, support built-in tar.
2540 Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
2542 Fix compiler warnings throughout.
2543 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
2545 * setup.c: Make 'root' global.
2546 (istargz): Return pointer to "stem" of matched .tar.gz file.
2547 (tarx): Special case cygwin-20000301 to == cygwin-1.1.0.tar.gz. Remove
2548 bogus check_for_installed check.
2549 (recurse_dirs): Add preliminary support for .bat file execution.
2550 (create_uninstall): Eliminate unneeded parameter.
2551 (do_start_menu): Ditto.
2553 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
2554 scanning for the version number. Eliminate unneeded argument to
2556 (getdownloadsource): Add 'name' to list of names rather than url.
2557 (main): Eliminate unneeded argument in get_pkg_stuff. Eliminate
2558 unneeded argument in mkmount and do_start_menu.
2560 2000-05-18 DJ Delorie <dj@cygnus.com>
2562 * setup.c (optionprompt): allow multi-column, clean up message
2563 about more options, be more robust about user input.
2564 (getdownloadsource): make the mirror URL a macro.
2565 (main): do mounts after done prompting user.
2567 Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
2569 * setup.c (cleanup): Inverse order of deletion stands a better chance
2570 of deleting cygpath.exe. Still seems to suffer from occasional races,
2572 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
2574 (output_file): Defend against an unlikely handle leak.
2575 (main): Don't set up signal handling until we have something special to
2578 Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
2580 * path.c (kill_cygpath): Delete function.
2581 (exit_cygpath): Make more defensive so that it can be called at any
2583 (cygpath_pipe): Don't set up signal here. Do it in main().
2584 * setup.c (istargz): New function.
2585 (recurse_dirs): Look for *.gz pattern rather than *tar.gz since *tar.gz
2586 inexplicably fails on samba mounted partitions. Use istargz to match
2588 (processdirlisting) Use istargz to match tar.gz tail.
2589 (cleanup): Renamed from filedel.
2590 (cleanup_on_signal): New function. Called on CTRL-C.
2591 (main): Record handle of main thread so that it can be suspended when
2592 CTRL-C occurs. Set up cleanup_on_signal signal handler.
2594 Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
2596 * setup.c (do_start_menu): Don't concatenate paths to already built
2599 Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
2601 * path.c (exit_cygpath): Wait for subprocess to exit before returning.
2602 (cygpath_pipe): Don't call exit_cygpath. Let main atexit routine do
2604 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
2606 * setup.c (filedel): Call exit_cygpath here so that we can be assured
2607 that cygpath subprocess has died. This allows us to delete cygpath.exe
2609 (optionprompt): Initialize response to -1 so that second screen of
2610 mirrors will appear.
2611 (get_pkg_stuff): Don't attempt to use HKCLU. Pass root to init_pkgs.
2612 * setup.h: Reflect init_pkgs prototype change.
2614 Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
2616 * pkg.c (init_pkgs): Accept an argument to control what root registry
2618 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
2619 * setup.h: Reflect init_pkgs prototype change.
2621 Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
2623 * error.c (winerror): Respond to gcc warning.
2624 * path.c (cygpath_pipe): Ditto.
2625 * setup.c (filedel): Call sa_cleanup on deleteme.
2626 (create_shortcut): Coerce argument to eliminate compiler warning.
2627 (tarx): Use installed version of cygwin1.dll, overriding tar file name.
2628 (refmatches): New function. Tests if ref is contained in a list of
2629 packages to install.
2630 (filematches): New function. Tests if filename matches one of a list
2631 of packages to install.
2632 (recurse_dirs): Accept list of packages to install. Generalize tar.gz
2633 test to accomodate _tar.gz.
2634 (prompt): Ensure that stdout is flushed prior to asking for input.
2635 (findhref): Initialize variables to quiet a compiler warning.
2636 (processdirlisting): Accept list of packages to install. Special case
2637 cygwin tar file version number.
2638 (downloaddir): Accept list of packages to install.
2639 (downloadfrom): Ditto.
2640 (create_uninstall): Eliminate unneeded variables. Quote arguments to
2642 (do_start_menu): Don't create uninstall bat file if updating or user
2643 specified a list of packages.
2644 (mkmount): Eliminate unneeded variables.
2645 (get_pkg_stuff): New function. Checks for previous unversioned
2647 (main): Accept -u and -f options and package names on the command line.
2648 Use get_pkg_stuff to initialize package information. Umount /etc.
2649 Call recurse_dirs and downloadfrom with list of package to install.
2650 Ensure that all /usr/local directories are created. Output
2651 installation time to setup.log.
2652 * setup.h: Add some prototypes.
2653 * xsystem.c (xcreate_process): Eliminate unneeded variable.
2655 Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
2657 * setup.c (optionprompt): Don't overlap display of already seen options
2659 (geturl): Print name of site which we're connecting to rather than "ftp
2661 (processdirlisting): Avoid URLs that contain a /. or ./ . Is this
2662 test too simplistic?
2663 (do_start_menu): Use pathcat to build path to <root>\bin to avoid
2664 problems when user chooses x:\ as their root.
2665 (main): For now, default to "non-update" mode. Allow -u option to
2668 Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
2671 * setup.c (tarx): Skip already installed or older packages. Report
2672 when a package has been updated.
2673 (processdirlisting): Skip already installed or older packages.
2674 (main): Detect -f option for forced installation. Initialize pkg stuff
2676 * setup.h: Add pkg definitions.
2678 Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
2680 * setup.c (findhref): Return NULL on empty string. Eat any trailing
2682 (processdirlisting): Attempt to limit recursively processing the same
2685 Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
2687 * setup.c (filedel): New function.
2688 (output_file): Keep track of files extracted from setup.exe for
2689 subsequent deletion.
2690 (tarx): Close process handle of child tar process or suffer handle
2692 (getdownloadsource): Close mirror file so that it can be unlinked.
2693 (processdirlisting): Return total number of files extracted.
2694 (main): Initialize array of files to delete. Ensure that files are
2695 closed on exit. Make the directory that setup.exe is started from ==
2696 the directory where temporary files are placed. Issue an error if no
2697 files were found to download.
2698 * xsystem.c (xcreate_process): Close the thread handle. Close the
2699 process handle if we waited for it to exit.
2701 Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
2703 * setup.c (main): Change version number output.
2705 Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
2707 * setup.c (tarx): Use full path name to tar executable.
2708 (main): Build full pathname to tar executable. Create /usr/local/etc
2711 Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
2713 * setup.c (findhref): Change method for scanning for href= to choose
2714 the last one on the line. This is still not foolproof and probably
2715 will need to be changed eventually. Don't abort if no "size" field is
2717 (processdirlisting): Fix boolean algebra.
2719 Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
2721 * main.c (tarx): Add some code for future task of unmounting
2722 directories encountered in tar file.
2724 Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
2726 * setup.c (findhref): Decode file size, when appropriate.
2727 (needfile): New function. Returns 1 when file should be
2729 (processdirlisting): Always download if file size does not
2730 match. Prompt when download fails for some reason.
2731 (getdownloadsource): Accomodate findhref argument changes.
2733 Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
2735 Throughout, use global session handle rather than reinitializing for
2736 each connect. Don't pass session as an argument to setup.c functions.
2737 * setup.c (geturl): Only issue "Connecting to.." message when using
2738 http or first time for ftp since subsequent connections will be fast.
2739 (processdirlisting): Allocate space for "N" when user has specified
2740 "N"ever option so that it can be subsequently freed.
2741 (main): Abort if we can't get the list of mirrors.
2743 Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
2745 * setup.c (main): Umount /bin and /lib.
2747 Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
2749 * setup.c (main): Create an empty /var/run/utmp.
2751 Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
2753 * Makefile.in: Add umount to list of files to include in setup.exe.
2754 * setup.c (xumount): New function for unmounting directories.
2755 (main): Unmount /usr.
2756 (mkmount): Unmount "unix directory" before trying to figure out where
2757 to create the directory.
2759 Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
2761 * setup.c (mkmount): Use xcreate_process to start mount process,
2763 (main): Don't do buffering on stdout or prompts won't be displayed
2764 correctly if running in a cygwin shell with CYGWIN=tty.
2766 Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
2768 * setup.c (main): Remove the CYGWIN environment variable before
2769 starting any cygwin programs.
2771 Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
2773 * setup.c (geturl): Use alternative method for finding filename part of
2775 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
2776 (downloaddir): Unlink file containing dir listing.
2777 (downloadfrom): Ditto.
2779 Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
2781 * setup.c (main): Disallow running setup.exe from the "root".
2783 Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
2785 Use "warning" function, where appropriate, to output warnings.
2786 * setup.c (warning): New function -- outputs warning to console and log
2788 (tarx): Fix index used to reset file protection.
2789 (main): Open the log file earlier so that more stuff can be sent to it.
2791 Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
2793 * setup.c (processdirlisting): Make "N" option a little less aggressive.
2795 Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
2797 * setup.c (tarx): Wait to after tar has completed to reset protections
2798 or suffer races with tar process.
2800 Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
2802 * Makefile.in: Eliminate duplicate -nostdinc from CFLAGS.
2803 * setup.c (create_uninstall): Create the uninstall .bat file in the
2804 "root" so that we can remove the /bin directory. Add bin\cygwin.bat to
2805 list of files to be deleted. Fix directory detection for determining
2806 when to use 'rmdir'.
2807 (do_start_menu): Add /usr/local/bin to the path.
2808 (main): Add slop to files.array allocation so that we don't have to
2809 worry about reallocating the array when it grows too large when doing
2810 some trivial "pushes". Add /tmp and /usr/local/{bin,lib} to list of
2813 Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
2815 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
2818 Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
2820 * path.c (kill_cygpath): New cleanup function.
2821 (exit_cygpath): New cleanup function.
2822 (cygpath_pipe): New function. Sets up cygpath in the background for
2823 translating filenames.
2824 (pathcvt): Use background cygpath for file translation.
2825 * setup.c (tarx): New function. Called to extract tar files, capture
2826 logging output, and translate it to Windows format.
2827 (recurse_dirs): Use 'tarx' function to extract files.
2828 (create_uninstall): Use file list built up by tarx rather than reading
2830 (mkmount): Add ability to mount root.
2831 (main): Track elapsed install time. Mount root.
2832 * starry.h: Add index field to strarry for tracking of tarx's usage of
2834 * xsystem.c (xcreate_process): Return proces handle when not waiting.
2836 Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
2839 (pathfp): New function. Preliminary work for new -f cygpath
2841 * Makefile.in: Add new file.
2842 (pathcvt): Move to new file.
2846 * setup.c (processdirlisting): Always open file in text mode.
2847 (create_uninstall): Ditto.
2848 (getdownloadsource): Ditto.
2851 Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
2853 * xsystem.c: New file.
2854 * Makefile.in: Accomodate new file.
2855 * setup.c (xsystem): Move to new file.
2856 (recurse_dirs): Accept handle to output log file. Don't use ">"
2857 redirection to trap tar output. Use supplied handle instead.
2858 (create_uninstall): Accept FILE pointer to opened log file. Don't
2859 unlink log file here.
2860 (do_start_menu): Accept FILE pointer to pass to create_uninstall.
2861 (main): Open log file here and pass it to various functions. Unlink
2864 Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
2866 Change occurrences of .usr.bin to .bin throughout.
2867 * setup.c (geturl): Increase number of retries to 20. Let user know
2868 what's going on during long connects.
2869 (processdirlisting): Accept "A"lways and "N"ever as update options.
2870 (create_uninstall): Load cygwin1.dll from the current directory rather
2872 (main): Add some expository text.
2874 Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
2876 * Makefile.in: Change method for compressing cygwin1.dll to avoid
2877 creating a cygwin1.dll in the current directory. Ensure the addition
2878 of -nostdinc to MINGW_CFLAGS.
2880 Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
2882 * Makefile.in: Augment clean target.
2884 Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
2886 * README: Added info about non-working mingw implementation
2887 * gzip.exe.gz: Replace with a version from the same build as the other
2889 * tar.exe.gz: Replace with a version from the same build as the other
2891 * mount.exe.gz: Add to repository until, mingw can build setup.
2892 * cygpath.exe.gz: ditto
2893 * cygwin1.dll.gz: ditto
2894 * setup.c: Overwrite /bin and /lib mounts. Generate working shortcut
2895 for Win9x. Display only a screenfull of options at a time. Call all
2896 tools with an absolute path.
2897 * setup.dsp: Restore the carriage returns, MS Developer Studio needs
2902 Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
2904 * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab
2905 cygwin1.dll from ../cygwin subdirectory.
2906 * gzip.exe.gz: Update.
2907 * tar.exe.gz: Update.
2909 Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
2911 * Makefile.in: Use ZLIB variable as a target.
2913 Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
2915 * Makefile.in: Eliminate traces of cygwinisms. Don't link with
2916 libmsvcrt.a. It's unneeded. Build .rc file on the fly from various
2918 * configure.in: Locate correct objcopy.
2919 * configure: Regenerate.
2921 Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
2923 * Makefile.in: New file.
2924 * configure.in: New file.
2925 * configure: New file.
2926 * zlib/Makefile.am: New file.
2927 * zlib/configure.in: New file.
2928 * zlib/aclocal.m4: New file.
2929 * zlib/acinclude.m4: New file.
2930 * zlib/configure: Regenerate from configure.in.
2931 * zlib/Makefile.in: Regenerate from Makefile.am