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