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