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