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