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