1 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
3 * Makefile.in (OBJS): Remove supp.o - it appears accidental.
4 * choose.cc: Don't define alloca anymore, it's done in win32.h
6 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
8 * PickPackageLine.cc: New file.
9 * PickPackageLine.h: New file.
10 * PickLine.cc: New file.
11 * PickLine.h: New file.
12 * PickCategoryLine.cc: New file.
13 * PickCategoryLine.h: New file.
14 * PickView.cc: New file.
15 * PickView.h: New file.
16 * Makefile.in: Add new objects to setup.exe.
17 Backout -fno-exceptions option.
18 * choose.cc: Include PickView.h.
19 Remove view related defines and static variables.
20 (_pkg_headers): Moved to PickView.cc.
21 (_cat_headers): Ditto.
22 (view::views::Unknown): Ditto.
23 (view::views::PackageFull):
24 (view::views::Package):
25 (view::views::Category):
26 (pkgtrustp): Moved to package_meta.cc.
27 (add_required): Moved to package_meta.cc.
28 (pick_category_line::empty): Moved to PickCategoryLine.cc
29 (paint): Adjust for moved static variables.
30 (view::scroll): Moved to PickView.cc.
31 (list_vscroll): Adjust for moved static variables.
32 (list_hscroll): Ditto.
34 (note_width): Moved to PickView.cc.
36 (view::set_view_mode): Ditto.
37 (view::mode_caption): Ditto.
38 (view::views::caption): Ditto.
39 (view::set_headers): Ditto.
40 (DoInsertItem): Ditto.
41 (view::init_headers): Ditto.
42 (view::insert_pkg): Ditto.
43 (view::insert_category): Ditto.
44 (view::clear_view): Ditto.
45 (view::views::operator++): Ditto.
47 (default_trust): Adjust for moved statics.
48 (pick_pkg_line::paint): Moved to PickPackageLine.cc.
49 (pick_pkg_line::click): Ditto.
50 (pick_category_line::actiontext): Moved to PickCategoryLine.cc
51 (pick_category_line::paint): Ditto.
52 (pick_category_line::click): Ditto.
53 (set_view_mode): Adjust for moved statics.
54 (create_listview): Ditto.
55 * choose.h: Remove Category and packagemeta forward defines - not needed.
56 Don't include unneeded headers list and package_meta.
57 (_header): Move to PickView.h.
58 (pick_line): Move to PickLine.h.
59 (pick_pkg_line): Move to PickPackageLine.h.
60 (pick_category_line): Move to PickCategoryLine.h.
61 (view): Move to PickView.h.
62 * ini.h (trusts): Move to package_meta.h.
63 * package_meta.h (trusts): New enum.
64 (packagemeta::set_requirements): New helper method.
65 (packagemeta::trustp): Ditto.
67 2002-01-21 Christopher Faylor <cgf@redhat.com>
69 * choose.h (view): Move forward declaration of views into public area
70 or g++ v3 will complain.
72 2002-01-21 Christopher Faylor <cgf@redhat.com>
74 * Makefile.in (CXXFLAGS): Add -fno-exceptions.
75 * win32.h (alloca): Define as __builtin_alloca.
76 * io_stream_memory.cc: Add include file.
78 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
80 * archive_tar.cc (archive_tar::~archive_tar): Mark the stream as destroyed.
81 * archive_tar_file.cc (archive_tar_file::~archive_tar_file): Ditto.
82 * compress.cc (compress::~compress): Be less verbose.
83 * compress_bz.cc (compress_bz::~compress_bz): Ditto.
84 Mark the stream as destroyed.
85 * compress_gz.cc (compress_gz::~compress_gz): Mark the stream as destroyed.
86 * io_stream.cc (io_stream::~io_stream): Only warn when the stream is not marked
88 * io_stream_cygfile.cc (io_stream_cygfile::~io_stream_cygfile): Mark the
90 * io_stream_file.cc (io_stream_file::~io_stream_file): Ditto.
91 * io_stream_memory.cc (io_stream_memory::~io_stream_memory): Ditto.
93 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
95 * Makefile.in (CFLAGS): Allow customisable malloc debug flags.
96 (OBJS): Link in malloc objects.
97 * category.cc (category): Use new char, not strdup.
98 * choose.cc (pick_pkg_line::paint): Allow for the regionsize to shrink.
99 (do_choose): Use new char, not malloc.
100 * concat.cc (vconcat): Ditto.
101 * cygpackage.cc (cygpackage): Use new char, not strdup.
102 (set_canonical_version): Ditto.
103 (cygpackage::destroy): Use delete[], not free.
104 * desktop.cc (uexists): Ditto.
105 * dialog.cc (egest): Use new char, not strdup.
106 * dlmalloc.c: New file - Doug Lea's malloc 2.7.0
107 * hash.cc (hash::hash): Use delete instead of free.
108 (hash::add): Use new char, not strdup.
109 * ini.cc (do_remote_ini): Use delete[] not free.
110 * inilex.l: Use new char, not strdup.
113 Use a local package_db rather than a static one.
114 * install.cc (struct mallinfo): Workaround an apparent dlmalloc bug.
115 (do_install_thread): Call mallinfo to force a consistency check. Appears
116 to fix a 'inuse' error in -DDEBUG builds.
117 Use delete[] for strings.
118 * io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile): Use new char,
120 (io_stream_cygfile::~io_stream_cygfile): Use delete[], not free.
121 (io_stream_cygfile::remove): Use new char, not strdup.
122 * io_stream_file.cc (io_stream_file::io_stream_file): Use new char, not strdup.
123 (io_stream_file::io_stream_file): Use delete[], not free.
124 (io_stream_file::remove): Use new char, not strdup.
125 * io_stream_memory.cc (memblock::~memblock): Use delete[], not free.
126 * io_stream_memory.h (memblock): Use new char, not malloc.
127 * localdir.cc (LocalDirPage::OnInit): Use new char, not strdup.
128 * main.cc (WinMain): Use new char, not strdup.
129 * mount.cc (find2): Use new char, not malloc.
130 (read_mounts): Ditto.
131 (cygpath): Use new char, not strdup.
132 * netio.cc (NetIO::~NetIO): Use delete[], not free.
133 (NetIO::set_url): Use new char, not strdup.
134 (NetIO::get_ftp_auth): Use delete[], not free.
135 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
136 Use new char instead of strdup.
137 * nio-http.cc (base64_encode): Use new char, not malloc.
138 * package_meta.cc (hash::add_subdirs): Use new char instead of strdup.
139 * package_source.h (~ packagesource): Use delete[] instead of delete.
140 * port.h (strdup): Deprecate the use of strdup.
141 * rfc1738.cc (rfc1738_do_escape): Use new char, not calloc.
142 * script.cc (init_run_script): Us delete[], not free.
144 * simpsock.cc (SimpleSocket::fill): Use new char, not malloc.
145 (SimpleSocket::invalidate): Use delete[], not free.
146 * site.cc (site_list_type::init): Use new char instead of strdup.
147 * site.h (~site_list_type): Use delete[], not free.
149 2002-01-20 Robert Collins <rbtcollins@hotmail.com>
151 * Makefile.in (OBJS): Add win32.o - win32 support functions.
152 * README: Update todos.
153 * archive.cc (extract_file): Support a suffix for appending to extracted files.
155 * choose.cc (set_view_mode): Use the new view::views class.
156 (view::views::Unknown): New static for defaulting view::views variables.
157 (view::views::PackageFull): New static for the current view.
158 (view::views::Package): Ditto.
159 (view::views::Category): Ditto.
160 (topbucket::paint): Remove.
161 (topbucket::empty): Rename to pick_category_line::empty.
162 (topbucket::~topbucket): Remove.
163 (paint): Use the new view::views class.
164 Don't paint 'all' as a category when showing package categoies.
165 (pick_category_line::actiontext): New method.
166 (pick_category_line::paint): Make showing the category optional, and show the
168 (pick_category_line::click): Make showing the category optional, and
169 differentiate between the name being clicked, and the action description.
170 (view::view): Use the new view::views class.
171 (view::set_view_mode): Ditto.
172 (view::mode_caption): Ditto.
173 (view::views::caption): New method.
174 (view::set_headers): Use the new view::views class.
175 (view::clear_view): Ditto.
176 (viewsplusplus): Replaced by
177 (view::views::operator++): New operator.
178 (set_view_mode): Use the new view::views class.
179 (create_listview): Ditto.
181 * choose.h (actions): Remove.
183 (pick_line): Add a new convenience constructor.
184 (top_bucket): Remove.
185 (pick_category_line): Reparent under pick_line, and adsorb top_bucket.
186 (view::views): New class.
187 * ini.h: Don't include choose.h
188 (is_download_action): Remove.
189 (is_upgrade_action): Remove.
190 (is_uninstall_action): Remove.
191 (is_full_action): Remove.
192 * install.cc (num_replacements): New static.
193 (rebootneeded): Ditto.
194 (replace_one): Handle upgrades separate from removal or new installs.
195 (install_one_source): Handle in use files.
196 (install_one): Don't repeat upgrades.
197 (do_install_thread): Initialize new statics.
198 Order actions as uninstall, replace, install.
199 Warn about rebooting if needed.
200 * res.rc (IDS_REBOOT_REQUIRED): New string.
201 * resource.h (IDS_REBOOT_REQUIRED): Give value.
202 * win32.h: Declare class Win32, and update copyright and intent message.
203 * win32.cc: New file.
205 2002-01-15 Corinna Vinschen <corinna@vinschen.de>
207 * io_stream.cc (io_stream::gets): Eliminate trailing new line chars.
208 * package_meta.cc (packagemeta::uninstall): Check for additional
209 Windows shortcut. Unset R/O file attribute before trying to delete
212 2002-01-09 Robert Collins <rbtcollins@hotmail.com>
214 * choose.cc (pkgtrustp): Fall back to installed if a package is not present in
215 the current trust level. For prev, fall back via curr.
216 (set_existence): Allow sources with no sites, but cached files to be
218 (pick_category_line::paint): Start drawing clickable categories.
219 * fromcwd.cc (found_file): Reinstate local file scanning.
221 2002-01-07 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
223 * fromcwd.cc: Run indent.
224 (do_fromcwd): Reverse sense of comment. Set next_dialog
225 to IDD_CHOOSER instead of IDD_CHOOSE.
226 * ini.cc (find_routine): Remove "/" from "/setup.ini".
228 2001-01-07 Robert Collins <rbtcollins@hotmail.com>
230 * category.cc (Categorycmp): Add a const safe version.
231 * category.h (Categorycmp): Add a const safe version.
232 (Category): Add operator ==.
233 * choose.cc (fill_missing_category): Add every package to "All".
234 (pick_category_line::paint): Add support for hidden labels, and a tree depth.
235 (pick_category_line::click): Ditto.
236 (view::view): Pass in a top level category to use.
237 (view::insert_pkg): Special case - skip category "All".
238 (view::insert_category): Ditto.
239 (view::clear_view): Set the contents label state.
240 (create_listview): Pass in a top level category to view().
241 * choose.h (topbucket): Make bucket available to derived classes.
242 (pick_category_line): Add support for hidden labels, and a tree depth.
243 Remove our second copy of bucket.
244 (view): Pass in a top level category to the constructor.
245 Use pick_category_line to allow three level display.
247 2001-01-06 Robert Collins <rbtcollins@hotmail.com>
249 * cygpackage.h (cygpackage): Make set_[s|l]desc virtual.
250 * iniparse.y (add_correct_version): Copy descriptions across.
251 * package_meta.cc (SDesc): Iterate through versions, return the first with a
253 * package_version.h (packageversion): Add new virtuals set_[l|s]desc.
255 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
257 * script.cc (run_script): Change cygpath:// to cygfile://.
258 * install.cc (do_install_thread): Fix off-by-one errors.
260 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
262 * package_db.cc (packagedb::flush): Fix an off-by-one error.
264 2002-01-04 Jan Nieuwenhuizen <janneke@gnu.org>
266 * Makefile.in (realclean): more clean.
267 (OBJS): Add script.o.
268 * postinstall.cc (run_script_in_etc_postinstall): New function.
269 (do_postinstall): Split off new funtion init_run_script ().
272 (run_script): Move to script.cc. Replace some deprecated remove
275 * script.cc: New file.
276 * Forward port cygwin-20010707.jcn3.patch.
277 * package_meta.cc (uninstall): Run pre- and postremove scripts.
278 * install.cc: Typo fix.
279 (do_install): Run script initialisation.
281 2001-01-04 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
283 * cistring.cc: Run d2u.
284 * cistring.h: Run d2u.
286 * desktop.cc (etc_profile): Remove "test -f ./.bashrc && . ./.bashrc"
287 from the generated /etc/profile. Bash will source this file
288 automatically, and having this here merely results in .bashrc being
289 executed twice. Run d2u.
290 * desktop.h: Run d2u.
292 * propsheet.cc: Run d2u.
293 (PropSheetProc): New function. Add minimize box here instead of in
294 PropertyPage::DialogProc.
295 (PropSheet::Create): Change to use creation callback PropSheetProc.
296 (DLGTEMPLATEEX): Add 'hidden' Windows struct definition.
298 * propsheet.h: Run indent, d2u.
299 * proppage.h: Run indent, d2u.
301 * proppage.cc: Run d2u.
302 (PropertyPage::DialogProc): Remove minimize-box-adding
303 functionality. Remove commented-out "PropSheet_SetWizButtons" calls.
304 Add support for calling virtual OnMessageCmd. Add setting of fonts in
305 WM_INITDIALOG handler.
306 (resource.h): New include for resource IDs.
308 * res.rc: Resize and rearrange property page dialog templates
309 to bring them in line with "Microsoft's Backward Compatible Wizard 97"
310 specification. Run d2u.
311 (IDD_SITE): Add an edit control and an "Add" button in order to
312 combine the IDD_SITE and IDD_OTHER_URL functionality onto one page.
313 (IDD_OTHER_URL): Remove dialog template.
314 (IDD_DLSTATUS): Remove dialog template.
317 (SitePage::OnBack): Remove NEXT() macro invocation.
318 (SitePage::OnActivate): New member function.
319 (load_dialog): Remove. Functionality subsumed into
320 SitePage::OnActivate.
321 (save_dialog): Change to support both list and user URLs. Remove
322 OTHER_IDX and mirror_idx logic.
323 (SitePage::PopulateListBox): New member function.
324 (SitePage::CheckControlsAndDisableAccordingly): New member function.
325 (SitePage::OnMessageCmd): New override.
326 (check_if_enable_next): Remove.
327 (dialog_cmd): Remove.
328 (do_download_site_info_thread): Remove calls to NEXT() macro.
329 (SitePage::Create): Call the single-param PropertyPage::Create
331 (other_url): New static taken from other.cc.
332 (SitePage::OnNext): Remove mirror_idx logic.
333 (SitePage::OnInit): Remove "Other URL" entry from list box. Remove
334 list box populating code, now handled in SitePage::PopulateListBox.
335 (mirror_idx, NO_IDX, OTHER_IDX): Remove.
336 (save_site_url): Fix potential buffer overflow problem. Switched to
337 TCHAR in grossly premature preparation for multilingual support.
339 (SitePage::OnActivate): New member function.
340 (SitePage::CheckControlsAndDisableAccordingly) New member.
341 (SitePage::OnMessageCmd): New override.
342 (do_download_site_info_thread): Add MessageBox call on failure to
345 * splash.cc: Run d2u.
346 (SplashPage::OnInit): Set the font for the title.
349 * threebar.cc: Run d2u.
350 * threebar.h: Run d2u.
353 (Window::IsButtonChecked): New member function declaration.
354 (Window::OnMessageCmd): New member function.
355 (Window::SetDlgItemFont): New member function declaration.
356 (Window::MAXFONTS, Window::Fonts, Window::FontCounter): New data
358 * window.cc: Run d2u.
359 (Window::IsButtonChecked): New member function definition.
360 (Window::SetDlgItemFont): New member function definition.
361 (Window::Window): Add initialization for FontCounter.
362 (Window::~Window): Delete any fonts we created.
364 * geturl.cc: Run d2u.
365 (progress): Remove the "3" field width from the "%3d"
366 percent-complete format indicator. Causes line to not start at
367 beginning of text box, and does little to help with "jumping", since
368 the "bytes downloaded so far" field is variable-width anyway. Change
369 kb/s format field to "%03.1" to 0-pad the kb/s number in the event of
370 painfully slow connections, or temporary slowdowns in faster
371 connections should such more-instantaneous functionality become
375 (NetPage::OnMessageCmd): New member function declaration.
376 (NetPage::CheckIfEnableNext): New member function declaration.
378 (NetPage::OnMessageCmd): New member function definition.
379 (dialog_cmd): Remove, subsumed into NetPage::OnMessageCmd.
380 (check_if_enable_next): Remove.
381 (NetPage::CheckIfEnableNext): New member function, subsumes
382 check_if_enable_next.
383 (propsheet.h): Add include.
384 (NetPage::Init): Add call to CheckIfEnableNext.
385 (load_dialog): Remove call to check_if_enable_next.
386 (NetPage::Create): Call single-template-ID-parameter overload of
387 PropertyPage::Create instead of three-parameter one.
389 * Makefile.in (OBJS): Remove other.o.
390 * other.cc: Remove file.
392 2002-01-01 Robert Collins <rbtcollins@hotmail.com>
394 * README: Update TODO's.
395 * choose.cc (set_existence): Delete non installed packages with no
397 (fill_missing_category): Fix an off-by-one error.
398 (default_trust): Ditto. Also delete any unused categories.
399 (view::init_headers): Fix an off-by-one error.
400 (set_view_mode): Ditto.
401 (set_view_mode): Ditto.
402 (create_listview): Ditto.
405 * io_stream.cc: Indent.
406 * io_stream.h: Ditto.
407 * package_db.cc: Ditto.
408 * package_meta.h: Const correctness for SDesc ();
409 * proppage.cc: Run d2u and indent.
410 * propsheet.cc: Run d2u and indent.
411 * window.cc: Run d2u and indent.
412 * window.h: Run d2u and indent.
414 2001-12-28 Christopher Faylor <cgf@redhat.com>
416 * Makefile.in (iniparse.o): Accommodate newer bisons.
418 2001-12-23 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
420 * window.h (Window): New file, new class.
421 * window.cc (Window): New file, new class.
423 * threebar.h (ThreeBarProgressPage): New file, new class.
424 * threebar.cc (ThreeBarProgressPage): New file, new class.
426 * splash.h (SplashPage): New file, new class.
427 * splash.cc (SplashPage): Replace file with implementation of new
430 * source.h (SourcePage): New file, new class.
431 * source.cc: Run indent.
432 (SourcePage): Add class implementation to this file.
433 (do_source): Remove, functionality subsumed by SourcePage::Create()
434 and SourcePage::OnDeactivate().
435 (dialog_proc): Remove, functionality subsumed by
436 SourcePage::OnActivate().
438 * site.h: Run indent.
439 (SitePage): Add class declaration.
440 * site.cc: Run indent.
441 (SitePage): Add class implementation.
442 (do_download_site_info_thread): New function.
443 (context): New var. Context info for do_download_site_info_thread().
444 (do_download_site_info): New function.
445 (SitePage::Create, SitePage::OnInit SitePage::OnNext)
446 (SitePage::OnBack): SitePage class implementation..
447 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers, now handled
449 (dialog_proc): Remove, now handled by SitePage::OnInit and base class
451 (do_site): Remove, now handled by do_download_site_info_thread() and
452 SitePage::OnNext functionality.
453 (get_site_list): Remove dismiss_url_status_dialog() call.
455 * root.h (RootPage): New file, new class.
456 * root.cc: Run indent.
457 (dialog_cmd): Pass parent HWND parameter to note(), yesno().
458 (dialog_proc): Remove.
460 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL clauses from switch.
461 (RootPage::OnInit): New member function. Move get_root_dir() logic to
463 (RootPage::Create): New member function.
464 (RootPage::OnNext): New member function. Move IDOK logic from
465 dialog_cmd() to here.
466 (RootPage::OnBack): New member function.
468 * propsheet.h (PropSheet): New file, new class.
469 * propsheet.cc (PropSheet): New file, new class.
471 * proppage.h (PropertyPage): New file, new class.
472 * proppage.cc (PropertyPage): New file, new class.
474 * postinstall.cc (do_postinstall): Add owner parameter.
476 * other.cc (do_other): Add owner parameter.
478 * nio-file.cc (NetIO::Purl): Pass NULL parent param to note().
479 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Pass NULL parent param to
481 * nio-http.cc (retry_get): Pass NULL parent param to get_auth(),
484 * nio-ie5.cc (NetIO::_url): Pass NULL parent param to note(),
485 get_auth(), get_proxy_auth().
487 * netio.h (get_auth, get_proxy_auth, get_ftp_auth): Add owner param.
488 * netio.cc (auth_common, NetIO::get_auth, NetIO::get_proxy_auth,
490 (auth_common): Add owner param. Pass owner param to DialogBox.
491 (NetIO::get_auth, NetIO::get_proxy_auth, NetIO::get_ftp_auth): Pass
492 owner param to auth_common().
494 * net.h (NetPage): New file, new class.
495 * net.cc: Run indent.
496 (net.h, threebar.h): Add includes.
497 (Progress): Add extern.
498 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, now handled by
499 property sheet logic. Saved temporarily for reference.
500 (NetPage::Create, NetPage::OnInit, NetPage::OnDeactivate,
501 NetPage::OnNext, NetPage::OnBack):
502 New implementation of NetPage class members.
504 (dialog_proc): Remove.
506 * msg.h (fatal, note, yesno): Add owner param.
507 * msg.c (fatal, note, yesno, mbox): Add owner param.
508 (mbox): Remove MB_TOPMOST from MessageBox call. Unnecessary and wrong
509 now that we have a parent.
511 * main.cc: Run indent.
512 (commctrl.h, proppage.h, propsheet.h, splash.h, source.h)
513 (localdir.h, net.h, site.h, choose.h, threebar.h, desktop.h): Include
515 (root_dialog_proc): extern into this file.
516 (Progress): Progress dialog defined here, used in several other files.
517 (WinMain): Instantiate and create Splash, Source, Root, LocalDir, Net,
518 Site, Chooser, Desktop pages and MainWindow sheet. Call
519 InitCommonControls() to make sure Windows is set up for our use of
520 property sheets. Add pages to sheet.
521 Call MainWindow.Create() to "DoModal". Remove main loop, that logic is
522 now handled by the PropSheet class.
523 (root.h): Add include.
525 * log.cc (log_save): Pass NULL parent to fatal().
526 (exit_setup): Pass NULL parent to note().
528 * localdir.h (LocalDirPage): New file, new class.
529 * localdir.cc: Run indent.
530 (localdir.h): New include.
531 (threebar.h): New include.
532 (Progress): extern into this file.
533 (LocalDirPage::Create, LocalDirPage::OnInit, LocalDirPage::OnActivate)
534 (LocalDirPage::OnNext, LocalDirPage::OnBack): Implementation of
536 (LocalDirPage::OnNext): Move log() call from do_local_dir() to here.
537 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers.
538 (do_local_dir): Remove.
539 (dialog_proc): Remove.
540 (cwd): Remove, not used by anything.
542 * install.cc: Run indent.
543 (process.h, threebar.h): New includes.
544 (Progress): extern into this file.
545 (ins_dialog, ins_action, ins_pkgname, ins_filename, ins_pprogress)
546 (ins_iprogress, ins_diskfull, init_event): Remove, now handled by
547 ThreeBarProgressPage.
548 (dialog_cmd, dialog_proc, dialog): Removed, handled in
549 ThreeBarProgressPage.
550 (init_dialog): Remove all mention of the above ins_* handles. Now
551 handled in ThreeBarProgressPage. Altered SetWindowText()s to call
552 ThreeBarProgressPage instance Progress directly.
553 (progress): Alter bar update logic to call ThreeBarProgressPage
554 instance Progress directly.
555 (uninstall_one): Alter SetWindowText()s to call ThreeBarProgressPage
556 instance Progress directly.
557 (install_one_source): Alter SetWindowText()s to call
559 instance Progress directly. Pass NULL parent to note().
560 (do_install_thread): Rename from do_install(), added owner param.
561 Alter SetWindowText()s to call ThreeBarProgressPage instance Progress
563 Remove dismiss_url_status_dialog() call, no longer necessary. Remove
564 ShowWindow(<hide>) call, also unnecessary now. Pass owner handle to
566 (do_install_reflector): New function.
567 (do_install): New function.
569 * ini.cc (process.h, threebar.h): New includes.
570 (Progress): externed into this file.
571 (find_routine): Pass NULL parent to note().
572 (do_local_ini): Add owner param.
573 (do_remote_ini): Add owner param. Pass owner to get_url_to_membuf()
574 and note(). Remove call to dismiss_url_status_dialog().
575 (do_ini_thread): Rename from do_ini(). Add owner param. Pass owner to
576 do_local_ini(), do_remote_ini(), yesno(), and note(). Set next_dialog
577 to IDD_CHOOSER on exit.
578 (do_ini_thread_reflector): New function.
579 (context): New var. Context for do_ini_thread.
580 (do_ini): New function.
582 * geturl.h (get_url_to_membuf, get_url_to_string, get_url_to_file): Add
584 * geturl.cc (gw_dialog, gw_url, gw_rate, gw_progress, gw_pprogress,
586 (gw_progress_text, gw_pprogress_text, gw_iprogress_text, init_event):
588 (threebar.h): New include.
589 (Progress): externed into this file.
590 (dialog_cmd, dialog_proc, dialog): Removed, handled by
591 ThreeBarProgressPage now.
592 (init_dialog): Remove "if (gw_dialog == 0)" clause. Alter
594 and bar setting SendMessage()s to call ThreeBarProgressPage instance
595 Progress directly. Remove "one bar only" logic, this is now handled
596 explicitly in the ThreeBarProgressPage class.
597 (progress): Altered bar and text update logic to call
598 ThreeBarProgressPage instance Progress directly. Changed kbps
599 calculation to floating point and now print out a single decimal
601 (get_url_to_membuf): Add owner param. Pass it to init_dialog.
602 (get_url_to_string): Add owner param. Pass it to get_url_to_membuf.
603 (get_url_to_file): Add owner param. Pass it to init_dialog. Alter bar
604 update logic to call ThreeBarProgressPage instance Progress directly.
605 (dismiss_url_status_dialog): Remove.
607 * fromcwd.cc (do_fromcwd): Add owner param. Initialize found_ini to
610 * download.cc: Run indent.
611 (process.h, threebar.h): New includes.
612 (Progress): externed into this file.
613 (download_one): Add owner param. Pass it to get_url_to_file().
614 (do_download_thread): Renamed from do_download. Add owner param. When
615 calculating total_download_bytes, take binpicked and srcpicked into
616 account. Remove call to dismiss_url_status_dialog(), no longer needed.
617 Pass owner handle to download_one() and yesno().
618 (do_download_reflector, do_download): New functions.
619 (context): New var. Context for do_download_thread().
621 * dialog.h (D(x)): Add owner param.
623 * desktop.h (DesktopSetupPage): New file, new class.
624 * desktop.cc: Run indent.
625 (desktop.h): Add include.
626 (dialog_proc, do_desktop): Remove, now handled in
627 DesktopSetupPage::OnInit().
628 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, handled in
629 DesktopSetupPage::OnFinish(), DesktopSetupPage::OnBack(), and PropSheet
631 (DesktopSetupPage::Create, DesktopSetupPage::OnInit)
632 (DesktopSetupPage::OnBack, DesktopSetupPage::OnFinish): Implementation
635 * cistring.h: New file, new class.
636 * cistring.cc: New file, new class.
638 * choose.h: Run indent.
639 (Chooser): New class declaration.
640 * choose.cc: Run indent.
641 (do_choose): Add owner param. Pass it to DialogBox() and
643 (Chooser): New class implementation.
645 * res.rc (IDS_VERSION_INFO): New string.
646 (IDD_SOURCE, IDD_LOCAL_DIR, IDD_ROOT, IDD_SITE, IDD_OTHER_URL)
647 (IDD_DLSTATUS, IDD_INSTATUS, IDD_SPLASH, IDD_CHOOSE, IDD_DESKTOP):
648 Change WS_POPUP to WS_CHILD. Numerous positioning/size changes
650 (IDD_CHOOSE): Give template the WS_EX_CONTROLPARENT style to enable
651 TAB control navigation etc. Give the controls a reasonable tab order.
652 Grouped radio buttons. Something's still not right, can't tab away
653 from back/next/cancel group reliably.
654 * resource.h (IDD_CHOOSER): New dialog ID.
656 * Makefile.in (OBJS): Add cistring.o, proppage.o, propsheet.o,
657 threebar.o, and window.o.
659 2001-12-21 Robert Collins <rbtcollins@hotmail.com>
661 * choose.cc (listview_proc): Update the scrollbar when the headers are dragged.
662 (pick_pkg_line::paint): Clip columns to prevent overlap.
664 2001-12-20 Robert Collins <rbtcollins@hotmail.com>
666 * Makefile.in: Add libcomctl32.a for setup.exe.
667 * archive.h (archive): Prevent non-child direct creation of the class.
668 * archive_tar.h (archive_tar): Prevent inaccurate synthetic copy and assignment.
669 * choose.cc: Include commctrl for the choose header.
670 (NEW_COL_SIZE_SLOP): Define without magic numbers.
671 (pkgtrustp): Convert to function.
672 (set_action): Remove.
673 (add_required, fill_missing_category,default_trust): Use list syntax for
676 (choose_caption): Remove.
677 (topbucket::paint): New method.
678 (topbucket::empty): Ditto.
679 (topbucket::click): Ditto.
680 (topbucket::~topbucket): Ditto.
681 (paint): Remove i,ii and p as they are obsolete.
682 Remove header drawing code.
683 Use new chooser method to paint the chooser.
684 Use new chooser itemcount method.
685 (scroll_common): Rename to view::scroll.
686 Scroll the header window separately.
687 (list_vscroll, list_hscroll, list_click): Update for new chooser methods.
688 (listview_proc): Look for header messages.
689 (note_width): Accept stringless calls.
690 (pick_line::set_line): Remove.
691 (pick_line::paint): Remove.
692 (pick_pkg_line::paint): Paint this one line, using the header column widths.
693 (pick_category_line::paint): Paint this category, and anything in the bucket.
694 (pick_line::click): Remove.
695 (pick_pkg_line::click): Handle a click.
696 (pick_category_line::click): Handle a click.
697 (_view): Rename all to view.
698 (view::view): Initialise the control contents.
699 (view::set_headers): Work with the header control.
700 (view::init_headers): Use list syntax for package list.
701 Rearrange the width logic a little.
702 (view::insert_pkg): Update to use the hierarchy.
703 (view::insert_category): Ditto.
704 (view::insert_at, view::insert_under): Remove.
705 (view::clear_view): Update to use the hierarchy.
706 (view::click): Update to use the hierarchy.
707 (set_view_mode): Use list syntax for package list.
708 Update for new chooser methods.
709 (DoInsertItem): New helper function. (Needs a home somewhere).
710 (create_listview): Remove choose control code and use the constructor instead.
711 (dialog_cmd,scan2,do_choose): Use list syntax for package list.
712 * choose.h: Include newly required headers list and package_meta.
713 (_voew): Rename to view.
714 (pick_line): Convert to an ABC.
715 (pick_pkg_line): New class.
716 (pick_catgory_line): New class.
717 (topbucket): New class.
718 (view::scroll): New method created from listview_scroll function.
719 * desktop.cc (make_passwd_group): Use list syntax for package list.
720 * download.cc (do_download): Use list syntax for package list.
721 * fromcwd.cc (found_file): Use list syntax for package list.
722 * iniparse.y (pacakges): Use list syntax for package list.
723 * install.cc (uninstall_one): Use list syntax for package list.
724 (do_install): Use list syntax for package list.
725 * io_stream.h (io_stream): Prevent non-child direct creation of the class.
726 Prevent inaccurate synthetic copy and assignment.
727 * list.h: Include required header stdlib.
728 Work on const correctness.
729 * package_db.cc (packagedb::getpackagebyname): Remove.
730 (packagedb::packagedb): Remove custom list code, and make db a local.
731 (packagedb::getfirstpackage): Remove.
732 (packagedb::getnextpackage): Remove.
733 (packagedb::addpackage): Remove.
734 (flush): Remove custom list code.
735 (packagedb::registerpackage): Remove.
736 (packagedb::packages): New static member.
737 (packagedb::task): New static member.
738 * package_db.h (PackageDBActions): New enum.
739 (packagedb): Remove getfirstpackage, getnextpackage, getpackagebyname,
740 addpackage, registerpackage, packages, packagecount, curr_package, db.
742 * pacakge_meta.cc: Include package_db.h.
743 (packagemeta::action_caption): New method.
744 (packagemeta::set_action): New method.
745 * package_meta.h (CategoryPackage): Initialise key.
746 (packagemeta): Initialise key.
747 Add set_action and action_caption methods.
748 Prevent inaccurate synthetic copy and assignment.
749 * resource.h (IDC_CHOOSE_LISTHEADER): New ID.
750 * source.cc: Include package_db for db manipulation.
751 (save_dialog): Set the db task.
752 * win32.h: Tell the w32 include headers what IE version to expect/require.
754 2001-12-06 Robert Collins <rbtcollins@hotmail.com>
756 * README: Wishlist updates.
758 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
760 * package_db.cc (getnextpackage): Don't overrun the array.
762 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
764 * Makefile.in (OBJS): Add setup_version.o.
765 (version.c): Rename to setup_version.
766 * choose.cc (set_action): Prevent NULL pointer dereference.
767 (package_sort): Remove.
768 * fromcwd.cc (canonicalize_version): Moved to version.cc.
769 (check_ini): New function for use with find to see if there is a cached setup.ini.
770 (do_fromcwd): Check for a cached setup.ini from any mirror site.
771 * ini.cc (find_routine): New function, for finding cached setup.ini's.
772 (do_local_ini): New function, drives parsing of local ini's.
773 (do_remote_ini): New function, drives parsing and caching of remote ini's.
774 (do_ini): Move guts to do_remote_ini and do_local_ini.
775 * list.h (removebyindex): New method.
776 * other.cc (save_dialog): Use new site_list and all_site_list to add the
777 new site to the site picklist.
778 (dialog_cmd): Only save the dialog when exiting the dialog.
779 * res.rc (IDD_SITE): Make IDC_URL_LIST a multiple-selection control.
780 * site.cc (site_list_type): Move to site.h
781 (site_list): New global, sites chosen by the user.
782 (all_site_list): New global, all potential sites.
783 (site_list_type::init): New method, parses a mirror.lst URL string into a
784 site_list_type object.
785 (site_list_type::site_list_type): New method.
786 (check_if_enable_next): Examine the control, not a local variable.
787 (load_dialog): Select all the user chosen sites by default.
788 (save_dialog): Adjust for multiple selection semantics.
789 (save_site_url): Save all user chosen sites.
790 (dialog_cmd): Don't save the dialog when the listbox recieves a message -
792 Remove obsolete other_url reference.
793 (dialog_proc): Use all_site_list instead of site_list.
795 (get_site_list): Remove malloc use - use list template instead.
796 Move site_list_type initialisation to site_list_type::init().
797 (get_initial_list_idx): Renamed to ...
798 (get_saved_sites): this. Also read in multiple sites to the site_list.
799 (do_site): Use all_site_list not site_list.
800 Log all chosen sites.
801 * site.h: New file, defines site related class, functions and variables.
802 * state.h: Add comment about use of state.h
803 (mirror_site): Remove.
805 (MIRROR_SITE): Remove.
806 * version.cc: New file, for version-handling and related functions.
808 2001-12-02 Robert Collins <rbtcollins@hotmail.com>
810 * Makefile.in: Add filemanip.o to setup.
811 * archive.cc (archive::extract_file): Use new io_stream method 'copy'.
812 * archive_tar.h (archive_tar_file): Implement get_size virtual.
813 (archive_tar): Ditto.
814 * choose.cc (set_action): Use [] operator instead of getnth - its more readable.
816 (_view::init_headers): Ditto.
817 (_view::insert_pkg): Ditto.
818 (set_view_mode): Ditto.
821 (base): Moved to filemanip.cc.
822 (find_tar_ext): Ditto.
823 (parse_filename): Ditto.
824 (_Info::_Info): Remove.
825 * compress_bz.h (compress_bz): Implement get_size virtual.
826 * compress_gz.h (compress_gz): Implement get_size virtual.
827 * cygpackage.cc (cygpackage::destroy): Use array delete for char * objects.
828 * download.cc (get_file_size): Move to filemanip.cc.
829 (check_for_cached): Use [] operator instead of getnth - its more readable.
830 (download_one): Ditto.
831 * filemanip.cc: New file.
832 * geturl.cc (init_dialog): Make url a pointer to const as it is not modified.
833 (get_url_to_membuf): New function - contains get_url_to_string worker code.
834 (get_url_to_string): Becomes a trivial wrapper to get_url_to_membuf.
835 * geturl.h: Declare new prototype.
836 * ini.cc (do_ini): Use get_url_to_membuf and pass ini_init an io_stream.
837 Tidy up the error code a little.
838 * ini.h: Remove __cplusplus protection for ini_init.
840 * inilex.l: Remove old globals.
841 (ini_init): Use an io_stream for getting the characters.
842 (ini_getchar): Ditto.
843 * iniparse.y: Declare yylex as a C++ function.
844 (add_correct_version): Use [] operator instead of getnth - its more readable.
845 * io_stream.cc (io_stream::move_copy): Use the copy method.
846 (io_stream::copy): New method to simply copy from one stream to another.
847 * io_stream.h (io_stream): New static method copy, and virtual method get_size.
848 * io_stream_cygfile.cc (io_stream_cygfile::get_size): Implement this.
849 * io_stream_cygfile.h (io_stream_cygfile::get_size): Declare this.
850 * io_stream_file.cc (io_stream_file::get_size): Implement this.
851 * io_stream_file.h (io_stream_file::get_size): Declare this.
852 * io_stream_memory.h: Include errno as it's neded to parse the header.
853 (io_stream_memory::get_size): Implement this.
854 (io_stream_memory::st_size): Delete this.
855 * list.h: Change getnth into the [] operator.
856 * netio.cc (NetIO::NetIO): Change prototype to reflect Purl not being modified.
857 (NetIO::set_url): Ditto.
858 (NetIO::open): Ditto.
859 * netio.h: As for netio.cc.
860 * nio-file.cc (NetIO_File::NetIO_File): Change prototype to reflect Purl not
863 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
864 * nio-ftp.h (NetIO_FTP::NetIO_FTP): Ditto.
865 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Ditto.
866 * nio-http.h (NetIO_HTTP::NetIO_HTTP): Ditto.
867 * nio-i5.cc (NetIO_IE5::NetIO_IE5): Ditto.
868 * nio-i5.h (NetIO_IE5::NetIO_IE5): Ditto.
869 * package_meta.cc (packagemeta::~packagemeta): Bugfix: use array delete.
870 * package_source.cc (packagesource::set_canonical): Ditto.
871 (packagesource::set_cached): Ditto.
872 * package_source.h (site::~site): Ditto.
873 * site.cc: Change site_list_type to a class, and search and replace sort_key to
876 2001-12-01 Robert Collins <rbtcollins@hotmail.com>
878 * package_source.cc (packagesource::set_canonical): Filename was out by one.
880 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
882 * Makefile.in (OBJS): Remove category_list - it's not needed.
883 * README: More wishlist updates.
884 * category.cc (Category::Category): Initialise new members.
885 (Categorycmp): New function.
886 * category.h (Category): New member key for template use.
887 * category_list.cc: Remove.
888 * category_list.h: Remove.
889 (Categorycmp): New function prototype.
890 * choose.cc: Remove category_list - not needed.
891 (set_action): Only show the 'source' option when the source is actually
893 (add_required): Fix recursion limiter to 5.
894 (fill_missing_category): Use list access.
895 (default_trust): Ditto.
896 (pick_line::paint): Ditto.
897 (_view::init_headers): Ditto.
898 (_view::insert_pkg): Ditto.
899 (_view::insert_category): Ditto.
900 (_view::click): Ditto.
901 (set_view_mode): Ditto.
903 * cygpackage.h: Remove category_list - not needed.
904 * geturl.cc (get_url_to_string): Fix null byte insertion.
905 * inipatse.y: Remove category_list - not needed.
906 (categories): Use list access.
907 * package_db.cc: Ditto.
908 * package_db.h: Remove category_list - not needed.
909 (packagedb): Use the list template for categories.
910 * package_meta.cc (add_category): Ditto.
911 * package_meta.h (CategoryPackage): Link to the category as well.
912 (packagemeta): Use a list of CategoryPackages instead of Categories
913 for more memory efficient cross-referencing.
915 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
917 * package_db.cc (packagedb::flush): Write a canonical version for all packages
918 irrespective of the media they were installed from.
920 2001-11-29 Robert Collins <rbtcollins@hotmail.com>
922 * Makefile.in (OBJS): Add package_source and rfc1738.
923 * README: Wishlist update.
924 * category_list.cc (register_category): Use references.
925 * category_list.h (CategoryList): Ditto.
926 * choose.cc (isinstalled): Remove.
927 (pkgtrustp): New macro.
928 (set_action): Use packagemeta.
929 (add_required): Ditto.
930 (choose_caption): Example package to choose caption, rather than state flags.
931 (check_existence): Remove.
932 (set_existence): Remove old code.
933 (fill_missing_category): Use packagemeta.
934 (keep_or_skip): Remove.
935 (default_trust): Use packagemeta and set trust values directly.
936 (pick_line::set_line): Use packagemeta.
937 (_view::insert_pkg): Ditto.
938 (_view::insert_category): Ditto.
939 (_view::click): Ditto.
940 (set_view_mode): Ditto. Also remove "exclude" code.
941 (create_listview): Use packagemeta.
943 (getpkgbyname): Remove
944 (scan2): Use packagemeta. Temporarily comment out the holefinding code.
945 (read_installed_db): Remove.
946 (package_sort): Use packagemeta.
947 (do_choose): Use packagemeta. Don't sort the packages - the db does that.
948 * choose.h: Use packagemeta.
949 * cygpackage.cc (cygpackage::cygpackage): Initialise all variables.
950 (cygpackage::cygpackage): Ditto.
951 (cygpackage::set_canonical_version): Copy the passed string.
952 (cygpackage::~cygpackage): Move cleanup code to destroy().
953 (cygpackage::destroy): New function.
954 (cygpackage::getfirstfile): Use a separate buffer.
955 (cygpackage::getnextfile): Ditto.
956 (cygpackage::Canonical_version): New function.
957 (cygpackage::set_sdesc): Ditto.
958 (cygpackage::set_ldesc): Ditto.
959 * cygpackage.h (cygpackage::Canonical_version): New method.
960 (cygpackage::set_sdesc): New method.
961 (cygpackage::set_ldesc): New method.
962 (cygpackage::SDesc): New method.
963 (cygpackage::LDesc): New method.
964 (cygpackage::set_canonical_version): New method.
965 * desktop.cc: Include packagedb headers.
966 (make_password_group): Use packagemeta.
967 * download.cc: Include packagedb headers.
968 (check_for_cached): New method to find any cached file and fill out the database
970 (download_one): Take a packagesource, support multiple mirrors.
971 (do_download): Use packagemeta.
972 * from cwd.cc: Include packagedb headers.
973 (found_file): Use packagemeta.
974 * ini.cc (do_ini): Beginning of multiple-mirror support.
975 * ini.h (CategoryPackage): Remove.
976 (Dependency): Remove.
978 (new_package,getpkgbyname,getpackagecategorybyname,add_category): Remove.
979 * inilex.l: Support multiple mirrors.
980 * iniparse.y: Include packagedb headers.
981 (parser): Use packagemeta.
982 (new_package): Remove.
983 (add_correct_version): New function.
984 (new_requirement): Remove.
985 (add_category): Remove.
986 * install.cc (uninstall_one): Use packagemeta.
987 (install_one_source): New function.
988 (install_one): Use packagemeta.
989 (do_install): Use packagemeta.
990 * io_stream.cc (io_stream::move): Bugfix on move/copy case.
991 * io_stream_cygfile.cc (io-stream_cygfile::set_mtime): Do not reopen the file
992 after setting the mtime, it makes no sense, and results in 0 length files.
993 * io_stream_file.cc (io-stream_file::set_mtime): Ditto.
994 * list.h: New file, template class for a form of list.
995 * package_db.cc (packagedb::registerpackage): New function.
996 * package_db.h (packagedb::npackages ()): New method.
997 * package_meta.cc (packagemeta::add_version): Use list template.
998 (packagemeta::set_installed): Ditto.
999 (packagemeta::add_category): New method.
1000 * package_meta.h: Include necessary headers to parse the class.
1001 (CategoryPackage): New class.
1002 (packagemeta): Initialise all members.
1003 (packagemeta::SDesc): New method.
1004 (packagemeta::Categories): New method.
1005 (packagemeta::add_category): Ditto.
1006 (packagemeta::versions): Change to be a list instance.
1007 * package_source.cc (packagesource::set_canonical): New method.
1008 (packagesource::set_cached): New method.
1009 * package_source.h: Include necessary headers to parse the class.
1011 (packagesource::packagesource): Initialize all members.
1012 (packagesource): Make this class non-abstract.
1013 * package_version.cc (packageversion::packageversion): New method.
1014 * package_version.h (Dependency): New class.
1015 (packageversion::Canonical_vesion): New method.
1016 (packageversion::SDesc): New method.
1017 (packageversion::LDesc): New method.
1018 (packageversion::new_requirement): Ditto.
1019 (packageversion::srcpicked, binpicked): What to install.
1020 (packageversion::src, bin): Installation source data.
1021 * rfc1738.cc: New file. Escapes special characters in URL's.
1024 2001-11-26 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1026 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Stop header parsing when
1027 SimpleSocket::gets() returns a zero-length string, so that we
1028 don't end up eating the entire stream thinking it's all header info.
1030 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
1032 * install.cc (badrename): Remove.
1033 (do_install): Use packagedb flush method to write /etc/setup/installed.db.
1034 * io_stream.cc (io_stream::move_copy): New method.
1035 (io_stream::move): New method.
1036 * io_stream.h (io_stream): New methods move and move_copy.
1037 * io_stream_cygfile.cc (io_stream_cygfile::move): New method.
1038 * io_stream_cygfile.h (io_stream_cygfile): New method move.
1039 * io_stream_file.cc (io_stream_file::move): New method.
1040 * io_stream_file.h (io_stream_file): New method move.
1041 * package_db.cc (packagedb::flush): New method.
1042 * package_db.h (packagedb): New method flush.
1044 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
1046 * Makefile.in (OBJS): Add package_version.
1047 * ategory.cc (Category::Category): Update constructors.
1048 * category_list.cc (CategoryList::register_category): Insert correctly.
1049 * choose.cc: Include package_version.h, not package.h.
1050 * cygpackage.cc: Ditto.
1051 (cygpackage::uninstall): New method.
1052 * cygpackage.h (cygpackage): Rename genericpackage to packageversion.
1053 New method uninstall.
1054 * hash.cc (add, has, enumerate): Change prototype to be accurate.
1055 * hash.h (hash): Change prototypes to be accurate.
1056 * ini.h (_Info): New parameterless constructor.
1057 (CategoryPackage): New constructor.
1059 * install.cc: Don't include unneeded headers.
1060 Include package database headers.
1061 (hash::add_subdirs): Remove.
1062 (uninstall_one): Use packagemeta->uninstall to perform the uninstallation.
1063 Don't uninstall source packages.
1064 (do_install): Just can uninstall_one once as we ignore source packages now.
1065 Don't copy the installed.old database accross, instead iterate through the
1066 packagedb packages list and write the isntalled packages out.
1067 * package_db.cc: Include package_version.h, not package.h.
1068 (packagedb::packagedb): Never let db be undefined.
1069 Record the installation filename, so we can reconstruct installed.db.
1070 (packagedb::addpackage): Insert packages in alpha sorted order.
1071 (packagedb::categories): Initialise correctly.
1072 * package_meta.cc: Include win32 and mount headers as a workaround to
1073 current io_stream limitations. Include a TODO about that.
1074 (standard_dirs): New, from install.cc.
1075 (hash::add_subdirs): New, from install.cc.
1076 (packagemeta::set_installed): Rename genericpackage to packageversion.
1077 (packagemeta::uninstall): New method.
1078 * package_meta.h: Rename genericpackage to packageversion.
1079 (packagemeta): Update constructor.
1080 (add_version, set_installed): Rename genericpackage to packageversion.
1081 (uninstall): New method.
1082 (installed_from): New member.
1083 * package_source.cc: New file.
1084 * package_source.h: New file.
1085 * package_version.cc: New file.
1086 * package_version.h: New file.
1087 * package.cc: Removed.
1088 * package.h: Removed.
1090 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
1092 * Makefile.in (OBJS): Add category.o and category_list.o.
1093 * category.h: New file.
1094 * category.cc: New file.
1095 * category_list.h: New file.
1096 * category_list.cc: New file.
1097 * choose.cc: Include category headers.
1098 (fill_missing_category): Use package_db to access global categories.
1099 (_view::insert_pkg): Ditto.
1100 (_view::insert_category): Ditto.
1101 (set_view_mode): Ditto.
1102 (getcategorybyname): Remove.
1103 * cygpackage.h: Include category_list.h to parse this correctly.
1104 (cygpackage): New virtual &Categories.
1105 * ini.h (_CategoryPackage): More C to C++ conversion.
1107 (getcategorybyname): Remove.
1108 (register_category): Remove.
1109 * iniparse.y: Include package db and category headers.
1110 (categories): Use package_db to access global categories.
1112 (ncategories): Remove.
1113 (register_category): Remove.
1114 * package.h: New virtual &Categories.
1115 * package_db.cc (packagedb::packagedb): Don't read the installed db twice.
1116 (packagedb::categories): Declare.
1117 * package_db.h (packagedb): New member categories for global categories list.
1119 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
1121 * choose.h: Don't include ini.h
1122 * ini.h: Allow pure c++ in the header file.
1124 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
1126 * install.cc (do_install): Write a version 2 installed.db file.
1127 * package_db.cc (packagedb::packagedb): Read version 1 and 2 installed.db files.
1129 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
1131 * Makefile.in (OBJS): Add package abstraction objects.
1132 * choose.cc: Include package abstraction headers.
1133 (read_installed_db): Use packagedb class and ignore installed sources.
1134 * cygpackage.cc: New file.
1135 * cygpackage.h: New file.
1136 * filemanip.h (get_file_size): Use unixy types.
1137 * package.h: New file.
1138 * package.cc: New file.
1139 * package_db.cc: New file.
1140 * package_db.h: New file.
1141 * package_meta.cc: New file.
1142 * package_meta.h: New file.
1144 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
1146 * REAME: Updates to wishlist.
1148 2001-11-16 Robert Collins <rbtcollins@hotmail.com>
1150 * README: Updated and added my list of wishlist and todo items.
1152 2001-11-14 Robert Collins <rbtcollins@hotmail.com>
1154 * Makefile.in (OBJS): Include io_stream_memory in setup.exe.
1155 * archive_tar.cc (archive_tar::write): New prototype.
1156 (archive_tar::seek): New method.
1157 * archive.h (archive_tar_file): Update write() and add seek().
1158 (archive_tar): Ditto.
1159 * archive_tar_file.cc (archive_tar_file::write): New prototype.
1160 (archive_tar_file::seek): New method.
1161 * compress_bz.cc (compress_bz::write): New prototype.
1162 (compress_bz::seek): New function.
1163 * compress_bz.h (compress_bz): Update write() and add seek().
1164 * compress_gz.cc (compress_gz::write): New prototype.
1165 (compress_gz::seek): New function.
1166 * compress_gz.h (compress_gz): Update write() and add seek().
1167 * geturl.cc: Include io_stream headers.
1169 (get_url_to_string): Use a io_stream_memory buffer instead of GUBuf.
1170 * io_stream.h (io_stream_seek_t): New enum.
1171 (io_stream): Update write() and add seek().
1172 * io_stream_cygfile.cc (io_stream_cygfile::write): New prototype.
1173 (io_stream_cygfile::seek): New function.
1174 * io_stream_cygfile.h (io_stream_cygfile): Update write() and add seek().
1175 * io_stream_file.cc (io_stream_file::write): New prototype.
1176 (io_stream_file::seek): New function.
1177 * io_stream_file.h (io_stream_file): Update write() and add seek().
1179 2001-11-13 Brian Keener <bkeener@thesoftwaresource.com>
1181 * localdir.cc: Add headers unistd.h and port.h.
1182 (save_local_dir): Expand search logic to include local directory for
1183 location of file last-cache.
1184 (dialog_cmd): Skip IDD_ROOT when downloading and use Back button.
1185 (do_local_dir): Expand search logic to include local directory for file
1187 * res.rc (IDD_CHOOSE_DIALOG): Add hotkey to View button.
1188 * Source.cc (dialog_cmd): Skip IDD_ROOT if select Download from
1190 (do_source): Default to Install from Internet on first entry or
1191 previous selection if backing up from IDD_ROOT or IDD_LOCAL_DIR.
1193 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
1195 * choose.cc (find_tar_ext): Only match at the end of the string.
1196 (getpkgbyname): Prevent NULL pointer dereference.
1198 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
1200 * Makefile.in (CFLAGS): Add warnings and -Werr.
1201 (WARNONLY_FLAGS): For sources that produce (harmless) errors no matter what.
1202 (OBJS): Add io_stream class' objects.
1203 (autoload.o): Use WARNONLY_FLAGS.
1205 (iniparse.o): Ditto.
1206 * archive.cc: New file.
1207 * archive.h: New file.
1208 * archive_tar.cc: New file.
1209 * archive_tar.h: New file.
1210 * archive_tar_file.cc: New file.
1211 * autoload.c: Fix compiler warnings (unused, deprecated conversion).
1212 * choose.cc: Use io_stream.h, not mount.h.
1214 (find_tar_ext): Rewritten to use strstr, and to accept .tar as an extension.
1215 (read_installed_db): Use io_streams.
1216 * choose.h: Run indent.
1217 * compress.cc: New file.
1218 * compress.h: New file.
1219 * compress_bz.cc: New file.
1220 * compress_bz.h: New file.
1221 * compress_gz.cc: New file.
1222 * compress_gz.h: New file.
1223 * concat.cc: Run indent.
1224 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1225 * concat.h: Run indent.
1226 * desktop.cc: Run indent.
1227 Include mklink2.h rather than redefining by hand.
1228 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1229 (etc_profile): Fix compiler warning (deprecated conversion).
1230 (make_link): Fix compiler warning (deprecated conversion).
1231 Tidy up use of args variable - consolidate into argbuf.
1232 (start_menu): Fix compiler warning (deprecated conversion).
1233 (desktop_icon): Fix compiler warning (deprecated conversion).
1234 (make_etc_profile): Fix compiler warning (deprecated conversion).
1235 (uexists): Fix compiler warning (deprecated conversion).
1236 (check_desktop): Fix compiler warning (deprecated conversion).
1237 (check_startmenu): Fix compiler warning (deprecated conversion).
1238 * dialog.cc: Run indent.
1239 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1240 (fatal): Fix compiler warning (deprecated conversion).
1241 * dialog.h: Run indent.
1242 * diskfull.cc: Run indent.
1243 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1244 * download.cc: Run indent.
1245 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1246 (download_one): Fix compiler warning (signed vs unsigned comparison).
1247 * filemanip.h: Run indent.
1248 * find.cc: Run indent.
1249 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1250 (find): Fix compiler warning (deprecated conversion).
1251 * find.h: Run indent.
1252 * fromcwd.cc: Run indent.
1253 * geturl.cc: Run indent.
1254 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1255 (dialog_cmd): Return a value.
1256 (dialog_proc): Remove unused variables.
1258 (get_url_to_file): Fix compiler warning (deprecated conversion).
1259 * geturl.h: Run indent.
1260 * hash.cc: Run indent.
1261 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1262 * hash.h: Run indent.
1263 * ini.cc: Run indent.
1265 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1266 (do_ini): Use io_streams for local io.
1267 * ini.h: Run indent.
1268 * inilex.l (ignore_line): Fix compiler warning (is not a prototype).
1269 Fix compiler warning (brackets for truth assignment).
1270 * install.cc: Run indent.
1271 Fix compiler warning (/* in comment).
1273 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1274 (dialog_cmd): Return a value.
1275 (dialog_proc): Return a value.
1276 (start_tics): Deleted - was unused.
1277 (badrename): Fix compiler warnings (unused, deprecated conversion).
1278 (standard_dirs): Fix compiler warning (deprecated conversion).
1280 (uninstall_one): Convert to io_streams.
1281 (install_one): Convert to io_streams.
1282 (do_install): Convert to io_streans.
1283 Fix compiler warning (deprecated conversion).
1284 * io_stream.cc: New file.
1285 * io_stream.h: New file.
1286 * io_stream_cygfile.cc: New file.
1287 * io_stream_cygfile.h: New file.
1288 * io_stream_file.cc: New file.
1289 * io_stream_file.h: New file.
1290 * localdir.cc: Run indent.
1292 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1293 (get_root_dir_now): Remove.
1294 (save_local_dir): Convert to io_streams.
1295 (dialog_cmd): Return a value.
1296 (do_local_dir): Convert to io_streams.
1297 (log.cc): Run indent.
1298 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1299 (log): Fix compiler warning (deprecated conversion).
1300 (log_save): Fix compiler warning (deprecated conversion).
1301 * log.h: Run indent.
1302 (log): Fix compiler warning (deprecated conversion).
1303 (log_save): Fix compiler warning (deprecated conversion).
1304 * main.cc: Run indent.
1305 Don't include "netio.h".
1306 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1307 (netio_test): Remove.
1308 (sid_auth): Fix compiler warning (partially bracketed initialiser).
1309 (WinMain): Return a value.
1310 * mkdir.cc: Run indent.
1311 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1312 * mklink2.c: Run indent.
1313 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1314 (mkcygsymlink): New function.
1315 * mklink2.h: New file.
1316 * mount.cc: Run indent.
1317 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1318 (create_mount): Remove unused variables.
1319 (cygpath): Fix compiler warning (signed vs unsigned comparison).
1320 * mount.h: Run indent.
1321 * msg.cc: Run indent.
1322 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1323 (msg): Fix compiler warning (deprecated conversion).
1324 (mbox): Fix compiler warning (deprecated conversion).
1325 * msg.h: Run indent.
1326 (msg): Fix compiler warning (deprecated conversion).
1327 * net.cc: Run indent.
1328 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1329 (dialog_cmd): Return a value.
1330 * netio.cc: Run indent.
1331 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1332 (auth_cmd): Return a value.
1333 * netio.h: Run indent.
1334 * nio-file.cc: Run indent.
1335 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1336 (NetIO_File::NetIO_File): Fix compiler warning (deprecated conversion).
1337 * nio-file.h: Run indent.
1338 * nio-ftp.cc: Run indent.
1339 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1340 * nio-ftp.h: Run indent.
1341 * nio-http.cc: Run indent.
1342 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1343 * nio-http.h: Run indent.
1344 * nio-ie5.cc: Run indent.
1345 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1346 * nio-ie5.h: Run indent.
1347 * other.cc: Run indent.
1348 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1349 (dialog_cmd): Return a value.
1350 * port.h: Run indent.
1351 * postinstall.cc: Run indent.
1352 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1353 (cmd): Fix compiler warning (deprecated conversion).
1354 (eun): Fix compiler warning (deprecated conversion).
1355 * root.cc: Run indent.
1356 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1357 * simpsock.cc: Run indent.
1358 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1359 * simpsock.h: Run indent.
1360 * site.cc: Run indent.
1362 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1363 (get_root_dir_now): Remove.
1364 (save_site_url): Convert to io_streams.
1365 (dialog_cmd): Return 0.
1366 (get_initial_list_idx): Convert to io_streans.
1367 * source.cc: Run indent.
1368 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1369 (check_if_enable_next): Remove.
1370 (load_dialog): Remove unused variables.
1371 (save_dialog): Ditto.
1372 (dialog_cmd): Return a value.
1373 * splash.cc: Return a value.
1374 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1375 (dialog_cmd): Return a value.
1376 * state.cc: Run indent.
1377 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1378 * state.h: Run indent.
1382 2001-11-12 Christopher Faylor <cgf@redhat.com>
1384 * desktop.cc (start_menu): Change start menu name to "Cygwin".
1385 (check_startmenu): Ditto.
1387 2001-11-11 Christopher Faylor <cgf@redhat.com>
1389 * choose.cc (parse_filename): Finish reorganization by correctly
1390 decrementing p in memmove.
1392 2001-11-11 Christopher Faylor <cgf@redhat.com>
1394 * choose.cc (parse_filename): Reorganize code to work around gcc
1395 optimization problem.
1397 2001-11-09 Gareth Pearce <tilps@hotmail.com>
1399 * choose.cc (set_action): Allow skip as an option for installed
1400 packages that have version number not listed in setup.ini.
1402 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
1404 * choose.cc (set_cation): Backout last change.
1405 (choose_caption): Ditto.
1407 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
1409 * ini.h (actions): Remove - transferred to choose.h.
1411 * choose.h: Protect class's from "C" compilers.
1412 (actions): New enum, from ini.h. This may not be the 'right' place
1413 but that place doesn't exist yet.
1414 (_views): New enum, from ini.h.
1415 * choose.cc (set_action): Handle installed packages with a version not in
1417 (choose_caption): Ditto.
1418 * iniparse.y: Rearrange header order to handle new ini.h.
1420 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
1422 * ini.h (_Info): Fix compiler warnings (signed vs unsigned comparison).
1423 (registry_category): Fix compiler warning (deprecated conversion).
1424 * iniparse.y (registry_category): Ditto.
1425 * choose.cc (cvsid): Fix compiler warnings (unused, deprecated conversion).
1426 (add_requried): Remove unused variable.
1427 (choose_caption): Handle all enumeration values via a default.
1428 (paint): Fix compiler warnings (unused, deprecated conversion).
1429 (scroll_common): Fix compiler warnings (unused, signed vs unsigned comparison).
1430 (list_clicK): Fix compiler warnings (signed vs unsigned comparison).
1431 (note_width): Fix compiler warnings (deprecated conversion).
1432 (keep_or_skip): Fix compiler warnings (unused).
1433 (_view::mode_caption): Fix compiler warnings (deprecated conversion).
1434 (set_view_mode): Fix compiler warnings (unused).
1435 (create_listview): Fix compiler warnings (unused, incorrect format, reaches
1437 (dialog_proc): Fix compiler warnings (unused).
1438 (read_installed_db): Fix compiler warnings (unused, deprecated conversion).
1439 * choose.h (_header): Fix compiler warnings (deprecated conversion).
1442 2001-11-08 Pavel Tsekov <ptsekov@syntrex.com>
1444 * simpsock.h (SimpleSocket::invalidate): Declare new method.
1445 * simpsock.cc (SimpleSocket::invalidate): Implement new method.
1446 (SimpleSocket::SimpleSocket): Initialize buf to zero. Do not allocate
1447 memory for buf in the constructor.
1448 (SimpleSocket::~SimpleSocket): Use SimpleSocket::invalidate().
1449 (SimpleSocket::printf): Use SimpleSocket::write() instead of send().
1450 (SimpleSocket::write): Check object consistency - return -1 on error.
1451 invalidate() the object on socket write error.
1452 (SimpleSocket::fill): Check object consistency - return -1 on error.
1453 invalidate() the object if socket read error is encountered and there
1454 is no more data available in the internal read buffer.
1455 Allocate memory for the internal read buffer.
1456 (SimpleSocket::gets): Return zero (NULL pointer) if error is encountered
1457 during fill() and no more data is available in the internal read buffer.
1458 (SimpleSocket::read): Check object consistency - return -1 on error.
1459 invalidate() the object if socket read error is encountered.
1460 * nio-ftp.cc (NetIO_FTP:NetIO_FTP): Allow 125 as valid response code to
1461 the RETR command (fix for MS IIS ftp server 5 - possibly others too).
1462 (NetIO_FTP::ok): Check if the SimpleSocket object is ok().
1463 (NetIO_FTP::read): Use NetIO_FTP::ok().
1464 * nio-http.cc: Check for valid return value of SimpleSocket::gets().
1465 (NetIO_HTTP::ok): Check if the SimpleSocket object is ok().
1467 2001-11-09 Robert Collins <rbtcollins@hotmail.com>
1469 * simpsock.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
1470 (SimpleSocket::SimpleSocket): Avoid compiler warnings (deprecated conversion).
1471 (SimpleSocket::printf): Ditto.
1472 (SimpleSocket::write): Ditto.
1473 * simpsock.h (SimpleSocket): Avoid compiler warnings for constructor,
1475 * nio-ftp.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
1476 (NetIO_FTP::NetIO_FTP): Remove unused variable done.
1477 * nio-http.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
1479 2001-11-07 Charles Wilson <cwilson@ece.gatech.edu>
1481 * geturl.cc (get_url_to_string): clean up memory leak
1482 (get_url_to_file): ditto
1484 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
1486 * localdir.cc (dialog_cmd): Go back to IDD_ROOT in every case.
1487 * source.cc (dialog_cmd): Go forward to IDD_ROOT in every case.
1489 2001-11-06 Pavel Tsekov <ptsekov@syntrex.com>
1491 * fromcwd.cc (found_file): Free() memory containing the version and
1492 filepath information for a given package, before replacing the pointers which
1493 reference this memory.
1495 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
1497 * fromcwd: Fix compiler warnings for cvsid.
1498 (canonicalize_version): Fix compilter warnings.
1499 (do_fromcwd): Ditto.
1500 * version.h: Fix compiler warnings for canonicalize_version.
1502 2001-11-03 Robert Collins <rbtcollins@hotmail.com>
1504 * res.rc (IDD_CHOOSE): Move the view caption to the right hand side.
1506 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1508 * res.rc (IDD_CHOOSE): Tweak for use on a 640x480 screen.
1510 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1512 * choose.cc (set_action): Correctly allow skip for any uninstalled package.
1514 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1516 * choose.cc (default_trust): Change the "Required" forced install category to
1519 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1521 * choose.cc: Ran indent.
1522 (set_action): When the requested trust level is missing and the level was not
1523 user requested, set the action to ACTION_SAME_CURR.
1525 2001-11-01 Christopher Faylor <cgf@redhat.com>
1527 * Makefile.in (mingw_getopt.o): Fix typo in non-verbose compilation.
1529 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1531 * choose.cc (_view::init_headers): Resync with the paint logic.
1533 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1535 * choose.cc (add_required): Allow SKIP and SRC_ONLY for currently installed
1538 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1540 * choose.cc (default_trust): Autoset currently installed packages per the user's
1541 selection of prev/curr/exp.
1543 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1545 * splash.cc (dialog_proc): Return TRUE as specified in the WIN32 API.
1547 2001-11-02 Pavel Tsekov <ptsekov@syntrex.com>
1549 * geturl.cc (is_showing): Remove.
1550 (is_local_install): New static variable. Controls whether the
1551 progress dialog and the supporting thread will be created.
1552 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the WIN32 API.
1553 (init_dialog): Remove usage of SetForegroundWindow and is_showing.
1554 This prevents the progress dialog to gain control over the
1555 application and fixes the "setup.exe going to background" problem.
1556 (progress): Use is_local_install.
1557 (get_url_to_string): Set is_local_install.
1558 (dismiss_url_status_dialog): Use is_local_install.
1559 * install.cc (dialog_proc): Return TRUE as specified in WIN32 API.
1560 (init_dialog): Remove usage of SetForegroundWindow.
1561 This prevents the progress dialog to gain control over the
1562 application and fixes the "setup.exe going to background" problem.
1564 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1566 * choose.cc (list_click): Change r to row for clarity.
1567 When we shrink the list below 1 page, scroll to the top of the list.
1568 (_view::click): Return the actual change for contractions.
1569 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the Win32 API.
1571 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1573 * choose.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
1574 * localdir.cc: Ran indent.
1575 (get_root_dir_now): New function.
1576 (save_local_dir): New function.
1577 (dialog_cmd): Use it and swap cygwin root selection and local dir selection order.
1578 (do_local_dir): If there is a saved local dir, read it in.
1579 * net.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
1580 * root.cc (dialog_cmd): Ditto.
1581 * source.cc (dialog_cmd): Ditto.
1583 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
1585 * choose.cc(list_vscroll): Return 0 as required by win32.
1586 (list_hscroll): Ditto.
1587 (list_click): Ditto.
1589 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
1593 * main.cc(WinMain): Use __argv to retrieve command line parameters.
1594 * Makefile,in: Remove argv.o.
1596 2001-11-01 Matt Hargett <matt@use.net>
1598 * geturl.cc (progress): Change int to unsigned int to eliminate
1600 * (get_url_to_string): Check for NULL pointer.
1601 * mount.cc (find2): Use free instead of delete for malloc'd
1603 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Fix memory leak.
1605 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
1607 * choose.cc(_view::insert_under): Handle linen > nlines and lines[linen] with neither
1608 a package nor a category. The lines[linen] bug was reported by Matt (matt@usa.net).
1609 (read_installed_db): Bugfix for testing whether a package has a source tarball.
1610 Reported by Matt (matt@usa.net).
1611 * geturl.cc(dialog): Rename gw_dialog to local_gw_dialog to avoid programmer
1612 confusion and lint errors. Reported by Matt (matt@usa.net).
1614 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
1616 * argv.cc: New file, converts arguments for -mwindows programs. (Simplified derivation
1619 * Makefile,in: Add argv.o and mingw_getopt.o to setup.exe object list.
1620 Add mingw_getopt.o build rule.
1621 * main.cc(WinMain): Initialise argv and argc for use by getopt.
1623 2001-10-27 Christopher Faylor <cgf@redhat.com>
1625 * res.rc: Rearrange info on top line slightly.
1627 2001-10-27 Christopher Faylor <cgf@redhat.com>
1629 * desktop.cc (make_passwd_group): Move file creation earlier in the
1630 process to ensure that passwd-grp.bat reflects desired operation.
1632 2001-27-10 Trevor Forbes <t4bs@hotmail.com>
1634 * postinstall.cc (each): Remove "*.done" file else rename will fail.
1636 2001-10-16 Christopher Faylor <cgf@redhat.com>
1638 * res.rc: Oops. Take 640x480 screen size into account.
1640 2001-10-16 Christopher Faylor <cgf@redhat.com>
1642 * res.rc: Enlarge chooser screen.
1644 2001-10-12 Christopher Faylor <cgf@redhat.com>
1646 * Makefile.in: Accomodate changes to w32api_include macro.
1648 2001-10-12 Christopher Faylor <cgf@redhat.com>
1650 * Makefile.in: Use correct flags for windres.
1652 2001-10-12 Christopher Faylor <cgf@redhat.com>
1654 * Makefile.in (CFLAGS): Remove -nostdinc from CFLAGS.
1656 2001-10-12 Christopher Faylor <cgf@redhat.com>
1658 * choose.cc (pick_line::paint): Reorganize after botched patch.
1660 2001-10-12 Christopher Faylor <cgf@redhat.com>
1662 * choose.cc (pick_line::paint): Add missing declaration.
1664 2001-10-10 Ralf Habacker <Ralf.Habacker@freenet.de>
1666 * choose.cc (pick_line::paint): Add package name to sdesc for display.
1668 Wed Sep 26 21:39:00 Robert Collins rbtcollins@hotmail.com
1670 * choose.cc (_view::insert_pkg): Correctly exit loop.
1671 * iniparse.y (register_category): Always insert new categories.
1673 Fri Sep 21 13:56:32 2001 Christopher Faylor <cgf@cygnus.com>
1675 * inilex.l (yylex): For comments, eat all characters up to, but not
1678 Sun Aug 26 12:50:01 2001 John Marshall <jmarshall@acm.org>
1680 * fromcwd.cc (found_file): Use correct package name when adding an
1681 unknown package rather than random stack garbage.
1683 Sun Aug 12 14:25:21 2001 Christopher Faylor <cgf@cygnus.com>
1685 * desktop.cc (make_passwd_group): .bat files need \r\n endings.
1687 Wed Aug 8 13:53:47 2001 Christopher Faylor <cgf@cygnus.com>
1689 * desktop.cc (etc_profile): Leave environment variables untouched.
1691 2001-08-07 Corinna Vinschen <corinna@vinschen.de>
1693 * autoload.c: Add dynamic load statements for NT/W2K
1694 advapi32 functions not available in 9x/ME.
1695 * main.cc (set_default_dacl): New function.
1696 (WinMain): Call `set_default_dacl' if running on NT/W2K.
1698 Sat Aug 4 21:35:53 2001 Christopher Faylor <cgf@cygnus.com>
1700 * ini.h (_CategoryPackage): Change pkg field to pkgname for
1702 * choose.cc: Use pkgname field when referencing _CategoryPackage
1704 (fill_missing_category): Don't add excluded packages.
1705 (default_trust): Ditto.
1706 (_view::insert_pkg): Ditto.
1707 * iniparse.y (register_category): Use consistent variable name.
1709 2001-07-09 Egor Duda <deo@logos-m.ru>
1711 * choose.cc: Use system foreground color for text output.
1713 Sat Jul 7 00:40:28 2001 Christopher Faylor <cgf@cygnus.com>
1715 * choose.cc (set_action): Use default trust for determining reinstall
1717 (default_trust): Set default trust.
1718 (pick_line::paint): Allow source selection when reinstalling or
1721 Fri Jul 6 18:08:49 2001 Christopher Faylor <cgf@cygnus.com>
1723 * choose.cc (isinstalled): Modify to properly accomodate special case
1725 (set_action): Check downloaded components, not installed components if
1727 (set_existence): Always include full list of files when "download
1730 Fri Jul 6 00:37:05 2001 Christopher Faylor <cgf@cygnus.com>
1732 * choose.cc (pick_line::paint): Properly display "na" field when no
1735 Thu Jul 5 00:34:23 2001 Christopher Faylor <cgf@cygnus.com>
1737 * choose.cc (scan2): Ensure that older versions do not show up in
1740 Mon Jul 2 15:47:59 2001 Christopher Faylor <cgf@cygnus.com>
1742 * choose.cc (set_action): Allow "Skip" action if trust != installed.
1743 * res.rc: Fix copyright.
1745 Sat Jun 30 14:05:21 2001 Michael A Chase <mchase@ix.netcom.com>
1747 * res.rc (IDD_LOCAL_DIR): Change caption to match the other dialog
1749 (IDD_CHOOSE): Adjust horizontal size so package names are visible.
1751 * choose.cc: Restore some more changes from 2001-06-25, throughout.
1752 (paint): Wrap some excessively long lines.
1753 (pick_line::paint): Ditto. Move the arrow in the "Current" column
1754 right to where it belongs. Move the source checkbox slightly to the
1756 (do_choose): List categories and required packages in setup.log.full.
1758 Sat Jun 30 23:04:59 2001 Christopher Faylor <cgf@cygnus.com>
1760 * choose.cc (scan2): Restore source scanning eliminated by previous checkin.
1762 Sat Jun 30 15:18:33 2001 Christopher Faylor <cgf@cygnus.com>
1764 * ini.h (struct _Info): Add "derived" element.
1765 * choose.cc (scan2): Try to place unknown tar files into proper slot
1766 when package exists in setup.ini but tar file does not.
1768 Sat Jun 30 13:39:00 2001 Robert Collins <rbtcollins@hotmail.com>
1770 * choose.cc (create_listview): Call set_view_mode with VIEW_CATEGORY.
1771 (do_choose): Log the first category name.
1773 Fri Jun 29 23:07:44 2001 Christopher Faylor <cgf@cygnus.com>
1775 *ini.h: Reapply 2001-06-25 changes.
1776 * choose.cc (add_required): Ditto. Default to "Keep" state if
1777 UNINSTALL and product is installed. Default to curr state if SKIP,
1779 (keep_or_skip): New function. Returns skip or keep state depending on
1780 installed state of package.
1781 (default_trust): Use keep_or_skip to set state.
1782 (_view::insert_pkg): Use calloc to allocate lines.
1783 (set_view_mode): Adapt 2001-06-25 change to set_full_list here.
1785 Sat Jun 30 11:01:00 2001 Robert Collins <rbtcollins@hotmail.com>
1787 * choose.cc: Remove globals full_list, headers, package_indexes and
1789 Add globals cat_headers, pkg_headers and chooser.
1790 (add_required): New function.
1791 (paint): Use the chooser for header details.
1792 Call into the chooser to paint each line.
1793 (list_click): Use new global variables.
1794 Call into the chooser to handle the click.
1795 Repaint the entire view if packages have been added or removed.
1796 (note_width): Get passed a headers struct rather than using a global
1798 (fill_missing_category): New function.
1799 (default_trust): Skip non-"Required" or "Misc" packages.
1800 (pick_line::set_line (Package *)): New function.
1801 (pick_line::set_line (Category *)): New function.
1802 (pick_line::paint): New function.
1803 (pick_line::click): New function.
1804 (_view::_view): New function.
1805 (_view::set_view_mode): New function.
1806 (_view::mode_caption): New function.
1807 (_view::set_headers): New function.
1808 (_view::init_header): New function.
1809 (_view::insert_pkg): New function.
1810 (_view::insert_category): New function.
1811 (_view::insert_at): New function.
1812 (_view::insert_under): New function.
1813 (_view::clear_view): New function.
1814 (viewsplusplus): New function.
1815 (_view::client): New function.
1816 (set_view_mode): Use new chooser functionality.
1817 (set_full_list): Use new global variables.
1818 (create_listview): Instantiate chooser.
1819 Remove all hardcoded headers[] code.
1820 (dialog_cmd): On trust changes, check dependencies.
1821 (getcategorybyname): New function.
1822 (getpackagecategorybyname): New function.
1823 (scan2): Use case-insensitive package comparison.
1824 (do_choose): Use fill_missing_category ().
1825 Show some category data.
1826 * ini.h: Protect against multiple inclusion.
1828 (_CategoryPackage): New struct.
1829 (_Category): New struct.
1830 (_Package): Change category to Category * from char *.
1831 (extern Category category): New global variable.
1832 (extern in ncategories): Ditto.
1833 (getcategorybyname): New prototype.
1834 (catpackagecategorybyname): New prototype.
1835 (register_category): New prototype.
1836 (add_category): New prototype.
1837 * iniparse.y: Parse multiple categories per package.
1838 (category): New global variable.
1839 (ncategories): New global variable.
1840 (new_package): Compare package against NULL, not 0.
1841 (new_requirement): Source formatting fix.
1842 (register_category): New function.
1843 (add_category): New function.
1844 * res.rc: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
1845 IDC_CHOOSE_VIEWCAPTION: New control.
1846 * resource.h: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
1847 IDC_CHOOSE_VIEWCAPTION: New control.
1848 Increment _APS_NEXT_CONTROL_VALUE.
1850 Mon Jun 25 00:56:37 2001 Michael A Chase <mchase@ix.netcom.com>
1852 * choose.cc (paint): Wrap excessively long lines.
1853 (list_click): Ditto.
1854 (create_listview): Ditto.
1855 (do_choose): Ditto. Replace TABs and remove CRs in lines written to
1856 setup.log.full. Allow "Yes" for source exists in setup.log.full when
1857 installing from local directories.
1859 Mon Jun 25 00:56:37 2001 Christopher Faylor <cgf@cygnus.com>
1861 * choose.cc (set_action): Only clear srcpicked when moving to next
1862 state. Allow source installation if it exists in the current "trust"
1863 state. Don't move to skip state when package is installed.
1864 (list_click): Don't allow source clicking when no source is available.
1865 (set_full_list): Display package when not is_full_action.
1866 * ini.h (is_full_action): Define.
1868 Sun Jun 17 12:06:14 2001 Christopher Faylor <cgf@cygnus.com>
1870 * install.cc (check_for_old_cygwin): New function. First stab at
1871 checking for old cygwin versions.
1872 (do_install): Call check_for_old_cygwin if there were no errors during
1875 Sat Jun 16 11:33:51 2001 Michael A Chase <mchase@ix.netcom.com>
1877 * choose.cc (_Info::_Info): Test _source paramenter for non-NULL rather
1878 than zeroed "source" element.
1880 Fri Jun 15 20:54:43 2001 Christopher Faylor <cgf@cygnus.com>
1882 * choose.cc (scan2): Insert unknown tar archives, found on disk, into
1883 the highest available "hole" in the trust array.
1885 Fri Jun 15 00:20:48 2001 Christopher Faylor <cgf@cygnus.com>
1887 * choose.cc (set_existence): Use pointer method for indexing in trust
1889 (create_listview): Ditto.
1890 (scan2): Ditto. Also, use consistent variable name for indexing into
1892 * ini.h (Package): Reorganize info array for easier scanning.
1894 Fri Jun 15 00:01:51 2001 Christopher Faylor <cgf@cygnus.com>
1896 * choose.cc (isinstalled): Eliminate special download only test.
1897 (set_action): Don't move to next state if in ACTION_SAME range and not
1899 (choose_caption): Display "Retrieve" rather than "Reinstall" when just
1901 (do_choose): Sort packages after all packages have been read.
1902 Accomodate the fact that first element in trust array is empty so that
1903 log files don't report the wrong trust value.
1904 * iniparse.y (new_package): Malloc space for package name or suffer
1907 Thu Jun 14 22:43:59 2001 Robert Collins <rbtcollins@hotmail.com>
1909 * ini.h (Dependency): New structure. Declare new function.
1910 * inilex.l (yylex): Detect new setup.ini options - category and requires.
1911 * iniparse.y: Declare new setup.ini token values.
1912 (yyparse): Parse new token values.
1913 (new_requirement): New function.
1915 Thu Jun 14 22:43:26 2001 Christopher Faylor <cgf@cygnus.com>
1917 * choose.cc (read_installed_db): Eliminate obsolete code.
1919 Thu Jun 14 22:11:53 2001 Christopher Faylor <cgf@cygnus.com>
1921 * choose.cc (set_action): Set trust on "redo".
1922 (_Info::_Info): New constructor.
1923 (read_installed_db): Use new constructor. Use trusts type for
1925 * ini.h (struct _Info): Label struct, add constructor.
1926 (Package): Make installed_ix a type 'trusts.'
1927 * install.cc (uninstall_one): Unset any installed info for current
1929 (install_one): Allocate new Info struct for installed reflecting new
1931 (do_install): Don't output line to installed.db if package is being
1934 Thu Jun 14 20:33:01 2001 Robert Collins <rbtcollins@hotmail.com>
1936 * choose.cc (getpkgbyname): Use consistent method for scanning package
1939 Wed Jun 13 23:33:08 2001 Christopher Faylor <cgf@cygnus.com>
1941 * choose.cc: Add some comments.
1942 (getpkgbyname): Use strcasecmp for comparisons.
1944 Wed Jun 13 16:07:00 2001 Christopher Faylor <cgf@cygnus.com>
1946 * install.cc (do_install): Avoid checking for download action if
1947 package wasn't currently retrieved.
1949 Wed Jun 13 11:27:22 2001 Christopher Faylor <cgf@cygnus.com>
1951 * choose.cc: Eliminate extra array throughout. Use element in package
1952 structure instead. Use pointers rather than array indexes where
1954 (set_action): New function to set next action based on current.
1955 (choose_caption): New function. Returns display caption.
1956 (check_existence): Change arguments. Use pointer to 'info' structure.
1957 (set_existence): Use pointer rather than array index.
1958 (default_trust): Use trusts enum for second argument.
1959 (set_full_list): Honor exclude element in package structure.
1960 (build_labels): Eliminate.
1961 (base): Make global. Use const char * argument.
1962 (get_package_version): Eliminate.
1963 (getpkgbyname): New function.
1964 (read_installed_db): Use parse_filename to get version info.
1965 * desktop.cc (make_passwd_group): Use getpkgbyname function.
1966 * download.cc (get_file_size): const argument.
1967 (do_download): Use is_download_action to determine when something
1968 should be downloaded.
1969 * filemanip.h: Add some functions.
1970 * ini.cc (do_ini): Use NULL rather than 0 for pointer assignment.
1971 * ini.h: Use enums for actions and trusts.
1972 (is_download_action): New macro.
1973 (is_upgrade_action): Ditto.
1974 (is_uninstall_action): Ditto.
1975 (struct Package): Add new fields.
1976 * inilex.l (yylex): Detect new setup.ini options.
1977 * iniparse.y: Declare new tokens.
1978 (yyparse): Detect exclude keyword. Fill out version field even if
1980 (new_package): Use greater granularity when allocating package array to
1981 avoid repeated calls to realloc.
1982 * install.cc (exists): const argument.
1983 (uninstall_one): Take pkg argument.
1984 (install_one): Ditto. Eliminate unneeded arguments which can be
1985 derived from package info.
1986 (do_install): Iterate over package array using a pointer. Use
1987 is_download_action to control when package should be downloaded.
1988 * tar.cc (tar_open): const argument.
1989 * tar.h: Refloect const argument.
1991 2001-05-31 Michael Chase mchase@ix.netcom.com
1993 * main.cc (WinMain): Add setup version to starting setup.log entry
1995 Tue May 29 21:37:58 2001 Yukihiko Sohda <sohda@is.titech.ac.jp>
1997 * inilex.l: Add + to list of valid string characters.
1999 Mon May 28 20:54:50 2001 Christopher Faylor <cgf@cygnus.com>
2001 * Makefile.in: Remove more stuff in the clean target.
2003 Mon May 28 18:24:59 2001 Christopher Faylor <cgf@cygnus.com>
2005 * Makefile.in: Correctly generate iniparse.h.
2007 Tue Mar 6 19:14:00 2001 Corinna Vinschen <corinna@vinschen.de>
2009 * geturl.cc (get_url_to_file): Add parameter `allow_ftp_auth'.
2010 * geturl.h: Change declaration of `get_url_to_file' accordingly.
2011 * netio.cc (NetIO::NetIO): Add parameter `allow_ftp_auth'.
2012 Set member `ftp_auth'.
2013 (NetIO::open): Add parameter `allow_ftp_auth'. Use it in calls
2014 to constructors of derived classes.
2015 (NetIO::get_ftp_auth): New method.
2016 * netio.h: Change class definition accordingly.
2017 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Add parameter `allow_ftp_auth'.
2018 Take global variables `net_ftp_user' and `net_ftp_passwd' into account.
2019 Add code for ftp authentication retry.
2020 * nio-ftp.h: Change class definition accordingly.
2021 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Add parameter `allow_ftp_auth'.
2022 Add code for ftp authentication retry in case of proxy connection.
2023 * nio-http.h: Change class definition accordingly.
2024 * res.rc: Add FTP authentication dialog.
2025 * resource.h: Add new constants used in res.rc.
2026 * state.h: Add variables `net_ftp_user' and `net_ftp_passwd'.
2028 Sun May 27 17:12:23 2001 Christopher Faylor <cgf@cygnus.com>
2030 * res.rc (IDD_SPLASH): Add a copyright year.
2032 Sun May 27 15:42:18 2001 Christopher Faylor <cgf@cygnus.com>
2034 * Makefile.in: Make iniparse.y produce a c++ file.
2035 * choose.cc (set_existence): Revert 2001-05-27 change.
2036 * ini.cc: Remove "C" from declaration of yyparse.
2037 * iniparse.y (yyparse): Fill out version field by default when a binary
2038 install is detected and no version has been set yet.
2039 * install.cc (do_install): Mount things earlier so that we can use
2040 proper mount table settings. Don't remove mounts since they are now
2042 * mount.cc (create_mount): Reread the mount table after establishing a
2044 (read_mounts): Explicitly clear root_here to allow multiple uses of
2045 this function. Ensure that there is no garbage in the table when we've
2046 exhausted all of the mounts in the registry.
2047 (cygpath): Accomodate ./ in path.
2049 Sun May 27 02:59:07 2001 Christopher Faylor <cgf@cygnus.com>
2051 Use parse_filename method to parse filenames throughout. Use
2052 get_root_dir to retrieve the current root directory throughout. Set
2053 const in argument list, where appropriate, throughout.
2054 * choose.cc (set_existence): Detect case of uninstalled package with no
2056 (parse_filename): New function.
2057 * filemanip.h (fileparse): New structure.
2058 * mount.cc (read_mounts): Remember where we found the root mount.
2059 (set_root_dir): New function.
2060 (get_root_dir): Ditto.
2061 * mount.h: Declare new functions.
2062 * site.cc (get_root_dir_now): Renamed from get_root_dir.
2063 (save_site_url): Use new function name.
2064 (get_initial_list_idx): Ditto.
2066 Sat May 26 21:23:59 2001 Christopher Faylor <cgf@cygnus.com>
2068 * choose.cc: Use a constant throughout to deal with chooser icon
2070 * res.rc (IDD_CHOOSE): Increase size of chooser box.
2072 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
2074 * choose.cc (do_choose): Fix incorrect assignment of trust setting to
2075 use when Redownload or Sources Only selected.
2077 Thu May 10 22:35:59 2001 Christopher Faylor <cgf@cygnus.com>
2079 Reformat file after botched patch formatting.
2080 * choose.cc (which_trust): Eliminate variable.
2081 (default_trust): Don't set which_trust.
2082 (do_choose): Use selected trust when reinstalling or installing source.
2084 Thu May 10 21:04:18 2001 Christopher Faylor <cgf@cygnus.com>
2086 Change concat to cygpath throughout.
2087 Change map_filename to cygpath throughout.
2088 * concat.cc (vconcat): New function.
2089 (concat): Use vconcat.
2090 * concat.h: Reflect above.
2091 * install.cc (map_filename): Eliminate.
2092 (install_one): Free dest_file.
2093 * mount.cc (find2): Expect input key to be pointing to mount record.
2094 (in_table): New function.
2095 (is_admin): Move from root.cc.
2096 (read_mounts): New function.
2097 (path_prefix_p): New function.
2098 (cygpath): New function.
2099 * mount.h: Define new functions and structure.
2100 * root.cc (in_table): Move to mount.cc.
2101 (do_root): Call read_mounts to initialize root stuff and mount table.
2102 * site.cc (get_root_dir): Ditto.
2104 2001-05-09 Matt Hargett <matt@use.net>
2106 * Makefile.in: Remove *.rc from clean.
2108 Tue May 8 23:33:38 2001 Christopher Faylor <cgf@cygnus.com>
2110 * choose.cc (scan2): Fix incorrect setting of TRUST_CURR rather than
2111 TRUST_PREV which produced "0" versions.
2113 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
2115 * resource.h: Add new field IDC_CHOOSE_INST_TEXT. Modify
2116 _APS_NEXT_CONTROL_VALUE to account for addition of
2117 IDC_CHOOSE_INST_TEXT.
2118 * res.rc (IDD_CHOOSE): Modify choose dialog to use new field
2119 IDC_CHOOSE_INST_TEXT for screen text. Modify choose Dialog to allow
2120 hot keys to select Prev, Curr, Exp.
2121 * ini.h: Add new actions for ACTION_REDO and ACTION_SRC_ONLY. Modify
2122 define for LOOP_PACKAGES to include new actions ACTION_REDO and
2124 * choose.cc: Add new Trusts for TRUST_REDO and TRUST_SRC_ONLY.
2125 (paint): Modify to check TRUST_SRC_ONLY when determining Bitmap for
2126 source Checkbox to use.
2127 (build_labels): Add logic to allow for selection of Source only
2128 Download/ReDownload/Install/Reinstall and also to Redownload/Reinstall
2129 current version binary.
2130 (dialog_proc): Add conditional display for file selection prompt based
2131 on download vs install using IDC_CHOOSE_INST_TEXT.
2132 (do_choose): Add new logic for TRUST_REDO and TRUST_SRC_ONLY selection
2133 and modify logic for TRUST_UNINSTALL, TRUST_KEEP, and TRUST_NONE to
2134 handle the instance where Source Download/Install was selected. Modify
2135 log file to store appropriate information regarding Action selected and
2136 the new actions that were added (I.E.: ACTION_REDO and
2138 * download.cc: Add include for <unistd.h> and "port.h".
2139 (download_one): Modify parameter list to include the selected action
2140 for the file to be downloaded. Modify size check against expected size
2141 to include check for ACTION_REDO and ACTION_SRC_ONLY. Modify rename of
2142 .tmp file to also remove the destination file if exists due to ability
2143 to redownload source and binary now.
2144 (do_download): Modify to also use ACTION_REDO and ACTION_SRC_ONLY in
2145 calculation of Download Bytes. Modify to also use ACTION_REDO and
2146 ACTION_SRC_ONLY in determining files selected for download.
2147 * install.cc (uninstall_one): Add check to treat a Reinstall like an
2148 upgrade so current version will be uninstalled prior to reinstall.
2149 (do_install): Add logic to handle ACTION_REDO and ACTION_SRC_ONLY for
2150 uninstalling and installing binary and source packages.
2151 * desktop.cc (make_passwd_group): Modify logic to account for a Source
2152 only cygwin install when checking for cygwin to determine need for
2153 mkpasswd and mkgroup.
2155 Mon May 7 23:33:30 2001 Matt Hargett <matt@use.net>
2157 * winsup/cinstall/res.rc: Added accelerators and improved focus order.
2158 Removed WS_DISABLED from "OK" buttons to accomodate default focus
2159 changes in net.cc and source.cc.
2160 * winsup/cinstall/net.cc (dialog_proc): If no radio button is selected,
2161 a default is selected.
2162 * winsup/cinstall/source.cc (dialog_proc): Ditto.
2163 (check_if_enable_next): Removed. No longer needed since a radio button
2164 will always be selected.
2165 (load_dialog): Removed call to check_if_enable_next.
2166 (dialog_cmd): Ditto. Also added default to switch.
2168 Tue Apr 24 23:42:02 2001 Christopher Faylor <cgf@cygnus.com>
2170 * res.rc: Resize affected text.
2172 Tue Apr 24 23:35:31 2001 Christopher Faylor <cgf@cygnus.com>
2174 * net.cc (do_net): Default to direct download.
2175 * res.rc: Move default selections to the top.
2177 2001-04-18 Earnie Boyd <earnie@users.sourceforge.net>
2179 * win32.h: Remove the definitions for _UNION_NAME and _STRUCT_NAME.
2180 Must now include <windows.h> and not the pieces.
2181 * choose.cc (create_listview): Clean up type mismatch problems.
2182 * dialog.h (NEXT(id)): Ditto.
2183 * geturl.cc (dialog): Ditto.
2184 * install.cc (dialog): Ditto.
2185 * splash.cc (load_dialog): Ditto.
2187 Wed Apr 18 18:59:21 2001 Christopher Faylor <cgf@cygnus.com>
2189 * tar.cc (class gzbz): Define dummy virtual functions.
2191 Wed Apr 18 16:01:21 2001 Christopher Faylor <cgf@cygnus.com>
2193 * Makefile.in: Add bz2 include/library support.
2194 * filemanip.h: New file.
2195 * choose.cc (find_tar_ext): New function. Returns TRUE if .tar.gz or
2197 (scan2): Reorganize to use find_tar_ext, accomodating .bz2 extension.
2198 (read_installed_db): Ditto.
2200 * fromcwd.cc (found_file): Ditto.
2201 (do_fromcwd): Ditto.
2202 * tar.cc (class gzbz): New super class for uncompression support.
2203 (gz): New class for gzip support.
2204 (bz): New class for bzip2 support.
2205 (tar_open): Use gzbz class to control file opening.
2206 (tar_ftell): Ditto for returning position in file.
2207 (skip_file): Ditto for reading file.
2208 (tar_next_file): Ditto.
2209 (tar_read_file): Ditto.
2210 (tar_close): Ditto for close.
2212 * zlib/configure.in: Force NM substitution.
2214 * source.cc (do_source): Default to "Install from Internet".
2216 2001-03-16 Brian Keener <bkeener@thesoftwaresource.com>
2218 * nio-file.cc (NetIO_File::NetIO_File): Use `get_file_size' instead of
2220 * choose.cc (list_click): Correct inability to select source code for
2222 (scan2): Modify to skip source tarballs when scanning disk for
2223 installable packages.
2225 2001-03-10 Chris Abbey <chris_abbey@yahoo.com>
2227 * install.cc: install sources into /usr/src instead
2228 of /, also include the sizes of source tarballs
2230 * download.cc: include sizes of source tarballs in
2231 total_download_bytes.
2233 Tue Mar 6 19:31:00 2000 Corinna Vinschen <corinna@vinschen.com>
2235 * download.cc (get_file_size): Remove `static'.
2237 Tue Mar 6 19:11:00 2000 Corinna Vinschen <corinna@vinschen.com>
2239 * tar.cc (tar_open): Use `get_file_size' instead of `stat'.
2241 2001-03-06 Brian Keener <bkeener@thesoftwaresource.com>
2243 * choose.cc (paint): Modify message for nothing to download vs
2244 nothing to install/update based on installation method.
2245 (list_click): Modify to skip versions in selection process if
2246 installing from local directory and installation file does not exist.
2247 Also leaves Source Action set to N/A if the source file does not exist
2248 and installing from local directory.
2249 (check_existence): New method to check current existence of installation
2250 files based on selected installation method.
2251 (set_existence): New method to set the current existence of installation
2252 files based on selected installation method.
2253 (best_trust): Modify decision process for best trust to base decision on
2254 current trust selected (IE: Prev, Curr, or Test), existence of file and
2255 installation method selected.
2256 (default_trust): Add logic to capture the current trust level and the
2257 trust selected for the given package.
2258 (set_full_list): Expand decision criteria for displaying a package in
2259 the selection list to include file existence/non-existence and selected
2260 installation method.
2261 (build_labels): Modify criteria for label addition to include
2262 installation method and file existence/non-existence.
2263 (create_listview): Modify to establish package trust level for each
2264 package before setting up the display list. Also modification to set
2265 current trust button as the default.
2266 (dialog_cmd): Set response for Prev, Curr, Test button push to perform
2267 a reset of the selection list in addition to setting the default trust.
2268 (get_package_version): New method to provide reusable code for
2269 determining the package version from the file name for a specified
2271 (scan2): Modify to use new method get_package_version and
2272 also enhance handling of the build for the structures package and
2274 (read_installed_db): Modify to use the new method
2275 get_package_version and also enhance handling of the build for the
2276 structures package and extra.
2277 (do_choose): Add additional initialization of package and extra
2278 structures. Modify to use read_installed_db all the time despite
2279 install method. Modify output to setup.log.full log file to increase
2280 readability by adding additional spacing, expanded code and available
2282 * ini.h: Add new fields install_exists, source_exists and
2283 partial_list_display to the structure definition for package.
2284 * res.rc (IDD_CHOOSE): Modify choose dialog Prev, Curr, and Test
2285 pushbuttons by replacing with Radio Buttons thus allowing the
2286 operator to better determine which is selected.
2288 2001-02-20 Brian Keener <bkeener@thesoftwaresource.com>
2290 * download.cc (do_download): Add new variables total_download_bytes and
2291 total_download_bytes_sofar for download progress meter. Add loop
2292 to accumulate the total bytes to download from the selected packages.
2293 * geturl.cc: Add state.h and diskfull.h to include list. Add new
2294 variables gw_iprogress, gw_pprogress, gw_progress_text,
2295 gw_pprogress_text, and gw_iprogress_text to allow for addition of
2296 total packages download progress meter and disk full percent
2297 progress meter. Add variables total_download_bytes and
2298 total_download_bytes_sofar for use by progress meters.
2299 (dialog_proc): Add new variables gw_iprogress, gw_pprogress,
2300 gw_progress_text, gw_pprogress_text, and gw_iprogress_text to
2301 allow for addition of total packages download progress meter and disk
2302 full percent progress meter.
2303 (init_dialog): Ditto.
2305 (get_url_to_file): Ditto.
2306 * geturl.h: Add external definition for total_download_bytes and
2307 total_download_bytes_sofar.
2308 * res.rc: Add two additional progress meters (IDC_DLS_IPROGRESS)
2309 and (IDC_DLS_PPROGRESS) and three text objects (IDC_DLS_PROGRESS_TEXT)
2310 and (IDC_DLS_IPROGRESS_TEXT, IDC_DLS_PPROGRESS_TEXT) for use in the
2312 * resource.h: Add new fields for progress meters and text and update
2313 _APS_NEXT_CONTROL_VALUE.
2315 Wed Feb 21 13:05:00 2000 Corinna Vinschen <vinschen@redhat.com>
2317 * download.cc (get_file_size): Check for INVALID_HANDLE_VALUE instead
2320 Wed Feb 21 11:21:00 2000 Corinna Vinschen <vinschen@redhat.com>
2322 * download.cc (download_one): Add missing parenthesis.
2324 Mon Feb 19 18:59:00 2000 Corinna Vinschen <vinschen@redhat.com>
2326 * download.cc (get_file_size): New function. Eliminates the need
2328 (download_one): Call `get_file_size' instead of `stat'. This
2329 workarounds a problem with mingw's `stat' call.
2331 2001-02-07 Earnie Boyd <earnie@users.sourceforge.net>
2333 * Makefile.in: (%.o: %.rc): Specify --include-dir $(w32api_include).
2334 This is to allow cinstall to build with 2.95.2-7 and to make the
2335 use of headers consistent.
2337 2000-12-26 Earnie Boyd <earnie_boyd@yahoo.com>
2339 * Makefile.in (autoload.o): Add target to specify -fno-inline-functions
2341 Tue Dec 26 03:46:00 2000 Matt Hargett <matt@use.net>
2343 * winsup/cinstall/res.rc: Added accelerators and improved focus
2346 2000-12-10 Egor Duda <deo@logos-m.ru>
2348 * choose.cc (paint): Use system background color for text output.
2350 Sun Dec 10 19:05:25 2000 Christopher Faylor <cgf@cygnus.com>
2352 * Makefile.in: Use CXX for linking and for compiling .cc files.
2353 * configure.in: Find correct c++ compiler.
2354 * configure: Regenerate.
2356 2000-11-17 DJ Delorie <dj@redhat.com>
2358 * splash.cc (load_dialog): Make message more obvious.
2361 Fri Nov 17 17:15:21 2000 Christopher Faylor <cgf@cygnus.com>
2363 * Makefile.in: Use g++ to link so that libstdc++.a gets used. This is
2364 necessary for newer compilers.
2366 Wed Nov 9 2:19:00 2000 Corinna Vinschen <vinschen@redhat.com>
2368 * desktop.cc: Include "ini.h" and "version.h".
2369 (make_passwd_group): Skip the function on 9x/ME boxes when an
2370 older version of Cygwin has been installed which doesn't
2371 support mkpasswd/mkgroup on 9x/ME.
2372 * install.cc: Move the `LOOP_PACKAGES' and `pi' macros to...
2375 Wed Nov 8 17:10:00 2000 Corinna Vinschen <vinschen@redhat.com>
2377 * desktop.cc (make_passwd_group): Don't exit when started
2378 on 9x/ME since mkpasswd/mkgroup are usable on 9x/ME now.
2380 Sun Nov 5 12:51:42 2000 Jason Tishler <jt@dothill.com>
2382 * install.cc (do_install): Add call to set_cygdrive_flags to sync
2384 * mount.cc (set_cygdrive_flags): New function.
2385 (get_cygdrive_flags): Ditto.
2386 (default_cygdrive): Ditto.
2387 (set_cygdrive_flags): Ditto.
2388 * mount.h: Add prototype for set_cygdrive_flags.
2390 2000-10-23 DJ Delorie <dj@redhat.com>
2392 * ini.h: add source actions
2393 * fromcwd.cc: check for available sources
2394 * res.rc: add checkbox bitmaps
2397 * choose.cc: add source column
2398 * download.cc: download sources if called for
2399 * install.cc: [un]install sources too
2401 2000-10-22 DJ Delorie <dj@redhat.com>
2403 * choose.cc (build_labels): Don't skip TRUST_PREV completely; only
2404 ignore it wrt full_list if there's already a version installed.
2405 (do_choose): Sort the list.
2406 (package_sort): New.
2408 2000-10-12 DJ Delorie <dj@redhat.com>
2410 * res.rc: Add more error strings.
2411 * resource.h: Ditto.
2412 * iniparse.y (new_package): re-initialize if needed.
2413 * download.cc (do_download): Keep track of errors; notify and
2415 * install.cc (do_install): Ditto.
2417 2000-10-05 DJ Delorie <dj@redhat.com>
2419 * Makefile.in: fix %.cc rule
2421 2000-10-04 DJ Delorie <dj@redhat.com>
2423 * desktop.cc: quote HOME and USER, don't . ./.profile
2425 * choose.cc (build_labels): don't include in partial list just
2426 because there's a *previous* version available.
2428 * install.cc (do_install): if installing from local directory with
2429 setup.ini and the file isn't found, look in "." also. Note errors.
2431 2000-10-02 DJ Delorie <dj@redhat.com>
2433 * ini.cc (do_ini): save setup.ini locally
2435 2000-10-02 Chris Abbey <cabbey@bresnanlink.net>
2437 * desktop.cc: quote escapes in prompt
2439 2000-10-02 Jason Tishler <jt@dothill.com>
2441 * root.cc (is_admin): New function.
2442 (read_mount_table): Check for administrative priviledges and set
2443 installation scope as appropriate.
2445 2000-09-28 DJ Delorie <dj@redhat.com>
2447 * nio-ftp.cc (ftp_line): handle continuations more robustly
2449 2000-09-14 Brian Keener <bkeener@thesoftwaresource.com>
2451 * res.rc: increased the size of the site dialog (IDD_SITE) & the
2452 corresponding list box to provide for more URL's to be listed.
2453 Modified the position of the Back, Next and Cancel buttons to
2454 correspond to the new size of the dialog.
2456 2000-09-13 DJ Delorie <dj@redhat.com>
2458 * install.cc (do_install): update disk fullness once per package
2459 to improve performance
2461 * choose.cc (create_listview): call ReleaseDC
2463 Mon Sep 11 22:40 2000 Harold L Hunt II <harold@compasstechnologies.com>
2465 * mkdir.cc: Create directories when ERROR_FILE_NOT_FOUND is
2466 returned, as it seems Samba 2.0.6+ returns this instead of
2467 ERROR_PATH_NOT_FOUND
2469 Mon Sep 11 19:35:24 2000 Christopher Faylor <cgf@cygnus.com>
2471 * site.cc (get_initial_list_idx): Don't default to saved URL if it
2474 2000-09-07 DJ Delorie <dj@redhat.com>
2476 * splash.cc: use version.h, not local decl
2477 * res.rc: add "old version" message
2480 * fromcwd.cc (canonicalize_version): make global
2481 * iniparse.y: add setup-version support, fix bug in blank line
2484 * inilex.l: add [exp] as alias for [test], add setup-version
2485 * Makefile.in (version.c): add setup-version tag
2487 * desktop.cc (do_desktop): remove 1.1 version number
2488 (do_desktop_setup): ditto
2490 * ini.cc (do_ini): zero out package list just in case we redo it.
2492 2000-09-07 Jeffrey Juliano <juliano@cs.unc.edu>
2494 * choose.cc (list_click): Check for nindexes==0; if so, return.
2496 2000-09-06 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
2498 * localdir.cc: new, local package directory selection dialog; cd
2499 into selected directory
2500 * Makefile.in (OBJS): add localdir.o
2501 * dialog.h: add prototype for do_local_dir
2502 * main.cc (WinMain): initialize local_dir to cwd; add call to
2504 * net.cc (dialog_cmd): make DO_LOCAL_DIR next dialog
2505 * source.cc (dialog_cmd): ditto
2506 * res.rc: add DO_LOCAL_DIR dialog; remove "current directory" from
2507 presented choices in IDD_SOURCE; add IDS_ERR_CHDIR error string
2508 * resource.h: defines for DO_LOCAL_DIR dialog; define IDS_ERR_CHDIR
2509 * root.cc (dialog_cmd): make DO_LOCAL_DIR previous dialog
2510 * state.h: add local_dir variable
2512 2000-09-06 Brian Keener <bkeener@thesoftwaresource.com>
2514 * desktop.cc: added logic to handle to the new dialog and to
2515 default the setting for the new checkboxes based on whether the
2516 desktop icon or start menu link already exist.
2517 (desktop_icon): correction to desktop directories for desktop icon
2518 creation. Additional logic added for Win95 which does not appear
2519 to have Common Directories so if Common selected and null uses
2521 (start_menu): Additional logic added for Win95 which does not
2522 appear to have Common Directories so if Common selected and null
2523 uses normal directory.
2524 (do_desktop_setup): moved the saving of the icon, creation of the
2525 bat file, profile, passwd, Start Menu link and desktop shortcut to
2526 this method from do_desktop. Made the creation of the desktop
2527 icon and start menu link conditional on settings of new dialog
2528 created for desktop.
2529 * install.cc (do_install): changed next from IDD_S_DESKTOP to
2531 * main.cc (WinMain): changed case IDD_S_DESKTOP to IDD_DESKTOP.
2532 * res.rc: added new resource to create a desktop dialog with 2
2533 checkboxes for creating the desktop icon and start menu link.
2534 * resource.h: changed IDD_S_DESKTOP to IDD_DESKTOP and added two
2535 new controls: IDC_ROOT_MENU and IDC_ROOT_DESKTOP for new dialog.
2536 * state.h: added root_menu and root_desktop for use in dialog.
2538 2000-08-29 DJ Delorie <dj@redhat.com>
2540 * choose.cc (scan_downloaded_files): scan for existing files, so
2541 that the user only sees new downloads.
2543 * nio-ie5.cc (NetIO_IE5): pre-check for wininet.dll, enable dial-up
2544 * site.cc (do_site): if we can't download the mirror list, go back
2545 to the net setup box to choose another transport.
2546 * autoload.c: add more functions
2547 * Makefile.in (ALL_DEP_LDLIBS): remove wininet.a
2548 * resource.h: add WININET message
2550 * net.cc (do_net): no longer default to IE5
2551 * simpsock.h (class SimpleSocket): new, simplify socket operations
2552 * simpsock.cc: ditto
2553 * nio-http.h: new, for direct http protocol
2554 * nio-http.cc: ditto
2555 * nio-ftp.h: new, for direct http protocol
2557 * netio.cc (set_url): move initialization here to handle redirections
2558 (open): add direct http/ftp
2559 * netio.h (NetIO::set_url): new
2561 * log.cc (log_save): create directory for log if needed
2563 * hash.cc, hash.h: new
2564 * Makefile: add hash.o
2565 * choose.cc: enable "uninstall" option
2566 * download.cc: invert action test to accomodate uninstalling
2567 * ini.h: add ACTION_UNINSTALL
2568 * install.cc: add uninstall functionality
2569 * res.rc: make install tag changeable
2570 * resource.h: add uninstall resources
2572 * res.rc: update mirror list URL
2574 2000-08-24 DJ Delorie <dj@redhat.com>
2576 * log.cc, log.h: new files
2577 * Makefile.in (OBJS): add log.o
2578 * tar.cc: use exit_setup instead of exit
2579 * dialog.cc (fatal): use exit_setup instead of ExitProcess
2580 * msg.cc (fatal): ditto
2581 * install.cc (dialog_cmd): ditto
2582 * ini.cc (do_ini): ditto
2583 * main.cc (main): add logging
2584 * source.cc (do_source): ditto
2585 * root.cc (do_source): ditto
2586 * site.cc (do_site): ditto
2587 * other.cc (do_other): ditto
2588 * net.cc (do_net): ditto
2589 * choose.cc (do_choose): ditto
2590 * download.cc (do_download): ditto
2591 * install.cc (do_install): ditto
2592 * msg.cc (fatal): ditto
2594 * res.rc: mark password boxes as *being* password boxes.
2596 * fromcwd.cc (canonicalize_version): use multiple buffers so that multiple
2597 calls won't use the same buffer.
2598 * choose.cc (create_listview): don't default to full list if no changes
2599 (base): return computed value, not temporary :-(
2600 (do_choose): don't use installed.db if we're only downloading.
2602 2000-08-23 DJ Delorie <dj@redhat.com>
2604 * nio-ie5.cc (NetIO_IE5): Fix authentication logic
2605 * nio-ie5.h (flush_io): new
2606 * netio.cc (load_dialog): note when we're initializing the dialog
2607 box, and ignore changes to the edit fields then.
2609 2000-08-21 DJ Delorie <dj@redhat.com>
2613 * fromcwd.cc (found_file): don't remember the canonicalized version
2615 * choose.cc (paint): print "nothing to do" message when list is empty.
2616 (build_labels): Use version "0.0" if no version is available.
2617 (create_listview): default to full list if nothing to install/update.
2618 (base): new, returns basename of file
2619 (read_installed_db): compare base names, not full paths
2621 2000-08-11 DJ Delorie <dj@redhat.com>
2623 * choose.cc: add new chooser dialog
2624 * fromcwd.cc: use IDD_CHOOSE
2625 * ini.cc: use IDD_CHOOSE
2626 * main.cc: use IDD_CHOOSE
2627 * ini.h: cosmetic changes
2628 * res.rc: add choose dialog, bitmaps
2629 * choose-spin.bmp: new
2630 * choose-rtarrow.bmp: new
2631 * resource.h: add choose dialog controls
2633 * mount.cc: remove debug statement
2635 2000-08-08 DJ Delorie <dj@redhat.com>
2637 * Makefile.in (version.c): make version checking more robust
2638 * splash.cc (load_dialog): handle case where there's no version
2640 2000-08-07 DJ Delorie <dj@redhat.com>
2642 * (all): add cvsid tags
2643 * Makefile.in: generate version.c from ChangeLog, add splash.o
2645 * res.rc: add splash screen
2647 2000-08-02 DJ Delorie <dj@redhat.com>
2649 * net.cc: remove proxy password code
2650 * res.rc: remove proxy user/pass from net, add auth dialogs
2651 * netio.cc,h: add sys/proxy auth methods
2652 * nio-ie5: use them, check for http status codes
2653 * state.h: add system authorization
2655 * concat.cc (concat): canonicalize x:// to x:/ (exception to ://
2658 2000-08-02 Norman Vine <nhv@yahoo,com>
2660 * msg.cc (mbox): added MB_TOPMOST to MessageBox type flags
2662 2000-08-01 DJ Delorie <dj@redhat.com>
2664 * postinstall.cc (each): don't rename files we ignore
2665 (do_postinstall): set CYGWINROOT to root_dir, chdir there
2667 * desktop.cc: have /etc/profile call ~/.profile and ~/.bashrc
2669 2000-07-31 DJ Delorie <dj@redhat.com>
2671 * desktop.cc: reverse PATH so /usr/bin precedes /bin
2673 2000-07-18 DJ Delorie <dj@redhat.com>
2675 * autoload.c: new, autoload dlls that might not be available.
2676 * Makefile.in (OBJS): add autoload.o
2678 * res.rc: rewrite root options (text/binary, system/user) to be
2681 * site.cc (get_site_list): trim displayed URL, sort by domain
2683 * net.cc (do_net): make IE5 default to checked, for now
2685 * choose.cc (do_choose): sort packages correctly
2686 * ini.cc (do_ini): handle parse errors more gracefully
2688 (fprintf): line buffer output
2689 (do_ini): if we can't load setup.ini, go back to the site list.
2690 * ini.h: add "unknown" trust level
2691 * inilex.l: absorb unknown trust levels and key/value pairs,
2692 add line number logic
2693 * iniparse.y: handle parse errors more gracefully.
2694 * install.cc: skip packages with no valid install entry
2696 2000-07-17 DJ Delorie <dj@cygnus.com>
2698 * coding standards fixups, many files
2699 * mkdir.cc: warn about deletions *before* deleting them
2701 2000-07-17 Jeff Juliano <juliano@cs.unc.edu>
2703 * res.rc (IDD_OTHER_URL): reorder to give default focus to entry
2705 * other.cc (dialog_cmd): save download site URL
2706 * site.cc (get_root_dir): new
2707 (save_mirror_site): new
2708 (dialog_cmd): save download site URL
2709 (get_site_list): make list big enough to add prev site
2710 (get_initial_list_idx): new, read last-used URL from file and
2711 append it to site_list
2712 (do_site): call get_initial_list_idx
2714 * concat.cc (concat): avoid segfault when first parm is null
2716 2000-07-13 DJ Delorie <dj@cygnus.com>
2718 * postinstall.cc: new
2719 * Makefile.in: add postinstall.o
2720 * concat.h: add backslash ()
2722 * desktop.cc (etc_profile): don't do postinstall
2723 (backslash): moved to concat.cc
2725 (make_postinstall_script): run directly
2726 (do_desktop): chain to do_postinstall
2727 * dialog.h: add exit_msg, do_postinstall
2728 * download.cc: use exit_msg
2730 * main.cc: add postinstall, exit_msg
2731 * resource.h: add postinstall
2732 * README: add more to-do items
2734 2000-07-12 DJ Delorie <dj@cygnus.com>
2736 * desktop.cc: add /etc/postinstall/ support
2737 * install.cc: add more "standard" directories
2739 2000-07-11 DJ Delorie <dj@cygnus.com>
2741 * desktop.cc: create /etc/profile
2742 * desktop.cc: fix include syntax
2743 * Makefile.in: add auto-dependencies
2744 * root.cc: support system vs user
2752 * desktop.cc: make sure we use backslashes, not slashes.
2753 * desktop.cc: don't set PATH in cygwin.bat, create /etc/passwd
2754 * geturl.cc: change math for percentage to avoid overflow
2756 * download.cc: post "download complete" message.
2757 * root.cc: pre-fill in defaults if needed, don't start
2758 browse at root_dir unless it's set.
2759 * desktop.cc: quote $PATH in case it has spaces in it
2761 2000-07-10 DJ Delorie <dj@cygnus.com>
2763 * Makefile.in: add desktop.o and mklink2.o
2764 * dialog.h: add do_desktop
2765 * install.cc: create standard directories, call do_desktop
2766 * res.rc: add cygwin.ico as a file also
2767 * desktop.cc: new, do shortcuts, batch files, and icons
2768 * mklink2.c: new, for COM
2769 * README: update to-do list
2771 2000-07-10 DJ Delorie <dj@cygnus.com>
2773 * ini.cc (do_ini): don't worry about timestamps if we're not
2774 actually installing.
2776 2000-07-09 DJ Delorie <dj@cygnus.com>
2778 * Makefile.in: add -I$(srcdir) for ini.h
2780 2000-07-06 DJ Delorie <dj@cygnus.com>
2782 * Replace everything with a new GUI version
2783 * zlib/gzio.c: add gzctell() for progress displays
2785 2000-06-22 DJ Delorie <dj@cygnus.com>
2787 * setup.c (tarx): re-add call to write_pkg()
2789 2000-06-07 DJ Delorie <dj@cygnus.com>
2791 * cygcalls.c: new, call cygwin1.dll functions directly
2792 * cygcalls.h: header for same
2793 * Makefile.in: add cygcalls.[ch], remove mount/cygpath/umount
2794 exes, fix cinstall.rc dependencies.
2795 * path.c: remove unneeded code
2796 * setup.c: use cygcalls instead of xcreate_process.
2797 uncompress embedded files with zlib
2798 add "-d" for "download only"
2800 postpone mount changes until very end
2801 add download progress indicators
2802 pack multi-column listings more
2803 auto-delete temp files
2804 customize banner message according to options
2805 prompt user for text/binary mounts
2806 add warnings about empty setup directory, root installs, etc
2808 2000-05-24 DJ Delorie <dj@cygnus.com>
2810 * tar.c: New file; built-in tar using zlib.
2811 * tar.h: New file; header for same.
2812 * ctar.c: New file; test program for same.
2813 * Makefile.in: add built-in tar, remove tar.exe and gzip.exe
2814 * path.c (pathcat): convert slashes and canonicalize, instead of aborting
2815 * setup.c (tarx): add support for built-in tar
2816 (main): accept unix-style slashes, check root dir for drive letters,
2817 warn about installing in /, make sure cwd is empty for internet installs,
2818 defer mounts to end of install, support built-in tar.
2820 Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
2822 Fix compiler warnings throughout.
2823 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
2825 * setup.c: Make 'root' global.
2826 (istargz): Return pointer to "stem" of matched .tar.gz file.
2827 (tarx): Special case cygwin-20000301 to == cygwin-1.1.0.tar.gz. Remove
2828 bogus check_for_installed check.
2829 (recurse_dirs): Add preliminary support for .bat file execution.
2830 (create_uninstall): Eliminate unneeded parameter.
2831 (do_start_menu): Ditto.
2833 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
2834 scanning for the version number. Eliminate unneeded argument to
2836 (getdownloadsource): Add 'name' to list of names rather than url.
2837 (main): Eliminate unneeded argument in get_pkg_stuff. Eliminate
2838 unneeded argument in mkmount and do_start_menu.
2840 2000-05-18 DJ Delorie <dj@cygnus.com>
2842 * setup.c (optionprompt): allow multi-column, clean up message
2843 about more options, be more robust about user input.
2844 (getdownloadsource): make the mirror URL a macro.
2845 (main): do mounts after done prompting user.
2847 Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
2849 * setup.c (cleanup): Inverse order of deletion stands a better chance
2850 of deleting cygpath.exe. Still seems to suffer from occasional races,
2852 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
2854 (output_file): Defend against an unlikely handle leak.
2855 (main): Don't set up signal handling until we have something special to
2858 Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
2860 * path.c (kill_cygpath): Delete function.
2861 (exit_cygpath): Make more defensive so that it can be called at any
2863 (cygpath_pipe): Don't set up signal here. Do it in main().
2864 * setup.c (istargz): New function.
2865 (recurse_dirs): Look for *.gz pattern rather than *tar.gz since *tar.gz
2866 inexplicably fails on samba mounted partitions. Use istargz to match
2868 (processdirlisting) Use istargz to match tar.gz tail.
2869 (cleanup): Renamed from filedel.
2870 (cleanup_on_signal): New function. Called on CTRL-C.
2871 (main): Record handle of main thread so that it can be suspended when
2872 CTRL-C occurs. Set up cleanup_on_signal signal handler.
2874 Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
2876 * setup.c (do_start_menu): Don't concatenate paths to already built
2879 Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
2881 * path.c (exit_cygpath): Wait for subprocess to exit before returning.
2882 (cygpath_pipe): Don't call exit_cygpath. Let main atexit routine do
2884 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
2886 * setup.c (filedel): Call exit_cygpath here so that we can be assured
2887 that cygpath subprocess has died. This allows us to delete cygpath.exe
2889 (optionprompt): Initialize response to -1 so that second screen of
2890 mirrors will appear.
2891 (get_pkg_stuff): Don't attempt to use HKCLU. Pass root to init_pkgs.
2892 * setup.h: Reflect init_pkgs prototype change.
2894 Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
2896 * pkg.c (init_pkgs): Accept an argument to control what root registry
2898 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
2899 * setup.h: Reflect init_pkgs prototype change.
2901 Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
2903 * error.c (winerror): Respond to gcc warning.
2904 * path.c (cygpath_pipe): Ditto.
2905 * setup.c (filedel): Call sa_cleanup on deleteme.
2906 (create_shortcut): Coerce argument to eliminate compiler warning.
2907 (tarx): Use installed version of cygwin1.dll, overriding tar file name.
2908 (refmatches): New function. Tests if ref is contained in a list of
2909 packages to install.
2910 (filematches): New function. Tests if filename matches one of a list
2911 of packages to install.
2912 (recurse_dirs): Accept list of packages to install. Generalize tar.gz
2913 test to accomodate _tar.gz.
2914 (prompt): Ensure that stdout is flushed prior to asking for input.
2915 (findhref): Initialize variables to quiet a compiler warning.
2916 (processdirlisting): Accept list of packages to install. Special case
2917 cygwin tar file version number.
2918 (downloaddir): Accept list of packages to install.
2919 (downloadfrom): Ditto.
2920 (create_uninstall): Eliminate unneeded variables. Quote arguments to
2922 (do_start_menu): Don't create uninstall bat file if updating or user
2923 specified a list of packages.
2924 (mkmount): Eliminate unneeded variables.
2925 (get_pkg_stuff): New function. Checks for previous unversioned
2927 (main): Accept -u and -f options and package names on the command line.
2928 Use get_pkg_stuff to initialize package information. Umount /etc.
2929 Call recurse_dirs and downloadfrom with list of package to install.
2930 Ensure that all /usr/local directories are created. Output
2931 installation time to setup.log.
2932 * setup.h: Add some prototypes.
2933 * xsystem.c (xcreate_process): Eliminate unneeded variable.
2935 Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
2937 * setup.c (optionprompt): Don't overlap display of already seen options
2939 (geturl): Print name of site which we're connecting to rather than "ftp
2941 (processdirlisting): Avoid URLs that contain a /. or ./ . Is this
2942 test too simplistic?
2943 (do_start_menu): Use pathcat to build path to <root>\bin to avoid
2944 problems when user chooses x:\ as their root.
2945 (main): For now, default to "non-update" mode. Allow -u option to
2948 Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
2951 * setup.c (tarx): Skip already installed or older packages. Report
2952 when a package has been updated.
2953 (processdirlisting): Skip already installed or older packages.
2954 (main): Detect -f option for forced installation. Initialize pkg stuff
2956 * setup.h: Add pkg definitions.
2958 Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
2960 * setup.c (findhref): Return NULL on empty string. Eat any trailing
2962 (processdirlisting): Attempt to limit recursively processing the same
2965 Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
2967 * setup.c (filedel): New function.
2968 (output_file): Keep track of files extracted from setup.exe for
2969 subsequent deletion.
2970 (tarx): Close process handle of child tar process or suffer handle
2972 (getdownloadsource): Close mirror file so that it can be unlinked.
2973 (processdirlisting): Return total number of files extracted.
2974 (main): Initialize array of files to delete. Ensure that files are
2975 closed on exit. Make the directory that setup.exe is started from ==
2976 the directory where temporary files are placed. Issue an error if no
2977 files were found to download.
2978 * xsystem.c (xcreate_process): Close the thread handle. Close the
2979 process handle if we waited for it to exit.
2981 Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
2983 * setup.c (main): Change version number output.
2985 Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
2987 * setup.c (tarx): Use full path name to tar executable.
2988 (main): Build full pathname to tar executable. Create /usr/local/etc
2991 Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
2993 * setup.c (findhref): Change method for scanning for href= to choose
2994 the last one on the line. This is still not foolproof and probably
2995 will need to be changed eventually. Don't abort if no "size" field is
2997 (processdirlisting): Fix boolean algebra.
2999 Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
3001 * main.c (tarx): Add some code for future task of unmounting
3002 directories encountered in tar file.
3004 Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
3006 * setup.c (findhref): Decode file size, when appropriate.
3007 (needfile): New function. Returns 1 when file should be
3009 (processdirlisting): Always download if file size does not
3010 match. Prompt when download fails for some reason.
3011 (getdownloadsource): Accomodate findhref argument changes.
3013 Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
3015 Throughout, use global session handle rather than reinitializing for
3016 each connect. Don't pass session as an argument to setup.c functions.
3017 * setup.c (geturl): Only issue "Connecting to.." message when using
3018 http or first time for ftp since subsequent connections will be fast.
3019 (processdirlisting): Allocate space for "N" when user has specified
3020 "N"ever option so that it can be subsequently freed.
3021 (main): Abort if we can't get the list of mirrors.
3023 Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
3025 * setup.c (main): Umount /bin and /lib.
3027 Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
3029 * setup.c (main): Create an empty /var/run/utmp.
3031 Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
3033 * Makefile.in: Add umount to list of files to include in setup.exe.
3034 * setup.c (xumount): New function for unmounting directories.
3035 (main): Unmount /usr.
3036 (mkmount): Unmount "unix directory" before trying to figure out where
3037 to create the directory.
3039 Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
3041 * setup.c (mkmount): Use xcreate_process to start mount process,
3043 (main): Don't do buffering on stdout or prompts won't be displayed
3044 correctly if running in a cygwin shell with CYGWIN=tty.
3046 Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
3048 * setup.c (main): Remove the CYGWIN environment variable before
3049 starting any cygwin programs.
3051 Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
3053 * setup.c (geturl): Use alternative method for finding filename part of
3055 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
3056 (downloaddir): Unlink file containing dir listing.
3057 (downloadfrom): Ditto.
3059 Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
3061 * setup.c (main): Disallow running setup.exe from the "root".
3063 Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
3065 Use "warning" function, where appropriate, to output warnings.
3066 * setup.c (warning): New function -- outputs warning to console and log
3068 (tarx): Fix index used to reset file protection.
3069 (main): Open the log file earlier so that more stuff can be sent to it.
3071 Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
3073 * setup.c (processdirlisting): Make "N" option a little less aggressive.
3075 Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
3077 * setup.c (tarx): Wait to after tar has completed to reset protections
3078 or suffer races with tar process.
3080 Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
3082 * Makefile.in: Eliminate duplicate -nostdinc from CFLAGS.
3083 * setup.c (create_uninstall): Create the uninstall .bat file in the
3084 "root" so that we can remove the /bin directory. Add bin\cygwin.bat to
3085 list of files to be deleted. Fix directory detection for determining
3086 when to use 'rmdir'.
3087 (do_start_menu): Add /usr/local/bin to the path.
3088 (main): Add slop to files.array allocation so that we don't have to
3089 worry about reallocating the array when it grows too large when doing
3090 some trivial "pushes". Add /tmp and /usr/local/{bin,lib} to list of
3093 Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
3095 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
3098 Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
3100 * path.c (kill_cygpath): New cleanup function.
3101 (exit_cygpath): New cleanup function.
3102 (cygpath_pipe): New function. Sets up cygpath in the background for
3103 translating filenames.
3104 (pathcvt): Use background cygpath for file translation.
3105 * setup.c (tarx): New function. Called to extract tar files, capture
3106 logging output, and translate it to Windows format.
3107 (recurse_dirs): Use 'tarx' function to extract files.
3108 (create_uninstall): Use file list built up by tarx rather than reading
3110 (mkmount): Add ability to mount root.
3111 (main): Track elapsed install time. Mount root.
3112 * starry.h: Add index field to strarry for tracking of tarx's usage of
3114 * xsystem.c (xcreate_process): Return proces handle when not waiting.
3116 Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
3119 (pathfp): New function. Preliminary work for new -f cygpath
3121 * Makefile.in: Add new file.
3122 (pathcvt): Move to new file.
3126 * setup.c (processdirlisting): Always open file in text mode.
3127 (create_uninstall): Ditto.
3128 (getdownloadsource): Ditto.
3131 Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
3133 * xsystem.c: New file.
3134 * Makefile.in: Accomodate new file.
3135 * setup.c (xsystem): Move to new file.
3136 (recurse_dirs): Accept handle to output log file. Don't use ">"
3137 redirection to trap tar output. Use supplied handle instead.
3138 (create_uninstall): Accept FILE pointer to opened log file. Don't
3139 unlink log file here.
3140 (do_start_menu): Accept FILE pointer to pass to create_uninstall.
3141 (main): Open log file here and pass it to various functions. Unlink
3144 Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
3146 Change occurrences of .usr.bin to .bin throughout.
3147 * setup.c (geturl): Increase number of retries to 20. Let user know
3148 what's going on during long connects.
3149 (processdirlisting): Accept "A"lways and "N"ever as update options.
3150 (create_uninstall): Load cygwin1.dll from the current directory rather
3152 (main): Add some expository text.
3154 Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
3156 * Makefile.in: Change method for compressing cygwin1.dll to avoid
3157 creating a cygwin1.dll in the current directory. Ensure the addition
3158 of -nostdinc to MINGW_CFLAGS.
3160 Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
3162 * Makefile.in: Augment clean target.
3164 Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
3166 * README: Added info about non-working mingw implementation
3167 * gzip.exe.gz: Replace with a version from the same build as the other
3169 * tar.exe.gz: Replace with a version from the same build as the other
3171 * mount.exe.gz: Add to repository until, mingw can build setup.
3172 * cygpath.exe.gz: ditto
3173 * cygwin1.dll.gz: ditto
3174 * setup.c: Overwrite /bin and /lib mounts. Generate working shortcut
3175 for Win9x. Display only a screenfull of options at a time. Call all
3176 tools with an absolute path.
3177 * setup.dsp: Restore the carriage returns, MS Developer Studio needs
3182 Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
3184 * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab
3185 cygwin1.dll from ../cygwin subdirectory.
3186 * gzip.exe.gz: Update.
3187 * tar.exe.gz: Update.
3189 Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
3191 * Makefile.in: Use ZLIB variable as a target.
3193 Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
3195 * Makefile.in: Eliminate traces of cygwinisms. Don't link with
3196 libmsvcrt.a. It's unneeded. Build .rc file on the fly from various
3198 * configure.in: Locate correct objcopy.
3199 * configure: Regenerate.
3201 Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
3203 * Makefile.in: New file.
3204 * configure.in: New file.
3205 * configure: New file.
3206 * zlib/Makefile.am: New file.
3207 * zlib/configure.in: New file.
3208 * zlib/aclocal.m4: New file.
3209 * zlib/acinclude.m4: New file.
3210 * zlib/configure: Regenerate from configure.in.
3211 * zlib/Makefile.in: Regenerate from Makefile.am