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