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