]> cygwin.com Git - cygwin-apps/setup.git/blame - ChangeLog
2002-01-04 Jan Nieuwenhuizen <janneke@gnu.org>
[cygwin-apps/setup.git] / ChangeLog
CommitLineData
8e9aa511
RC
12002-01-04 Jan Nieuwenhuizen <janneke@gnu.org>
2
3 * Makefile.in (realclean): more clean.
4 (OBJS): Add script.o.
5 * postinstall.cc (run_script_in_etc_postinstall): New function.
6 (do_postinstall): Split off new funtion init_run_script ().
7 (init_run_script):
8 (run):
9 (run_script): Move to script.cc. Replace some deprecated remove
10 and move calls.
11 * script.h:
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.
17
b7301c43
RC
182001-01-04 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
19
20 * cistring.cc: Run d2u.
21 * cistring.h: Run d2u.
22
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.
27 * desktop.h: Run d2u.
28
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.
34
35 * propsheet.h: Run indent, d2u.
36 * proppage.h: Run indent, d2u.
37
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.
44
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.
52
53 * site.cc: Run d2u.
54 (SitePage::OnBack): Remove NEXT() macro invocation.
55 (SitePage::OnActivate): New member function.
56 (load_dialog): Remove. Functionality subsumed into
57 SitePage::OnActivate.
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.
64 (dialog_cmd): Remove.
65 (do_download_site_info_thread): Remove calls to NEXT() macro.
66 (SitePage::Create): Call the single-param PropertyPage::Create
67 overload.
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.
75 * site.h: Run d2u.
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
80 download site list.
81
82 * splash.cc: Run d2u.
83 (SplashPage::OnInit): Set the font for the title.
84 * splash.h: Run d2u.
85
86 * threebar.cc: Run d2u.
87 * threebar.h: Run d2u.
88
89 * window.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
94 members.
95 * window.cc: Run d2u.
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.
100
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
109 available.
110
111 * net.h: Run d2u.
112 (NetPage::OnMessageCmd): New member function declaration.
113 (NetPage::CheckIfEnableNext): New member function declaration.
114 * net.cc: Run d2u.
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.
125
126 * Makefile.in (OBJS): Remove other.o.
127 * other.cc: Remove file.
128
df62e023
RC
1292002-01-01 Robert Collins <rbtcollins@hotmail.com>
130
131 * README: Update TODO's.
132 * choose.cc (set_existence): Delete non installed packages with no
133 mirrors.
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.
140 (dialog_cmd): Ditto.
141 (do_choose): 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.
150
cec57ee1
CF
1512001-12-28 Christopher Faylor <cgf@redhat.com>
152
e98c531e 153 * Makefile.in (iniparse.o): Accommodate newer bisons.
cec57ee1 154
ab57ceaa
RC
1552001-12-23 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
156
157 * window.h (Window): New file, new class.
158 * window.cc (Window): New file, new class.
159
160 * threebar.h (ThreeBarProgressPage): New file, new class.
161 * threebar.cc (ThreeBarProgressPage): New file, new class.
162
163 * splash.h (SplashPage): New file, new class.
164 * splash.cc (SplashPage): Replace file with implementation of new
165 class.
166
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().
174
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
185 by SitePage members.
186 (dialog_proc): Remove, now handled by SitePage::OnInit and base class
187 functionality.
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.
191
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.
196 (do_root): 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
199 here from do_root().
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.
204
205 * propsheet.h (PropSheet): New file, new class.
206 * propsheet.cc (PropSheet): New file, new class.
207
208 * proppage.h (PropertyPage): New file, new class.
209 * proppage.cc (PropertyPage): New file, new class.
210
211 * postinstall.cc (do_postinstall): Add owner parameter.
212
213 * other.cc (do_other): Add owner parameter.
214
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
217 get_ftp_auth().
218 * nio-http.cc (retry_get): Pass NULL parent param to get_auth(),
219 get_proxy_auth(),
220 and get_ftp_auth().
221 * nio-ie5.cc (NetIO::_url): Pass NULL parent param to note(),
222 get_auth(), get_proxy_auth().
223
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,
226 NetIO::get_ftp_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().
230
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.
240 (do_net): Remove.
241 (dialog_proc): Remove.
242
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.
247
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
251 headers.
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.
261
262 * log.cc (log_save): Pass NULL parent to fatal().
263 (exit_setup): Pass NULL parent to note().
264
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
272 LocalDirPage.
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.
278
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
295 ThreeBarProgressPage
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
299 directly.
300 Remove dismiss_url_status_dialog() call, no longer necessary. Remove
301 ShowWindow(<hide>) call, also unnecessary now. Pass owner handle to
302 fatal().
303 (do_install_reflector): New function.
304 (do_install): New function.
305
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.
318
319 * geturl.h (get_url_to_membuf, get_url_to_string, get_url_to_file): Add
320 owner param.
321 * geturl.cc (gw_dialog, gw_url, gw_rate, gw_progress, gw_pprogress,
322 gw_iprogress)
323 (gw_progress_text, gw_pprogress_text, gw_iprogress_text, init_event):
324 Removed.
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
330 SetWindowText()s
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
337 place.
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.
343
344 * fromcwd.cc (do_fromcwd): Add owner param. Initialize found_ini to
345 false, was true.
346
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().
357
358 * dialog.h (D(x)): Add owner param.
359
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
367 resp.
368 (DesktopSetupPage::Create, DesktopSetupPage::OnInit)
369 (DesktopSetupPage::OnBack, DesktopSetupPage::OnFinish): Implementation
370 of DesktopSetupPage.
371
372 * cistring.h: New file, new class.
373 * cistring.cc: New file, new class.
374
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
379 fatal().
380 (Chooser): New class implementation.
381
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
386 throughout.
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.
392
393 * Makefile.in (OBJS): Add cistring.o, proppage.o, propsheet.o,
394 threebar.o, and window.o.
395
cc41a057
RC
3962001-12-21 Robert Collins <rbtcollins@hotmail.com>
397
398 * choose.cc (listview_proc): Update the scrollbar when the headers are dragged.
399 (pick_pkg_line::paint): Clip columns to prevent overlap.
400
cbfc4215
RC
4012001-12-20 Robert Collins <rbtcollins@hotmail.com>
402
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
411 package list.
412 Use new set_action.
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.
478 Add packages, task.
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.
490
cd8e5750
RC
4912001-12-06 Robert Collins <rbtcollins@hotmail.com>
492
493 * README: Wishlist updates.
494
5519d243
RC
4952001-12-04 Robert Collins <rbtcollins@hotmail.com>
496
497 * package_db.cc (getnextpackage): Don't overrun the array.
498
de6a1a64
RC
4992001-12-04 Robert Collins <rbtcollins@hotmail.com>
500
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 -
528 thats not needed.
529 Remove obsolete other_url reference.
530 (dialog_proc): Use all_site_list instead of site_list.
531 (site_sort): Remove.
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.
541 (other_url): Remove.
542 (MIRROR_SITE): Remove.
543 * version.cc: New file, for version-handling and related functions.
544
341988b9
RC
5452001-12-02 Robert Collins <rbtcollins@hotmail.com>
546
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.
552 (paint): Ditto.
553 (_view::init_headers): Ditto.
554 (_view::insert_pkg): Ditto.
555 (set_view_mode): Ditto.
556 (scan2): Ditto.
557 (do_choose): 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.
576 (_Info): Remove.
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
598 being modified.
599 * nio-file.h: Ditto.
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
611 key globally.
612
071c1c54
RC
6132001-12-01 Robert Collins <rbtcollins@hotmail.com>
614
615 * package_source.cc (packagesource::set_canonical): Filename was out by one.
616
4fe323f9
RC
6172001-11-30 Robert Collins <rbtcollins@hotmail.com>
618
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
629 available.
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.
639 (do_choose): 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.
651
7d66d192
RC
6522001-11-30 Robert Collins <rbtcollins@hotmail.com>
653
654 * package_db.cc (packagedb::flush): Write a canonical version for all packages
655 irrespective of the media they were installed from.
656
bb849dbd
RC
6572001-11-29 Robert Collins <rbtcollins@hotmail.com>
658
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.
679 (dialog_cmd): Ditto.
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
706 info.
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.
714 (Package): 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.
747 (site): New 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.
759 * rfc1738.h: Ditto.
760
90d14922
RC
7612001-11-26 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
762
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.
766
7c7034e8
RC
7672001-11-23 Robert Collins <rbtcollins@hotmail.com>
768
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.
780
fa0c0d10
RC
7812001-11-23 Robert Collins <rbtcollins@hotmail.com>
782
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.
795 (Package): Ditto.
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.
826
7b606ae5
RC
8272001-11-21 Robert Collins <rbtcollins@hotmail.com>
828
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.
843 (Category): Remove.
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.
848 (category): Remove.
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.
855
d0fa1c4e
RC
8562001-11-21 Robert Collins <rbtcollins@hotmail.com>
857
858 * choose.h: Don't include ini.h
859 * ini.h: Allow pure c++ in the header file.
860
24cbae7f
RC
8612001-11-21 Robert Collins <rbtcollins@hotmail.com>
862
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.
865
7939f6d1
RC
8662001-11-21 Robert Collins <rbtcollins@hotmail.com>
867
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.
880
33bc0053
RC
8812001-11-21 Robert Collins <rbtcollins@hotmail.com>
882
883 * REAME: Updates to wishlist.
884
12ccadc0
RC
8852001-11-16 Robert Collins <rbtcollins@hotmail.com>
886
887 * README: Updated and added my list of wishlist and todo items.
888
ca9506cc
RC
8892001-11-14 Robert Collins <rbtcollins@hotmail.com>
890
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.
905 (GUBuf): Remove.
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().
915
2db33f10
RC
9162001-11-13 Brian Keener <bkeener@thesoftwaresource.com>
917
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
923 last-cache.
924 * res.rc (IDD_CHOOSE_DIALOG): Add hotkey to View button.
925 * Source.cc (dialog_cmd): Skip IDD_ROOT if select Download from
926 Internet.
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.
929
03a6c5b1
RC
9302001-11-13 Robert Collins <rbtcollins@hotmail.com>
931
932 * choose.cc (find_tar_ext): Only match at the end of the string.
933 (getpkgbyname): Prevent NULL pointer dereference.
934
b24c88b3
RC
9352001-11-13 Robert Collins <rbtcollins@hotmail.com>
936
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.
941 (inilex.o): Ditto.
942 (iniparse.o): Ditto.
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.
950 Run indent.
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.
994 Return a value.
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.
1001 Use io_streams.
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).
1009 Use io_streams.
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).
1016 (exists): Remove.
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.
1028 Use io_streams.
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.
1098 Use io_streams.
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.
1116 * tar.h: Remove.
1117 * tar.cc: Remove.
1118
398dd7b2
CF
11192001-11-12 Christopher Faylor <cgf@redhat.com>
1120
1121 * desktop.cc (start_menu): Change start menu name to "Cygwin".
1122 (check_startmenu): Ditto.
1123
c29ee141
CF
11242001-11-11 Christopher Faylor <cgf@redhat.com>
1125
1126 * choose.cc (parse_filename): Finish reorganization by correctly
1127 decrementing p in memmove.
1128
3a8276de
CF
11292001-11-11 Christopher Faylor <cgf@redhat.com>
1130
1131 * choose.cc (parse_filename): Reorganize code to work around gcc
1132 optimization problem.
1133
6eea52fb
RC
11342001-11-09 Gareth Pearce <tilps@hotmail.com>
1135
1136 * choose.cc (set_action): Allow skip as an option for installed
1137 packages that have version number not listed in setup.ini.
1138
cf99b153
RC
11392001-11-10 Robert Collins <rbtcollins@hotmail.com>
1140
1141 * choose.cc (set_cation): Backout last change.
1142 (choose_caption): Ditto.
1143
55e204f6
RC
11442001-11-10 Robert Collins <rbtcollins@hotmail.com>
1145
1146 * ini.h (actions): Remove - transferred to choose.h.
1147 (views): Ditto.
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
1153 setup.ini.
1154 (choose_caption): Ditto.
1155 * iniparse.y: Rearrange header order to handle new ini.h.
1156
11572001-11-10 Robert Collins <rbtcollins@hotmail.com>
1158
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
1173 end of function).
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).
1177 (_view): Ditto.
1178
67a55ad9
RC
11792001-11-08 Pavel Tsekov <ptsekov@syntrex.com>
1180
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().
1203
5898e300
RC
12042001-11-09 Robert Collins <rbtcollins@hotmail.com>
1205
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,
1211 printf and write.
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).
1215
8e58f8fd
RC
12162001-11-07 Charles Wilson <cwilson@ece.gatech.edu>
1217
1218 * geturl.cc (get_url_to_string): clean up memory leak
1219 (get_url_to_file): ditto
1220
4b4002ab
RC
12212001-11-06 Robert Collins <rbtcollins@hotmail.com>
1222
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.
1225
94525fd9
RC
12262001-11-06 Pavel Tsekov <ptsekov@syntrex.com>
1227
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.
1231
12322001-11-06 Robert Collins <rbtcollins@hotmail.com>
ca83c665
RC
1233
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.
1238
ce1f9ec2
RC
12392001-11-03 Robert Collins <rbtcollins@hotmail.com>
1240
1241 * res.rc (IDD_CHOOSE): Move the view caption to the right hand side.
1242
89d82ec7
RC
12432001-11-02 Robert Collins <rbtcollins@hotmail.com>
1244
1245 * res.rc (IDD_CHOOSE): Tweak for use on a 640x480 screen.
1246
c8fea72a
RC
12472001-11-02 Robert Collins <rbtcollins@hotmail.com>
1248
8114d309
RC
1249 * choose.cc (set_action): Correctly allow skip for any uninstalled package.
1250
12512001-11-02 Robert Collins <rbtcollins@hotmail.com>
1252
1253 * choose.cc (default_trust): Change the "Required" forced install category to
1254 "Base".
c8fea72a 1255
f557695e
RC
12562001-11-02 Robert Collins <rbtcollins@hotmail.com>
1257
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.
1261
9a60dafc
CF
12622001-11-01 Christopher Faylor <cgf@redhat.com>
1263
f557695e
RC
1264 * Makefile.in (mingw_getopt.o): Fix typo in non-verbose compilation.
1265
12662001-11-02 Robert Collins <rbtcollins@hotmail.com>
1267
1268 * choose.cc (_view::init_headers): Resync with the paint logic.
9a60dafc 1269
878faffd
RC
12702001-11-02 Robert Collins <rbtcollins@hotmail.com>
1271
1272 * choose.cc (add_required): Allow SKIP and SRC_ONLY for currently installed
1273 packages.
1274
05bfdf26
RC
12752001-11-02 Robert Collins <rbtcollins@hotmail.com>
1276
1277 * choose.cc (default_trust): Autoset currently installed packages per the user's
1278 selection of prev/curr/exp.
1279
0b9af00c
RC
12802001-11-02 Robert Collins <rbtcollins@hotmail.com>
1281
1282 * splash.cc (dialog_proc): Return TRUE as specified in the WIN32 API.
1283
7cefe128
RC
12842001-11-02 Pavel Tsekov <ptsekov@syntrex.com>
1285
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.
1300
42a99ed1
RC
13012001-11-02 Robert Collins <rbtcollins@hotmail.com>
1302
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.
1307
45c2d7d3
RC
13082001-11-02 Robert Collins <rbtcollins@hotmail.com>
1309
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.
1319
2399c54d
RC
13202001-11-01 Robert Collins <rbtcollins@hotmail.com>
1321
1322 * choose.cc(list_vscroll): Return 0 as required by win32.
1323 (list_hscroll): Ditto.
1324 (list_click): Ditto.
1325
8e4402a9
RC
13262001-11-01 Robert Collins <rbtcollins@hotmail.com>
1327
1328 * argv.cc: Remove.
1329 * argv.h: Remove.
1330 * main.cc(WinMain): Use __argv to retrieve command line parameters.
1331 * Makefile,in: Remove argv.o.
1332
c168185f
RC
13332001-11-01 Matt Hargett <matt@use.net>
1334
1335 * geturl.cc (progress): Change int to unsigned int to eliminate
1336 lint warnings.
1337 * (get_url_to_string): Check for NULL pointer.
1338 * mount.cc (find2): Use free instead of delete for malloc'd
1339 memory.
1340 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Fix memory leak.
1341
f97a1ece
RC
13422001-10-31 Robert Collins <rbtcollins@hotmail.com>
1343
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).
1350
d52ed64b
RC
13512001-10-31 Robert Collins <rbtcollins@hotmail.com>
1352
1353 * argv.cc: New file, converts arguments for -mwindows programs. (Simplified derivation
1354 from dcrt0.cc.)
1355 * argv.h: New file.
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.
1359
392ba1ba
CF
13602001-10-27 Christopher Faylor <cgf@redhat.com>
1361
1362 * res.rc: Rearrange info on top line slightly.
1363
31324d15
CF
13642001-10-27 Christopher Faylor <cgf@redhat.com>
1365
1366 * desktop.cc (make_passwd_group): Move file creation earlier in the
1367 process to ensure that passwd-grp.bat reflects desired operation.
1368
13692001-27-10 Trevor Forbes <t4bs@hotmail.com>
1370
1371 * postinstall.cc (each): Remove "*.done" file else rename will fail.
1372
ee411d77
CF
13732001-10-16 Christopher Faylor <cgf@redhat.com>
1374
1375 * res.rc: Oops. Take 640x480 screen size into account.
1376
e74944da
CF
13772001-10-16 Christopher Faylor <cgf@redhat.com>
1378
1379 * res.rc: Enlarge chooser screen.
1380
e368cfb9
CF
13812001-10-12 Christopher Faylor <cgf@redhat.com>
1382
1383 * Makefile.in: Accomodate changes to w32api_include macro.
1384
a6ba3670
CF
13852001-10-12 Christopher Faylor <cgf@redhat.com>
1386
1387 * Makefile.in: Use correct flags for windres.
1388
683e96f6
CF
13892001-10-12 Christopher Faylor <cgf@redhat.com>
1390
1391 * Makefile.in (CFLAGS): Remove -nostdinc from CFLAGS.
1392
2c18c00b
CF
13932001-10-12 Christopher Faylor <cgf@redhat.com>
1394
1395 * choose.cc (pick_line::paint): Reorganize after botched patch.
1396
0f61a05a
CF
13972001-10-12 Christopher Faylor <cgf@redhat.com>
1398
1399 * choose.cc (pick_line::paint): Add missing declaration.
1400
308d6f3e
CF
14012001-10-10 Ralf Habacker <Ralf.Habacker@freenet.de>
1402
1403 * choose.cc (pick_line::paint): Add package name to sdesc for display.
1404
3bcf85be
RC
1405Wed Sep 26 21:39:00 Robert Collins rbtcollins@hotmail.com
1406
1407 * choose.cc (_view::insert_pkg): Correctly exit loop.
1408 * iniparse.y (register_category): Always insert new categories.
1409
fb2cd8f6
CF
1410Fri Sep 21 13:56:32 2001 Christopher Faylor <cgf@cygnus.com>
1411
1412 * inilex.l (yylex): For comments, eat all characters up to, but not
1413 including newline.
1414
127b32e1
CF
1415Sun Aug 26 12:50:01 2001 John Marshall <jmarshall@acm.org>
1416
1417 * fromcwd.cc (found_file): Use correct package name when adding an
1418 unknown package rather than random stack garbage.
1419
2cd555aa
CF
1420Sun Aug 12 14:25:21 2001 Christopher Faylor <cgf@cygnus.com>
1421
1422 * desktop.cc (make_passwd_group): .bat files need \r\n endings.
1423
4254cc64
CF
1424Wed Aug 8 13:53:47 2001 Christopher Faylor <cgf@cygnus.com>
1425
1426 * desktop.cc (etc_profile): Leave environment variables untouched.
1427
acbae401
CV
14282001-08-07 Corinna Vinschen <corinna@vinschen.de>
1429
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.
1434
969a294c
CF
1435Sat Aug 4 21:35:53 2001 Christopher Faylor <cgf@cygnus.com>
1436
1437 * ini.h (_CategoryPackage): Change pkg field to pkgname for
1438 consistency.
1439 * choose.cc: Use pkgname field when referencing _CategoryPackage
1440 throughout.
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.
1445
9eeb0e83
ED
14462001-07-09 Egor Duda <deo@logos-m.ru>
1447
1448 * choose.cc: Use system foreground color for text output.
1449
06560feb
CF
1450Sat Jul 7 00:40:28 2001 Christopher Faylor <cgf@cygnus.com>
1451
1452 * choose.cc (set_action): Use default trust for determining reinstall
1453 and source only.
1454 (default_trust): Set default trust.
1455 (pick_line::paint): Allow source selection when reinstalling or
1456 retrieving.
1457
1fb09149
CF
1458Fri Jul 6 18:08:49 2001 Christopher Faylor <cgf@cygnus.com>
1459
1460 * choose.cc (isinstalled): Modify to properly accomodate special case
1461 of "download only".
1462 (set_action): Check downloaded components, not installed components if
1463 "download only".
1464 (set_existence): Always include full list of files when "download
1465 only".
1466
14cfffa5
CF
1467Fri Jul 6 00:37:05 2001 Christopher Faylor <cgf@cygnus.com>
1468
1469 * choose.cc (pick_line::paint): Properly display "na" field when no
1470 source exists.
1471
f54385f6
CF
1472Thu Jul 5 00:34:23 2001 Christopher Faylor <cgf@cygnus.com>
1473
1474 * choose.cc (scan2): Ensure that older versions do not show up in
1475 "Test" slot.
1476
85b1fb54
CF
1477Mon Jul 2 15:47:59 2001 Christopher Faylor <cgf@cygnus.com>
1478
1479 * choose.cc (set_action): Allow "Skip" action if trust != installed.
1480 * res.rc: Fix copyright.
1481
2dada532
CF
1482Sat Jun 30 14:05:21 2001 Michael A Chase <mchase@ix.netcom.com>
1483
1484 * res.rc (IDD_LOCAL_DIR): Change caption to match the other dialog
1485 boxes.
06c6d195 1486 (IDD_CHOOSE): Adjust horizontal size so package names are visible.
2dada532
CF
1487
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
1492 right.
1493 (do_choose): List categories and required packages in setup.log.full.
1494
1495Sat Jun 30 23:04:59 2001 Christopher Faylor <cgf@cygnus.com>
1496
1497 * choose.cc (scan2): Restore source scanning eliminated by previous checkin.
1498
1b13eeec
CF
1499Sat Jun 30 15:18:33 2001 Christopher Faylor <cgf@cygnus.com>
1500
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.
1504
9307254d
RC
1505Sat Jun 30 13:39:00 2001 Robert Collins <rbtcollins@hotmail.com>
1506
1507 * choose.cc (create_listview): Call set_view_mode with VIEW_CATEGORY.
1508 (do_choose): Log the first category name.
1509
3467d79f
CF
1510Fri Jun 29 23:07:44 2001 Christopher Faylor <cgf@cygnus.com>
1511
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,
1515 etc.
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.
1521
8f53e82a
RC
1522Sat Jun 30 11:01:00 2001 Robert Collins <rbtcollins@hotmail.com>
1523
1fb09149 1524 * choose.cc: Remove globals full_list, headers, package_indexes and
8f53e82a
RC
1525 nindexes.
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.
1fb09149 1530 (list_click): Use new global variables.
8f53e82a
RC
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
1534 variable.
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.
1564 (views) New enum.
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.
2dada532
CF
1575 (category): New global variable.
1576 (ncategories): New global variable.
8f53e82a
RC
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.
1586
26a27c14
CF
1587Mon Jun 25 00:56:37 2001 Michael A Chase <mchase@ix.netcom.com>
1588
e19ad6a3 1589 * choose.cc (paint): Wrap excessively long lines.
26a27c14
CF
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.
1595
97312777
CF
1596Mon Jun 25 00:56:37 2001 Christopher Faylor <cgf@cygnus.com>
1597
5f9f0d8d
CF
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.
97312777
CF
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.
1604
72fd1d1e
CF
1605Sun Jun 17 12:06:14 2001 Christopher Faylor <cgf@cygnus.com>
1606
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
1610 the install.
1611
41ac91b5 1612Sat Jun 16 11:33:51 2001 Michael A Chase <mchase@ix.netcom.com>
86202506
CF
1613
1614 * choose.cc (_Info::_Info): Test _source paramenter for non-NULL rather
1615 than zeroed "source" element.
1616
80429b97
CF
1617Fri Jun 15 20:54:43 2001 Christopher Faylor <cgf@cygnus.com>
1618
1619 * choose.cc (scan2): Insert unknown tar archives, found on disk, into
1620 the highest available "hole" in the trust array.
1621
654ea642
CF
1622Fri Jun 15 00:20:48 2001 Christopher Faylor <cgf@cygnus.com>
1623
1624 * choose.cc (set_existence): Use pointer method for indexing in trust
1625 array.
1626 (create_listview): Ditto.
1627 (scan2): Ditto. Also, use consistent variable name for indexing into
1628 trust array.
1629 * ini.h (Package): Reorganize info array for easier scanning.
1630
e98d90bd
CF
1631Fri Jun 15 00:01:51 2001 Christopher Faylor <cgf@cygnus.com>
1632
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
1635 incrementing.
1636 (choose_caption): Display "Retrieve" rather than "Reinstall" when just
1637 downloading.
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
1642 memory corruption.
1643
38c97581
CF
1644Thu Jun 14 22:43:59 2001 Robert Collins <rbtcollins@hotmail.com>
1645
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.
1651
1652Thu Jun 14 22:43:26 2001 Christopher Faylor <cgf@cygnus.com>
1653
1654 * choose.cc (read_installed_db): Eliminate obsolete code.
1655
3ae6c15c
CF
1656Thu Jun 14 22:11:53 2001 Christopher Faylor <cgf@cygnus.com>
1657
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
1661 iterator.
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
1665 package.
1666 (install_one): Allocate new Info struct for installed reflecting new
1667 installed info.
1668 (do_install): Don't output line to installed.db if package is being
1669 uninstalled.
1670
9c0a9876
CF
1671Thu Jun 14 20:33:01 2001 Robert Collins <rbtcollins@hotmail.com>
1672
1673 * choose.cc (getpkgbyname): Use consistent method for scanning package
1674 array.
1675
68b27c12
CF
1676Wed Jun 13 23:33:08 2001 Christopher Faylor <cgf@cygnus.com>
1677
1678 * choose.cc: Add some comments.
1679 (getpkgbyname): Use strcasecmp for comparisons.
1680
07108cc2
CF
1681Wed Jun 13 16:07:00 2001 Christopher Faylor <cgf@cygnus.com>
1682
f0984dcb 1683 * install.cc (do_install): Avoid checking for download action if
07108cc2
CF
1684 package wasn't currently retrieved.
1685
c46a33a9
CF
1686Wed Jun 13 11:27:22 2001 Christopher Faylor <cgf@cygnus.com>
1687
1688 * choose.cc: Eliminate extra array throughout. Use element in package
1689 structure instead. Use pointers rather than array indexes where
1690 appropriate.
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
1716 version == 0.
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.
1727
7cc06fd3
CF
17282001-05-31 Michael Chase mchase@ix.netcom.com
1729
1730 * main.cc (WinMain): Add setup version to starting setup.log entry
1731
9522028b
CF
1732Tue May 29 21:37:58 2001 Yukihiko Sohda <sohda@is.titech.ac.jp>
1733
1734 * inilex.l: Add + to list of valid string characters.
1735
e9b1aaa7
CF
1736Mon May 28 20:54:50 2001 Christopher Faylor <cgf@cygnus.com>
1737
1738 * Makefile.in: Remove more stuff in the clean target.
1739
8e1299fa
CF
1740Mon May 28 18:24:59 2001 Christopher Faylor <cgf@cygnus.com>
1741
1742 * Makefile.in: Correctly generate iniparse.h.
1743
85553593
CV
1744Tue Mar 6 19:14:00 2001 Corinna Vinschen <corinna@vinschen.de>
1745
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'.
1764
c4174b9c
CF
1765Sun May 27 17:12:23 2001 Christopher Faylor <cgf@cygnus.com>
1766
1767 * res.rc (IDD_SPLASH): Add a copyright year.
1768
0af2d779
CF
1769Sun May 27 15:42:18 2001 Christopher Faylor <cgf@cygnus.com>
1770
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
1778 honored.
1779 * mount.cc (create_mount): Reread the mount table after establishing a
1780 new mount.
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.
1785
85b43844
CF
1786Sun May 27 02:59:07 2001 Christopher Faylor <cgf@cygnus.com>
1787
0af2d779
CF
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
1792 version.
85b43844
CF
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.
1802
08f8c762
CF
1803Sat May 26 21:23:59 2001 Christopher Faylor <cgf@cygnus.com>
1804
1805 * choose.cc: Use a constant throughout to deal with chooser icon
1806 length.
1807 * res.rc (IDD_CHOOSE): Increase size of chooser box.
1808
47f8d8b3
CF
18092001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
1810
1811 * choose.cc (do_choose): Fix incorrect assignment of trust setting to
1812 use when Redownload or Sources Only selected.
1813
6a748750
CF
1814Thu May 10 22:35:59 2001 Christopher Faylor <cgf@cygnus.com>
1815
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.
1820
a351e48c
CF
1821Thu May 10 21:04:18 2001 Christopher Faylor <cgf@cygnus.com>
1822
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.
1840
e227ee24
CF
18412001-05-09 Matt Hargett <matt@use.net>
1842
1843 * Makefile.in: Remove *.rc from clean.
1844
25fd2965
CF
1845Tue May 8 23:33:38 2001 Christopher Faylor <cgf@cygnus.com>
1846
1847 * choose.cc (scan2): Fix incorrect setting of TRUST_CURR rather than
1848 TRUST_PREV which produced "0" versions.
1849
42bf5b92
CF
18502001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
1851
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
1860 ACTION_SRC_ONLY.
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
1874 ACTION_SRC_ONLY).
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.
1891
1892Mon May 7 23:33:30 2001 Matt Hargett <matt@use.net>
8a09aa99
CF
1893
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.
1904
87bdba0c
CF
1905Tue Apr 24 23:42:02 2001 Christopher Faylor <cgf@cygnus.com>
1906
1907 * res.rc: Resize affected text.
1908
8293fc16
CF
1909Tue Apr 24 23:35:31 2001 Christopher Faylor <cgf@cygnus.com>
1910
1911 * net.cc (do_net): Default to direct download.
87bdba0c 1912 * res.rc: Move default selections to the top.
8293fc16 1913
ed96c6da
EB
19142001-04-18 Earnie Boyd <earnie@users.sourceforge.net>
1915
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.
1923
fe94cc29
CF
1924Wed Apr 18 18:59:21 2001 Christopher Faylor <cgf@cygnus.com>
1925
1926 * tar.cc (class gzbz): Define dummy virtual functions.
1927
fb087b80
CF
1928Wed Apr 18 16:01:21 2001 Christopher Faylor <cgf@cygnus.com>
1929
1930 * Makefile.in: Add bz2 include/library support.
1931 * filemanip.h: New file.
fe94cc29
CF
1932 * choose.cc (find_tar_ext): New function. Returns TRUE if .tar.gz or
1933 .tar.bz2 found.
fb087b80
CF
1934 (scan2): Reorganize to use find_tar_ext, accomodating .bz2 extension.
1935 (read_installed_db): Ditto.
1936 (do_choose): 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.
1948
1949 * zlib/configure.in: Force NM substitution.
1950
1951 * source.cc (do_source): Default to "Install from Internet".
1952
88bcaf07
CF
19532001-03-16 Brian Keener <bkeener@thesoftwaresource.com>
1954
1955 * nio-file.cc (NetIO_File::NetIO_File): Use `get_file_size' instead of
1956 `stat'.
1957 * choose.cc (list_click): Correct inability to select source code for
1958 download.
1959 (scan2): Modify to skip source tarballs when scanning disk for
1960 installable packages.
1961
ef45c299
CV
19622001-03-10 Chris Abbey <chris_abbey@yahoo.com>
1963
1964 * install.cc: install sources into /usr/src instead
1965 of /, also include the sizes of source tarballs
1966 in total_bytes.
1967 * download.cc: include sizes of source tarballs in
1968 total_download_bytes.
1969
9fe1181b
CV
1970Tue Mar 6 19:31:00 2000 Corinna Vinschen <corinna@vinschen.com>
1971
1972 * download.cc (get_file_size): Remove `static'.
1973
2bfdb848
CV
1974Tue Mar 6 19:11:00 2000 Corinna Vinschen <corinna@vinschen.com>
1975
1976 * tar.cc (tar_open): Use `get_file_size' instead of `stat'.
1977
60c632b3
CV
19782001-03-06 Brian Keener <bkeener@thesoftwaresource.com>
1979
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
88bcaf07 1983 installing from local directory and installation file does not exist.
60c632b3
CV
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.
88bcaf07 1995 (set_full_list): Expand decision criteria for displaying a package in
60c632b3
CV
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.
88bcaf07 2000 (create_listview): Modify to establish package trust level for each
60c632b3
CV
2001 package before setting up the display list. Also modification to set
2002 current trust button as the default.
88bcaf07 2003 (dialog_cmd): Set response for Prev, Curr, Test button push to perform
60c632b3
CV
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
2007 trust.
2008 (scan2): Modify to use new method get_package_version and
2009 also enhance handling of the build for the structures package and
2010 extra.
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.
88bcaf07 2014 (do_choose): Add additional initialization of package and extra
60c632b3
CV
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
2018 versions.
2019 * ini.h: Add new fields install_exists, source_exists and
88bcaf07 2020 partial_list_display to the structure definition for package.
60c632b3
CV
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.
2024
2f9645a1
CV
20252001-02-20 Brian Keener <bkeener@thesoftwaresource.com>
2026
88bcaf07 2027 * download.cc (do_download): Add new variables total_download_bytes and
2f9645a1
CV
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.
88bcaf07
CF
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.
2f9645a1
CV
2040 (init_dialog): Ditto.
2041 (progress): Ditto.
2042 (get_url_to_file): Ditto.
2043 * geturl.h: Add external definition for total_download_bytes and
2044 total_download_bytes_sofar.
88bcaf07 2045 * res.rc: Add two additional progress meters (IDC_DLS_IPROGRESS)
2f9645a1
CV
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
2048 download meters.
88bcaf07 2049 * resource.h: Add new fields for progress meters and text and update
2f9645a1
CV
2050 _APS_NEXT_CONTROL_VALUE.
2051
b41962a3
CV
2052Wed Feb 21 13:05:00 2000 Corinna Vinschen <vinschen@redhat.com>
2053
2054 * download.cc (get_file_size): Check for INVALID_HANDLE_VALUE instead
2055 for NULL.
2056
2057Wed Feb 21 11:21:00 2000 Corinna Vinschen <vinschen@redhat.com>
01954c34
CV
2058
2059 * download.cc (download_one): Add missing parenthesis.
2060
88a77116
CV
2061Mon Feb 19 18:59:00 2000 Corinna Vinschen <vinschen@redhat.com>
2062
2063 * download.cc (get_file_size): New function. Eliminates the need
2064 to call `stat'.
2065 (download_one): Call `get_file_size' instead of `stat'. This
2066 workarounds a problem with mingw's `stat' call.
2067
577f35ed
EB
20682001-02-07 Earnie Boyd <earnie@users.sourceforge.net>
2069
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.
2073
38f5563e
DD
20742000-12-26 Earnie Boyd <earnie_boyd@yahoo.com>
2075
2076 * Makefile.in (autoload.o): Add target to specify -fno-inline-functions
2077
c0a7e0f2
DD
2078Tue Dec 26 03:46:00 2000 Matt Hargett <matt@use.net>
2079
2080 * winsup/cinstall/res.rc: Added accelerators and improved focus
2081 order.
2082
72826a5b
CF
20832000-12-10 Egor Duda <deo@logos-m.ru>
2084
2085 * choose.cc (paint): Use system background color for text output.
2086
2087Sun Dec 10 19:05:25 2000 Christopher Faylor <cgf@cygnus.com>
2088
2089 * Makefile.in: Use CXX for linking and for compiling .cc files.
2090 * configure.in: Find correct c++ compiler.
2091 * configure: Regenerate.
2092
67bebcb5
DD
20932000-11-17 DJ Delorie <dj@redhat.com>
2094
2095 * splash.cc (load_dialog): Make message more obvious.
2096 * res.rc: Ditto.
2097
25fb9139
CF
2098Fri Nov 17 17:15:21 2000 Christopher Faylor <cgf@cygnus.com>
2099
2100 * Makefile.in: Use g++ to link so that libstdc++.a gets used. This is
2101 necessary for newer compilers.
2102
ef2007fd
CV
2103Wed Nov 9 2:19:00 2000 Corinna Vinschen <vinschen@redhat.com>
2104
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...
2110 * ini.h: ...here.
2111
277b4d56
CV
2112Wed Nov 8 17:10:00 2000 Corinna Vinschen <vinschen@redhat.com>
2113
2114 * desktop.cc (make_passwd_group): Don't exit when started
2115 on 9x/ME since mkpasswd/mkgroup are usable on 9x/ME now.
2116
f8a6415f
DD
2117Sun Nov 5 12:51:42 2000 Jason Tishler <jt@dothill.com>
2118
2119 * install.cc (do_install): Add call to set_cygdrive_flags to sync
2120 the mount modes.
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.
2126
3b9077d4
DD
21272000-10-23 DJ Delorie <dj@redhat.com>
2128
2129 * ini.h: add source actions
2130 * fromcwd.cc: check for available sources
2131 * res.rc: add checkbox bitmaps
2132 * resource.h: ditto
2133 * check-*.bmp: new
2134 * choose.cc: add source column
2135 * download.cc: download sources if called for
2136 * install.cc: [un]install sources too
2137
1b1b33ac
DD
21382000-10-22 DJ Delorie <dj@redhat.com>
2139
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.
2144
2a1a01e0
DD
21452000-10-12 DJ Delorie <dj@redhat.com>
2146
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
2151 allow retry.
2152 * install.cc (do_install): Ditto.
2153
1a9886fe
DD
21542000-10-05 DJ Delorie <dj@redhat.com>
2155
2156 * Makefile.in: fix %.cc rule
2157
40aef45e
DD
21582000-10-04 DJ Delorie <dj@redhat.com>
2159
2160 * desktop.cc: quote HOME and USER, don't . ./.profile
2161
2162 * choose.cc (build_labels): don't include in partial list just
2163 because there's a *previous* version available.
2164
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.
2167
dd3f7f9b
DD
21682000-10-02 DJ Delorie <dj@redhat.com>
2169
2170 * ini.cc (do_ini): save setup.ini locally
2171
21722000-10-02 Chris Abbey <cabbey@bresnanlink.net>
2173
2174 * desktop.cc: quote escapes in prompt
2175
fee2a8d0
DD
21762000-10-02 Jason Tishler <jt@dothill.com>
2177
2178 * root.cc (is_admin): New function.
2179 (read_mount_table): Check for administrative priviledges and set
2180 installation scope as appropriate.
2181
a03db251
DD
21822000-09-28 DJ Delorie <dj@redhat.com>
2183
2184 * nio-ftp.cc (ftp_line): handle continuations more robustly
2185
b151e01e 21862000-09-14 Brian Keener <bkeener@thesoftwaresource.com>
0b758d4c
DD
2187
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.
2192
d07591a3
DD
21932000-09-13 DJ Delorie <dj@redhat.com>
2194
2195 * install.cc (do_install): update disk fullness once per package
2196 to improve performance
2197
2198 * choose.cc (create_listview): call ReleaseDC
2199
89725f30
DD
2200Mon Sep 11 22:40 2000 Harold L Hunt II <harold@compasstechnologies.com>
2201
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
88bcaf07 2205
6fbc690d
CF
2206Mon Sep 11 19:35:24 2000 Christopher Faylor <cgf@cygnus.com>
2207
2208 * site.cc (get_initial_list_idx): Don't default to saved URL if it
2209 refers to sources.
2210
13d27274
DD
22112000-09-07 DJ Delorie <dj@redhat.com>
2212
2213 * splash.cc: use version.h, not local decl
2214 * res.rc: add "old version" message
2215 * resource.h: ditto
2216 * version.h: new
2217 * fromcwd.cc (canonicalize_version): make global
89725f30
DD
2218 * iniparse.y: add setup-version support, fix bug in blank line
2219 handling
2220
13d27274
DD
2221 * inilex.l: add [exp] as alias for [test], add setup-version
2222 * Makefile.in (version.c): add setup-version tag
2223
2224 * desktop.cc (do_desktop): remove 1.1 version number
2225 (do_desktop_setup): ditto
2226
2227 * ini.cc (do_ini): zero out package list just in case we redo it.
2228
8cfbc487
DD
22292000-09-07 Jeffrey Juliano <juliano@cs.unc.edu>
2230
2231 * choose.cc (list_click): Check for nindexes==0; if so, return.
2232
c92e1307
DD
22332000-09-06 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
2234
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
2240 do_local_dir
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
2248
22492000-09-06 Brian Keener <bkeener@thesoftwaresource.com>
50225eae
DD
2250
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
2257 normal directory.
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
2267 IDD_DESKTOP.
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.
2274
4a83b7b0
DD
22752000-08-29 DJ Delorie <dj@redhat.com>
2276
2277 * choose.cc (scan_downloaded_files): scan for existing files, so
2278 that the user only sees new downloads.
2279
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
2286
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
2293 * nio-ftp.cc: ditto
2294 * netio.cc (set_url): move initialization here to handle redirections
2295 (open): add direct http/ftp
2296 * netio.h (NetIO::set_url): new
2297
2298 * log.cc (log_save): create directory for log if needed
2299
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
2308
2309 * res.rc: update mirror list URL
88bcaf07 2310
50f64a4b
DD
23112000-08-24 DJ Delorie <dj@redhat.com>
2312
89b1a15b
DD
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
2330
2331 * res.rc: mark password boxes as *being* password boxes.
2332
50f64a4b
DD
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.
2338
348860fa
DD
23392000-08-23 DJ Delorie <dj@redhat.com>
2340
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.
2345
5f48f258
DD
23462000-08-21 DJ Delorie <dj@redhat.com>
2347
2348 * README: Update
2349
2350 * fromcwd.cc (found_file): don't remember the canonicalized version
2351
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
2357
713bbe5f
DD
23582000-08-11 DJ Delorie <dj@redhat.com>
2359
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
2369
2370 * mount.cc: remove debug statement
88bcaf07 2371
2e9cbac5
DD
23722000-08-08 DJ Delorie <dj@redhat.com>
2373
2374 * Makefile.in (version.c): make version checking more robust
2375 * splash.cc (load_dialog): handle case where there's no version
2376
8507f105
DD
23772000-08-07 DJ Delorie <dj@redhat.com>
2378
2379 * (all): add cvsid tags
2380 * Makefile.in: generate version.c from ChangeLog, add splash.o
2381 * splash.o: new
2382 * res.rc: add splash screen
88bcaf07 2383
f5d0464b
DD
23842000-08-02 DJ Delorie <dj@redhat.com>
2385
4e8ff53f
DD
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
2391
f5d0464b
DD
2392 * concat.cc (concat): canonicalize x:// to x:/ (exception to ://
2393 meaning an url)
2394
76cbfa85
DD
23952000-08-02 Norman Vine <nhv@yahoo,com>
2396
2397 * msg.cc (mbox): added MB_TOPMOST to MessageBox type flags
2398
e92c4436
DD
23992000-08-01 DJ Delorie <dj@redhat.com>
2400
bf74c544
DD
2401 * postinstall.cc (each): don't rename files we ignore
2402 (do_postinstall): set CYGWINROOT to root_dir, chdir there
2403
e92c4436
DD
2404 * desktop.cc: have /etc/profile call ~/.profile and ~/.bashrc
2405
a6100861
DD
24062000-07-31 DJ Delorie <dj@redhat.com>
2407
2408 * desktop.cc: reverse PATH so /usr/bin precedes /bin
2409
b11b49f3
DD
24102000-07-18 DJ Delorie <dj@redhat.com>
2411
a99bdfd8
DD
2412 * autoload.c: new, autoload dlls that might not be available.
2413 * Makefile.in (OBJS): add autoload.o
2414
2415 * res.rc: rewrite root options (text/binary, system/user) to be
2416 more obvious.
2417
b5b282c4
DD
2418 * site.cc (get_site_list): trim displayed URL, sort by domain
2419
2420 * net.cc (do_net): make IE5 default to checked, for now
2421
b11b49f3
DD
2422 * choose.cc (do_choose): sort packages correctly
2423 * ini.cc (do_ini): handle parse errors more gracefully
2424 (yyerror): ditto
2425 (fprintf): line buffer output
b5b282c4 2426 (do_ini): if we can't load setup.ini, go back to the site list.
b11b49f3
DD
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
2432
1fd6d0a2
DD
24332000-07-17 DJ Delorie <dj@cygnus.com>
2434
2435 * coding standards fixups, many files
2436 * mkdir.cc: warn about deletions *before* deleting them
2437
ed3e8b9b
DD
24382000-07-17 Jeff Juliano <juliano@cs.unc.edu>
2439
2440 * res.rc (IDD_OTHER_URL): reorder to give default focus to entry
2441
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
2450
2451 * concat.cc (concat): avoid segfault when first parm is null
88bcaf07 2452
f57c332f
DD
24532000-07-13 DJ Delorie <dj@cygnus.com>
2454
2455 * postinstall.cc: new
2456 * Makefile.in: add postinstall.o
2457 * concat.h: add backslash ()
2458 * concat.cc: ditto
2459 * desktop.cc (etc_profile): don't do postinstall
2460 (backslash): moved to concat.cc
2461 (uexists): new
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
2466 * install.cc: ditto
2467 * main.cc: add postinstall, exit_msg
2468 * resource.h: add postinstall
d6cda811 2469 * README: add more to-do items
f57c332f 2470
3a8e3956
DD
24712000-07-12 DJ Delorie <dj@cygnus.com>
2472
2473 * desktop.cc: add /etc/postinstall/ support
1a18aed7 2474 * install.cc: add more "standard" directories
3a8e3956 2475
e0c3d906
DD
24762000-07-11 DJ Delorie <dj@cygnus.com>
2477
2478 * desktop.cc: create /etc/profile
ad09bcd9
DD
2479 * desktop.cc: fix include syntax
2480 * Makefile.in: add auto-dependencies
24e259bb
DD
2481 * root.cc: support system vs user
2482 * desktop.cc: ditto
2483 * mount.h: ditto
2484 * mount.cc: ditto
2485 * install.cc: ditto
2486 * res.rc: ditto
2487 * resource.h: ditto
2488 * state.h: ditto
84d58d4c 2489 * desktop.cc: make sure we use backslashes, not slashes.
bf1d5889
DD
2490 * desktop.cc: don't set PATH in cygwin.bat, create /etc/passwd
2491 * geturl.cc: change math for percentage to avoid overflow
2492 * install.cc: ditto
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.
a3f48e18 2496 * desktop.cc: quote $PATH in case it has spaces in it
88bcaf07 2497
904d24fe
DD
24982000-07-10 DJ Delorie <dj@cygnus.com>
2499
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
1ab805b8 2506 * README: update to-do list
904d24fe 2507
04d6e06b
DD
25082000-07-10 DJ Delorie <dj@cygnus.com>
2509
2510 * ini.cc (do_ini): don't worry about timestamps if we're not
88bcaf07 2511 actually installing.
04d6e06b 2512
5601a13d
DD
25132000-07-09 DJ Delorie <dj@cygnus.com>
2514
2515 * Makefile.in: add -I$(srcdir) for ini.h
2516
23c9e63c
DD
25172000-07-06 DJ Delorie <dj@cygnus.com>
2518
2519 * Replace everything with a new GUI version
2520 * zlib/gzio.c: add gzctell() for progress displays
2521
25222000-06-22 DJ Delorie <dj@cygnus.com>
2523
2524 * setup.c (tarx): re-add call to write_pkg()
2525
aa32874b
DD
25262000-06-07 DJ Delorie <dj@cygnus.com>
2527
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"
2536 add "-h" for help
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
2544
99d1bf2d
DD
25452000-05-24 DJ Delorie <dj@cygnus.com>
2546
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.
2556
55650749
CF
2557Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
2558
2559 Fix compiler warnings throughout.
2560 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
2561 get_pkg_stuff.
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.
2569 (mkmount): Ditto.
2570 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
2571 scanning for the version number. Eliminate unneeded argument to
2572 create_uninstall.
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.
2576
f4dda8f0
DD
25772000-05-18 DJ Delorie <dj@cygnus.com>
2578
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.
2583
62844d84
CF
2584Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
2585
2586 * setup.c (cleanup): Inverse order of deletion stands a better chance
2587 of deleting cygpath.exe. Still seems to suffer from occasional races,
2588 though.
2589 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
2590 w2k.
2591 (output_file): Defend against an unlikely handle leak.
2592 (main): Don't set up signal handling until we have something special to
2593 do.
2594
ad6749c8
CF
2595Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
2596
2597 * path.c (kill_cygpath): Delete function.
2598 (exit_cygpath): Make more defensive so that it can be called at any
2599 time.
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
2604 tar.gz tail.
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.
2610
460cf7b6
CF
2611Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
2612
2613 * setup.c (do_start_menu): Don't concatenate paths to already built
2614 paths.
2615
9e76799c
CF
2616Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
2617
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
2620 that.
2621 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
2622 root"-specific.
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
2625 and cygwin1.dll.
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.
2630
2cf65e6e
CF
2631Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
2632
2633 * pkg.c (init_pkgs): Accept an argument to control what root registry
2634 key should be used.
2635 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
2636 * setup.h: Reflect init_pkgs prototype change.
2637
2638Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
2639
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
2658 regtool.
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
2663 installation.
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.
2671
4cf88dd9
CF
2672Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
2673
2674 * setup.c (optionprompt): Don't overlap display of already seen options
2675 on next page.
2676 (geturl): Print name of site which we're connecting to rather than "ftp
2677 site".
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
2683 signify an update.
2684
36591a07
CF
2685Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
2686
2687 * pkg.c: New file.
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
2692 if appropriate.
2693 * setup.h: Add pkg definitions.
2694
c298ea4a
CF
2695Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
2696
2697 * setup.c (findhref): Return NULL on empty string. Eat any trailing
2698 ";something".
2699 (processdirlisting): Attempt to limit recursively processing the same
2700 directory.
2701
f4cafa7e
CF
2702Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
2703
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
2708 leak.
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.
2717
cd475210
CF
2718Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
2719
2720 * setup.c (main): Change version number output.
2721
7dff5e71
CF
2722Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
2723
2724 * setup.c (tarx): Use full path name to tar executable.
2725 (main): Build full pathname to tar executable. Create /usr/local/etc
2726 by default.
2727
99437fdb
CF
2728Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
2729
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
2733 evident.
2734 (processdirlisting): Fix boolean algebra.
2735
0f562d55
CF
2736Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
2737
2738 * main.c (tarx): Add some code for future task of unmounting
2739 directories encountered in tar file.
2740
4356382d
CF
2741Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
2742
2743 * setup.c (findhref): Decode file size, when appropriate.
2744 (needfile): New function. Returns 1 when file should be
2745 downloaded.
2746 (processdirlisting): Always download if file size does not
2747 match. Prompt when download fails for some reason.
2748 (getdownloadsource): Accomodate findhref argument changes.
2749
6ab1ce6c
CF
2750Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
2751
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.
2759
37ee316b
CF
2760Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
2761
2762 * setup.c (main): Umount /bin and /lib.
2763
a59fb4fa
CF
2764Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
2765
2766 * setup.c (main): Create an empty /var/run/utmp.
2767
75f4b861
CF
2768Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
2769
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.
2775
d4a66789
CF
2776Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
2777
2778 * setup.c (mkmount): Use xcreate_process to start mount process,
2779 avoiding the shell.
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.
2782
a6c3982d
CF
2783Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
2784
2785 * setup.c (main): Remove the CYGWIN environment variable before
2786 starting any cygwin programs.
2787
0ffd5e3b
CF
2788Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
2789
2790 * setup.c (geturl): Use alternative method for finding filename part of
2791 a URL.
2792 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
2793 (downloaddir): Unlink file containing dir listing.
2794 (downloadfrom): Ditto.
2795
3e54bcf9
CF
2796Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
2797
2798 * setup.c (main): Disallow running setup.exe from the "root".
2799
005b73c4
CF
2800Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
2801
2cf65e6e 2802 Use "warning" function, where appropriate, to output warnings.
005b73c4
CF
2803 * setup.c (warning): New function -- outputs warning to console and log
2804 file.
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.
2807
36dc5fc8
CF
2808Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
2809
2810 * setup.c (processdirlisting): Make "N" option a little less aggressive.
2811
c73320de
CF
2812Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
2813
2814 * setup.c (tarx): Wait to after tar has completed to reset protections
2815 or suffer races with tar process.
2816
68cdfc92
CF
2817Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
2818
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
2828 files.
2829
35d18861
CF
2830Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
2831
2832 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
2833 download.
2834
20904de1
CF
2835Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
2836
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
2846 the log file.
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
2850 this structure.
2851 * xsystem.c (xcreate_process): Return proces handle when not waiting.
2852
c1246750
CF
2853Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
2854
2855 * path.c: New file.
2856 (pathfp): New function. Preliminary work for new -f cygpath
2857 functionality.
2858 * Makefile.in: Add new file.
2859 (pathcvt): Move to new file.
2860 (dtoupath): Ditto.
2861 (utodpath): Ditto.
2862 (pathcat): Ditto.
2863 * setup.c (processdirlisting): Always open file in text mode.
2864 (create_uninstall): Ditto.
2865 (getdownloadsource): Ditto.
2866 (main): Ditto.
2867
4b40edd0
CF
2868Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
2869
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
2879 when done.
2880
6f8e3b45
CF
2881Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
2882
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
2888 than \bin.
2889 (main): Add some expository text.
2890
2a907b70
CF
2891Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
2892
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.
2896
c4285a3c
CF
2897Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
2898
2899 * Makefile.in: Augment clean target.
2900
ea615d51
RP
2901Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
2902
2903 * README: Added info about non-working mingw implementation
c1246750 2904 * gzip.exe.gz: Replace with a version from the same build as the other
ea615d51 2905 tools.
c1246750 2906 * tar.exe.gz: Replace with a version from the same build as the other
ea615d51 2907 tools.
c1246750 2908 * mount.exe.gz: Add to repository until, mingw can build setup.
ea615d51
RP
2909 * cygpath.exe.gz: ditto
2910 * cygwin1.dll.gz: ditto
c1246750
CF
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
2915 them.
ea615d51
RP
2916 * setup.dsw: ditto
2917 * zlib.dsw: ditto
2918
51954e74
CF
2919Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
2920
c1246750
CF
2921 * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab
2922 cygwin1.dll from ../cygwin subdirectory.
51954e74
CF
2923 * gzip.exe.gz: Update.
2924 * tar.exe.gz: Update.
2925
7b777418
CF
2926Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
2927
2928 * Makefile.in: Use ZLIB variable as a target.
2929
4306b490
CF
2930Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
2931
5e7eb909
CF
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
2934 sources.
4306b490
CF
2935 * configure.in: Locate correct objcopy.
2936 * configure: Regenerate.
2937
739457f4
CF
2938Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
2939
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
8507f105
DD
2949
2950%%% $Id$
2951$Revision$
This page took 0.335998 seconds and 5 git commands to generate.