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