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