]> cygwin.com Git - cygwin-apps/setup.git/blame - ChangeLog
2002-01-07 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
[cygwin-apps/setup.git] / ChangeLog
CommitLineData
858f100d
RC
12002-01-07 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2
3 * fromcwd.cc: Run indent.
4 (do_fromcwd): Reverse sense of comment. Set next_dialog
5 to IDD_CHOOSER instead of IDD_CHOOSE.
6 * ini.cc (find_routine): Remove "/" from "/setup.ini".
7
d343da15
RC
82001-01-07 Robert Collins <rbtcollins@hotmail.com>
9
10 * category.cc (Categorycmp): Add a const safe version.
11 * category.h (Categorycmp): Add a const safe version.
12 (Category): Add operator ==.
13 * choose.cc (fill_missing_category): Add every package to "All".
14 (pick_category_line::paint): Add support for hidden labels, and a tree depth.
15 (pick_category_line::click): Ditto.
16 (view::view): Pass in a top level category to use.
17 (view::insert_pkg): Special case - skip category "All".
18 (view::insert_category): Ditto.
19 (view::clear_view): Set the contents label state.
20 (create_listview): Pass in a top level category to view().
21 * choose.h (topbucket): Make bucket available to derived classes.
22 (pick_category_line): Add support for hidden labels, and a tree depth.
23 Remove our second copy of bucket.
24 (view): Pass in a top level category to the constructor.
25 Use pick_category_line to allow three level display.
26
bcf20115
RC
272001-01-06 Robert Collins <rbtcollins@hotmail.com>
28
29 * cygpackage.h (cygpackage): Make set_[s|l]desc virtual.
30 * iniparse.y (add_correct_version): Copy descriptions across.
31 * package_meta.cc (SDesc): Iterate through versions, return the first with a
32 description.
33 * package_version.h (packageversion): Add new virtuals set_[l|s]desc.
34
bc78a6d5
RC
352001-01-04 Robert Collins <rbtcollins@hotmail.com>
36
37 * script.cc (run_script): Change cygpath:// to cygfile://.
38 * install.cc (do_install_thread): Fix off-by-one errors.
39
4f4e55c2
RC
402001-01-04 Robert Collins <rbtcollins@hotmail.com>
41
42 * package_db.cc (packagedb::flush): Fix an off-by-one error.
43
8e9aa511
RC
442002-01-04 Jan Nieuwenhuizen <janneke@gnu.org>
45
46 * Makefile.in (realclean): more clean.
47 (OBJS): Add script.o.
48 * postinstall.cc (run_script_in_etc_postinstall): New function.
49 (do_postinstall): Split off new funtion init_run_script ().
50 (init_run_script):
51 (run):
52 (run_script): Move to script.cc. Replace some deprecated remove
53 and move calls.
54 * script.h:
55 * script.cc: New file.
56 * Forward port cygwin-20010707.jcn3.patch.
57 * package_meta.cc (uninstall): Run pre- and postremove scripts.
58 * install.cc: Typo fix.
59 (do_install): Run script initialisation.
60
b7301c43
RC
612001-01-04 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
62
63 * cistring.cc: Run d2u.
64 * cistring.h: Run d2u.
65
66 * desktop.cc (etc_profile): Remove "test -f ./.bashrc && . ./.bashrc"
67 from the generated /etc/profile. Bash will source this file
68 automatically, and having this here merely results in .bashrc being
69 executed twice. Run d2u.
70 * desktop.h: Run d2u.
71
72 * propsheet.cc: Run d2u.
73 (PropSheetProc): New function. Add minimize box here instead of in
74 PropertyPage::DialogProc.
75 (PropSheet::Create): Change to use creation callback PropSheetProc.
76 (DLGTEMPLATEEX): Add 'hidden' Windows struct definition.
77
78 * propsheet.h: Run indent, d2u.
79 * proppage.h: Run indent, d2u.
80
81 * proppage.cc: Run d2u.
82 (PropertyPage::DialogProc): Remove minimize-box-adding
83 functionality. Remove commented-out "PropSheet_SetWizButtons" calls.
84 Add support for calling virtual OnMessageCmd. Add setting of fonts in
85 WM_INITDIALOG handler.
86 (resource.h): New include for resource IDs.
87
88 * res.rc: Resize and rearrange property page dialog templates
89 to bring them in line with "Microsoft's Backward Compatible Wizard 97"
90 specification. Run d2u.
91 (IDD_SITE): Add an edit control and an "Add" button in order to
92 combine the IDD_SITE and IDD_OTHER_URL functionality onto one page.
93 (IDD_OTHER_URL): Remove dialog template.
94 (IDD_DLSTATUS): Remove dialog template.
95
96 * site.cc: Run d2u.
97 (SitePage::OnBack): Remove NEXT() macro invocation.
98 (SitePage::OnActivate): New member function.
99 (load_dialog): Remove. Functionality subsumed into
100 SitePage::OnActivate.
101 (save_dialog): Change to support both list and user URLs. Remove
102 OTHER_IDX and mirror_idx logic.
103 (SitePage::PopulateListBox): New member function.
104 (SitePage::CheckControlsAndDisableAccordingly): New member function.
105 (SitePage::OnMessageCmd): New override.
106 (check_if_enable_next): Remove.
107 (dialog_cmd): Remove.
108 (do_download_site_info_thread): Remove calls to NEXT() macro.
109 (SitePage::Create): Call the single-param PropertyPage::Create
110 overload.
111 (other_url): New static taken from other.cc.
112 (SitePage::OnNext): Remove mirror_idx logic.
113 (SitePage::OnInit): Remove "Other URL" entry from list box. Remove
114 list box populating code, now handled in SitePage::PopulateListBox.
115 (mirror_idx, NO_IDX, OTHER_IDX): Remove.
116 (save_site_url): Fix potential buffer overflow problem. Switched to
117 TCHAR in grossly premature preparation for multilingual support.
118 * site.h: Run d2u.
119 (SitePage::OnActivate): New member function.
120 (SitePage::CheckControlsAndDisableAccordingly) New member.
121 (SitePage::OnMessageCmd): New override.
122 (do_download_site_info_thread): Add MessageBox call on failure to
123 download site list.
124
125 * splash.cc: Run d2u.
126 (SplashPage::OnInit): Set the font for the title.
127 * splash.h: Run d2u.
128
129 * threebar.cc: Run d2u.
130 * threebar.h: Run d2u.
131
132 * window.h: Run d2u.
133 (Window::IsButtonChecked): New member function declaration.
134 (Window::OnMessageCmd): New member function.
135 (Window::SetDlgItemFont): New member function declaration.
136 (Window::MAXFONTS, Window::Fonts, Window::FontCounter): New data
137 members.
138 * window.cc: Run d2u.
139 (Window::IsButtonChecked): New member function definition.
140 (Window::SetDlgItemFont): New member function definition.
141 (Window::Window): Add initialization for FontCounter.
142 (Window::~Window): Delete any fonts we created.
143
144 * geturl.cc: Run d2u.
145 (progress): Remove the "3" field width from the "%3d"
146 percent-complete format indicator. Causes line to not start at
147 beginning of text box, and does little to help with "jumping", since
148 the "bytes downloaded so far" field is variable-width anyway. Change
149 kb/s format field to "%03.1" to 0-pad the kb/s number in the event of
150 painfully slow connections, or temporary slowdowns in faster
151 connections should such more-instantaneous functionality become
152 available.
153
154 * net.h: Run d2u.
155 (NetPage::OnMessageCmd): New member function declaration.
156 (NetPage::CheckIfEnableNext): New member function declaration.
157 * net.cc: Run d2u.
158 (NetPage::OnMessageCmd): New member function definition.
159 (dialog_cmd): Remove, subsumed into NetPage::OnMessageCmd.
160 (check_if_enable_next): Remove.
161 (NetPage::CheckIfEnableNext): New member function, subsumes
162 check_if_enable_next.
163 (propsheet.h): Add include.
164 (NetPage::Init): Add call to CheckIfEnableNext.
165 (load_dialog): Remove call to check_if_enable_next.
166 (NetPage::Create): Call single-template-ID-parameter overload of
167 PropertyPage::Create instead of three-parameter one.
168
169 * Makefile.in (OBJS): Remove other.o.
170 * other.cc: Remove file.
171
df62e023
RC
1722002-01-01 Robert Collins <rbtcollins@hotmail.com>
173
174 * README: Update TODO's.
175 * choose.cc (set_existence): Delete non installed packages with no
176 mirrors.
177 (fill_missing_category): Fix an off-by-one error.
178 (default_trust): Ditto. Also delete any unused categories.
179 (view::init_headers): Fix an off-by-one error.
180 (set_view_mode): Ditto.
181 (set_view_mode): Ditto.
182 (create_listview): Ditto.
183 (dialog_cmd): Ditto.
184 (do_choose): Ditto.
185 * io_stream.cc: Indent.
186 * io_stream.h: Ditto.
187 * package_db.cc: Ditto.
188 * package_meta.h: Const correctness for SDesc ();
189 * proppage.cc: Run d2u and indent.
190 * propsheet.cc: Run d2u and indent.
191 * window.cc: Run d2u and indent.
192 * window.h: Run d2u and indent.
193
cec57ee1
CF
1942001-12-28 Christopher Faylor <cgf@redhat.com>
195
e98c531e 196 * Makefile.in (iniparse.o): Accommodate newer bisons.
cec57ee1 197
ab57ceaa
RC
1982001-12-23 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
199
200 * window.h (Window): New file, new class.
201 * window.cc (Window): New file, new class.
202
203 * threebar.h (ThreeBarProgressPage): New file, new class.
204 * threebar.cc (ThreeBarProgressPage): New file, new class.
205
206 * splash.h (SplashPage): New file, new class.
207 * splash.cc (SplashPage): Replace file with implementation of new
208 class.
209
210 * source.h (SourcePage): New file, new class.
211 * source.cc: Run indent.
212 (SourcePage): Add class implementation to this file.
213 (do_source): Remove, functionality subsumed by SourcePage::Create()
214 and SourcePage::OnDeactivate().
215 (dialog_proc): Remove, functionality subsumed by
216 SourcePage::OnActivate().
217
218 * site.h: Run indent.
219 (SitePage): Add class declaration.
220 * site.cc: Run indent.
221 (SitePage): Add class implementation.
222 (do_download_site_info_thread): New function.
223 (context): New var. Context info for do_download_site_info_thread().
224 (do_download_site_info): New function.
225 (SitePage::Create, SitePage::OnInit SitePage::OnNext)
226 (SitePage::OnBack): SitePage class implementation..
227 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers, now handled
228 by SitePage members.
229 (dialog_proc): Remove, now handled by SitePage::OnInit and base class
230 functionality.
231 (do_site): Remove, now handled by do_download_site_info_thread() and
232 SitePage::OnNext functionality.
233 (get_site_list): Remove dismiss_url_status_dialog() call.
234
235 * root.h (RootPage): New file, new class.
236 * root.cc: Run indent.
237 (dialog_cmd): Pass parent HWND parameter to note(), yesno().
238 (dialog_proc): Remove.
239 (do_root): Remove
240 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL clauses from switch.
241 (RootPage::OnInit): New member function. Move get_root_dir() logic to
242 here from do_root().
243 (RootPage::Create): New member function.
244 (RootPage::OnNext): New member function. Move IDOK logic from
245 dialog_cmd() to here.
246 (RootPage::OnBack): New member function.
247
248 * propsheet.h (PropSheet): New file, new class.
249 * propsheet.cc (PropSheet): New file, new class.
250
251 * proppage.h (PropertyPage): New file, new class.
252 * proppage.cc (PropertyPage): New file, new class.
253
254 * postinstall.cc (do_postinstall): Add owner parameter.
255
256 * other.cc (do_other): Add owner parameter.
257
258 * nio-file.cc (NetIO::Purl): Pass NULL parent param to note().
259 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Pass NULL parent param to
260 get_ftp_auth().
261 * nio-http.cc (retry_get): Pass NULL parent param to get_auth(),
262 get_proxy_auth(),
263 and get_ftp_auth().
264 * nio-ie5.cc (NetIO::_url): Pass NULL parent param to note(),
265 get_auth(), get_proxy_auth().
266
267 * netio.h (get_auth, get_proxy_auth, get_ftp_auth): Add owner param.
268 * netio.cc (auth_common, NetIO::get_auth, NetIO::get_proxy_auth,
269 NetIO::get_ftp_auth)
270 (auth_common): Add owner param. Pass owner param to DialogBox.
271 (NetIO::get_auth, NetIO::get_proxy_auth, NetIO::get_ftp_auth): Pass
272 owner param to auth_common().
273
274 * net.h (NetPage): New file, new class.
275 * net.cc: Run indent.
276 (net.h, threebar.h): Add includes.
277 (Progress): Add extern.
278 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, now handled by
279 property sheet logic. Saved temporarily for reference.
280 (NetPage::Create, NetPage::OnInit, NetPage::OnDeactivate,
281 NetPage::OnNext, NetPage::OnBack):
282 New implementation of NetPage class members.
283 (do_net): Remove.
284 (dialog_proc): Remove.
285
286 * msg.h (fatal, note, yesno): Add owner param.
287 * msg.c (fatal, note, yesno, mbox): Add owner param.
288 (mbox): Remove MB_TOPMOST from MessageBox call. Unnecessary and wrong
289 now that we have a parent.
290
291 * main.cc: Run indent.
292 (commctrl.h, proppage.h, propsheet.h, splash.h, source.h)
293 (localdir.h, net.h, site.h, choose.h, threebar.h, desktop.h): Include
294 headers.
295 (root_dialog_proc): extern into this file.
296 (Progress): Progress dialog defined here, used in several other files.
297 (WinMain): Instantiate and create Splash, Source, Root, LocalDir, Net,
298 Site, Chooser, Desktop pages and MainWindow sheet. Call
299 InitCommonControls() to make sure Windows is set up for our use of
300 property sheets. Add pages to sheet.
301 Call MainWindow.Create() to "DoModal". Remove main loop, that logic is
302 now handled by the PropSheet class.
303 (root.h): Add include.
304
305 * log.cc (log_save): Pass NULL parent to fatal().
306 (exit_setup): Pass NULL parent to note().
307
308 * localdir.h (LocalDirPage): New file, new class.
309 * localdir.cc: Run indent.
310 (localdir.h): New include.
311 (threebar.h): New include.
312 (Progress): extern into this file.
313 (LocalDirPage::Create, LocalDirPage::OnInit, LocalDirPage::OnActivate)
314 (LocalDirPage::OnNext, LocalDirPage::OnBack): Implementation of
315 LocalDirPage.
316 (LocalDirPage::OnNext): Move log() call from do_local_dir() to here.
317 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers.
318 (do_local_dir): Remove.
319 (dialog_proc): Remove.
320 (cwd): Remove, not used by anything.
321
322 * install.cc: Run indent.
323 (process.h, threebar.h): New includes.
324 (Progress): extern into this file.
325 (ins_dialog, ins_action, ins_pkgname, ins_filename, ins_pprogress)
326 (ins_iprogress, ins_diskfull, init_event): Remove, now handled by
327 ThreeBarProgressPage.
328 (dialog_cmd, dialog_proc, dialog): Removed, handled in
329 ThreeBarProgressPage.
330 (init_dialog): Remove all mention of the above ins_* handles. Now
331 handled in ThreeBarProgressPage. Altered SetWindowText()s to call
332 ThreeBarProgressPage instance Progress directly.
333 (progress): Alter bar update logic to call ThreeBarProgressPage
334 instance Progress directly.
335 (uninstall_one): Alter SetWindowText()s to call ThreeBarProgressPage
336 instance Progress directly.
337 (install_one_source): Alter SetWindowText()s to call
338 ThreeBarProgressPage
339 instance Progress directly. Pass NULL parent to note().
340 (do_install_thread): Rename from do_install(), added owner param.
341 Alter SetWindowText()s to call ThreeBarProgressPage instance Progress
342 directly.
343 Remove dismiss_url_status_dialog() call, no longer necessary. Remove
344 ShowWindow(<hide>) call, also unnecessary now. Pass owner handle to
345 fatal().
346 (do_install_reflector): New function.
347 (do_install): New function.
348
349 * ini.cc (process.h, threebar.h): New includes.
350 (Progress): externed into this file.
351 (find_routine): Pass NULL parent to note().
352 (do_local_ini): Add owner param.
353 (do_remote_ini): Add owner param. Pass owner to get_url_to_membuf()
354 and note(). Remove call to dismiss_url_status_dialog().
355 (do_ini_thread): Rename from do_ini(). Add owner param. Pass owner to
356 do_local_ini(), do_remote_ini(), yesno(), and note(). Set next_dialog
357 to IDD_CHOOSER on exit.
358 (do_ini_thread_reflector): New function.
359 (context): New var. Context for do_ini_thread.
360 (do_ini): New function.
361
362 * geturl.h (get_url_to_membuf, get_url_to_string, get_url_to_file): Add
363 owner param.
364 * geturl.cc (gw_dialog, gw_url, gw_rate, gw_progress, gw_pprogress,
365 gw_iprogress)
366 (gw_progress_text, gw_pprogress_text, gw_iprogress_text, init_event):
367 Removed.
368 (threebar.h): New include.
369 (Progress): externed into this file.
370 (dialog_cmd, dialog_proc, dialog): Removed, handled by
371 ThreeBarProgressPage now.
372 (init_dialog): Remove "if (gw_dialog == 0)" clause. Alter
373 SetWindowText()s
374 and bar setting SendMessage()s to call ThreeBarProgressPage instance
375 Progress directly. Remove "one bar only" logic, this is now handled
376 explicitly in the ThreeBarProgressPage class.
377 (progress): Altered bar and text update logic to call
378 ThreeBarProgressPage instance Progress directly. Changed kbps
379 calculation to floating point and now print out a single decimal
380 place.
381 (get_url_to_membuf): Add owner param. Pass it to init_dialog.
382 (get_url_to_string): Add owner param. Pass it to get_url_to_membuf.
383 (get_url_to_file): Add owner param. Pass it to init_dialog. Alter bar
384 update logic to call ThreeBarProgressPage instance Progress directly.
385 (dismiss_url_status_dialog): Remove.
386
387 * fromcwd.cc (do_fromcwd): Add owner param. Initialize found_ini to
388 false, was true.
389
390 * download.cc: Run indent.
391 (process.h, threebar.h): New includes.
392 (Progress): externed into this file.
393 (download_one): Add owner param. Pass it to get_url_to_file().
394 (do_download_thread): Renamed from do_download. Add owner param. When
395 calculating total_download_bytes, take binpicked and srcpicked into
396 account. Remove call to dismiss_url_status_dialog(), no longer needed.
397 Pass owner handle to download_one() and yesno().
398 (do_download_reflector, do_download): New functions.
399 (context): New var. Context for do_download_thread().
400
401 * dialog.h (D(x)): Add owner param.
402
403 * desktop.h (DesktopSetupPage): New file, new class.
404 * desktop.cc: Run indent.
405 (desktop.h): Add include.
406 (dialog_proc, do_desktop): Remove, now handled in
407 DesktopSetupPage::OnInit().
408 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, handled in
409 DesktopSetupPage::OnFinish(), DesktopSetupPage::OnBack(), and PropSheet
410 resp.
411 (DesktopSetupPage::Create, DesktopSetupPage::OnInit)
412 (DesktopSetupPage::OnBack, DesktopSetupPage::OnFinish): Implementation
413 of DesktopSetupPage.
414
415 * cistring.h: New file, new class.
416 * cistring.cc: New file, new class.
417
418 * choose.h: Run indent.
419 (Chooser): New class declaration.
420 * choose.cc: Run indent.
421 (do_choose): Add owner param. Pass it to DialogBox() and
422 fatal().
423 (Chooser): New class implementation.
424
425 * res.rc (IDS_VERSION_INFO): New string.
426 (IDD_SOURCE, IDD_LOCAL_DIR, IDD_ROOT, IDD_SITE, IDD_OTHER_URL)
427 (IDD_DLSTATUS, IDD_INSTATUS, IDD_SPLASH, IDD_CHOOSE, IDD_DESKTOP):
428 Change WS_POPUP to WS_CHILD. Numerous positioning/size changes
429 throughout.
430 (IDD_CHOOSE): Give template the WS_EX_CONTROLPARENT style to enable
431 TAB control navigation etc. Give the controls a reasonable tab order.
432 Grouped radio buttons. Something's still not right, can't tab away
433 from back/next/cancel group reliably.
434 * resource.h (IDD_CHOOSER): New dialog ID.
435
436 * Makefile.in (OBJS): Add cistring.o, proppage.o, propsheet.o,
437 threebar.o, and window.o.
438
cc41a057
RC
4392001-12-21 Robert Collins <rbtcollins@hotmail.com>
440
441 * choose.cc (listview_proc): Update the scrollbar when the headers are dragged.
442 (pick_pkg_line::paint): Clip columns to prevent overlap.
443
cbfc4215
RC
4442001-12-20 Robert Collins <rbtcollins@hotmail.com>
445
446 * Makefile.in: Add libcomctl32.a for setup.exe.
447 * archive.h (archive): Prevent non-child direct creation of the class.
448 * archive_tar.h (archive_tar): Prevent inaccurate synthetic copy and assignment.
449 * choose.cc: Include commctrl for the choose header.
450 (NEW_COL_SIZE_SLOP): Define without magic numbers.
451 (pkgtrustp): Convert to function.
452 (set_action): Remove.
453 (add_required, fill_missing_category,default_trust): Use list syntax for
454 package list.
455 Use new set_action.
456 (choose_caption): Remove.
457 (topbucket::paint): New method.
458 (topbucket::empty): Ditto.
459 (topbucket::click): Ditto.
460 (topbucket::~topbucket): Ditto.
461 (paint): Remove i,ii and p as they are obsolete.
462 Remove header drawing code.
463 Use new chooser method to paint the chooser.
464 Use new chooser itemcount method.
465 (scroll_common): Rename to view::scroll.
466 Scroll the header window separately.
467 (list_vscroll, list_hscroll, list_click): Update for new chooser methods.
468 (listview_proc): Look for header messages.
469 (note_width): Accept stringless calls.
470 (pick_line::set_line): Remove.
471 (pick_line::paint): Remove.
472 (pick_pkg_line::paint): Paint this one line, using the header column widths.
473 (pick_category_line::paint): Paint this category, and anything in the bucket.
474 (pick_line::click): Remove.
475 (pick_pkg_line::click): Handle a click.
476 (pick_category_line::click): Handle a click.
477 (_view): Rename all to view.
478 (view::view): Initialise the control contents.
479 (view::set_headers): Work with the header control.
480 (view::init_headers): Use list syntax for package list.
481 Rearrange the width logic a little.
482 (view::insert_pkg): Update to use the hierarchy.
483 (view::insert_category): Ditto.
484 (view::insert_at, view::insert_under): Remove.
485 (view::clear_view): Update to use the hierarchy.
486 (view::click): Update to use the hierarchy.
487 (set_view_mode): Use list syntax for package list.
488 Update for new chooser methods.
489 (DoInsertItem): New helper function. (Needs a home somewhere).
490 (create_listview): Remove choose control code and use the constructor instead.
491 (dialog_cmd,scan2,do_choose): Use list syntax for package list.
492 * choose.h: Include newly required headers list and package_meta.
493 (_voew): Rename to view.
494 (pick_line): Convert to an ABC.
495 (pick_pkg_line): New class.
496 (pick_catgory_line): New class.
497 (topbucket): New class.
498 (view::scroll): New method created from listview_scroll function.
499 * desktop.cc (make_passwd_group): Use list syntax for package list.
500 * download.cc (do_download): Use list syntax for package list.
501 * fromcwd.cc (found_file): Use list syntax for package list.
502 * iniparse.y (pacakges): Use list syntax for package list.
503 * install.cc (uninstall_one): Use list syntax for package list.
504 (do_install): Use list syntax for package list.
505 * io_stream.h (io_stream): Prevent non-child direct creation of the class.
506 Prevent inaccurate synthetic copy and assignment.
507 * list.h: Include required header stdlib.
508 Work on const correctness.
509 * package_db.cc (packagedb::getpackagebyname): Remove.
510 (packagedb::packagedb): Remove custom list code, and make db a local.
511 (packagedb::getfirstpackage): Remove.
512 (packagedb::getnextpackage): Remove.
513 (packagedb::addpackage): Remove.
514 (flush): Remove custom list code.
515 (packagedb::registerpackage): Remove.
516 (packagedb::packages): New static member.
517 (packagedb::task): New static member.
518 * package_db.h (PackageDBActions): New enum.
519 (packagedb): Remove getfirstpackage, getnextpackage, getpackagebyname,
520 addpackage, registerpackage, packages, packagecount, curr_package, db.
521 Add packages, task.
522 * pacakge_meta.cc: Include package_db.h.
523 (packagemeta::action_caption): New method.
524 (packagemeta::set_action): New method.
525 * package_meta.h (CategoryPackage): Initialise key.
526 (packagemeta): Initialise key.
527 Add set_action and action_caption methods.
528 Prevent inaccurate synthetic copy and assignment.
529 * resource.h (IDC_CHOOSE_LISTHEADER): New ID.
530 * source.cc: Include package_db for db manipulation.
531 (save_dialog): Set the db task.
532 * win32.h: Tell the w32 include headers what IE version to expect/require.
533
cd8e5750
RC
5342001-12-06 Robert Collins <rbtcollins@hotmail.com>
535
536 * README: Wishlist updates.
537
5519d243
RC
5382001-12-04 Robert Collins <rbtcollins@hotmail.com>
539
540 * package_db.cc (getnextpackage): Don't overrun the array.
541
de6a1a64
RC
5422001-12-04 Robert Collins <rbtcollins@hotmail.com>
543
544 * Makefile.in (OBJS): Add setup_version.o.
545 (version.c): Rename to setup_version.
546 * choose.cc (set_action): Prevent NULL pointer dereference.
547 (package_sort): Remove.
548 * fromcwd.cc (canonicalize_version): Moved to version.cc.
549 (check_ini): New function for use with find to see if there is a cached setup.ini.
550 (do_fromcwd): Check for a cached setup.ini from any mirror site.
551 * ini.cc (find_routine): New function, for finding cached setup.ini's.
552 (do_local_ini): New function, drives parsing of local ini's.
553 (do_remote_ini): New function, drives parsing and caching of remote ini's.
554 (do_ini): Move guts to do_remote_ini and do_local_ini.
555 * list.h (removebyindex): New method.
556 * other.cc (save_dialog): Use new site_list and all_site_list to add the
557 new site to the site picklist.
558 (dialog_cmd): Only save the dialog when exiting the dialog.
559 * res.rc (IDD_SITE): Make IDC_URL_LIST a multiple-selection control.
560 * site.cc (site_list_type): Move to site.h
561 (site_list): New global, sites chosen by the user.
562 (all_site_list): New global, all potential sites.
563 (site_list_type::init): New method, parses a mirror.lst URL string into a
564 site_list_type object.
565 (site_list_type::site_list_type): New method.
566 (check_if_enable_next): Examine the control, not a local variable.
567 (load_dialog): Select all the user chosen sites by default.
568 (save_dialog): Adjust for multiple selection semantics.
569 (save_site_url): Save all user chosen sites.
570 (dialog_cmd): Don't save the dialog when the listbox recieves a message -
571 thats not needed.
572 Remove obsolete other_url reference.
573 (dialog_proc): Use all_site_list instead of site_list.
574 (site_sort): Remove.
575 (get_site_list): Remove malloc use - use list template instead.
576 Move site_list_type initialisation to site_list_type::init().
577 (get_initial_list_idx): Renamed to ...
578 (get_saved_sites): this. Also read in multiple sites to the site_list.
579 (do_site): Use all_site_list not site_list.
580 Log all chosen sites.
581 * site.h: New file, defines site related class, functions and variables.
582 * state.h: Add comment about use of state.h
583 (mirror_site): Remove.
584 (other_url): Remove.
585 (MIRROR_SITE): Remove.
586 * version.cc: New file, for version-handling and related functions.
587
341988b9
RC
5882001-12-02 Robert Collins <rbtcollins@hotmail.com>
589
590 * Makefile.in: Add filemanip.o to setup.
591 * archive.cc (archive::extract_file): Use new io_stream method 'copy'.
592 * archive_tar.h (archive_tar_file): Implement get_size virtual.
593 (archive_tar): Ditto.
594 * choose.cc (set_action): Use [] operator instead of getnth - its more readable.
595 (paint): Ditto.
596 (_view::init_headers): Ditto.
597 (_view::insert_pkg): Ditto.
598 (set_view_mode): Ditto.
599 (scan2): Ditto.
600 (do_choose): Ditto.
601 (base): Moved to filemanip.cc.
602 (find_tar_ext): Ditto.
603 (parse_filename): Ditto.
604 (_Info::_Info): Remove.
605 * compress_bz.h (compress_bz): Implement get_size virtual.
606 * compress_gz.h (compress_gz): Implement get_size virtual.
607 * cygpackage.cc (cygpackage::destroy): Use array delete for char * objects.
608 * download.cc (get_file_size): Move to filemanip.cc.
609 (check_for_cached): Use [] operator instead of getnth - its more readable.
610 (download_one): Ditto.
611 * filemanip.cc: New file.
612 * geturl.cc (init_dialog): Make url a pointer to const as it is not modified.
613 (get_url_to_membuf): New function - contains get_url_to_string worker code.
614 (get_url_to_string): Becomes a trivial wrapper to get_url_to_membuf.
615 * geturl.h: Declare new prototype.
616 * ini.cc (do_ini): Use get_url_to_membuf and pass ini_init an io_stream.
617 Tidy up the error code a little.
618 * ini.h: Remove __cplusplus protection for ini_init.
619 (_Info): Remove.
620 * inilex.l: Remove old globals.
621 (ini_init): Use an io_stream for getting the characters.
622 (ini_getchar): Ditto.
623 * iniparse.y: Declare yylex as a C++ function.
624 (add_correct_version): Use [] operator instead of getnth - its more readable.
625 * io_stream.cc (io_stream::move_copy): Use the copy method.
626 (io_stream::copy): New method to simply copy from one stream to another.
627 * io_stream.h (io_stream): New static method copy, and virtual method get_size.
628 * io_stream_cygfile.cc (io_stream_cygfile::get_size): Implement this.
629 * io_stream_cygfile.h (io_stream_cygfile::get_size): Declare this.
630 * io_stream_file.cc (io_stream_file::get_size): Implement this.
631 * io_stream_file.h (io_stream_file::get_size): Declare this.
632 * io_stream_memory.h: Include errno as it's neded to parse the header.
633 (io_stream_memory::get_size): Implement this.
634 (io_stream_memory::st_size): Delete this.
635 * list.h: Change getnth into the [] operator.
636 * netio.cc (NetIO::NetIO): Change prototype to reflect Purl not being modified.
637 (NetIO::set_url): Ditto.
638 (NetIO::open): Ditto.
639 * netio.h: As for netio.cc.
640 * nio-file.cc (NetIO_File::NetIO_File): Change prototype to reflect Purl not
641 being modified.
642 * nio-file.h: Ditto.
643 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
644 * nio-ftp.h (NetIO_FTP::NetIO_FTP): Ditto.
645 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Ditto.
646 * nio-http.h (NetIO_HTTP::NetIO_HTTP): Ditto.
647 * nio-i5.cc (NetIO_IE5::NetIO_IE5): Ditto.
648 * nio-i5.h (NetIO_IE5::NetIO_IE5): Ditto.
649 * package_meta.cc (packagemeta::~packagemeta): Bugfix: use array delete.
650 * package_source.cc (packagesource::set_canonical): Ditto.
651 (packagesource::set_cached): Ditto.
652 * package_source.h (site::~site): Ditto.
653 * site.cc: Change site_list_type to a class, and search and replace sort_key to
654 key globally.
655
071c1c54
RC
6562001-12-01 Robert Collins <rbtcollins@hotmail.com>
657
658 * package_source.cc (packagesource::set_canonical): Filename was out by one.
659
4fe323f9
RC
6602001-11-30 Robert Collins <rbtcollins@hotmail.com>
661
662 * Makefile.in (OBJS): Remove category_list - it's not needed.
663 * README: More wishlist updates.
664 * category.cc (Category::Category): Initialise new members.
665 (Categorycmp): New function.
666 * category.h (Category): New member key for template use.
667 * category_list.cc: Remove.
668 * category_list.h: Remove.
669 (Categorycmp): New function prototype.
670 * choose.cc: Remove category_list - not needed.
671 (set_action): Only show the 'source' option when the source is actually
672 available.
673 (add_required): Fix recursion limiter to 5.
674 (fill_missing_category): Use list access.
675 (default_trust): Ditto.
676 (pick_line::paint): Ditto.
677 (_view::init_headers): Ditto.
678 (_view::insert_pkg): Ditto.
679 (_view::insert_category): Ditto.
680 (_view::click): Ditto.
681 (set_view_mode): Ditto.
682 (do_choose): Ditto.
683 * cygpackage.h: Remove category_list - not needed.
684 * geturl.cc (get_url_to_string): Fix null byte insertion.
685 * inipatse.y: Remove category_list - not needed.
686 (categories): Use list access.
687 * package_db.cc: Ditto.
688 * package_db.h: Remove category_list - not needed.
689 (packagedb): Use the list template for categories.
690 * package_meta.cc (add_category): Ditto.
691 * package_meta.h (CategoryPackage): Link to the category as well.
692 (packagemeta): Use a list of CategoryPackages instead of Categories
693 for more memory efficient cross-referencing.
694
7d66d192
RC
6952001-11-30 Robert Collins <rbtcollins@hotmail.com>
696
697 * package_db.cc (packagedb::flush): Write a canonical version for all packages
698 irrespective of the media they were installed from.
699
bb849dbd
RC
7002001-11-29 Robert Collins <rbtcollins@hotmail.com>
701
702 * Makefile.in (OBJS): Add package_source and rfc1738.
703 * README: Wishlist update.
704 * category_list.cc (register_category): Use references.
705 * category_list.h (CategoryList): Ditto.
706 * choose.cc (isinstalled): Remove.
707 (pkgtrustp): New macro.
708 (set_action): Use packagemeta.
709 (add_required): Ditto.
710 (choose_caption): Example package to choose caption, rather than state flags.
711 (check_existence): Remove.
712 (set_existence): Remove old code.
713 (fill_missing_category): Use packagemeta.
714 (keep_or_skip): Remove.
715 (default_trust): Use packagemeta and set trust values directly.
716 (pick_line::set_line): Use packagemeta.
717 (_view::insert_pkg): Ditto.
718 (_view::insert_category): Ditto.
719 (_view::click): Ditto.
720 (set_view_mode): Ditto. Also remove "exclude" code.
721 (create_listview): Use packagemeta.
722 (dialog_cmd): Ditto.
723 (getpkgbyname): Remove
724 (scan2): Use packagemeta. Temporarily comment out the holefinding code.
725 (read_installed_db): Remove.
726 (package_sort): Use packagemeta.
727 (do_choose): Use packagemeta. Don't sort the packages - the db does that.
728 * choose.h: Use packagemeta.
729 * cygpackage.cc (cygpackage::cygpackage): Initialise all variables.
730 (cygpackage::cygpackage): Ditto.
731 (cygpackage::set_canonical_version): Copy the passed string.
732 (cygpackage::~cygpackage): Move cleanup code to destroy().
733 (cygpackage::destroy): New function.
734 (cygpackage::getfirstfile): Use a separate buffer.
735 (cygpackage::getnextfile): Ditto.
736 (cygpackage::Canonical_version): New function.
737 (cygpackage::set_sdesc): Ditto.
738 (cygpackage::set_ldesc): Ditto.
739 * cygpackage.h (cygpackage::Canonical_version): New method.
740 (cygpackage::set_sdesc): New method.
741 (cygpackage::set_ldesc): New method.
742 (cygpackage::SDesc): New method.
743 (cygpackage::LDesc): New method.
744 (cygpackage::set_canonical_version): New method.
745 * desktop.cc: Include packagedb headers.
746 (make_password_group): Use packagemeta.
747 * download.cc: Include packagedb headers.
748 (check_for_cached): New method to find any cached file and fill out the database
749 info.
750 (download_one): Take a packagesource, support multiple mirrors.
751 (do_download): Use packagemeta.
752 * from cwd.cc: Include packagedb headers.
753 (found_file): Use packagemeta.
754 * ini.cc (do_ini): Beginning of multiple-mirror support.
755 * ini.h (CategoryPackage): Remove.
756 (Dependency): Remove.
757 (Package): Remove.
758 (new_package,getpkgbyname,getpackagecategorybyname,add_category): Remove.
759 * inilex.l: Support multiple mirrors.
760 * iniparse.y: Include packagedb headers.
761 (parser): Use packagemeta.
762 (new_package): Remove.
763 (add_correct_version): New function.
764 (new_requirement): Remove.
765 (add_category): Remove.
766 * install.cc (uninstall_one): Use packagemeta.
767 (install_one_source): New function.
768 (install_one): Use packagemeta.
769 (do_install): Use packagemeta.
770 * io_stream.cc (io_stream::move): Bugfix on move/copy case.
771 * io_stream_cygfile.cc (io-stream_cygfile::set_mtime): Do not reopen the file
772 after setting the mtime, it makes no sense, and results in 0 length files.
773 * io_stream_file.cc (io-stream_file::set_mtime): Ditto.
774 * list.h: New file, template class for a form of list.
775 * package_db.cc (packagedb::registerpackage): New function.
776 * package_db.h (packagedb::npackages ()): New method.
777 * package_meta.cc (packagemeta::add_version): Use list template.
778 (packagemeta::set_installed): Ditto.
779 (packagemeta::add_category): New method.
780 * package_meta.h: Include necessary headers to parse the class.
781 (CategoryPackage): New class.
782 (packagemeta): Initialise all members.
783 (packagemeta::SDesc): New method.
784 (packagemeta::Categories): New method.
785 (packagemeta::add_category): Ditto.
786 (packagemeta::versions): Change to be a list instance.
787 * package_source.cc (packagesource::set_canonical): New method.
788 (packagesource::set_cached): New method.
789 * package_source.h: Include necessary headers to parse the class.
790 (site): New class.
791 (packagesource::packagesource): Initialize all members.
792 (packagesource): Make this class non-abstract.
793 * package_version.cc (packageversion::packageversion): New method.
794 * package_version.h (Dependency): New class.
795 (packageversion::Canonical_vesion): New method.
796 (packageversion::SDesc): New method.
797 (packageversion::LDesc): New method.
798 (packageversion::new_requirement): Ditto.
799 (packageversion::srcpicked, binpicked): What to install.
800 (packageversion::src, bin): Installation source data.
801 * rfc1738.cc: New file. Escapes special characters in URL's.
802 * rfc1738.h: Ditto.
803
90d14922
RC
8042001-11-26 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
805
806 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Stop header parsing when
807 SimpleSocket::gets() returns a zero-length string, so that we
808 don't end up eating the entire stream thinking it's all header info.
809
7c7034e8
RC
8102001-11-23 Robert Collins <rbtcollins@hotmail.com>
811
812 * install.cc (badrename): Remove.
813 (do_install): Use packagedb flush method to write /etc/setup/installed.db.
814 * io_stream.cc (io_stream::move_copy): New method.
815 (io_stream::move): New method.
816 * io_stream.h (io_stream): New methods move and move_copy.
817 * io_stream_cygfile.cc (io_stream_cygfile::move): New method.
818 * io_stream_cygfile.h (io_stream_cygfile): New method move.
819 * io_stream_file.cc (io_stream_file::move): New method.
820 * io_stream_file.h (io_stream_file): New method move.
821 * package_db.cc (packagedb::flush): New method.
822 * package_db.h (packagedb): New method flush.
823
fa0c0d10
RC
8242001-11-23 Robert Collins <rbtcollins@hotmail.com>
825
826 * Makefile.in (OBJS): Add package_version.
827 * ategory.cc (Category::Category): Update constructors.
828 * category_list.cc (CategoryList::register_category): Insert correctly.
829 * choose.cc: Include package_version.h, not package.h.
830 * cygpackage.cc: Ditto.
831 (cygpackage::uninstall): New method.
832 * cygpackage.h (cygpackage): Rename genericpackage to packageversion.
833 New method uninstall.
834 * hash.cc (add, has, enumerate): Change prototype to be accurate.
835 * hash.h (hash): Change prototypes to be accurate.
836 * ini.h (_Info): New parameterless constructor.
837 (CategoryPackage): New constructor.
838 (Package): Ditto.
839 * install.cc: Don't include unneeded headers.
840 Include package database headers.
841 (hash::add_subdirs): Remove.
842 (uninstall_one): Use packagemeta->uninstall to perform the uninstallation.
843 Don't uninstall source packages.
844 (do_install): Just can uninstall_one once as we ignore source packages now.
845 Don't copy the installed.old database accross, instead iterate through the
846 packagedb packages list and write the isntalled packages out.
847 * package_db.cc: Include package_version.h, not package.h.
848 (packagedb::packagedb): Never let db be undefined.
849 Record the installation filename, so we can reconstruct installed.db.
850 (packagedb::addpackage): Insert packages in alpha sorted order.
851 (packagedb::categories): Initialise correctly.
852 * package_meta.cc: Include win32 and mount headers as a workaround to
853 current io_stream limitations. Include a TODO about that.
854 (standard_dirs): New, from install.cc.
855 (hash::add_subdirs): New, from install.cc.
856 (packagemeta::set_installed): Rename genericpackage to packageversion.
857 (packagemeta::uninstall): New method.
858 * package_meta.h: Rename genericpackage to packageversion.
859 (packagemeta): Update constructor.
860 (add_version, set_installed): Rename genericpackage to packageversion.
861 (uninstall): New method.
862 (installed_from): New member.
863 * package_source.cc: New file.
864 * package_source.h: New file.
865 * package_version.cc: New file.
866 * package_version.h: New file.
867 * package.cc: Removed.
868 * package.h: Removed.
869
7b606ae5
RC
8702001-11-21 Robert Collins <rbtcollins@hotmail.com>
871
872 * Makefile.in (OBJS): Add category.o and category_list.o.
873 * category.h: New file.
874 * category.cc: New file.
875 * category_list.h: New file.
876 * category_list.cc: New file.
877 * choose.cc: Include category headers.
878 (fill_missing_category): Use package_db to access global categories.
879 (_view::insert_pkg): Ditto.
880 (_view::insert_category): Ditto.
881 (set_view_mode): Ditto.
882 (getcategorybyname): Remove.
883 * cygpackage.h: Include category_list.h to parse this correctly.
884 (cygpackage): New virtual &Categories.
885 * ini.h (_CategoryPackage): More C to C++ conversion.
886 (Category): Remove.
887 (getcategorybyname): Remove.
888 (register_category): Remove.
889 * iniparse.y: Include package db and category headers.
890 (categories): Use package_db to access global categories.
891 (category): Remove.
892 (ncategories): Remove.
893 (register_category): Remove.
894 * package.h: New virtual &Categories.
895 * package_db.cc (packagedb::packagedb): Don't read the installed db twice.
896 (packagedb::categories): Declare.
897 * package_db.h (packagedb): New member categories for global categories list.
898
d0fa1c4e
RC
8992001-11-21 Robert Collins <rbtcollins@hotmail.com>
900
901 * choose.h: Don't include ini.h
902 * ini.h: Allow pure c++ in the header file.
903
24cbae7f
RC
9042001-11-21 Robert Collins <rbtcollins@hotmail.com>
905
906 * install.cc (do_install): Write a version 2 installed.db file.
907 * package_db.cc (packagedb::packagedb): Read version 1 and 2 installed.db files.
908
7939f6d1
RC
9092001-11-21 Robert Collins <rbtcollins@hotmail.com>
910
911 * Makefile.in (OBJS): Add package abstraction objects.
912 * choose.cc: Include package abstraction headers.
913 (read_installed_db): Use packagedb class and ignore installed sources.
914 * cygpackage.cc: New file.
915 * cygpackage.h: New file.
916 * filemanip.h (get_file_size): Use unixy types.
917 * package.h: New file.
918 * package.cc: New file.
919 * package_db.cc: New file.
920 * package_db.h: New file.
921 * package_meta.cc: New file.
922 * package_meta.h: New file.
923
33bc0053
RC
9242001-11-21 Robert Collins <rbtcollins@hotmail.com>
925
926 * REAME: Updates to wishlist.
927
12ccadc0
RC
9282001-11-16 Robert Collins <rbtcollins@hotmail.com>
929
930 * README: Updated and added my list of wishlist and todo items.
931
ca9506cc
RC
9322001-11-14 Robert Collins <rbtcollins@hotmail.com>
933
934 * Makefile.in (OBJS): Include io_stream_memory in setup.exe.
935 * archive_tar.cc (archive_tar::write): New prototype.
936 (archive_tar::seek): New method.
937 * archive.h (archive_tar_file): Update write() and add seek().
938 (archive_tar): Ditto.
939 * archive_tar_file.cc (archive_tar_file::write): New prototype.
940 (archive_tar_file::seek): New method.
941 * compress_bz.cc (compress_bz::write): New prototype.
942 (compress_bz::seek): New function.
943 * compress_bz.h (compress_bz): Update write() and add seek().
944 * compress_gz.cc (compress_gz::write): New prototype.
945 (compress_gz::seek): New function.
946 * compress_gz.h (compress_gz): Update write() and add seek().
947 * geturl.cc: Include io_stream headers.
948 (GUBuf): Remove.
949 (get_url_to_string): Use a io_stream_memory buffer instead of GUBuf.
950 * io_stream.h (io_stream_seek_t): New enum.
951 (io_stream): Update write() and add seek().
952 * io_stream_cygfile.cc (io_stream_cygfile::write): New prototype.
953 (io_stream_cygfile::seek): New function.
954 * io_stream_cygfile.h (io_stream_cygfile): Update write() and add seek().
955 * io_stream_file.cc (io_stream_file::write): New prototype.
956 (io_stream_file::seek): New function.
957 * io_stream_file.h (io_stream_file): Update write() and add seek().
958
2db33f10
RC
9592001-11-13 Brian Keener <bkeener@thesoftwaresource.com>
960
961 * localdir.cc: Add headers unistd.h and port.h.
962 (save_local_dir): Expand search logic to include local directory for
963 location of file last-cache.
964 (dialog_cmd): Skip IDD_ROOT when downloading and use Back button.
965 (do_local_dir): Expand search logic to include local directory for file
966 last-cache.
967 * res.rc (IDD_CHOOSE_DIALOG): Add hotkey to View button.
968 * Source.cc (dialog_cmd): Skip IDD_ROOT if select Download from
969 Internet.
970 (do_source): Default to Install from Internet on first entry or
971 previous selection if backing up from IDD_ROOT or IDD_LOCAL_DIR.
972
03a6c5b1
RC
9732001-11-13 Robert Collins <rbtcollins@hotmail.com>
974
975 * choose.cc (find_tar_ext): Only match at the end of the string.
976 (getpkgbyname): Prevent NULL pointer dereference.
977
b24c88b3
RC
9782001-11-13 Robert Collins <rbtcollins@hotmail.com>
979
980 * Makefile.in (CFLAGS): Add warnings and -Werr.
981 (WARNONLY_FLAGS): For sources that produce (harmless) errors no matter what.
982 (OBJS): Add io_stream class' objects.
983 (autoload.o): Use WARNONLY_FLAGS.
984 (inilex.o): Ditto.
985 (iniparse.o): Ditto.
986 * archive.cc: New file.
987 * archive.h: New file.
988 * archive_tar.cc: New file.
989 * archive_tar.h: New file.
990 * archive_tar_file.cc: New file.
991 * autoload.c: Fix compiler warnings (unused, deprecated conversion).
992 * choose.cc: Use io_stream.h, not mount.h.
993 Run indent.
994 (find_tar_ext): Rewritten to use strstr, and to accept .tar as an extension.
995 (read_installed_db): Use io_streams.
996 * choose.h: Run indent.
997 * compress.cc: New file.
998 * compress.h: New file.
999 * compress_bz.cc: New file.
1000 * compress_bz.h: New file.
1001 * compress_gz.cc: New file.
1002 * compress_gz.h: New file.
1003 * concat.cc: Run indent.
1004 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1005 * concat.h: Run indent.
1006 * desktop.cc: Run indent.
1007 Include mklink2.h rather than redefining by hand.
1008 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1009 (etc_profile): Fix compiler warning (deprecated conversion).
1010 (make_link): Fix compiler warning (deprecated conversion).
1011 Tidy up use of args variable - consolidate into argbuf.
1012 (start_menu): Fix compiler warning (deprecated conversion).
1013 (desktop_icon): Fix compiler warning (deprecated conversion).
1014 (make_etc_profile): Fix compiler warning (deprecated conversion).
1015 (uexists): Fix compiler warning (deprecated conversion).
1016 (check_desktop): Fix compiler warning (deprecated conversion).
1017 (check_startmenu): Fix compiler warning (deprecated conversion).
1018 * dialog.cc: Run indent.
1019 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1020 (fatal): Fix compiler warning (deprecated conversion).
1021 * dialog.h: Run indent.
1022 * diskfull.cc: Run indent.
1023 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1024 * download.cc: Run indent.
1025 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1026 (download_one): Fix compiler warning (signed vs unsigned comparison).
1027 * filemanip.h: Run indent.
1028 * find.cc: Run indent.
1029 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1030 (find): Fix compiler warning (deprecated conversion).
1031 * find.h: Run indent.
1032 * fromcwd.cc: Run indent.
1033 * geturl.cc: Run indent.
1034 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1035 (dialog_cmd): Return a value.
1036 (dialog_proc): Remove unused variables.
1037 Return a value.
1038 (get_url_to_file): Fix compiler warning (deprecated conversion).
1039 * geturl.h: Run indent.
1040 * hash.cc: Run indent.
1041 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1042 * hash.h: Run indent.
1043 * ini.cc: Run indent.
1044 Use io_streams.
1045 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1046 (do_ini): Use io_streams for local io.
1047 * ini.h: Run indent.
1048 * inilex.l (ignore_line): Fix compiler warning (is not a prototype).
1049 Fix compiler warning (brackets for truth assignment).
1050 * install.cc: Run indent.
1051 Fix compiler warning (/* in comment).
1052 Use io_streams.
1053 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1054 (dialog_cmd): Return a value.
1055 (dialog_proc): Return a value.
1056 (start_tics): Deleted - was unused.
1057 (badrename): Fix compiler warnings (unused, deprecated conversion).
1058 (standard_dirs): Fix compiler warning (deprecated conversion).
1059 (exists): Remove.
1060 (uninstall_one): Convert to io_streams.
1061 (install_one): Convert to io_streams.
1062 (do_install): Convert to io_streans.
1063 Fix compiler warning (deprecated conversion).
1064 * io_stream.cc: New file.
1065 * io_stream.h: New file.
1066 * io_stream_cygfile.cc: New file.
1067 * io_stream_cygfile.h: New file.
1068 * io_stream_file.cc: New file.
1069 * io_stream_file.h: New file.
1070 * localdir.cc: Run indent.
1071 Use io_streams.
1072 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1073 (get_root_dir_now): Remove.
1074 (save_local_dir): Convert to io_streams.
1075 (dialog_cmd): Return a value.
1076 (do_local_dir): Convert to io_streams.
1077 (log.cc): Run indent.
1078 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1079 (log): Fix compiler warning (deprecated conversion).
1080 (log_save): Fix compiler warning (deprecated conversion).
1081 * log.h: Run indent.
1082 (log): Fix compiler warning (deprecated conversion).
1083 (log_save): Fix compiler warning (deprecated conversion).
1084 * main.cc: Run indent.
1085 Don't include "netio.h".
1086 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1087 (netio_test): Remove.
1088 (sid_auth): Fix compiler warning (partially bracketed initialiser).
1089 (WinMain): Return a value.
1090 * mkdir.cc: Run indent.
1091 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1092 * mklink2.c: Run indent.
1093 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1094 (mkcygsymlink): New function.
1095 * mklink2.h: New file.
1096 * mount.cc: Run indent.
1097 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1098 (create_mount): Remove unused variables.
1099 (cygpath): Fix compiler warning (signed vs unsigned comparison).
1100 * mount.h: Run indent.
1101 * msg.cc: Run indent.
1102 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1103 (msg): Fix compiler warning (deprecated conversion).
1104 (mbox): Fix compiler warning (deprecated conversion).
1105 * msg.h: Run indent.
1106 (msg): Fix compiler warning (deprecated conversion).
1107 * net.cc: Run indent.
1108 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1109 (dialog_cmd): Return a value.
1110 * netio.cc: Run indent.
1111 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1112 (auth_cmd): Return a value.
1113 * netio.h: Run indent.
1114 * nio-file.cc: Run indent.
1115 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1116 (NetIO_File::NetIO_File): Fix compiler warning (deprecated conversion).
1117 * nio-file.h: Run indent.
1118 * nio-ftp.cc: Run indent.
1119 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1120 * nio-ftp.h: Run indent.
1121 * nio-http.cc: Run indent.
1122 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1123 * nio-http.h: Run indent.
1124 * nio-ie5.cc: Run indent.
1125 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1126 * nio-ie5.h: Run indent.
1127 * other.cc: Run indent.
1128 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1129 (dialog_cmd): Return a value.
1130 * port.h: Run indent.
1131 * postinstall.cc: Run indent.
1132 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1133 (cmd): Fix compiler warning (deprecated conversion).
1134 (eun): Fix compiler warning (deprecated conversion).
1135 * root.cc: Run indent.
1136 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1137 * simpsock.cc: Run indent.
1138 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1139 * simpsock.h: Run indent.
1140 * site.cc: Run indent.
1141 Use io_streams.
1142 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1143 (get_root_dir_now): Remove.
1144 (save_site_url): Convert to io_streams.
1145 (dialog_cmd): Return 0.
1146 (get_initial_list_idx): Convert to io_streans.
1147 * source.cc: Run indent.
1148 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1149 (check_if_enable_next): Remove.
1150 (load_dialog): Remove unused variables.
1151 (save_dialog): Ditto.
1152 (dialog_cmd): Return a value.
1153 * splash.cc: Return a value.
1154 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1155 (dialog_cmd): Return a value.
1156 * state.cc: Run indent.
1157 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1158 * state.h: Run indent.
1159 * tar.h: Remove.
1160 * tar.cc: Remove.
1161
398dd7b2
CF
11622001-11-12 Christopher Faylor <cgf@redhat.com>
1163
1164 * desktop.cc (start_menu): Change start menu name to "Cygwin".
1165 (check_startmenu): Ditto.
1166
c29ee141
CF
11672001-11-11 Christopher Faylor <cgf@redhat.com>
1168
1169 * choose.cc (parse_filename): Finish reorganization by correctly
1170 decrementing p in memmove.
1171
3a8276de
CF
11722001-11-11 Christopher Faylor <cgf@redhat.com>
1173
1174 * choose.cc (parse_filename): Reorganize code to work around gcc
1175 optimization problem.
1176
6eea52fb
RC
11772001-11-09 Gareth Pearce <tilps@hotmail.com>
1178
1179 * choose.cc (set_action): Allow skip as an option for installed
1180 packages that have version number not listed in setup.ini.
1181
cf99b153
RC
11822001-11-10 Robert Collins <rbtcollins@hotmail.com>
1183
1184 * choose.cc (set_cation): Backout last change.
1185 (choose_caption): Ditto.
1186
55e204f6
RC
11872001-11-10 Robert Collins <rbtcollins@hotmail.com>
1188
1189 * ini.h (actions): Remove - transferred to choose.h.
1190 (views): Ditto.
1191 * choose.h: Protect class's from "C" compilers.
1192 (actions): New enum, from ini.h. This may not be the 'right' place
1193 but that place doesn't exist yet.
1194 (_views): New enum, from ini.h.
1195 * choose.cc (set_action): Handle installed packages with a version not in
1196 setup.ini.
1197 (choose_caption): Ditto.
1198 * iniparse.y: Rearrange header order to handle new ini.h.
1199
12002001-11-10 Robert Collins <rbtcollins@hotmail.com>
1201
1202 * ini.h (_Info): Fix compiler warnings (signed vs unsigned comparison).
1203 (registry_category): Fix compiler warning (deprecated conversion).
1204 * iniparse.y (registry_category): Ditto.
1205 * choose.cc (cvsid): Fix compiler warnings (unused, deprecated conversion).
1206 (add_requried): Remove unused variable.
1207 (choose_caption): Handle all enumeration values via a default.
1208 (paint): Fix compiler warnings (unused, deprecated conversion).
1209 (scroll_common): Fix compiler warnings (unused, signed vs unsigned comparison).
1210 (list_clicK): Fix compiler warnings (signed vs unsigned comparison).
1211 (note_width): Fix compiler warnings (deprecated conversion).
1212 (keep_or_skip): Fix compiler warnings (unused).
1213 (_view::mode_caption): Fix compiler warnings (deprecated conversion).
1214 (set_view_mode): Fix compiler warnings (unused).
1215 (create_listview): Fix compiler warnings (unused, incorrect format, reaches
1216 end of function).
1217 (dialog_proc): Fix compiler warnings (unused).
1218 (read_installed_db): Fix compiler warnings (unused, deprecated conversion).
1219 * choose.h (_header): Fix compiler warnings (deprecated conversion).
1220 (_view): Ditto.
1221
67a55ad9
RC
12222001-11-08 Pavel Tsekov <ptsekov@syntrex.com>
1223
1224 * simpsock.h (SimpleSocket::invalidate): Declare new method.
1225 * simpsock.cc (SimpleSocket::invalidate): Implement new method.
1226 (SimpleSocket::SimpleSocket): Initialize buf to zero. Do not allocate
1227 memory for buf in the constructor.
1228 (SimpleSocket::~SimpleSocket): Use SimpleSocket::invalidate().
1229 (SimpleSocket::printf): Use SimpleSocket::write() instead of send().
1230 (SimpleSocket::write): Check object consistency - return -1 on error.
1231 invalidate() the object on socket write error.
1232 (SimpleSocket::fill): Check object consistency - return -1 on error.
1233 invalidate() the object if socket read error is encountered and there
1234 is no more data available in the internal read buffer.
1235 Allocate memory for the internal read buffer.
1236 (SimpleSocket::gets): Return zero (NULL pointer) if error is encountered
1237 during fill() and no more data is available in the internal read buffer.
1238 (SimpleSocket::read): Check object consistency - return -1 on error.
1239 invalidate() the object if socket read error is encountered.
1240 * nio-ftp.cc (NetIO_FTP:NetIO_FTP): Allow 125 as valid response code to
1241 the RETR command (fix for MS IIS ftp server 5 - possibly others too).
1242 (NetIO_FTP::ok): Check if the SimpleSocket object is ok().
1243 (NetIO_FTP::read): Use NetIO_FTP::ok().
1244 * nio-http.cc: Check for valid return value of SimpleSocket::gets().
1245 (NetIO_HTTP::ok): Check if the SimpleSocket object is ok().
1246
5898e300
RC
12472001-11-09 Robert Collins <rbtcollins@hotmail.com>
1248
1249 * simpsock.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
1250 (SimpleSocket::SimpleSocket): Avoid compiler warnings (deprecated conversion).
1251 (SimpleSocket::printf): Ditto.
1252 (SimpleSocket::write): Ditto.
1253 * simpsock.h (SimpleSocket): Avoid compiler warnings for constructor,
1254 printf and write.
1255 * nio-ftp.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
1256 (NetIO_FTP::NetIO_FTP): Remove unused variable done.
1257 * nio-http.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
1258
8e58f8fd
RC
12592001-11-07 Charles Wilson <cwilson@ece.gatech.edu>
1260
1261 * geturl.cc (get_url_to_string): clean up memory leak
1262 (get_url_to_file): ditto
1263
4b4002ab
RC
12642001-11-06 Robert Collins <rbtcollins@hotmail.com>
1265
1266 * localdir.cc (dialog_cmd): Go back to IDD_ROOT in every case.
1267 * source.cc (dialog_cmd): Go forward to IDD_ROOT in every case.
1268
94525fd9
RC
12692001-11-06 Pavel Tsekov <ptsekov@syntrex.com>
1270
1271 * fromcwd.cc (found_file): Free() memory containing the version and
1272 filepath information for a given package, before replacing the pointers which
1273 reference this memory.
1274
12752001-11-06 Robert Collins <rbtcollins@hotmail.com>
ca83c665
RC
1276
1277 * fromcwd: Fix compiler warnings for cvsid.
1278 (canonicalize_version): Fix compilter warnings.
1279 (do_fromcwd): Ditto.
1280 * version.h: Fix compiler warnings for canonicalize_version.
1281
ce1f9ec2
RC
12822001-11-03 Robert Collins <rbtcollins@hotmail.com>
1283
1284 * res.rc (IDD_CHOOSE): Move the view caption to the right hand side.
1285
89d82ec7
RC
12862001-11-02 Robert Collins <rbtcollins@hotmail.com>
1287
1288 * res.rc (IDD_CHOOSE): Tweak for use on a 640x480 screen.
1289
c8fea72a
RC
12902001-11-02 Robert Collins <rbtcollins@hotmail.com>
1291
8114d309
RC
1292 * choose.cc (set_action): Correctly allow skip for any uninstalled package.
1293
12942001-11-02 Robert Collins <rbtcollins@hotmail.com>
1295
1296 * choose.cc (default_trust): Change the "Required" forced install category to
1297 "Base".
c8fea72a 1298
f557695e
RC
12992001-11-02 Robert Collins <rbtcollins@hotmail.com>
1300
1301 * choose.cc: Ran indent.
1302 (set_action): When the requested trust level is missing and the level was not
1303 user requested, set the action to ACTION_SAME_CURR.
1304
9a60dafc
CF
13052001-11-01 Christopher Faylor <cgf@redhat.com>
1306
f557695e
RC
1307 * Makefile.in (mingw_getopt.o): Fix typo in non-verbose compilation.
1308
13092001-11-02 Robert Collins <rbtcollins@hotmail.com>
1310
1311 * choose.cc (_view::init_headers): Resync with the paint logic.
9a60dafc 1312
878faffd
RC
13132001-11-02 Robert Collins <rbtcollins@hotmail.com>
1314
1315 * choose.cc (add_required): Allow SKIP and SRC_ONLY for currently installed
1316 packages.
1317
05bfdf26
RC
13182001-11-02 Robert Collins <rbtcollins@hotmail.com>
1319
1320 * choose.cc (default_trust): Autoset currently installed packages per the user's
1321 selection of prev/curr/exp.
1322
0b9af00c
RC
13232001-11-02 Robert Collins <rbtcollins@hotmail.com>
1324
1325 * splash.cc (dialog_proc): Return TRUE as specified in the WIN32 API.
1326
7cefe128
RC
13272001-11-02 Pavel Tsekov <ptsekov@syntrex.com>
1328
1329 * geturl.cc (is_showing): Remove.
1330 (is_local_install): New static variable. Controls whether the
1331 progress dialog and the supporting thread will be created.
1332 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the WIN32 API.
1333 (init_dialog): Remove usage of SetForegroundWindow and is_showing.
1334 This prevents the progress dialog to gain control over the
1335 application and fixes the "setup.exe going to background" problem.
1336 (progress): Use is_local_install.
1337 (get_url_to_string): Set is_local_install.
1338 (dismiss_url_status_dialog): Use is_local_install.
1339 * install.cc (dialog_proc): Return TRUE as specified in WIN32 API.
1340 (init_dialog): Remove usage of SetForegroundWindow.
1341 This prevents the progress dialog to gain control over the
1342 application and fixes the "setup.exe going to background" problem.
1343
42a99ed1
RC
13442001-11-02 Robert Collins <rbtcollins@hotmail.com>
1345
1346 * choose.cc (list_click): Change r to row for clarity.
1347 When we shrink the list below 1 page, scroll to the top of the list.
1348 (_view::click): Return the actual change for contractions.
1349 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the Win32 API.
1350
45c2d7d3
RC
13512001-11-02 Robert Collins <rbtcollins@hotmail.com>
1352
1353 * choose.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
1354 * localdir.cc: Ran indent.
1355 (get_root_dir_now): New function.
1356 (save_local_dir): New function.
1357 (dialog_cmd): Use it and swap cygwin root selection and local dir selection order.
1358 (do_local_dir): If there is a saved local dir, read it in.
1359 * net.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
1360 * root.cc (dialog_cmd): Ditto.
1361 * source.cc (dialog_cmd): Ditto.
1362
2399c54d
RC
13632001-11-01 Robert Collins <rbtcollins@hotmail.com>
1364
1365 * choose.cc(list_vscroll): Return 0 as required by win32.
1366 (list_hscroll): Ditto.
1367 (list_click): Ditto.
1368
8e4402a9
RC
13692001-11-01 Robert Collins <rbtcollins@hotmail.com>
1370
1371 * argv.cc: Remove.
1372 * argv.h: Remove.
1373 * main.cc(WinMain): Use __argv to retrieve command line parameters.
1374 * Makefile,in: Remove argv.o.
1375
c168185f
RC
13762001-11-01 Matt Hargett <matt@use.net>
1377
1378 * geturl.cc (progress): Change int to unsigned int to eliminate
1379 lint warnings.
1380 * (get_url_to_string): Check for NULL pointer.
1381 * mount.cc (find2): Use free instead of delete for malloc'd
1382 memory.
1383 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Fix memory leak.
1384
f97a1ece
RC
13852001-10-31 Robert Collins <rbtcollins@hotmail.com>
1386
1387 * choose.cc(_view::insert_under): Handle linen > nlines and lines[linen] with neither
1388 a package nor a category. The lines[linen] bug was reported by Matt (matt@usa.net).
1389 (read_installed_db): Bugfix for testing whether a package has a source tarball.
1390 Reported by Matt (matt@usa.net).
1391 * geturl.cc(dialog): Rename gw_dialog to local_gw_dialog to avoid programmer
1392 confusion and lint errors. Reported by Matt (matt@usa.net).
1393
d52ed64b
RC
13942001-10-31 Robert Collins <rbtcollins@hotmail.com>
1395
1396 * argv.cc: New file, converts arguments for -mwindows programs. (Simplified derivation
1397 from dcrt0.cc.)
1398 * argv.h: New file.
1399 * Makefile,in: Add argv.o and mingw_getopt.o to setup.exe object list.
1400 Add mingw_getopt.o build rule.
1401 * main.cc(WinMain): Initialise argv and argc for use by getopt.
1402
392ba1ba
CF
14032001-10-27 Christopher Faylor <cgf@redhat.com>
1404
1405 * res.rc: Rearrange info on top line slightly.
1406
31324d15
CF
14072001-10-27 Christopher Faylor <cgf@redhat.com>
1408
1409 * desktop.cc (make_passwd_group): Move file creation earlier in the
1410 process to ensure that passwd-grp.bat reflects desired operation.
1411
14122001-27-10 Trevor Forbes <t4bs@hotmail.com>
1413
1414 * postinstall.cc (each): Remove "*.done" file else rename will fail.
1415
ee411d77
CF
14162001-10-16 Christopher Faylor <cgf@redhat.com>
1417
1418 * res.rc: Oops. Take 640x480 screen size into account.
1419
e74944da
CF
14202001-10-16 Christopher Faylor <cgf@redhat.com>
1421
1422 * res.rc: Enlarge chooser screen.
1423
e368cfb9
CF
14242001-10-12 Christopher Faylor <cgf@redhat.com>
1425
1426 * Makefile.in: Accomodate changes to w32api_include macro.
1427
a6ba3670
CF
14282001-10-12 Christopher Faylor <cgf@redhat.com>
1429
1430 * Makefile.in: Use correct flags for windres.
1431
683e96f6
CF
14322001-10-12 Christopher Faylor <cgf@redhat.com>
1433
1434 * Makefile.in (CFLAGS): Remove -nostdinc from CFLAGS.
1435
2c18c00b
CF
14362001-10-12 Christopher Faylor <cgf@redhat.com>
1437
1438 * choose.cc (pick_line::paint): Reorganize after botched patch.
1439
0f61a05a
CF
14402001-10-12 Christopher Faylor <cgf@redhat.com>
1441
1442 * choose.cc (pick_line::paint): Add missing declaration.
1443
308d6f3e
CF
14442001-10-10 Ralf Habacker <Ralf.Habacker@freenet.de>
1445
1446 * choose.cc (pick_line::paint): Add package name to sdesc for display.
1447
3bcf85be
RC
1448Wed Sep 26 21:39:00 Robert Collins rbtcollins@hotmail.com
1449
1450 * choose.cc (_view::insert_pkg): Correctly exit loop.
1451 * iniparse.y (register_category): Always insert new categories.
1452
fb2cd8f6
CF
1453Fri Sep 21 13:56:32 2001 Christopher Faylor <cgf@cygnus.com>
1454
1455 * inilex.l (yylex): For comments, eat all characters up to, but not
1456 including newline.
1457
127b32e1
CF
1458Sun Aug 26 12:50:01 2001 John Marshall <jmarshall@acm.org>
1459
1460 * fromcwd.cc (found_file): Use correct package name when adding an
1461 unknown package rather than random stack garbage.
1462
2cd555aa
CF
1463Sun Aug 12 14:25:21 2001 Christopher Faylor <cgf@cygnus.com>
1464
1465 * desktop.cc (make_passwd_group): .bat files need \r\n endings.
1466
4254cc64
CF
1467Wed Aug 8 13:53:47 2001 Christopher Faylor <cgf@cygnus.com>
1468
1469 * desktop.cc (etc_profile): Leave environment variables untouched.
1470
acbae401
CV
14712001-08-07 Corinna Vinschen <corinna@vinschen.de>
1472
1473 * autoload.c: Add dynamic load statements for NT/W2K
1474 advapi32 functions not available in 9x/ME.
1475 * main.cc (set_default_dacl): New function.
1476 (WinMain): Call `set_default_dacl' if running on NT/W2K.
1477
969a294c
CF
1478Sat Aug 4 21:35:53 2001 Christopher Faylor <cgf@cygnus.com>
1479
1480 * ini.h (_CategoryPackage): Change pkg field to pkgname for
1481 consistency.
1482 * choose.cc: Use pkgname field when referencing _CategoryPackage
1483 throughout.
1484 (fill_missing_category): Don't add excluded packages.
1485 (default_trust): Ditto.
1486 (_view::insert_pkg): Ditto.
1487 * iniparse.y (register_category): Use consistent variable name.
1488
9eeb0e83
ED
14892001-07-09 Egor Duda <deo@logos-m.ru>
1490
1491 * choose.cc: Use system foreground color for text output.
1492
06560feb
CF
1493Sat Jul 7 00:40:28 2001 Christopher Faylor <cgf@cygnus.com>
1494
1495 * choose.cc (set_action): Use default trust for determining reinstall
1496 and source only.
1497 (default_trust): Set default trust.
1498 (pick_line::paint): Allow source selection when reinstalling or
1499 retrieving.
1500
1fb09149
CF
1501Fri Jul 6 18:08:49 2001 Christopher Faylor <cgf@cygnus.com>
1502
1503 * choose.cc (isinstalled): Modify to properly accomodate special case
1504 of "download only".
1505 (set_action): Check downloaded components, not installed components if
1506 "download only".
1507 (set_existence): Always include full list of files when "download
1508 only".
1509
14cfffa5
CF
1510Fri Jul 6 00:37:05 2001 Christopher Faylor <cgf@cygnus.com>
1511
1512 * choose.cc (pick_line::paint): Properly display "na" field when no
1513 source exists.
1514
f54385f6
CF
1515Thu Jul 5 00:34:23 2001 Christopher Faylor <cgf@cygnus.com>
1516
1517 * choose.cc (scan2): Ensure that older versions do not show up in
1518 "Test" slot.
1519
85b1fb54
CF
1520Mon Jul 2 15:47:59 2001 Christopher Faylor <cgf@cygnus.com>
1521
1522 * choose.cc (set_action): Allow "Skip" action if trust != installed.
1523 * res.rc: Fix copyright.
1524
2dada532
CF
1525Sat Jun 30 14:05:21 2001 Michael A Chase <mchase@ix.netcom.com>
1526
1527 * res.rc (IDD_LOCAL_DIR): Change caption to match the other dialog
1528 boxes.
06c6d195 1529 (IDD_CHOOSE): Adjust horizontal size so package names are visible.
2dada532
CF
1530
1531 * choose.cc: Restore some more changes from 2001-06-25, throughout.
1532 (paint): Wrap some excessively long lines.
1533 (pick_line::paint): Ditto. Move the arrow in the "Current" column
1534 right to where it belongs. Move the source checkbox slightly to the
1535 right.
1536 (do_choose): List categories and required packages in setup.log.full.
1537
1538Sat Jun 30 23:04:59 2001 Christopher Faylor <cgf@cygnus.com>
1539
1540 * choose.cc (scan2): Restore source scanning eliminated by previous checkin.
1541
1b13eeec
CF
1542Sat Jun 30 15:18:33 2001 Christopher Faylor <cgf@cygnus.com>
1543
1544 * ini.h (struct _Info): Add "derived" element.
1545 * choose.cc (scan2): Try to place unknown tar files into proper slot
1546 when package exists in setup.ini but tar file does not.
1547
9307254d
RC
1548Sat Jun 30 13:39:00 2001 Robert Collins <rbtcollins@hotmail.com>
1549
1550 * choose.cc (create_listview): Call set_view_mode with VIEW_CATEGORY.
1551 (do_choose): Log the first category name.
1552
3467d79f
CF
1553Fri Jun 29 23:07:44 2001 Christopher Faylor <cgf@cygnus.com>
1554
1555 *ini.h: Reapply 2001-06-25 changes.
1556 * choose.cc (add_required): Ditto. Default to "Keep" state if
1557 UNINSTALL and product is installed. Default to curr state if SKIP,
1558 etc.
1559 (keep_or_skip): New function. Returns skip or keep state depending on
1560 installed state of package.
1561 (default_trust): Use keep_or_skip to set state.
1562 (_view::insert_pkg): Use calloc to allocate lines.
1563 (set_view_mode): Adapt 2001-06-25 change to set_full_list here.
1564
8f53e82a
RC
1565Sat Jun 30 11:01:00 2001 Robert Collins <rbtcollins@hotmail.com>
1566
1fb09149 1567 * choose.cc: Remove globals full_list, headers, package_indexes and
8f53e82a
RC
1568 nindexes.
1569 Add globals cat_headers, pkg_headers and chooser.
1570 (add_required): New function.
1571 (paint): Use the chooser for header details.
1572 Call into the chooser to paint each line.
1fb09149 1573 (list_click): Use new global variables.
8f53e82a
RC
1574 Call into the chooser to handle the click.
1575 Repaint the entire view if packages have been added or removed.
1576 (note_width): Get passed a headers struct rather than using a global
1577 variable.
1578 (fill_missing_category): New function.
1579 (default_trust): Skip non-"Required" or "Misc" packages.
1580 (pick_line::set_line (Package *)): New function.
1581 (pick_line::set_line (Category *)): New function.
1582 (pick_line::paint): New function.
1583 (pick_line::click): New function.
1584 (_view::_view): New function.
1585 (_view::set_view_mode): New function.
1586 (_view::mode_caption): New function.
1587 (_view::set_headers): New function.
1588 (_view::init_header): New function.
1589 (_view::insert_pkg): New function.
1590 (_view::insert_category): New function.
1591 (_view::insert_at): New function.
1592 (_view::insert_under): New function.
1593 (_view::clear_view): New function.
1594 (viewsplusplus): New function.
1595 (_view::client): New function.
1596 (set_view_mode): Use new chooser functionality.
1597 (set_full_list): Use new global variables.
1598 (create_listview): Instantiate chooser.
1599 Remove all hardcoded headers[] code.
1600 (dialog_cmd): On trust changes, check dependencies.
1601 (getcategorybyname): New function.
1602 (getpackagecategorybyname): New function.
1603 (scan2): Use case-insensitive package comparison.
1604 (do_choose): Use fill_missing_category ().
1605 Show some category data.
1606 * ini.h: Protect against multiple inclusion.
1607 (views) New enum.
1608 (_CategoryPackage): New struct.
1609 (_Category): New struct.
1610 (_Package): Change category to Category * from char *.
1611 (extern Category category): New global variable.
1612 (extern in ncategories): Ditto.
1613 (getcategorybyname): New prototype.
1614 (catpackagecategorybyname): New prototype.
1615 (register_category): New prototype.
1616 (add_category): New prototype.
1617 * iniparse.y: Parse multiple categories per package.
2dada532
CF
1618 (category): New global variable.
1619 (ncategories): New global variable.
8f53e82a
RC
1620 (new_package): Compare package against NULL, not 0.
1621 (new_requirement): Source formatting fix.
1622 (register_category): New function.
1623 (add_category): New function.
1624 * res.rc: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
1625 IDC_CHOOSE_VIEWCAPTION: New control.
1626 * resource.h: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
1627 IDC_CHOOSE_VIEWCAPTION: New control.
1628 Increment _APS_NEXT_CONTROL_VALUE.
1629
26a27c14
CF
1630Mon Jun 25 00:56:37 2001 Michael A Chase <mchase@ix.netcom.com>
1631
e19ad6a3 1632 * choose.cc (paint): Wrap excessively long lines.
26a27c14
CF
1633 (list_click): Ditto.
1634 (create_listview): Ditto.
1635 (do_choose): Ditto. Replace TABs and remove CRs in lines written to
1636 setup.log.full. Allow "Yes" for source exists in setup.log.full when
1637 installing from local directories.
1638
97312777
CF
1639Mon Jun 25 00:56:37 2001 Christopher Faylor <cgf@cygnus.com>
1640
5f9f0d8d
CF
1641 * choose.cc (set_action): Only clear srcpicked when moving to next
1642 state. Allow source installation if it exists in the current "trust"
1643 state. Don't move to skip state when package is installed.
97312777
CF
1644 (list_click): Don't allow source clicking when no source is available.
1645 (set_full_list): Display package when not is_full_action.
1646 * ini.h (is_full_action): Define.
1647
72fd1d1e
CF
1648Sun Jun 17 12:06:14 2001 Christopher Faylor <cgf@cygnus.com>
1649
1650 * install.cc (check_for_old_cygwin): New function. First stab at
1651 checking for old cygwin versions.
1652 (do_install): Call check_for_old_cygwin if there were no errors during
1653 the install.
1654
41ac91b5 1655Sat Jun 16 11:33:51 2001 Michael A Chase <mchase@ix.netcom.com>
86202506
CF
1656
1657 * choose.cc (_Info::_Info): Test _source paramenter for non-NULL rather
1658 than zeroed "source" element.
1659
80429b97
CF
1660Fri Jun 15 20:54:43 2001 Christopher Faylor <cgf@cygnus.com>
1661
1662 * choose.cc (scan2): Insert unknown tar archives, found on disk, into
1663 the highest available "hole" in the trust array.
1664
654ea642
CF
1665Fri Jun 15 00:20:48 2001 Christopher Faylor <cgf@cygnus.com>
1666
1667 * choose.cc (set_existence): Use pointer method for indexing in trust
1668 array.
1669 (create_listview): Ditto.
1670 (scan2): Ditto. Also, use consistent variable name for indexing into
1671 trust array.
1672 * ini.h (Package): Reorganize info array for easier scanning.
1673
e98d90bd
CF
1674Fri Jun 15 00:01:51 2001 Christopher Faylor <cgf@cygnus.com>
1675
1676 * choose.cc (isinstalled): Eliminate special download only test.
1677 (set_action): Don't move to next state if in ACTION_SAME range and not
1678 incrementing.
1679 (choose_caption): Display "Retrieve" rather than "Reinstall" when just
1680 downloading.
1681 (do_choose): Sort packages after all packages have been read.
1682 Accomodate the fact that first element in trust array is empty so that
1683 log files don't report the wrong trust value.
1684 * iniparse.y (new_package): Malloc space for package name or suffer
1685 memory corruption.
1686
38c97581
CF
1687Thu Jun 14 22:43:59 2001 Robert Collins <rbtcollins@hotmail.com>
1688
1689 * ini.h (Dependency): New structure. Declare new function.
1690 * inilex.l (yylex): Detect new setup.ini options - category and requires.
1691 * iniparse.y: Declare new setup.ini token values.
1692 (yyparse): Parse new token values.
1693 (new_requirement): New function.
1694
1695Thu Jun 14 22:43:26 2001 Christopher Faylor <cgf@cygnus.com>
1696
1697 * choose.cc (read_installed_db): Eliminate obsolete code.
1698
3ae6c15c
CF
1699Thu Jun 14 22:11:53 2001 Christopher Faylor <cgf@cygnus.com>
1700
1701 * choose.cc (set_action): Set trust on "redo".
1702 (_Info::_Info): New constructor.
1703 (read_installed_db): Use new constructor. Use trusts type for
1704 iterator.
1705 * ini.h (struct _Info): Label struct, add constructor.
1706 (Package): Make installed_ix a type 'trusts.'
1707 * install.cc (uninstall_one): Unset any installed info for current
1708 package.
1709 (install_one): Allocate new Info struct for installed reflecting new
1710 installed info.
1711 (do_install): Don't output line to installed.db if package is being
1712 uninstalled.
1713
9c0a9876
CF
1714Thu Jun 14 20:33:01 2001 Robert Collins <rbtcollins@hotmail.com>
1715
1716 * choose.cc (getpkgbyname): Use consistent method for scanning package
1717 array.
1718
68b27c12
CF
1719Wed Jun 13 23:33:08 2001 Christopher Faylor <cgf@cygnus.com>
1720
1721 * choose.cc: Add some comments.
1722 (getpkgbyname): Use strcasecmp for comparisons.
1723
07108cc2
CF
1724Wed Jun 13 16:07:00 2001 Christopher Faylor <cgf@cygnus.com>
1725
f0984dcb 1726 * install.cc (do_install): Avoid checking for download action if
07108cc2
CF
1727 package wasn't currently retrieved.
1728
c46a33a9
CF
1729Wed Jun 13 11:27:22 2001 Christopher Faylor <cgf@cygnus.com>
1730
1731 * choose.cc: Eliminate extra array throughout. Use element in package
1732 structure instead. Use pointers rather than array indexes where
1733 appropriate.
1734 (set_action): New function to set next action based on current.
1735 (choose_caption): New function. Returns display caption.
1736 (check_existence): Change arguments. Use pointer to 'info' structure.
1737 (set_existence): Use pointer rather than array index.
1738 (default_trust): Use trusts enum for second argument.
1739 (set_full_list): Honor exclude element in package structure.
1740 (build_labels): Eliminate.
1741 (base): Make global. Use const char * argument.
1742 (get_package_version): Eliminate.
1743 (getpkgbyname): New function.
1744 (read_installed_db): Use parse_filename to get version info.
1745 * desktop.cc (make_passwd_group): Use getpkgbyname function.
1746 * download.cc (get_file_size): const argument.
1747 (do_download): Use is_download_action to determine when something
1748 should be downloaded.
1749 * filemanip.h: Add some functions.
1750 * ini.cc (do_ini): Use NULL rather than 0 for pointer assignment.
1751 * ini.h: Use enums for actions and trusts.
1752 (is_download_action): New macro.
1753 (is_upgrade_action): Ditto.
1754 (is_uninstall_action): Ditto.
1755 (struct Package): Add new fields.
1756 * inilex.l (yylex): Detect new setup.ini options.
1757 * iniparse.y: Declare new tokens.
1758 (yyparse): Detect exclude keyword. Fill out version field even if
1759 version == 0.
1760 (new_package): Use greater granularity when allocating package array to
1761 avoid repeated calls to realloc.
1762 * install.cc (exists): const argument.
1763 (uninstall_one): Take pkg argument.
1764 (install_one): Ditto. Eliminate unneeded arguments which can be
1765 derived from package info.
1766 (do_install): Iterate over package array using a pointer. Use
1767 is_download_action to control when package should be downloaded.
1768 * tar.cc (tar_open): const argument.
1769 * tar.h: Refloect const argument.
1770
7cc06fd3
CF
17712001-05-31 Michael Chase mchase@ix.netcom.com
1772
1773 * main.cc (WinMain): Add setup version to starting setup.log entry
1774
9522028b
CF
1775Tue May 29 21:37:58 2001 Yukihiko Sohda <sohda@is.titech.ac.jp>
1776
1777 * inilex.l: Add + to list of valid string characters.
1778
e9b1aaa7
CF
1779Mon May 28 20:54:50 2001 Christopher Faylor <cgf@cygnus.com>
1780
1781 * Makefile.in: Remove more stuff in the clean target.
1782
8e1299fa
CF
1783Mon May 28 18:24:59 2001 Christopher Faylor <cgf@cygnus.com>
1784
1785 * Makefile.in: Correctly generate iniparse.h.
1786
85553593
CV
1787Tue Mar 6 19:14:00 2001 Corinna Vinschen <corinna@vinschen.de>
1788
1789 * geturl.cc (get_url_to_file): Add parameter `allow_ftp_auth'.
1790 * geturl.h: Change declaration of `get_url_to_file' accordingly.
1791 * netio.cc (NetIO::NetIO): Add parameter `allow_ftp_auth'.
1792 Set member `ftp_auth'.
1793 (NetIO::open): Add parameter `allow_ftp_auth'. Use it in calls
1794 to constructors of derived classes.
1795 (NetIO::get_ftp_auth): New method.
1796 * netio.h: Change class definition accordingly.
1797 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Add parameter `allow_ftp_auth'.
1798 Take global variables `net_ftp_user' and `net_ftp_passwd' into account.
1799 Add code for ftp authentication retry.
1800 * nio-ftp.h: Change class definition accordingly.
1801 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Add parameter `allow_ftp_auth'.
1802 Add code for ftp authentication retry in case of proxy connection.
1803 * nio-http.h: Change class definition accordingly.
1804 * res.rc: Add FTP authentication dialog.
1805 * resource.h: Add new constants used in res.rc.
1806 * state.h: Add variables `net_ftp_user' and `net_ftp_passwd'.
1807
c4174b9c
CF
1808Sun May 27 17:12:23 2001 Christopher Faylor <cgf@cygnus.com>
1809
1810 * res.rc (IDD_SPLASH): Add a copyright year.
1811
0af2d779
CF
1812Sun May 27 15:42:18 2001 Christopher Faylor <cgf@cygnus.com>
1813
1814 * Makefile.in: Make iniparse.y produce a c++ file.
1815 * choose.cc (set_existence): Revert 2001-05-27 change.
1816 * ini.cc: Remove "C" from declaration of yyparse.
1817 * iniparse.y (yyparse): Fill out version field by default when a binary
1818 install is detected and no version has been set yet.
1819 * install.cc (do_install): Mount things earlier so that we can use
1820 proper mount table settings. Don't remove mounts since they are now
1821 honored.
1822 * mount.cc (create_mount): Reread the mount table after establishing a
1823 new mount.
1824 (read_mounts): Explicitly clear root_here to allow multiple uses of
1825 this function. Ensure that there is no garbage in the table when we've
1826 exhausted all of the mounts in the registry.
1827 (cygpath): Accomodate ./ in path.
1828
85b43844
CF
1829Sun May 27 02:59:07 2001 Christopher Faylor <cgf@cygnus.com>
1830
0af2d779
CF
1831 Use parse_filename method to parse filenames throughout. Use
1832 get_root_dir to retrieve the current root directory throughout. Set
1833 const in argument list, where appropriate, throughout.
1834 * choose.cc (set_existence): Detect case of uninstalled package with no
1835 version.
85b43844
CF
1836 (parse_filename): New function.
1837 * filemanip.h (fileparse): New structure.
1838 * mount.cc (read_mounts): Remember where we found the root mount.
1839 (set_root_dir): New function.
1840 (get_root_dir): Ditto.
1841 * mount.h: Declare new functions.
1842 * site.cc (get_root_dir_now): Renamed from get_root_dir.
1843 (save_site_url): Use new function name.
1844 (get_initial_list_idx): Ditto.
1845
08f8c762
CF
1846Sat May 26 21:23:59 2001 Christopher Faylor <cgf@cygnus.com>
1847
1848 * choose.cc: Use a constant throughout to deal with chooser icon
1849 length.
1850 * res.rc (IDD_CHOOSE): Increase size of chooser box.
1851
47f8d8b3
CF
18522001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
1853
1854 * choose.cc (do_choose): Fix incorrect assignment of trust setting to
1855 use when Redownload or Sources Only selected.
1856
6a748750
CF
1857Thu May 10 22:35:59 2001 Christopher Faylor <cgf@cygnus.com>
1858
1859 Reformat file after botched patch formatting.
1860 * choose.cc (which_trust): Eliminate variable.
1861 (default_trust): Don't set which_trust.
1862 (do_choose): Use selected trust when reinstalling or installing source.
1863
a351e48c
CF
1864Thu May 10 21:04:18 2001 Christopher Faylor <cgf@cygnus.com>
1865
1866 Change concat to cygpath throughout.
1867 Change map_filename to cygpath throughout.
1868 * concat.cc (vconcat): New function.
1869 (concat): Use vconcat.
1870 * concat.h: Reflect above.
1871 * install.cc (map_filename): Eliminate.
1872 (install_one): Free dest_file.
1873 * mount.cc (find2): Expect input key to be pointing to mount record.
1874 (in_table): New function.
1875 (is_admin): Move from root.cc.
1876 (read_mounts): New function.
1877 (path_prefix_p): New function.
1878 (cygpath): New function.
1879 * mount.h: Define new functions and structure.
1880 * root.cc (in_table): Move to mount.cc.
1881 (do_root): Call read_mounts to initialize root stuff and mount table.
1882 * site.cc (get_root_dir): Ditto.
1883
e227ee24
CF
18842001-05-09 Matt Hargett <matt@use.net>
1885
1886 * Makefile.in: Remove *.rc from clean.
1887
25fd2965
CF
1888Tue May 8 23:33:38 2001 Christopher Faylor <cgf@cygnus.com>
1889
1890 * choose.cc (scan2): Fix incorrect setting of TRUST_CURR rather than
1891 TRUST_PREV which produced "0" versions.
1892
42bf5b92
CF
18932001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
1894
1895 * resource.h: Add new field IDC_CHOOSE_INST_TEXT. Modify
1896 _APS_NEXT_CONTROL_VALUE to account for addition of
1897 IDC_CHOOSE_INST_TEXT.
1898 * res.rc (IDD_CHOOSE): Modify choose dialog to use new field
1899 IDC_CHOOSE_INST_TEXT for screen text. Modify choose Dialog to allow
1900 hot keys to select Prev, Curr, Exp.
1901 * ini.h: Add new actions for ACTION_REDO and ACTION_SRC_ONLY. Modify
1902 define for LOOP_PACKAGES to include new actions ACTION_REDO and
1903 ACTION_SRC_ONLY.
1904 * choose.cc: Add new Trusts for TRUST_REDO and TRUST_SRC_ONLY.
1905 (paint): Modify to check TRUST_SRC_ONLY when determining Bitmap for
1906 source Checkbox to use.
1907 (build_labels): Add logic to allow for selection of Source only
1908 Download/ReDownload/Install/Reinstall and also to Redownload/Reinstall
1909 current version binary.
1910 (dialog_proc): Add conditional display for file selection prompt based
1911 on download vs install using IDC_CHOOSE_INST_TEXT.
1912 (do_choose): Add new logic for TRUST_REDO and TRUST_SRC_ONLY selection
1913 and modify logic for TRUST_UNINSTALL, TRUST_KEEP, and TRUST_NONE to
1914 handle the instance where Source Download/Install was selected. Modify
1915 log file to store appropriate information regarding Action selected and
1916 the new actions that were added (I.E.: ACTION_REDO and
1917 ACTION_SRC_ONLY).
1918 * download.cc: Add include for <unistd.h> and "port.h".
1919 (download_one): Modify parameter list to include the selected action
1920 for the file to be downloaded. Modify size check against expected size
1921 to include check for ACTION_REDO and ACTION_SRC_ONLY. Modify rename of
1922 .tmp file to also remove the destination file if exists due to ability
1923 to redownload source and binary now.
1924 (do_download): Modify to also use ACTION_REDO and ACTION_SRC_ONLY in
1925 calculation of Download Bytes. Modify to also use ACTION_REDO and
1926 ACTION_SRC_ONLY in determining files selected for download.
1927 * install.cc (uninstall_one): Add check to treat a Reinstall like an
1928 upgrade so current version will be uninstalled prior to reinstall.
1929 (do_install): Add logic to handle ACTION_REDO and ACTION_SRC_ONLY for
1930 uninstalling and installing binary and source packages.
1931 * desktop.cc (make_passwd_group): Modify logic to account for a Source
1932 only cygwin install when checking for cygwin to determine need for
1933 mkpasswd and mkgroup.
1934
1935Mon May 7 23:33:30 2001 Matt Hargett <matt@use.net>
8a09aa99
CF
1936
1937 * winsup/cinstall/res.rc: Added accelerators and improved focus order.
1938 Removed WS_DISABLED from "OK" buttons to accomodate default focus
1939 changes in net.cc and source.cc.
1940 * winsup/cinstall/net.cc (dialog_proc): If no radio button is selected,
1941 a default is selected.
1942 * winsup/cinstall/source.cc (dialog_proc): Ditto.
1943 (check_if_enable_next): Removed. No longer needed since a radio button
1944 will always be selected.
1945 (load_dialog): Removed call to check_if_enable_next.
1946 (dialog_cmd): Ditto. Also added default to switch.
1947
87bdba0c
CF
1948Tue Apr 24 23:42:02 2001 Christopher Faylor <cgf@cygnus.com>
1949
1950 * res.rc: Resize affected text.
1951
8293fc16
CF
1952Tue Apr 24 23:35:31 2001 Christopher Faylor <cgf@cygnus.com>
1953
1954 * net.cc (do_net): Default to direct download.
87bdba0c 1955 * res.rc: Move default selections to the top.
8293fc16 1956
ed96c6da
EB
19572001-04-18 Earnie Boyd <earnie@users.sourceforge.net>
1958
1959 * win32.h: Remove the definitions for _UNION_NAME and _STRUCT_NAME.
1960 Must now include <windows.h> and not the pieces.
1961 * choose.cc (create_listview): Clean up type mismatch problems.
1962 * dialog.h (NEXT(id)): Ditto.
1963 * geturl.cc (dialog): Ditto.
1964 * install.cc (dialog): Ditto.
1965 * splash.cc (load_dialog): Ditto.
1966
fe94cc29
CF
1967Wed Apr 18 18:59:21 2001 Christopher Faylor <cgf@cygnus.com>
1968
1969 * tar.cc (class gzbz): Define dummy virtual functions.
1970
fb087b80
CF
1971Wed Apr 18 16:01:21 2001 Christopher Faylor <cgf@cygnus.com>
1972
1973 * Makefile.in: Add bz2 include/library support.
1974 * filemanip.h: New file.
fe94cc29
CF
1975 * choose.cc (find_tar_ext): New function. Returns TRUE if .tar.gz or
1976 .tar.bz2 found.
fb087b80
CF
1977 (scan2): Reorganize to use find_tar_ext, accomodating .bz2 extension.
1978 (read_installed_db): Ditto.
1979 (do_choose): Ditto.
1980 * fromcwd.cc (found_file): Ditto.
1981 (do_fromcwd): Ditto.
1982 * tar.cc (class gzbz): New super class for uncompression support.
1983 (gz): New class for gzip support.
1984 (bz): New class for bzip2 support.
1985 (tar_open): Use gzbz class to control file opening.
1986 (tar_ftell): Ditto for returning position in file.
1987 (skip_file): Ditto for reading file.
1988 (tar_next_file): Ditto.
1989 (tar_read_file): Ditto.
1990 (tar_close): Ditto for close.
1991
1992 * zlib/configure.in: Force NM substitution.
1993
1994 * source.cc (do_source): Default to "Install from Internet".
1995
88bcaf07
CF
19962001-03-16 Brian Keener <bkeener@thesoftwaresource.com>
1997
1998 * nio-file.cc (NetIO_File::NetIO_File): Use `get_file_size' instead of
1999 `stat'.
2000 * choose.cc (list_click): Correct inability to select source code for
2001 download.
2002 (scan2): Modify to skip source tarballs when scanning disk for
2003 installable packages.
2004
ef45c299
CV
20052001-03-10 Chris Abbey <chris_abbey@yahoo.com>
2006
2007 * install.cc: install sources into /usr/src instead
2008 of /, also include the sizes of source tarballs
2009 in total_bytes.
2010 * download.cc: include sizes of source tarballs in
2011 total_download_bytes.
2012
9fe1181b
CV
2013Tue Mar 6 19:31:00 2000 Corinna Vinschen <corinna@vinschen.com>
2014
2015 * download.cc (get_file_size): Remove `static'.
2016
2bfdb848
CV
2017Tue Mar 6 19:11:00 2000 Corinna Vinschen <corinna@vinschen.com>
2018
2019 * tar.cc (tar_open): Use `get_file_size' instead of `stat'.
2020
60c632b3
CV
20212001-03-06 Brian Keener <bkeener@thesoftwaresource.com>
2022
2023 * choose.cc (paint): Modify message for nothing to download vs
2024 nothing to install/update based on installation method.
2025 (list_click): Modify to skip versions in selection process if
88bcaf07 2026 installing from local directory and installation file does not exist.
60c632b3
CV
2027 Also leaves Source Action set to N/A if the source file does not exist
2028 and installing from local directory.
2029 (check_existence): New method to check current existence of installation
2030 files based on selected installation method.
2031 (set_existence): New method to set the current existence of installation
2032 files based on selected installation method.
2033 (best_trust): Modify decision process for best trust to base decision on
2034 current trust selected (IE: Prev, Curr, or Test), existence of file and
2035 installation method selected.
2036 (default_trust): Add logic to capture the current trust level and the
2037 trust selected for the given package.
88bcaf07 2038 (set_full_list): Expand decision criteria for displaying a package in
60c632b3
CV
2039 the selection list to include file existence/non-existence and selected
2040 installation method.
2041 (build_labels): Modify criteria for label addition to include
2042 installation method and file existence/non-existence.
88bcaf07 2043 (create_listview): Modify to establish package trust level for each
60c632b3
CV
2044 package before setting up the display list. Also modification to set
2045 current trust button as the default.
88bcaf07 2046 (dialog_cmd): Set response for Prev, Curr, Test button push to perform
60c632b3
CV
2047 a reset of the selection list in addition to setting the default trust.
2048 (get_package_version): New method to provide reusable code for
2049 determining the package version from the file name for a specified
2050 trust.
2051 (scan2): Modify to use new method get_package_version and
2052 also enhance handling of the build for the structures package and
2053 extra.
2054 (read_installed_db): Modify to use the new method
2055 get_package_version and also enhance handling of the build for the
2056 structures package and extra.
88bcaf07 2057 (do_choose): Add additional initialization of package and extra
60c632b3
CV
2058 structures. Modify to use read_installed_db all the time despite
2059 install method. Modify output to setup.log.full log file to increase
2060 readability by adding additional spacing, expanded code and available
2061 versions.
2062 * ini.h: Add new fields install_exists, source_exists and
88bcaf07 2063 partial_list_display to the structure definition for package.
60c632b3
CV
2064 * res.rc (IDD_CHOOSE): Modify choose dialog Prev, Curr, and Test
2065 pushbuttons by replacing with Radio Buttons thus allowing the
2066 operator to better determine which is selected.
2067
2f9645a1
CV
20682001-02-20 Brian Keener <bkeener@thesoftwaresource.com>
2069
88bcaf07 2070 * download.cc (do_download): Add new variables total_download_bytes and
2f9645a1
CV
2071 total_download_bytes_sofar for download progress meter. Add loop
2072 to accumulate the total bytes to download from the selected packages.
2073 * geturl.cc: Add state.h and diskfull.h to include list. Add new
2074 variables gw_iprogress, gw_pprogress, gw_progress_text,
2075 gw_pprogress_text, and gw_iprogress_text to allow for addition of
2076 total packages download progress meter and disk full percent
2077 progress meter. Add variables total_download_bytes and
2078 total_download_bytes_sofar for use by progress meters.
88bcaf07
CF
2079 (dialog_proc): Add new variables gw_iprogress, gw_pprogress,
2080 gw_progress_text, gw_pprogress_text, and gw_iprogress_text to
2081 allow for addition of total packages download progress meter and disk
2082 full percent progress meter.
2f9645a1
CV
2083 (init_dialog): Ditto.
2084 (progress): Ditto.
2085 (get_url_to_file): Ditto.
2086 * geturl.h: Add external definition for total_download_bytes and
2087 total_download_bytes_sofar.
88bcaf07 2088 * res.rc: Add two additional progress meters (IDC_DLS_IPROGRESS)
2f9645a1
CV
2089 and (IDC_DLS_PPROGRESS) and three text objects (IDC_DLS_PROGRESS_TEXT)
2090 and (IDC_DLS_IPROGRESS_TEXT, IDC_DLS_PPROGRESS_TEXT) for use in the
2091 download meters.
88bcaf07 2092 * resource.h: Add new fields for progress meters and text and update
2f9645a1
CV
2093 _APS_NEXT_CONTROL_VALUE.
2094
b41962a3
CV
2095Wed Feb 21 13:05:00 2000 Corinna Vinschen <vinschen@redhat.com>
2096
2097 * download.cc (get_file_size): Check for INVALID_HANDLE_VALUE instead
2098 for NULL.
2099
2100Wed Feb 21 11:21:00 2000 Corinna Vinschen <vinschen@redhat.com>
01954c34
CV
2101
2102 * download.cc (download_one): Add missing parenthesis.
2103
88a77116
CV
2104Mon Feb 19 18:59:00 2000 Corinna Vinschen <vinschen@redhat.com>
2105
2106 * download.cc (get_file_size): New function. Eliminates the need
2107 to call `stat'.
2108 (download_one): Call `get_file_size' instead of `stat'. This
2109 workarounds a problem with mingw's `stat' call.
2110
577f35ed
EB
21112001-02-07 Earnie Boyd <earnie@users.sourceforge.net>
2112
2113 * Makefile.in: (%.o: %.rc): Specify --include-dir $(w32api_include).
2114 This is to allow cinstall to build with 2.95.2-7 and to make the
2115 use of headers consistent.
2116
38f5563e
DD
21172000-12-26 Earnie Boyd <earnie_boyd@yahoo.com>
2118
2119 * Makefile.in (autoload.o): Add target to specify -fno-inline-functions
2120
c0a7e0f2
DD
2121Tue Dec 26 03:46:00 2000 Matt Hargett <matt@use.net>
2122
2123 * winsup/cinstall/res.rc: Added accelerators and improved focus
2124 order.
2125
72826a5b
CF
21262000-12-10 Egor Duda <deo@logos-m.ru>
2127
2128 * choose.cc (paint): Use system background color for text output.
2129
2130Sun Dec 10 19:05:25 2000 Christopher Faylor <cgf@cygnus.com>
2131
2132 * Makefile.in: Use CXX for linking and for compiling .cc files.
2133 * configure.in: Find correct c++ compiler.
2134 * configure: Regenerate.
2135
67bebcb5
DD
21362000-11-17 DJ Delorie <dj@redhat.com>
2137
2138 * splash.cc (load_dialog): Make message more obvious.
2139 * res.rc: Ditto.
2140
25fb9139
CF
2141Fri Nov 17 17:15:21 2000 Christopher Faylor <cgf@cygnus.com>
2142
2143 * Makefile.in: Use g++ to link so that libstdc++.a gets used. This is
2144 necessary for newer compilers.
2145
ef2007fd
CV
2146Wed Nov 9 2:19:00 2000 Corinna Vinschen <vinschen@redhat.com>
2147
2148 * desktop.cc: Include "ini.h" and "version.h".
2149 (make_passwd_group): Skip the function on 9x/ME boxes when an
2150 older version of Cygwin has been installed which doesn't
2151 support mkpasswd/mkgroup on 9x/ME.
2152 * install.cc: Move the `LOOP_PACKAGES' and `pi' macros to...
2153 * ini.h: ...here.
2154
277b4d56
CV
2155Wed Nov 8 17:10:00 2000 Corinna Vinschen <vinschen@redhat.com>
2156
2157 * desktop.cc (make_passwd_group): Don't exit when started
2158 on 9x/ME since mkpasswd/mkgroup are usable on 9x/ME now.
2159
f8a6415f
DD
2160Sun Nov 5 12:51:42 2000 Jason Tishler <jt@dothill.com>
2161
2162 * install.cc (do_install): Add call to set_cygdrive_flags to sync
2163 the mount modes.
2164 * mount.cc (set_cygdrive_flags): New function.
2165 (get_cygdrive_flags): Ditto.
2166 (default_cygdrive): Ditto.
2167 (set_cygdrive_flags): Ditto.
2168 * mount.h: Add prototype for set_cygdrive_flags.
2169
3b9077d4
DD
21702000-10-23 DJ Delorie <dj@redhat.com>
2171
2172 * ini.h: add source actions
2173 * fromcwd.cc: check for available sources
2174 * res.rc: add checkbox bitmaps
2175 * resource.h: ditto
2176 * check-*.bmp: new
2177 * choose.cc: add source column
2178 * download.cc: download sources if called for
2179 * install.cc: [un]install sources too
2180
1b1b33ac
DD
21812000-10-22 DJ Delorie <dj@redhat.com>
2182
2183 * choose.cc (build_labels): Don't skip TRUST_PREV completely; only
2184 ignore it wrt full_list if there's already a version installed.
2185 (do_choose): Sort the list.
2186 (package_sort): New.
2187
2a1a01e0
DD
21882000-10-12 DJ Delorie <dj@redhat.com>
2189
2190 * res.rc: Add more error strings.
2191 * resource.h: Ditto.
2192 * iniparse.y (new_package): re-initialize if needed.
2193 * download.cc (do_download): Keep track of errors; notify and
2194 allow retry.
2195 * install.cc (do_install): Ditto.
2196
1a9886fe
DD
21972000-10-05 DJ Delorie <dj@redhat.com>
2198
2199 * Makefile.in: fix %.cc rule
2200
40aef45e
DD
22012000-10-04 DJ Delorie <dj@redhat.com>
2202
2203 * desktop.cc: quote HOME and USER, don't . ./.profile
2204
2205 * choose.cc (build_labels): don't include in partial list just
2206 because there's a *previous* version available.
2207
2208 * install.cc (do_install): if installing from local directory with
2209 setup.ini and the file isn't found, look in "." also. Note errors.
2210
dd3f7f9b
DD
22112000-10-02 DJ Delorie <dj@redhat.com>
2212
2213 * ini.cc (do_ini): save setup.ini locally
2214
22152000-10-02 Chris Abbey <cabbey@bresnanlink.net>
2216
2217 * desktop.cc: quote escapes in prompt
2218
fee2a8d0
DD
22192000-10-02 Jason Tishler <jt@dothill.com>
2220
2221 * root.cc (is_admin): New function.
2222 (read_mount_table): Check for administrative priviledges and set
2223 installation scope as appropriate.
2224
a03db251
DD
22252000-09-28 DJ Delorie <dj@redhat.com>
2226
2227 * nio-ftp.cc (ftp_line): handle continuations more robustly
2228
b151e01e 22292000-09-14 Brian Keener <bkeener@thesoftwaresource.com>
0b758d4c
DD
2230
2231 * res.rc: increased the size of the site dialog (IDD_SITE) & the
2232 corresponding list box to provide for more URL's to be listed.
2233 Modified the position of the Back, Next and Cancel buttons to
2234 correspond to the new size of the dialog.
2235
d07591a3
DD
22362000-09-13 DJ Delorie <dj@redhat.com>
2237
2238 * install.cc (do_install): update disk fullness once per package
2239 to improve performance
2240
2241 * choose.cc (create_listview): call ReleaseDC
2242
89725f30
DD
2243Mon Sep 11 22:40 2000 Harold L Hunt II <harold@compasstechnologies.com>
2244
2245 * mkdir.cc: Create directories when ERROR_FILE_NOT_FOUND is
2246 returned, as it seems Samba 2.0.6+ returns this instead of
2247 ERROR_PATH_NOT_FOUND
88bcaf07 2248
6fbc690d
CF
2249Mon Sep 11 19:35:24 2000 Christopher Faylor <cgf@cygnus.com>
2250
2251 * site.cc (get_initial_list_idx): Don't default to saved URL if it
2252 refers to sources.
2253
13d27274
DD
22542000-09-07 DJ Delorie <dj@redhat.com>
2255
2256 * splash.cc: use version.h, not local decl
2257 * res.rc: add "old version" message
2258 * resource.h: ditto
2259 * version.h: new
2260 * fromcwd.cc (canonicalize_version): make global
89725f30
DD
2261 * iniparse.y: add setup-version support, fix bug in blank line
2262 handling
2263
13d27274
DD
2264 * inilex.l: add [exp] as alias for [test], add setup-version
2265 * Makefile.in (version.c): add setup-version tag
2266
2267 * desktop.cc (do_desktop): remove 1.1 version number
2268 (do_desktop_setup): ditto
2269
2270 * ini.cc (do_ini): zero out package list just in case we redo it.
2271
8cfbc487
DD
22722000-09-07 Jeffrey Juliano <juliano@cs.unc.edu>
2273
2274 * choose.cc (list_click): Check for nindexes==0; if so, return.
2275
c92e1307
DD
22762000-09-06 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
2277
2278 * localdir.cc: new, local package directory selection dialog; cd
2279 into selected directory
2280 * Makefile.in (OBJS): add localdir.o
2281 * dialog.h: add prototype for do_local_dir
2282 * main.cc (WinMain): initialize local_dir to cwd; add call to
2283 do_local_dir
2284 * net.cc (dialog_cmd): make DO_LOCAL_DIR next dialog
2285 * source.cc (dialog_cmd): ditto
2286 * res.rc: add DO_LOCAL_DIR dialog; remove "current directory" from
2287 presented choices in IDD_SOURCE; add IDS_ERR_CHDIR error string
2288 * resource.h: defines for DO_LOCAL_DIR dialog; define IDS_ERR_CHDIR
2289 * root.cc (dialog_cmd): make DO_LOCAL_DIR previous dialog
2290 * state.h: add local_dir variable
2291
22922000-09-06 Brian Keener <bkeener@thesoftwaresource.com>
50225eae
DD
2293
2294 * desktop.cc: added logic to handle to the new dialog and to
2295 default the setting for the new checkboxes based on whether the
2296 desktop icon or start menu link already exist.
2297 (desktop_icon): correction to desktop directories for desktop icon
2298 creation. Additional logic added for Win95 which does not appear
2299 to have Common Directories so if Common selected and null uses
2300 normal directory.
2301 (start_menu): Additional logic added for Win95 which does not
2302 appear to have Common Directories so if Common selected and null
2303 uses normal directory.
2304 (do_desktop_setup): moved the saving of the icon, creation of the
2305 bat file, profile, passwd, Start Menu link and desktop shortcut to
2306 this method from do_desktop. Made the creation of the desktop
2307 icon and start menu link conditional on settings of new dialog
2308 created for desktop.
2309 * install.cc (do_install): changed next from IDD_S_DESKTOP to
2310 IDD_DESKTOP.
2311 * main.cc (WinMain): changed case IDD_S_DESKTOP to IDD_DESKTOP.
2312 * res.rc: added new resource to create a desktop dialog with 2
2313 checkboxes for creating the desktop icon and start menu link.
2314 * resource.h: changed IDD_S_DESKTOP to IDD_DESKTOP and added two
2315 new controls: IDC_ROOT_MENU and IDC_ROOT_DESKTOP for new dialog.
2316 * state.h: added root_menu and root_desktop for use in dialog.
2317
4a83b7b0
DD
23182000-08-29 DJ Delorie <dj@redhat.com>
2319
2320 * choose.cc (scan_downloaded_files): scan for existing files, so
2321 that the user only sees new downloads.
2322
2323 * nio-ie5.cc (NetIO_IE5): pre-check for wininet.dll, enable dial-up
2324 * site.cc (do_site): if we can't download the mirror list, go back
2325 to the net setup box to choose another transport.
2326 * autoload.c: add more functions
2327 * Makefile.in (ALL_DEP_LDLIBS): remove wininet.a
2328 * resource.h: add WININET message
2329
2330 * net.cc (do_net): no longer default to IE5
2331 * simpsock.h (class SimpleSocket): new, simplify socket operations
2332 * simpsock.cc: ditto
2333 * nio-http.h: new, for direct http protocol
2334 * nio-http.cc: ditto
2335 * nio-ftp.h: new, for direct http protocol
2336 * nio-ftp.cc: ditto
2337 * netio.cc (set_url): move initialization here to handle redirections
2338 (open): add direct http/ftp
2339 * netio.h (NetIO::set_url): new
2340
2341 * log.cc (log_save): create directory for log if needed
2342
2343 * hash.cc, hash.h: new
2344 * Makefile: add hash.o
2345 * choose.cc: enable "uninstall" option
2346 * download.cc: invert action test to accomodate uninstalling
2347 * ini.h: add ACTION_UNINSTALL
2348 * install.cc: add uninstall functionality
2349 * res.rc: make install tag changeable
2350 * resource.h: add uninstall resources
2351
2352 * res.rc: update mirror list URL
88bcaf07 2353
50f64a4b
DD
23542000-08-24 DJ Delorie <dj@redhat.com>
2355
89b1a15b
DD
2356 * log.cc, log.h: new files
2357 * Makefile.in (OBJS): add log.o
2358 * tar.cc: use exit_setup instead of exit
2359 * dialog.cc (fatal): use exit_setup instead of ExitProcess
2360 * msg.cc (fatal): ditto
2361 * install.cc (dialog_cmd): ditto
2362 * ini.cc (do_ini): ditto
2363 * main.cc (main): add logging
2364 * source.cc (do_source): ditto
2365 * root.cc (do_source): ditto
2366 * site.cc (do_site): ditto
2367 * other.cc (do_other): ditto
2368 * net.cc (do_net): ditto
2369 * choose.cc (do_choose): ditto
2370 * download.cc (do_download): ditto
2371 * install.cc (do_install): ditto
2372 * msg.cc (fatal): ditto
2373
2374 * res.rc: mark password boxes as *being* password boxes.
2375
50f64a4b
DD
2376 * fromcwd.cc (canonicalize_version): use multiple buffers so that multiple
2377 calls won't use the same buffer.
2378 * choose.cc (create_listview): don't default to full list if no changes
2379 (base): return computed value, not temporary :-(
2380 (do_choose): don't use installed.db if we're only downloading.
2381
348860fa
DD
23822000-08-23 DJ Delorie <dj@redhat.com>
2383
2384 * nio-ie5.cc (NetIO_IE5): Fix authentication logic
2385 * nio-ie5.h (flush_io): new
2386 * netio.cc (load_dialog): note when we're initializing the dialog
2387 box, and ignore changes to the edit fields then.
2388
5f48f258
DD
23892000-08-21 DJ Delorie <dj@redhat.com>
2390
2391 * README: Update
2392
2393 * fromcwd.cc (found_file): don't remember the canonicalized version
2394
2395 * choose.cc (paint): print "nothing to do" message when list is empty.
2396 (build_labels): Use version "0.0" if no version is available.
2397 (create_listview): default to full list if nothing to install/update.
2398 (base): new, returns basename of file
2399 (read_installed_db): compare base names, not full paths
2400
713bbe5f
DD
24012000-08-11 DJ Delorie <dj@redhat.com>
2402
2403 * choose.cc: add new chooser dialog
2404 * fromcwd.cc: use IDD_CHOOSE
2405 * ini.cc: use IDD_CHOOSE
2406 * main.cc: use IDD_CHOOSE
2407 * ini.h: cosmetic changes
2408 * res.rc: add choose dialog, bitmaps
2409 * choose-spin.bmp: new
2410 * choose-rtarrow.bmp: new
2411 * resource.h: add choose dialog controls
2412
2413 * mount.cc: remove debug statement
88bcaf07 2414
2e9cbac5
DD
24152000-08-08 DJ Delorie <dj@redhat.com>
2416
2417 * Makefile.in (version.c): make version checking more robust
2418 * splash.cc (load_dialog): handle case where there's no version
2419
8507f105
DD
24202000-08-07 DJ Delorie <dj@redhat.com>
2421
2422 * (all): add cvsid tags
2423 * Makefile.in: generate version.c from ChangeLog, add splash.o
2424 * splash.o: new
2425 * res.rc: add splash screen
88bcaf07 2426
f5d0464b
DD
24272000-08-02 DJ Delorie <dj@redhat.com>
2428
4e8ff53f
DD
2429 * net.cc: remove proxy password code
2430 * res.rc: remove proxy user/pass from net, add auth dialogs
2431 * netio.cc,h: add sys/proxy auth methods
2432 * nio-ie5: use them, check for http status codes
2433 * state.h: add system authorization
2434
f5d0464b
DD
2435 * concat.cc (concat): canonicalize x:// to x:/ (exception to ://
2436 meaning an url)
2437
76cbfa85
DD
24382000-08-02 Norman Vine <nhv@yahoo,com>
2439
2440 * msg.cc (mbox): added MB_TOPMOST to MessageBox type flags
2441
e92c4436
DD
24422000-08-01 DJ Delorie <dj@redhat.com>
2443
bf74c544
DD
2444 * postinstall.cc (each): don't rename files we ignore
2445 (do_postinstall): set CYGWINROOT to root_dir, chdir there
2446
e92c4436
DD
2447 * desktop.cc: have /etc/profile call ~/.profile and ~/.bashrc
2448
a6100861
DD
24492000-07-31 DJ Delorie <dj@redhat.com>
2450
2451 * desktop.cc: reverse PATH so /usr/bin precedes /bin
2452
b11b49f3
DD
24532000-07-18 DJ Delorie <dj@redhat.com>
2454
a99bdfd8
DD
2455 * autoload.c: new, autoload dlls that might not be available.
2456 * Makefile.in (OBJS): add autoload.o
2457
2458 * res.rc: rewrite root options (text/binary, system/user) to be
2459 more obvious.
2460
b5b282c4
DD
2461 * site.cc (get_site_list): trim displayed URL, sort by domain
2462
2463 * net.cc (do_net): make IE5 default to checked, for now
2464
b11b49f3
DD
2465 * choose.cc (do_choose): sort packages correctly
2466 * ini.cc (do_ini): handle parse errors more gracefully
2467 (yyerror): ditto
2468 (fprintf): line buffer output
b5b282c4 2469 (do_ini): if we can't load setup.ini, go back to the site list.
b11b49f3
DD
2470 * ini.h: add "unknown" trust level
2471 * inilex.l: absorb unknown trust levels and key/value pairs,
2472 add line number logic
2473 * iniparse.y: handle parse errors more gracefully.
2474 * install.cc: skip packages with no valid install entry
2475
1fd6d0a2
DD
24762000-07-17 DJ Delorie <dj@cygnus.com>
2477
2478 * coding standards fixups, many files
2479 * mkdir.cc: warn about deletions *before* deleting them
2480
ed3e8b9b
DD
24812000-07-17 Jeff Juliano <juliano@cs.unc.edu>
2482
2483 * res.rc (IDD_OTHER_URL): reorder to give default focus to entry
2484
2485 * other.cc (dialog_cmd): save download site URL
2486 * site.cc (get_root_dir): new
2487 (save_mirror_site): new
2488 (dialog_cmd): save download site URL
2489 (get_site_list): make list big enough to add prev site
2490 (get_initial_list_idx): new, read last-used URL from file and
2491 append it to site_list
2492 (do_site): call get_initial_list_idx
2493
2494 * concat.cc (concat): avoid segfault when first parm is null
88bcaf07 2495
f57c332f
DD
24962000-07-13 DJ Delorie <dj@cygnus.com>
2497
2498 * postinstall.cc: new
2499 * Makefile.in: add postinstall.o
2500 * concat.h: add backslash ()
2501 * concat.cc: ditto
2502 * desktop.cc (etc_profile): don't do postinstall
2503 (backslash): moved to concat.cc
2504 (uexists): new
2505 (make_postinstall_script): run directly
2506 (do_desktop): chain to do_postinstall
2507 * dialog.h: add exit_msg, do_postinstall
2508 * download.cc: use exit_msg
2509 * install.cc: ditto
2510 * main.cc: add postinstall, exit_msg
2511 * resource.h: add postinstall
d6cda811 2512 * README: add more to-do items
f57c332f 2513
3a8e3956
DD
25142000-07-12 DJ Delorie <dj@cygnus.com>
2515
2516 * desktop.cc: add /etc/postinstall/ support
1a18aed7 2517 * install.cc: add more "standard" directories
3a8e3956 2518
e0c3d906
DD
25192000-07-11 DJ Delorie <dj@cygnus.com>
2520
2521 * desktop.cc: create /etc/profile
ad09bcd9
DD
2522 * desktop.cc: fix include syntax
2523 * Makefile.in: add auto-dependencies
24e259bb
DD
2524 * root.cc: support system vs user
2525 * desktop.cc: ditto
2526 * mount.h: ditto
2527 * mount.cc: ditto
2528 * install.cc: ditto
2529 * res.rc: ditto
2530 * resource.h: ditto
2531 * state.h: ditto
84d58d4c 2532 * desktop.cc: make sure we use backslashes, not slashes.
bf1d5889
DD
2533 * desktop.cc: don't set PATH in cygwin.bat, create /etc/passwd
2534 * geturl.cc: change math for percentage to avoid overflow
2535 * install.cc: ditto
2536 * download.cc: post "download complete" message.
2537 * root.cc: pre-fill in defaults if needed, don't start
2538 browse at root_dir unless it's set.
a3f48e18 2539 * desktop.cc: quote $PATH in case it has spaces in it
88bcaf07 2540
904d24fe
DD
25412000-07-10 DJ Delorie <dj@cygnus.com>
2542
2543 * Makefile.in: add desktop.o and mklink2.o
2544 * dialog.h: add do_desktop
2545 * install.cc: create standard directories, call do_desktop
2546 * res.rc: add cygwin.ico as a file also
2547 * desktop.cc: new, do shortcuts, batch files, and icons
2548 * mklink2.c: new, for COM
1ab805b8 2549 * README: update to-do list
904d24fe 2550
04d6e06b
DD
25512000-07-10 DJ Delorie <dj@cygnus.com>
2552
2553 * ini.cc (do_ini): don't worry about timestamps if we're not
88bcaf07 2554 actually installing.
04d6e06b 2555
5601a13d
DD
25562000-07-09 DJ Delorie <dj@cygnus.com>
2557
2558 * Makefile.in: add -I$(srcdir) for ini.h
2559
23c9e63c
DD
25602000-07-06 DJ Delorie <dj@cygnus.com>
2561
2562 * Replace everything with a new GUI version
2563 * zlib/gzio.c: add gzctell() for progress displays
2564
25652000-06-22 DJ Delorie <dj@cygnus.com>
2566
2567 * setup.c (tarx): re-add call to write_pkg()
2568
aa32874b
DD
25692000-06-07 DJ Delorie <dj@cygnus.com>
2570
2571 * cygcalls.c: new, call cygwin1.dll functions directly
2572 * cygcalls.h: header for same
2573 * Makefile.in: add cygcalls.[ch], remove mount/cygpath/umount
2574 exes, fix cinstall.rc dependencies.
2575 * path.c: remove unneeded code
2576 * setup.c: use cygcalls instead of xcreate_process.
2577 uncompress embedded files with zlib
2578 add "-d" for "download only"
2579 add "-h" for help
2580 postpone mount changes until very end
2581 add download progress indicators
2582 pack multi-column listings more
2583 auto-delete temp files
2584 customize banner message according to options
2585 prompt user for text/binary mounts
2586 add warnings about empty setup directory, root installs, etc
2587
99d1bf2d
DD
25882000-05-24 DJ Delorie <dj@cygnus.com>
2589
2590 * tar.c: New file; built-in tar using zlib.
2591 * tar.h: New file; header for same.
2592 * ctar.c: New file; test program for same.
2593 * Makefile.in: add built-in tar, remove tar.exe and gzip.exe
2594 * path.c (pathcat): convert slashes and canonicalize, instead of aborting
2595 * setup.c (tarx): add support for built-in tar
2596 (main): accept unix-style slashes, check root dir for drive letters,
2597 warn about installing in /, make sure cwd is empty for internet installs,
2598 defer mounts to end of install, support built-in tar.
2599
55650749
CF
2600Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
2601
2602 Fix compiler warnings throughout.
2603 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
2604 get_pkg_stuff.
2605 * setup.c: Make 'root' global.
2606 (istargz): Return pointer to "stem" of matched .tar.gz file.
2607 (tarx): Special case cygwin-20000301 to == cygwin-1.1.0.tar.gz. Remove
2608 bogus check_for_installed check.
2609 (recurse_dirs): Add preliminary support for .bat file execution.
2610 (create_uninstall): Eliminate unneeded parameter.
2611 (do_start_menu): Ditto.
2612 (mkmount): Ditto.
2613 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
2614 scanning for the version number. Eliminate unneeded argument to
2615 create_uninstall.
2616 (getdownloadsource): Add 'name' to list of names rather than url.
2617 (main): Eliminate unneeded argument in get_pkg_stuff. Eliminate
2618 unneeded argument in mkmount and do_start_menu.
2619
f4dda8f0
DD
26202000-05-18 DJ Delorie <dj@cygnus.com>
2621
2622 * setup.c (optionprompt): allow multi-column, clean up message
2623 about more options, be more robust about user input.
2624 (getdownloadsource): make the mirror URL a macro.
2625 (main): do mounts after done prompting user.
2626
62844d84
CF
2627Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
2628
2629 * setup.c (cleanup): Inverse order of deletion stands a better chance
2630 of deleting cygpath.exe. Still seems to suffer from occasional races,
2631 though.
2632 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
2633 w2k.
2634 (output_file): Defend against an unlikely handle leak.
2635 (main): Don't set up signal handling until we have something special to
2636 do.
2637
ad6749c8
CF
2638Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
2639
2640 * path.c (kill_cygpath): Delete function.
2641 (exit_cygpath): Make more defensive so that it can be called at any
2642 time.
2643 (cygpath_pipe): Don't set up signal here. Do it in main().
2644 * setup.c (istargz): New function.
2645 (recurse_dirs): Look for *.gz pattern rather than *tar.gz since *tar.gz
2646 inexplicably fails on samba mounted partitions. Use istargz to match
2647 tar.gz tail.
2648 (processdirlisting) Use istargz to match tar.gz tail.
2649 (cleanup): Renamed from filedel.
2650 (cleanup_on_signal): New function. Called on CTRL-C.
2651 (main): Record handle of main thread so that it can be suspended when
2652 CTRL-C occurs. Set up cleanup_on_signal signal handler.
2653
460cf7b6
CF
2654Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
2655
2656 * setup.c (do_start_menu): Don't concatenate paths to already built
2657 paths.
2658
9e76799c
CF
2659Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
2660
2661 * path.c (exit_cygpath): Wait for subprocess to exit before returning.
2662 (cygpath_pipe): Don't call exit_cygpath. Let main atexit routine do
2663 that.
2664 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
2665 root"-specific.
2666 * setup.c (filedel): Call exit_cygpath here so that we can be assured
2667 that cygpath subprocess has died. This allows us to delete cygpath.exe
2668 and cygwin1.dll.
2669 (optionprompt): Initialize response to -1 so that second screen of
2670 mirrors will appear.
2671 (get_pkg_stuff): Don't attempt to use HKCLU. Pass root to init_pkgs.
2672 * setup.h: Reflect init_pkgs prototype change.
2673
2cf65e6e
CF
2674Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
2675
2676 * pkg.c (init_pkgs): Accept an argument to control what root registry
2677 key should be used.
2678 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
2679 * setup.h: Reflect init_pkgs prototype change.
2680
2681Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
2682
2683 * error.c (winerror): Respond to gcc warning.
2684 * path.c (cygpath_pipe): Ditto.
2685 * setup.c (filedel): Call sa_cleanup on deleteme.
2686 (create_shortcut): Coerce argument to eliminate compiler warning.
2687 (tarx): Use installed version of cygwin1.dll, overriding tar file name.
2688 (refmatches): New function. Tests if ref is contained in a list of
2689 packages to install.
2690 (filematches): New function. Tests if filename matches one of a list
2691 of packages to install.
2692 (recurse_dirs): Accept list of packages to install. Generalize tar.gz
2693 test to accomodate _tar.gz.
2694 (prompt): Ensure that stdout is flushed prior to asking for input.
2695 (findhref): Initialize variables to quiet a compiler warning.
2696 (processdirlisting): Accept list of packages to install. Special case
2697 cygwin tar file version number.
2698 (downloaddir): Accept list of packages to install.
2699 (downloadfrom): Ditto.
2700 (create_uninstall): Eliminate unneeded variables. Quote arguments to
2701 regtool.
2702 (do_start_menu): Don't create uninstall bat file if updating or user
2703 specified a list of packages.
2704 (mkmount): Eliminate unneeded variables.
2705 (get_pkg_stuff): New function. Checks for previous unversioned
2706 installation.
2707 (main): Accept -u and -f options and package names on the command line.
2708 Use get_pkg_stuff to initialize package information. Umount /etc.
2709 Call recurse_dirs and downloadfrom with list of package to install.
2710 Ensure that all /usr/local directories are created. Output
2711 installation time to setup.log.
2712 * setup.h: Add some prototypes.
2713 * xsystem.c (xcreate_process): Eliminate unneeded variable.
2714
4cf88dd9
CF
2715Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
2716
2717 * setup.c (optionprompt): Don't overlap display of already seen options
2718 on next page.
2719 (geturl): Print name of site which we're connecting to rather than "ftp
2720 site".
2721 (processdirlisting): Avoid URLs that contain a /. or ./ . Is this
2722 test too simplistic?
2723 (do_start_menu): Use pathcat to build path to <root>\bin to avoid
2724 problems when user chooses x:\ as their root.
2725 (main): For now, default to "non-update" mode. Allow -u option to
2726 signify an update.
2727
36591a07
CF
2728Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
2729
2730 * pkg.c: New file.
2731 * setup.c (tarx): Skip already installed or older packages. Report
2732 when a package has been updated.
2733 (processdirlisting): Skip already installed or older packages.
2734 (main): Detect -f option for forced installation. Initialize pkg stuff
2735 if appropriate.
2736 * setup.h: Add pkg definitions.
2737
c298ea4a
CF
2738Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
2739
2740 * setup.c (findhref): Return NULL on empty string. Eat any trailing
2741 ";something".
2742 (processdirlisting): Attempt to limit recursively processing the same
2743 directory.
2744
f4cafa7e
CF
2745Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
2746
2747 * setup.c (filedel): New function.
2748 (output_file): Keep track of files extracted from setup.exe for
2749 subsequent deletion.
2750 (tarx): Close process handle of child tar process or suffer handle
2751 leak.
2752 (getdownloadsource): Close mirror file so that it can be unlinked.
2753 (processdirlisting): Return total number of files extracted.
2754 (main): Initialize array of files to delete. Ensure that files are
2755 closed on exit. Make the directory that setup.exe is started from ==
2756 the directory where temporary files are placed. Issue an error if no
2757 files were found to download.
2758 * xsystem.c (xcreate_process): Close the thread handle. Close the
2759 process handle if we waited for it to exit.
2760
cd475210
CF
2761Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
2762
2763 * setup.c (main): Change version number output.
2764
7dff5e71
CF
2765Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
2766
2767 * setup.c (tarx): Use full path name to tar executable.
2768 (main): Build full pathname to tar executable. Create /usr/local/etc
2769 by default.
2770
99437fdb
CF
2771Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
2772
2773 * setup.c (findhref): Change method for scanning for href= to choose
2774 the last one on the line. This is still not foolproof and probably
2775 will need to be changed eventually. Don't abort if no "size" field is
2776 evident.
2777 (processdirlisting): Fix boolean algebra.
2778
0f562d55
CF
2779Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
2780
2781 * main.c (tarx): Add some code for future task of unmounting
2782 directories encountered in tar file.
2783
4356382d
CF
2784Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
2785
2786 * setup.c (findhref): Decode file size, when appropriate.
2787 (needfile): New function. Returns 1 when file should be
2788 downloaded.
2789 (processdirlisting): Always download if file size does not
2790 match. Prompt when download fails for some reason.
2791 (getdownloadsource): Accomodate findhref argument changes.
2792
6ab1ce6c
CF
2793Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
2794
2795 Throughout, use global session handle rather than reinitializing for
2796 each connect. Don't pass session as an argument to setup.c functions.
2797 * setup.c (geturl): Only issue "Connecting to.." message when using
2798 http or first time for ftp since subsequent connections will be fast.
2799 (processdirlisting): Allocate space for "N" when user has specified
2800 "N"ever option so that it can be subsequently freed.
2801 (main): Abort if we can't get the list of mirrors.
2802
37ee316b
CF
2803Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
2804
2805 * setup.c (main): Umount /bin and /lib.
2806
a59fb4fa
CF
2807Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
2808
2809 * setup.c (main): Create an empty /var/run/utmp.
2810
75f4b861
CF
2811Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
2812
2813 * Makefile.in: Add umount to list of files to include in setup.exe.
2814 * setup.c (xumount): New function for unmounting directories.
2815 (main): Unmount /usr.
2816 (mkmount): Unmount "unix directory" before trying to figure out where
2817 to create the directory.
2818
d4a66789
CF
2819Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
2820
2821 * setup.c (mkmount): Use xcreate_process to start mount process,
2822 avoiding the shell.
2823 (main): Don't do buffering on stdout or prompts won't be displayed
2824 correctly if running in a cygwin shell with CYGWIN=tty.
2825
a6c3982d
CF
2826Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
2827
2828 * setup.c (main): Remove the CYGWIN environment variable before
2829 starting any cygwin programs.
2830
0ffd5e3b
CF
2831Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
2832
2833 * setup.c (geturl): Use alternative method for finding filename part of
2834 a URL.
2835 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
2836 (downloaddir): Unlink file containing dir listing.
2837 (downloadfrom): Ditto.
2838
3e54bcf9
CF
2839Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
2840
2841 * setup.c (main): Disallow running setup.exe from the "root".
2842
005b73c4
CF
2843Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
2844
2cf65e6e 2845 Use "warning" function, where appropriate, to output warnings.
005b73c4
CF
2846 * setup.c (warning): New function -- outputs warning to console and log
2847 file.
2848 (tarx): Fix index used to reset file protection.
2849 (main): Open the log file earlier so that more stuff can be sent to it.
2850
36dc5fc8
CF
2851Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
2852
2853 * setup.c (processdirlisting): Make "N" option a little less aggressive.
2854
c73320de
CF
2855Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
2856
2857 * setup.c (tarx): Wait to after tar has completed to reset protections
2858 or suffer races with tar process.
2859
68cdfc92
CF
2860Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
2861
2862 * Makefile.in: Eliminate duplicate -nostdinc from CFLAGS.
2863 * setup.c (create_uninstall): Create the uninstall .bat file in the
2864 "root" so that we can remove the /bin directory. Add bin\cygwin.bat to
2865 list of files to be deleted. Fix directory detection for determining
2866 when to use 'rmdir'.
2867 (do_start_menu): Add /usr/local/bin to the path.
2868 (main): Add slop to files.array allocation so that we don't have to
2869 worry about reallocating the array when it grows too large when doing
2870 some trivial "pushes". Add /tmp and /usr/local/{bin,lib} to list of
2871 files.
2872
35d18861
CF
2873Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
2874
2875 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
2876 download.
2877
20904de1
CF
2878Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
2879
2880 * path.c (kill_cygpath): New cleanup function.
2881 (exit_cygpath): New cleanup function.
2882 (cygpath_pipe): New function. Sets up cygpath in the background for
2883 translating filenames.
2884 (pathcvt): Use background cygpath for file translation.
2885 * setup.c (tarx): New function. Called to extract tar files, capture
2886 logging output, and translate it to Windows format.
2887 (recurse_dirs): Use 'tarx' function to extract files.
2888 (create_uninstall): Use file list built up by tarx rather than reading
2889 the log file.
2890 (mkmount): Add ability to mount root.
2891 (main): Track elapsed install time. Mount root.
2892 * starry.h: Add index field to strarry for tracking of tarx's usage of
2893 this structure.
2894 * xsystem.c (xcreate_process): Return proces handle when not waiting.
2895
c1246750
CF
2896Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
2897
2898 * path.c: New file.
2899 (pathfp): New function. Preliminary work for new -f cygpath
2900 functionality.
2901 * Makefile.in: Add new file.
2902 (pathcvt): Move to new file.
2903 (dtoupath): Ditto.
2904 (utodpath): Ditto.
2905 (pathcat): Ditto.
2906 * setup.c (processdirlisting): Always open file in text mode.
2907 (create_uninstall): Ditto.
2908 (getdownloadsource): Ditto.
2909 (main): Ditto.
2910
4b40edd0
CF
2911Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
2912
2913 * xsystem.c: New file.
2914 * Makefile.in: Accomodate new file.
2915 * setup.c (xsystem): Move to new file.
2916 (recurse_dirs): Accept handle to output log file. Don't use ">"
2917 redirection to trap tar output. Use supplied handle instead.
2918 (create_uninstall): Accept FILE pointer to opened log file. Don't
2919 unlink log file here.
2920 (do_start_menu): Accept FILE pointer to pass to create_uninstall.
2921 (main): Open log file here and pass it to various functions. Unlink
2922 when done.
2923
6f8e3b45
CF
2924Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
2925
2926 Change occurrences of .usr.bin to .bin throughout.
2927 * setup.c (geturl): Increase number of retries to 20. Let user know
2928 what's going on during long connects.
2929 (processdirlisting): Accept "A"lways and "N"ever as update options.
2930 (create_uninstall): Load cygwin1.dll from the current directory rather
2931 than \bin.
2932 (main): Add some expository text.
2933
2a907b70
CF
2934Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
2935
2936 * Makefile.in: Change method for compressing cygwin1.dll to avoid
2937 creating a cygwin1.dll in the current directory. Ensure the addition
2938 of -nostdinc to MINGW_CFLAGS.
2939
c4285a3c
CF
2940Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
2941
2942 * Makefile.in: Augment clean target.
2943
ea615d51
RP
2944Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
2945
2946 * README: Added info about non-working mingw implementation
c1246750 2947 * gzip.exe.gz: Replace with a version from the same build as the other
ea615d51 2948 tools.
c1246750 2949 * tar.exe.gz: Replace with a version from the same build as the other
ea615d51 2950 tools.
c1246750 2951 * mount.exe.gz: Add to repository until, mingw can build setup.
ea615d51
RP
2952 * cygpath.exe.gz: ditto
2953 * cygwin1.dll.gz: ditto
c1246750
CF
2954 * setup.c: Overwrite /bin and /lib mounts. Generate working shortcut
2955 for Win9x. Display only a screenfull of options at a time. Call all
2956 tools with an absolute path.
2957 * setup.dsp: Restore the carriage returns, MS Developer Studio needs
2958 them.
ea615d51
RP
2959 * setup.dsw: ditto
2960 * zlib.dsw: ditto
2961
51954e74
CF
2962Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
2963
c1246750
CF
2964 * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab
2965 cygwin1.dll from ../cygwin subdirectory.
51954e74
CF
2966 * gzip.exe.gz: Update.
2967 * tar.exe.gz: Update.
2968
7b777418
CF
2969Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
2970
2971 * Makefile.in: Use ZLIB variable as a target.
2972
4306b490
CF
2973Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
2974
5e7eb909
CF
2975 * Makefile.in: Eliminate traces of cygwinisms. Don't link with
2976 libmsvcrt.a. It's unneeded. Build .rc file on the fly from various
2977 sources.
4306b490
CF
2978 * configure.in: Locate correct objcopy.
2979 * configure: Regenerate.
2980
739457f4
CF
2981Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
2982
2983 * Makefile.in: New file.
2984 * configure.in: New file.
2985 * configure: New file.
2986 * zlib/Makefile.am: New file.
2987 * zlib/configure.in: New file.
2988 * zlib/aclocal.m4: New file.
2989 * zlib/acinclude.m4: New file.
2990 * zlib/configure: Regenerate from configure.in.
2991 * zlib/Makefile.in: Regenerate from Makefile.am
8507f105
DD
2992
2993%%% $Id$
2994$Revision$
This page took 0.348384 seconds and 5 git commands to generate.