1 2002-01-04 Jan Nieuwenhuizen <janneke@gnu.org>
3 * Makefile.in (realclean): more clean.
5 * postinstall.cc (run_script_in_etc_postinstall): New function.
6 (do_postinstall): Split off new funtion init_run_script ().
9 (run_script): Move to script.cc. Replace some deprecated remove
12 * script.cc: New file.
13 * Forward port cygwin-20010707.jcn3.patch.
14 * package_meta.cc (uninstall): Run pre- and postremove scripts.
15 * install.cc: Typo fix.
16 (do_install): Run script initialisation.
18 2001-01-04 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
20 * cistring.cc: Run d2u.
21 * cistring.h: Run d2u.
23 * desktop.cc (etc_profile): Remove "test -f ./.bashrc && . ./.bashrc"
24 from the generated /etc/profile. Bash will source this file
25 automatically, and having this here merely results in .bashrc being
26 executed twice. Run d2u.
29 * propsheet.cc: Run d2u.
30 (PropSheetProc): New function. Add minimize box here instead of in
31 PropertyPage::DialogProc.
32 (PropSheet::Create): Change to use creation callback PropSheetProc.
33 (DLGTEMPLATEEX): Add 'hidden' Windows struct definition.
35 * propsheet.h: Run indent, d2u.
36 * proppage.h: Run indent, d2u.
38 * proppage.cc: Run d2u.
39 (PropertyPage::DialogProc): Remove minimize-box-adding
40 functionality. Remove commented-out "PropSheet_SetWizButtons" calls.
41 Add support for calling virtual OnMessageCmd. Add setting of fonts in
42 WM_INITDIALOG handler.
43 (resource.h): New include for resource IDs.
45 * res.rc: Resize and rearrange property page dialog templates
46 to bring them in line with "Microsoft's Backward Compatible Wizard 97"
47 specification. Run d2u.
48 (IDD_SITE): Add an edit control and an "Add" button in order to
49 combine the IDD_SITE and IDD_OTHER_URL functionality onto one page.
50 (IDD_OTHER_URL): Remove dialog template.
51 (IDD_DLSTATUS): Remove dialog template.
54 (SitePage::OnBack): Remove NEXT() macro invocation.
55 (SitePage::OnActivate): New member function.
56 (load_dialog): Remove. Functionality subsumed into
58 (save_dialog): Change to support both list and user URLs. Remove
59 OTHER_IDX and mirror_idx logic.
60 (SitePage::PopulateListBox): New member function.
61 (SitePage::CheckControlsAndDisableAccordingly): New member function.
62 (SitePage::OnMessageCmd): New override.
63 (check_if_enable_next): Remove.
65 (do_download_site_info_thread): Remove calls to NEXT() macro.
66 (SitePage::Create): Call the single-param PropertyPage::Create
68 (other_url): New static taken from other.cc.
69 (SitePage::OnNext): Remove mirror_idx logic.
70 (SitePage::OnInit): Remove "Other URL" entry from list box. Remove
71 list box populating code, now handled in SitePage::PopulateListBox.
72 (mirror_idx, NO_IDX, OTHER_IDX): Remove.
73 (save_site_url): Fix potential buffer overflow problem. Switched to
74 TCHAR in grossly premature preparation for multilingual support.
76 (SitePage::OnActivate): New member function.
77 (SitePage::CheckControlsAndDisableAccordingly) New member.
78 (SitePage::OnMessageCmd): New override.
79 (do_download_site_info_thread): Add MessageBox call on failure to
83 (SplashPage::OnInit): Set the font for the title.
86 * threebar.cc: Run d2u.
87 * threebar.h: Run d2u.
90 (Window::IsButtonChecked): New member function declaration.
91 (Window::OnMessageCmd): New member function.
92 (Window::SetDlgItemFont): New member function declaration.
93 (Window::MAXFONTS, Window::Fonts, Window::FontCounter): New data
96 (Window::IsButtonChecked): New member function definition.
97 (Window::SetDlgItemFont): New member function definition.
98 (Window::Window): Add initialization for FontCounter.
99 (Window::~Window): Delete any fonts we created.
101 * geturl.cc: Run d2u.
102 (progress): Remove the "3" field width from the "%3d"
103 percent-complete format indicator. Causes line to not start at
104 beginning of text box, and does little to help with "jumping", since
105 the "bytes downloaded so far" field is variable-width anyway. Change
106 kb/s format field to "%03.1" to 0-pad the kb/s number in the event of
107 painfully slow connections, or temporary slowdowns in faster
108 connections should such more-instantaneous functionality become
112 (NetPage::OnMessageCmd): New member function declaration.
113 (NetPage::CheckIfEnableNext): New member function declaration.
115 (NetPage::OnMessageCmd): New member function definition.
116 (dialog_cmd): Remove, subsumed into NetPage::OnMessageCmd.
117 (check_if_enable_next): Remove.
118 (NetPage::CheckIfEnableNext): New member function, subsumes
119 check_if_enable_next.
120 (propsheet.h): Add include.
121 (NetPage::Init): Add call to CheckIfEnableNext.
122 (load_dialog): Remove call to check_if_enable_next.
123 (NetPage::Create): Call single-template-ID-parameter overload of
124 PropertyPage::Create instead of three-parameter one.
126 * Makefile.in (OBJS): Remove other.o.
127 * other.cc: Remove file.
129 2002-01-01 Robert Collins <rbtcollins@hotmail.com>
131 * README: Update TODO's.
132 * choose.cc (set_existence): Delete non installed packages with no
134 (fill_missing_category): Fix an off-by-one error.
135 (default_trust): Ditto. Also delete any unused categories.
136 (view::init_headers): Fix an off-by-one error.
137 (set_view_mode): Ditto.
138 (set_view_mode): Ditto.
139 (create_listview): Ditto.
142 * io_stream.cc: Indent.
143 * io_stream.h: Ditto.
144 * package_db.cc: Ditto.
145 * package_meta.h: Const correctness for SDesc ();
146 * proppage.cc: Run d2u and indent.
147 * propsheet.cc: Run d2u and indent.
148 * window.cc: Run d2u and indent.
149 * window.h: Run d2u and indent.
151 2001-12-28 Christopher Faylor <cgf@redhat.com>
153 * Makefile.in (iniparse.o): Accommodate newer bisons.
155 2001-12-23 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
157 * window.h (Window): New file, new class.
158 * window.cc (Window): New file, new class.
160 * threebar.h (ThreeBarProgressPage): New file, new class.
161 * threebar.cc (ThreeBarProgressPage): New file, new class.
163 * splash.h (SplashPage): New file, new class.
164 * splash.cc (SplashPage): Replace file with implementation of new
167 * source.h (SourcePage): New file, new class.
168 * source.cc: Run indent.
169 (SourcePage): Add class implementation to this file.
170 (do_source): Remove, functionality subsumed by SourcePage::Create()
171 and SourcePage::OnDeactivate().
172 (dialog_proc): Remove, functionality subsumed by
173 SourcePage::OnActivate().
175 * site.h: Run indent.
176 (SitePage): Add class declaration.
177 * site.cc: Run indent.
178 (SitePage): Add class implementation.
179 (do_download_site_info_thread): New function.
180 (context): New var. Context info for do_download_site_info_thread().
181 (do_download_site_info): New function.
182 (SitePage::Create, SitePage::OnInit SitePage::OnNext)
183 (SitePage::OnBack): SitePage class implementation..
184 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers, now handled
186 (dialog_proc): Remove, now handled by SitePage::OnInit and base class
188 (do_site): Remove, now handled by do_download_site_info_thread() and
189 SitePage::OnNext functionality.
190 (get_site_list): Remove dismiss_url_status_dialog() call.
192 * root.h (RootPage): New file, new class.
193 * root.cc: Run indent.
194 (dialog_cmd): Pass parent HWND parameter to note(), yesno().
195 (dialog_proc): Remove.
197 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL clauses from switch.
198 (RootPage::OnInit): New member function. Move get_root_dir() logic to
200 (RootPage::Create): New member function.
201 (RootPage::OnNext): New member function. Move IDOK logic from
202 dialog_cmd() to here.
203 (RootPage::OnBack): New member function.
205 * propsheet.h (PropSheet): New file, new class.
206 * propsheet.cc (PropSheet): New file, new class.
208 * proppage.h (PropertyPage): New file, new class.
209 * proppage.cc (PropertyPage): New file, new class.
211 * postinstall.cc (do_postinstall): Add owner parameter.
213 * other.cc (do_other): Add owner parameter.
215 * nio-file.cc (NetIO::Purl): Pass NULL parent param to note().
216 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Pass NULL parent param to
218 * nio-http.cc (retry_get): Pass NULL parent param to get_auth(),
221 * nio-ie5.cc (NetIO::_url): Pass NULL parent param to note(),
222 get_auth(), get_proxy_auth().
224 * netio.h (get_auth, get_proxy_auth, get_ftp_auth): Add owner param.
225 * netio.cc (auth_common, NetIO::get_auth, NetIO::get_proxy_auth,
227 (auth_common): Add owner param. Pass owner param to DialogBox.
228 (NetIO::get_auth, NetIO::get_proxy_auth, NetIO::get_ftp_auth): Pass
229 owner param to auth_common().
231 * net.h (NetPage): New file, new class.
232 * net.cc: Run indent.
233 (net.h, threebar.h): Add includes.
234 (Progress): Add extern.
235 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, now handled by
236 property sheet logic. Saved temporarily for reference.
237 (NetPage::Create, NetPage::OnInit, NetPage::OnDeactivate,
238 NetPage::OnNext, NetPage::OnBack):
239 New implementation of NetPage class members.
241 (dialog_proc): Remove.
243 * msg.h (fatal, note, yesno): Add owner param.
244 * msg.c (fatal, note, yesno, mbox): Add owner param.
245 (mbox): Remove MB_TOPMOST from MessageBox call. Unnecessary and wrong
246 now that we have a parent.
248 * main.cc: Run indent.
249 (commctrl.h, proppage.h, propsheet.h, splash.h, source.h)
250 (localdir.h, net.h, site.h, choose.h, threebar.h, desktop.h): Include
252 (root_dialog_proc): extern into this file.
253 (Progress): Progress dialog defined here, used in several other files.
254 (WinMain): Instantiate and create Splash, Source, Root, LocalDir, Net,
255 Site, Chooser, Desktop pages and MainWindow sheet. Call
256 InitCommonControls() to make sure Windows is set up for our use of
257 property sheets. Add pages to sheet.
258 Call MainWindow.Create() to "DoModal". Remove main loop, that logic is
259 now handled by the PropSheet class.
260 (root.h): Add include.
262 * log.cc (log_save): Pass NULL parent to fatal().
263 (exit_setup): Pass NULL parent to note().
265 * localdir.h (LocalDirPage): New file, new class.
266 * localdir.cc: Run indent.
267 (localdir.h): New include.
268 (threebar.h): New include.
269 (Progress): extern into this file.
270 (LocalDirPage::Create, LocalDirPage::OnInit, LocalDirPage::OnActivate)
271 (LocalDirPage::OnNext, LocalDirPage::OnBack): Implementation of
273 (LocalDirPage::OnNext): Move log() call from do_local_dir() to here.
274 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers.
275 (do_local_dir): Remove.
276 (dialog_proc): Remove.
277 (cwd): Remove, not used by anything.
279 * install.cc: Run indent.
280 (process.h, threebar.h): New includes.
281 (Progress): extern into this file.
282 (ins_dialog, ins_action, ins_pkgname, ins_filename, ins_pprogress)
283 (ins_iprogress, ins_diskfull, init_event): Remove, now handled by
284 ThreeBarProgressPage.
285 (dialog_cmd, dialog_proc, dialog): Removed, handled in
286 ThreeBarProgressPage.
287 (init_dialog): Remove all mention of the above ins_* handles. Now
288 handled in ThreeBarProgressPage. Altered SetWindowText()s to call
289 ThreeBarProgressPage instance Progress directly.
290 (progress): Alter bar update logic to call ThreeBarProgressPage
291 instance Progress directly.
292 (uninstall_one): Alter SetWindowText()s to call ThreeBarProgressPage
293 instance Progress directly.
294 (install_one_source): Alter SetWindowText()s to call
296 instance Progress directly. Pass NULL parent to note().
297 (do_install_thread): Rename from do_install(), added owner param.
298 Alter SetWindowText()s to call ThreeBarProgressPage instance Progress
300 Remove dismiss_url_status_dialog() call, no longer necessary. Remove
301 ShowWindow(<hide>) call, also unnecessary now. Pass owner handle to
303 (do_install_reflector): New function.
304 (do_install): New function.
306 * ini.cc (process.h, threebar.h): New includes.
307 (Progress): externed into this file.
308 (find_routine): Pass NULL parent to note().
309 (do_local_ini): Add owner param.
310 (do_remote_ini): Add owner param. Pass owner to get_url_to_membuf()
311 and note(). Remove call to dismiss_url_status_dialog().
312 (do_ini_thread): Rename from do_ini(). Add owner param. Pass owner to
313 do_local_ini(), do_remote_ini(), yesno(), and note(). Set next_dialog
314 to IDD_CHOOSER on exit.
315 (do_ini_thread_reflector): New function.
316 (context): New var. Context for do_ini_thread.
317 (do_ini): New function.
319 * geturl.h (get_url_to_membuf, get_url_to_string, get_url_to_file): Add
321 * geturl.cc (gw_dialog, gw_url, gw_rate, gw_progress, gw_pprogress,
323 (gw_progress_text, gw_pprogress_text, gw_iprogress_text, init_event):
325 (threebar.h): New include.
326 (Progress): externed into this file.
327 (dialog_cmd, dialog_proc, dialog): Removed, handled by
328 ThreeBarProgressPage now.
329 (init_dialog): Remove "if (gw_dialog == 0)" clause. Alter
331 and bar setting SendMessage()s to call ThreeBarProgressPage instance
332 Progress directly. Remove "one bar only" logic, this is now handled
333 explicitly in the ThreeBarProgressPage class.
334 (progress): Altered bar and text update logic to call
335 ThreeBarProgressPage instance Progress directly. Changed kbps
336 calculation to floating point and now print out a single decimal
338 (get_url_to_membuf): Add owner param. Pass it to init_dialog.
339 (get_url_to_string): Add owner param. Pass it to get_url_to_membuf.
340 (get_url_to_file): Add owner param. Pass it to init_dialog. Alter bar
341 update logic to call ThreeBarProgressPage instance Progress directly.
342 (dismiss_url_status_dialog): Remove.
344 * fromcwd.cc (do_fromcwd): Add owner param. Initialize found_ini to
347 * download.cc: Run indent.
348 (process.h, threebar.h): New includes.
349 (Progress): externed into this file.
350 (download_one): Add owner param. Pass it to get_url_to_file().
351 (do_download_thread): Renamed from do_download. Add owner param. When
352 calculating total_download_bytes, take binpicked and srcpicked into
353 account. Remove call to dismiss_url_status_dialog(), no longer needed.
354 Pass owner handle to download_one() and yesno().
355 (do_download_reflector, do_download): New functions.
356 (context): New var. Context for do_download_thread().
358 * dialog.h (D(x)): Add owner param.
360 * desktop.h (DesktopSetupPage): New file, new class.
361 * desktop.cc: Run indent.
362 (desktop.h): Add include.
363 (dialog_proc, do_desktop): Remove, now handled in
364 DesktopSetupPage::OnInit().
365 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, handled in
366 DesktopSetupPage::OnFinish(), DesktopSetupPage::OnBack(), and PropSheet
368 (DesktopSetupPage::Create, DesktopSetupPage::OnInit)
369 (DesktopSetupPage::OnBack, DesktopSetupPage::OnFinish): Implementation
372 * cistring.h: New file, new class.
373 * cistring.cc: New file, new class.
375 * choose.h: Run indent.
376 (Chooser): New class declaration.
377 * choose.cc: Run indent.
378 (do_choose): Add owner param. Pass it to DialogBox() and
380 (Chooser): New class implementation.
382 * res.rc (IDS_VERSION_INFO): New string.
383 (IDD_SOURCE, IDD_LOCAL_DIR, IDD_ROOT, IDD_SITE, IDD_OTHER_URL)
384 (IDD_DLSTATUS, IDD_INSTATUS, IDD_SPLASH, IDD_CHOOSE, IDD_DESKTOP):
385 Change WS_POPUP to WS_CHILD. Numerous positioning/size changes
387 (IDD_CHOOSE): Give template the WS_EX_CONTROLPARENT style to enable
388 TAB control navigation etc. Give the controls a reasonable tab order.
389 Grouped radio buttons. Something's still not right, can't tab away
390 from back/next/cancel group reliably.
391 * resource.h (IDD_CHOOSER): New dialog ID.
393 * Makefile.in (OBJS): Add cistring.o, proppage.o, propsheet.o,
394 threebar.o, and window.o.
396 2001-12-21 Robert Collins <rbtcollins@hotmail.com>
398 * choose.cc (listview_proc): Update the scrollbar when the headers are dragged.
399 (pick_pkg_line::paint): Clip columns to prevent overlap.
401 2001-12-20 Robert Collins <rbtcollins@hotmail.com>
403 * Makefile.in: Add libcomctl32.a for setup.exe.
404 * archive.h (archive): Prevent non-child direct creation of the class.
405 * archive_tar.h (archive_tar): Prevent inaccurate synthetic copy and assignment.
406 * choose.cc: Include commctrl for the choose header.
407 (NEW_COL_SIZE_SLOP): Define without magic numbers.
408 (pkgtrustp): Convert to function.
409 (set_action): Remove.
410 (add_required, fill_missing_category,default_trust): Use list syntax for
413 (choose_caption): Remove.
414 (topbucket::paint): New method.
415 (topbucket::empty): Ditto.
416 (topbucket::click): Ditto.
417 (topbucket::~topbucket): Ditto.
418 (paint): Remove i,ii and p as they are obsolete.
419 Remove header drawing code.
420 Use new chooser method to paint the chooser.
421 Use new chooser itemcount method.
422 (scroll_common): Rename to view::scroll.
423 Scroll the header window separately.
424 (list_vscroll, list_hscroll, list_click): Update for new chooser methods.
425 (listview_proc): Look for header messages.
426 (note_width): Accept stringless calls.
427 (pick_line::set_line): Remove.
428 (pick_line::paint): Remove.
429 (pick_pkg_line::paint): Paint this one line, using the header column widths.
430 (pick_category_line::paint): Paint this category, and anything in the bucket.
431 (pick_line::click): Remove.
432 (pick_pkg_line::click): Handle a click.
433 (pick_category_line::click): Handle a click.
434 (_view): Rename all to view.
435 (view::view): Initialise the control contents.
436 (view::set_headers): Work with the header control.
437 (view::init_headers): Use list syntax for package list.
438 Rearrange the width logic a little.
439 (view::insert_pkg): Update to use the hierarchy.
440 (view::insert_category): Ditto.
441 (view::insert_at, view::insert_under): Remove.
442 (view::clear_view): Update to use the hierarchy.
443 (view::click): Update to use the hierarchy.
444 (set_view_mode): Use list syntax for package list.
445 Update for new chooser methods.
446 (DoInsertItem): New helper function. (Needs a home somewhere).
447 (create_listview): Remove choose control code and use the constructor instead.
448 (dialog_cmd,scan2,do_choose): Use list syntax for package list.
449 * choose.h: Include newly required headers list and package_meta.
450 (_voew): Rename to view.
451 (pick_line): Convert to an ABC.
452 (pick_pkg_line): New class.
453 (pick_catgory_line): New class.
454 (topbucket): New class.
455 (view::scroll): New method created from listview_scroll function.
456 * desktop.cc (make_passwd_group): Use list syntax for package list.
457 * download.cc (do_download): Use list syntax for package list.
458 * fromcwd.cc (found_file): Use list syntax for package list.
459 * iniparse.y (pacakges): Use list syntax for package list.
460 * install.cc (uninstall_one): Use list syntax for package list.
461 (do_install): Use list syntax for package list.
462 * io_stream.h (io_stream): Prevent non-child direct creation of the class.
463 Prevent inaccurate synthetic copy and assignment.
464 * list.h: Include required header stdlib.
465 Work on const correctness.
466 * package_db.cc (packagedb::getpackagebyname): Remove.
467 (packagedb::packagedb): Remove custom list code, and make db a local.
468 (packagedb::getfirstpackage): Remove.
469 (packagedb::getnextpackage): Remove.
470 (packagedb::addpackage): Remove.
471 (flush): Remove custom list code.
472 (packagedb::registerpackage): Remove.
473 (packagedb::packages): New static member.
474 (packagedb::task): New static member.
475 * package_db.h (PackageDBActions): New enum.
476 (packagedb): Remove getfirstpackage, getnextpackage, getpackagebyname,
477 addpackage, registerpackage, packages, packagecount, curr_package, db.
479 * pacakge_meta.cc: Include package_db.h.
480 (packagemeta::action_caption): New method.
481 (packagemeta::set_action): New method.
482 * package_meta.h (CategoryPackage): Initialise key.
483 (packagemeta): Initialise key.
484 Add set_action and action_caption methods.
485 Prevent inaccurate synthetic copy and assignment.
486 * resource.h (IDC_CHOOSE_LISTHEADER): New ID.
487 * source.cc: Include package_db for db manipulation.
488 (save_dialog): Set the db task.
489 * win32.h: Tell the w32 include headers what IE version to expect/require.
491 2001-12-06 Robert Collins <rbtcollins@hotmail.com>
493 * README: Wishlist updates.
495 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
497 * package_db.cc (getnextpackage): Don't overrun the array.
499 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
501 * Makefile.in (OBJS): Add setup_version.o.
502 (version.c): Rename to setup_version.
503 * choose.cc (set_action): Prevent NULL pointer dereference.
504 (package_sort): Remove.
505 * fromcwd.cc (canonicalize_version): Moved to version.cc.
506 (check_ini): New function for use with find to see if there is a cached setup.ini.
507 (do_fromcwd): Check for a cached setup.ini from any mirror site.
508 * ini.cc (find_routine): New function, for finding cached setup.ini's.
509 (do_local_ini): New function, drives parsing of local ini's.
510 (do_remote_ini): New function, drives parsing and caching of remote ini's.
511 (do_ini): Move guts to do_remote_ini and do_local_ini.
512 * list.h (removebyindex): New method.
513 * other.cc (save_dialog): Use new site_list and all_site_list to add the
514 new site to the site picklist.
515 (dialog_cmd): Only save the dialog when exiting the dialog.
516 * res.rc (IDD_SITE): Make IDC_URL_LIST a multiple-selection control.
517 * site.cc (site_list_type): Move to site.h
518 (site_list): New global, sites chosen by the user.
519 (all_site_list): New global, all potential sites.
520 (site_list_type::init): New method, parses a mirror.lst URL string into a
521 site_list_type object.
522 (site_list_type::site_list_type): New method.
523 (check_if_enable_next): Examine the control, not a local variable.
524 (load_dialog): Select all the user chosen sites by default.
525 (save_dialog): Adjust for multiple selection semantics.
526 (save_site_url): Save all user chosen sites.
527 (dialog_cmd): Don't save the dialog when the listbox recieves a message -
529 Remove obsolete other_url reference.
530 (dialog_proc): Use all_site_list instead of site_list.
532 (get_site_list): Remove malloc use - use list template instead.
533 Move site_list_type initialisation to site_list_type::init().
534 (get_initial_list_idx): Renamed to ...
535 (get_saved_sites): this. Also read in multiple sites to the site_list.
536 (do_site): Use all_site_list not site_list.
537 Log all chosen sites.
538 * site.h: New file, defines site related class, functions and variables.
539 * state.h: Add comment about use of state.h
540 (mirror_site): Remove.
542 (MIRROR_SITE): Remove.
543 * version.cc: New file, for version-handling and related functions.
545 2001-12-02 Robert Collins <rbtcollins@hotmail.com>
547 * Makefile.in: Add filemanip.o to setup.
548 * archive.cc (archive::extract_file): Use new io_stream method 'copy'.
549 * archive_tar.h (archive_tar_file): Implement get_size virtual.
550 (archive_tar): Ditto.
551 * choose.cc (set_action): Use [] operator instead of getnth - its more readable.
553 (_view::init_headers): Ditto.
554 (_view::insert_pkg): Ditto.
555 (set_view_mode): Ditto.
558 (base): Moved to filemanip.cc.
559 (find_tar_ext): Ditto.
560 (parse_filename): Ditto.
561 (_Info::_Info): Remove.
562 * compress_bz.h (compress_bz): Implement get_size virtual.
563 * compress_gz.h (compress_gz): Implement get_size virtual.
564 * cygpackage.cc (cygpackage::destroy): Use array delete for char * objects.
565 * download.cc (get_file_size): Move to filemanip.cc.
566 (check_for_cached): Use [] operator instead of getnth - its more readable.
567 (download_one): Ditto.
568 * filemanip.cc: New file.
569 * geturl.cc (init_dialog): Make url a pointer to const as it is not modified.
570 (get_url_to_membuf): New function - contains get_url_to_string worker code.
571 (get_url_to_string): Becomes a trivial wrapper to get_url_to_membuf.
572 * geturl.h: Declare new prototype.
573 * ini.cc (do_ini): Use get_url_to_membuf and pass ini_init an io_stream.
574 Tidy up the error code a little.
575 * ini.h: Remove __cplusplus protection for ini_init.
577 * inilex.l: Remove old globals.
578 (ini_init): Use an io_stream for getting the characters.
579 (ini_getchar): Ditto.
580 * iniparse.y: Declare yylex as a C++ function.
581 (add_correct_version): Use [] operator instead of getnth - its more readable.
582 * io_stream.cc (io_stream::move_copy): Use the copy method.
583 (io_stream::copy): New method to simply copy from one stream to another.
584 * io_stream.h (io_stream): New static method copy, and virtual method get_size.
585 * io_stream_cygfile.cc (io_stream_cygfile::get_size): Implement this.
586 * io_stream_cygfile.h (io_stream_cygfile::get_size): Declare this.
587 * io_stream_file.cc (io_stream_file::get_size): Implement this.
588 * io_stream_file.h (io_stream_file::get_size): Declare this.
589 * io_stream_memory.h: Include errno as it's neded to parse the header.
590 (io_stream_memory::get_size): Implement this.
591 (io_stream_memory::st_size): Delete this.
592 * list.h: Change getnth into the [] operator.
593 * netio.cc (NetIO::NetIO): Change prototype to reflect Purl not being modified.
594 (NetIO::set_url): Ditto.
595 (NetIO::open): Ditto.
596 * netio.h: As for netio.cc.
597 * nio-file.cc (NetIO_File::NetIO_File): Change prototype to reflect Purl not
600 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
601 * nio-ftp.h (NetIO_FTP::NetIO_FTP): Ditto.
602 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Ditto.
603 * nio-http.h (NetIO_HTTP::NetIO_HTTP): Ditto.
604 * nio-i5.cc (NetIO_IE5::NetIO_IE5): Ditto.
605 * nio-i5.h (NetIO_IE5::NetIO_IE5): Ditto.
606 * package_meta.cc (packagemeta::~packagemeta): Bugfix: use array delete.
607 * package_source.cc (packagesource::set_canonical): Ditto.
608 (packagesource::set_cached): Ditto.
609 * package_source.h (site::~site): Ditto.
610 * site.cc: Change site_list_type to a class, and search and replace sort_key to
613 2001-12-01 Robert Collins <rbtcollins@hotmail.com>
615 * package_source.cc (packagesource::set_canonical): Filename was out by one.
617 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
619 * Makefile.in (OBJS): Remove category_list - it's not needed.
620 * README: More wishlist updates.
621 * category.cc (Category::Category): Initialise new members.
622 (Categorycmp): New function.
623 * category.h (Category): New member key for template use.
624 * category_list.cc: Remove.
625 * category_list.h: Remove.
626 (Categorycmp): New function prototype.
627 * choose.cc: Remove category_list - not needed.
628 (set_action): Only show the 'source' option when the source is actually
630 (add_required): Fix recursion limiter to 5.
631 (fill_missing_category): Use list access.
632 (default_trust): Ditto.
633 (pick_line::paint): Ditto.
634 (_view::init_headers): Ditto.
635 (_view::insert_pkg): Ditto.
636 (_view::insert_category): Ditto.
637 (_view::click): Ditto.
638 (set_view_mode): Ditto.
640 * cygpackage.h: Remove category_list - not needed.
641 * geturl.cc (get_url_to_string): Fix null byte insertion.
642 * inipatse.y: Remove category_list - not needed.
643 (categories): Use list access.
644 * package_db.cc: Ditto.
645 * package_db.h: Remove category_list - not needed.
646 (packagedb): Use the list template for categories.
647 * package_meta.cc (add_category): Ditto.
648 * package_meta.h (CategoryPackage): Link to the category as well.
649 (packagemeta): Use a list of CategoryPackages instead of Categories
650 for more memory efficient cross-referencing.
652 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
654 * package_db.cc (packagedb::flush): Write a canonical version for all packages
655 irrespective of the media they were installed from.
657 2001-11-29 Robert Collins <rbtcollins@hotmail.com>
659 * Makefile.in (OBJS): Add package_source and rfc1738.
660 * README: Wishlist update.
661 * category_list.cc (register_category): Use references.
662 * category_list.h (CategoryList): Ditto.
663 * choose.cc (isinstalled): Remove.
664 (pkgtrustp): New macro.
665 (set_action): Use packagemeta.
666 (add_required): Ditto.
667 (choose_caption): Example package to choose caption, rather than state flags.
668 (check_existence): Remove.
669 (set_existence): Remove old code.
670 (fill_missing_category): Use packagemeta.
671 (keep_or_skip): Remove.
672 (default_trust): Use packagemeta and set trust values directly.
673 (pick_line::set_line): Use packagemeta.
674 (_view::insert_pkg): Ditto.
675 (_view::insert_category): Ditto.
676 (_view::click): Ditto.
677 (set_view_mode): Ditto. Also remove "exclude" code.
678 (create_listview): Use packagemeta.
680 (getpkgbyname): Remove
681 (scan2): Use packagemeta. Temporarily comment out the holefinding code.
682 (read_installed_db): Remove.
683 (package_sort): Use packagemeta.
684 (do_choose): Use packagemeta. Don't sort the packages - the db does that.
685 * choose.h: Use packagemeta.
686 * cygpackage.cc (cygpackage::cygpackage): Initialise all variables.
687 (cygpackage::cygpackage): Ditto.
688 (cygpackage::set_canonical_version): Copy the passed string.
689 (cygpackage::~cygpackage): Move cleanup code to destroy().
690 (cygpackage::destroy): New function.
691 (cygpackage::getfirstfile): Use a separate buffer.
692 (cygpackage::getnextfile): Ditto.
693 (cygpackage::Canonical_version): New function.
694 (cygpackage::set_sdesc): Ditto.
695 (cygpackage::set_ldesc): Ditto.
696 * cygpackage.h (cygpackage::Canonical_version): New method.
697 (cygpackage::set_sdesc): New method.
698 (cygpackage::set_ldesc): New method.
699 (cygpackage::SDesc): New method.
700 (cygpackage::LDesc): New method.
701 (cygpackage::set_canonical_version): New method.
702 * desktop.cc: Include packagedb headers.
703 (make_password_group): Use packagemeta.
704 * download.cc: Include packagedb headers.
705 (check_for_cached): New method to find any cached file and fill out the database
707 (download_one): Take a packagesource, support multiple mirrors.
708 (do_download): Use packagemeta.
709 * from cwd.cc: Include packagedb headers.
710 (found_file): Use packagemeta.
711 * ini.cc (do_ini): Beginning of multiple-mirror support.
712 * ini.h (CategoryPackage): Remove.
713 (Dependency): Remove.
715 (new_package,getpkgbyname,getpackagecategorybyname,add_category): Remove.
716 * inilex.l: Support multiple mirrors.
717 * iniparse.y: Include packagedb headers.
718 (parser): Use packagemeta.
719 (new_package): Remove.
720 (add_correct_version): New function.
721 (new_requirement): Remove.
722 (add_category): Remove.
723 * install.cc (uninstall_one): Use packagemeta.
724 (install_one_source): New function.
725 (install_one): Use packagemeta.
726 (do_install): Use packagemeta.
727 * io_stream.cc (io_stream::move): Bugfix on move/copy case.
728 * io_stream_cygfile.cc (io-stream_cygfile::set_mtime): Do not reopen the file
729 after setting the mtime, it makes no sense, and results in 0 length files.
730 * io_stream_file.cc (io-stream_file::set_mtime): Ditto.
731 * list.h: New file, template class for a form of list.
732 * package_db.cc (packagedb::registerpackage): New function.
733 * package_db.h (packagedb::npackages ()): New method.
734 * package_meta.cc (packagemeta::add_version): Use list template.
735 (packagemeta::set_installed): Ditto.
736 (packagemeta::add_category): New method.
737 * package_meta.h: Include necessary headers to parse the class.
738 (CategoryPackage): New class.
739 (packagemeta): Initialise all members.
740 (packagemeta::SDesc): New method.
741 (packagemeta::Categories): New method.
742 (packagemeta::add_category): Ditto.
743 (packagemeta::versions): Change to be a list instance.
744 * package_source.cc (packagesource::set_canonical): New method.
745 (packagesource::set_cached): New method.
746 * package_source.h: Include necessary headers to parse the class.
748 (packagesource::packagesource): Initialize all members.
749 (packagesource): Make this class non-abstract.
750 * package_version.cc (packageversion::packageversion): New method.
751 * package_version.h (Dependency): New class.
752 (packageversion::Canonical_vesion): New method.
753 (packageversion::SDesc): New method.
754 (packageversion::LDesc): New method.
755 (packageversion::new_requirement): Ditto.
756 (packageversion::srcpicked, binpicked): What to install.
757 (packageversion::src, bin): Installation source data.
758 * rfc1738.cc: New file. Escapes special characters in URL's.
761 2001-11-26 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
763 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Stop header parsing when
764 SimpleSocket::gets() returns a zero-length string, so that we
765 don't end up eating the entire stream thinking it's all header info.
767 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
769 * install.cc (badrename): Remove.
770 (do_install): Use packagedb flush method to write /etc/setup/installed.db.
771 * io_stream.cc (io_stream::move_copy): New method.
772 (io_stream::move): New method.
773 * io_stream.h (io_stream): New methods move and move_copy.
774 * io_stream_cygfile.cc (io_stream_cygfile::move): New method.
775 * io_stream_cygfile.h (io_stream_cygfile): New method move.
776 * io_stream_file.cc (io_stream_file::move): New method.
777 * io_stream_file.h (io_stream_file): New method move.
778 * package_db.cc (packagedb::flush): New method.
779 * package_db.h (packagedb): New method flush.
781 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
783 * Makefile.in (OBJS): Add package_version.
784 * ategory.cc (Category::Category): Update constructors.
785 * category_list.cc (CategoryList::register_category): Insert correctly.
786 * choose.cc: Include package_version.h, not package.h.
787 * cygpackage.cc: Ditto.
788 (cygpackage::uninstall): New method.
789 * cygpackage.h (cygpackage): Rename genericpackage to packageversion.
790 New method uninstall.
791 * hash.cc (add, has, enumerate): Change prototype to be accurate.
792 * hash.h (hash): Change prototypes to be accurate.
793 * ini.h (_Info): New parameterless constructor.
794 (CategoryPackage): New constructor.
796 * install.cc: Don't include unneeded headers.
797 Include package database headers.
798 (hash::add_subdirs): Remove.
799 (uninstall_one): Use packagemeta->uninstall to perform the uninstallation.
800 Don't uninstall source packages.
801 (do_install): Just can uninstall_one once as we ignore source packages now.
802 Don't copy the installed.old database accross, instead iterate through the
803 packagedb packages list and write the isntalled packages out.
804 * package_db.cc: Include package_version.h, not package.h.
805 (packagedb::packagedb): Never let db be undefined.
806 Record the installation filename, so we can reconstruct installed.db.
807 (packagedb::addpackage): Insert packages in alpha sorted order.
808 (packagedb::categories): Initialise correctly.
809 * package_meta.cc: Include win32 and mount headers as a workaround to
810 current io_stream limitations. Include a TODO about that.
811 (standard_dirs): New, from install.cc.
812 (hash::add_subdirs): New, from install.cc.
813 (packagemeta::set_installed): Rename genericpackage to packageversion.
814 (packagemeta::uninstall): New method.
815 * package_meta.h: Rename genericpackage to packageversion.
816 (packagemeta): Update constructor.
817 (add_version, set_installed): Rename genericpackage to packageversion.
818 (uninstall): New method.
819 (installed_from): New member.
820 * package_source.cc: New file.
821 * package_source.h: New file.
822 * package_version.cc: New file.
823 * package_version.h: New file.
824 * package.cc: Removed.
825 * package.h: Removed.
827 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
829 * Makefile.in (OBJS): Add category.o and category_list.o.
830 * category.h: New file.
831 * category.cc: New file.
832 * category_list.h: New file.
833 * category_list.cc: New file.
834 * choose.cc: Include category headers.
835 (fill_missing_category): Use package_db to access global categories.
836 (_view::insert_pkg): Ditto.
837 (_view::insert_category): Ditto.
838 (set_view_mode): Ditto.
839 (getcategorybyname): Remove.
840 * cygpackage.h: Include category_list.h to parse this correctly.
841 (cygpackage): New virtual &Categories.
842 * ini.h (_CategoryPackage): More C to C++ conversion.
844 (getcategorybyname): Remove.
845 (register_category): Remove.
846 * iniparse.y: Include package db and category headers.
847 (categories): Use package_db to access global categories.
849 (ncategories): Remove.
850 (register_category): Remove.
851 * package.h: New virtual &Categories.
852 * package_db.cc (packagedb::packagedb): Don't read the installed db twice.
853 (packagedb::categories): Declare.
854 * package_db.h (packagedb): New member categories for global categories list.
856 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
858 * choose.h: Don't include ini.h
859 * ini.h: Allow pure c++ in the header file.
861 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
863 * install.cc (do_install): Write a version 2 installed.db file.
864 * package_db.cc (packagedb::packagedb): Read version 1 and 2 installed.db files.
866 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
868 * Makefile.in (OBJS): Add package abstraction objects.
869 * choose.cc: Include package abstraction headers.
870 (read_installed_db): Use packagedb class and ignore installed sources.
871 * cygpackage.cc: New file.
872 * cygpackage.h: New file.
873 * filemanip.h (get_file_size): Use unixy types.
874 * package.h: New file.
875 * package.cc: New file.
876 * package_db.cc: New file.
877 * package_db.h: New file.
878 * package_meta.cc: New file.
879 * package_meta.h: New file.
881 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
883 * REAME: Updates to wishlist.
885 2001-11-16 Robert Collins <rbtcollins@hotmail.com>
887 * README: Updated and added my list of wishlist and todo items.
889 2001-11-14 Robert Collins <rbtcollins@hotmail.com>
891 * Makefile.in (OBJS): Include io_stream_memory in setup.exe.
892 * archive_tar.cc (archive_tar::write): New prototype.
893 (archive_tar::seek): New method.
894 * archive.h (archive_tar_file): Update write() and add seek().
895 (archive_tar): Ditto.
896 * archive_tar_file.cc (archive_tar_file::write): New prototype.
897 (archive_tar_file::seek): New method.
898 * compress_bz.cc (compress_bz::write): New prototype.
899 (compress_bz::seek): New function.
900 * compress_bz.h (compress_bz): Update write() and add seek().
901 * compress_gz.cc (compress_gz::write): New prototype.
902 (compress_gz::seek): New function.
903 * compress_gz.h (compress_gz): Update write() and add seek().
904 * geturl.cc: Include io_stream headers.
906 (get_url_to_string): Use a io_stream_memory buffer instead of GUBuf.
907 * io_stream.h (io_stream_seek_t): New enum.
908 (io_stream): Update write() and add seek().
909 * io_stream_cygfile.cc (io_stream_cygfile::write): New prototype.
910 (io_stream_cygfile::seek): New function.
911 * io_stream_cygfile.h (io_stream_cygfile): Update write() and add seek().
912 * io_stream_file.cc (io_stream_file::write): New prototype.
913 (io_stream_file::seek): New function.
914 * io_stream_file.h (io_stream_file): Update write() and add seek().
916 2001-11-13 Brian Keener <bkeener@thesoftwaresource.com>
918 * localdir.cc: Add headers unistd.h and port.h.
919 (save_local_dir): Expand search logic to include local directory for
920 location of file last-cache.
921 (dialog_cmd): Skip IDD_ROOT when downloading and use Back button.
922 (do_local_dir): Expand search logic to include local directory for file
924 * res.rc (IDD_CHOOSE_DIALOG): Add hotkey to View button.
925 * Source.cc (dialog_cmd): Skip IDD_ROOT if select Download from
927 (do_source): Default to Install from Internet on first entry or
928 previous selection if backing up from IDD_ROOT or IDD_LOCAL_DIR.
930 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
932 * choose.cc (find_tar_ext): Only match at the end of the string.
933 (getpkgbyname): Prevent NULL pointer dereference.
935 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
937 * Makefile.in (CFLAGS): Add warnings and -Werr.
938 (WARNONLY_FLAGS): For sources that produce (harmless) errors no matter what.
939 (OBJS): Add io_stream class' objects.
940 (autoload.o): Use WARNONLY_FLAGS.
943 * archive.cc: New file.
944 * archive.h: New file.
945 * archive_tar.cc: New file.
946 * archive_tar.h: New file.
947 * archive_tar_file.cc: New file.
948 * autoload.c: Fix compiler warnings (unused, deprecated conversion).
949 * choose.cc: Use io_stream.h, not mount.h.
951 (find_tar_ext): Rewritten to use strstr, and to accept .tar as an extension.
952 (read_installed_db): Use io_streams.
953 * choose.h: Run indent.
954 * compress.cc: New file.
955 * compress.h: New file.
956 * compress_bz.cc: New file.
957 * compress_bz.h: New file.
958 * compress_gz.cc: New file.
959 * compress_gz.h: New file.
960 * concat.cc: Run indent.
961 (cvsid): Fix compiler warnings (unused, deprecated conversion).
962 * concat.h: Run indent.
963 * desktop.cc: Run indent.
964 Include mklink2.h rather than redefining by hand.
965 (cvsid): Fix compiler warnings (unused, deprecated conversion).
966 (etc_profile): Fix compiler warning (deprecated conversion).
967 (make_link): Fix compiler warning (deprecated conversion).
968 Tidy up use of args variable - consolidate into argbuf.
969 (start_menu): Fix compiler warning (deprecated conversion).
970 (desktop_icon): Fix compiler warning (deprecated conversion).
971 (make_etc_profile): Fix compiler warning (deprecated conversion).
972 (uexists): Fix compiler warning (deprecated conversion).
973 (check_desktop): Fix compiler warning (deprecated conversion).
974 (check_startmenu): Fix compiler warning (deprecated conversion).
975 * dialog.cc: Run indent.
976 (cvsid): Fix compiler warnings (unused, deprecated conversion).
977 (fatal): Fix compiler warning (deprecated conversion).
978 * dialog.h: Run indent.
979 * diskfull.cc: Run indent.
980 (cvsid): Fix compiler warnings (unused, deprecated conversion).
981 * download.cc: Run indent.
982 (cvsid): Fix compiler warnings (unused, deprecated conversion).
983 (download_one): Fix compiler warning (signed vs unsigned comparison).
984 * filemanip.h: Run indent.
985 * find.cc: Run indent.
986 (cvsid): Fix compiler warnings (unused, deprecated conversion).
987 (find): Fix compiler warning (deprecated conversion).
988 * find.h: Run indent.
989 * fromcwd.cc: Run indent.
990 * geturl.cc: Run indent.
991 (cvsid): Fix compiler warnings (unused, deprecated conversion).
992 (dialog_cmd): Return a value.
993 (dialog_proc): Remove unused variables.
995 (get_url_to_file): Fix compiler warning (deprecated conversion).
996 * geturl.h: Run indent.
997 * hash.cc: Run indent.
998 (cvsid): Fix compiler warnings (unused, deprecated conversion).
999 * hash.h: Run indent.
1000 * ini.cc: Run indent.
1002 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1003 (do_ini): Use io_streams for local io.
1004 * ini.h: Run indent.
1005 * inilex.l (ignore_line): Fix compiler warning (is not a prototype).
1006 Fix compiler warning (brackets for truth assignment).
1007 * install.cc: Run indent.
1008 Fix compiler warning (/* in comment).
1010 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1011 (dialog_cmd): Return a value.
1012 (dialog_proc): Return a value.
1013 (start_tics): Deleted - was unused.
1014 (badrename): Fix compiler warnings (unused, deprecated conversion).
1015 (standard_dirs): Fix compiler warning (deprecated conversion).
1017 (uninstall_one): Convert to io_streams.
1018 (install_one): Convert to io_streams.
1019 (do_install): Convert to io_streans.
1020 Fix compiler warning (deprecated conversion).
1021 * io_stream.cc: New file.
1022 * io_stream.h: New file.
1023 * io_stream_cygfile.cc: New file.
1024 * io_stream_cygfile.h: New file.
1025 * io_stream_file.cc: New file.
1026 * io_stream_file.h: New file.
1027 * localdir.cc: Run indent.
1029 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1030 (get_root_dir_now): Remove.
1031 (save_local_dir): Convert to io_streams.
1032 (dialog_cmd): Return a value.
1033 (do_local_dir): Convert to io_streams.
1034 (log.cc): Run indent.
1035 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1036 (log): Fix compiler warning (deprecated conversion).
1037 (log_save): Fix compiler warning (deprecated conversion).
1038 * log.h: Run indent.
1039 (log): Fix compiler warning (deprecated conversion).
1040 (log_save): Fix compiler warning (deprecated conversion).
1041 * main.cc: Run indent.
1042 Don't include "netio.h".
1043 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1044 (netio_test): Remove.
1045 (sid_auth): Fix compiler warning (partially bracketed initialiser).
1046 (WinMain): Return a value.
1047 * mkdir.cc: Run indent.
1048 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1049 * mklink2.c: Run indent.
1050 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1051 (mkcygsymlink): New function.
1052 * mklink2.h: New file.
1053 * mount.cc: Run indent.
1054 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1055 (create_mount): Remove unused variables.
1056 (cygpath): Fix compiler warning (signed vs unsigned comparison).
1057 * mount.h: Run indent.
1058 * msg.cc: Run indent.
1059 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1060 (msg): Fix compiler warning (deprecated conversion).
1061 (mbox): Fix compiler warning (deprecated conversion).
1062 * msg.h: Run indent.
1063 (msg): Fix compiler warning (deprecated conversion).
1064 * net.cc: Run indent.
1065 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1066 (dialog_cmd): Return a value.
1067 * netio.cc: Run indent.
1068 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1069 (auth_cmd): Return a value.
1070 * netio.h: Run indent.
1071 * nio-file.cc: Run indent.
1072 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1073 (NetIO_File::NetIO_File): Fix compiler warning (deprecated conversion).
1074 * nio-file.h: Run indent.
1075 * nio-ftp.cc: Run indent.
1076 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1077 * nio-ftp.h: Run indent.
1078 * nio-http.cc: Run indent.
1079 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1080 * nio-http.h: Run indent.
1081 * nio-ie5.cc: Run indent.
1082 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1083 * nio-ie5.h: Run indent.
1084 * other.cc: Run indent.
1085 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1086 (dialog_cmd): Return a value.
1087 * port.h: Run indent.
1088 * postinstall.cc: Run indent.
1089 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1090 (cmd): Fix compiler warning (deprecated conversion).
1091 (eun): Fix compiler warning (deprecated conversion).
1092 * root.cc: Run indent.
1093 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1094 * simpsock.cc: Run indent.
1095 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1096 * simpsock.h: Run indent.
1097 * site.cc: Run indent.
1099 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1100 (get_root_dir_now): Remove.
1101 (save_site_url): Convert to io_streams.
1102 (dialog_cmd): Return 0.
1103 (get_initial_list_idx): Convert to io_streans.
1104 * source.cc: Run indent.
1105 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1106 (check_if_enable_next): Remove.
1107 (load_dialog): Remove unused variables.
1108 (save_dialog): Ditto.
1109 (dialog_cmd): Return a value.
1110 * splash.cc: Return a value.
1111 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1112 (dialog_cmd): Return a value.
1113 * state.cc: Run indent.
1114 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1115 * state.h: Run indent.
1119 2001-11-12 Christopher Faylor <cgf@redhat.com>
1121 * desktop.cc (start_menu): Change start menu name to "Cygwin".
1122 (check_startmenu): Ditto.
1124 2001-11-11 Christopher Faylor <cgf@redhat.com>
1126 * choose.cc (parse_filename): Finish reorganization by correctly
1127 decrementing p in memmove.
1129 2001-11-11 Christopher Faylor <cgf@redhat.com>
1131 * choose.cc (parse_filename): Reorganize code to work around gcc
1132 optimization problem.
1134 2001-11-09 Gareth Pearce <tilps@hotmail.com>
1136 * choose.cc (set_action): Allow skip as an option for installed
1137 packages that have version number not listed in setup.ini.
1139 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
1141 * choose.cc (set_cation): Backout last change.
1142 (choose_caption): Ditto.
1144 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
1146 * ini.h (actions): Remove - transferred to choose.h.
1148 * choose.h: Protect class's from "C" compilers.
1149 (actions): New enum, from ini.h. This may not be the 'right' place
1150 but that place doesn't exist yet.
1151 (_views): New enum, from ini.h.
1152 * choose.cc (set_action): Handle installed packages with a version not in
1154 (choose_caption): Ditto.
1155 * iniparse.y: Rearrange header order to handle new ini.h.
1157 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
1159 * ini.h (_Info): Fix compiler warnings (signed vs unsigned comparison).
1160 (registry_category): Fix compiler warning (deprecated conversion).
1161 * iniparse.y (registry_category): Ditto.
1162 * choose.cc (cvsid): Fix compiler warnings (unused, deprecated conversion).
1163 (add_requried): Remove unused variable.
1164 (choose_caption): Handle all enumeration values via a default.
1165 (paint): Fix compiler warnings (unused, deprecated conversion).
1166 (scroll_common): Fix compiler warnings (unused, signed vs unsigned comparison).
1167 (list_clicK): Fix compiler warnings (signed vs unsigned comparison).
1168 (note_width): Fix compiler warnings (deprecated conversion).
1169 (keep_or_skip): Fix compiler warnings (unused).
1170 (_view::mode_caption): Fix compiler warnings (deprecated conversion).
1171 (set_view_mode): Fix compiler warnings (unused).
1172 (create_listview): Fix compiler warnings (unused, incorrect format, reaches
1174 (dialog_proc): Fix compiler warnings (unused).
1175 (read_installed_db): Fix compiler warnings (unused, deprecated conversion).
1176 * choose.h (_header): Fix compiler warnings (deprecated conversion).
1179 2001-11-08 Pavel Tsekov <ptsekov@syntrex.com>
1181 * simpsock.h (SimpleSocket::invalidate): Declare new method.
1182 * simpsock.cc (SimpleSocket::invalidate): Implement new method.
1183 (SimpleSocket::SimpleSocket): Initialize buf to zero. Do not allocate
1184 memory for buf in the constructor.
1185 (SimpleSocket::~SimpleSocket): Use SimpleSocket::invalidate().
1186 (SimpleSocket::printf): Use SimpleSocket::write() instead of send().
1187 (SimpleSocket::write): Check object consistency - return -1 on error.
1188 invalidate() the object on socket write error.
1189 (SimpleSocket::fill): Check object consistency - return -1 on error.
1190 invalidate() the object if socket read error is encountered and there
1191 is no more data available in the internal read buffer.
1192 Allocate memory for the internal read buffer.
1193 (SimpleSocket::gets): Return zero (NULL pointer) if error is encountered
1194 during fill() and no more data is available in the internal read buffer.
1195 (SimpleSocket::read): Check object consistency - return -1 on error.
1196 invalidate() the object if socket read error is encountered.
1197 * nio-ftp.cc (NetIO_FTP:NetIO_FTP): Allow 125 as valid response code to
1198 the RETR command (fix for MS IIS ftp server 5 - possibly others too).
1199 (NetIO_FTP::ok): Check if the SimpleSocket object is ok().
1200 (NetIO_FTP::read): Use NetIO_FTP::ok().
1201 * nio-http.cc: Check for valid return value of SimpleSocket::gets().
1202 (NetIO_HTTP::ok): Check if the SimpleSocket object is ok().
1204 2001-11-09 Robert Collins <rbtcollins@hotmail.com>
1206 * simpsock.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
1207 (SimpleSocket::SimpleSocket): Avoid compiler warnings (deprecated conversion).
1208 (SimpleSocket::printf): Ditto.
1209 (SimpleSocket::write): Ditto.
1210 * simpsock.h (SimpleSocket): Avoid compiler warnings for constructor,
1212 * nio-ftp.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
1213 (NetIO_FTP::NetIO_FTP): Remove unused variable done.
1214 * nio-http.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
1216 2001-11-07 Charles Wilson <cwilson@ece.gatech.edu>
1218 * geturl.cc (get_url_to_string): clean up memory leak
1219 (get_url_to_file): ditto
1221 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
1223 * localdir.cc (dialog_cmd): Go back to IDD_ROOT in every case.
1224 * source.cc (dialog_cmd): Go forward to IDD_ROOT in every case.
1226 2001-11-06 Pavel Tsekov <ptsekov@syntrex.com>
1228 * fromcwd.cc (found_file): Free() memory containing the version and
1229 filepath information for a given package, before replacing the pointers which
1230 reference this memory.
1232 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
1234 * fromcwd: Fix compiler warnings for cvsid.
1235 (canonicalize_version): Fix compilter warnings.
1236 (do_fromcwd): Ditto.
1237 * version.h: Fix compiler warnings for canonicalize_version.
1239 2001-11-03 Robert Collins <rbtcollins@hotmail.com>
1241 * res.rc (IDD_CHOOSE): Move the view caption to the right hand side.
1243 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1245 * res.rc (IDD_CHOOSE): Tweak for use on a 640x480 screen.
1247 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1249 * choose.cc (set_action): Correctly allow skip for any uninstalled package.
1251 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1253 * choose.cc (default_trust): Change the "Required" forced install category to
1256 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1258 * choose.cc: Ran indent.
1259 (set_action): When the requested trust level is missing and the level was not
1260 user requested, set the action to ACTION_SAME_CURR.
1262 2001-11-01 Christopher Faylor <cgf@redhat.com>
1264 * Makefile.in (mingw_getopt.o): Fix typo in non-verbose compilation.
1266 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1268 * choose.cc (_view::init_headers): Resync with the paint logic.
1270 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1272 * choose.cc (add_required): Allow SKIP and SRC_ONLY for currently installed
1275 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1277 * choose.cc (default_trust): Autoset currently installed packages per the user's
1278 selection of prev/curr/exp.
1280 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1282 * splash.cc (dialog_proc): Return TRUE as specified in the WIN32 API.
1284 2001-11-02 Pavel Tsekov <ptsekov@syntrex.com>
1286 * geturl.cc (is_showing): Remove.
1287 (is_local_install): New static variable. Controls whether the
1288 progress dialog and the supporting thread will be created.
1289 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the WIN32 API.
1290 (init_dialog): Remove usage of SetForegroundWindow and is_showing.
1291 This prevents the progress dialog to gain control over the
1292 application and fixes the "setup.exe going to background" problem.
1293 (progress): Use is_local_install.
1294 (get_url_to_string): Set is_local_install.
1295 (dismiss_url_status_dialog): Use is_local_install.
1296 * install.cc (dialog_proc): Return TRUE as specified in WIN32 API.
1297 (init_dialog): Remove usage of SetForegroundWindow.
1298 This prevents the progress dialog to gain control over the
1299 application and fixes the "setup.exe going to background" problem.
1301 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1303 * choose.cc (list_click): Change r to row for clarity.
1304 When we shrink the list below 1 page, scroll to the top of the list.
1305 (_view::click): Return the actual change for contractions.
1306 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the Win32 API.
1308 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1310 * choose.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
1311 * localdir.cc: Ran indent.
1312 (get_root_dir_now): New function.
1313 (save_local_dir): New function.
1314 (dialog_cmd): Use it and swap cygwin root selection and local dir selection order.
1315 (do_local_dir): If there is a saved local dir, read it in.
1316 * net.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
1317 * root.cc (dialog_cmd): Ditto.
1318 * source.cc (dialog_cmd): Ditto.
1320 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
1322 * choose.cc(list_vscroll): Return 0 as required by win32.
1323 (list_hscroll): Ditto.
1324 (list_click): Ditto.
1326 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
1330 * main.cc(WinMain): Use __argv to retrieve command line parameters.
1331 * Makefile,in: Remove argv.o.
1333 2001-11-01 Matt Hargett <matt@use.net>
1335 * geturl.cc (progress): Change int to unsigned int to eliminate
1337 * (get_url_to_string): Check for NULL pointer.
1338 * mount.cc (find2): Use free instead of delete for malloc'd
1340 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Fix memory leak.
1342 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
1344 * choose.cc(_view::insert_under): Handle linen > nlines and lines[linen] with neither
1345 a package nor a category. The lines[linen] bug was reported by Matt (matt@usa.net).
1346 (read_installed_db): Bugfix for testing whether a package has a source tarball.
1347 Reported by Matt (matt@usa.net).
1348 * geturl.cc(dialog): Rename gw_dialog to local_gw_dialog to avoid programmer
1349 confusion and lint errors. Reported by Matt (matt@usa.net).
1351 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
1353 * argv.cc: New file, converts arguments for -mwindows programs. (Simplified derivation
1356 * Makefile,in: Add argv.o and mingw_getopt.o to setup.exe object list.
1357 Add mingw_getopt.o build rule.
1358 * main.cc(WinMain): Initialise argv and argc for use by getopt.
1360 2001-10-27 Christopher Faylor <cgf@redhat.com>
1362 * res.rc: Rearrange info on top line slightly.
1364 2001-10-27 Christopher Faylor <cgf@redhat.com>
1366 * desktop.cc (make_passwd_group): Move file creation earlier in the
1367 process to ensure that passwd-grp.bat reflects desired operation.
1369 2001-27-10 Trevor Forbes <t4bs@hotmail.com>
1371 * postinstall.cc (each): Remove "*.done" file else rename will fail.
1373 2001-10-16 Christopher Faylor <cgf@redhat.com>
1375 * res.rc: Oops. Take 640x480 screen size into account.
1377 2001-10-16 Christopher Faylor <cgf@redhat.com>
1379 * res.rc: Enlarge chooser screen.
1381 2001-10-12 Christopher Faylor <cgf@redhat.com>
1383 * Makefile.in: Accomodate changes to w32api_include macro.
1385 2001-10-12 Christopher Faylor <cgf@redhat.com>
1387 * Makefile.in: Use correct flags for windres.
1389 2001-10-12 Christopher Faylor <cgf@redhat.com>
1391 * Makefile.in (CFLAGS): Remove -nostdinc from CFLAGS.
1393 2001-10-12 Christopher Faylor <cgf@redhat.com>
1395 * choose.cc (pick_line::paint): Reorganize after botched patch.
1397 2001-10-12 Christopher Faylor <cgf@redhat.com>
1399 * choose.cc (pick_line::paint): Add missing declaration.
1401 2001-10-10 Ralf Habacker <Ralf.Habacker@freenet.de>
1403 * choose.cc (pick_line::paint): Add package name to sdesc for display.
1405 Wed Sep 26 21:39:00 Robert Collins rbtcollins@hotmail.com
1407 * choose.cc (_view::insert_pkg): Correctly exit loop.
1408 * iniparse.y (register_category): Always insert new categories.
1410 Fri Sep 21 13:56:32 2001 Christopher Faylor <cgf@cygnus.com>
1412 * inilex.l (yylex): For comments, eat all characters up to, but not
1415 Sun Aug 26 12:50:01 2001 John Marshall <jmarshall@acm.org>
1417 * fromcwd.cc (found_file): Use correct package name when adding an
1418 unknown package rather than random stack garbage.
1420 Sun Aug 12 14:25:21 2001 Christopher Faylor <cgf@cygnus.com>
1422 * desktop.cc (make_passwd_group): .bat files need \r\n endings.
1424 Wed Aug 8 13:53:47 2001 Christopher Faylor <cgf@cygnus.com>
1426 * desktop.cc (etc_profile): Leave environment variables untouched.
1428 2001-08-07 Corinna Vinschen <corinna@vinschen.de>
1430 * autoload.c: Add dynamic load statements for NT/W2K
1431 advapi32 functions not available in 9x/ME.
1432 * main.cc (set_default_dacl): New function.
1433 (WinMain): Call `set_default_dacl' if running on NT/W2K.
1435 Sat Aug 4 21:35:53 2001 Christopher Faylor <cgf@cygnus.com>
1437 * ini.h (_CategoryPackage): Change pkg field to pkgname for
1439 * choose.cc: Use pkgname field when referencing _CategoryPackage
1441 (fill_missing_category): Don't add excluded packages.
1442 (default_trust): Ditto.
1443 (_view::insert_pkg): Ditto.
1444 * iniparse.y (register_category): Use consistent variable name.
1446 2001-07-09 Egor Duda <deo@logos-m.ru>
1448 * choose.cc: Use system foreground color for text output.
1450 Sat Jul 7 00:40:28 2001 Christopher Faylor <cgf@cygnus.com>
1452 * choose.cc (set_action): Use default trust for determining reinstall
1454 (default_trust): Set default trust.
1455 (pick_line::paint): Allow source selection when reinstalling or
1458 Fri Jul 6 18:08:49 2001 Christopher Faylor <cgf@cygnus.com>
1460 * choose.cc (isinstalled): Modify to properly accomodate special case
1462 (set_action): Check downloaded components, not installed components if
1464 (set_existence): Always include full list of files when "download
1467 Fri Jul 6 00:37:05 2001 Christopher Faylor <cgf@cygnus.com>
1469 * choose.cc (pick_line::paint): Properly display "na" field when no
1472 Thu Jul 5 00:34:23 2001 Christopher Faylor <cgf@cygnus.com>
1474 * choose.cc (scan2): Ensure that older versions do not show up in
1477 Mon Jul 2 15:47:59 2001 Christopher Faylor <cgf@cygnus.com>
1479 * choose.cc (set_action): Allow "Skip" action if trust != installed.
1480 * res.rc: Fix copyright.
1482 Sat Jun 30 14:05:21 2001 Michael A Chase <mchase@ix.netcom.com>
1484 * res.rc (IDD_LOCAL_DIR): Change caption to match the other dialog
1486 (IDD_CHOOSE): Adjust horizontal size so package names are visible.
1488 * choose.cc: Restore some more changes from 2001-06-25, throughout.
1489 (paint): Wrap some excessively long lines.
1490 (pick_line::paint): Ditto. Move the arrow in the "Current" column
1491 right to where it belongs. Move the source checkbox slightly to the
1493 (do_choose): List categories and required packages in setup.log.full.
1495 Sat Jun 30 23:04:59 2001 Christopher Faylor <cgf@cygnus.com>
1497 * choose.cc (scan2): Restore source scanning eliminated by previous checkin.
1499 Sat Jun 30 15:18:33 2001 Christopher Faylor <cgf@cygnus.com>
1501 * ini.h (struct _Info): Add "derived" element.
1502 * choose.cc (scan2): Try to place unknown tar files into proper slot
1503 when package exists in setup.ini but tar file does not.
1505 Sat Jun 30 13:39:00 2001 Robert Collins <rbtcollins@hotmail.com>
1507 * choose.cc (create_listview): Call set_view_mode with VIEW_CATEGORY.
1508 (do_choose): Log the first category name.
1510 Fri Jun 29 23:07:44 2001 Christopher Faylor <cgf@cygnus.com>
1512 *ini.h: Reapply 2001-06-25 changes.
1513 * choose.cc (add_required): Ditto. Default to "Keep" state if
1514 UNINSTALL and product is installed. Default to curr state if SKIP,
1516 (keep_or_skip): New function. Returns skip or keep state depending on
1517 installed state of package.
1518 (default_trust): Use keep_or_skip to set state.
1519 (_view::insert_pkg): Use calloc to allocate lines.
1520 (set_view_mode): Adapt 2001-06-25 change to set_full_list here.
1522 Sat Jun 30 11:01:00 2001 Robert Collins <rbtcollins@hotmail.com>
1524 * choose.cc: Remove globals full_list, headers, package_indexes and
1526 Add globals cat_headers, pkg_headers and chooser.
1527 (add_required): New function.
1528 (paint): Use the chooser for header details.
1529 Call into the chooser to paint each line.
1530 (list_click): Use new global variables.
1531 Call into the chooser to handle the click.
1532 Repaint the entire view if packages have been added or removed.
1533 (note_width): Get passed a headers struct rather than using a global
1535 (fill_missing_category): New function.
1536 (default_trust): Skip non-"Required" or "Misc" packages.
1537 (pick_line::set_line (Package *)): New function.
1538 (pick_line::set_line (Category *)): New function.
1539 (pick_line::paint): New function.
1540 (pick_line::click): New function.
1541 (_view::_view): New function.
1542 (_view::set_view_mode): New function.
1543 (_view::mode_caption): New function.
1544 (_view::set_headers): New function.
1545 (_view::init_header): New function.
1546 (_view::insert_pkg): New function.
1547 (_view::insert_category): New function.
1548 (_view::insert_at): New function.
1549 (_view::insert_under): New function.
1550 (_view::clear_view): New function.
1551 (viewsplusplus): New function.
1552 (_view::client): New function.
1553 (set_view_mode): Use new chooser functionality.
1554 (set_full_list): Use new global variables.
1555 (create_listview): Instantiate chooser.
1556 Remove all hardcoded headers[] code.
1557 (dialog_cmd): On trust changes, check dependencies.
1558 (getcategorybyname): New function.
1559 (getpackagecategorybyname): New function.
1560 (scan2): Use case-insensitive package comparison.
1561 (do_choose): Use fill_missing_category ().
1562 Show some category data.
1563 * ini.h: Protect against multiple inclusion.
1565 (_CategoryPackage): New struct.
1566 (_Category): New struct.
1567 (_Package): Change category to Category * from char *.
1568 (extern Category category): New global variable.
1569 (extern in ncategories): Ditto.
1570 (getcategorybyname): New prototype.
1571 (catpackagecategorybyname): New prototype.
1572 (register_category): New prototype.
1573 (add_category): New prototype.
1574 * iniparse.y: Parse multiple categories per package.
1575 (category): New global variable.
1576 (ncategories): New global variable.
1577 (new_package): Compare package against NULL, not 0.
1578 (new_requirement): Source formatting fix.
1579 (register_category): New function.
1580 (add_category): New function.
1581 * res.rc: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
1582 IDC_CHOOSE_VIEWCAPTION: New control.
1583 * resource.h: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
1584 IDC_CHOOSE_VIEWCAPTION: New control.
1585 Increment _APS_NEXT_CONTROL_VALUE.
1587 Mon Jun 25 00:56:37 2001 Michael A Chase <mchase@ix.netcom.com>
1589 * choose.cc (paint): Wrap excessively long lines.
1590 (list_click): Ditto.
1591 (create_listview): Ditto.
1592 (do_choose): Ditto. Replace TABs and remove CRs in lines written to
1593 setup.log.full. Allow "Yes" for source exists in setup.log.full when
1594 installing from local directories.
1596 Mon Jun 25 00:56:37 2001 Christopher Faylor <cgf@cygnus.com>
1598 * choose.cc (set_action): Only clear srcpicked when moving to next
1599 state. Allow source installation if it exists in the current "trust"
1600 state. Don't move to skip state when package is installed.
1601 (list_click): Don't allow source clicking when no source is available.
1602 (set_full_list): Display package when not is_full_action.
1603 * ini.h (is_full_action): Define.
1605 Sun Jun 17 12:06:14 2001 Christopher Faylor <cgf@cygnus.com>
1607 * install.cc (check_for_old_cygwin): New function. First stab at
1608 checking for old cygwin versions.
1609 (do_install): Call check_for_old_cygwin if there were no errors during
1612 Sat Jun 16 11:33:51 2001 Michael A Chase <mchase@ix.netcom.com>
1614 * choose.cc (_Info::_Info): Test _source paramenter for non-NULL rather
1615 than zeroed "source" element.
1617 Fri Jun 15 20:54:43 2001 Christopher Faylor <cgf@cygnus.com>
1619 * choose.cc (scan2): Insert unknown tar archives, found on disk, into
1620 the highest available "hole" in the trust array.
1622 Fri Jun 15 00:20:48 2001 Christopher Faylor <cgf@cygnus.com>
1624 * choose.cc (set_existence): Use pointer method for indexing in trust
1626 (create_listview): Ditto.
1627 (scan2): Ditto. Also, use consistent variable name for indexing into
1629 * ini.h (Package): Reorganize info array for easier scanning.
1631 Fri Jun 15 00:01:51 2001 Christopher Faylor <cgf@cygnus.com>
1633 * choose.cc (isinstalled): Eliminate special download only test.
1634 (set_action): Don't move to next state if in ACTION_SAME range and not
1636 (choose_caption): Display "Retrieve" rather than "Reinstall" when just
1638 (do_choose): Sort packages after all packages have been read.
1639 Accomodate the fact that first element in trust array is empty so that
1640 log files don't report the wrong trust value.
1641 * iniparse.y (new_package): Malloc space for package name or suffer
1644 Thu Jun 14 22:43:59 2001 Robert Collins <rbtcollins@hotmail.com>
1646 * ini.h (Dependency): New structure. Declare new function.
1647 * inilex.l (yylex): Detect new setup.ini options - category and requires.
1648 * iniparse.y: Declare new setup.ini token values.
1649 (yyparse): Parse new token values.
1650 (new_requirement): New function.
1652 Thu Jun 14 22:43:26 2001 Christopher Faylor <cgf@cygnus.com>
1654 * choose.cc (read_installed_db): Eliminate obsolete code.
1656 Thu Jun 14 22:11:53 2001 Christopher Faylor <cgf@cygnus.com>
1658 * choose.cc (set_action): Set trust on "redo".
1659 (_Info::_Info): New constructor.
1660 (read_installed_db): Use new constructor. Use trusts type for
1662 * ini.h (struct _Info): Label struct, add constructor.
1663 (Package): Make installed_ix a type 'trusts.'
1664 * install.cc (uninstall_one): Unset any installed info for current
1666 (install_one): Allocate new Info struct for installed reflecting new
1668 (do_install): Don't output line to installed.db if package is being
1671 Thu Jun 14 20:33:01 2001 Robert Collins <rbtcollins@hotmail.com>
1673 * choose.cc (getpkgbyname): Use consistent method for scanning package
1676 Wed Jun 13 23:33:08 2001 Christopher Faylor <cgf@cygnus.com>
1678 * choose.cc: Add some comments.
1679 (getpkgbyname): Use strcasecmp for comparisons.
1681 Wed Jun 13 16:07:00 2001 Christopher Faylor <cgf@cygnus.com>
1683 * install.cc (do_install): Avoid checking for download action if
1684 package wasn't currently retrieved.
1686 Wed Jun 13 11:27:22 2001 Christopher Faylor <cgf@cygnus.com>
1688 * choose.cc: Eliminate extra array throughout. Use element in package
1689 structure instead. Use pointers rather than array indexes where
1691 (set_action): New function to set next action based on current.
1692 (choose_caption): New function. Returns display caption.
1693 (check_existence): Change arguments. Use pointer to 'info' structure.
1694 (set_existence): Use pointer rather than array index.
1695 (default_trust): Use trusts enum for second argument.
1696 (set_full_list): Honor exclude element in package structure.
1697 (build_labels): Eliminate.
1698 (base): Make global. Use const char * argument.
1699 (get_package_version): Eliminate.
1700 (getpkgbyname): New function.
1701 (read_installed_db): Use parse_filename to get version info.
1702 * desktop.cc (make_passwd_group): Use getpkgbyname function.
1703 * download.cc (get_file_size): const argument.
1704 (do_download): Use is_download_action to determine when something
1705 should be downloaded.
1706 * filemanip.h: Add some functions.
1707 * ini.cc (do_ini): Use NULL rather than 0 for pointer assignment.
1708 * ini.h: Use enums for actions and trusts.
1709 (is_download_action): New macro.
1710 (is_upgrade_action): Ditto.
1711 (is_uninstall_action): Ditto.
1712 (struct Package): Add new fields.
1713 * inilex.l (yylex): Detect new setup.ini options.
1714 * iniparse.y: Declare new tokens.
1715 (yyparse): Detect exclude keyword. Fill out version field even if
1717 (new_package): Use greater granularity when allocating package array to
1718 avoid repeated calls to realloc.
1719 * install.cc (exists): const argument.
1720 (uninstall_one): Take pkg argument.
1721 (install_one): Ditto. Eliminate unneeded arguments which can be
1722 derived from package info.
1723 (do_install): Iterate over package array using a pointer. Use
1724 is_download_action to control when package should be downloaded.
1725 * tar.cc (tar_open): const argument.
1726 * tar.h: Refloect const argument.
1728 2001-05-31 Michael Chase mchase@ix.netcom.com
1730 * main.cc (WinMain): Add setup version to starting setup.log entry
1732 Tue May 29 21:37:58 2001 Yukihiko Sohda <sohda@is.titech.ac.jp>
1734 * inilex.l: Add + to list of valid string characters.
1736 Mon May 28 20:54:50 2001 Christopher Faylor <cgf@cygnus.com>
1738 * Makefile.in: Remove more stuff in the clean target.
1740 Mon May 28 18:24:59 2001 Christopher Faylor <cgf@cygnus.com>
1742 * Makefile.in: Correctly generate iniparse.h.
1744 Tue Mar 6 19:14:00 2001 Corinna Vinschen <corinna@vinschen.de>
1746 * geturl.cc (get_url_to_file): Add parameter `allow_ftp_auth'.
1747 * geturl.h: Change declaration of `get_url_to_file' accordingly.
1748 * netio.cc (NetIO::NetIO): Add parameter `allow_ftp_auth'.
1749 Set member `ftp_auth'.
1750 (NetIO::open): Add parameter `allow_ftp_auth'. Use it in calls
1751 to constructors of derived classes.
1752 (NetIO::get_ftp_auth): New method.
1753 * netio.h: Change class definition accordingly.
1754 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Add parameter `allow_ftp_auth'.
1755 Take global variables `net_ftp_user' and `net_ftp_passwd' into account.
1756 Add code for ftp authentication retry.
1757 * nio-ftp.h: Change class definition accordingly.
1758 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Add parameter `allow_ftp_auth'.
1759 Add code for ftp authentication retry in case of proxy connection.
1760 * nio-http.h: Change class definition accordingly.
1761 * res.rc: Add FTP authentication dialog.
1762 * resource.h: Add new constants used in res.rc.
1763 * state.h: Add variables `net_ftp_user' and `net_ftp_passwd'.
1765 Sun May 27 17:12:23 2001 Christopher Faylor <cgf@cygnus.com>
1767 * res.rc (IDD_SPLASH): Add a copyright year.
1769 Sun May 27 15:42:18 2001 Christopher Faylor <cgf@cygnus.com>
1771 * Makefile.in: Make iniparse.y produce a c++ file.
1772 * choose.cc (set_existence): Revert 2001-05-27 change.
1773 * ini.cc: Remove "C" from declaration of yyparse.
1774 * iniparse.y (yyparse): Fill out version field by default when a binary
1775 install is detected and no version has been set yet.
1776 * install.cc (do_install): Mount things earlier so that we can use
1777 proper mount table settings. Don't remove mounts since they are now
1779 * mount.cc (create_mount): Reread the mount table after establishing a
1781 (read_mounts): Explicitly clear root_here to allow multiple uses of
1782 this function. Ensure that there is no garbage in the table when we've
1783 exhausted all of the mounts in the registry.
1784 (cygpath): Accomodate ./ in path.
1786 Sun May 27 02:59:07 2001 Christopher Faylor <cgf@cygnus.com>
1788 Use parse_filename method to parse filenames throughout. Use
1789 get_root_dir to retrieve the current root directory throughout. Set
1790 const in argument list, where appropriate, throughout.
1791 * choose.cc (set_existence): Detect case of uninstalled package with no
1793 (parse_filename): New function.
1794 * filemanip.h (fileparse): New structure.
1795 * mount.cc (read_mounts): Remember where we found the root mount.
1796 (set_root_dir): New function.
1797 (get_root_dir): Ditto.
1798 * mount.h: Declare new functions.
1799 * site.cc (get_root_dir_now): Renamed from get_root_dir.
1800 (save_site_url): Use new function name.
1801 (get_initial_list_idx): Ditto.
1803 Sat May 26 21:23:59 2001 Christopher Faylor <cgf@cygnus.com>
1805 * choose.cc: Use a constant throughout to deal with chooser icon
1807 * res.rc (IDD_CHOOSE): Increase size of chooser box.
1809 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
1811 * choose.cc (do_choose): Fix incorrect assignment of trust setting to
1812 use when Redownload or Sources Only selected.
1814 Thu May 10 22:35:59 2001 Christopher Faylor <cgf@cygnus.com>
1816 Reformat file after botched patch formatting.
1817 * choose.cc (which_trust): Eliminate variable.
1818 (default_trust): Don't set which_trust.
1819 (do_choose): Use selected trust when reinstalling or installing source.
1821 Thu May 10 21:04:18 2001 Christopher Faylor <cgf@cygnus.com>
1823 Change concat to cygpath throughout.
1824 Change map_filename to cygpath throughout.
1825 * concat.cc (vconcat): New function.
1826 (concat): Use vconcat.
1827 * concat.h: Reflect above.
1828 * install.cc (map_filename): Eliminate.
1829 (install_one): Free dest_file.
1830 * mount.cc (find2): Expect input key to be pointing to mount record.
1831 (in_table): New function.
1832 (is_admin): Move from root.cc.
1833 (read_mounts): New function.
1834 (path_prefix_p): New function.
1835 (cygpath): New function.
1836 * mount.h: Define new functions and structure.
1837 * root.cc (in_table): Move to mount.cc.
1838 (do_root): Call read_mounts to initialize root stuff and mount table.
1839 * site.cc (get_root_dir): Ditto.
1841 2001-05-09 Matt Hargett <matt@use.net>
1843 * Makefile.in: Remove *.rc from clean.
1845 Tue May 8 23:33:38 2001 Christopher Faylor <cgf@cygnus.com>
1847 * choose.cc (scan2): Fix incorrect setting of TRUST_CURR rather than
1848 TRUST_PREV which produced "0" versions.
1850 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
1852 * resource.h: Add new field IDC_CHOOSE_INST_TEXT. Modify
1853 _APS_NEXT_CONTROL_VALUE to account for addition of
1854 IDC_CHOOSE_INST_TEXT.
1855 * res.rc (IDD_CHOOSE): Modify choose dialog to use new field
1856 IDC_CHOOSE_INST_TEXT for screen text. Modify choose Dialog to allow
1857 hot keys to select Prev, Curr, Exp.
1858 * ini.h: Add new actions for ACTION_REDO and ACTION_SRC_ONLY. Modify
1859 define for LOOP_PACKAGES to include new actions ACTION_REDO and
1861 * choose.cc: Add new Trusts for TRUST_REDO and TRUST_SRC_ONLY.
1862 (paint): Modify to check TRUST_SRC_ONLY when determining Bitmap for
1863 source Checkbox to use.
1864 (build_labels): Add logic to allow for selection of Source only
1865 Download/ReDownload/Install/Reinstall and also to Redownload/Reinstall
1866 current version binary.
1867 (dialog_proc): Add conditional display for file selection prompt based
1868 on download vs install using IDC_CHOOSE_INST_TEXT.
1869 (do_choose): Add new logic for TRUST_REDO and TRUST_SRC_ONLY selection
1870 and modify logic for TRUST_UNINSTALL, TRUST_KEEP, and TRUST_NONE to
1871 handle the instance where Source Download/Install was selected. Modify
1872 log file to store appropriate information regarding Action selected and
1873 the new actions that were added (I.E.: ACTION_REDO and
1875 * download.cc: Add include for <unistd.h> and "port.h".
1876 (download_one): Modify parameter list to include the selected action
1877 for the file to be downloaded. Modify size check against expected size
1878 to include check for ACTION_REDO and ACTION_SRC_ONLY. Modify rename of
1879 .tmp file to also remove the destination file if exists due to ability
1880 to redownload source and binary now.
1881 (do_download): Modify to also use ACTION_REDO and ACTION_SRC_ONLY in
1882 calculation of Download Bytes. Modify to also use ACTION_REDO and
1883 ACTION_SRC_ONLY in determining files selected for download.
1884 * install.cc (uninstall_one): Add check to treat a Reinstall like an
1885 upgrade so current version will be uninstalled prior to reinstall.
1886 (do_install): Add logic to handle ACTION_REDO and ACTION_SRC_ONLY for
1887 uninstalling and installing binary and source packages.
1888 * desktop.cc (make_passwd_group): Modify logic to account for a Source
1889 only cygwin install when checking for cygwin to determine need for
1890 mkpasswd and mkgroup.
1892 Mon May 7 23:33:30 2001 Matt Hargett <matt@use.net>
1894 * winsup/cinstall/res.rc: Added accelerators and improved focus order.
1895 Removed WS_DISABLED from "OK" buttons to accomodate default focus
1896 changes in net.cc and source.cc.
1897 * winsup/cinstall/net.cc (dialog_proc): If no radio button is selected,
1898 a default is selected.
1899 * winsup/cinstall/source.cc (dialog_proc): Ditto.
1900 (check_if_enable_next): Removed. No longer needed since a radio button
1901 will always be selected.
1902 (load_dialog): Removed call to check_if_enable_next.
1903 (dialog_cmd): Ditto. Also added default to switch.
1905 Tue Apr 24 23:42:02 2001 Christopher Faylor <cgf@cygnus.com>
1907 * res.rc: Resize affected text.
1909 Tue Apr 24 23:35:31 2001 Christopher Faylor <cgf@cygnus.com>
1911 * net.cc (do_net): Default to direct download.
1912 * res.rc: Move default selections to the top.
1914 2001-04-18 Earnie Boyd <earnie@users.sourceforge.net>
1916 * win32.h: Remove the definitions for _UNION_NAME and _STRUCT_NAME.
1917 Must now include <windows.h> and not the pieces.
1918 * choose.cc (create_listview): Clean up type mismatch problems.
1919 * dialog.h (NEXT(id)): Ditto.
1920 * geturl.cc (dialog): Ditto.
1921 * install.cc (dialog): Ditto.
1922 * splash.cc (load_dialog): Ditto.
1924 Wed Apr 18 18:59:21 2001 Christopher Faylor <cgf@cygnus.com>
1926 * tar.cc (class gzbz): Define dummy virtual functions.
1928 Wed Apr 18 16:01:21 2001 Christopher Faylor <cgf@cygnus.com>
1930 * Makefile.in: Add bz2 include/library support.
1931 * filemanip.h: New file.
1932 * choose.cc (find_tar_ext): New function. Returns TRUE if .tar.gz or
1934 (scan2): Reorganize to use find_tar_ext, accomodating .bz2 extension.
1935 (read_installed_db): Ditto.
1937 * fromcwd.cc (found_file): Ditto.
1938 (do_fromcwd): Ditto.
1939 * tar.cc (class gzbz): New super class for uncompression support.
1940 (gz): New class for gzip support.
1941 (bz): New class for bzip2 support.
1942 (tar_open): Use gzbz class to control file opening.
1943 (tar_ftell): Ditto for returning position in file.
1944 (skip_file): Ditto for reading file.
1945 (tar_next_file): Ditto.
1946 (tar_read_file): Ditto.
1947 (tar_close): Ditto for close.
1949 * zlib/configure.in: Force NM substitution.
1951 * source.cc (do_source): Default to "Install from Internet".
1953 2001-03-16 Brian Keener <bkeener@thesoftwaresource.com>
1955 * nio-file.cc (NetIO_File::NetIO_File): Use `get_file_size' instead of
1957 * choose.cc (list_click): Correct inability to select source code for
1959 (scan2): Modify to skip source tarballs when scanning disk for
1960 installable packages.
1962 2001-03-10 Chris Abbey <chris_abbey@yahoo.com>
1964 * install.cc: install sources into /usr/src instead
1965 of /, also include the sizes of source tarballs
1967 * download.cc: include sizes of source tarballs in
1968 total_download_bytes.
1970 Tue Mar 6 19:31:00 2000 Corinna Vinschen <corinna@vinschen.com>
1972 * download.cc (get_file_size): Remove `static'.
1974 Tue Mar 6 19:11:00 2000 Corinna Vinschen <corinna@vinschen.com>
1976 * tar.cc (tar_open): Use `get_file_size' instead of `stat'.
1978 2001-03-06 Brian Keener <bkeener@thesoftwaresource.com>
1980 * choose.cc (paint): Modify message for nothing to download vs
1981 nothing to install/update based on installation method.
1982 (list_click): Modify to skip versions in selection process if
1983 installing from local directory and installation file does not exist.
1984 Also leaves Source Action set to N/A if the source file does not exist
1985 and installing from local directory.
1986 (check_existence): New method to check current existence of installation
1987 files based on selected installation method.
1988 (set_existence): New method to set the current existence of installation
1989 files based on selected installation method.
1990 (best_trust): Modify decision process for best trust to base decision on
1991 current trust selected (IE: Prev, Curr, or Test), existence of file and
1992 installation method selected.
1993 (default_trust): Add logic to capture the current trust level and the
1994 trust selected for the given package.
1995 (set_full_list): Expand decision criteria for displaying a package in
1996 the selection list to include file existence/non-existence and selected
1997 installation method.
1998 (build_labels): Modify criteria for label addition to include
1999 installation method and file existence/non-existence.
2000 (create_listview): Modify to establish package trust level for each
2001 package before setting up the display list. Also modification to set
2002 current trust button as the default.
2003 (dialog_cmd): Set response for Prev, Curr, Test button push to perform
2004 a reset of the selection list in addition to setting the default trust.
2005 (get_package_version): New method to provide reusable code for
2006 determining the package version from the file name for a specified
2008 (scan2): Modify to use new method get_package_version and
2009 also enhance handling of the build for the structures package and
2011 (read_installed_db): Modify to use the new method
2012 get_package_version and also enhance handling of the build for the
2013 structures package and extra.
2014 (do_choose): Add additional initialization of package and extra
2015 structures. Modify to use read_installed_db all the time despite
2016 install method. Modify output to setup.log.full log file to increase
2017 readability by adding additional spacing, expanded code and available
2019 * ini.h: Add new fields install_exists, source_exists and
2020 partial_list_display to the structure definition for package.
2021 * res.rc (IDD_CHOOSE): Modify choose dialog Prev, Curr, and Test
2022 pushbuttons by replacing with Radio Buttons thus allowing the
2023 operator to better determine which is selected.
2025 2001-02-20 Brian Keener <bkeener@thesoftwaresource.com>
2027 * download.cc (do_download): Add new variables total_download_bytes and
2028 total_download_bytes_sofar for download progress meter. Add loop
2029 to accumulate the total bytes to download from the selected packages.
2030 * geturl.cc: Add state.h and diskfull.h to include list. Add new
2031 variables gw_iprogress, gw_pprogress, gw_progress_text,
2032 gw_pprogress_text, and gw_iprogress_text to allow for addition of
2033 total packages download progress meter and disk full percent
2034 progress meter. Add variables total_download_bytes and
2035 total_download_bytes_sofar for use by progress meters.
2036 (dialog_proc): Add new variables gw_iprogress, gw_pprogress,
2037 gw_progress_text, gw_pprogress_text, and gw_iprogress_text to
2038 allow for addition of total packages download progress meter and disk
2039 full percent progress meter.
2040 (init_dialog): Ditto.
2042 (get_url_to_file): Ditto.
2043 * geturl.h: Add external definition for total_download_bytes and
2044 total_download_bytes_sofar.
2045 * res.rc: Add two additional progress meters (IDC_DLS_IPROGRESS)
2046 and (IDC_DLS_PPROGRESS) and three text objects (IDC_DLS_PROGRESS_TEXT)
2047 and (IDC_DLS_IPROGRESS_TEXT, IDC_DLS_PPROGRESS_TEXT) for use in the
2049 * resource.h: Add new fields for progress meters and text and update
2050 _APS_NEXT_CONTROL_VALUE.
2052 Wed Feb 21 13:05:00 2000 Corinna Vinschen <vinschen@redhat.com>
2054 * download.cc (get_file_size): Check for INVALID_HANDLE_VALUE instead
2057 Wed Feb 21 11:21:00 2000 Corinna Vinschen <vinschen@redhat.com>
2059 * download.cc (download_one): Add missing parenthesis.
2061 Mon Feb 19 18:59:00 2000 Corinna Vinschen <vinschen@redhat.com>
2063 * download.cc (get_file_size): New function. Eliminates the need
2065 (download_one): Call `get_file_size' instead of `stat'. This
2066 workarounds a problem with mingw's `stat' call.
2068 2001-02-07 Earnie Boyd <earnie@users.sourceforge.net>
2070 * Makefile.in: (%.o: %.rc): Specify --include-dir $(w32api_include).
2071 This is to allow cinstall to build with 2.95.2-7 and to make the
2072 use of headers consistent.
2074 2000-12-26 Earnie Boyd <earnie_boyd@yahoo.com>
2076 * Makefile.in (autoload.o): Add target to specify -fno-inline-functions
2078 Tue Dec 26 03:46:00 2000 Matt Hargett <matt@use.net>
2080 * winsup/cinstall/res.rc: Added accelerators and improved focus
2083 2000-12-10 Egor Duda <deo@logos-m.ru>
2085 * choose.cc (paint): Use system background color for text output.
2087 Sun Dec 10 19:05:25 2000 Christopher Faylor <cgf@cygnus.com>
2089 * Makefile.in: Use CXX for linking and for compiling .cc files.
2090 * configure.in: Find correct c++ compiler.
2091 * configure: Regenerate.
2093 2000-11-17 DJ Delorie <dj@redhat.com>
2095 * splash.cc (load_dialog): Make message more obvious.
2098 Fri Nov 17 17:15:21 2000 Christopher Faylor <cgf@cygnus.com>
2100 * Makefile.in: Use g++ to link so that libstdc++.a gets used. This is
2101 necessary for newer compilers.
2103 Wed Nov 9 2:19:00 2000 Corinna Vinschen <vinschen@redhat.com>
2105 * desktop.cc: Include "ini.h" and "version.h".
2106 (make_passwd_group): Skip the function on 9x/ME boxes when an
2107 older version of Cygwin has been installed which doesn't
2108 support mkpasswd/mkgroup on 9x/ME.
2109 * install.cc: Move the `LOOP_PACKAGES' and `pi' macros to...
2112 Wed Nov 8 17:10:00 2000 Corinna Vinschen <vinschen@redhat.com>
2114 * desktop.cc (make_passwd_group): Don't exit when started
2115 on 9x/ME since mkpasswd/mkgroup are usable on 9x/ME now.
2117 Sun Nov 5 12:51:42 2000 Jason Tishler <jt@dothill.com>
2119 * install.cc (do_install): Add call to set_cygdrive_flags to sync
2121 * mount.cc (set_cygdrive_flags): New function.
2122 (get_cygdrive_flags): Ditto.
2123 (default_cygdrive): Ditto.
2124 (set_cygdrive_flags): Ditto.
2125 * mount.h: Add prototype for set_cygdrive_flags.
2127 2000-10-23 DJ Delorie <dj@redhat.com>
2129 * ini.h: add source actions
2130 * fromcwd.cc: check for available sources
2131 * res.rc: add checkbox bitmaps
2134 * choose.cc: add source column
2135 * download.cc: download sources if called for
2136 * install.cc: [un]install sources too
2138 2000-10-22 DJ Delorie <dj@redhat.com>
2140 * choose.cc (build_labels): Don't skip TRUST_PREV completely; only
2141 ignore it wrt full_list if there's already a version installed.
2142 (do_choose): Sort the list.
2143 (package_sort): New.
2145 2000-10-12 DJ Delorie <dj@redhat.com>
2147 * res.rc: Add more error strings.
2148 * resource.h: Ditto.
2149 * iniparse.y (new_package): re-initialize if needed.
2150 * download.cc (do_download): Keep track of errors; notify and
2152 * install.cc (do_install): Ditto.
2154 2000-10-05 DJ Delorie <dj@redhat.com>
2156 * Makefile.in: fix %.cc rule
2158 2000-10-04 DJ Delorie <dj@redhat.com>
2160 * desktop.cc: quote HOME and USER, don't . ./.profile
2162 * choose.cc (build_labels): don't include in partial list just
2163 because there's a *previous* version available.
2165 * install.cc (do_install): if installing from local directory with
2166 setup.ini and the file isn't found, look in "." also. Note errors.
2168 2000-10-02 DJ Delorie <dj@redhat.com>
2170 * ini.cc (do_ini): save setup.ini locally
2172 2000-10-02 Chris Abbey <cabbey@bresnanlink.net>
2174 * desktop.cc: quote escapes in prompt
2176 2000-10-02 Jason Tishler <jt@dothill.com>
2178 * root.cc (is_admin): New function.
2179 (read_mount_table): Check for administrative priviledges and set
2180 installation scope as appropriate.
2182 2000-09-28 DJ Delorie <dj@redhat.com>
2184 * nio-ftp.cc (ftp_line): handle continuations more robustly
2186 2000-09-14 Brian Keener <bkeener@thesoftwaresource.com>
2188 * res.rc: increased the size of the site dialog (IDD_SITE) & the
2189 corresponding list box to provide for more URL's to be listed.
2190 Modified the position of the Back, Next and Cancel buttons to
2191 correspond to the new size of the dialog.
2193 2000-09-13 DJ Delorie <dj@redhat.com>
2195 * install.cc (do_install): update disk fullness once per package
2196 to improve performance
2198 * choose.cc (create_listview): call ReleaseDC
2200 Mon Sep 11 22:40 2000 Harold L Hunt II <harold@compasstechnologies.com>
2202 * mkdir.cc: Create directories when ERROR_FILE_NOT_FOUND is
2203 returned, as it seems Samba 2.0.6+ returns this instead of
2204 ERROR_PATH_NOT_FOUND
2206 Mon Sep 11 19:35:24 2000 Christopher Faylor <cgf@cygnus.com>
2208 * site.cc (get_initial_list_idx): Don't default to saved URL if it
2211 2000-09-07 DJ Delorie <dj@redhat.com>
2213 * splash.cc: use version.h, not local decl
2214 * res.rc: add "old version" message
2217 * fromcwd.cc (canonicalize_version): make global
2218 * iniparse.y: add setup-version support, fix bug in blank line
2221 * inilex.l: add [exp] as alias for [test], add setup-version
2222 * Makefile.in (version.c): add setup-version tag
2224 * desktop.cc (do_desktop): remove 1.1 version number
2225 (do_desktop_setup): ditto
2227 * ini.cc (do_ini): zero out package list just in case we redo it.
2229 2000-09-07 Jeffrey Juliano <juliano@cs.unc.edu>
2231 * choose.cc (list_click): Check for nindexes==0; if so, return.
2233 2000-09-06 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
2235 * localdir.cc: new, local package directory selection dialog; cd
2236 into selected directory
2237 * Makefile.in (OBJS): add localdir.o
2238 * dialog.h: add prototype for do_local_dir
2239 * main.cc (WinMain): initialize local_dir to cwd; add call to
2241 * net.cc (dialog_cmd): make DO_LOCAL_DIR next dialog
2242 * source.cc (dialog_cmd): ditto
2243 * res.rc: add DO_LOCAL_DIR dialog; remove "current directory" from
2244 presented choices in IDD_SOURCE; add IDS_ERR_CHDIR error string
2245 * resource.h: defines for DO_LOCAL_DIR dialog; define IDS_ERR_CHDIR
2246 * root.cc (dialog_cmd): make DO_LOCAL_DIR previous dialog
2247 * state.h: add local_dir variable
2249 2000-09-06 Brian Keener <bkeener@thesoftwaresource.com>
2251 * desktop.cc: added logic to handle to the new dialog and to
2252 default the setting for the new checkboxes based on whether the
2253 desktop icon or start menu link already exist.
2254 (desktop_icon): correction to desktop directories for desktop icon
2255 creation. Additional logic added for Win95 which does not appear
2256 to have Common Directories so if Common selected and null uses
2258 (start_menu): Additional logic added for Win95 which does not
2259 appear to have Common Directories so if Common selected and null
2260 uses normal directory.
2261 (do_desktop_setup): moved the saving of the icon, creation of the
2262 bat file, profile, passwd, Start Menu link and desktop shortcut to
2263 this method from do_desktop. Made the creation of the desktop
2264 icon and start menu link conditional on settings of new dialog
2265 created for desktop.
2266 * install.cc (do_install): changed next from IDD_S_DESKTOP to
2268 * main.cc (WinMain): changed case IDD_S_DESKTOP to IDD_DESKTOP.
2269 * res.rc: added new resource to create a desktop dialog with 2
2270 checkboxes for creating the desktop icon and start menu link.
2271 * resource.h: changed IDD_S_DESKTOP to IDD_DESKTOP and added two
2272 new controls: IDC_ROOT_MENU and IDC_ROOT_DESKTOP for new dialog.
2273 * state.h: added root_menu and root_desktop for use in dialog.
2275 2000-08-29 DJ Delorie <dj@redhat.com>
2277 * choose.cc (scan_downloaded_files): scan for existing files, so
2278 that the user only sees new downloads.
2280 * nio-ie5.cc (NetIO_IE5): pre-check for wininet.dll, enable dial-up
2281 * site.cc (do_site): if we can't download the mirror list, go back
2282 to the net setup box to choose another transport.
2283 * autoload.c: add more functions
2284 * Makefile.in (ALL_DEP_LDLIBS): remove wininet.a
2285 * resource.h: add WININET message
2287 * net.cc (do_net): no longer default to IE5
2288 * simpsock.h (class SimpleSocket): new, simplify socket operations
2289 * simpsock.cc: ditto
2290 * nio-http.h: new, for direct http protocol
2291 * nio-http.cc: ditto
2292 * nio-ftp.h: new, for direct http protocol
2294 * netio.cc (set_url): move initialization here to handle redirections
2295 (open): add direct http/ftp
2296 * netio.h (NetIO::set_url): new
2298 * log.cc (log_save): create directory for log if needed
2300 * hash.cc, hash.h: new
2301 * Makefile: add hash.o
2302 * choose.cc: enable "uninstall" option
2303 * download.cc: invert action test to accomodate uninstalling
2304 * ini.h: add ACTION_UNINSTALL
2305 * install.cc: add uninstall functionality
2306 * res.rc: make install tag changeable
2307 * resource.h: add uninstall resources
2309 * res.rc: update mirror list URL
2311 2000-08-24 DJ Delorie <dj@redhat.com>
2313 * log.cc, log.h: new files
2314 * Makefile.in (OBJS): add log.o
2315 * tar.cc: use exit_setup instead of exit
2316 * dialog.cc (fatal): use exit_setup instead of ExitProcess
2317 * msg.cc (fatal): ditto
2318 * install.cc (dialog_cmd): ditto
2319 * ini.cc (do_ini): ditto
2320 * main.cc (main): add logging
2321 * source.cc (do_source): ditto
2322 * root.cc (do_source): ditto
2323 * site.cc (do_site): ditto
2324 * other.cc (do_other): ditto
2325 * net.cc (do_net): ditto
2326 * choose.cc (do_choose): ditto
2327 * download.cc (do_download): ditto
2328 * install.cc (do_install): ditto
2329 * msg.cc (fatal): ditto
2331 * res.rc: mark password boxes as *being* password boxes.
2333 * fromcwd.cc (canonicalize_version): use multiple buffers so that multiple
2334 calls won't use the same buffer.
2335 * choose.cc (create_listview): don't default to full list if no changes
2336 (base): return computed value, not temporary :-(
2337 (do_choose): don't use installed.db if we're only downloading.
2339 2000-08-23 DJ Delorie <dj@redhat.com>
2341 * nio-ie5.cc (NetIO_IE5): Fix authentication logic
2342 * nio-ie5.h (flush_io): new
2343 * netio.cc (load_dialog): note when we're initializing the dialog
2344 box, and ignore changes to the edit fields then.
2346 2000-08-21 DJ Delorie <dj@redhat.com>
2350 * fromcwd.cc (found_file): don't remember the canonicalized version
2352 * choose.cc (paint): print "nothing to do" message when list is empty.
2353 (build_labels): Use version "0.0" if no version is available.
2354 (create_listview): default to full list if nothing to install/update.
2355 (base): new, returns basename of file
2356 (read_installed_db): compare base names, not full paths
2358 2000-08-11 DJ Delorie <dj@redhat.com>
2360 * choose.cc: add new chooser dialog
2361 * fromcwd.cc: use IDD_CHOOSE
2362 * ini.cc: use IDD_CHOOSE
2363 * main.cc: use IDD_CHOOSE
2364 * ini.h: cosmetic changes
2365 * res.rc: add choose dialog, bitmaps
2366 * choose-spin.bmp: new
2367 * choose-rtarrow.bmp: new
2368 * resource.h: add choose dialog controls
2370 * mount.cc: remove debug statement
2372 2000-08-08 DJ Delorie <dj@redhat.com>
2374 * Makefile.in (version.c): make version checking more robust
2375 * splash.cc (load_dialog): handle case where there's no version
2377 2000-08-07 DJ Delorie <dj@redhat.com>
2379 * (all): add cvsid tags
2380 * Makefile.in: generate version.c from ChangeLog, add splash.o
2382 * res.rc: add splash screen
2384 2000-08-02 DJ Delorie <dj@redhat.com>
2386 * net.cc: remove proxy password code
2387 * res.rc: remove proxy user/pass from net, add auth dialogs
2388 * netio.cc,h: add sys/proxy auth methods
2389 * nio-ie5: use them, check for http status codes
2390 * state.h: add system authorization
2392 * concat.cc (concat): canonicalize x:// to x:/ (exception to ://
2395 2000-08-02 Norman Vine <nhv@yahoo,com>
2397 * msg.cc (mbox): added MB_TOPMOST to MessageBox type flags
2399 2000-08-01 DJ Delorie <dj@redhat.com>
2401 * postinstall.cc (each): don't rename files we ignore
2402 (do_postinstall): set CYGWINROOT to root_dir, chdir there
2404 * desktop.cc: have /etc/profile call ~/.profile and ~/.bashrc
2406 2000-07-31 DJ Delorie <dj@redhat.com>
2408 * desktop.cc: reverse PATH so /usr/bin precedes /bin
2410 2000-07-18 DJ Delorie <dj@redhat.com>
2412 * autoload.c: new, autoload dlls that might not be available.
2413 * Makefile.in (OBJS): add autoload.o
2415 * res.rc: rewrite root options (text/binary, system/user) to be
2418 * site.cc (get_site_list): trim displayed URL, sort by domain
2420 * net.cc (do_net): make IE5 default to checked, for now
2422 * choose.cc (do_choose): sort packages correctly
2423 * ini.cc (do_ini): handle parse errors more gracefully
2425 (fprintf): line buffer output
2426 (do_ini): if we can't load setup.ini, go back to the site list.
2427 * ini.h: add "unknown" trust level
2428 * inilex.l: absorb unknown trust levels and key/value pairs,
2429 add line number logic
2430 * iniparse.y: handle parse errors more gracefully.
2431 * install.cc: skip packages with no valid install entry
2433 2000-07-17 DJ Delorie <dj@cygnus.com>
2435 * coding standards fixups, many files
2436 * mkdir.cc: warn about deletions *before* deleting them
2438 2000-07-17 Jeff Juliano <juliano@cs.unc.edu>
2440 * res.rc (IDD_OTHER_URL): reorder to give default focus to entry
2442 * other.cc (dialog_cmd): save download site URL
2443 * site.cc (get_root_dir): new
2444 (save_mirror_site): new
2445 (dialog_cmd): save download site URL
2446 (get_site_list): make list big enough to add prev site
2447 (get_initial_list_idx): new, read last-used URL from file and
2448 append it to site_list
2449 (do_site): call get_initial_list_idx
2451 * concat.cc (concat): avoid segfault when first parm is null
2453 2000-07-13 DJ Delorie <dj@cygnus.com>
2455 * postinstall.cc: new
2456 * Makefile.in: add postinstall.o
2457 * concat.h: add backslash ()
2459 * desktop.cc (etc_profile): don't do postinstall
2460 (backslash): moved to concat.cc
2462 (make_postinstall_script): run directly
2463 (do_desktop): chain to do_postinstall
2464 * dialog.h: add exit_msg, do_postinstall
2465 * download.cc: use exit_msg
2467 * main.cc: add postinstall, exit_msg
2468 * resource.h: add postinstall
2469 * README: add more to-do items
2471 2000-07-12 DJ Delorie <dj@cygnus.com>
2473 * desktop.cc: add /etc/postinstall/ support
2474 * install.cc: add more "standard" directories
2476 2000-07-11 DJ Delorie <dj@cygnus.com>
2478 * desktop.cc: create /etc/profile
2479 * desktop.cc: fix include syntax
2480 * Makefile.in: add auto-dependencies
2481 * root.cc: support system vs user
2489 * desktop.cc: make sure we use backslashes, not slashes.
2490 * desktop.cc: don't set PATH in cygwin.bat, create /etc/passwd
2491 * geturl.cc: change math for percentage to avoid overflow
2493 * download.cc: post "download complete" message.
2494 * root.cc: pre-fill in defaults if needed, don't start
2495 browse at root_dir unless it's set.
2496 * desktop.cc: quote $PATH in case it has spaces in it
2498 2000-07-10 DJ Delorie <dj@cygnus.com>
2500 * Makefile.in: add desktop.o and mklink2.o
2501 * dialog.h: add do_desktop
2502 * install.cc: create standard directories, call do_desktop
2503 * res.rc: add cygwin.ico as a file also
2504 * desktop.cc: new, do shortcuts, batch files, and icons
2505 * mklink2.c: new, for COM
2506 * README: update to-do list
2508 2000-07-10 DJ Delorie <dj@cygnus.com>
2510 * ini.cc (do_ini): don't worry about timestamps if we're not
2511 actually installing.
2513 2000-07-09 DJ Delorie <dj@cygnus.com>
2515 * Makefile.in: add -I$(srcdir) for ini.h
2517 2000-07-06 DJ Delorie <dj@cygnus.com>
2519 * Replace everything with a new GUI version
2520 * zlib/gzio.c: add gzctell() for progress displays
2522 2000-06-22 DJ Delorie <dj@cygnus.com>
2524 * setup.c (tarx): re-add call to write_pkg()
2526 2000-06-07 DJ Delorie <dj@cygnus.com>
2528 * cygcalls.c: new, call cygwin1.dll functions directly
2529 * cygcalls.h: header for same
2530 * Makefile.in: add cygcalls.[ch], remove mount/cygpath/umount
2531 exes, fix cinstall.rc dependencies.
2532 * path.c: remove unneeded code
2533 * setup.c: use cygcalls instead of xcreate_process.
2534 uncompress embedded files with zlib
2535 add "-d" for "download only"
2537 postpone mount changes until very end
2538 add download progress indicators
2539 pack multi-column listings more
2540 auto-delete temp files
2541 customize banner message according to options
2542 prompt user for text/binary mounts
2543 add warnings about empty setup directory, root installs, etc
2545 2000-05-24 DJ Delorie <dj@cygnus.com>
2547 * tar.c: New file; built-in tar using zlib.
2548 * tar.h: New file; header for same.
2549 * ctar.c: New file; test program for same.
2550 * Makefile.in: add built-in tar, remove tar.exe and gzip.exe
2551 * path.c (pathcat): convert slashes and canonicalize, instead of aborting
2552 * setup.c (tarx): add support for built-in tar
2553 (main): accept unix-style slashes, check root dir for drive letters,
2554 warn about installing in /, make sure cwd is empty for internet installs,
2555 defer mounts to end of install, support built-in tar.
2557 Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
2559 Fix compiler warnings throughout.
2560 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
2562 * setup.c: Make 'root' global.
2563 (istargz): Return pointer to "stem" of matched .tar.gz file.
2564 (tarx): Special case cygwin-20000301 to == cygwin-1.1.0.tar.gz. Remove
2565 bogus check_for_installed check.
2566 (recurse_dirs): Add preliminary support for .bat file execution.
2567 (create_uninstall): Eliminate unneeded parameter.
2568 (do_start_menu): Ditto.
2570 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
2571 scanning for the version number. Eliminate unneeded argument to
2573 (getdownloadsource): Add 'name' to list of names rather than url.
2574 (main): Eliminate unneeded argument in get_pkg_stuff. Eliminate
2575 unneeded argument in mkmount and do_start_menu.
2577 2000-05-18 DJ Delorie <dj@cygnus.com>
2579 * setup.c (optionprompt): allow multi-column, clean up message
2580 about more options, be more robust about user input.
2581 (getdownloadsource): make the mirror URL a macro.
2582 (main): do mounts after done prompting user.
2584 Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
2586 * setup.c (cleanup): Inverse order of deletion stands a better chance
2587 of deleting cygpath.exe. Still seems to suffer from occasional races,
2589 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
2591 (output_file): Defend against an unlikely handle leak.
2592 (main): Don't set up signal handling until we have something special to
2595 Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
2597 * path.c (kill_cygpath): Delete function.
2598 (exit_cygpath): Make more defensive so that it can be called at any
2600 (cygpath_pipe): Don't set up signal here. Do it in main().
2601 * setup.c (istargz): New function.
2602 (recurse_dirs): Look for *.gz pattern rather than *tar.gz since *tar.gz
2603 inexplicably fails on samba mounted partitions. Use istargz to match
2605 (processdirlisting) Use istargz to match tar.gz tail.
2606 (cleanup): Renamed from filedel.
2607 (cleanup_on_signal): New function. Called on CTRL-C.
2608 (main): Record handle of main thread so that it can be suspended when
2609 CTRL-C occurs. Set up cleanup_on_signal signal handler.
2611 Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
2613 * setup.c (do_start_menu): Don't concatenate paths to already built
2616 Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
2618 * path.c (exit_cygpath): Wait for subprocess to exit before returning.
2619 (cygpath_pipe): Don't call exit_cygpath. Let main atexit routine do
2621 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
2623 * setup.c (filedel): Call exit_cygpath here so that we can be assured
2624 that cygpath subprocess has died. This allows us to delete cygpath.exe
2626 (optionprompt): Initialize response to -1 so that second screen of
2627 mirrors will appear.
2628 (get_pkg_stuff): Don't attempt to use HKCLU. Pass root to init_pkgs.
2629 * setup.h: Reflect init_pkgs prototype change.
2631 Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
2633 * pkg.c (init_pkgs): Accept an argument to control what root registry
2635 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
2636 * setup.h: Reflect init_pkgs prototype change.
2638 Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
2640 * error.c (winerror): Respond to gcc warning.
2641 * path.c (cygpath_pipe): Ditto.
2642 * setup.c (filedel): Call sa_cleanup on deleteme.
2643 (create_shortcut): Coerce argument to eliminate compiler warning.
2644 (tarx): Use installed version of cygwin1.dll, overriding tar file name.
2645 (refmatches): New function. Tests if ref is contained in a list of
2646 packages to install.
2647 (filematches): New function. Tests if filename matches one of a list
2648 of packages to install.
2649 (recurse_dirs): Accept list of packages to install. Generalize tar.gz
2650 test to accomodate _tar.gz.
2651 (prompt): Ensure that stdout is flushed prior to asking for input.
2652 (findhref): Initialize variables to quiet a compiler warning.
2653 (processdirlisting): Accept list of packages to install. Special case
2654 cygwin tar file version number.
2655 (downloaddir): Accept list of packages to install.
2656 (downloadfrom): Ditto.
2657 (create_uninstall): Eliminate unneeded variables. Quote arguments to
2659 (do_start_menu): Don't create uninstall bat file if updating or user
2660 specified a list of packages.
2661 (mkmount): Eliminate unneeded variables.
2662 (get_pkg_stuff): New function. Checks for previous unversioned
2664 (main): Accept -u and -f options and package names on the command line.
2665 Use get_pkg_stuff to initialize package information. Umount /etc.
2666 Call recurse_dirs and downloadfrom with list of package to install.
2667 Ensure that all /usr/local directories are created. Output
2668 installation time to setup.log.
2669 * setup.h: Add some prototypes.
2670 * xsystem.c (xcreate_process): Eliminate unneeded variable.
2672 Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
2674 * setup.c (optionprompt): Don't overlap display of already seen options
2676 (geturl): Print name of site which we're connecting to rather than "ftp
2678 (processdirlisting): Avoid URLs that contain a /. or ./ . Is this
2679 test too simplistic?
2680 (do_start_menu): Use pathcat to build path to <root>\bin to avoid
2681 problems when user chooses x:\ as their root.
2682 (main): For now, default to "non-update" mode. Allow -u option to
2685 Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
2688 * setup.c (tarx): Skip already installed or older packages. Report
2689 when a package has been updated.
2690 (processdirlisting): Skip already installed or older packages.
2691 (main): Detect -f option for forced installation. Initialize pkg stuff
2693 * setup.h: Add pkg definitions.
2695 Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
2697 * setup.c (findhref): Return NULL on empty string. Eat any trailing
2699 (processdirlisting): Attempt to limit recursively processing the same
2702 Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
2704 * setup.c (filedel): New function.
2705 (output_file): Keep track of files extracted from setup.exe for
2706 subsequent deletion.
2707 (tarx): Close process handle of child tar process or suffer handle
2709 (getdownloadsource): Close mirror file so that it can be unlinked.
2710 (processdirlisting): Return total number of files extracted.
2711 (main): Initialize array of files to delete. Ensure that files are
2712 closed on exit. Make the directory that setup.exe is started from ==
2713 the directory where temporary files are placed. Issue an error if no
2714 files were found to download.
2715 * xsystem.c (xcreate_process): Close the thread handle. Close the
2716 process handle if we waited for it to exit.
2718 Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
2720 * setup.c (main): Change version number output.
2722 Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
2724 * setup.c (tarx): Use full path name to tar executable.
2725 (main): Build full pathname to tar executable. Create /usr/local/etc
2728 Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
2730 * setup.c (findhref): Change method for scanning for href= to choose
2731 the last one on the line. This is still not foolproof and probably
2732 will need to be changed eventually. Don't abort if no "size" field is
2734 (processdirlisting): Fix boolean algebra.
2736 Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
2738 * main.c (tarx): Add some code for future task of unmounting
2739 directories encountered in tar file.
2741 Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
2743 * setup.c (findhref): Decode file size, when appropriate.
2744 (needfile): New function. Returns 1 when file should be
2746 (processdirlisting): Always download if file size does not
2747 match. Prompt when download fails for some reason.
2748 (getdownloadsource): Accomodate findhref argument changes.
2750 Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
2752 Throughout, use global session handle rather than reinitializing for
2753 each connect. Don't pass session as an argument to setup.c functions.
2754 * setup.c (geturl): Only issue "Connecting to.." message when using
2755 http or first time for ftp since subsequent connections will be fast.
2756 (processdirlisting): Allocate space for "N" when user has specified
2757 "N"ever option so that it can be subsequently freed.
2758 (main): Abort if we can't get the list of mirrors.
2760 Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
2762 * setup.c (main): Umount /bin and /lib.
2764 Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
2766 * setup.c (main): Create an empty /var/run/utmp.
2768 Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
2770 * Makefile.in: Add umount to list of files to include in setup.exe.
2771 * setup.c (xumount): New function for unmounting directories.
2772 (main): Unmount /usr.
2773 (mkmount): Unmount "unix directory" before trying to figure out where
2774 to create the directory.
2776 Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
2778 * setup.c (mkmount): Use xcreate_process to start mount process,
2780 (main): Don't do buffering on stdout or prompts won't be displayed
2781 correctly if running in a cygwin shell with CYGWIN=tty.
2783 Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
2785 * setup.c (main): Remove the CYGWIN environment variable before
2786 starting any cygwin programs.
2788 Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
2790 * setup.c (geturl): Use alternative method for finding filename part of
2792 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
2793 (downloaddir): Unlink file containing dir listing.
2794 (downloadfrom): Ditto.
2796 Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
2798 * setup.c (main): Disallow running setup.exe from the "root".
2800 Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
2802 Use "warning" function, where appropriate, to output warnings.
2803 * setup.c (warning): New function -- outputs warning to console and log
2805 (tarx): Fix index used to reset file protection.
2806 (main): Open the log file earlier so that more stuff can be sent to it.
2808 Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
2810 * setup.c (processdirlisting): Make "N" option a little less aggressive.
2812 Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
2814 * setup.c (tarx): Wait to after tar has completed to reset protections
2815 or suffer races with tar process.
2817 Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
2819 * Makefile.in: Eliminate duplicate -nostdinc from CFLAGS.
2820 * setup.c (create_uninstall): Create the uninstall .bat file in the
2821 "root" so that we can remove the /bin directory. Add bin\cygwin.bat to
2822 list of files to be deleted. Fix directory detection for determining
2823 when to use 'rmdir'.
2824 (do_start_menu): Add /usr/local/bin to the path.
2825 (main): Add slop to files.array allocation so that we don't have to
2826 worry about reallocating the array when it grows too large when doing
2827 some trivial "pushes". Add /tmp and /usr/local/{bin,lib} to list of
2830 Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
2832 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
2835 Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
2837 * path.c (kill_cygpath): New cleanup function.
2838 (exit_cygpath): New cleanup function.
2839 (cygpath_pipe): New function. Sets up cygpath in the background for
2840 translating filenames.
2841 (pathcvt): Use background cygpath for file translation.
2842 * setup.c (tarx): New function. Called to extract tar files, capture
2843 logging output, and translate it to Windows format.
2844 (recurse_dirs): Use 'tarx' function to extract files.
2845 (create_uninstall): Use file list built up by tarx rather than reading
2847 (mkmount): Add ability to mount root.
2848 (main): Track elapsed install time. Mount root.
2849 * starry.h: Add index field to strarry for tracking of tarx's usage of
2851 * xsystem.c (xcreate_process): Return proces handle when not waiting.
2853 Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
2856 (pathfp): New function. Preliminary work for new -f cygpath
2858 * Makefile.in: Add new file.
2859 (pathcvt): Move to new file.
2863 * setup.c (processdirlisting): Always open file in text mode.
2864 (create_uninstall): Ditto.
2865 (getdownloadsource): Ditto.
2868 Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
2870 * xsystem.c: New file.
2871 * Makefile.in: Accomodate new file.
2872 * setup.c (xsystem): Move to new file.
2873 (recurse_dirs): Accept handle to output log file. Don't use ">"
2874 redirection to trap tar output. Use supplied handle instead.
2875 (create_uninstall): Accept FILE pointer to opened log file. Don't
2876 unlink log file here.
2877 (do_start_menu): Accept FILE pointer to pass to create_uninstall.
2878 (main): Open log file here and pass it to various functions. Unlink
2881 Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
2883 Change occurrences of .usr.bin to .bin throughout.
2884 * setup.c (geturl): Increase number of retries to 20. Let user know
2885 what's going on during long connects.
2886 (processdirlisting): Accept "A"lways and "N"ever as update options.
2887 (create_uninstall): Load cygwin1.dll from the current directory rather
2889 (main): Add some expository text.
2891 Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
2893 * Makefile.in: Change method for compressing cygwin1.dll to avoid
2894 creating a cygwin1.dll in the current directory. Ensure the addition
2895 of -nostdinc to MINGW_CFLAGS.
2897 Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
2899 * Makefile.in: Augment clean target.
2901 Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
2903 * README: Added info about non-working mingw implementation
2904 * gzip.exe.gz: Replace with a version from the same build as the other
2906 * tar.exe.gz: Replace with a version from the same build as the other
2908 * mount.exe.gz: Add to repository until, mingw can build setup.
2909 * cygpath.exe.gz: ditto
2910 * cygwin1.dll.gz: ditto
2911 * setup.c: Overwrite /bin and /lib mounts. Generate working shortcut
2912 for Win9x. Display only a screenfull of options at a time. Call all
2913 tools with an absolute path.
2914 * setup.dsp: Restore the carriage returns, MS Developer Studio needs
2919 Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
2921 * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab
2922 cygwin1.dll from ../cygwin subdirectory.
2923 * gzip.exe.gz: Update.
2924 * tar.exe.gz: Update.
2926 Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
2928 * Makefile.in: Use ZLIB variable as a target.
2930 Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
2932 * Makefile.in: Eliminate traces of cygwinisms. Don't link with
2933 libmsvcrt.a. It's unneeded. Build .rc file on the fly from various
2935 * configure.in: Locate correct objcopy.
2936 * configure: Regenerate.
2938 Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
2940 * Makefile.in: New file.
2941 * configure.in: New file.
2942 * configure: New file.
2943 * zlib/Makefile.am: New file.
2944 * zlib/configure.in: New file.
2945 * zlib/aclocal.m4: New file.
2946 * zlib/acinclude.m4: New file.
2947 * zlib/configure: Regenerate from configure.in.
2948 * zlib/Makefile.in: Regenerate from Makefile.am