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