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