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