1 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
3 * archive.cc (extract_file): Separate out the prefix and the URL scheme.
4 * archive.h (archive::extract_file): Ditto.
5 * install.cc (install_one_source): Ditto.
6 Use the new archive::extract_file syntax.
7 (replace_one): Use the new syntax.
8 (io_stream.cc): Add some log info for links.
10 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
12 * PickCategoryLine.cc (PickCategoryLine::actiontext): Remove.
13 (PickCategoryLine::paint): Use the new action method.
14 (PickCategoryLine::click): Set the action for all children.
15 (PickCategoryLine::set_action): New method.
16 * PickCategoryLine.h (PickCategoryLine::-actions): Remove.
17 (PickCategoryLine::current_default): Use packagemeta _actions class.
18 * PickLine.h (PickLine::set_action): New abstract method that requires including
20 * PickPackageLine.cc (PickPackageLine::set_action): New method.
21 * PickPackageLine.h (PickPackageLine::set_action): Declare this.
22 * list.h (getbykey): A const correctness fix.
23 * package_meta.cc: Run indent.
24 (packagemeta::Default_action): New const.
25 (packagemeta::Install_action): Ditto.
26 (packagemeta::Reinstall_action): Ditto.
27 (packagemeta::Uninstall_action): Ditto.
28 (packagemeta::_actions::caption): New method.
29 (packagemeta::_actions::operator++): Ditto.
30 (packagemeta::set_action): New overload.
31 * package_meta.h (packagemeta::_actions): New class.
32 (packagemeta::set_action): Declare this.
34 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
36 * Makefile.in (OBJS): Remove supp.o - it appears accidental.
37 * choose.cc: Don't define alloca anymore, it's done in win32.h
39 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
41 * PickPackageLine.cc: New file.
42 * PickPackageLine.h: New file.
43 * PickLine.cc: New file.
44 * PickLine.h: New file.
45 * PickCategoryLine.cc: New file.
46 * PickCategoryLine.h: New file.
47 * PickView.cc: New file.
48 * PickView.h: New file.
49 * Makefile.in: Add new objects to setup.exe.
50 Backout -fno-exceptions option.
51 * choose.cc: Include PickView.h.
52 Remove view related defines and static variables.
53 (_pkg_headers): Moved to PickView.cc.
54 (_cat_headers): Ditto.
55 (view::views::Unknown): Ditto.
56 (view::views::PackageFull):
57 (view::views::Package):
58 (view::views::Category):
59 (pkgtrustp): Moved to package_meta.cc.
60 (add_required): Moved to package_meta.cc.
61 (pick_category_line::empty): Moved to PickCategoryLine.cc
62 (paint): Adjust for moved static variables.
63 (view::scroll): Moved to PickView.cc.
64 (list_vscroll): Adjust for moved static variables.
65 (list_hscroll): Ditto.
67 (note_width): Moved to PickView.cc.
69 (view::set_view_mode): Ditto.
70 (view::mode_caption): Ditto.
71 (view::views::caption): Ditto.
72 (view::set_headers): Ditto.
73 (DoInsertItem): Ditto.
74 (view::init_headers): Ditto.
75 (view::insert_pkg): Ditto.
76 (view::insert_category): Ditto.
77 (view::clear_view): Ditto.
78 (view::views::operator++): Ditto.
80 (default_trust): Adjust for moved statics.
81 (pick_pkg_line::paint): Moved to PickPackageLine.cc.
82 (pick_pkg_line::click): Ditto.
83 (pick_category_line::actiontext): Moved to PickCategoryLine.cc
84 (pick_category_line::paint): Ditto.
85 (pick_category_line::click): Ditto.
86 (set_view_mode): Adjust for moved statics.
87 (create_listview): Ditto.
88 * choose.h: Remove Category and packagemeta forward defines - not needed.
89 Don't include unneeded headers list and package_meta.
90 (_header): Move to PickView.h.
91 (pick_line): Move to PickLine.h.
92 (pick_pkg_line): Move to PickPackageLine.h.
93 (pick_category_line): Move to PickCategoryLine.h.
94 (view): Move to PickView.h.
95 * ini.h (trusts): Move to package_meta.h.
96 * package_meta.h (trusts): New enum.
97 (packagemeta::set_requirements): New helper method.
98 (packagemeta::trustp): Ditto.
100 2002-01-21 Christopher Faylor <cgf@redhat.com>
102 * choose.h (view): Move forward declaration of views into public area
103 or g++ v3 will complain.
105 2002-01-21 Christopher Faylor <cgf@redhat.com>
107 * Makefile.in (CXXFLAGS): Add -fno-exceptions.
108 * win32.h (alloca): Define as __builtin_alloca.
109 * io_stream_memory.cc: Add include file.
111 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
113 * archive_tar.cc (archive_tar::~archive_tar): Mark the stream as destroyed.
114 * archive_tar_file.cc (archive_tar_file::~archive_tar_file): Ditto.
115 * compress.cc (compress::~compress): Be less verbose.
116 * compress_bz.cc (compress_bz::~compress_bz): Ditto.
117 Mark the stream as destroyed.
118 * compress_gz.cc (compress_gz::~compress_gz): Mark the stream as destroyed.
119 * io_stream.cc (io_stream::~io_stream): Only warn when the stream is not marked
121 * io_stream_cygfile.cc (io_stream_cygfile::~io_stream_cygfile): Mark the
123 * io_stream_file.cc (io_stream_file::~io_stream_file): Ditto.
124 * io_stream_memory.cc (io_stream_memory::~io_stream_memory): Ditto.
126 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
128 * Makefile.in (CFLAGS): Allow customisable malloc debug flags.
129 (OBJS): Link in malloc objects.
130 * category.cc (category): Use new char, not strdup.
131 * choose.cc (pick_pkg_line::paint): Allow for the regionsize to shrink.
132 (do_choose): Use new char, not malloc.
133 * concat.cc (vconcat): Ditto.
134 * cygpackage.cc (cygpackage): Use new char, not strdup.
135 (set_canonical_version): Ditto.
136 (cygpackage::destroy): Use delete[], not free.
137 * desktop.cc (uexists): Ditto.
138 * dialog.cc (egest): Use new char, not strdup.
139 * dlmalloc.c: New file - Doug Lea's malloc 2.7.0
140 * hash.cc (hash::hash): Use delete instead of free.
141 (hash::add): Use new char, not strdup.
142 * ini.cc (do_remote_ini): Use delete[] not free.
143 * inilex.l: Use new char, not strdup.
146 Use a local package_db rather than a static one.
147 * install.cc (struct mallinfo): Workaround an apparent dlmalloc bug.
148 (do_install_thread): Call mallinfo to force a consistency check. Appears
149 to fix a 'inuse' error in -DDEBUG builds.
150 Use delete[] for strings.
151 * io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile): Use new char,
153 (io_stream_cygfile::~io_stream_cygfile): Use delete[], not free.
154 (io_stream_cygfile::remove): Use new char, not strdup.
155 * io_stream_file.cc (io_stream_file::io_stream_file): Use new char, not strdup.
156 (io_stream_file::io_stream_file): Use delete[], not free.
157 (io_stream_file::remove): Use new char, not strdup.
158 * io_stream_memory.cc (memblock::~memblock): Use delete[], not free.
159 * io_stream_memory.h (memblock): Use new char, not malloc.
160 * localdir.cc (LocalDirPage::OnInit): Use new char, not strdup.
161 * main.cc (WinMain): Use new char, not strdup.
162 * mount.cc (find2): Use new char, not malloc.
163 (read_mounts): Ditto.
164 (cygpath): Use new char, not strdup.
165 * netio.cc (NetIO::~NetIO): Use delete[], not free.
166 (NetIO::set_url): Use new char, not strdup.
167 (NetIO::get_ftp_auth): Use delete[], not free.
168 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
169 Use new char instead of strdup.
170 * nio-http.cc (base64_encode): Use new char, not malloc.
171 * package_meta.cc (hash::add_subdirs): Use new char instead of strdup.
172 * package_source.h (~ packagesource): Use delete[] instead of delete.
173 * port.h (strdup): Deprecate the use of strdup.
174 * rfc1738.cc (rfc1738_do_escape): Use new char, not calloc.
175 * script.cc (init_run_script): Us delete[], not free.
177 * simpsock.cc (SimpleSocket::fill): Use new char, not malloc.
178 (SimpleSocket::invalidate): Use delete[], not free.
179 * site.cc (site_list_type::init): Use new char instead of strdup.
180 * site.h (~site_list_type): Use delete[], not free.
182 2002-01-20 Robert Collins <rbtcollins@hotmail.com>
184 * Makefile.in (OBJS): Add win32.o - win32 support functions.
185 * README: Update todos.
186 * archive.cc (extract_file): Support a suffix for appending to extracted files.
188 * choose.cc (set_view_mode): Use the new view::views class.
189 (view::views::Unknown): New static for defaulting view::views variables.
190 (view::views::PackageFull): New static for the current view.
191 (view::views::Package): Ditto.
192 (view::views::Category): Ditto.
193 (topbucket::paint): Remove.
194 (topbucket::empty): Rename to pick_category_line::empty.
195 (topbucket::~topbucket): Remove.
196 (paint): Use the new view::views class.
197 Don't paint 'all' as a category when showing package categoies.
198 (pick_category_line::actiontext): New method.
199 (pick_category_line::paint): Make showing the category optional, and show the
201 (pick_category_line::click): Make showing the category optional, and
202 differentiate between the name being clicked, and the action description.
203 (view::view): Use the new view::views class.
204 (view::set_view_mode): Ditto.
205 (view::mode_caption): Ditto.
206 (view::views::caption): New method.
207 (view::set_headers): Use the new view::views class.
208 (view::clear_view): Ditto.
209 (viewsplusplus): Replaced by
210 (view::views::operator++): New operator.
211 (set_view_mode): Use the new view::views class.
212 (create_listview): Ditto.
214 * choose.h (actions): Remove.
216 (pick_line): Add a new convenience constructor.
217 (top_bucket): Remove.
218 (pick_category_line): Reparent under pick_line, and adsorb top_bucket.
219 (view::views): New class.
220 * ini.h: Don't include choose.h
221 (is_download_action): Remove.
222 (is_upgrade_action): Remove.
223 (is_uninstall_action): Remove.
224 (is_full_action): Remove.
225 * install.cc (num_replacements): New static.
226 (rebootneeded): Ditto.
227 (replace_one): Handle upgrades separate from removal or new installs.
228 (install_one_source): Handle in use files.
229 (install_one): Don't repeat upgrades.
230 (do_install_thread): Initialize new statics.
231 Order actions as uninstall, replace, install.
232 Warn about rebooting if needed.
233 * res.rc (IDS_REBOOT_REQUIRED): New string.
234 * resource.h (IDS_REBOOT_REQUIRED): Give value.
235 * win32.h: Declare class Win32, and update copyright and intent message.
236 * win32.cc: New file.
238 2002-01-15 Corinna Vinschen <corinna@vinschen.de>
240 * io_stream.cc (io_stream::gets): Eliminate trailing new line chars.
241 * package_meta.cc (packagemeta::uninstall): Check for additional
242 Windows shortcut. Unset R/O file attribute before trying to delete
245 2002-01-09 Robert Collins <rbtcollins@hotmail.com>
247 * choose.cc (pkgtrustp): Fall back to installed if a package is not present in
248 the current trust level. For prev, fall back via curr.
249 (set_existence): Allow sources with no sites, but cached files to be
251 (pick_category_line::paint): Start drawing clickable categories.
252 * fromcwd.cc (found_file): Reinstate local file scanning.
254 2002-01-07 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
256 * fromcwd.cc: Run indent.
257 (do_fromcwd): Reverse sense of comment. Set next_dialog
258 to IDD_CHOOSER instead of IDD_CHOOSE.
259 * ini.cc (find_routine): Remove "/" from "/setup.ini".
261 2001-01-07 Robert Collins <rbtcollins@hotmail.com>
263 * category.cc (Categorycmp): Add a const safe version.
264 * category.h (Categorycmp): Add a const safe version.
265 (Category): Add operator ==.
266 * choose.cc (fill_missing_category): Add every package to "All".
267 (pick_category_line::paint): Add support for hidden labels, and a tree depth.
268 (pick_category_line::click): Ditto.
269 (view::view): Pass in a top level category to use.
270 (view::insert_pkg): Special case - skip category "All".
271 (view::insert_category): Ditto.
272 (view::clear_view): Set the contents label state.
273 (create_listview): Pass in a top level category to view().
274 * choose.h (topbucket): Make bucket available to derived classes.
275 (pick_category_line): Add support for hidden labels, and a tree depth.
276 Remove our second copy of bucket.
277 (view): Pass in a top level category to the constructor.
278 Use pick_category_line to allow three level display.
280 2001-01-06 Robert Collins <rbtcollins@hotmail.com>
282 * cygpackage.h (cygpackage): Make set_[s|l]desc virtual.
283 * iniparse.y (add_correct_version): Copy descriptions across.
284 * package_meta.cc (SDesc): Iterate through versions, return the first with a
286 * package_version.h (packageversion): Add new virtuals set_[l|s]desc.
288 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
290 * script.cc (run_script): Change cygpath:// to cygfile://.
291 * install.cc (do_install_thread): Fix off-by-one errors.
293 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
295 * package_db.cc (packagedb::flush): Fix an off-by-one error.
297 2002-01-04 Jan Nieuwenhuizen <janneke@gnu.org>
299 * Makefile.in (realclean): more clean.
300 (OBJS): Add script.o.
301 * postinstall.cc (run_script_in_etc_postinstall): New function.
302 (do_postinstall): Split off new funtion init_run_script ().
305 (run_script): Move to script.cc. Replace some deprecated remove
308 * script.cc: New file.
309 * Forward port cygwin-20010707.jcn3.patch.
310 * package_meta.cc (uninstall): Run pre- and postremove scripts.
311 * install.cc: Typo fix.
312 (do_install): Run script initialisation.
314 2001-01-04 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
316 * cistring.cc: Run d2u.
317 * cistring.h: Run d2u.
319 * desktop.cc (etc_profile): Remove "test -f ./.bashrc && . ./.bashrc"
320 from the generated /etc/profile. Bash will source this file
321 automatically, and having this here merely results in .bashrc being
322 executed twice. Run d2u.
323 * desktop.h: Run d2u.
325 * propsheet.cc: Run d2u.
326 (PropSheetProc): New function. Add minimize box here instead of in
327 PropertyPage::DialogProc.
328 (PropSheet::Create): Change to use creation callback PropSheetProc.
329 (DLGTEMPLATEEX): Add 'hidden' Windows struct definition.
331 * propsheet.h: Run indent, d2u.
332 * proppage.h: Run indent, d2u.
334 * proppage.cc: Run d2u.
335 (PropertyPage::DialogProc): Remove minimize-box-adding
336 functionality. Remove commented-out "PropSheet_SetWizButtons" calls.
337 Add support for calling virtual OnMessageCmd. Add setting of fonts in
338 WM_INITDIALOG handler.
339 (resource.h): New include for resource IDs.
341 * res.rc: Resize and rearrange property page dialog templates
342 to bring them in line with "Microsoft's Backward Compatible Wizard 97"
343 specification. Run d2u.
344 (IDD_SITE): Add an edit control and an "Add" button in order to
345 combine the IDD_SITE and IDD_OTHER_URL functionality onto one page.
346 (IDD_OTHER_URL): Remove dialog template.
347 (IDD_DLSTATUS): Remove dialog template.
350 (SitePage::OnBack): Remove NEXT() macro invocation.
351 (SitePage::OnActivate): New member function.
352 (load_dialog): Remove. Functionality subsumed into
353 SitePage::OnActivate.
354 (save_dialog): Change to support both list and user URLs. Remove
355 OTHER_IDX and mirror_idx logic.
356 (SitePage::PopulateListBox): New member function.
357 (SitePage::CheckControlsAndDisableAccordingly): New member function.
358 (SitePage::OnMessageCmd): New override.
359 (check_if_enable_next): Remove.
360 (dialog_cmd): Remove.
361 (do_download_site_info_thread): Remove calls to NEXT() macro.
362 (SitePage::Create): Call the single-param PropertyPage::Create
364 (other_url): New static taken from other.cc.
365 (SitePage::OnNext): Remove mirror_idx logic.
366 (SitePage::OnInit): Remove "Other URL" entry from list box. Remove
367 list box populating code, now handled in SitePage::PopulateListBox.
368 (mirror_idx, NO_IDX, OTHER_IDX): Remove.
369 (save_site_url): Fix potential buffer overflow problem. Switched to
370 TCHAR in grossly premature preparation for multilingual support.
372 (SitePage::OnActivate): New member function.
373 (SitePage::CheckControlsAndDisableAccordingly) New member.
374 (SitePage::OnMessageCmd): New override.
375 (do_download_site_info_thread): Add MessageBox call on failure to
378 * splash.cc: Run d2u.
379 (SplashPage::OnInit): Set the font for the title.
382 * threebar.cc: Run d2u.
383 * threebar.h: Run d2u.
386 (Window::IsButtonChecked): New member function declaration.
387 (Window::OnMessageCmd): New member function.
388 (Window::SetDlgItemFont): New member function declaration.
389 (Window::MAXFONTS, Window::Fonts, Window::FontCounter): New data
391 * window.cc: Run d2u.
392 (Window::IsButtonChecked): New member function definition.
393 (Window::SetDlgItemFont): New member function definition.
394 (Window::Window): Add initialization for FontCounter.
395 (Window::~Window): Delete any fonts we created.
397 * geturl.cc: Run d2u.
398 (progress): Remove the "3" field width from the "%3d"
399 percent-complete format indicator. Causes line to not start at
400 beginning of text box, and does little to help with "jumping", since
401 the "bytes downloaded so far" field is variable-width anyway. Change
402 kb/s format field to "%03.1" to 0-pad the kb/s number in the event of
403 painfully slow connections, or temporary slowdowns in faster
404 connections should such more-instantaneous functionality become
408 (NetPage::OnMessageCmd): New member function declaration.
409 (NetPage::CheckIfEnableNext): New member function declaration.
411 (NetPage::OnMessageCmd): New member function definition.
412 (dialog_cmd): Remove, subsumed into NetPage::OnMessageCmd.
413 (check_if_enable_next): Remove.
414 (NetPage::CheckIfEnableNext): New member function, subsumes
415 check_if_enable_next.
416 (propsheet.h): Add include.
417 (NetPage::Init): Add call to CheckIfEnableNext.
418 (load_dialog): Remove call to check_if_enable_next.
419 (NetPage::Create): Call single-template-ID-parameter overload of
420 PropertyPage::Create instead of three-parameter one.
422 * Makefile.in (OBJS): Remove other.o.
423 * other.cc: Remove file.
425 2002-01-01 Robert Collins <rbtcollins@hotmail.com>
427 * README: Update TODO's.
428 * choose.cc (set_existence): Delete non installed packages with no
430 (fill_missing_category): Fix an off-by-one error.
431 (default_trust): Ditto. Also delete any unused categories.
432 (view::init_headers): Fix an off-by-one error.
433 (set_view_mode): Ditto.
434 (set_view_mode): Ditto.
435 (create_listview): Ditto.
438 * io_stream.cc: Indent.
439 * io_stream.h: Ditto.
440 * package_db.cc: Ditto.
441 * package_meta.h: Const correctness for SDesc ();
442 * proppage.cc: Run d2u and indent.
443 * propsheet.cc: Run d2u and indent.
444 * window.cc: Run d2u and indent.
445 * window.h: Run d2u and indent.
447 2001-12-28 Christopher Faylor <cgf@redhat.com>
449 * Makefile.in (iniparse.o): Accommodate newer bisons.
451 2001-12-23 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
453 * window.h (Window): New file, new class.
454 * window.cc (Window): New file, new class.
456 * threebar.h (ThreeBarProgressPage): New file, new class.
457 * threebar.cc (ThreeBarProgressPage): New file, new class.
459 * splash.h (SplashPage): New file, new class.
460 * splash.cc (SplashPage): Replace file with implementation of new
463 * source.h (SourcePage): New file, new class.
464 * source.cc: Run indent.
465 (SourcePage): Add class implementation to this file.
466 (do_source): Remove, functionality subsumed by SourcePage::Create()
467 and SourcePage::OnDeactivate().
468 (dialog_proc): Remove, functionality subsumed by
469 SourcePage::OnActivate().
471 * site.h: Run indent.
472 (SitePage): Add class declaration.
473 * site.cc: Run indent.
474 (SitePage): Add class implementation.
475 (do_download_site_info_thread): New function.
476 (context): New var. Context info for do_download_site_info_thread().
477 (do_download_site_info): New function.
478 (SitePage::Create, SitePage::OnInit SitePage::OnNext)
479 (SitePage::OnBack): SitePage class implementation..
480 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers, now handled
482 (dialog_proc): Remove, now handled by SitePage::OnInit and base class
484 (do_site): Remove, now handled by do_download_site_info_thread() and
485 SitePage::OnNext functionality.
486 (get_site_list): Remove dismiss_url_status_dialog() call.
488 * root.h (RootPage): New file, new class.
489 * root.cc: Run indent.
490 (dialog_cmd): Pass parent HWND parameter to note(), yesno().
491 (dialog_proc): Remove.
493 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL clauses from switch.
494 (RootPage::OnInit): New member function. Move get_root_dir() logic to
496 (RootPage::Create): New member function.
497 (RootPage::OnNext): New member function. Move IDOK logic from
498 dialog_cmd() to here.
499 (RootPage::OnBack): New member function.
501 * propsheet.h (PropSheet): New file, new class.
502 * propsheet.cc (PropSheet): New file, new class.
504 * proppage.h (PropertyPage): New file, new class.
505 * proppage.cc (PropertyPage): New file, new class.
507 * postinstall.cc (do_postinstall): Add owner parameter.
509 * other.cc (do_other): Add owner parameter.
511 * nio-file.cc (NetIO::Purl): Pass NULL parent param to note().
512 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Pass NULL parent param to
514 * nio-http.cc (retry_get): Pass NULL parent param to get_auth(),
517 * nio-ie5.cc (NetIO::_url): Pass NULL parent param to note(),
518 get_auth(), get_proxy_auth().
520 * netio.h (get_auth, get_proxy_auth, get_ftp_auth): Add owner param.
521 * netio.cc (auth_common, NetIO::get_auth, NetIO::get_proxy_auth,
523 (auth_common): Add owner param. Pass owner param to DialogBox.
524 (NetIO::get_auth, NetIO::get_proxy_auth, NetIO::get_ftp_auth): Pass
525 owner param to auth_common().
527 * net.h (NetPage): New file, new class.
528 * net.cc: Run indent.
529 (net.h, threebar.h): Add includes.
530 (Progress): Add extern.
531 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, now handled by
532 property sheet logic. Saved temporarily for reference.
533 (NetPage::Create, NetPage::OnInit, NetPage::OnDeactivate,
534 NetPage::OnNext, NetPage::OnBack):
535 New implementation of NetPage class members.
537 (dialog_proc): Remove.
539 * msg.h (fatal, note, yesno): Add owner param.
540 * msg.c (fatal, note, yesno, mbox): Add owner param.
541 (mbox): Remove MB_TOPMOST from MessageBox call. Unnecessary and wrong
542 now that we have a parent.
544 * main.cc: Run indent.
545 (commctrl.h, proppage.h, propsheet.h, splash.h, source.h)
546 (localdir.h, net.h, site.h, choose.h, threebar.h, desktop.h): Include
548 (root_dialog_proc): extern into this file.
549 (Progress): Progress dialog defined here, used in several other files.
550 (WinMain): Instantiate and create Splash, Source, Root, LocalDir, Net,
551 Site, Chooser, Desktop pages and MainWindow sheet. Call
552 InitCommonControls() to make sure Windows is set up for our use of
553 property sheets. Add pages to sheet.
554 Call MainWindow.Create() to "DoModal". Remove main loop, that logic is
555 now handled by the PropSheet class.
556 (root.h): Add include.
558 * log.cc (log_save): Pass NULL parent to fatal().
559 (exit_setup): Pass NULL parent to note().
561 * localdir.h (LocalDirPage): New file, new class.
562 * localdir.cc: Run indent.
563 (localdir.h): New include.
564 (threebar.h): New include.
565 (Progress): extern into this file.
566 (LocalDirPage::Create, LocalDirPage::OnInit, LocalDirPage::OnActivate)
567 (LocalDirPage::OnNext, LocalDirPage::OnBack): Implementation of
569 (LocalDirPage::OnNext): Move log() call from do_local_dir() to here.
570 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers.
571 (do_local_dir): Remove.
572 (dialog_proc): Remove.
573 (cwd): Remove, not used by anything.
575 * install.cc: Run indent.
576 (process.h, threebar.h): New includes.
577 (Progress): extern into this file.
578 (ins_dialog, ins_action, ins_pkgname, ins_filename, ins_pprogress)
579 (ins_iprogress, ins_diskfull, init_event): Remove, now handled by
580 ThreeBarProgressPage.
581 (dialog_cmd, dialog_proc, dialog): Removed, handled in
582 ThreeBarProgressPage.
583 (init_dialog): Remove all mention of the above ins_* handles. Now
584 handled in ThreeBarProgressPage. Altered SetWindowText()s to call
585 ThreeBarProgressPage instance Progress directly.
586 (progress): Alter bar update logic to call ThreeBarProgressPage
587 instance Progress directly.
588 (uninstall_one): Alter SetWindowText()s to call ThreeBarProgressPage
589 instance Progress directly.
590 (install_one_source): Alter SetWindowText()s to call
592 instance Progress directly. Pass NULL parent to note().
593 (do_install_thread): Rename from do_install(), added owner param.
594 Alter SetWindowText()s to call ThreeBarProgressPage instance Progress
596 Remove dismiss_url_status_dialog() call, no longer necessary. Remove
597 ShowWindow(<hide>) call, also unnecessary now. Pass owner handle to
599 (do_install_reflector): New function.
600 (do_install): New function.
602 * ini.cc (process.h, threebar.h): New includes.
603 (Progress): externed into this file.
604 (find_routine): Pass NULL parent to note().
605 (do_local_ini): Add owner param.
606 (do_remote_ini): Add owner param. Pass owner to get_url_to_membuf()
607 and note(). Remove call to dismiss_url_status_dialog().
608 (do_ini_thread): Rename from do_ini(). Add owner param. Pass owner to
609 do_local_ini(), do_remote_ini(), yesno(), and note(). Set next_dialog
610 to IDD_CHOOSER on exit.
611 (do_ini_thread_reflector): New function.
612 (context): New var. Context for do_ini_thread.
613 (do_ini): New function.
615 * geturl.h (get_url_to_membuf, get_url_to_string, get_url_to_file): Add
617 * geturl.cc (gw_dialog, gw_url, gw_rate, gw_progress, gw_pprogress,
619 (gw_progress_text, gw_pprogress_text, gw_iprogress_text, init_event):
621 (threebar.h): New include.
622 (Progress): externed into this file.
623 (dialog_cmd, dialog_proc, dialog): Removed, handled by
624 ThreeBarProgressPage now.
625 (init_dialog): Remove "if (gw_dialog == 0)" clause. Alter
627 and bar setting SendMessage()s to call ThreeBarProgressPage instance
628 Progress directly. Remove "one bar only" logic, this is now handled
629 explicitly in the ThreeBarProgressPage class.
630 (progress): Altered bar and text update logic to call
631 ThreeBarProgressPage instance Progress directly. Changed kbps
632 calculation to floating point and now print out a single decimal
634 (get_url_to_membuf): Add owner param. Pass it to init_dialog.
635 (get_url_to_string): Add owner param. Pass it to get_url_to_membuf.
636 (get_url_to_file): Add owner param. Pass it to init_dialog. Alter bar
637 update logic to call ThreeBarProgressPage instance Progress directly.
638 (dismiss_url_status_dialog): Remove.
640 * fromcwd.cc (do_fromcwd): Add owner param. Initialize found_ini to
643 * download.cc: Run indent.
644 (process.h, threebar.h): New includes.
645 (Progress): externed into this file.
646 (download_one): Add owner param. Pass it to get_url_to_file().
647 (do_download_thread): Renamed from do_download. Add owner param. When
648 calculating total_download_bytes, take binpicked and srcpicked into
649 account. Remove call to dismiss_url_status_dialog(), no longer needed.
650 Pass owner handle to download_one() and yesno().
651 (do_download_reflector, do_download): New functions.
652 (context): New var. Context for do_download_thread().
654 * dialog.h (D(x)): Add owner param.
656 * desktop.h (DesktopSetupPage): New file, new class.
657 * desktop.cc: Run indent.
658 (desktop.h): Add include.
659 (dialog_proc, do_desktop): Remove, now handled in
660 DesktopSetupPage::OnInit().
661 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, handled in
662 DesktopSetupPage::OnFinish(), DesktopSetupPage::OnBack(), and PropSheet
664 (DesktopSetupPage::Create, DesktopSetupPage::OnInit)
665 (DesktopSetupPage::OnBack, DesktopSetupPage::OnFinish): Implementation
668 * cistring.h: New file, new class.
669 * cistring.cc: New file, new class.
671 * choose.h: Run indent.
672 (Chooser): New class declaration.
673 * choose.cc: Run indent.
674 (do_choose): Add owner param. Pass it to DialogBox() and
676 (Chooser): New class implementation.
678 * res.rc (IDS_VERSION_INFO): New string.
679 (IDD_SOURCE, IDD_LOCAL_DIR, IDD_ROOT, IDD_SITE, IDD_OTHER_URL)
680 (IDD_DLSTATUS, IDD_INSTATUS, IDD_SPLASH, IDD_CHOOSE, IDD_DESKTOP):
681 Change WS_POPUP to WS_CHILD. Numerous positioning/size changes
683 (IDD_CHOOSE): Give template the WS_EX_CONTROLPARENT style to enable
684 TAB control navigation etc. Give the controls a reasonable tab order.
685 Grouped radio buttons. Something's still not right, can't tab away
686 from back/next/cancel group reliably.
687 * resource.h (IDD_CHOOSER): New dialog ID.
689 * Makefile.in (OBJS): Add cistring.o, proppage.o, propsheet.o,
690 threebar.o, and window.o.
692 2001-12-21 Robert Collins <rbtcollins@hotmail.com>
694 * choose.cc (listview_proc): Update the scrollbar when the headers are dragged.
695 (pick_pkg_line::paint): Clip columns to prevent overlap.
697 2001-12-20 Robert Collins <rbtcollins@hotmail.com>
699 * Makefile.in: Add libcomctl32.a for setup.exe.
700 * archive.h (archive): Prevent non-child direct creation of the class.
701 * archive_tar.h (archive_tar): Prevent inaccurate synthetic copy and assignment.
702 * choose.cc: Include commctrl for the choose header.
703 (NEW_COL_SIZE_SLOP): Define without magic numbers.
704 (pkgtrustp): Convert to function.
705 (set_action): Remove.
706 (add_required, fill_missing_category,default_trust): Use list syntax for
709 (choose_caption): Remove.
710 (topbucket::paint): New method.
711 (topbucket::empty): Ditto.
712 (topbucket::click): Ditto.
713 (topbucket::~topbucket): Ditto.
714 (paint): Remove i,ii and p as they are obsolete.
715 Remove header drawing code.
716 Use new chooser method to paint the chooser.
717 Use new chooser itemcount method.
718 (scroll_common): Rename to view::scroll.
719 Scroll the header window separately.
720 (list_vscroll, list_hscroll, list_click): Update for new chooser methods.
721 (listview_proc): Look for header messages.
722 (note_width): Accept stringless calls.
723 (pick_line::set_line): Remove.
724 (pick_line::paint): Remove.
725 (pick_pkg_line::paint): Paint this one line, using the header column widths.
726 (pick_category_line::paint): Paint this category, and anything in the bucket.
727 (pick_line::click): Remove.
728 (pick_pkg_line::click): Handle a click.
729 (pick_category_line::click): Handle a click.
730 (_view): Rename all to view.
731 (view::view): Initialise the control contents.
732 (view::set_headers): Work with the header control.
733 (view::init_headers): Use list syntax for package list.
734 Rearrange the width logic a little.
735 (view::insert_pkg): Update to use the hierarchy.
736 (view::insert_category): Ditto.
737 (view::insert_at, view::insert_under): Remove.
738 (view::clear_view): Update to use the hierarchy.
739 (view::click): Update to use the hierarchy.
740 (set_view_mode): Use list syntax for package list.
741 Update for new chooser methods.
742 (DoInsertItem): New helper function. (Needs a home somewhere).
743 (create_listview): Remove choose control code and use the constructor instead.
744 (dialog_cmd,scan2,do_choose): Use list syntax for package list.
745 * choose.h: Include newly required headers list and package_meta.
746 (_voew): Rename to view.
747 (pick_line): Convert to an ABC.
748 (pick_pkg_line): New class.
749 (pick_catgory_line): New class.
750 (topbucket): New class.
751 (view::scroll): New method created from listview_scroll function.
752 * desktop.cc (make_passwd_group): Use list syntax for package list.
753 * download.cc (do_download): Use list syntax for package list.
754 * fromcwd.cc (found_file): Use list syntax for package list.
755 * iniparse.y (pacakges): Use list syntax for package list.
756 * install.cc (uninstall_one): Use list syntax for package list.
757 (do_install): Use list syntax for package list.
758 * io_stream.h (io_stream): Prevent non-child direct creation of the class.
759 Prevent inaccurate synthetic copy and assignment.
760 * list.h: Include required header stdlib.
761 Work on const correctness.
762 * package_db.cc (packagedb::getpackagebyname): Remove.
763 (packagedb::packagedb): Remove custom list code, and make db a local.
764 (packagedb::getfirstpackage): Remove.
765 (packagedb::getnextpackage): Remove.
766 (packagedb::addpackage): Remove.
767 (flush): Remove custom list code.
768 (packagedb::registerpackage): Remove.
769 (packagedb::packages): New static member.
770 (packagedb::task): New static member.
771 * package_db.h (PackageDBActions): New enum.
772 (packagedb): Remove getfirstpackage, getnextpackage, getpackagebyname,
773 addpackage, registerpackage, packages, packagecount, curr_package, db.
775 * pacakge_meta.cc: Include package_db.h.
776 (packagemeta::action_caption): New method.
777 (packagemeta::set_action): New method.
778 * package_meta.h (CategoryPackage): Initialise key.
779 (packagemeta): Initialise key.
780 Add set_action and action_caption methods.
781 Prevent inaccurate synthetic copy and assignment.
782 * resource.h (IDC_CHOOSE_LISTHEADER): New ID.
783 * source.cc: Include package_db for db manipulation.
784 (save_dialog): Set the db task.
785 * win32.h: Tell the w32 include headers what IE version to expect/require.
787 2001-12-06 Robert Collins <rbtcollins@hotmail.com>
789 * README: Wishlist updates.
791 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
793 * package_db.cc (getnextpackage): Don't overrun the array.
795 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
797 * Makefile.in (OBJS): Add setup_version.o.
798 (version.c): Rename to setup_version.
799 * choose.cc (set_action): Prevent NULL pointer dereference.
800 (package_sort): Remove.
801 * fromcwd.cc (canonicalize_version): Moved to version.cc.
802 (check_ini): New function for use with find to see if there is a cached setup.ini.
803 (do_fromcwd): Check for a cached setup.ini from any mirror site.
804 * ini.cc (find_routine): New function, for finding cached setup.ini's.
805 (do_local_ini): New function, drives parsing of local ini's.
806 (do_remote_ini): New function, drives parsing and caching of remote ini's.
807 (do_ini): Move guts to do_remote_ini and do_local_ini.
808 * list.h (removebyindex): New method.
809 * other.cc (save_dialog): Use new site_list and all_site_list to add the
810 new site to the site picklist.
811 (dialog_cmd): Only save the dialog when exiting the dialog.
812 * res.rc (IDD_SITE): Make IDC_URL_LIST a multiple-selection control.
813 * site.cc (site_list_type): Move to site.h
814 (site_list): New global, sites chosen by the user.
815 (all_site_list): New global, all potential sites.
816 (site_list_type::init): New method, parses a mirror.lst URL string into a
817 site_list_type object.
818 (site_list_type::site_list_type): New method.
819 (check_if_enable_next): Examine the control, not a local variable.
820 (load_dialog): Select all the user chosen sites by default.
821 (save_dialog): Adjust for multiple selection semantics.
822 (save_site_url): Save all user chosen sites.
823 (dialog_cmd): Don't save the dialog when the listbox recieves a message -
825 Remove obsolete other_url reference.
826 (dialog_proc): Use all_site_list instead of site_list.
828 (get_site_list): Remove malloc use - use list template instead.
829 Move site_list_type initialisation to site_list_type::init().
830 (get_initial_list_idx): Renamed to ...
831 (get_saved_sites): this. Also read in multiple sites to the site_list.
832 (do_site): Use all_site_list not site_list.
833 Log all chosen sites.
834 * site.h: New file, defines site related class, functions and variables.
835 * state.h: Add comment about use of state.h
836 (mirror_site): Remove.
838 (MIRROR_SITE): Remove.
839 * version.cc: New file, for version-handling and related functions.
841 2001-12-02 Robert Collins <rbtcollins@hotmail.com>
843 * Makefile.in: Add filemanip.o to setup.
844 * archive.cc (archive::extract_file): Use new io_stream method 'copy'.
845 * archive_tar.h (archive_tar_file): Implement get_size virtual.
846 (archive_tar): Ditto.
847 * choose.cc (set_action): Use [] operator instead of getnth - its more readable.
849 (_view::init_headers): Ditto.
850 (_view::insert_pkg): Ditto.
851 (set_view_mode): Ditto.
854 (base): Moved to filemanip.cc.
855 (find_tar_ext): Ditto.
856 (parse_filename): Ditto.
857 (_Info::_Info): Remove.
858 * compress_bz.h (compress_bz): Implement get_size virtual.
859 * compress_gz.h (compress_gz): Implement get_size virtual.
860 * cygpackage.cc (cygpackage::destroy): Use array delete for char * objects.
861 * download.cc (get_file_size): Move to filemanip.cc.
862 (check_for_cached): Use [] operator instead of getnth - its more readable.
863 (download_one): Ditto.
864 * filemanip.cc: New file.
865 * geturl.cc (init_dialog): Make url a pointer to const as it is not modified.
866 (get_url_to_membuf): New function - contains get_url_to_string worker code.
867 (get_url_to_string): Becomes a trivial wrapper to get_url_to_membuf.
868 * geturl.h: Declare new prototype.
869 * ini.cc (do_ini): Use get_url_to_membuf and pass ini_init an io_stream.
870 Tidy up the error code a little.
871 * ini.h: Remove __cplusplus protection for ini_init.
873 * inilex.l: Remove old globals.
874 (ini_init): Use an io_stream for getting the characters.
875 (ini_getchar): Ditto.
876 * iniparse.y: Declare yylex as a C++ function.
877 (add_correct_version): Use [] operator instead of getnth - its more readable.
878 * io_stream.cc (io_stream::move_copy): Use the copy method.
879 (io_stream::copy): New method to simply copy from one stream to another.
880 * io_stream.h (io_stream): New static method copy, and virtual method get_size.
881 * io_stream_cygfile.cc (io_stream_cygfile::get_size): Implement this.
882 * io_stream_cygfile.h (io_stream_cygfile::get_size): Declare this.
883 * io_stream_file.cc (io_stream_file::get_size): Implement this.
884 * io_stream_file.h (io_stream_file::get_size): Declare this.
885 * io_stream_memory.h: Include errno as it's neded to parse the header.
886 (io_stream_memory::get_size): Implement this.
887 (io_stream_memory::st_size): Delete this.
888 * list.h: Change getnth into the [] operator.
889 * netio.cc (NetIO::NetIO): Change prototype to reflect Purl not being modified.
890 (NetIO::set_url): Ditto.
891 (NetIO::open): Ditto.
892 * netio.h: As for netio.cc.
893 * nio-file.cc (NetIO_File::NetIO_File): Change prototype to reflect Purl not
896 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
897 * nio-ftp.h (NetIO_FTP::NetIO_FTP): Ditto.
898 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Ditto.
899 * nio-http.h (NetIO_HTTP::NetIO_HTTP): Ditto.
900 * nio-i5.cc (NetIO_IE5::NetIO_IE5): Ditto.
901 * nio-i5.h (NetIO_IE5::NetIO_IE5): Ditto.
902 * package_meta.cc (packagemeta::~packagemeta): Bugfix: use array delete.
903 * package_source.cc (packagesource::set_canonical): Ditto.
904 (packagesource::set_cached): Ditto.
905 * package_source.h (site::~site): Ditto.
906 * site.cc: Change site_list_type to a class, and search and replace sort_key to
909 2001-12-01 Robert Collins <rbtcollins@hotmail.com>
911 * package_source.cc (packagesource::set_canonical): Filename was out by one.
913 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
915 * Makefile.in (OBJS): Remove category_list - it's not needed.
916 * README: More wishlist updates.
917 * category.cc (Category::Category): Initialise new members.
918 (Categorycmp): New function.
919 * category.h (Category): New member key for template use.
920 * category_list.cc: Remove.
921 * category_list.h: Remove.
922 (Categorycmp): New function prototype.
923 * choose.cc: Remove category_list - not needed.
924 (set_action): Only show the 'source' option when the source is actually
926 (add_required): Fix recursion limiter to 5.
927 (fill_missing_category): Use list access.
928 (default_trust): Ditto.
929 (pick_line::paint): Ditto.
930 (_view::init_headers): Ditto.
931 (_view::insert_pkg): Ditto.
932 (_view::insert_category): Ditto.
933 (_view::click): Ditto.
934 (set_view_mode): Ditto.
936 * cygpackage.h: Remove category_list - not needed.
937 * geturl.cc (get_url_to_string): Fix null byte insertion.
938 * inipatse.y: Remove category_list - not needed.
939 (categories): Use list access.
940 * package_db.cc: Ditto.
941 * package_db.h: Remove category_list - not needed.
942 (packagedb): Use the list template for categories.
943 * package_meta.cc (add_category): Ditto.
944 * package_meta.h (CategoryPackage): Link to the category as well.
945 (packagemeta): Use a list of CategoryPackages instead of Categories
946 for more memory efficient cross-referencing.
948 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
950 * package_db.cc (packagedb::flush): Write a canonical version for all packages
951 irrespective of the media they were installed from.
953 2001-11-29 Robert Collins <rbtcollins@hotmail.com>
955 * Makefile.in (OBJS): Add package_source and rfc1738.
956 * README: Wishlist update.
957 * category_list.cc (register_category): Use references.
958 * category_list.h (CategoryList): Ditto.
959 * choose.cc (isinstalled): Remove.
960 (pkgtrustp): New macro.
961 (set_action): Use packagemeta.
962 (add_required): Ditto.
963 (choose_caption): Example package to choose caption, rather than state flags.
964 (check_existence): Remove.
965 (set_existence): Remove old code.
966 (fill_missing_category): Use packagemeta.
967 (keep_or_skip): Remove.
968 (default_trust): Use packagemeta and set trust values directly.
969 (pick_line::set_line): Use packagemeta.
970 (_view::insert_pkg): Ditto.
971 (_view::insert_category): Ditto.
972 (_view::click): Ditto.
973 (set_view_mode): Ditto. Also remove "exclude" code.
974 (create_listview): Use packagemeta.
976 (getpkgbyname): Remove
977 (scan2): Use packagemeta. Temporarily comment out the holefinding code.
978 (read_installed_db): Remove.
979 (package_sort): Use packagemeta.
980 (do_choose): Use packagemeta. Don't sort the packages - the db does that.
981 * choose.h: Use packagemeta.
982 * cygpackage.cc (cygpackage::cygpackage): Initialise all variables.
983 (cygpackage::cygpackage): Ditto.
984 (cygpackage::set_canonical_version): Copy the passed string.
985 (cygpackage::~cygpackage): Move cleanup code to destroy().
986 (cygpackage::destroy): New function.
987 (cygpackage::getfirstfile): Use a separate buffer.
988 (cygpackage::getnextfile): Ditto.
989 (cygpackage::Canonical_version): New function.
990 (cygpackage::set_sdesc): Ditto.
991 (cygpackage::set_ldesc): Ditto.
992 * cygpackage.h (cygpackage::Canonical_version): New method.
993 (cygpackage::set_sdesc): New method.
994 (cygpackage::set_ldesc): New method.
995 (cygpackage::SDesc): New method.
996 (cygpackage::LDesc): New method.
997 (cygpackage::set_canonical_version): New method.
998 * desktop.cc: Include packagedb headers.
999 (make_password_group): Use packagemeta.
1000 * download.cc: Include packagedb headers.
1001 (check_for_cached): New method to find any cached file and fill out the database
1003 (download_one): Take a packagesource, support multiple mirrors.
1004 (do_download): Use packagemeta.
1005 * from cwd.cc: Include packagedb headers.
1006 (found_file): Use packagemeta.
1007 * ini.cc (do_ini): Beginning of multiple-mirror support.
1008 * ini.h (CategoryPackage): Remove.
1009 (Dependency): Remove.
1011 (new_package,getpkgbyname,getpackagecategorybyname,add_category): Remove.
1012 * inilex.l: Support multiple mirrors.
1013 * iniparse.y: Include packagedb headers.
1014 (parser): Use packagemeta.
1015 (new_package): Remove.
1016 (add_correct_version): New function.
1017 (new_requirement): Remove.
1018 (add_category): Remove.
1019 * install.cc (uninstall_one): Use packagemeta.
1020 (install_one_source): New function.
1021 (install_one): Use packagemeta.
1022 (do_install): Use packagemeta.
1023 * io_stream.cc (io_stream::move): Bugfix on move/copy case.
1024 * io_stream_cygfile.cc (io-stream_cygfile::set_mtime): Do not reopen the file
1025 after setting the mtime, it makes no sense, and results in 0 length files.
1026 * io_stream_file.cc (io-stream_file::set_mtime): Ditto.
1027 * list.h: New file, template class for a form of list.
1028 * package_db.cc (packagedb::registerpackage): New function.
1029 * package_db.h (packagedb::npackages ()): New method.
1030 * package_meta.cc (packagemeta::add_version): Use list template.
1031 (packagemeta::set_installed): Ditto.
1032 (packagemeta::add_category): New method.
1033 * package_meta.h: Include necessary headers to parse the class.
1034 (CategoryPackage): New class.
1035 (packagemeta): Initialise all members.
1036 (packagemeta::SDesc): New method.
1037 (packagemeta::Categories): New method.
1038 (packagemeta::add_category): Ditto.
1039 (packagemeta::versions): Change to be a list instance.
1040 * package_source.cc (packagesource::set_canonical): New method.
1041 (packagesource::set_cached): New method.
1042 * package_source.h: Include necessary headers to parse the class.
1044 (packagesource::packagesource): Initialize all members.
1045 (packagesource): Make this class non-abstract.
1046 * package_version.cc (packageversion::packageversion): New method.
1047 * package_version.h (Dependency): New class.
1048 (packageversion::Canonical_vesion): New method.
1049 (packageversion::SDesc): New method.
1050 (packageversion::LDesc): New method.
1051 (packageversion::new_requirement): Ditto.
1052 (packageversion::srcpicked, binpicked): What to install.
1053 (packageversion::src, bin): Installation source data.
1054 * rfc1738.cc: New file. Escapes special characters in URL's.
1057 2001-11-26 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1059 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Stop header parsing when
1060 SimpleSocket::gets() returns a zero-length string, so that we
1061 don't end up eating the entire stream thinking it's all header info.
1063 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
1065 * install.cc (badrename): Remove.
1066 (do_install): Use packagedb flush method to write /etc/setup/installed.db.
1067 * io_stream.cc (io_stream::move_copy): New method.
1068 (io_stream::move): New method.
1069 * io_stream.h (io_stream): New methods move and move_copy.
1070 * io_stream_cygfile.cc (io_stream_cygfile::move): New method.
1071 * io_stream_cygfile.h (io_stream_cygfile): New method move.
1072 * io_stream_file.cc (io_stream_file::move): New method.
1073 * io_stream_file.h (io_stream_file): New method move.
1074 * package_db.cc (packagedb::flush): New method.
1075 * package_db.h (packagedb): New method flush.
1077 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
1079 * Makefile.in (OBJS): Add package_version.
1080 * ategory.cc (Category::Category): Update constructors.
1081 * category_list.cc (CategoryList::register_category): Insert correctly.
1082 * choose.cc: Include package_version.h, not package.h.
1083 * cygpackage.cc: Ditto.
1084 (cygpackage::uninstall): New method.
1085 * cygpackage.h (cygpackage): Rename genericpackage to packageversion.
1086 New method uninstall.
1087 * hash.cc (add, has, enumerate): Change prototype to be accurate.
1088 * hash.h (hash): Change prototypes to be accurate.
1089 * ini.h (_Info): New parameterless constructor.
1090 (CategoryPackage): New constructor.
1092 * install.cc: Don't include unneeded headers.
1093 Include package database headers.
1094 (hash::add_subdirs): Remove.
1095 (uninstall_one): Use packagemeta->uninstall to perform the uninstallation.
1096 Don't uninstall source packages.
1097 (do_install): Just can uninstall_one once as we ignore source packages now.
1098 Don't copy the installed.old database accross, instead iterate through the
1099 packagedb packages list and write the isntalled packages out.
1100 * package_db.cc: Include package_version.h, not package.h.
1101 (packagedb::packagedb): Never let db be undefined.
1102 Record the installation filename, so we can reconstruct installed.db.
1103 (packagedb::addpackage): Insert packages in alpha sorted order.
1104 (packagedb::categories): Initialise correctly.
1105 * package_meta.cc: Include win32 and mount headers as a workaround to
1106 current io_stream limitations. Include a TODO about that.
1107 (standard_dirs): New, from install.cc.
1108 (hash::add_subdirs): New, from install.cc.
1109 (packagemeta::set_installed): Rename genericpackage to packageversion.
1110 (packagemeta::uninstall): New method.
1111 * package_meta.h: Rename genericpackage to packageversion.
1112 (packagemeta): Update constructor.
1113 (add_version, set_installed): Rename genericpackage to packageversion.
1114 (uninstall): New method.
1115 (installed_from): New member.
1116 * package_source.cc: New file.
1117 * package_source.h: New file.
1118 * package_version.cc: New file.
1119 * package_version.h: New file.
1120 * package.cc: Removed.
1121 * package.h: Removed.
1123 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
1125 * Makefile.in (OBJS): Add category.o and category_list.o.
1126 * category.h: New file.
1127 * category.cc: New file.
1128 * category_list.h: New file.
1129 * category_list.cc: New file.
1130 * choose.cc: Include category headers.
1131 (fill_missing_category): Use package_db to access global categories.
1132 (_view::insert_pkg): Ditto.
1133 (_view::insert_category): Ditto.
1134 (set_view_mode): Ditto.
1135 (getcategorybyname): Remove.
1136 * cygpackage.h: Include category_list.h to parse this correctly.
1137 (cygpackage): New virtual &Categories.
1138 * ini.h (_CategoryPackage): More C to C++ conversion.
1140 (getcategorybyname): Remove.
1141 (register_category): Remove.
1142 * iniparse.y: Include package db and category headers.
1143 (categories): Use package_db to access global categories.
1145 (ncategories): Remove.
1146 (register_category): Remove.
1147 * package.h: New virtual &Categories.
1148 * package_db.cc (packagedb::packagedb): Don't read the installed db twice.
1149 (packagedb::categories): Declare.
1150 * package_db.h (packagedb): New member categories for global categories list.
1152 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
1154 * choose.h: Don't include ini.h
1155 * ini.h: Allow pure c++ in the header file.
1157 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
1159 * install.cc (do_install): Write a version 2 installed.db file.
1160 * package_db.cc (packagedb::packagedb): Read version 1 and 2 installed.db files.
1162 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
1164 * Makefile.in (OBJS): Add package abstraction objects.
1165 * choose.cc: Include package abstraction headers.
1166 (read_installed_db): Use packagedb class and ignore installed sources.
1167 * cygpackage.cc: New file.
1168 * cygpackage.h: New file.
1169 * filemanip.h (get_file_size): Use unixy types.
1170 * package.h: New file.
1171 * package.cc: New file.
1172 * package_db.cc: New file.
1173 * package_db.h: New file.
1174 * package_meta.cc: New file.
1175 * package_meta.h: New file.
1177 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
1179 * REAME: Updates to wishlist.
1181 2001-11-16 Robert Collins <rbtcollins@hotmail.com>
1183 * README: Updated and added my list of wishlist and todo items.
1185 2001-11-14 Robert Collins <rbtcollins@hotmail.com>
1187 * Makefile.in (OBJS): Include io_stream_memory in setup.exe.
1188 * archive_tar.cc (archive_tar::write): New prototype.
1189 (archive_tar::seek): New method.
1190 * archive.h (archive_tar_file): Update write() and add seek().
1191 (archive_tar): Ditto.
1192 * archive_tar_file.cc (archive_tar_file::write): New prototype.
1193 (archive_tar_file::seek): New method.
1194 * compress_bz.cc (compress_bz::write): New prototype.
1195 (compress_bz::seek): New function.
1196 * compress_bz.h (compress_bz): Update write() and add seek().
1197 * compress_gz.cc (compress_gz::write): New prototype.
1198 (compress_gz::seek): New function.
1199 * compress_gz.h (compress_gz): Update write() and add seek().
1200 * geturl.cc: Include io_stream headers.
1202 (get_url_to_string): Use a io_stream_memory buffer instead of GUBuf.
1203 * io_stream.h (io_stream_seek_t): New enum.
1204 (io_stream): Update write() and add seek().
1205 * io_stream_cygfile.cc (io_stream_cygfile::write): New prototype.
1206 (io_stream_cygfile::seek): New function.
1207 * io_stream_cygfile.h (io_stream_cygfile): Update write() and add seek().
1208 * io_stream_file.cc (io_stream_file::write): New prototype.
1209 (io_stream_file::seek): New function.
1210 * io_stream_file.h (io_stream_file): Update write() and add seek().
1212 2001-11-13 Brian Keener <bkeener@thesoftwaresource.com>
1214 * localdir.cc: Add headers unistd.h and port.h.
1215 (save_local_dir): Expand search logic to include local directory for
1216 location of file last-cache.
1217 (dialog_cmd): Skip IDD_ROOT when downloading and use Back button.
1218 (do_local_dir): Expand search logic to include local directory for file
1220 * res.rc (IDD_CHOOSE_DIALOG): Add hotkey to View button.
1221 * Source.cc (dialog_cmd): Skip IDD_ROOT if select Download from
1223 (do_source): Default to Install from Internet on first entry or
1224 previous selection if backing up from IDD_ROOT or IDD_LOCAL_DIR.
1226 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
1228 * choose.cc (find_tar_ext): Only match at the end of the string.
1229 (getpkgbyname): Prevent NULL pointer dereference.
1231 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
1233 * Makefile.in (CFLAGS): Add warnings and -Werr.
1234 (WARNONLY_FLAGS): For sources that produce (harmless) errors no matter what.
1235 (OBJS): Add io_stream class' objects.
1236 (autoload.o): Use WARNONLY_FLAGS.
1238 (iniparse.o): Ditto.
1239 * archive.cc: New file.
1240 * archive.h: New file.
1241 * archive_tar.cc: New file.
1242 * archive_tar.h: New file.
1243 * archive_tar_file.cc: New file.
1244 * autoload.c: Fix compiler warnings (unused, deprecated conversion).
1245 * choose.cc: Use io_stream.h, not mount.h.
1247 (find_tar_ext): Rewritten to use strstr, and to accept .tar as an extension.
1248 (read_installed_db): Use io_streams.
1249 * choose.h: Run indent.
1250 * compress.cc: New file.
1251 * compress.h: New file.
1252 * compress_bz.cc: New file.
1253 * compress_bz.h: New file.
1254 * compress_gz.cc: New file.
1255 * compress_gz.h: New file.
1256 * concat.cc: Run indent.
1257 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1258 * concat.h: Run indent.
1259 * desktop.cc: Run indent.
1260 Include mklink2.h rather than redefining by hand.
1261 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1262 (etc_profile): Fix compiler warning (deprecated conversion).
1263 (make_link): Fix compiler warning (deprecated conversion).
1264 Tidy up use of args variable - consolidate into argbuf.
1265 (start_menu): Fix compiler warning (deprecated conversion).
1266 (desktop_icon): Fix compiler warning (deprecated conversion).
1267 (make_etc_profile): Fix compiler warning (deprecated conversion).
1268 (uexists): Fix compiler warning (deprecated conversion).
1269 (check_desktop): Fix compiler warning (deprecated conversion).
1270 (check_startmenu): Fix compiler warning (deprecated conversion).
1271 * dialog.cc: Run indent.
1272 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1273 (fatal): Fix compiler warning (deprecated conversion).
1274 * dialog.h: Run indent.
1275 * diskfull.cc: Run indent.
1276 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1277 * download.cc: Run indent.
1278 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1279 (download_one): Fix compiler warning (signed vs unsigned comparison).
1280 * filemanip.h: Run indent.
1281 * find.cc: Run indent.
1282 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1283 (find): Fix compiler warning (deprecated conversion).
1284 * find.h: Run indent.
1285 * fromcwd.cc: Run indent.
1286 * geturl.cc: Run indent.
1287 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1288 (dialog_cmd): Return a value.
1289 (dialog_proc): Remove unused variables.
1291 (get_url_to_file): Fix compiler warning (deprecated conversion).
1292 * geturl.h: Run indent.
1293 * hash.cc: Run indent.
1294 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1295 * hash.h: Run indent.
1296 * ini.cc: Run indent.
1298 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1299 (do_ini): Use io_streams for local io.
1300 * ini.h: Run indent.
1301 * inilex.l (ignore_line): Fix compiler warning (is not a prototype).
1302 Fix compiler warning (brackets for truth assignment).
1303 * install.cc: Run indent.
1304 Fix compiler warning (/* in comment).
1306 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1307 (dialog_cmd): Return a value.
1308 (dialog_proc): Return a value.
1309 (start_tics): Deleted - was unused.
1310 (badrename): Fix compiler warnings (unused, deprecated conversion).
1311 (standard_dirs): Fix compiler warning (deprecated conversion).
1313 (uninstall_one): Convert to io_streams.
1314 (install_one): Convert to io_streams.
1315 (do_install): Convert to io_streans.
1316 Fix compiler warning (deprecated conversion).
1317 * io_stream.cc: New file.
1318 * io_stream.h: New file.
1319 * io_stream_cygfile.cc: New file.
1320 * io_stream_cygfile.h: New file.
1321 * io_stream_file.cc: New file.
1322 * io_stream_file.h: New file.
1323 * localdir.cc: Run indent.
1325 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1326 (get_root_dir_now): Remove.
1327 (save_local_dir): Convert to io_streams.
1328 (dialog_cmd): Return a value.
1329 (do_local_dir): Convert to io_streams.
1330 (log.cc): Run indent.
1331 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1332 (log): Fix compiler warning (deprecated conversion).
1333 (log_save): Fix compiler warning (deprecated conversion).
1334 * log.h: Run indent.
1335 (log): Fix compiler warning (deprecated conversion).
1336 (log_save): Fix compiler warning (deprecated conversion).
1337 * main.cc: Run indent.
1338 Don't include "netio.h".
1339 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1340 (netio_test): Remove.
1341 (sid_auth): Fix compiler warning (partially bracketed initialiser).
1342 (WinMain): Return a value.
1343 * mkdir.cc: Run indent.
1344 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1345 * mklink2.c: Run indent.
1346 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1347 (mkcygsymlink): New function.
1348 * mklink2.h: New file.
1349 * mount.cc: Run indent.
1350 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1351 (create_mount): Remove unused variables.
1352 (cygpath): Fix compiler warning (signed vs unsigned comparison).
1353 * mount.h: Run indent.
1354 * msg.cc: Run indent.
1355 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1356 (msg): Fix compiler warning (deprecated conversion).
1357 (mbox): Fix compiler warning (deprecated conversion).
1358 * msg.h: Run indent.
1359 (msg): Fix compiler warning (deprecated conversion).
1360 * net.cc: Run indent.
1361 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1362 (dialog_cmd): Return a value.
1363 * netio.cc: Run indent.
1364 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1365 (auth_cmd): Return a value.
1366 * netio.h: Run indent.
1367 * nio-file.cc: Run indent.
1368 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1369 (NetIO_File::NetIO_File): Fix compiler warning (deprecated conversion).
1370 * nio-file.h: Run indent.
1371 * nio-ftp.cc: Run indent.
1372 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1373 * nio-ftp.h: Run indent.
1374 * nio-http.cc: Run indent.
1375 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1376 * nio-http.h: Run indent.
1377 * nio-ie5.cc: Run indent.
1378 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1379 * nio-ie5.h: Run indent.
1380 * other.cc: Run indent.
1381 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1382 (dialog_cmd): Return a value.
1383 * port.h: Run indent.
1384 * postinstall.cc: Run indent.
1385 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1386 (cmd): Fix compiler warning (deprecated conversion).
1387 (eun): Fix compiler warning (deprecated conversion).
1388 * root.cc: Run indent.
1389 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1390 * simpsock.cc: Run indent.
1391 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1392 * simpsock.h: Run indent.
1393 * site.cc: Run indent.
1395 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1396 (get_root_dir_now): Remove.
1397 (save_site_url): Convert to io_streams.
1398 (dialog_cmd): Return 0.
1399 (get_initial_list_idx): Convert to io_streans.
1400 * source.cc: Run indent.
1401 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1402 (check_if_enable_next): Remove.
1403 (load_dialog): Remove unused variables.
1404 (save_dialog): Ditto.
1405 (dialog_cmd): Return a value.
1406 * splash.cc: Return a value.
1407 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1408 (dialog_cmd): Return a value.
1409 * state.cc: Run indent.
1410 (cvsid): Fix compiler warnings (unused, deprecated conversion).
1411 * state.h: Run indent.
1415 2001-11-12 Christopher Faylor <cgf@redhat.com>
1417 * desktop.cc (start_menu): Change start menu name to "Cygwin".
1418 (check_startmenu): Ditto.
1420 2001-11-11 Christopher Faylor <cgf@redhat.com>
1422 * choose.cc (parse_filename): Finish reorganization by correctly
1423 decrementing p in memmove.
1425 2001-11-11 Christopher Faylor <cgf@redhat.com>
1427 * choose.cc (parse_filename): Reorganize code to work around gcc
1428 optimization problem.
1430 2001-11-09 Gareth Pearce <tilps@hotmail.com>
1432 * choose.cc (set_action): Allow skip as an option for installed
1433 packages that have version number not listed in setup.ini.
1435 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
1437 * choose.cc (set_cation): Backout last change.
1438 (choose_caption): Ditto.
1440 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
1442 * ini.h (actions): Remove - transferred to choose.h.
1444 * choose.h: Protect class's from "C" compilers.
1445 (actions): New enum, from ini.h. This may not be the 'right' place
1446 but that place doesn't exist yet.
1447 (_views): New enum, from ini.h.
1448 * choose.cc (set_action): Handle installed packages with a version not in
1450 (choose_caption): Ditto.
1451 * iniparse.y: Rearrange header order to handle new ini.h.
1453 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
1455 * ini.h (_Info): Fix compiler warnings (signed vs unsigned comparison).
1456 (registry_category): Fix compiler warning (deprecated conversion).
1457 * iniparse.y (registry_category): Ditto.
1458 * choose.cc (cvsid): Fix compiler warnings (unused, deprecated conversion).
1459 (add_requried): Remove unused variable.
1460 (choose_caption): Handle all enumeration values via a default.
1461 (paint): Fix compiler warnings (unused, deprecated conversion).
1462 (scroll_common): Fix compiler warnings (unused, signed vs unsigned comparison).
1463 (list_clicK): Fix compiler warnings (signed vs unsigned comparison).
1464 (note_width): Fix compiler warnings (deprecated conversion).
1465 (keep_or_skip): Fix compiler warnings (unused).
1466 (_view::mode_caption): Fix compiler warnings (deprecated conversion).
1467 (set_view_mode): Fix compiler warnings (unused).
1468 (create_listview): Fix compiler warnings (unused, incorrect format, reaches
1470 (dialog_proc): Fix compiler warnings (unused).
1471 (read_installed_db): Fix compiler warnings (unused, deprecated conversion).
1472 * choose.h (_header): Fix compiler warnings (deprecated conversion).
1475 2001-11-08 Pavel Tsekov <ptsekov@syntrex.com>
1477 * simpsock.h (SimpleSocket::invalidate): Declare new method.
1478 * simpsock.cc (SimpleSocket::invalidate): Implement new method.
1479 (SimpleSocket::SimpleSocket): Initialize buf to zero. Do not allocate
1480 memory for buf in the constructor.
1481 (SimpleSocket::~SimpleSocket): Use SimpleSocket::invalidate().
1482 (SimpleSocket::printf): Use SimpleSocket::write() instead of send().
1483 (SimpleSocket::write): Check object consistency - return -1 on error.
1484 invalidate() the object on socket write error.
1485 (SimpleSocket::fill): Check object consistency - return -1 on error.
1486 invalidate() the object if socket read error is encountered and there
1487 is no more data available in the internal read buffer.
1488 Allocate memory for the internal read buffer.
1489 (SimpleSocket::gets): Return zero (NULL pointer) if error is encountered
1490 during fill() and no more data is available in the internal read buffer.
1491 (SimpleSocket::read): Check object consistency - return -1 on error.
1492 invalidate() the object if socket read error is encountered.
1493 * nio-ftp.cc (NetIO_FTP:NetIO_FTP): Allow 125 as valid response code to
1494 the RETR command (fix for MS IIS ftp server 5 - possibly others too).
1495 (NetIO_FTP::ok): Check if the SimpleSocket object is ok().
1496 (NetIO_FTP::read): Use NetIO_FTP::ok().
1497 * nio-http.cc: Check for valid return value of SimpleSocket::gets().
1498 (NetIO_HTTP::ok): Check if the SimpleSocket object is ok().
1500 2001-11-09 Robert Collins <rbtcollins@hotmail.com>
1502 * simpsock.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
1503 (SimpleSocket::SimpleSocket): Avoid compiler warnings (deprecated conversion).
1504 (SimpleSocket::printf): Ditto.
1505 (SimpleSocket::write): Ditto.
1506 * simpsock.h (SimpleSocket): Avoid compiler warnings for constructor,
1508 * nio-ftp.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
1509 (NetIO_FTP::NetIO_FTP): Remove unused variable done.
1510 * nio-http.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
1512 2001-11-07 Charles Wilson <cwilson@ece.gatech.edu>
1514 * geturl.cc (get_url_to_string): clean up memory leak
1515 (get_url_to_file): ditto
1517 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
1519 * localdir.cc (dialog_cmd): Go back to IDD_ROOT in every case.
1520 * source.cc (dialog_cmd): Go forward to IDD_ROOT in every case.
1522 2001-11-06 Pavel Tsekov <ptsekov@syntrex.com>
1524 * fromcwd.cc (found_file): Free() memory containing the version and
1525 filepath information for a given package, before replacing the pointers which
1526 reference this memory.
1528 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
1530 * fromcwd: Fix compiler warnings for cvsid.
1531 (canonicalize_version): Fix compilter warnings.
1532 (do_fromcwd): Ditto.
1533 * version.h: Fix compiler warnings for canonicalize_version.
1535 2001-11-03 Robert Collins <rbtcollins@hotmail.com>
1537 * res.rc (IDD_CHOOSE): Move the view caption to the right hand side.
1539 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1541 * res.rc (IDD_CHOOSE): Tweak for use on a 640x480 screen.
1543 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1545 * choose.cc (set_action): Correctly allow skip for any uninstalled package.
1547 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1549 * choose.cc (default_trust): Change the "Required" forced install category to
1552 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1554 * choose.cc: Ran indent.
1555 (set_action): When the requested trust level is missing and the level was not
1556 user requested, set the action to ACTION_SAME_CURR.
1558 2001-11-01 Christopher Faylor <cgf@redhat.com>
1560 * Makefile.in (mingw_getopt.o): Fix typo in non-verbose compilation.
1562 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1564 * choose.cc (_view::init_headers): Resync with the paint logic.
1566 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1568 * choose.cc (add_required): Allow SKIP and SRC_ONLY for currently installed
1571 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1573 * choose.cc (default_trust): Autoset currently installed packages per the user's
1574 selection of prev/curr/exp.
1576 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1578 * splash.cc (dialog_proc): Return TRUE as specified in the WIN32 API.
1580 2001-11-02 Pavel Tsekov <ptsekov@syntrex.com>
1582 * geturl.cc (is_showing): Remove.
1583 (is_local_install): New static variable. Controls whether the
1584 progress dialog and the supporting thread will be created.
1585 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the WIN32 API.
1586 (init_dialog): Remove usage of SetForegroundWindow and is_showing.
1587 This prevents the progress dialog to gain control over the
1588 application and fixes the "setup.exe going to background" problem.
1589 (progress): Use is_local_install.
1590 (get_url_to_string): Set is_local_install.
1591 (dismiss_url_status_dialog): Use is_local_install.
1592 * install.cc (dialog_proc): Return TRUE as specified in WIN32 API.
1593 (init_dialog): Remove usage of SetForegroundWindow.
1594 This prevents the progress dialog to gain control over the
1595 application and fixes the "setup.exe going to background" problem.
1597 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1599 * choose.cc (list_click): Change r to row for clarity.
1600 When we shrink the list below 1 page, scroll to the top of the list.
1601 (_view::click): Return the actual change for contractions.
1602 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the Win32 API.
1604 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
1606 * choose.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
1607 * localdir.cc: Ran indent.
1608 (get_root_dir_now): New function.
1609 (save_local_dir): New function.
1610 (dialog_cmd): Use it and swap cygwin root selection and local dir selection order.
1611 (do_local_dir): If there is a saved local dir, read it in.
1612 * net.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
1613 * root.cc (dialog_cmd): Ditto.
1614 * source.cc (dialog_cmd): Ditto.
1616 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
1618 * choose.cc(list_vscroll): Return 0 as required by win32.
1619 (list_hscroll): Ditto.
1620 (list_click): Ditto.
1622 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
1626 * main.cc(WinMain): Use __argv to retrieve command line parameters.
1627 * Makefile,in: Remove argv.o.
1629 2001-11-01 Matt Hargett <matt@use.net>
1631 * geturl.cc (progress): Change int to unsigned int to eliminate
1633 * (get_url_to_string): Check for NULL pointer.
1634 * mount.cc (find2): Use free instead of delete for malloc'd
1636 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Fix memory leak.
1638 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
1640 * choose.cc(_view::insert_under): Handle linen > nlines and lines[linen] with neither
1641 a package nor a category. The lines[linen] bug was reported by Matt (matt@usa.net).
1642 (read_installed_db): Bugfix for testing whether a package has a source tarball.
1643 Reported by Matt (matt@usa.net).
1644 * geturl.cc(dialog): Rename gw_dialog to local_gw_dialog to avoid programmer
1645 confusion and lint errors. Reported by Matt (matt@usa.net).
1647 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
1649 * argv.cc: New file, converts arguments for -mwindows programs. (Simplified derivation
1652 * Makefile,in: Add argv.o and mingw_getopt.o to setup.exe object list.
1653 Add mingw_getopt.o build rule.
1654 * main.cc(WinMain): Initialise argv and argc for use by getopt.
1656 2001-10-27 Christopher Faylor <cgf@redhat.com>
1658 * res.rc: Rearrange info on top line slightly.
1660 2001-10-27 Christopher Faylor <cgf@redhat.com>
1662 * desktop.cc (make_passwd_group): Move file creation earlier in the
1663 process to ensure that passwd-grp.bat reflects desired operation.
1665 2001-27-10 Trevor Forbes <t4bs@hotmail.com>
1667 * postinstall.cc (each): Remove "*.done" file else rename will fail.
1669 2001-10-16 Christopher Faylor <cgf@redhat.com>
1671 * res.rc: Oops. Take 640x480 screen size into account.
1673 2001-10-16 Christopher Faylor <cgf@redhat.com>
1675 * res.rc: Enlarge chooser screen.
1677 2001-10-12 Christopher Faylor <cgf@redhat.com>
1679 * Makefile.in: Accomodate changes to w32api_include macro.
1681 2001-10-12 Christopher Faylor <cgf@redhat.com>
1683 * Makefile.in: Use correct flags for windres.
1685 2001-10-12 Christopher Faylor <cgf@redhat.com>
1687 * Makefile.in (CFLAGS): Remove -nostdinc from CFLAGS.
1689 2001-10-12 Christopher Faylor <cgf@redhat.com>
1691 * choose.cc (pick_line::paint): Reorganize after botched patch.
1693 2001-10-12 Christopher Faylor <cgf@redhat.com>
1695 * choose.cc (pick_line::paint): Add missing declaration.
1697 2001-10-10 Ralf Habacker <Ralf.Habacker@freenet.de>
1699 * choose.cc (pick_line::paint): Add package name to sdesc for display.
1701 Wed Sep 26 21:39:00 Robert Collins rbtcollins@hotmail.com
1703 * choose.cc (_view::insert_pkg): Correctly exit loop.
1704 * iniparse.y (register_category): Always insert new categories.
1706 Fri Sep 21 13:56:32 2001 Christopher Faylor <cgf@cygnus.com>
1708 * inilex.l (yylex): For comments, eat all characters up to, but not
1711 Sun Aug 26 12:50:01 2001 John Marshall <jmarshall@acm.org>
1713 * fromcwd.cc (found_file): Use correct package name when adding an
1714 unknown package rather than random stack garbage.
1716 Sun Aug 12 14:25:21 2001 Christopher Faylor <cgf@cygnus.com>
1718 * desktop.cc (make_passwd_group): .bat files need \r\n endings.
1720 Wed Aug 8 13:53:47 2001 Christopher Faylor <cgf@cygnus.com>
1722 * desktop.cc (etc_profile): Leave environment variables untouched.
1724 2001-08-07 Corinna Vinschen <corinna@vinschen.de>
1726 * autoload.c: Add dynamic load statements for NT/W2K
1727 advapi32 functions not available in 9x/ME.
1728 * main.cc (set_default_dacl): New function.
1729 (WinMain): Call `set_default_dacl' if running on NT/W2K.
1731 Sat Aug 4 21:35:53 2001 Christopher Faylor <cgf@cygnus.com>
1733 * ini.h (_CategoryPackage): Change pkg field to pkgname for
1735 * choose.cc: Use pkgname field when referencing _CategoryPackage
1737 (fill_missing_category): Don't add excluded packages.
1738 (default_trust): Ditto.
1739 (_view::insert_pkg): Ditto.
1740 * iniparse.y (register_category): Use consistent variable name.
1742 2001-07-09 Egor Duda <deo@logos-m.ru>
1744 * choose.cc: Use system foreground color for text output.
1746 Sat Jul 7 00:40:28 2001 Christopher Faylor <cgf@cygnus.com>
1748 * choose.cc (set_action): Use default trust for determining reinstall
1750 (default_trust): Set default trust.
1751 (pick_line::paint): Allow source selection when reinstalling or
1754 Fri Jul 6 18:08:49 2001 Christopher Faylor <cgf@cygnus.com>
1756 * choose.cc (isinstalled): Modify to properly accomodate special case
1758 (set_action): Check downloaded components, not installed components if
1760 (set_existence): Always include full list of files when "download
1763 Fri Jul 6 00:37:05 2001 Christopher Faylor <cgf@cygnus.com>
1765 * choose.cc (pick_line::paint): Properly display "na" field when no
1768 Thu Jul 5 00:34:23 2001 Christopher Faylor <cgf@cygnus.com>
1770 * choose.cc (scan2): Ensure that older versions do not show up in
1773 Mon Jul 2 15:47:59 2001 Christopher Faylor <cgf@cygnus.com>
1775 * choose.cc (set_action): Allow "Skip" action if trust != installed.
1776 * res.rc: Fix copyright.
1778 Sat Jun 30 14:05:21 2001 Michael A Chase <mchase@ix.netcom.com>
1780 * res.rc (IDD_LOCAL_DIR): Change caption to match the other dialog
1782 (IDD_CHOOSE): Adjust horizontal size so package names are visible.
1784 * choose.cc: Restore some more changes from 2001-06-25, throughout.
1785 (paint): Wrap some excessively long lines.
1786 (pick_line::paint): Ditto. Move the arrow in the "Current" column
1787 right to where it belongs. Move the source checkbox slightly to the
1789 (do_choose): List categories and required packages in setup.log.full.
1791 Sat Jun 30 23:04:59 2001 Christopher Faylor <cgf@cygnus.com>
1793 * choose.cc (scan2): Restore source scanning eliminated by previous checkin.
1795 Sat Jun 30 15:18:33 2001 Christopher Faylor <cgf@cygnus.com>
1797 * ini.h (struct _Info): Add "derived" element.
1798 * choose.cc (scan2): Try to place unknown tar files into proper slot
1799 when package exists in setup.ini but tar file does not.
1801 Sat Jun 30 13:39:00 2001 Robert Collins <rbtcollins@hotmail.com>
1803 * choose.cc (create_listview): Call set_view_mode with VIEW_CATEGORY.
1804 (do_choose): Log the first category name.
1806 Fri Jun 29 23:07:44 2001 Christopher Faylor <cgf@cygnus.com>
1808 *ini.h: Reapply 2001-06-25 changes.
1809 * choose.cc (add_required): Ditto. Default to "Keep" state if
1810 UNINSTALL and product is installed. Default to curr state if SKIP,
1812 (keep_or_skip): New function. Returns skip or keep state depending on
1813 installed state of package.
1814 (default_trust): Use keep_or_skip to set state.
1815 (_view::insert_pkg): Use calloc to allocate lines.
1816 (set_view_mode): Adapt 2001-06-25 change to set_full_list here.
1818 Sat Jun 30 11:01:00 2001 Robert Collins <rbtcollins@hotmail.com>
1820 * choose.cc: Remove globals full_list, headers, package_indexes and
1822 Add globals cat_headers, pkg_headers and chooser.
1823 (add_required): New function.
1824 (paint): Use the chooser for header details.
1825 Call into the chooser to paint each line.
1826 (list_click): Use new global variables.
1827 Call into the chooser to handle the click.
1828 Repaint the entire view if packages have been added or removed.
1829 (note_width): Get passed a headers struct rather than using a global
1831 (fill_missing_category): New function.
1832 (default_trust): Skip non-"Required" or "Misc" packages.
1833 (pick_line::set_line (Package *)): New function.
1834 (pick_line::set_line (Category *)): New function.
1835 (pick_line::paint): New function.
1836 (pick_line::click): New function.
1837 (_view::_view): New function.
1838 (_view::set_view_mode): New function.
1839 (_view::mode_caption): New function.
1840 (_view::set_headers): New function.
1841 (_view::init_header): New function.
1842 (_view::insert_pkg): New function.
1843 (_view::insert_category): New function.
1844 (_view::insert_at): New function.
1845 (_view::insert_under): New function.
1846 (_view::clear_view): New function.
1847 (viewsplusplus): New function.
1848 (_view::client): New function.
1849 (set_view_mode): Use new chooser functionality.
1850 (set_full_list): Use new global variables.
1851 (create_listview): Instantiate chooser.
1852 Remove all hardcoded headers[] code.
1853 (dialog_cmd): On trust changes, check dependencies.
1854 (getcategorybyname): New function.
1855 (getpackagecategorybyname): New function.
1856 (scan2): Use case-insensitive package comparison.
1857 (do_choose): Use fill_missing_category ().
1858 Show some category data.
1859 * ini.h: Protect against multiple inclusion.
1861 (_CategoryPackage): New struct.
1862 (_Category): New struct.
1863 (_Package): Change category to Category * from char *.
1864 (extern Category category): New global variable.
1865 (extern in ncategories): Ditto.
1866 (getcategorybyname): New prototype.
1867 (catpackagecategorybyname): New prototype.
1868 (register_category): New prototype.
1869 (add_category): New prototype.
1870 * iniparse.y: Parse multiple categories per package.
1871 (category): New global variable.
1872 (ncategories): New global variable.
1873 (new_package): Compare package against NULL, not 0.
1874 (new_requirement): Source formatting fix.
1875 (register_category): New function.
1876 (add_category): New function.
1877 * res.rc: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
1878 IDC_CHOOSE_VIEWCAPTION: New control.
1879 * resource.h: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
1880 IDC_CHOOSE_VIEWCAPTION: New control.
1881 Increment _APS_NEXT_CONTROL_VALUE.
1883 Mon Jun 25 00:56:37 2001 Michael A Chase <mchase@ix.netcom.com>
1885 * choose.cc (paint): Wrap excessively long lines.
1886 (list_click): Ditto.
1887 (create_listview): Ditto.
1888 (do_choose): Ditto. Replace TABs and remove CRs in lines written to
1889 setup.log.full. Allow "Yes" for source exists in setup.log.full when
1890 installing from local directories.
1892 Mon Jun 25 00:56:37 2001 Christopher Faylor <cgf@cygnus.com>
1894 * choose.cc (set_action): Only clear srcpicked when moving to next
1895 state. Allow source installation if it exists in the current "trust"
1896 state. Don't move to skip state when package is installed.
1897 (list_click): Don't allow source clicking when no source is available.
1898 (set_full_list): Display package when not is_full_action.
1899 * ini.h (is_full_action): Define.
1901 Sun Jun 17 12:06:14 2001 Christopher Faylor <cgf@cygnus.com>
1903 * install.cc (check_for_old_cygwin): New function. First stab at
1904 checking for old cygwin versions.
1905 (do_install): Call check_for_old_cygwin if there were no errors during
1908 Sat Jun 16 11:33:51 2001 Michael A Chase <mchase@ix.netcom.com>
1910 * choose.cc (_Info::_Info): Test _source paramenter for non-NULL rather
1911 than zeroed "source" element.
1913 Fri Jun 15 20:54:43 2001 Christopher Faylor <cgf@cygnus.com>
1915 * choose.cc (scan2): Insert unknown tar archives, found on disk, into
1916 the highest available "hole" in the trust array.
1918 Fri Jun 15 00:20:48 2001 Christopher Faylor <cgf@cygnus.com>
1920 * choose.cc (set_existence): Use pointer method for indexing in trust
1922 (create_listview): Ditto.
1923 (scan2): Ditto. Also, use consistent variable name for indexing into
1925 * ini.h (Package): Reorganize info array for easier scanning.
1927 Fri Jun 15 00:01:51 2001 Christopher Faylor <cgf@cygnus.com>
1929 * choose.cc (isinstalled): Eliminate special download only test.
1930 (set_action): Don't move to next state if in ACTION_SAME range and not
1932 (choose_caption): Display "Retrieve" rather than "Reinstall" when just
1934 (do_choose): Sort packages after all packages have been read.
1935 Accomodate the fact that first element in trust array is empty so that
1936 log files don't report the wrong trust value.
1937 * iniparse.y (new_package): Malloc space for package name or suffer
1940 Thu Jun 14 22:43:59 2001 Robert Collins <rbtcollins@hotmail.com>
1942 * ini.h (Dependency): New structure. Declare new function.
1943 * inilex.l (yylex): Detect new setup.ini options - category and requires.
1944 * iniparse.y: Declare new setup.ini token values.
1945 (yyparse): Parse new token values.
1946 (new_requirement): New function.
1948 Thu Jun 14 22:43:26 2001 Christopher Faylor <cgf@cygnus.com>
1950 * choose.cc (read_installed_db): Eliminate obsolete code.
1952 Thu Jun 14 22:11:53 2001 Christopher Faylor <cgf@cygnus.com>
1954 * choose.cc (set_action): Set trust on "redo".
1955 (_Info::_Info): New constructor.
1956 (read_installed_db): Use new constructor. Use trusts type for
1958 * ini.h (struct _Info): Label struct, add constructor.
1959 (Package): Make installed_ix a type 'trusts.'
1960 * install.cc (uninstall_one): Unset any installed info for current
1962 (install_one): Allocate new Info struct for installed reflecting new
1964 (do_install): Don't output line to installed.db if package is being
1967 Thu Jun 14 20:33:01 2001 Robert Collins <rbtcollins@hotmail.com>
1969 * choose.cc (getpkgbyname): Use consistent method for scanning package
1972 Wed Jun 13 23:33:08 2001 Christopher Faylor <cgf@cygnus.com>
1974 * choose.cc: Add some comments.
1975 (getpkgbyname): Use strcasecmp for comparisons.
1977 Wed Jun 13 16:07:00 2001 Christopher Faylor <cgf@cygnus.com>
1979 * install.cc (do_install): Avoid checking for download action if
1980 package wasn't currently retrieved.
1982 Wed Jun 13 11:27:22 2001 Christopher Faylor <cgf@cygnus.com>
1984 * choose.cc: Eliminate extra array throughout. Use element in package
1985 structure instead. Use pointers rather than array indexes where
1987 (set_action): New function to set next action based on current.
1988 (choose_caption): New function. Returns display caption.
1989 (check_existence): Change arguments. Use pointer to 'info' structure.
1990 (set_existence): Use pointer rather than array index.
1991 (default_trust): Use trusts enum for second argument.
1992 (set_full_list): Honor exclude element in package structure.
1993 (build_labels): Eliminate.
1994 (base): Make global. Use const char * argument.
1995 (get_package_version): Eliminate.
1996 (getpkgbyname): New function.
1997 (read_installed_db): Use parse_filename to get version info.
1998 * desktop.cc (make_passwd_group): Use getpkgbyname function.
1999 * download.cc (get_file_size): const argument.
2000 (do_download): Use is_download_action to determine when something
2001 should be downloaded.
2002 * filemanip.h: Add some functions.
2003 * ini.cc (do_ini): Use NULL rather than 0 for pointer assignment.
2004 * ini.h: Use enums for actions and trusts.
2005 (is_download_action): New macro.
2006 (is_upgrade_action): Ditto.
2007 (is_uninstall_action): Ditto.
2008 (struct Package): Add new fields.
2009 * inilex.l (yylex): Detect new setup.ini options.
2010 * iniparse.y: Declare new tokens.
2011 (yyparse): Detect exclude keyword. Fill out version field even if
2013 (new_package): Use greater granularity when allocating package array to
2014 avoid repeated calls to realloc.
2015 * install.cc (exists): const argument.
2016 (uninstall_one): Take pkg argument.
2017 (install_one): Ditto. Eliminate unneeded arguments which can be
2018 derived from package info.
2019 (do_install): Iterate over package array using a pointer. Use
2020 is_download_action to control when package should be downloaded.
2021 * tar.cc (tar_open): const argument.
2022 * tar.h: Refloect const argument.
2024 2001-05-31 Michael Chase mchase@ix.netcom.com
2026 * main.cc (WinMain): Add setup version to starting setup.log entry
2028 Tue May 29 21:37:58 2001 Yukihiko Sohda <sohda@is.titech.ac.jp>
2030 * inilex.l: Add + to list of valid string characters.
2032 Mon May 28 20:54:50 2001 Christopher Faylor <cgf@cygnus.com>
2034 * Makefile.in: Remove more stuff in the clean target.
2036 Mon May 28 18:24:59 2001 Christopher Faylor <cgf@cygnus.com>
2038 * Makefile.in: Correctly generate iniparse.h.
2040 Tue Mar 6 19:14:00 2001 Corinna Vinschen <corinna@vinschen.de>
2042 * geturl.cc (get_url_to_file): Add parameter `allow_ftp_auth'.
2043 * geturl.h: Change declaration of `get_url_to_file' accordingly.
2044 * netio.cc (NetIO::NetIO): Add parameter `allow_ftp_auth'.
2045 Set member `ftp_auth'.
2046 (NetIO::open): Add parameter `allow_ftp_auth'. Use it in calls
2047 to constructors of derived classes.
2048 (NetIO::get_ftp_auth): New method.
2049 * netio.h: Change class definition accordingly.
2050 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Add parameter `allow_ftp_auth'.
2051 Take global variables `net_ftp_user' and `net_ftp_passwd' into account.
2052 Add code for ftp authentication retry.
2053 * nio-ftp.h: Change class definition accordingly.
2054 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Add parameter `allow_ftp_auth'.
2055 Add code for ftp authentication retry in case of proxy connection.
2056 * nio-http.h: Change class definition accordingly.
2057 * res.rc: Add FTP authentication dialog.
2058 * resource.h: Add new constants used in res.rc.
2059 * state.h: Add variables `net_ftp_user' and `net_ftp_passwd'.
2061 Sun May 27 17:12:23 2001 Christopher Faylor <cgf@cygnus.com>
2063 * res.rc (IDD_SPLASH): Add a copyright year.
2065 Sun May 27 15:42:18 2001 Christopher Faylor <cgf@cygnus.com>
2067 * Makefile.in: Make iniparse.y produce a c++ file.
2068 * choose.cc (set_existence): Revert 2001-05-27 change.
2069 * ini.cc: Remove "C" from declaration of yyparse.
2070 * iniparse.y (yyparse): Fill out version field by default when a binary
2071 install is detected and no version has been set yet.
2072 * install.cc (do_install): Mount things earlier so that we can use
2073 proper mount table settings. Don't remove mounts since they are now
2075 * mount.cc (create_mount): Reread the mount table after establishing a
2077 (read_mounts): Explicitly clear root_here to allow multiple uses of
2078 this function. Ensure that there is no garbage in the table when we've
2079 exhausted all of the mounts in the registry.
2080 (cygpath): Accomodate ./ in path.
2082 Sun May 27 02:59:07 2001 Christopher Faylor <cgf@cygnus.com>
2084 Use parse_filename method to parse filenames throughout. Use
2085 get_root_dir to retrieve the current root directory throughout. Set
2086 const in argument list, where appropriate, throughout.
2087 * choose.cc (set_existence): Detect case of uninstalled package with no
2089 (parse_filename): New function.
2090 * filemanip.h (fileparse): New structure.
2091 * mount.cc (read_mounts): Remember where we found the root mount.
2092 (set_root_dir): New function.
2093 (get_root_dir): Ditto.
2094 * mount.h: Declare new functions.
2095 * site.cc (get_root_dir_now): Renamed from get_root_dir.
2096 (save_site_url): Use new function name.
2097 (get_initial_list_idx): Ditto.
2099 Sat May 26 21:23:59 2001 Christopher Faylor <cgf@cygnus.com>
2101 * choose.cc: Use a constant throughout to deal with chooser icon
2103 * res.rc (IDD_CHOOSE): Increase size of chooser box.
2105 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
2107 * choose.cc (do_choose): Fix incorrect assignment of trust setting to
2108 use when Redownload or Sources Only selected.
2110 Thu May 10 22:35:59 2001 Christopher Faylor <cgf@cygnus.com>
2112 Reformat file after botched patch formatting.
2113 * choose.cc (which_trust): Eliminate variable.
2114 (default_trust): Don't set which_trust.
2115 (do_choose): Use selected trust when reinstalling or installing source.
2117 Thu May 10 21:04:18 2001 Christopher Faylor <cgf@cygnus.com>
2119 Change concat to cygpath throughout.
2120 Change map_filename to cygpath throughout.
2121 * concat.cc (vconcat): New function.
2122 (concat): Use vconcat.
2123 * concat.h: Reflect above.
2124 * install.cc (map_filename): Eliminate.
2125 (install_one): Free dest_file.
2126 * mount.cc (find2): Expect input key to be pointing to mount record.
2127 (in_table): New function.
2128 (is_admin): Move from root.cc.
2129 (read_mounts): New function.
2130 (path_prefix_p): New function.
2131 (cygpath): New function.
2132 * mount.h: Define new functions and structure.
2133 * root.cc (in_table): Move to mount.cc.
2134 (do_root): Call read_mounts to initialize root stuff and mount table.
2135 * site.cc (get_root_dir): Ditto.
2137 2001-05-09 Matt Hargett <matt@use.net>
2139 * Makefile.in: Remove *.rc from clean.
2141 Tue May 8 23:33:38 2001 Christopher Faylor <cgf@cygnus.com>
2143 * choose.cc (scan2): Fix incorrect setting of TRUST_CURR rather than
2144 TRUST_PREV which produced "0" versions.
2146 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
2148 * resource.h: Add new field IDC_CHOOSE_INST_TEXT. Modify
2149 _APS_NEXT_CONTROL_VALUE to account for addition of
2150 IDC_CHOOSE_INST_TEXT.
2151 * res.rc (IDD_CHOOSE): Modify choose dialog to use new field
2152 IDC_CHOOSE_INST_TEXT for screen text. Modify choose Dialog to allow
2153 hot keys to select Prev, Curr, Exp.
2154 * ini.h: Add new actions for ACTION_REDO and ACTION_SRC_ONLY. Modify
2155 define for LOOP_PACKAGES to include new actions ACTION_REDO and
2157 * choose.cc: Add new Trusts for TRUST_REDO and TRUST_SRC_ONLY.
2158 (paint): Modify to check TRUST_SRC_ONLY when determining Bitmap for
2159 source Checkbox to use.
2160 (build_labels): Add logic to allow for selection of Source only
2161 Download/ReDownload/Install/Reinstall and also to Redownload/Reinstall
2162 current version binary.
2163 (dialog_proc): Add conditional display for file selection prompt based
2164 on download vs install using IDC_CHOOSE_INST_TEXT.
2165 (do_choose): Add new logic for TRUST_REDO and TRUST_SRC_ONLY selection
2166 and modify logic for TRUST_UNINSTALL, TRUST_KEEP, and TRUST_NONE to
2167 handle the instance where Source Download/Install was selected. Modify
2168 log file to store appropriate information regarding Action selected and
2169 the new actions that were added (I.E.: ACTION_REDO and
2171 * download.cc: Add include for <unistd.h> and "port.h".
2172 (download_one): Modify parameter list to include the selected action
2173 for the file to be downloaded. Modify size check against expected size
2174 to include check for ACTION_REDO and ACTION_SRC_ONLY. Modify rename of
2175 .tmp file to also remove the destination file if exists due to ability
2176 to redownload source and binary now.
2177 (do_download): Modify to also use ACTION_REDO and ACTION_SRC_ONLY in
2178 calculation of Download Bytes. Modify to also use ACTION_REDO and
2179 ACTION_SRC_ONLY in determining files selected for download.
2180 * install.cc (uninstall_one): Add check to treat a Reinstall like an
2181 upgrade so current version will be uninstalled prior to reinstall.
2182 (do_install): Add logic to handle ACTION_REDO and ACTION_SRC_ONLY for
2183 uninstalling and installing binary and source packages.
2184 * desktop.cc (make_passwd_group): Modify logic to account for a Source
2185 only cygwin install when checking for cygwin to determine need for
2186 mkpasswd and mkgroup.
2188 Mon May 7 23:33:30 2001 Matt Hargett <matt@use.net>
2190 * winsup/cinstall/res.rc: Added accelerators and improved focus order.
2191 Removed WS_DISABLED from "OK" buttons to accomodate default focus
2192 changes in net.cc and source.cc.
2193 * winsup/cinstall/net.cc (dialog_proc): If no radio button is selected,
2194 a default is selected.
2195 * winsup/cinstall/source.cc (dialog_proc): Ditto.
2196 (check_if_enable_next): Removed. No longer needed since a radio button
2197 will always be selected.
2198 (load_dialog): Removed call to check_if_enable_next.
2199 (dialog_cmd): Ditto. Also added default to switch.
2201 Tue Apr 24 23:42:02 2001 Christopher Faylor <cgf@cygnus.com>
2203 * res.rc: Resize affected text.
2205 Tue Apr 24 23:35:31 2001 Christopher Faylor <cgf@cygnus.com>
2207 * net.cc (do_net): Default to direct download.
2208 * res.rc: Move default selections to the top.
2210 2001-04-18 Earnie Boyd <earnie@users.sourceforge.net>
2212 * win32.h: Remove the definitions for _UNION_NAME and _STRUCT_NAME.
2213 Must now include <windows.h> and not the pieces.
2214 * choose.cc (create_listview): Clean up type mismatch problems.
2215 * dialog.h (NEXT(id)): Ditto.
2216 * geturl.cc (dialog): Ditto.
2217 * install.cc (dialog): Ditto.
2218 * splash.cc (load_dialog): Ditto.
2220 Wed Apr 18 18:59:21 2001 Christopher Faylor <cgf@cygnus.com>
2222 * tar.cc (class gzbz): Define dummy virtual functions.
2224 Wed Apr 18 16:01:21 2001 Christopher Faylor <cgf@cygnus.com>
2226 * Makefile.in: Add bz2 include/library support.
2227 * filemanip.h: New file.
2228 * choose.cc (find_tar_ext): New function. Returns TRUE if .tar.gz or
2230 (scan2): Reorganize to use find_tar_ext, accomodating .bz2 extension.
2231 (read_installed_db): Ditto.
2233 * fromcwd.cc (found_file): Ditto.
2234 (do_fromcwd): Ditto.
2235 * tar.cc (class gzbz): New super class for uncompression support.
2236 (gz): New class for gzip support.
2237 (bz): New class for bzip2 support.
2238 (tar_open): Use gzbz class to control file opening.
2239 (tar_ftell): Ditto for returning position in file.
2240 (skip_file): Ditto for reading file.
2241 (tar_next_file): Ditto.
2242 (tar_read_file): Ditto.
2243 (tar_close): Ditto for close.
2245 * zlib/configure.in: Force NM substitution.
2247 * source.cc (do_source): Default to "Install from Internet".
2249 2001-03-16 Brian Keener <bkeener@thesoftwaresource.com>
2251 * nio-file.cc (NetIO_File::NetIO_File): Use `get_file_size' instead of
2253 * choose.cc (list_click): Correct inability to select source code for
2255 (scan2): Modify to skip source tarballs when scanning disk for
2256 installable packages.
2258 2001-03-10 Chris Abbey <chris_abbey@yahoo.com>
2260 * install.cc: install sources into /usr/src instead
2261 of /, also include the sizes of source tarballs
2263 * download.cc: include sizes of source tarballs in
2264 total_download_bytes.
2266 Tue Mar 6 19:31:00 2000 Corinna Vinschen <corinna@vinschen.com>
2268 * download.cc (get_file_size): Remove `static'.
2270 Tue Mar 6 19:11:00 2000 Corinna Vinschen <corinna@vinschen.com>
2272 * tar.cc (tar_open): Use `get_file_size' instead of `stat'.
2274 2001-03-06 Brian Keener <bkeener@thesoftwaresource.com>
2276 * choose.cc (paint): Modify message for nothing to download vs
2277 nothing to install/update based on installation method.
2278 (list_click): Modify to skip versions in selection process if
2279 installing from local directory and installation file does not exist.
2280 Also leaves Source Action set to N/A if the source file does not exist
2281 and installing from local directory.
2282 (check_existence): New method to check current existence of installation
2283 files based on selected installation method.
2284 (set_existence): New method to set the current existence of installation
2285 files based on selected installation method.
2286 (best_trust): Modify decision process for best trust to base decision on
2287 current trust selected (IE: Prev, Curr, or Test), existence of file and
2288 installation method selected.
2289 (default_trust): Add logic to capture the current trust level and the
2290 trust selected for the given package.
2291 (set_full_list): Expand decision criteria for displaying a package in
2292 the selection list to include file existence/non-existence and selected
2293 installation method.
2294 (build_labels): Modify criteria for label addition to include
2295 installation method and file existence/non-existence.
2296 (create_listview): Modify to establish package trust level for each
2297 package before setting up the display list. Also modification to set
2298 current trust button as the default.
2299 (dialog_cmd): Set response for Prev, Curr, Test button push to perform
2300 a reset of the selection list in addition to setting the default trust.
2301 (get_package_version): New method to provide reusable code for
2302 determining the package version from the file name for a specified
2304 (scan2): Modify to use new method get_package_version and
2305 also enhance handling of the build for the structures package and
2307 (read_installed_db): Modify to use the new method
2308 get_package_version and also enhance handling of the build for the
2309 structures package and extra.
2310 (do_choose): Add additional initialization of package and extra
2311 structures. Modify to use read_installed_db all the time despite
2312 install method. Modify output to setup.log.full log file to increase
2313 readability by adding additional spacing, expanded code and available
2315 * ini.h: Add new fields install_exists, source_exists and
2316 partial_list_display to the structure definition for package.
2317 * res.rc (IDD_CHOOSE): Modify choose dialog Prev, Curr, and Test
2318 pushbuttons by replacing with Radio Buttons thus allowing the
2319 operator to better determine which is selected.
2321 2001-02-20 Brian Keener <bkeener@thesoftwaresource.com>
2323 * download.cc (do_download): Add new variables total_download_bytes and
2324 total_download_bytes_sofar for download progress meter. Add loop
2325 to accumulate the total bytes to download from the selected packages.
2326 * geturl.cc: Add state.h and diskfull.h to include list. Add new
2327 variables gw_iprogress, gw_pprogress, gw_progress_text,
2328 gw_pprogress_text, and gw_iprogress_text to allow for addition of
2329 total packages download progress meter and disk full percent
2330 progress meter. Add variables total_download_bytes and
2331 total_download_bytes_sofar for use by progress meters.
2332 (dialog_proc): Add new variables gw_iprogress, gw_pprogress,
2333 gw_progress_text, gw_pprogress_text, and gw_iprogress_text to
2334 allow for addition of total packages download progress meter and disk
2335 full percent progress meter.
2336 (init_dialog): Ditto.
2338 (get_url_to_file): Ditto.
2339 * geturl.h: Add external definition for total_download_bytes and
2340 total_download_bytes_sofar.
2341 * res.rc: Add two additional progress meters (IDC_DLS_IPROGRESS)
2342 and (IDC_DLS_PPROGRESS) and three text objects (IDC_DLS_PROGRESS_TEXT)
2343 and (IDC_DLS_IPROGRESS_TEXT, IDC_DLS_PPROGRESS_TEXT) for use in the
2345 * resource.h: Add new fields for progress meters and text and update
2346 _APS_NEXT_CONTROL_VALUE.
2348 Wed Feb 21 13:05:00 2000 Corinna Vinschen <vinschen@redhat.com>
2350 * download.cc (get_file_size): Check for INVALID_HANDLE_VALUE instead
2353 Wed Feb 21 11:21:00 2000 Corinna Vinschen <vinschen@redhat.com>
2355 * download.cc (download_one): Add missing parenthesis.
2357 Mon Feb 19 18:59:00 2000 Corinna Vinschen <vinschen@redhat.com>
2359 * download.cc (get_file_size): New function. Eliminates the need
2361 (download_one): Call `get_file_size' instead of `stat'. This
2362 workarounds a problem with mingw's `stat' call.
2364 2001-02-07 Earnie Boyd <earnie@users.sourceforge.net>
2366 * Makefile.in: (%.o: %.rc): Specify --include-dir $(w32api_include).
2367 This is to allow cinstall to build with 2.95.2-7 and to make the
2368 use of headers consistent.
2370 2000-12-26 Earnie Boyd <earnie_boyd@yahoo.com>
2372 * Makefile.in (autoload.o): Add target to specify -fno-inline-functions
2374 Tue Dec 26 03:46:00 2000 Matt Hargett <matt@use.net>
2376 * winsup/cinstall/res.rc: Added accelerators and improved focus
2379 2000-12-10 Egor Duda <deo@logos-m.ru>
2381 * choose.cc (paint): Use system background color for text output.
2383 Sun Dec 10 19:05:25 2000 Christopher Faylor <cgf@cygnus.com>
2385 * Makefile.in: Use CXX for linking and for compiling .cc files.
2386 * configure.in: Find correct c++ compiler.
2387 * configure: Regenerate.
2389 2000-11-17 DJ Delorie <dj@redhat.com>
2391 * splash.cc (load_dialog): Make message more obvious.
2394 Fri Nov 17 17:15:21 2000 Christopher Faylor <cgf@cygnus.com>
2396 * Makefile.in: Use g++ to link so that libstdc++.a gets used. This is
2397 necessary for newer compilers.
2399 Wed Nov 9 2:19:00 2000 Corinna Vinschen <vinschen@redhat.com>
2401 * desktop.cc: Include "ini.h" and "version.h".
2402 (make_passwd_group): Skip the function on 9x/ME boxes when an
2403 older version of Cygwin has been installed which doesn't
2404 support mkpasswd/mkgroup on 9x/ME.
2405 * install.cc: Move the `LOOP_PACKAGES' and `pi' macros to...
2408 Wed Nov 8 17:10:00 2000 Corinna Vinschen <vinschen@redhat.com>
2410 * desktop.cc (make_passwd_group): Don't exit when started
2411 on 9x/ME since mkpasswd/mkgroup are usable on 9x/ME now.
2413 Sun Nov 5 12:51:42 2000 Jason Tishler <jt@dothill.com>
2415 * install.cc (do_install): Add call to set_cygdrive_flags to sync
2417 * mount.cc (set_cygdrive_flags): New function.
2418 (get_cygdrive_flags): Ditto.
2419 (default_cygdrive): Ditto.
2420 (set_cygdrive_flags): Ditto.
2421 * mount.h: Add prototype for set_cygdrive_flags.
2423 2000-10-23 DJ Delorie <dj@redhat.com>
2425 * ini.h: add source actions
2426 * fromcwd.cc: check for available sources
2427 * res.rc: add checkbox bitmaps
2430 * choose.cc: add source column
2431 * download.cc: download sources if called for
2432 * install.cc: [un]install sources too
2434 2000-10-22 DJ Delorie <dj@redhat.com>
2436 * choose.cc (build_labels): Don't skip TRUST_PREV completely; only
2437 ignore it wrt full_list if there's already a version installed.
2438 (do_choose): Sort the list.
2439 (package_sort): New.
2441 2000-10-12 DJ Delorie <dj@redhat.com>
2443 * res.rc: Add more error strings.
2444 * resource.h: Ditto.
2445 * iniparse.y (new_package): re-initialize if needed.
2446 * download.cc (do_download): Keep track of errors; notify and
2448 * install.cc (do_install): Ditto.
2450 2000-10-05 DJ Delorie <dj@redhat.com>
2452 * Makefile.in: fix %.cc rule
2454 2000-10-04 DJ Delorie <dj@redhat.com>
2456 * desktop.cc: quote HOME and USER, don't . ./.profile
2458 * choose.cc (build_labels): don't include in partial list just
2459 because there's a *previous* version available.
2461 * install.cc (do_install): if installing from local directory with
2462 setup.ini and the file isn't found, look in "." also. Note errors.
2464 2000-10-02 DJ Delorie <dj@redhat.com>
2466 * ini.cc (do_ini): save setup.ini locally
2468 2000-10-02 Chris Abbey <cabbey@bresnanlink.net>
2470 * desktop.cc: quote escapes in prompt
2472 2000-10-02 Jason Tishler <jt@dothill.com>
2474 * root.cc (is_admin): New function.
2475 (read_mount_table): Check for administrative priviledges and set
2476 installation scope as appropriate.
2478 2000-09-28 DJ Delorie <dj@redhat.com>
2480 * nio-ftp.cc (ftp_line): handle continuations more robustly
2482 2000-09-14 Brian Keener <bkeener@thesoftwaresource.com>
2484 * res.rc: increased the size of the site dialog (IDD_SITE) & the
2485 corresponding list box to provide for more URL's to be listed.
2486 Modified the position of the Back, Next and Cancel buttons to
2487 correspond to the new size of the dialog.
2489 2000-09-13 DJ Delorie <dj@redhat.com>
2491 * install.cc (do_install): update disk fullness once per package
2492 to improve performance
2494 * choose.cc (create_listview): call ReleaseDC
2496 Mon Sep 11 22:40 2000 Harold L Hunt II <harold@compasstechnologies.com>
2498 * mkdir.cc: Create directories when ERROR_FILE_NOT_FOUND is
2499 returned, as it seems Samba 2.0.6+ returns this instead of
2500 ERROR_PATH_NOT_FOUND
2502 Mon Sep 11 19:35:24 2000 Christopher Faylor <cgf@cygnus.com>
2504 * site.cc (get_initial_list_idx): Don't default to saved URL if it
2507 2000-09-07 DJ Delorie <dj@redhat.com>
2509 * splash.cc: use version.h, not local decl
2510 * res.rc: add "old version" message
2513 * fromcwd.cc (canonicalize_version): make global
2514 * iniparse.y: add setup-version support, fix bug in blank line
2517 * inilex.l: add [exp] as alias for [test], add setup-version
2518 * Makefile.in (version.c): add setup-version tag
2520 * desktop.cc (do_desktop): remove 1.1 version number
2521 (do_desktop_setup): ditto
2523 * ini.cc (do_ini): zero out package list just in case we redo it.
2525 2000-09-07 Jeffrey Juliano <juliano@cs.unc.edu>
2527 * choose.cc (list_click): Check for nindexes==0; if so, return.
2529 2000-09-06 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
2531 * localdir.cc: new, local package directory selection dialog; cd
2532 into selected directory
2533 * Makefile.in (OBJS): add localdir.o
2534 * dialog.h: add prototype for do_local_dir
2535 * main.cc (WinMain): initialize local_dir to cwd; add call to
2537 * net.cc (dialog_cmd): make DO_LOCAL_DIR next dialog
2538 * source.cc (dialog_cmd): ditto
2539 * res.rc: add DO_LOCAL_DIR dialog; remove "current directory" from
2540 presented choices in IDD_SOURCE; add IDS_ERR_CHDIR error string
2541 * resource.h: defines for DO_LOCAL_DIR dialog; define IDS_ERR_CHDIR
2542 * root.cc (dialog_cmd): make DO_LOCAL_DIR previous dialog
2543 * state.h: add local_dir variable
2545 2000-09-06 Brian Keener <bkeener@thesoftwaresource.com>
2547 * desktop.cc: added logic to handle to the new dialog and to
2548 default the setting for the new checkboxes based on whether the
2549 desktop icon or start menu link already exist.
2550 (desktop_icon): correction to desktop directories for desktop icon
2551 creation. Additional logic added for Win95 which does not appear
2552 to have Common Directories so if Common selected and null uses
2554 (start_menu): Additional logic added for Win95 which does not
2555 appear to have Common Directories so if Common selected and null
2556 uses normal directory.
2557 (do_desktop_setup): moved the saving of the icon, creation of the
2558 bat file, profile, passwd, Start Menu link and desktop shortcut to
2559 this method from do_desktop. Made the creation of the desktop
2560 icon and start menu link conditional on settings of new dialog
2561 created for desktop.
2562 * install.cc (do_install): changed next from IDD_S_DESKTOP to
2564 * main.cc (WinMain): changed case IDD_S_DESKTOP to IDD_DESKTOP.
2565 * res.rc: added new resource to create a desktop dialog with 2
2566 checkboxes for creating the desktop icon and start menu link.
2567 * resource.h: changed IDD_S_DESKTOP to IDD_DESKTOP and added two
2568 new controls: IDC_ROOT_MENU and IDC_ROOT_DESKTOP for new dialog.
2569 * state.h: added root_menu and root_desktop for use in dialog.
2571 2000-08-29 DJ Delorie <dj@redhat.com>
2573 * choose.cc (scan_downloaded_files): scan for existing files, so
2574 that the user only sees new downloads.
2576 * nio-ie5.cc (NetIO_IE5): pre-check for wininet.dll, enable dial-up
2577 * site.cc (do_site): if we can't download the mirror list, go back
2578 to the net setup box to choose another transport.
2579 * autoload.c: add more functions
2580 * Makefile.in (ALL_DEP_LDLIBS): remove wininet.a
2581 * resource.h: add WININET message
2583 * net.cc (do_net): no longer default to IE5
2584 * simpsock.h (class SimpleSocket): new, simplify socket operations
2585 * simpsock.cc: ditto
2586 * nio-http.h: new, for direct http protocol
2587 * nio-http.cc: ditto
2588 * nio-ftp.h: new, for direct http protocol
2590 * netio.cc (set_url): move initialization here to handle redirections
2591 (open): add direct http/ftp
2592 * netio.h (NetIO::set_url): new
2594 * log.cc (log_save): create directory for log if needed
2596 * hash.cc, hash.h: new
2597 * Makefile: add hash.o
2598 * choose.cc: enable "uninstall" option
2599 * download.cc: invert action test to accomodate uninstalling
2600 * ini.h: add ACTION_UNINSTALL
2601 * install.cc: add uninstall functionality
2602 * res.rc: make install tag changeable
2603 * resource.h: add uninstall resources
2605 * res.rc: update mirror list URL
2607 2000-08-24 DJ Delorie <dj@redhat.com>
2609 * log.cc, log.h: new files
2610 * Makefile.in (OBJS): add log.o
2611 * tar.cc: use exit_setup instead of exit
2612 * dialog.cc (fatal): use exit_setup instead of ExitProcess
2613 * msg.cc (fatal): ditto
2614 * install.cc (dialog_cmd): ditto
2615 * ini.cc (do_ini): ditto
2616 * main.cc (main): add logging
2617 * source.cc (do_source): ditto
2618 * root.cc (do_source): ditto
2619 * site.cc (do_site): ditto
2620 * other.cc (do_other): ditto
2621 * net.cc (do_net): ditto
2622 * choose.cc (do_choose): ditto
2623 * download.cc (do_download): ditto
2624 * install.cc (do_install): ditto
2625 * msg.cc (fatal): ditto
2627 * res.rc: mark password boxes as *being* password boxes.
2629 * fromcwd.cc (canonicalize_version): use multiple buffers so that multiple
2630 calls won't use the same buffer.
2631 * choose.cc (create_listview): don't default to full list if no changes
2632 (base): return computed value, not temporary :-(
2633 (do_choose): don't use installed.db if we're only downloading.
2635 2000-08-23 DJ Delorie <dj@redhat.com>
2637 * nio-ie5.cc (NetIO_IE5): Fix authentication logic
2638 * nio-ie5.h (flush_io): new
2639 * netio.cc (load_dialog): note when we're initializing the dialog
2640 box, and ignore changes to the edit fields then.
2642 2000-08-21 DJ Delorie <dj@redhat.com>
2646 * fromcwd.cc (found_file): don't remember the canonicalized version
2648 * choose.cc (paint): print "nothing to do" message when list is empty.
2649 (build_labels): Use version "0.0" if no version is available.
2650 (create_listview): default to full list if nothing to install/update.
2651 (base): new, returns basename of file
2652 (read_installed_db): compare base names, not full paths
2654 2000-08-11 DJ Delorie <dj@redhat.com>
2656 * choose.cc: add new chooser dialog
2657 * fromcwd.cc: use IDD_CHOOSE
2658 * ini.cc: use IDD_CHOOSE
2659 * main.cc: use IDD_CHOOSE
2660 * ini.h: cosmetic changes
2661 * res.rc: add choose dialog, bitmaps
2662 * choose-spin.bmp: new
2663 * choose-rtarrow.bmp: new
2664 * resource.h: add choose dialog controls
2666 * mount.cc: remove debug statement
2668 2000-08-08 DJ Delorie <dj@redhat.com>
2670 * Makefile.in (version.c): make version checking more robust
2671 * splash.cc (load_dialog): handle case where there's no version
2673 2000-08-07 DJ Delorie <dj@redhat.com>
2675 * (all): add cvsid tags
2676 * Makefile.in: generate version.c from ChangeLog, add splash.o
2678 * res.rc: add splash screen
2680 2000-08-02 DJ Delorie <dj@redhat.com>
2682 * net.cc: remove proxy password code
2683 * res.rc: remove proxy user/pass from net, add auth dialogs
2684 * netio.cc,h: add sys/proxy auth methods
2685 * nio-ie5: use them, check for http status codes
2686 * state.h: add system authorization
2688 * concat.cc (concat): canonicalize x:// to x:/ (exception to ://
2691 2000-08-02 Norman Vine <nhv@yahoo,com>
2693 * msg.cc (mbox): added MB_TOPMOST to MessageBox type flags
2695 2000-08-01 DJ Delorie <dj@redhat.com>
2697 * postinstall.cc (each): don't rename files we ignore
2698 (do_postinstall): set CYGWINROOT to root_dir, chdir there
2700 * desktop.cc: have /etc/profile call ~/.profile and ~/.bashrc
2702 2000-07-31 DJ Delorie <dj@redhat.com>
2704 * desktop.cc: reverse PATH so /usr/bin precedes /bin
2706 2000-07-18 DJ Delorie <dj@redhat.com>
2708 * autoload.c: new, autoload dlls that might not be available.
2709 * Makefile.in (OBJS): add autoload.o
2711 * res.rc: rewrite root options (text/binary, system/user) to be
2714 * site.cc (get_site_list): trim displayed URL, sort by domain
2716 * net.cc (do_net): make IE5 default to checked, for now
2718 * choose.cc (do_choose): sort packages correctly
2719 * ini.cc (do_ini): handle parse errors more gracefully
2721 (fprintf): line buffer output
2722 (do_ini): if we can't load setup.ini, go back to the site list.
2723 * ini.h: add "unknown" trust level
2724 * inilex.l: absorb unknown trust levels and key/value pairs,
2725 add line number logic
2726 * iniparse.y: handle parse errors more gracefully.
2727 * install.cc: skip packages with no valid install entry
2729 2000-07-17 DJ Delorie <dj@cygnus.com>
2731 * coding standards fixups, many files
2732 * mkdir.cc: warn about deletions *before* deleting them
2734 2000-07-17 Jeff Juliano <juliano@cs.unc.edu>
2736 * res.rc (IDD_OTHER_URL): reorder to give default focus to entry
2738 * other.cc (dialog_cmd): save download site URL
2739 * site.cc (get_root_dir): new
2740 (save_mirror_site): new
2741 (dialog_cmd): save download site URL
2742 (get_site_list): make list big enough to add prev site
2743 (get_initial_list_idx): new, read last-used URL from file and
2744 append it to site_list
2745 (do_site): call get_initial_list_idx
2747 * concat.cc (concat): avoid segfault when first parm is null
2749 2000-07-13 DJ Delorie <dj@cygnus.com>
2751 * postinstall.cc: new
2752 * Makefile.in: add postinstall.o
2753 * concat.h: add backslash ()
2755 * desktop.cc (etc_profile): don't do postinstall
2756 (backslash): moved to concat.cc
2758 (make_postinstall_script): run directly
2759 (do_desktop): chain to do_postinstall
2760 * dialog.h: add exit_msg, do_postinstall
2761 * download.cc: use exit_msg
2763 * main.cc: add postinstall, exit_msg
2764 * resource.h: add postinstall
2765 * README: add more to-do items
2767 2000-07-12 DJ Delorie <dj@cygnus.com>
2769 * desktop.cc: add /etc/postinstall/ support
2770 * install.cc: add more "standard" directories
2772 2000-07-11 DJ Delorie <dj@cygnus.com>
2774 * desktop.cc: create /etc/profile
2775 * desktop.cc: fix include syntax
2776 * Makefile.in: add auto-dependencies
2777 * root.cc: support system vs user
2785 * desktop.cc: make sure we use backslashes, not slashes.
2786 * desktop.cc: don't set PATH in cygwin.bat, create /etc/passwd
2787 * geturl.cc: change math for percentage to avoid overflow
2789 * download.cc: post "download complete" message.
2790 * root.cc: pre-fill in defaults if needed, don't start
2791 browse at root_dir unless it's set.
2792 * desktop.cc: quote $PATH in case it has spaces in it
2794 2000-07-10 DJ Delorie <dj@cygnus.com>
2796 * Makefile.in: add desktop.o and mklink2.o
2797 * dialog.h: add do_desktop
2798 * install.cc: create standard directories, call do_desktop
2799 * res.rc: add cygwin.ico as a file also
2800 * desktop.cc: new, do shortcuts, batch files, and icons
2801 * mklink2.c: new, for COM
2802 * README: update to-do list
2804 2000-07-10 DJ Delorie <dj@cygnus.com>
2806 * ini.cc (do_ini): don't worry about timestamps if we're not
2807 actually installing.
2809 2000-07-09 DJ Delorie <dj@cygnus.com>
2811 * Makefile.in: add -I$(srcdir) for ini.h
2813 2000-07-06 DJ Delorie <dj@cygnus.com>
2815 * Replace everything with a new GUI version
2816 * zlib/gzio.c: add gzctell() for progress displays
2818 2000-06-22 DJ Delorie <dj@cygnus.com>
2820 * setup.c (tarx): re-add call to write_pkg()
2822 2000-06-07 DJ Delorie <dj@cygnus.com>
2824 * cygcalls.c: new, call cygwin1.dll functions directly
2825 * cygcalls.h: header for same
2826 * Makefile.in: add cygcalls.[ch], remove mount/cygpath/umount
2827 exes, fix cinstall.rc dependencies.
2828 * path.c: remove unneeded code
2829 * setup.c: use cygcalls instead of xcreate_process.
2830 uncompress embedded files with zlib
2831 add "-d" for "download only"
2833 postpone mount changes until very end
2834 add download progress indicators
2835 pack multi-column listings more
2836 auto-delete temp files
2837 customize banner message according to options
2838 prompt user for text/binary mounts
2839 add warnings about empty setup directory, root installs, etc
2841 2000-05-24 DJ Delorie <dj@cygnus.com>
2843 * tar.c: New file; built-in tar using zlib.
2844 * tar.h: New file; header for same.
2845 * ctar.c: New file; test program for same.
2846 * Makefile.in: add built-in tar, remove tar.exe and gzip.exe
2847 * path.c (pathcat): convert slashes and canonicalize, instead of aborting
2848 * setup.c (tarx): add support for built-in tar
2849 (main): accept unix-style slashes, check root dir for drive letters,
2850 warn about installing in /, make sure cwd is empty for internet installs,
2851 defer mounts to end of install, support built-in tar.
2853 Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
2855 Fix compiler warnings throughout.
2856 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
2858 * setup.c: Make 'root' global.
2859 (istargz): Return pointer to "stem" of matched .tar.gz file.
2860 (tarx): Special case cygwin-20000301 to == cygwin-1.1.0.tar.gz. Remove
2861 bogus check_for_installed check.
2862 (recurse_dirs): Add preliminary support for .bat file execution.
2863 (create_uninstall): Eliminate unneeded parameter.
2864 (do_start_menu): Ditto.
2866 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
2867 scanning for the version number. Eliminate unneeded argument to
2869 (getdownloadsource): Add 'name' to list of names rather than url.
2870 (main): Eliminate unneeded argument in get_pkg_stuff. Eliminate
2871 unneeded argument in mkmount and do_start_menu.
2873 2000-05-18 DJ Delorie <dj@cygnus.com>
2875 * setup.c (optionprompt): allow multi-column, clean up message
2876 about more options, be more robust about user input.
2877 (getdownloadsource): make the mirror URL a macro.
2878 (main): do mounts after done prompting user.
2880 Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
2882 * setup.c (cleanup): Inverse order of deletion stands a better chance
2883 of deleting cygpath.exe. Still seems to suffer from occasional races,
2885 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
2887 (output_file): Defend against an unlikely handle leak.
2888 (main): Don't set up signal handling until we have something special to
2891 Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
2893 * path.c (kill_cygpath): Delete function.
2894 (exit_cygpath): Make more defensive so that it can be called at any
2896 (cygpath_pipe): Don't set up signal here. Do it in main().
2897 * setup.c (istargz): New function.
2898 (recurse_dirs): Look for *.gz pattern rather than *tar.gz since *tar.gz
2899 inexplicably fails on samba mounted partitions. Use istargz to match
2901 (processdirlisting) Use istargz to match tar.gz tail.
2902 (cleanup): Renamed from filedel.
2903 (cleanup_on_signal): New function. Called on CTRL-C.
2904 (main): Record handle of main thread so that it can be suspended when
2905 CTRL-C occurs. Set up cleanup_on_signal signal handler.
2907 Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
2909 * setup.c (do_start_menu): Don't concatenate paths to already built
2912 Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
2914 * path.c (exit_cygpath): Wait for subprocess to exit before returning.
2915 (cygpath_pipe): Don't call exit_cygpath. Let main atexit routine do
2917 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
2919 * setup.c (filedel): Call exit_cygpath here so that we can be assured
2920 that cygpath subprocess has died. This allows us to delete cygpath.exe
2922 (optionprompt): Initialize response to -1 so that second screen of
2923 mirrors will appear.
2924 (get_pkg_stuff): Don't attempt to use HKCLU. Pass root to init_pkgs.
2925 * setup.h: Reflect init_pkgs prototype change.
2927 Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
2929 * pkg.c (init_pkgs): Accept an argument to control what root registry
2931 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
2932 * setup.h: Reflect init_pkgs prototype change.
2934 Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
2936 * error.c (winerror): Respond to gcc warning.
2937 * path.c (cygpath_pipe): Ditto.
2938 * setup.c (filedel): Call sa_cleanup on deleteme.
2939 (create_shortcut): Coerce argument to eliminate compiler warning.
2940 (tarx): Use installed version of cygwin1.dll, overriding tar file name.
2941 (refmatches): New function. Tests if ref is contained in a list of
2942 packages to install.
2943 (filematches): New function. Tests if filename matches one of a list
2944 of packages to install.
2945 (recurse_dirs): Accept list of packages to install. Generalize tar.gz
2946 test to accomodate _tar.gz.
2947 (prompt): Ensure that stdout is flushed prior to asking for input.
2948 (findhref): Initialize variables to quiet a compiler warning.
2949 (processdirlisting): Accept list of packages to install. Special case
2950 cygwin tar file version number.
2951 (downloaddir): Accept list of packages to install.
2952 (downloadfrom): Ditto.
2953 (create_uninstall): Eliminate unneeded variables. Quote arguments to
2955 (do_start_menu): Don't create uninstall bat file if updating or user
2956 specified a list of packages.
2957 (mkmount): Eliminate unneeded variables.
2958 (get_pkg_stuff): New function. Checks for previous unversioned
2960 (main): Accept -u and -f options and package names on the command line.
2961 Use get_pkg_stuff to initialize package information. Umount /etc.
2962 Call recurse_dirs and downloadfrom with list of package to install.
2963 Ensure that all /usr/local directories are created. Output
2964 installation time to setup.log.
2965 * setup.h: Add some prototypes.
2966 * xsystem.c (xcreate_process): Eliminate unneeded variable.
2968 Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
2970 * setup.c (optionprompt): Don't overlap display of already seen options
2972 (geturl): Print name of site which we're connecting to rather than "ftp
2974 (processdirlisting): Avoid URLs that contain a /. or ./ . Is this
2975 test too simplistic?
2976 (do_start_menu): Use pathcat to build path to <root>\bin to avoid
2977 problems when user chooses x:\ as their root.
2978 (main): For now, default to "non-update" mode. Allow -u option to
2981 Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
2984 * setup.c (tarx): Skip already installed or older packages. Report
2985 when a package has been updated.
2986 (processdirlisting): Skip already installed or older packages.
2987 (main): Detect -f option for forced installation. Initialize pkg stuff
2989 * setup.h: Add pkg definitions.
2991 Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
2993 * setup.c (findhref): Return NULL on empty string. Eat any trailing
2995 (processdirlisting): Attempt to limit recursively processing the same
2998 Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
3000 * setup.c (filedel): New function.
3001 (output_file): Keep track of files extracted from setup.exe for
3002 subsequent deletion.
3003 (tarx): Close process handle of child tar process or suffer handle
3005 (getdownloadsource): Close mirror file so that it can be unlinked.
3006 (processdirlisting): Return total number of files extracted.
3007 (main): Initialize array of files to delete. Ensure that files are
3008 closed on exit. Make the directory that setup.exe is started from ==
3009 the directory where temporary files are placed. Issue an error if no
3010 files were found to download.
3011 * xsystem.c (xcreate_process): Close the thread handle. Close the
3012 process handle if we waited for it to exit.
3014 Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
3016 * setup.c (main): Change version number output.
3018 Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
3020 * setup.c (tarx): Use full path name to tar executable.
3021 (main): Build full pathname to tar executable. Create /usr/local/etc
3024 Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
3026 * setup.c (findhref): Change method for scanning for href= to choose
3027 the last one on the line. This is still not foolproof and probably
3028 will need to be changed eventually. Don't abort if no "size" field is
3030 (processdirlisting): Fix boolean algebra.
3032 Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
3034 * main.c (tarx): Add some code for future task of unmounting
3035 directories encountered in tar file.
3037 Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
3039 * setup.c (findhref): Decode file size, when appropriate.
3040 (needfile): New function. Returns 1 when file should be
3042 (processdirlisting): Always download if file size does not
3043 match. Prompt when download fails for some reason.
3044 (getdownloadsource): Accomodate findhref argument changes.
3046 Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
3048 Throughout, use global session handle rather than reinitializing for
3049 each connect. Don't pass session as an argument to setup.c functions.
3050 * setup.c (geturl): Only issue "Connecting to.." message when using
3051 http or first time for ftp since subsequent connections will be fast.
3052 (processdirlisting): Allocate space for "N" when user has specified
3053 "N"ever option so that it can be subsequently freed.
3054 (main): Abort if we can't get the list of mirrors.
3056 Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
3058 * setup.c (main): Umount /bin and /lib.
3060 Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
3062 * setup.c (main): Create an empty /var/run/utmp.
3064 Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
3066 * Makefile.in: Add umount to list of files to include in setup.exe.
3067 * setup.c (xumount): New function for unmounting directories.
3068 (main): Unmount /usr.
3069 (mkmount): Unmount "unix directory" before trying to figure out where
3070 to create the directory.
3072 Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
3074 * setup.c (mkmount): Use xcreate_process to start mount process,
3076 (main): Don't do buffering on stdout or prompts won't be displayed
3077 correctly if running in a cygwin shell with CYGWIN=tty.
3079 Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
3081 * setup.c (main): Remove the CYGWIN environment variable before
3082 starting any cygwin programs.
3084 Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
3086 * setup.c (geturl): Use alternative method for finding filename part of
3088 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
3089 (downloaddir): Unlink file containing dir listing.
3090 (downloadfrom): Ditto.
3092 Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
3094 * setup.c (main): Disallow running setup.exe from the "root".
3096 Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
3098 Use "warning" function, where appropriate, to output warnings.
3099 * setup.c (warning): New function -- outputs warning to console and log
3101 (tarx): Fix index used to reset file protection.
3102 (main): Open the log file earlier so that more stuff can be sent to it.
3104 Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
3106 * setup.c (processdirlisting): Make "N" option a little less aggressive.
3108 Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
3110 * setup.c (tarx): Wait to after tar has completed to reset protections
3111 or suffer races with tar process.
3113 Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
3115 * Makefile.in: Eliminate duplicate -nostdinc from CFLAGS.
3116 * setup.c (create_uninstall): Create the uninstall .bat file in the
3117 "root" so that we can remove the /bin directory. Add bin\cygwin.bat to
3118 list of files to be deleted. Fix directory detection for determining
3119 when to use 'rmdir'.
3120 (do_start_menu): Add /usr/local/bin to the path.
3121 (main): Add slop to files.array allocation so that we don't have to
3122 worry about reallocating the array when it grows too large when doing
3123 some trivial "pushes". Add /tmp and /usr/local/{bin,lib} to list of
3126 Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
3128 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
3131 Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
3133 * path.c (kill_cygpath): New cleanup function.
3134 (exit_cygpath): New cleanup function.
3135 (cygpath_pipe): New function. Sets up cygpath in the background for
3136 translating filenames.
3137 (pathcvt): Use background cygpath for file translation.
3138 * setup.c (tarx): New function. Called to extract tar files, capture
3139 logging output, and translate it to Windows format.
3140 (recurse_dirs): Use 'tarx' function to extract files.
3141 (create_uninstall): Use file list built up by tarx rather than reading
3143 (mkmount): Add ability to mount root.
3144 (main): Track elapsed install time. Mount root.
3145 * starry.h: Add index field to strarry for tracking of tarx's usage of
3147 * xsystem.c (xcreate_process): Return proces handle when not waiting.
3149 Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
3152 (pathfp): New function. Preliminary work for new -f cygpath
3154 * Makefile.in: Add new file.
3155 (pathcvt): Move to new file.
3159 * setup.c (processdirlisting): Always open file in text mode.
3160 (create_uninstall): Ditto.
3161 (getdownloadsource): Ditto.
3164 Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
3166 * xsystem.c: New file.
3167 * Makefile.in: Accomodate new file.
3168 * setup.c (xsystem): Move to new file.
3169 (recurse_dirs): Accept handle to output log file. Don't use ">"
3170 redirection to trap tar output. Use supplied handle instead.
3171 (create_uninstall): Accept FILE pointer to opened log file. Don't
3172 unlink log file here.
3173 (do_start_menu): Accept FILE pointer to pass to create_uninstall.
3174 (main): Open log file here and pass it to various functions. Unlink
3177 Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
3179 Change occurrences of .usr.bin to .bin throughout.
3180 * setup.c (geturl): Increase number of retries to 20. Let user know
3181 what's going on during long connects.
3182 (processdirlisting): Accept "A"lways and "N"ever as update options.
3183 (create_uninstall): Load cygwin1.dll from the current directory rather
3185 (main): Add some expository text.
3187 Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
3189 * Makefile.in: Change method for compressing cygwin1.dll to avoid
3190 creating a cygwin1.dll in the current directory. Ensure the addition
3191 of -nostdinc to MINGW_CFLAGS.
3193 Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
3195 * Makefile.in: Augment clean target.
3197 Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
3199 * README: Added info about non-working mingw implementation
3200 * gzip.exe.gz: Replace with a version from the same build as the other
3202 * tar.exe.gz: Replace with a version from the same build as the other
3204 * mount.exe.gz: Add to repository until, mingw can build setup.
3205 * cygpath.exe.gz: ditto
3206 * cygwin1.dll.gz: ditto
3207 * setup.c: Overwrite /bin and /lib mounts. Generate working shortcut
3208 for Win9x. Display only a screenfull of options at a time. Call all
3209 tools with an absolute path.
3210 * setup.dsp: Restore the carriage returns, MS Developer Studio needs
3215 Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
3217 * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab
3218 cygwin1.dll from ../cygwin subdirectory.
3219 * gzip.exe.gz: Update.
3220 * tar.exe.gz: Update.
3222 Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
3224 * Makefile.in: Use ZLIB variable as a target.
3226 Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
3228 * Makefile.in: Eliminate traces of cygwinisms. Don't link with
3229 libmsvcrt.a. It's unneeded. Build .rc file on the fly from various
3231 * configure.in: Locate correct objcopy.
3232 * configure: Regenerate.
3234 Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
3236 * Makefile.in: New file.
3237 * configure.in: New file.
3238 * configure: New file.
3239 * zlib/Makefile.am: New file.
3240 * zlib/configure.in: New file.
3241 * zlib/aclocal.m4: New file.
3242 * zlib/acinclude.m4: New file.
3243 * zlib/configure: Regenerate from configure.in.
3244 * zlib/Makefile.in: Regenerate from Makefile.am