1 2002-09-21 Robert Collins <rbtcollins@hotmail.com>
3 * res.rc: Commit Harry Johnston's dialog caption patch. From July.
5 2002-07-15 Robert Collins <rbtcollins@hotmail.com>
7 * package_version.cc (packageversion::sources): Implement this.
8 * download.cc (do_download_thread): Support multiple files per package.
10 2002-07-15 Robert Collins <rbtcollins@hotmail.com>
12 * package_version.h (packageversion::sources): Support multiple files in
13 a single package version.
14 * package_version.cc (_packageversion::accessible): Ditto.
15 (packageversion::source): Ditto.
17 2002-07-15 Robert Collins <rbtcollins@hotmail.com>
19 * iniparse.y: Implement support for multiple source files for a source
21 * IniDBBuilder.h (IniDBBuilder::buildSourceFile): Ditto.
22 * IniDBBuilderPackage.h (IniDBBuilder::buildSourceFile): Ditto.
23 * IniDBBuilder.cc (IniDBBuilder::buildSourceFile): Ditto.
24 * IniDBBuilderPackage.cc (IniDBBuilder::buildSourceFile): Implement a
27 2002-07-13 Robert Collins <rbtcollins@hotmail.com>
29 * PickPackageLine.cc (PickPackageLine::click): Set requirements for
30 packages under all circumstances - slightly higher overheader, simpler
32 * download.cc (do_download_thread): Correctly download source
34 * package_meta.cc (checkForInstalled): Remove.
35 (checkForUpgradeable): Ditto.
36 (checkForSatisfiable): Ditto.
37 (processOneDependency): Ditto.
38 (packagemeta::set_requirements): Move guts to packageversion.
39 * package_version.cc (checkForInstalled): Copied from package_meta.cc.
40 (checkForUpgradeable): Ditto.
41 (checkForSatisfiable): Ditto.
42 (processOneDependency): Ditto.
43 (packageversion::set_requirements): Ditto.
44 * package_version.h (packageversion::set_requirements): Declare.
46 2002-07-13 Robert Collins <rbtcollins@hotmail.com>
48 * IniDBBuilder.cc (IniDBBuilder::buildBeginBuildDepends): Implement.
49 (IniDBBuilder::buildBeginBinary): Implement.
50 * IniDBBuilder.h (IniDBBuilder::buildBeginBuildDepends): Declare.
51 (IniDBBuilder::buildBeginBinary): Ditto.
52 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildBeginBuildDepends):
54 (IniDBBuilderPackage::buildBeginBinary): Ditto.
55 * IniDBBuilderPackage.h (IniDBBuilderPackage::buildBeginBuildDepends):
57 (IniDBBuilderPackage::buildBeginBinary): Ditto.
58 * inilex.l: Recognise Build-Depends-Indep, [,], >, < and remove
60 * iniparse.y: Full support for parsing a debian Sources file in-line in
62 * package_version.cc (packageversion::binaries): Implement.
63 * package_version.h (packageversion::binaries): Declare list of what
64 packages are created from a given source package.
65 (_packageversion::binaries): Ditto.
67 2002-07-10 Robert Collins <rbtcollins@hotmail.com>
69 * iniparse.y: Add basis for support for parsing a debian Sources file.
72 2002-07-09 Robert Collins <rbtcollins@hotmail.com>
74 Change custom container code for packagedb::packages to STL containers
76 * IniDBBuilderPackage.cc: Ditto.
82 * package_db.cc: Ditto.
83 * package_db.h: Ditto.
84 * Makefile.am: Remove list.h references.
87 2002-07-08 Max Bowsher <maxb@ukf.net>
89 * PickView.cc (PickView::PickView): Set font of package list header to
90 the same as used in the rest of the package list.
92 2002-07-08 Robert Collins <rbtcollins@hotmail.com>
94 * install.cc (NoReplaceOnReboot): New command line option to prevent
95 replacing in use files.
96 (install_one_source): Check the option and use it.
97 * README: Update TODO lists.
99 2002-07-08 Robert Collins <rbtcollins@hotmail.com>
101 * PickCategoryLine.cc: Change bucket to use STL container syntax
103 (PickCategoryLine::paint): Use new Category type syntax.
104 * PickCategoryLine.h: Use STL vectors rather than custom containers
106 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageCategory):
107 Use new add_category syntax.
108 * PickView.cc (PickView::insert_pkg): Use new Category type syntax.
109 (PickView::insert_category): Ditto.
110 (PickView::init_headers): Ditto.
111 * category.cc: Trim obsolete code.
112 * category.h: Replace interconnecting class with a typedef to
113 facilitate leveraging STL maps.
114 * choose.cc (fill_missing_category): Use updated pkg.add_category
116 (default_trust): Use new Category type syntax.
117 (set_view_mode): Ditto.
118 (create_listview): Ditto.
119 * package_db.cc (categories): Ditto.
120 * package_db.h: Update headers list to include needed headers.
121 (packagedb::categories): Replace custom list with STL map.
122 * package_meta.cc: Use new Category type syntax throughout.
123 (packagemeta::add_category): Implement new syntax.
124 * package_meta.h: Remove commented out source.
125 (packagemeta::add_category): Update syntax to decouple interface from
128 2002-07-06 Christopher Faylor <cgf@redhat.com>
130 * site.cc (do_download_site_info_thread): Correct spelling error.
132 2002-07-06 Robert Collins <rbtcollins@hotmail.com>
134 * PickCategoryLine.h: Include required header list.h.
135 * PickPackageLine.cc (PickPackageLine::paint): Adjust to use STL
136 containers for listing of packages per category and vice verca.
137 * PickView.cc (PickView::insert_pkg): Ditto.
138 (PickView::insert_category): Ditto.
139 * String++.h (String::caseless): STL helper to allow trivial containers
140 of Strings with case insensitive comparisons.
141 * category.h: Adjust to use STL containers for listing of packages per
142 category and vice verca.
143 * choose.cc (fill_missing_category): Ditto.
144 (default_trust): Ditto.
145 (ChooserPage::OnNext): Ditto.
146 * package_meta.cc (CategoryPackage::~CategoryPackage): Remove.
147 (packagemeta::packagemeta): Adjust for new category list name.
148 (packagemeta::~packagemeta): Adjust to use STL containers for listing
149 of packages per category and vice verca.
150 (packagemeta::set_action): Ditto.
151 * package_meta.h (CategoryPackage): Remove.
152 (packagemeta): Adjust to use STL containers for listing of packages per
153 category and vice verca.
155 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
157 * io_stream.cc: Use STL containers rather than custom ones.
158 (io_stream::registerProvider): Ditto.
159 (findProvider): Ditto.
161 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
163 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
164 Use STL collections for download site collections.
165 (IniDBBuilderPackage::add_correct_version): Ditto.
166 (IniDBBuilderPackage::process_src): Ditto.
167 * PickPackageLine.cc (PickPackageLine::click): Use the packageversion
168 accessible() call to abstract package availability.
169 * choose.cc (scanAVersion): Use STL collections for download site
171 * download.cc (check_for_cached): Ditto.
172 (download_one): Ditto.
173 * package_meta.cc (packagemeta::set_action): Use the packageversion
174 accessible() call to abstract package availability.
175 * package_source.h: Use STL containers rather than custom containers.
176 (site): Create a == operator to allow STL container use.
177 (packagesource::sites): Use STL containers rather than custom
179 * package_version.cc (_packageversion::accessible): Use STL containers
180 for download site containers.
182 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
184 * LogFile.cc: Use STL containers rather than custom containers.
185 (filedef): Create == and < operators for STL use.
186 (files): Convert to an STL set.
187 (LogFile::setFile): Use STL operations on files.
188 (LogFile::exit): Ditto.
190 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
192 * ini.cc (do_remote_ini): Use STL collection for site collection.
193 * site.cc: Include site.h first to ensure it's parsable standalone.
195 (site_list): Convert to an STL container.
196 (all_site_list): Ditto.
197 (site_list_type::site_list_type): Implement copy constructor.
198 (site_list_type::operator=): Implement assignment operator.
199 (site_list_type::operator ==): Implement.
200 (site_list_type::operator <): Ditto.
201 (save_dialog): Use STL collection calls for site collection.
202 (save_site_url): Ditto.
203 (get_site_list): Ditto.
204 (get_saved_sites): Ditto.
205 (do_download_site_info_thread): Ditto.
206 (SitePage::OnNext): Ditto.
207 (SitePage::PopulateListBox): Ditto.
208 (SitePage::OnMessageCmd): Ditto.
209 * site.h: Use STL vectors instead of custom code.
210 (site_list_type::site_list_type): Declare.
211 (site_list_type::operator=): Ditto.
212 (site_list_type::operator ==): Ditto.
213 (site_list_type::operator !=): Ditto.
214 (site_list_type::operator <): Ditto.
215 (site_list_type::operator <=): Ditto.
216 (site_list_type::operator >): Ditto.
217 (site_list_type::operator >=): Ditto.
218 (site_list): Convert to an STL container.
219 (all_site_list): Ditto.
221 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
223 * choose.cc (default_trust): Check package accessibility before
224 triggering an install. (Suggested by Pavel).
226 2002-07-03 Pavel Tsekov <ptsekov@gmx.net>
228 * compress_gz.cc (compress_gz::construct): Always initialize key members
229 to ensure the destructor does the right thing.
231 2002-07-03 Pavel Tsekov <ptsekov@gmx.net>
233 * filemanip.cc (parse_filename): Do not try to parse empty
235 * package_db.cc (packagedb::packagedb): For each line check if sscanf()
236 extracted good package name and filename.
238 2002-07-03 Robert Collins <rbtcollins@hotmail.com>
240 * package_meta.cc (packagemeta::set_requirements): Automatically select
241 version of dependent packages that satisfies the requirements.
242 Use processOneDependency to trigger the install of those packages.
243 (checkForInstalled): Check that the package remains installed.
244 (processOneDependency): Helper function for dependent packages.
245 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackage): Add more
247 Clear out all current state on new packages.
248 (IniDBBuilderPackage::add_correct_version): Copy the dependency list
251 2002-07-02 Robert Collins <rbtcollins@hotmail.com>
253 * Makefile.am (inilint_SOURCES): Add PackageSpecification sources.
254 nb: inilint is still incomplete, as the packageversion code is not
255 ready for database-less linking.
256 * site.cc (get_site_list): When the same site is reentered by the user
257 replace the old one. (Suggested by John Marshall).
259 2002-07-02 Robert Collins <rbtcollins@hotmail.com>
261 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
262 Clear out package selections when generating implicit source packages.
263 * PackageSpecification.cc (PackageSpecification::satisfies): Implement.
264 (PackageSpecification::_operators::satisfies): Implement.
265 * PackageSpecification.h (PackageSpecification::_operators::satisfies):
266 Worker function for testing versions.
268 2002-07-01 Robert Collins <rbtcollins@hotmail.com>
270 * IniDBBuilder.cc (IniDBBuilder::buildPackageRequirement): Remove.
271 * IniDBBuilder.h (IniDBBuilder::buildPackageRequirement): Ditto.
272 * IniDBBuilderPackage.cc: Use the STL algorithms.
273 Change cpv to cbpv throughout. Adjust -> to ., and use the new accessor
274 functions for the same variable throughout.
275 (IniDBBuilderPackage::IniDBBuilderPackage): Initialise new members.
276 (IniDBBuilderPackage::buildPackage): Use new cygpackage syntax,
277 and set an empty source package.
278 (IniDBBuilderPackage::buildPackageInstall): Use the new source member
279 to record an install package.
280 (IniDBBuilderPackage::buildPackageSource): Move source package logic
281 out from process_src, as it now occurs at separate times.
282 (IniDBBuilderPackage::buildPackageRequirement): Remove.
283 (IniDBBuilderPackage::buildSourceName): Use renamed package
284 specifiation accessor for clarity.
285 (IniDBBuilderPackage::buildSourceNameVersion): Ditto.
286 (IniDBBuilderPackage::add_correct_version): Use STL iterators rather
288 Remove source package references.
289 (IniDBBuilderPackage::process_src): Remove source package code as it's
290 now handled separately.
291 Set Path information before merging versions, to prevent dangling
293 * IniDBBuilderPackage.h (IniDBBuilderPackage::buildPackageRequirement):
295 (IniDBBuilderPackage::cpv): Remove.
296 (IniDBBuilderPackage::cbpv): New generic binary working variable.
297 (IniDBBuilderPackage::cspv): Ditto, but for source packages.
298 (IniDBBuilderPackage::csp): Source package variable for disjoint
300 * Makefile.am (AM_CFLAGS): Remove -Winline to allow stl set code
301 to compile. If it compiles cleanly in gcc 3.1, then reinstate.
302 * PickPackageLine.cc: Adjust packageversion accessors to the new
303 reference calls. (i.e. -> to .) throughout.
304 (PickPackageLine::paint): Use accessible() for clarity.
305 Use new split out source package logic.
306 (PickPackageLine::click): Ditto.
307 * PickView.cc (PickView::init_headers): Adjust packageversion accessors
308 to the new reference calls. (i.e. -> to .) throughout.
309 Use new split out source package logic.
310 * choose.cc: Don't depend on a specific package type.
311 Adjust packageversion accessors to the new reference calls. (i.e. -> to
313 (set_existence): Use accessible () for clarity.
314 (default_trust): Simplify a little.
315 (scanAVersion): Factored out code from scan_downloaded_files for
317 (scan_downloaded_files): Factor out inner loop for clarity.
318 (ChooserPage::OnNext): Don't dump the dependency list,
319 it's parsing is robust now!.
320 * cygpackage.cc (createInstance): Use a factory method to create new
322 (cygpackage::cygpackage): Make this private for use by the factory.
323 (cygpackage::setCanonicalVersion): Renamed from set_canonical_version.
324 Remove key usage as it's obsolete.
325 * cygpackage.h (cygpackage): Inherit from _packageversion, not
327 (cygpackage::createInstance): New factory.
328 (cygpackage::cygpackage): Make private.
329 * desktop.cc (make_passwd_group): Use new packageversion reference.
330 * download.cc (do_download_thread): Use changeRequested() for clarity.
331 Use new packageversion reference calls.
332 * iniparse.y (REQUIRES): Reuse the packageList code and dump the one-off
334 * install.cc: Adjust -> to ., and use the new accessor functions for
335 packageversion throughout.
336 * package_db.cc: Adjust -> to ., and use the new accessor functions for
337 packageversion throughout.
338 (packagedb::packagedb): Use the new cygpackage factory.
339 (packagedb::flush): Leverage String to remove buffer overflow chance in
341 (packagedb::findBinary): Find a binary meta package that has a version
342 matching a given specification.
343 (packagedb::findSource): Ditto, but for source.
344 * package_db.h (packagedb::findBinary): Declare.
345 (packagedb::findSource): Ditto.
346 * package_meta.cc: Adjust packageversion accessors to the new
347 reference calls. (i.e. -> to .) throughout.
348 Include the package_meta header first to ensure it parses standalone.
349 Use the STL algorithms.
350 (packagemeta::packagemeta): Create a copy constructor to allowing
351 cloning binary package metadata to source package metadata.
352 (packagemeta::~packagemeta): Use the STL coleltion code rather than
353 custom collection code.
354 (packagemeta::add_version): Ditto.
355 (packagemeta::set_installed): Ditto.
356 (packagemeta::SDesc): Ditto.
357 (hasSDesc): Helper function for find_if.
358 (checkForInstalled): Ditto.
359 (checkForUpgradeable): Ditto.
360 (checkForSatisfiable): Ditto.
361 (packagemeta::action_caption): Update for split out source packages.
362 (packagemeta::set_action): Ditto.
363 (packagemeta::set_requirements): Support multi-valued dependency
364 lists - a|b & c|d - with versioned package specifications.
365 (packagemeta::accessible): Helper member to improve abstraction.
366 (packagemeta::sourceAccessible): Ditto.
367 * package_meta.h: Adjust packageversion accessors to the new
368 reference calls. (i.e. "->" to "." and"*" to "" ) throughout.
369 (packagemeta::packagemeta): Declare copy constructor.
370 Remove self initialising members.
371 (packagemeta::set_action): Update parameters for new packageversion.
372 (packagemeta::trustp): Ditto.
373 (packagemeta::versions): Becomes an STL set.
374 * package_source.h (packagesource::Cached): Const correctness change.
375 * package_version.cc: Rewrite the packageversion interface to remove
376 the cygpackage nonvirtual members, and provide a copy by value,
377 pointer semantics reference counting wrapper class to ease use and
378 comparison of packageversions.
379 Change existing packageversion class to _packageversion throughout.
380 (_defaultversion): A trivial concrete class to prevent specialcasing
381 the default constructor for packageversion;
382 (packageversion::packageversion): Implement.
383 (packageversion::~packageversion): Ditto.
384 (packageversion::operator=): Ditto.
385 (packageversion::operator !): Ditto.
386 (packageversion::operator bool): Ditto.
387 (packageversion::operator ==): Ditto.
388 (packageversion::operator !=): Ditto.
389 (packageversion::operator <): Ditto.
390 (packageversion::Name): Ditto.
391 (packageversion::Canonical_version): Ditto.
392 (packageversion::setCanonicalVersion): Ditto.
393 (packageversion::getfirstfile): Ditto.
394 (packageversion::getnextfile): Ditto.
395 (packageversion::SDesc): Ditto.
396 (packageversion::set_sdesc): Ditto.
397 (packageversion::LDesc): Ditto.
398 (packageversion::set_ldesc): Ditto.
399 (packageversion::sourcePackage): Ditto.
400 (packageversion::sourcePackageSpecification): Ditto.
401 (packageversion::setSourcePackageSpecification): Ditto.
402 (packageversion::depends): Ditto.
403 (packageversion::predepends): Ditto.
404 (packageversion::recommends): Ditto.
405 (packageversion::suggests): Ditto.
406 (packageversion::replaces): Ditto.
407 (packageversion::conflicts): Ditto.
408 (packageversion::provides): Ditto.
409 (packageversion::picked): Ditto.
410 (packageversion::pick): Ditto.
411 (packageversion::changeRequested): Ditto.
412 (packageversion::uninstall): Ditto.
413 (packageversion::source): Ditto.
414 (packageversion::accessible): Ditto.
415 (_packageversion::sourcePackage): Ditto.
416 (_packageversion::accessible): Ditto.
417 (_packageversion::changeRequested): Ditto.
418 * package_version.h: Rewrite the packageversion interface to remove
419 the cygpackage nonvirtual members, and provide a copy by value,
420 pointer semantics reference counting wrapper class to ease use and
421 comparison of packageversions.
422 Change existing packageversion class to _packageversion throughout.
423 (Dependency): Remove.
424 (packageversion): New wrapper class.
425 (_packageversion): Renamed from packageversion.
426 (_packageversion::setCanonicalVersion): New method.
427 (_packageversion::sourcePackage): Ditto.
428 (_packageversion::sourcePackageSpecification): Ditto.
429 (_packageversion::setSourcePackageSpecification): Ditto.
430 (_packageversion::changeRequested): Ditto.
431 (_packageversion::bin): Rename to source.
432 (_packageversion::src): Remove.
433 (_packageversion::accessible): New method.
434 (_packageversion::references): Allow reference counting.
435 (_packageversion::sourceVersion): Cached the best-match source
438 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
440 * compress_bz.h (compress_bz::position): Track how much has been read.
441 * compress_bz.cc (compress_bz::compress_bz): And initialise it.
442 (compress_bz::read): Track amount read by the client.
443 (compress_bz::tell): And report it when asked.
445 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
447 * Makefile.am (snapshot): Automate snapshot creation some more.
449 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
451 * msg.cc (msg): Use vsnprintf to avoid buffer overflows.
453 * ini.cc (fprintf): Ditto.
454 * log.cc (log): Ditto.
455 * package_db.cc (packagedb::sourcePackages): Split out source packages
456 from binary packages.
457 * package_db.h: Ditto.
459 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
461 * PackageSpecification.h: New file. Abstracts the ability to refer
462 to another package, by name, or name and version.
463 * PackageSpecification.cc: Ditto.
464 * IniDBBuilder.cc (IniDBBuilder::buildPackageInstall): Simplify.
465 (IniDBBuilder::buildPackageSource): Ditto.
466 (IniDBBuilder::buildBeginDepends): New method for versioned
468 (IniDBBuilder::buildBeginPreDepends): Likewise, for dependencies to be
469 satisfied before pre-install.
470 (IniDBBuilder::buildPriority): New method, for getting the package
472 (IniDBBuilder::buildInstalledSize): How much disk space does it need?
473 (IniDBBuilder::buildMaintainer): Who maintains the package?
474 (IniDBBuilder::buildArchitecture): What platform is it for?
475 (IniDBBuilder::buildInstallSize): How big is the binary download?
476 (IniDBBuilder::buildInstallMD5): Whats the MD5 on the binary?
477 (IniDBBuilder::buildSourceMD5): Whats the MD5 on the source package?
478 (IniDBBuilder::buildBeginRecommends): What other packages are
479 recommended with this one?
480 (IniDBBuilder::buildBeginSuggests): And suggested?
481 (IniDBBuilder::buildBeginReplaces): What packages does this replace?
482 (IniDBBuilder::buildBeginConflicts): And collide with?
483 (IniDBBuilder::buildBeginProvides): What virtual packages (or obsolete
484 package names) does this provide?
485 (IniDBBuilder::buildDescription): Grab a multi line description one
487 (IniDBBuilder::buildSourceName): What source package should be used to
488 install the source for this binary package?
489 (IniDBBuilder::buildSourceNameVersion): Is a specific version needed?
490 (IniDBBuilder::buildPackageListAndNode): Add another AND clause to a
491 list of package specifications.
492 (IniDBBuilder::buildPackageListOrNode): Add another OR clause.
493 (IniDBBuilder::buildPackageListOperator): Add a versioning operator
494 to the current specification.
495 (IniDBBuilder::buildPackageListOperatorVersion): What version does the
497 * IniDBBuilder.h: Declare all the IniDBBuilder.cc changes.
498 * IniDBBuilderPackage.cc: As for IniDBBuilder.cc.
499 (IniDBBuilderPackage::IniDBBuilderPackage): Iniitialize new members.
500 (IniDBBuilderPackage::process_src): Streamline and split out
502 (IniDBBuilderPackage::setSourceSize): From process_src.
503 * IniDBBuilderPackage.h: Declare the IniDBBuilderPackage.cc changes.
504 (IniDBBuilderPackage::currentSpec): Track the in-progress specifiation.
505 (IniDBBuilderPackage::currentOrList): Track the current Or list.
506 (IniDBBuilderPackage::currentAndList): Track the current And list.
507 * IniParseFeedback.cc (IniParseFeedback::progress): Provide completion
509 (IniParseFeedback::iniName): Tell what ini filename we are currently
511 * IniParseFeedback.h: Declare IniParseFeedback.cc changes.
512 * IniParseFindVisitor.cc (IniParseFindVisitor::IniParseFindVisitor):
513 Make the feedback object non-const to allow mutating methods which are
514 needed when the object has state.
515 (IniParseFindVisitor::visitFile): Tell the caller the name of each
517 Initialise the parser with the feedback object to allow it to tell of
519 * IniParseFindVisitor.h: Declare IniParseFindVisitor.cc changes.
520 * Makefile.am (inilinst_SOURCES): Add more requisite classes.
521 (setup_SOURCES): Add the new PackageSpecification sources.
522 * ScanFindVisitor.cc (ScanFindVisitor::visitFile): Use the new
523 builder syntax to setup binary package details.
524 * choose.cc: Use the LogSingleton calls throughout.
525 * configure.in: Create the INILINT substitution correctly for recent
526 autotool configurations.
527 * cygpackage.cc (cygpackage::getfirstfile): Return an empty String
528 rather than a string built from an int. Thanks to Pavel Tsekov for
530 (cygpackage::getnextfile): Ditto.
531 * download.cc: Use LogSIngletion calls throughout.
532 (validateCachedPackage): A refactoring of the
533 check_for_cached code to eliminate duplciation.
534 (check_for_cached): Use validateCachedPackage to check packages.
535 * ini.cc (GuiParseFeedback): Provide gui feedback on ini name and
537 (do_remote_ini): Ditto.
538 * ini.h (ini_init): Pass a IniParseFeedback to the parser, to allow
540 * inilex.l: Identify new symbols - operators, and multi line plain text.
542 * inilintmain.cc (show_help): Provide basic infomation on inilint.
543 * iniparse.y: Adjust for the new builder syntax, and process debian
545 * io_stream_file.cc: Always include mkdir.h.
546 * list.h: Factor index location into a private routine.
547 (list::findindex): Implement this.
548 * mkdir.cc (mkdir_p): Make the use of WIN32 code conditional on mingw
549 builds. NB: This breaks cygwin build functionality still.
550 * package_meta.cc: Use the LogSingleton calls throughout.
551 (packagemeta::set_requirements): Adjust for object changes in
553 * package_meta.h (packagemeta::packagemeta): Initialise new members.
554 (packagemeta::architecture): What platform does this package run on?
555 This may need to move in the future to a per packagefile object.
556 (packagemeta::priority): What priority does this package have?
557 * package_source.h (packagesource::packagesource): Initialise new
559 (packagesource::installedSize): How much space does the package need?
560 (packagesource::setInstalledSize): Tell the amount.
561 (packagesource::_installedSize): And store it.
562 * package_version.cc (packageversion::sourcePackage): return the
564 (packageversion::setSourcePackage): And set it.
565 * package_version.h: Declare the package_version.cc changes.
566 (packageversion::depends): New package specification AND list.
567 (packageversion::predepends): Ditto.
568 (packageversion::recommends): Ditto.
569 (packageversion::suggests): Ditto.
570 (packageversion::replaces): Ditto.
571 (packageversion::conflicts): Ditto.
572 (packageversion::provides): Ditto.
573 (packageversion::sourcePackage): What source package is needed?
574 * threebar.cc (ThreeBarProgressPage::SetText4): Set the label beside
576 * threebar.h: Declare the threebar.cc change.
578 2002-06-27 John Marshall <johnm@falch.net>
580 * res.rc (SETUPINI_MISSING): Make trailing spaces visible.
581 * site.cc (SitePage::OnMessageCmd): Ditto
583 2002-06-15 Robert Collins <rbtcollins@hotmail.com>
585 * nio-ie5.cc (NetIO_IE5::NetIO_IE): Allow cached data.
587 2002-06-15 Robert Collins <rbtcollins@hotmail.com>
589 * package_meta.cc (packagemeta::set_action): When installing packages
590 with no binaries, choose the source package.
592 2002-06-10 Robert Collins <rbtcollins@hotmail.com>
594 * IniParseFindVisitor (IniParseFindVisitor::visitFile): Apply Max
595 Bowshers fix for the crash with a root level setup.ini.
596 * README: Update todos.
598 2002-05-26 Ralf Habacker <ralf.habacker@freenet.de>
600 * archive_tar.cc (archive_tar::next_file_name()): fixed broken
601 GNU long name extension support.
603 2002-05-27 Robert Collins <rbtcollins@hotmail.com>
605 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Don't
606 unescape 0 length strings.
608 2002-05-20 Robert Collins <rbtcollins@hotmail.com>
610 * package_meta.cc (packagemeta::set_action): Don't allow reinstall
611 when local with no cached file, and install the default source if the
612 default version has no binary.
614 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
616 * IniDBBuilderPackage.cc (IniDBBuilderPackage::IniDBBuilderPackage): New
618 (IniDBBuilderPackage::buildVersion): Provide a warning when a newer
619 setup version created the ini file.
620 * IniDBBuilderPackage.h (IniDBBuilderPackage::IniDBBuilderPackage): New
622 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Use the new
624 * IniParseFindVisitor.h (IniParseFindVisitor::IniParseFindVisitor):
625 Require a feedback strategy.
626 * Makefile.am (setup_SOURCES): Add IniParseFeedback sources.
627 * Makefile.in: Regenerate.
629 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
631 * io_stream_file.cc (io_stream_file::remove): Use the SetFileAttributes
632 trick to delete read only files.
633 * io_stream_cygfile.cc (io_stream_cygfile::remove): Use file:// to
635 * Makefile.am (release): Tweak to be more helpful.
636 * Makefile.in: Regenerate.
638 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
640 * Makefile.am (release): Tweak to be more helpful.
641 * Makefile.in: Regenerate.
643 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
645 * Makefile.am (release): Tweak to be more helpful.
646 * Makefile.in: Regenerate.
648 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
650 * choose.cc (scan_downloaded_files): When a non-installed version
651 has neither bin nor src cached files for local installs,
652 remove the version from availability.
654 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
656 * ini.cc (do_remote_ini): Save uncompressed ini's correctly.
658 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
660 * rsync: New support library, contains librsync. This is not (yet)
662 * configure.in: --with-rsync to enable rsync support. (Not complete).
663 * Makefile.am: Enable building with rsync.
664 * Makefile.in: Regenerate.
666 * IniDBBuilder.cc (IniDBBuilder::buildPackageInstall): Pass the md5 as
668 (IniDBBuilder::buildPackageSource): Ditto.
669 * IniDBBuilder.h: Ditto.
670 * IniDBBuilderPackage.cc: Ditto.
671 * IniDBBuilderPackage.h: Ditto.
672 * FindVisitor.cc: New file.
673 * FindVisitor.h: New file, interface for visiting a file system
675 * IniParseFindVisitor.cc: New file.
676 * IniParseFindVisitor.h: New file, concrete FindVisitor that parses
678 * README: Update TODO's.
679 * String++.cc (String::String): New constructor for <string> inter-
681 (String::substr): New method.
683 * choose.cc (scan2): Remove.
684 (scan_downloaded_files): Simplify.
685 * dialog.h: Include parsing pre-requirements.
686 * download.cc (check_for_cached): Fullname was used incorrectly - fix.
687 * filemanip.cc (parse_filename): -src packages where incorrectly parsed.
688 * find.cc: Rewrite. Now uses a Visitor pattern and is re-entrant.
690 * fromcwd.cc: Remove unneeded includes.
691 (is_test_version): Remove.
692 (found_file): Remove.
693 (SetupFindVisitor): Trivial visitor to detect setup.ini's.
695 (do_fromcwd): Remove commented code that has be replaced elsewhere.
696 * ini.cc (local_ini): Remove.
697 (findBuilder): Remove.
698 (find_routine): Remove.
699 (do_local_ini): Use new IniParseFindVisitor.
700 * iniparse.y: Typecase MD5 arrays, as we know they are allocated as
702 * postinstall.cc: Remove non-core includes.
703 (run_script_in_postinstall): Remove.
704 (RunFindVisitor): Trivial Visitor, runs each found script.
705 (do_postinstall): Use new find syntax.
707 2002-05-14 Christopher Faylor <cgf@redhat.com>
709 * ini.cc (find_routine): Don't clear buffer it it's NULL.
711 2002-05-14 Christopher Faylor <cgf@redhat.com>
713 * filemanip.h (trail): Declare.
714 * filemanip.cc (trail): New function.
715 (find_tar_ext): Use trail() instead of strstr().
716 * fromcwd.cc (check_ini): Ditto.
717 * ini.cc (find_routine): Ditto. Don't tack local_dir to path since it
718 should now be fully qualified. Set ini_filename. Reset error_buf and
719 error_count for any subsequent ini file parsing.
720 (ini_filename): New static variable for parse error reporting.
721 (yyerror): Use full path of setup.ini in error message. Subtract one
722 from line number if at bol.
723 * find.cc (found_part): Eliminate.
724 (find_sub): Call for_each with full path found rather than just file
726 (find): Don't calculate found_part.
727 * inilex.l (ini_init): Flush input buffer and reset line number.
728 (yybol): New function. Exports YY_AT_BOL.
729 * iniparse.y: Increase stack depth to allow more tokens to be processed.
730 (yyparse): Remove newline from error condition to allow subsequent
731 per-line error processing to proceed normally.
733 2002-05-14 Christopher Faylor <cgf@redhat.com>
735 * find.cc (find_sub): Be more defensive in preserving trailing parts of
736 components when doing recursive directory searches or calling user
738 * ini.cc (find_routine): Don't assume that any path name with
739 "setup.ini" in it is actually a setup.ini file. Only honor trailing
740 components. Copy path argument to temporary storage when unescaping
741 to prevent nuking of argument.
743 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
745 * CONTRIBUTORS: New file.
747 2002-04-02 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
749 * choose.cc: Run indent.
750 (nextbutton): Remove static variable.
751 (default_trust): Remove use of nextbutton.
752 (set_view_mode): Ditto.
753 (create_listview): Add IDC_CHOOSE_PREV and IDC_CHOOSE_NEXT to ta[] so
754 rbset() sets the prev/next/curr radio buttons properly.
755 (dialog_cmd): Delete function.
756 (dialog_proc): Delete function. Move WM_INITDIALOG functionality to
758 (do_choose): Delete function. Move pre-DialogBox() code to
759 ChooserPage::OnInit(), post-DialogBox() code to ChooserPage::OnNext.
760 (WM_APP_START_CHOOSE): Remove define.
761 (WM_APP_CHOOSE_IS_FINISHED): Remove define.
762 (do_choose_thread): Delete function.
763 (ChooserPage::OnActivate): Delete method.
764 (ChooserPage::OnMessageApp): Delete method.
765 (ChooserPage::OnInit): New method.
766 (ChooserPage::OnNext): New method.
767 (ChooserPage::OnBack): New method.
768 (ChooserPage::OnMessageCmd): New method.
769 * choose.h: Run indent.
770 (ChooserPage::OnMessageApp): Delete declaration.
771 (ChooserPage::OnActivate): Ditto.
772 (ChooserPage::OnMessageCmd): New declaration.
773 (ChooserPage::OnInit): Ditto.
774 (ChooserPage::OnNext): Ditto.
775 (ChooserPage::OnBack): Ditto.
776 * desktop.cc (DesktopSetupPage::OnBack): Replace use of IDD_CHOOSER
778 * fromcwd.cc (do_fromcwd): Replace use of IDD_CHOOSER with IDD_CHOOSE.
779 * ini.cc (do_ini_thread): Replace use of IDD_CHOOSER with IDD_CHOOSE.
780 * res.rc (IDD_CHOOSE): Remove dialog template.
781 (IDD_CHOOSER): Alter dialog template to fit wizard size and format.
783 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
785 * LogFile.cc (endLog): Work around an apparent libg++-3 bug causing
786 corrupt log file entries.
787 * geturl.cc: Convert to the new LogSingleton logging.
789 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
791 * ini.cc (do_remote_ini): Use setup.bz2 if it exists in preference to
794 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
796 * geturl.h: Declare getUrlToStream.
797 * geturl.cc (getUrlToStream): New function.
798 (get_url_to_membuf): Refactor to use getUrlToStream.
800 2002-05-11 Robert Collins <rbtcollins@hotmail.com>
802 * Makefile.am: Add a release target to automate some of the routine
804 * Makefile.in: Regenerate.
806 2002-05-11 Robert Collins <rbtcollins@hotmail.com>
808 * choose.cc (scan_downloaded_files): On local installs remove all
809 mirror sites if no cached copy of a package is found.
811 2002-05-10 Robert Collins <rbtcollins@hotmail.com>
813 * Makefile.in: Regenerate.
814 * iniparse.y: Use left recursion, not right in the lines rule to
815 avoid stack overflows.
816 * README: Update TODO's.
817 * io_stream_file.cc: Native builds need to include sys/stat.h
819 2002-05-06 John Marshall <jmarshall@acm.org>
821 * site.cc (SitePage::OnMessageCmd): recalculate navigation
822 button activation when "Add" is pressed.
823 (SitePage::CheckControlsAndDisableAccordingly): tweak comment.
825 2002-05-07 Robert Collins <rbtcollins@hotmail.com>
827 * Makefile.am (inlint_SOURCES): Add conditional objects to inilint
828 depending on platform.
830 * configure.in: Set conditional MINGWTARGET if compiling against mingw
832 * Makefile.in: Regenerate.
834 * io_stream_file.cc: Only use win32 calls when building for mingw.
836 2002-05-05 Robert Collins <rbtcollins@hotmail.com>
838 * Makefile.am (noinst_PROGRAMS): Make inilint configurable.
839 * configure.in: Ditto.
840 Fix incorrect header checking syntax.
841 * aclocal.m4: Regenerate.
842 * configure: Regenerate.
843 * Makefile.in: Regenerate.
844 * io_stream.cc: Remove platform specific and provider specific code.
845 (io_stream::registerProvider): New method, registers a Url provider with
847 Make all methods consistently throw invalid_argument exceptions when
848 a provider that is requested is not present.
849 (findProvider): New private function, finds a provider.
850 * io_stream.h: Declare io_stream::registerProvider.
851 * io_stream_cygfile.cc: Create a Provider class to register with
853 * io_stream_file.cc: Ditto.
854 * archive.cc: Remove unneeded includes.
855 * archive_tar.cc: Remove unneeded includes.
856 * archive_tar.h: Add required include.
857 * archive_tar_file.cc: Remove unneded includes.
858 * choose.cc: Remove unneeded includes:
860 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
862 * io_stream.cc: Use the new log interface thruout.
864 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
866 * log.cc (log): Reimplement via LogSingleton.
868 (exit_setup): Remove.
869 * log.h (log_save): Remove.
870 (exit_setup): Remove.
871 * LogSingleton.cc: New file.
872 * LogSingleton.h: New file.
873 * LogFile.cc: New file.
874 * LogFile.h: New file.
875 * Makefile.am (inilint_SOURCES): Add the new log interface.
876 (setup_SOURCES): Add the new log interface and the concrete File
878 * Makefile.in: Regenerate.
879 * archive.cc: Use the new log interface thruout.
880 * archive_tar.cc: Ditto.
882 * dialog.cc (fatal): Use the new log interface.
883 * ini.cc (do_ini_thread): Use the log interface to exit.
884 * isntall.cc (do_install_thread): Ditto.
885 * netio.cc (auth_cmd): Ditto.
886 * msg.cc (fatal): Ditto.
887 * localdir.cc (save_local_dir): Save to different files depending on
888 the mode, and if a root dir exists.
890 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
892 * IniDBBuilder.cc: New file.
893 * IniDBBuilder.h: New file.
894 * IniDBBuilderPackage.cc: New file.
895 * IniDBBuilderPackage.h: New file.
896 * PackageTrust.h: New file.
897 * IniState.h: Remove, wasn't thought out well enough.
898 * Makefile.am (inilint_SOURCES): Add more requirements.
899 (setup_SOURCES): Add new Builder base and concrete classes.
900 * Makefile.in: Regenerate.
901 * String++.cc (String::String): Implement int contructor.
902 * String++.h (String): Declare int constructor.
903 * archive_tar.cc (archive_tar::next_file_name): Return String() when
905 * archive_tar.h (archive_tar_file): Remove get_next_filename method,
907 * ini.cc: Replace IniState wuth IniDBBuilderPacakge.
908 (find_routine): Use new IniDBBuilder to configure the parser.
909 (do_local_ini): Ditto.
910 (do_remote_ini): Ditto.
911 * ini.h: Use IniDBBuilder to initialise parsing.
912 * inilex.l (MD5): Parse the MD5 string correctly, we had the nibbles
914 (ini_init): Use an IniDBBuilder rather than static variables.
915 * iniparse.y: Hand off all the object creation to a builder, rather
916 than hardcoding the behaviour. This allows run-time configured
918 * io_stream_cygfile.h (io_stream_cygfile): Remove get_next_filename
919 method, it's not needed.
920 * io_stream_file.h (io_stream_file): Ditto.
921 * mount.cc (cygpath): Return String() for missing mounts.
922 * package_meta.cc (packagemeta::SDesc): Return String() for blank
924 * package_meta.h (trusts): Remove - replaced by PackageTrust.h.
925 (packagemeta::packagemeta): Fix incorrect syntax in String constructor
927 * cygpackage.cc (cygpackage::cygpackage): Fix incorrect syntax in
928 String constructor usage.
929 * site.h (site_list_type): Ditto.
931 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
933 * String++.h: Declare a << operator that accepts String objects.
934 * String++.cc: We need iostream for..
935 (operator <<): this. Provide a << operator that accepts String objects.
936 * ini.cc (yyerror): Remove the "C" classifier - it's not needed.
937 Change from vargs to a String parameter.
938 * inilintmail.cc: Remove the gui related headers.
939 (yyerror): Implement this for parsing.
940 * iniparse.y: Use the new yyerror syntax.
942 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
944 * Makefile.am: Add IniState.h.
945 * Makefile.in: Regenerate.
946 * IniState.h: New file.
947 * choose.cc: Don't include ini.h - it's not needed.
948 * configure: Regenerate.
949 * desktop.cc: Don't include ini.h - it's not needed.
950 * download.cc: Ditto.
952 * ini.cc: Use IniState.h to track each parsing calling.
953 (find_routine): Ditto.
954 (do_remote_ini): Ditto.
955 (do_ini_thread): Ditto.
956 * ini.h (ini_init): Adjust parameters to include state object.
957 * inilex.l: Declare parser state variable.
958 (ini_init): Adjust parameters to include state object.
959 * iniparse.y: Remove obsolete setup_timestamp and setup_version
961 (setup_header): Use new state variable to track time and version.
962 (add_correct_version): Ditto.
963 * install.cc: Don't include ini.h - it's not needed.
965 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
967 * nio-files.cc (NetIO): Use io_stream syntax for get_file_size.
968 * io_stream_file.cc: Don't include filemanip.h.
969 (io_stream_file::get_size): Implement here to remove filemanip
971 * io_stream_cygfile.cc: Don't include filemanip.h.
972 (io_stream_cygfile::get_size): Implement here to remove filemanip
974 Implement a stat based version for when win32 is not available.
975 * filemanip.h (get_file_size): Return size_t - it's more appropriate.
976 * filemanip.cc: Don't include win32.h - be platform independent.
977 Include strings.h and io_stream.h as part of that.
978 (get_file_size): Leverage io_streams and remove win32 implementation.
979 * download.cc (check_for_cached): Use io_stream syntax for
981 (download_one): Ditto.
983 2002-05-02 Robert Collins <rbtcollins@hotmail.com>
985 * configure.in: Correct a typo in last change.
986 * configure: Regenerate.
987 * Makefile.in: Regenerate.
989 2002-05-02 Robert Collins <rbtcollins@hotmail.com>
991 * configure.in: Check for string.h and string.
992 * configure: Regenerate.
993 * Makefile.in: Regenerate.
995 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
997 * res.rc (IDD_SPLASH): Remove white box.
999 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
1001 Oops! forgot to list these in the last checkin.
1002 * inilintmain.cc: New file.
1003 * md5.h: New file - imported md5 source, BSD style licence.
1004 * md5.cc: New file - imported md5 source, BSD style licence.
1005 * Exception.cc: New file.
1006 * Exception.h: New file.
1007 * MD5++.cc: New file.
1008 * MD5++.h: New file.
1010 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
1012 * Makefile.am (AM_CFLAGS): Remove -mwindows, it's a linker flag.
1013 Remove -fno-rtti, we need it for exceptions.
1014 (AM_CXXFLAGS): Ditto.
1015 (WARNONLY_CFLAGS): Ditto.
1016 (EXTRA_PROGRAMS): Add with initial linter sources - not functional yet.
1017 (setup_LDFLAGS): Add and set to -mwindows.
1018 (setup_SOURCES): Add new sources.
1019 * Makefile.in: Regenerate.
1020 * README: Update TODO.
1021 * choose.cc (scan_downloaded_files): Use ini information if it's
1023 * configure: Regenerate.
1024 * download.cc (check_for_cached): Make reusable from elsewhere.
1025 Throw exceptions on errors (as opposed to failures).
1026 Check MD5 sum when it's known.
1027 (download_one): Never force a download.
1028 Handle corrupt package exceptions.
1029 * ini.cc (find_routine): Reverse escape the URL to correctly identify
1031 * inilex.l (MD5): Provide a parsing rule (note: lowercase is required).
1032 * iniparse.y: Allow calculation of MD5 sums, and allow src only
1034 (process_src): New helper function.
1035 * isntall.cc (install_one_source): Check MD5 sums when possible.
1036 Throw exceptions on errors.
1037 (do_install_thread): Handle exceptions for installation calls.
1038 * package_source.h: Store MD5 information.
1039 * propsheet.cc (PropSheet::Create): Add a useful comment.
1040 * res.rc (IDS_INSTALL_ERROR): Define.
1041 (IDS_CORRUPT_PACKAGE): Define.
1042 * resource.h (IDS_INSTALL_ERROR): Define.
1043 (IDS_CORRUPT_PACKAGE): Define.
1044 * rfc1738.cc (rfc1738_unescape_part): Implement.
1045 * rfc1738.h (rfc1738_unescape_part): Declare.
1047 2002-04-29 Robert Collins <rbtcollins@hotmail.com>
1049 * Makefile.am: Remove dependecy rules that automake emits.
1050 Correct badly copied dependency info for manually compiled files.
1051 (setup_SOURCES): Add all used headers.
1052 (EXTRA_DIST): Include non compilate but required sources.
1053 (setup_LDADD): Remove mingw32, it is autodetected.
1054 * Makefile.in: Regenerate.
1055 * String++.h: sys/types is a system header.
1056 * choose.cc (do_choose_thread): Make into a Win32 thread routine.
1058 (ChooserPage::OnMessageApp): Use Win32 threads. (_beginthread is not
1060 * configure: Regenerate.
1061 * configure.in: Check for mingw32/cygwin specific headers and libraries.
1062 * cygpackage.h: Include the win32.h header to get correct macro
1063 definitions in all situations.
1064 * download.cc (do_download_reflector): Make into a Win32 thread routine.
1066 (do_download): Use Win32 threads.
1068 * install.cc: Ditto.
1069 * (WinMain): Adjust to build valid command line using application
1070 under both mingw32 and cygwin.
1071 * mount.cc (set)cygdrive_flags): Create new system flags if the
1072 user requests system and the value does not exist.
1073 * nio-http.cc: Define a _strnicmp for cygwin.
1074 * package_db.cc: Include <errno.h> if it exists.
1075 * site.cc (do_download_site_info_thread): Make into a Win32 thread
1078 (do_download_site-Info): Use Win32 threads.
1079 * state.cc: Explicity declare variables to avoid header conflicts
1080 caused by '#define extern" on cygwin.
1081 * win32.h: Include <alloca.h> if it exists.
1082 (_MAX_PATH): Define as MAX_PATH when not defined by windows.h.
1083 (_access): Define as access if not defined by windows.h.
1085 2002-04-27 Robert Collins <rbtcollins@hotmail.com>
1087 * compress_gz.cc (compress_gz::error): EOF is not an error condition.
1089 2002-04-27 Robert Collins <rbtcollins@hotmail.com>
1091 * Makefile.am: Add libgetopt++ to the subdirs list.
1092 Search the libgetopt++ header directory.
1093 Link against libgetopt++.la.
1094 (setup_SOURCES): Remove GetOption.cc and getopt.c and Option.cc.
1095 (setup_LDADD): Explicitly include res.o.
1096 * Makefile.in: Regenerate.
1097 * aclocal.m4: Regenerate.
1098 * bootstrap.sh: Call libtoolize.
1099 * configure: Regenerate.
1100 * configure.in: Add libtool support and configure libgetopt++.
1101 * desktop.cc (NoShortcutsOption): Turn into a BoolOption.
1102 (DesktopSetupPage::OnInit): Use the simpler syntax.
1103 * desktop.h: Remove dependency on Option.h, and remove NoShortcustOption
1105 * main.cc: Include getopt++/GetOption.h.
1106 (main): Use simpler syntax.
1110 * GetOption.h: Remove.
1111 * GetOption.cc: Remove.
1113 * Option.cc: Remove.
1115 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
1117 * Makefile.am: Add zlib and bz2lib to SUBDIRS.
1119 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
1121 * aclocal.m4: New file, cached macros.
1122 * bootstrap.sh: New file, calls required autotools in appropriate
1124 * Makefile.am: New file, input Makefile for automake.
1125 * Makefile,in: Now a generated file - regenerate.
1126 * configure: Regenerate.
1127 * configure.in: Add automake support.
1128 * inilex.l: Change VERSION to PACKAGEVERSION to avoid a collision with
1129 automake's VERSION define.
1130 * iniparse.y: Ditto.
1132 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
1134 * cdefs.h: New file, imported to allow getopt.c to build without
1136 * getopt.h: New file, imported to allow building without cygwin headers.
1138 * bz2lib: New directory, contains copy of bz2lib.
1139 * cfgaux: New directory, contains autotool helper scripts.
1140 * Makefile,in: Adjust library and target definitions for building
1141 outside the sourceware tree.
1142 * compress_bz.h: Use new bz2lib header location.
1143 * mount.cc: Import key defines and enums to be independent of cygwin
1145 * configure.in: Update to autoconf 2.53, and to be sourceware
1147 * configure: Regenerate.
1149 2002-04-12 Robert Collins <rbtcollins@hotmail.com>
1151 * mklink2.cc (make_link_2): Tweak to work with current w32api
1154 2002-04-10 Pavel Tsekov <ptsekov@gmx.net>
1156 * version.cc (canonicalize_version): Fix a call delete[]
1157 to delete the allocated address.
1159 2002-03-29 Robert Collins <rbtcollins@hotmail.com>
1161 * PickView.cc (PickView::set_headers): Set last_col correctly. Thanks
1162 to Ton van Overbeek for locating the bug area.
1164 2003-03-27 Robert Collins <rbtcollins@hotmail.com>
1166 * PickView.cc (PickView::insert_pkg): Be more generic with
1168 (PickView::insert_category): Ditto.
1169 (PickView::~PickView): Create.
1170 * PickView.h (PickView::~PickView): Declare.
1172 2003-03-27 Robert Collins <rbtcollins@hotmail.com>
1174 * Makefile.in (OBJS): Add new commandline objects.
1175 * desktop.cc (NoShortCutsOption): New option code.
1176 (DesktopSetupPage::OnInit): Check whether to skip shortcuts.
1177 * desktop.h (NoShortCutsOption): New concrete command line option class.
1178 * main.cc (WinMain): Process command line options.
1179 * GetOption.h: New file, singleton command line class.
1180 * GetOption.cc: New file, implementation of the above.
1181 * Option.h : New file, abstract option for GetOption.
1182 * Option.cc: New file, implement constructor and destructor.
1184 2002-03-26 Pavel Tsekov <ptsekov@gmx.net>
1186 * mkdir.cc (mkdir_p): Stop processing if the path is exhausted.
1188 2002-03-26 Ton van Overbeek <tvoverbe@cistron.nl>
1190 * PickPackageLine.cc (PickPackageline::paint): Adjust clipping rectangle
1191 to textheight, so large fonts work.
1193 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
1195 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Don't translate
1198 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
1200 * io_stream_cygfile.cc (cwd): New static for cwd storage.
1201 (io_stream_cygfile::normalise): New method.
1202 (io_stream_cygfile::io_stream_cygfile): Use it.
1203 (io_stream_cygfile::exists): Ditto.
1204 (io_stream_cygfile::remove): Ditto.
1205 (io_stream_cygfile::mklink): And again.
1206 (cygmkdir_p): Yes, again.
1207 (io_stream_cygfile::move): And once more.
1208 * io_stream_cygfile.h (io_stream_cygfile::normalise): Declare.
1209 (io_stream_cygfile::cwd): Ditto.
1211 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
1213 * package_meta.cc (package_meta::~package_meta): Remove duplicate.
1214 (CategoryPackage::~CategoryPackage): Ditto. (Thanks to Ton van
1215 Overbeek for the report).
1216 * mklink2.cc: Moved from mklink2.c to avoid 'not a prototype error'.
1217 Make g++ compatible.
1218 * mklink2.c: Remove.
1219 * site.cc (site_list_type::init): Delete the correct memory addres.
1220 Thanks to Pavel Tsekov for tracking this down.
1222 2002-03-20 Robert Collins <rbtcollins@hotmail.com>
1224 * win32.h: Only define alloca if it's not already.
1226 2002-03-20 Robert Collins <rbtcollins@hotmail.com>
1228 * package_meta.h (packamgemeta::trustp): Make 'test' choice leave installed
1230 * README: Update with latest requests.
1231 * Various: MTC fixes from setup200202 branch.
1233 2002-03-19 Christopher Faylor <cgf@redhat.com>
1235 * Makefile.in (setup_version.c): Add back magic which allows detection
1236 of setup.exe version number.
1238 2002-03-17 Robert Collins <rbtcollins@hotmail.com>
1240 * * PickPackageLine.cc (PickPackageLine::paint): Fix incorrect clip region
1241 calculation on win9x systems.
1243 2002-03-16 Robert Collins <rbtcollins@hotmail.com>
1245 * install.cc (install_one_source): Write the correct length of a string to the
1246 lst file (Thanks to Pavel Tsekov for reporting the bug).
1248 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
1250 * choose.cc (list_click): Always refresh the entire chooser, as our
1251 package state change mechanism is broken with the new improved list classes.
1253 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
1255 * desktop.cc (make_passwd_group): Check for .lnk suffix on /etc/passwd and
1258 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
1260 * PickPackageLine.cc (PickPackageLine::DrawCheck): New method factored out from
1262 (PickPackageLine::paint): Use DrawCheck to draw the src tick box, and the new
1264 (PickPackageLine::click): Handle the new bin tickbox.
1265 * PickPackageLine.h (PickPackageLine::DrawCheck): Declare this.
1266 * PickView.cc (pkg_headers): Add a Bin? column.
1267 (cat_headers): Ditto.
1268 (PickView::set_headers): Ditto.
1269 (PickView::init_headers): Ditto.
1270 * PickView.h (PickView): Ditto.
1271 * choose.cc (list_click): Use the new name for src_col to set the clip rectangle.
1273 2002-02-24 Michael A Chase <mchase@ix.netcom.com>
1275 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Fix up Robert's
1278 2002-02-24 Michael A Chase <mchase@ix.netcom.com>
1280 * desktop.cc (make_link): Add "file://" prefix to io_stream::mkpath_p()
1282 (make_passwd_group): Ditto.
1283 * localdir.cc (save_local_dir): Ditto.
1284 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Wrap long lines.
1285 Add "cygfile://" prefix to io_stream::open() calls.
1287 2002-02-24 Robert Collins <rbtcollins@hotmail.com>
1289 * log.cc (log_save): Fix creating /var/log.
1290 * packate_meta.cc (standard_dirs): Remove duplicate '/''s.
1292 2002-02-24 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1294 * res.rc (STRINGTABLE): Add IDS_CYGWIN_SETUP and
1295 IDS_CYGWIN_SETUP_WITH_PROGRESS strings.
1296 * resource.h: Add IDS_CYGWIN_SETUP and
1297 IDS_CYGWIN_SETUP_WITH_PROGRESS IDs.
1299 * splash.cc (OnInit): Qualify SetWindowText() call with global scope
1300 operator (::SetWindowText()).
1302 * threebar.cc: Run indent.
1303 (cistring.h): Add include.
1304 (SetText1, SetText2, SetText3): Qualify SetWindowText() call with
1305 global scope operator.
1306 (SetBar2): Add logic for writing percent complete into window title.
1308 * window.h: Run indent.
1309 (SetWindowText): New function.
1310 (String): Add forward declaration.
1311 * window.cc: Run indent.
1312 (String++.h): Add include.
1313 (SetWindowText): New function.
1315 2002-02-24 Robert Collins <rbtcollins@hotmail.com>
1317 * README: Update TODO list.
1318 * install.cc (install_one): Fix src package location.
1319 (do_install_thread): Fix creating directories.
1321 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1323 * choose.cc: Include cygpackage.h for scan2 use.
1324 (set_existence): Ignore setup.ini mirrors when installing from cwd.
1325 (scan2): Process any valid file.
1326 Add cache entries when a file matching a setup.ini listed version is found.
1327 * filemanip.cc (parse_filename): Remove pkgtar - not used anywhere else.
1328 * filemanip.h (filemanip::pkgtar): Remove.
1329 * package_meta.cc (CategoryPackage::~CategoryPackage): New method.
1330 (packagemeta::~packagemeta): Move from package_meta.h
1331 Remove and delete all version and category information.
1332 * package_meta.h (CategoryPackage): Create a destructor.
1333 (packagemeta::~packagemeta): Move to .cc file.
1335 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1337 * install.cc (install_one_source): Make NULL cached package names cause
1340 2002-02-18 Michael A Chase <mchase@ix.netcom.com>
1342 * desktop.cc (make_passwd_group): Don't create passwd-grp.bat
1345 2002-02-18 Michael A Chase <mchase@ix.netcom.com>
1347 * log.cc (log_save): Put "\n" at end of log lines instead of "'".
1349 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1351 * mount.cc (create_mount): Avoid a const char*->char* warning.
1352 (read_mounts): Ditto.
1354 2002-02-05 Jason Tishler <jason@tishler.net>
1356 * download.cc (do_download_thread): Fix off-by-one error.
1358 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1360 * configure.in (CXXFLAGS): Substitute at configure time, not runtime.
1361 * configure (CXXFLAGS): Regenerate.
1362 * Makefile.in (iniparse.o): Build via default rules - no errors now.
1363 * README: TODO list updates.
1365 2002-02-19 Michael A Chase <mchase@ix.netcom.com>
1367 * String++.cc (String::concat):: Remove.
1368 (String::vconcat):: Ditto.
1369 * String++.h (String::concat):: Remove.
1370 (String::vconcat):: Ditto.
1371 * archive_tar.cc: Don't include concat.h.
1372 * archive_tar_file.cc: Don't include concat.h.
1373 * compress_bz.cc (compress_bz::peek): Don't log unneeded messages.
1374 (compress_bz::seek): Ditto.
1375 (compress_bz::~compress_bz): Ditto.
1376 * compress_gz.cc (compress_gz::peek): Ditto.
1377 (compress_gz::error): Ditto.
1378 (compress_gz::~compress_gz): Ditto.
1379 * concat.cc (vconcat): Remove.
1381 * concat.h (vconcat): Remove.
1383 * desktop.cc (desktop_icon): Use new cygpath.
1384 (make_etc_profile): Ditto.
1386 (make_passwd_group): Ditto.
1388 (check_desktop): Remove concat use.
1389 (check_start_menu): Ditto.
1390 * download.cc (download_one): Use new mkpath_p correctly.
1392 * fromcwd.cc: Don't include concat.h.
1393 * geturl.cc (get_url_to_membuf): Use String log() call.
1394 (get_url_to_file): Ditto.
1395 * install.cc: Don't include concat.h.
1396 (uninstall_one): Use LOG_PLAIN.
1397 (replace_one): Ditto.
1398 (install_one_source): Ditto.
1399 (install_one): More char to String conversion.
1400 (do_install_thread): Use new cygpath.
1401 Use new create_mount.
1402 * io_stream.cc (io_stream::move): Use new log().
1403 * io_stream_cygfile (io_stream_cygfile::io_stream_cygfile): Use new cygpath.
1404 (io_stream_cygfile::exists): Ditto.
1405 (io_stream_cygfile::remove): Ditto.
1406 (io_stream_cygfile::mklink): Ditto.
1407 (io_stream_cygfile::write): Ditto.
1408 (cygmkdir_p): Ditto.
1409 (io_stream_cygfile::move): Ditto.
1410 * io_stream_file.cc: Don't include log.h.
1411 (io_stream_file::write): Don't log unneeded messages.
1412 * localdir.cc: Don't include concat.h.
1413 (LocalDirPage::OnNext): Use LOG_PLAIN.
1414 * log.cc: Don't include log.h.
1415 (exit_setup): Use new cygpath.
1416 * log.h (log_level): Add new level LOG_PLAIN.
1417 * main.cc (WinMain): Use new log().
1418 * mount.cc (SLASH_P): New macro from concat.h.
1419 (cygpath): Make String version globally visible.
1420 Remove varargs version.
1422 * msg.cc (mbox): Use LOG_PLAIN.
1423 * net.cc (NetPage::OnNext): Ditto.
1424 * nio-ftp.cc (ftp_line): Use new log().
1425 * nio-http.cc: Don't include log.h.
1426 (retry_get): Use alternative url variable.
1427 * package_db.cc: Don't include concat.h.
1428 (packagedb::flush): Don't use concat.
1429 * package_meta.cc: Don't include concat.h.
1430 (packagemeta::uninstall): Use new cygpath.
1431 * postinstall.cc (do_postinstall): Ditto.
1432 * root.cc (RootPage::OnNext): Use LOG_PLAIN.
1433 * script.cc: Don't include concat.h.
1434 (init_run_script): Use new cygpath.
1435 (run_script): More char * to String conversion.
1436 (try_run_script): Ditto.
1437 * site.cc: Don't include concat.h.
1438 (SitePage::OnNext): Use LOG_PLAIN.
1439 (SitePage::OnMessageCmd): Use new log().
1440 * source.cc (SourcePage::OnDeactivate): Use LOG_PLAIN.
1442 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1444 * Makefile.in (OBJS): Add new object.
1445 * PickCategoryLine.cc (PickCategoryLine::paint): Print a "+" before the name.
1446 * PickCategoryLine.h (PickCategoryLine::bucket): Use the String class.
1447 * PickLine.h (Pickline::key): Change to a String to help plug leaks.
1448 (PickLine::Pickline): Accept a String for the key.
1449 * PickPackageLine.cc (PickPackageLine::paint): Convert all char use to Strings.
1450 * PickPackageLine.h (PickPackageLine::PickPackageLine): The key is automatically
1452 * PickView.cc (PickView::note_width): Convert all char * use to Strings.
1453 (PickView::init_header): Move category length checking out of the inner loop for
1455 Convert all char use to Strings.
1456 * PickView.h: Include the String++ header.
1457 (PickView::note_width): Update the prototype.
1458 * String++.cc: New file, implements a reference counting string class.
1459 * String++.h: New file, declares a reference counting string class.
1460 * archive.cc: Include String++ instead of concat.
1461 (archive::extract_file): Convert char * usage to Strings.
1462 * archive.h: Inlude the String++ header.
1463 (archive::extract_file): Update prototype.
1464 (archive::next_file_name): Convert to a String.
1465 (archive::linktarget): Ditto.
1466 * archive_tar.cc (archive_tar::next_file_name): Convert to String usage.
1467 (archive_tar::linktarget): Ditto.
1468 * arhive_tar.h: Update the copyright.
1469 Explicitly include the relevant headers.
1470 (tar_map_result_type): Convert to String usage.
1471 (archive_tar::next_file_name): Update prototype.
1472 (archive_tar::linktarget): Ditto.
1473 * category.cc (Category::Category): Update initialisers.
1474 Convert to String usage.
1475 (Categorycmp): Update to String usage.
1476 * category.h: Include the String++ header.
1477 (Category::Category): Update to String usage.
1478 (Category::name): Ditto.
1479 (Category::key): Ditto.
1480 * choose.cc: Remove concat.h, it's not needed.
1481 (scan2): Update to String usage.
1483 * cygpackage.cc: Update includes for use of String class.
1484 (cygpackage::cygpackage): Update for String usage.
1485 (cygpackage::set_canonical_version): Ditto.
1486 (cygpackage::destroy): Ditto.
1487 (cygpackage::getfirstfile): Ditto.
1488 (cygpackage::getnextfile): Ditto.
1489 (cygpackage::Name): Ditto.
1490 (cygpackage::Vendor_version): Ditto.
1491 (cygpackage::Package_version): Ditto.
1492 (cygpackage::Canonical_version): Ditto.
1493 (cygpackage::set_sdesc): Ditto.
1494 (cygpackage::set_ldesc): Ditto.
1495 * cygpackage.h: Include String++.h for parsing this file.
1496 (cygpackage::cygpackage): Update for String usage.
1497 (cygpackage::set_canonical_version): Ditto.
1498 (cygpackage::destroy): Ditto.
1499 (cygpackage::getfirstfile): Ditto.
1500 (cygpackage::getnextfile): Ditto.
1501 (cygpackage::Name): Ditto.
1502 (cygpackage::Vendor_version): Ditto.
1503 (cygpackage::Package_version): Ditto.
1504 (cygpackage::Canonical_version): Ditto.
1505 (cygpackage::set_sdesc): Ditto.
1506 (cygpackage::set_ldesc): Ditto.
1507 (cygpackage::name): Ditto.
1508 (cygpackage::vendor): Ditto.
1509 (cygpackage::packagev): Ditto.
1510 (cygpackage::canonical): Ditto.
1511 (cygpackage::fn): Ditto.
1512 (cygpackage::sdesc): Ditto.
1513 (cygpackage::ldesc): Ditto.
1514 * desktop.cc: Update includes for use of String class.
1515 (batname): Update for String usage.
1518 (start)menu): Ditto.
1519 (desktop_icon): Ditto.
1520 (make_cygwin_bat): Ditto.
1521 (make_etc_profile): Ditto.
1523 (make_passwd_group): Ditto.
1525 (check_desktop): Ditto.
1526 (check_startmenu): Ditto.
1527 * dialog.cc (eget): Update for String usage.
1528 (egetString): New function.
1529 (eset): New variant for Strings.
1530 * dialog.h: Include String++.h for parsing this file.
1531 (egetString): New function.
1532 (eset): New variant for Strings.
1533 * diskfull.cc (diskfull): Update for String usage.
1534 * diskfull.h: Include String++.h for parsing this file.
1535 (diskfull): Update for String usage.
1536 * download.cc: Update includes for use of String class.
1537 (check_for_cached): Update for String usage.
1538 (download_one): Ditto.
1539 * filemanip.cc (get_file_size): Ditto.
1541 (parse_filename): Ditto.
1543 * filemanip.h: Include String++.h for parsing this file.
1544 (fileparse): Update for String usage.
1546 (parse_filename): Ditto.
1547 Don't consider '_' to be a separator.
1549 * find.cc: Update includes for use of String class.
1550 (find_sub): Make more flexible.
1551 (find): Update for String usage.
1552 * find.h (find): Use Strings.
1553 * fromcwd.cc (found_file): Update for String usage.
1555 (init_dialog): Ditto.
1556 (get_url_to_membuf): Ditto.
1557 (get_url_to_string): Ditto.
1558 (get_url_to_file): Ditto.
1560 (get_url_to_membuf): Ditto.
1561 (get_url_to_string): Ditto.
1562 (get_url_to_file): Ditto.
1564 (add_subdirs): Ditto.
1565 * ini.cc: Update includes for String usage.
1566 (find_routine): Update for String usage.
1567 (do_remote_ini): Ditto.
1568 (do_ini_thread): Ditto.
1569 * ini.h (ini_init): Ditto.
1570 * inilex.l: Update includes for String usage.
1571 (ini_init): Update for String usage.
1572 * iniparse.y: Ditto.
1573 (add_correct_version): Ditto.
1574 * install.cc: Update includes for String usage.
1575 (install_one_source): Update for String usage.
1576 (uninstall_one): Ditto.
1577 (replace_one): Ditto.
1578 (install_one_source): Ditto.
1579 (do_install_thread): Ditto.
1580 * io_stream.cc: Update includes for String usage.
1581 (io_stream::open): Update for String usage.
1582 (io_stream::mkpath_p): Ditto.
1583 (io_stream::remove): Ditto.
1584 (io_stream::mklink): Ditto.
1585 (io_stream::move_copy): Ditto.
1586 (io_stream::move): Ditto.
1587 (io_stream::exists): Ditto.
1588 * io_stream.h: Update includes to allow correct parsing.
1589 (io_stream::open): Update for String usage.
1590 (io_stream::mkpath_p): Ditto.
1591 (io_stream::remove): Ditto.
1592 (io_stream::mklink): Ditto.
1593 (io_stream::move_copy): Ditto.
1594 (io_stream::move): Ditto.
1595 (io_stream::exists): Ditto.
1596 * io_stream_cygfile.cc: Update includes for String usage.
1597 (get_root_dir_now): Update for String usage.
1598 (io_stream_cygfile::io_stream_cygfile): Ditto.
1599 (io_stream_cygfile::~io_stream_cygfile): Ditto.
1600 (io_stream_cygfile::exists): Ditto.
1601 (io_stream_cygfile::remove): Ditto.
1602 (io_stream_cygfile::mklink): Ditto.
1603 (cygmkdir_p): Ditto.
1604 (io_stream_cygfile::set_mtime): Ditto.
1605 (io_stream_cygfile::move): Ditto.
1606 (io_stream_cygfile::get_size): Ditto.
1607 * io_stream_cygfile.h: Update includes for String usage.
1608 (io_stream_cygfile::io_stream_cygfile): Update for String usage.
1609 (io_stream_cygfile::~io_stream_cygfile): Ditto.
1610 (io_stream_cygfile::exists): Ditto.
1611 (io_stream_cygfile::remove): Ditto.
1612 (io_stream_cygfile::mklink): Ditto.
1613 (cygmkdir_p): Ditto.
1614 (io_stream_cygfile::set_mtime): Ditto.
1615 (io_stream_cygfile::move): Ditto.
1616 (io_stream_cygfile::get_size): Ditto.
1617 (io_stream_cygfile::fname): Ditto.
1618 (io_stream_cygfile::lmode): Ditto.
1619 * io_stream_file.cc: Update includes for String usage.
1620 (io_stream_file::io_stream_file): Update for String usage.
1621 (io_stream_file::~io_stream_file): Ditto.
1622 (io_stream_file::exists): Ditto.
1623 (io_stream_file::remove): Ditto.
1624 (io_stream_file::mklink): Ditto.
1625 (io_stream_file::set_mtime): Ditto.
1626 (io_stream_file::move): Ditto.
1627 (io_stream_file::get_size): Ditto.
1628 * io_stream_file.h: Update includes for String usage.
1629 * io_stream_file.cc: Update includes for String usage.
1630 (io_stream_file::io_stream_file): Update for String usage.
1631 (io_stream_file::~io_stream_file): Ditto.
1632 (io_stream_file::exists): Ditto.
1633 (io_stream_file::remove): Ditto.
1634 (io_stream_file::mklink): Ditto.
1635 (io_stream_file::set_mtime): Ditto.
1636 (io_stream_file::move): Ditto.
1637 (io_stream_file::get_size): Ditto.
1638 (io_stream_file::fname): Ditto.
1639 (io_stream_file::lmode): Ditto.
1640 * localdir.cc: Update includes for String usage.
1641 (save_local_dir): Update for String usage.
1642 (check_if_enable_next): Ditto.
1643 (load_dialog): Ditto.
1645 (LocalDirPage::OnInit): Ditto.
1646 (LocalDirPage::OnNext): Ditto.
1647 * log.cc: Update includes for String usage.
1648 (struct LogEnt): Update for String usage.
1651 (exit_setup): Ditto.
1652 * log.h: Update includes for String usage.
1653 (log_level): Update for String usage.
1656 * main.cc (WinMain): Update for String usage.
1657 * mklink2.c (make_link_2): Update for String usage.
1658 * mklink2.h (make_link_2): Update for String usage.
1659 * mount.cc: Update includes for String usage.
1660 (mount_table): Update for String usage.
1662 (create_mount): Ditto.
1664 (remove_mount): Ditto.
1665 (read_mounts): Ditto.
1666 (set_root_dir): Ditto.
1667 (get_root_dir): Ditto.
1668 (path_prefix_p): Ditto.
1670 * mount.h: Update includes for String usage.
1671 (create_mount): Update for String usage.
1672 (remove_mount): Ditto.
1674 (set_root_dir): Ditto.
1675 (get_root_dir): Ditto.
1676 * msg.cc (mbox): Ditto.
1677 * net.cc (NetPage::OnNext): Ditto.
1678 * package_db.cc (packagedb::flush): Ditto.
1679 (packagedb::packages): Ditto.
1680 (packagedb::categories): Ditto.
1681 * package_db.h: Update includes for String usage.
1682 (packagedb::packages): Update for String usage.
1683 (packagedb::categories): Ditto.
1684 * package_meta.cc: Update includes for String usage.
1685 (hash::add_subdirs): Update for String usage.
1686 (packagemeta::uninstall): Ditto.
1687 (packagemeta::SDesc): Ditto.
1688 (packagemeta::action_caption): Ditto.
1689 * package_meta.h: Update includes for String usage.
1690 (packagemeta::packagemeta): Update for String usage.
1691 (packagemeta::~packagemeta): Ditto.
1692 (packagemeta::uninstall): Ditto.
1693 (packagemeta::SDesc): Ditto.
1694 (packagemeta::action_caption): Ditto.
1695 (package_source.cc site::site): Ditto.
1696 (packagesource::set_canonical): Ditto.
1697 (packagesource::set_cached): Ditto.
1698 * package_source.h: Update includes for String usage.
1699 (site::site): Update for String usage.
1700 (packagesource::set_canonical): Ditto.
1701 (packagesource::set_cached): Ditto.
1702 (packagesource::packagesource): Ditto.
1703 (packagesource::sites): Ditto.
1704 (packagesource::cached): Ditto.
1705 * package_version.h: Update includes for String usage.
1706 (Dependency): Update for String usage.
1707 (packageversion): Ditto.
1708 * postinstall.cc: Update includes for String usage.
1709 (do_postinstall): Update for String usage.
1710 * res.rc (IDD_LOCAL_DIR): Fix typo again!
1711 * rfc1738.cc (rfc1738_escape_part): Update for String usage.
1712 * rfc1738.h: Update includes for String usage.
1713 (rfc1738_escape_part): Update for String usage.
1714 * root.cc: Update includes for String usage.
1715 (check_if_enable_next): Update for String usage.
1716 (save_dialog): Ditto.
1718 (directory_is_absolute): Ditto.
1719 (directory_is_rootdir): Ditto.
1720 (directory_has_spaces): Ditto.
1721 (RootPage::OnInit): Ditto.
1722 (RootPage::OnNext): Ditto.
1723 * script.cc: Update includes for String usage.
1724 (init_run_script): Update for String usage.
1726 (run_script): Ditto.
1727 (try_run_script): Ditto.
1728 * script.h: Update includes for String usage.
1729 (run_script): Update for String usage.
1730 (try_run_script): Ditto.
1731 * site.cc site_list): Ditto.
1732 (all_site_list): Ditto.
1733 (other_url): Eliminate.
1734 (site_list_type::init): Update for String usage.
1735 (site_list_type::site_list_type): Ditto.
1736 (get_site_list): Ditto.
1737 (get_saved_sites): Ditto.
1738 (do_download_site_info_thread): Ditto.
1739 (SitePage::OnNext): Ditto.
1740 (SitePage::OnActivate): Ditto.
1741 (SitePage::PopulateListBox): Ditto.
1742 (SitePage::OnMessageCmd): Handle empty url's.
1743 * site.h: Update includes for String usage.
1744 (site_list_type::site_list_type): Update for String usage.
1745 (site_list_type::init): Ditto.
1746 (site_list_type::~site_list_type): Ditto.
1747 (site_list_type::url): Ditto.
1748 (site_list_type::displayed_url): Ditto.
1749 (site_list_type::key): Ditto.
1750 * source.cc (SourcePage::OnDeactivate): Ditto.
1751 * state.h: Update includes for String usage.
1752 (local_dir): Update for String usage.
1753 (trust_level): Remove.
1754 * version.cc: Update includes for String usage.
1755 (canonicalize_version): Update for String usage.
1756 * version.h: Update includes for String usage.
1757 (canonicalize_version): Update for String usage.
1759 2002-02-15 Christopher Faylor <cgf@redhat.com>
1761 * filemanip.c (parse_filename): Revert previous change.
1763 2002-02-14 Christopher Faylor <cgf@redhat.com>
1765 * filemanip.c (parse_filename): Don't treat '_' as a version number
1768 2002-01-29 Christopher Faylor <cgf@redhat.com>
1770 * configure: Regenerate.
1772 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
1774 * res.rc (IDD_LOCAL_DIR): Fix typo reported by Rene
1775 <Hoeck@extern.lrz-muenchen.de>
1777 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
1779 * README: Update Todo's.
1780 * list.h: Run indent.
1781 (list): New methods checksize and insert to reduce code duplication.
1782 (list::registerbykey): Use them.
1783 (list::registerbyobject): Ditto.
1784 (list::removebyindex): Copy each object individually - safe for non
1786 (list::checksize): Implement.
1787 (list::insert): Implement.
1789 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
1791 * Makefile.in: Remove the dlmalloc object by default.
1792 * install.cc (do_install_thread): Remove the mallinfo call for 'working
1793 around' the crashing issue.
1794 * package_db.h: Include <string.h> - it's needed to parse this.
1795 * package_source.cc (site::site): Move here from the header file.
1796 * package_source.h (site): Stop the constructor being inlinable.
1798 2002-01-26 Robert Collins <rbtcollins@hotmail.com>
1800 * filemanip.cc (find_tar_ext): Add a descriptive comment.
1802 2002-01-25 Michael A Chase <mchase@ix.netcom.com>
1804 * filemanip.cc (find_tar_ext): Clean up tests for .tar.gz and .tar.
1805 * fromcwd.cc (do_fromcwd): Expand FIXME comment in source file check.
1806 * install.cc (install_one_source): Add space between words in log()
1809 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1811 * log.cc (exit_setup): When saving to the download dir, explicity
1814 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1816 * archive.cc (extract_file): Separate out the prefix and the URL
1818 * archive.h (archive::extract_file): Ditto.
1819 * install.cc (install_one_source): Ditto. Use the new
1820 archive::extract_file syntax.
1821 (replace_one): Use the new syntax.
1822 (io_stream.cc): Add some log info for links.
1824 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1826 * PickCategoryLine.cc (PickCategoryLine::actiontext): Remove.
1827 (PickCategoryLine::paint): Use the new action method.
1828 (PickCategoryLine::click): Set the action for all children.
1829 (PickCategoryLine::set_action): New method.
1830 * PickCategoryLine.h (PickCategoryLine::-actions): Remove.
1831 (PickCategoryLine::current_default): Use packagemeta _actions class.
1832 * PickLine.h (PickLine::set_action): New abstract method that requires
1833 including package_meta.h.
1834 * PickPackageLine.cc (PickPackageLine::set_action): New method.
1835 * PickPackageLine.h (PickPackageLine::set_action): Declare this.
1836 * list.h (getbykey): A const correctness fix.
1837 * package_meta.cc: Run indent.
1838 (packagemeta::Default_action): New const.
1839 (packagemeta::Install_action): Ditto.
1840 (packagemeta::Reinstall_action): Ditto.
1841 (packagemeta::Uninstall_action): Ditto.
1842 (packagemeta::_actions::caption): New method.
1843 (packagemeta::_actions::operator++): Ditto.
1844 (packagemeta::set_action): New overload.
1845 * package_meta.h (packagemeta::_actions): New class.
1846 (packagemeta::set_action): Declare this.
1848 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1850 * Makefile.in (OBJS): Remove supp.o - it appears accidental.
1851 * choose.cc: Don't define alloca anymore, it's done in win32.h
1853 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1855 * PickPackageLine.cc: New file.
1856 * PickPackageLine.h: New file.
1857 * PickLine.cc: New file.
1858 * PickLine.h: New file.
1859 * PickCategoryLine.cc: New file.
1860 * PickCategoryLine.h: New file.
1861 * PickView.cc: New file.
1862 * PickView.h: New file.
1863 * Makefile.in: Add new objects to setup.exe.
1864 Backout -fno-exceptions option.
1865 * choose.cc: Include PickView.h.
1866 Remove view related defines and static variables.
1867 (_pkg_headers): Moved to PickView.cc.
1868 (_cat_headers): Ditto.
1869 (view::views::Unknown): Ditto.
1870 (view::views::PackageFull):
1871 (view::views::Package):
1872 (view::views::Category):
1873 (pkgtrustp): Moved to package_meta.cc.
1874 (add_required): Moved to package_meta.cc.
1875 (pick_category_line::empty): Moved to PickCategoryLine.cc
1876 (paint): Adjust for moved static variables.
1877 (view::scroll): Moved to PickView.cc.
1878 (list_vscroll): Adjust for moved static variables.
1879 (list_hscroll): Ditto.
1880 (list_click): Ditto.
1881 (note_width): Moved to PickView.cc.
1882 (view::view): Ditto.
1883 (view::set_view_mode): Ditto.
1884 (view::mode_caption): Ditto.
1885 (view::views::caption): Ditto.
1886 (view::set_headers): Ditto.
1887 (DoInsertItem): Ditto.
1888 (view::init_headers): Ditto.
1889 (view::insert_pkg): Ditto.
1890 (view::insert_category): Ditto.
1891 (view::clear_view): Ditto.
1892 (view::views::operator++): Ditto.
1893 (view::click): Ditto.
1894 (default_trust): Adjust for moved statics.
1895 (pick_pkg_line::paint): Moved to PickPackageLine.cc.
1896 (pick_pkg_line::click): Ditto.
1897 (pick_category_line::actiontext): Moved to PickCategoryLine.cc
1898 (pick_category_line::paint): Ditto.
1899 (pick_category_line::click): Ditto.
1900 (set_view_mode): Adjust for moved statics.
1901 (create_listview): Ditto.
1902 * choose.h: Remove Category and packagemeta forward defines - not needed.
1903 Don't include unneeded headers list and package_meta.
1904 (_header): Move to PickView.h.
1905 (pick_line): Move to PickLine.h.
1906 (pick_pkg_line): Move to PickPackageLine.h.
1907 (pick_category_line): Move to PickCategoryLine.h.
1908 (view): Move to PickView.h.
1909 * ini.h (trusts): Move to package_meta.h.
1910 * package_meta.h (trusts): New enum.
1911 (packagemeta::set_requirements): New helper method.
1912 (packagemeta::trustp): Ditto.
1914 2002-01-21 Christopher Faylor <cgf@redhat.com>
1916 * choose.h (view): Move forward declaration of views into public area
1917 or g++ v3 will complain.
1919 2002-01-21 Christopher Faylor <cgf@redhat.com>
1921 * Makefile.in (CXXFLAGS): Add -fno-exceptions.
1922 * win32.h (alloca): Define as __builtin_alloca.
1923 * io_stream_memory.cc: Add include file.
1925 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
1927 * archive_tar.cc (archive_tar::~archive_tar): Mark the stream as destroyed.
1928 * archive_tar_file.cc (archive_tar_file::~archive_tar_file): Ditto.
1929 * compress.cc (compress::~compress): Be less verbose.
1930 * compress_bz.cc (compress_bz::~compress_bz): Ditto.
1931 Mark the stream as destroyed.
1932 * compress_gz.cc (compress_gz::~compress_gz): Mark the stream as destroyed.
1933 * io_stream.cc (io_stream::~io_stream): Only warn when the stream is not marked
1935 * io_stream_cygfile.cc (io_stream_cygfile::~io_stream_cygfile): Mark the
1936 stream as destroyed.
1937 * io_stream_file.cc (io_stream_file::~io_stream_file): Ditto.
1938 * io_stream_memory.cc (io_stream_memory::~io_stream_memory): Ditto.
1940 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
1942 * Makefile.in (CFLAGS): Allow customisable malloc debug flags.
1943 (OBJS): Link in malloc objects.
1944 * category.cc (category): Use new char, not strdup.
1945 * choose.cc (pick_pkg_line::paint): Allow for the regionsize to shrink.
1946 (do_choose): Use new char, not malloc.
1947 * concat.cc (vconcat): Ditto.
1948 * cygpackage.cc (cygpackage): Use new char, not strdup.
1949 (set_canonical_version): Ditto.
1950 (cygpackage::destroy): Use delete[], not free.
1951 * desktop.cc (uexists): Ditto.
1952 * dialog.cc (egest): Use new char, not strdup.
1953 * dlmalloc.c: New file - Doug Lea's malloc 2.7.0
1954 * hash.cc (hash::hash): Use delete instead of free.
1955 (hash::add): Use new char, not strdup.
1956 * ini.cc (do_remote_ini): Use delete[] not free.
1957 * inilex.l: Use new char, not strdup.
1959 * iniparse.y: Ditto.
1960 Use a local package_db rather than a static one.
1961 * install.cc (struct mallinfo): Workaround an apparent dlmalloc bug.
1962 (do_install_thread): Call mallinfo to force a consistency check. Appears
1963 to fix a 'inuse' error in -DDEBUG builds.
1964 Use delete[] for strings.
1965 * io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile): Use new char,
1967 (io_stream_cygfile::~io_stream_cygfile): Use delete[], not free.
1968 (io_stream_cygfile::remove): Use new char, not strdup.
1969 * io_stream_file.cc (io_stream_file::io_stream_file): Use new char, not strdup.
1970 (io_stream_file::io_stream_file): Use delete[], not free.
1971 (io_stream_file::remove): Use new char, not strdup.
1972 * io_stream_memory.cc (memblock::~memblock): Use delete[], not free.
1973 * io_stream_memory.h (memblock): Use new char, not malloc.
1974 * localdir.cc (LocalDirPage::OnInit): Use new char, not strdup.
1975 * main.cc (WinMain): Use new char, not strdup.
1976 * mount.cc (find2): Use new char, not malloc.
1977 (read_mounts): Ditto.
1978 (cygpath): Use new char, not strdup.
1979 * netio.cc (NetIO::~NetIO): Use delete[], not free.
1980 (NetIO::set_url): Use new char, not strdup.
1981 (NetIO::get_ftp_auth): Use delete[], not free.
1982 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
1983 Use new char instead of strdup.
1984 * nio-http.cc (base64_encode): Use new char, not malloc.
1985 * package_meta.cc (hash::add_subdirs): Use new char instead of strdup.
1986 * package_source.h (~ packagesource): Use delete[] instead of delete.
1987 * port.h (strdup): Deprecate the use of strdup.
1988 * rfc1738.cc (rfc1738_do_escape): Use new char, not calloc.
1989 * script.cc (init_run_script): Us delete[], not free.
1990 (run_script): Ditto.
1991 * simpsock.cc (SimpleSocket::fill): Use new char, not malloc.
1992 (SimpleSocket::invalidate): Use delete[], not free.
1993 * site.cc (site_list_type::init): Use new char instead of strdup.
1994 * site.h (~site_list_type): Use delete[], not free.
1996 2002-01-20 Robert Collins <rbtcollins@hotmail.com>
1998 * Makefile.in (OBJS): Add win32.o - win32 support functions.
1999 * README: Update todos.
2000 * archive.cc (extract_file): Support a suffix for appending to extracted files.
2002 * choose.cc (set_view_mode): Use the new view::views class.
2003 (view::views::Unknown): New static for defaulting view::views variables.
2004 (view::views::PackageFull): New static for the current view.
2005 (view::views::Package): Ditto.
2006 (view::views::Category): Ditto.
2007 (topbucket::paint): Remove.
2008 (topbucket::empty): Rename to pick_category_line::empty.
2009 (topbucket::~topbucket): Remove.
2010 (paint): Use the new view::views class.
2011 Don't paint 'all' as a category when showing package categoies.
2012 (pick_category_line::actiontext): New method.
2013 (pick_category_line::paint): Make showing the category optional, and show the
2015 (pick_category_line::click): Make showing the category optional, and
2016 differentiate between the name being clicked, and the action description.
2017 (view::view): Use the new view::views class.
2018 (view::set_view_mode): Ditto.
2019 (view::mode_caption): Ditto.
2020 (view::views::caption): New method.
2021 (view::set_headers): Use the new view::views class.
2022 (view::clear_view): Ditto.
2023 (viewsplusplus): Replaced by
2024 (view::views::operator++): New operator.
2025 (set_view_mode): Use the new view::views class.
2026 (create_listview): Ditto.
2027 (dialog_cmd): Ditto.
2028 * choose.h (actions): Remove.
2030 (pick_line): Add a new convenience constructor.
2031 (top_bucket): Remove.
2032 (pick_category_line): Reparent under pick_line, and adsorb top_bucket.
2033 (view::views): New class.
2034 * ini.h: Don't include choose.h
2035 (is_download_action): Remove.
2036 (is_upgrade_action): Remove.
2037 (is_uninstall_action): Remove.
2038 (is_full_action): Remove.
2039 * install.cc (num_replacements): New static.
2040 (rebootneeded): Ditto.
2041 (replace_one): Handle upgrades separate from removal or new installs.
2042 (install_one_source): Handle in use files.
2043 (install_one): Don't repeat upgrades.
2044 (do_install_thread): Initialize new statics.
2045 Order actions as uninstall, replace, install.
2046 Warn about rebooting if needed.
2047 * res.rc (IDS_REBOOT_REQUIRED): New string.
2048 * resource.h (IDS_REBOOT_REQUIRED): Give value.
2049 * win32.h: Declare class Win32, and update copyright and intent message.
2050 * win32.cc: New file.
2052 2002-01-15 Corinna Vinschen <corinna@vinschen.de>
2054 * io_stream.cc (io_stream::gets): Eliminate trailing new line chars.
2055 * package_meta.cc (packagemeta::uninstall): Check for additional
2056 Windows shortcut. Unset R/O file attribute before trying to delete
2059 2002-01-09 Robert Collins <rbtcollins@hotmail.com>
2061 * choose.cc (pkgtrustp): Fall back to installed if a package is not present in
2062 the current trust level. For prev, fall back via curr.
2063 (set_existence): Allow sources with no sites, but cached files to be
2065 (pick_category_line::paint): Start drawing clickable categories.
2066 * fromcwd.cc (found_file): Reinstate local file scanning.
2068 2002-01-07 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2070 * fromcwd.cc: Run indent.
2071 (do_fromcwd): Reverse sense of comment. Set next_dialog
2072 to IDD_CHOOSER instead of IDD_CHOOSE.
2073 * ini.cc (find_routine): Remove "/" from "/setup.ini".
2075 2001-01-07 Robert Collins <rbtcollins@hotmail.com>
2077 * category.cc (Categorycmp): Add a const safe version.
2078 * category.h (Categorycmp): Add a const safe version.
2079 (Category): Add operator ==.
2080 * choose.cc (fill_missing_category): Add every package to "All".
2081 (pick_category_line::paint): Add support for hidden labels, and a tree depth.
2082 (pick_category_line::click): Ditto.
2083 (view::view): Pass in a top level category to use.
2084 (view::insert_pkg): Special case - skip category "All".
2085 (view::insert_category): Ditto.
2086 (view::clear_view): Set the contents label state.
2087 (create_listview): Pass in a top level category to view().
2088 * choose.h (topbucket): Make bucket available to derived classes.
2089 (pick_category_line): Add support for hidden labels, and a tree depth.
2090 Remove our second copy of bucket.
2091 (view): Pass in a top level category to the constructor.
2092 Use pick_category_line to allow three level display.
2094 2001-01-06 Robert Collins <rbtcollins@hotmail.com>
2096 * cygpackage.h (cygpackage): Make set_[s|l]desc virtual.
2097 * iniparse.y (add_correct_version): Copy descriptions across.
2098 * package_meta.cc (SDesc): Iterate through versions, return the first with a
2100 * package_version.h (packageversion): Add new virtuals set_[l|s]desc.
2102 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
2104 * script.cc (run_script): Change cygpath:// to cygfile://.
2105 * install.cc (do_install_thread): Fix off-by-one errors.
2107 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
2109 * package_db.cc (packagedb::flush): Fix an off-by-one error.
2111 2002-01-04 Jan Nieuwenhuizen <janneke@gnu.org>
2113 * Makefile.in (realclean): more clean.
2114 (OBJS): Add script.o.
2115 * postinstall.cc (run_script_in_etc_postinstall): New function.
2116 (do_postinstall): Split off new funtion init_run_script ().
2119 (run_script): Move to script.cc. Replace some deprecated remove
2122 * script.cc: New file.
2123 * Forward port cygwin-20010707.jcn3.patch.
2124 * package_meta.cc (uninstall): Run pre- and postremove scripts.
2125 * install.cc: Typo fix.
2126 (do_install): Run script initialisation.
2128 2001-01-04 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2130 * cistring.cc: Run d2u.
2131 * cistring.h: Run d2u.
2133 * desktop.cc (etc_profile): Remove "test -f ./.bashrc && . ./.bashrc"
2134 from the generated /etc/profile. Bash will source this file
2135 automatically, and having this here merely results in .bashrc being
2136 executed twice. Run d2u.
2137 * desktop.h: Run d2u.
2139 * propsheet.cc: Run d2u.
2140 (PropSheetProc): New function. Add minimize box here instead of in
2141 PropertyPage::DialogProc.
2142 (PropSheet::Create): Change to use creation callback PropSheetProc.
2143 (DLGTEMPLATEEX): Add 'hidden' Windows struct definition.
2145 * propsheet.h: Run indent, d2u.
2146 * proppage.h: Run indent, d2u.
2148 * proppage.cc: Run d2u.
2149 (PropertyPage::DialogProc): Remove minimize-box-adding
2150 functionality. Remove commented-out "PropSheet_SetWizButtons" calls.
2151 Add support for calling virtual OnMessageCmd. Add setting of fonts in
2152 WM_INITDIALOG handler.
2153 (resource.h): New include for resource IDs.
2155 * res.rc: Resize and rearrange property page dialog templates
2156 to bring them in line with "Microsoft's Backward Compatible Wizard 97"
2157 specification. Run d2u.
2158 (IDD_SITE): Add an edit control and an "Add" button in order to
2159 combine the IDD_SITE and IDD_OTHER_URL functionality onto one page.
2160 (IDD_OTHER_URL): Remove dialog template.
2161 (IDD_DLSTATUS): Remove dialog template.
2164 (SitePage::OnBack): Remove NEXT() macro invocation.
2165 (SitePage::OnActivate): New member function.
2166 (load_dialog): Remove. Functionality subsumed into
2167 SitePage::OnActivate.
2168 (save_dialog): Change to support both list and user URLs. Remove
2169 OTHER_IDX and mirror_idx logic.
2170 (SitePage::PopulateListBox): New member function.
2171 (SitePage::CheckControlsAndDisableAccordingly): New member function.
2172 (SitePage::OnMessageCmd): New override.
2173 (check_if_enable_next): Remove.
2174 (dialog_cmd): Remove.
2175 (do_download_site_info_thread): Remove calls to NEXT() macro.
2176 (SitePage::Create): Call the single-param PropertyPage::Create
2178 (other_url): New static taken from other.cc.
2179 (SitePage::OnNext): Remove mirror_idx logic.
2180 (SitePage::OnInit): Remove "Other URL" entry from list box. Remove
2181 list box populating code, now handled in SitePage::PopulateListBox.
2182 (mirror_idx, NO_IDX, OTHER_IDX): Remove.
2183 (save_site_url): Fix potential buffer overflow problem. Switched to
2184 TCHAR in grossly premature preparation for multilingual support.
2186 (SitePage::OnActivate): New member function.
2187 (SitePage::CheckControlsAndDisableAccordingly) New member.
2188 (SitePage::OnMessageCmd): New override.
2189 (do_download_site_info_thread): Add MessageBox call on failure to
2192 * splash.cc: Run d2u.
2193 (SplashPage::OnInit): Set the font for the title.
2194 * splash.h: Run d2u.
2196 * threebar.cc: Run d2u.
2197 * threebar.h: Run d2u.
2199 * window.h: Run d2u.
2200 (Window::IsButtonChecked): New member function declaration.
2201 (Window::OnMessageCmd): New member function.
2202 (Window::SetDlgItemFont): New member function declaration.
2203 (Window::MAXFONTS, Window::Fonts, Window::FontCounter): New data
2205 * window.cc: Run d2u.
2206 (Window::IsButtonChecked): New member function definition.
2207 (Window::SetDlgItemFont): New member function definition.
2208 (Window::Window): Add initialization for FontCounter.
2209 (Window::~Window): Delete any fonts we created.
2211 * geturl.cc: Run d2u.
2212 (progress): Remove the "3" field width from the "%3d"
2213 percent-complete format indicator. Causes line to not start at
2214 beginning of text box, and does little to help with "jumping", since
2215 the "bytes downloaded so far" field is variable-width anyway. Change
2216 kb/s format field to "%03.1" to 0-pad the kb/s number in the event of
2217 painfully slow connections, or temporary slowdowns in faster
2218 connections should such more-instantaneous functionality become
2222 (NetPage::OnMessageCmd): New member function declaration.
2223 (NetPage::CheckIfEnableNext): New member function declaration.
2225 (NetPage::OnMessageCmd): New member function definition.
2226 (dialog_cmd): Remove, subsumed into NetPage::OnMessageCmd.
2227 (check_if_enable_next): Remove.
2228 (NetPage::CheckIfEnableNext): New member function, subsumes
2229 check_if_enable_next.
2230 (propsheet.h): Add include.
2231 (NetPage::Init): Add call to CheckIfEnableNext.
2232 (load_dialog): Remove call to check_if_enable_next.
2233 (NetPage::Create): Call single-template-ID-parameter overload of
2234 PropertyPage::Create instead of three-parameter one.
2236 * Makefile.in (OBJS): Remove other.o.
2237 * other.cc: Remove file.
2239 2002-01-01 Robert Collins <rbtcollins@hotmail.com>
2241 * README: Update TODO's.
2242 * choose.cc (set_existence): Delete non installed packages with no
2244 (fill_missing_category): Fix an off-by-one error.
2245 (default_trust): Ditto. Also delete any unused categories.
2246 (view::init_headers): Fix an off-by-one error.
2247 (set_view_mode): Ditto.
2248 (set_view_mode): Ditto.
2249 (create_listview): Ditto.
2250 (dialog_cmd): Ditto.
2252 * io_stream.cc: Indent.
2253 * io_stream.h: Ditto.
2254 * package_db.cc: Ditto.
2255 * package_meta.h: Const correctness for SDesc ();
2256 * proppage.cc: Run d2u and indent.
2257 * propsheet.cc: Run d2u and indent.
2258 * window.cc: Run d2u and indent.
2259 * window.h: Run d2u and indent.
2261 2001-12-28 Christopher Faylor <cgf@redhat.com>
2263 * Makefile.in (iniparse.o): Accommodate newer bisons.
2265 2001-12-23 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2267 * window.h (Window): New file, new class.
2268 * window.cc (Window): New file, new class.
2270 * threebar.h (ThreeBarProgressPage): New file, new class.
2271 * threebar.cc (ThreeBarProgressPage): New file, new class.
2273 * splash.h (SplashPage): New file, new class.
2274 * splash.cc (SplashPage): Replace file with implementation of new
2277 * source.h (SourcePage): New file, new class.
2278 * source.cc: Run indent.
2279 (SourcePage): Add class implementation to this file.
2280 (do_source): Remove, functionality subsumed by SourcePage::Create()
2281 and SourcePage::OnDeactivate().
2282 (dialog_proc): Remove, functionality subsumed by
2283 SourcePage::OnActivate().
2285 * site.h: Run indent.
2286 (SitePage): Add class declaration.
2287 * site.cc: Run indent.
2288 (SitePage): Add class implementation.
2289 (do_download_site_info_thread): New function.
2290 (context): New var. Context info for do_download_site_info_thread().
2291 (do_download_site_info): New function.
2292 (SitePage::Create, SitePage::OnInit SitePage::OnNext)
2293 (SitePage::OnBack): SitePage class implementation..
2294 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers, now handled
2295 by SitePage members.
2296 (dialog_proc): Remove, now handled by SitePage::OnInit and base class
2298 (do_site): Remove, now handled by do_download_site_info_thread() and
2299 SitePage::OnNext functionality.
2300 (get_site_list): Remove dismiss_url_status_dialog() call.
2302 * root.h (RootPage): New file, new class.
2303 * root.cc: Run indent.
2304 (dialog_cmd): Pass parent HWND parameter to note(), yesno().
2305 (dialog_proc): Remove.
2307 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL clauses from switch.
2308 (RootPage::OnInit): New member function. Move get_root_dir() logic to
2309 here from do_root().
2310 (RootPage::Create): New member function.
2311 (RootPage::OnNext): New member function. Move IDOK logic from
2312 dialog_cmd() to here.
2313 (RootPage::OnBack): New member function.
2315 * propsheet.h (PropSheet): New file, new class.
2316 * propsheet.cc (PropSheet): New file, new class.
2318 * proppage.h (PropertyPage): New file, new class.
2319 * proppage.cc (PropertyPage): New file, new class.
2321 * postinstall.cc (do_postinstall): Add owner parameter.
2323 * other.cc (do_other): Add owner parameter.
2325 * nio-file.cc (NetIO::Purl): Pass NULL parent param to note().
2326 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Pass NULL parent param to
2328 * nio-http.cc (retry_get): Pass NULL parent param to get_auth(),
2331 * nio-ie5.cc (NetIO::_url): Pass NULL parent param to note(),
2332 get_auth(), get_proxy_auth().
2334 * netio.h (get_auth, get_proxy_auth, get_ftp_auth): Add owner param.
2335 * netio.cc (auth_common, NetIO::get_auth, NetIO::get_proxy_auth,
2336 NetIO::get_ftp_auth)
2337 (auth_common): Add owner param. Pass owner param to DialogBox.
2338 (NetIO::get_auth, NetIO::get_proxy_auth, NetIO::get_ftp_auth): Pass
2339 owner param to auth_common().
2341 * net.h (NetPage): New file, new class.
2342 * net.cc: Run indent.
2343 (net.h, threebar.h): Add includes.
2344 (Progress): Add extern.
2345 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, now handled by
2346 property sheet logic. Saved temporarily for reference.
2347 (NetPage::Create, NetPage::OnInit, NetPage::OnDeactivate,
2348 NetPage::OnNext, NetPage::OnBack):
2349 New implementation of NetPage class members.
2351 (dialog_proc): Remove.
2353 * msg.h (fatal, note, yesno): Add owner param.
2354 * msg.c (fatal, note, yesno, mbox): Add owner param.
2355 (mbox): Remove MB_TOPMOST from MessageBox call. Unnecessary and wrong
2356 now that we have a parent.
2358 * main.cc: Run indent.
2359 (commctrl.h, proppage.h, propsheet.h, splash.h, source.h)
2360 (localdir.h, net.h, site.h, choose.h, threebar.h, desktop.h): Include
2362 (root_dialog_proc): extern into this file.
2363 (Progress): Progress dialog defined here, used in several other files.
2364 (WinMain): Instantiate and create Splash, Source, Root, LocalDir, Net,
2365 Site, Chooser, Desktop pages and MainWindow sheet. Call
2366 InitCommonControls() to make sure Windows is set up for our use of
2367 property sheets. Add pages to sheet.
2368 Call MainWindow.Create() to "DoModal". Remove main loop, that logic is
2369 now handled by the PropSheet class.
2370 (root.h): Add include.
2372 * log.cc (log_save): Pass NULL parent to fatal().
2373 (exit_setup): Pass NULL parent to note().
2375 * localdir.h (LocalDirPage): New file, new class.
2376 * localdir.cc: Run indent.
2377 (localdir.h): New include.
2378 (threebar.h): New include.
2379 (Progress): extern into this file.
2380 (LocalDirPage::Create, LocalDirPage::OnInit, LocalDirPage::OnActivate)
2381 (LocalDirPage::OnNext, LocalDirPage::OnBack): Implementation of
2383 (LocalDirPage::OnNext): Move log() call from do_local_dir() to here.
2384 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers.
2385 (do_local_dir): Remove.
2386 (dialog_proc): Remove.
2387 (cwd): Remove, not used by anything.
2389 * install.cc: Run indent.
2390 (process.h, threebar.h): New includes.
2391 (Progress): extern into this file.
2392 (ins_dialog, ins_action, ins_pkgname, ins_filename, ins_pprogress)
2393 (ins_iprogress, ins_diskfull, init_event): Remove, now handled by
2394 ThreeBarProgressPage.
2395 (dialog_cmd, dialog_proc, dialog): Removed, handled in
2396 ThreeBarProgressPage.
2397 (init_dialog): Remove all mention of the above ins_* handles. Now
2398 handled in ThreeBarProgressPage. Altered SetWindowText()s to call
2399 ThreeBarProgressPage instance Progress directly.
2400 (progress): Alter bar update logic to call ThreeBarProgressPage
2401 instance Progress directly.
2402 (uninstall_one): Alter SetWindowText()s to call ThreeBarProgressPage
2403 instance Progress directly.
2404 (install_one_source): Alter SetWindowText()s to call
2405 ThreeBarProgressPage
2406 instance Progress directly. Pass NULL parent to note().
2407 (do_install_thread): Rename from do_install(), added owner param.
2408 Alter SetWindowText()s to call ThreeBarProgressPage instance Progress
2410 Remove dismiss_url_status_dialog() call, no longer necessary. Remove
2411 ShowWindow(<hide>) call, also unnecessary now. Pass owner handle to
2413 (do_install_reflector): New function.
2414 (do_install): New function.
2416 * ini.cc (process.h, threebar.h): New includes.
2417 (Progress): externed into this file.
2418 (find_routine): Pass NULL parent to note().
2419 (do_local_ini): Add owner param.
2420 (do_remote_ini): Add owner param. Pass owner to get_url_to_membuf()
2421 and note(). Remove call to dismiss_url_status_dialog().
2422 (do_ini_thread): Rename from do_ini(). Add owner param. Pass owner to
2423 do_local_ini(), do_remote_ini(), yesno(), and note(). Set next_dialog
2424 to IDD_CHOOSER on exit.
2425 (do_ini_thread_reflector): New function.
2426 (context): New var. Context for do_ini_thread.
2427 (do_ini): New function.
2429 * geturl.h (get_url_to_membuf, get_url_to_string, get_url_to_file): Add
2431 * geturl.cc (gw_dialog, gw_url, gw_rate, gw_progress, gw_pprogress,
2433 (gw_progress_text, gw_pprogress_text, gw_iprogress_text, init_event):
2435 (threebar.h): New include.
2436 (Progress): externed into this file.
2437 (dialog_cmd, dialog_proc, dialog): Removed, handled by
2438 ThreeBarProgressPage now.
2439 (init_dialog): Remove "if (gw_dialog == 0)" clause. Alter
2441 and bar setting SendMessage()s to call ThreeBarProgressPage instance
2442 Progress directly. Remove "one bar only" logic, this is now handled
2443 explicitly in the ThreeBarProgressPage class.
2444 (progress): Altered bar and text update logic to call
2445 ThreeBarProgressPage instance Progress directly. Changed kbps
2446 calculation to floating point and now print out a single decimal
2448 (get_url_to_membuf): Add owner param. Pass it to init_dialog.
2449 (get_url_to_string): Add owner param. Pass it to get_url_to_membuf.
2450 (get_url_to_file): Add owner param. Pass it to init_dialog. Alter bar
2451 update logic to call ThreeBarProgressPage instance Progress directly.
2452 (dismiss_url_status_dialog): Remove.
2454 * fromcwd.cc (do_fromcwd): Add owner param. Initialize found_ini to
2457 * download.cc: Run indent.
2458 (process.h, threebar.h): New includes.
2459 (Progress): externed into this file.
2460 (download_one): Add owner param. Pass it to get_url_to_file().
2461 (do_download_thread): Renamed from do_download. Add owner param. When
2462 calculating total_download_bytes, take binpicked and srcpicked into
2463 account. Remove call to dismiss_url_status_dialog(), no longer needed.
2464 Pass owner handle to download_one() and yesno().
2465 (do_download_reflector, do_download): New functions.
2466 (context): New var. Context for do_download_thread().
2468 * dialog.h (D(x)): Add owner param.
2470 * desktop.h (DesktopSetupPage): New file, new class.
2471 * desktop.cc: Run indent.
2472 (desktop.h): Add include.
2473 (dialog_proc, do_desktop): Remove, now handled in
2474 DesktopSetupPage::OnInit().
2475 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, handled in
2476 DesktopSetupPage::OnFinish(), DesktopSetupPage::OnBack(), and PropSheet
2478 (DesktopSetupPage::Create, DesktopSetupPage::OnInit)
2479 (DesktopSetupPage::OnBack, DesktopSetupPage::OnFinish): Implementation
2480 of DesktopSetupPage.
2482 * cistring.h: New file, new class.
2483 * cistring.cc: New file, new class.
2485 * choose.h: Run indent.
2486 (Chooser): New class declaration.
2487 * choose.cc: Run indent.
2488 (do_choose): Add owner param. Pass it to DialogBox() and
2490 (Chooser): New class implementation.
2492 * res.rc (IDS_VERSION_INFO): New string.
2493 (IDD_SOURCE, IDD_LOCAL_DIR, IDD_ROOT, IDD_SITE, IDD_OTHER_URL)
2494 (IDD_DLSTATUS, IDD_INSTATUS, IDD_SPLASH, IDD_CHOOSE, IDD_DESKTOP):
2495 Change WS_POPUP to WS_CHILD. Numerous positioning/size changes
2497 (IDD_CHOOSE): Give template the WS_EX_CONTROLPARENT style to enable
2498 TAB control navigation etc. Give the controls a reasonable tab order.
2499 Grouped radio buttons. Something's still not right, can't tab away
2500 from back/next/cancel group reliably.
2501 * resource.h (IDD_CHOOSER): New dialog ID.
2503 * Makefile.in (OBJS): Add cistring.o, proppage.o, propsheet.o,
2504 threebar.o, and window.o.
2506 2001-12-21 Robert Collins <rbtcollins@hotmail.com>
2508 * choose.cc (listview_proc): Update the scrollbar when the headers are dragged.
2509 (pick_pkg_line::paint): Clip columns to prevent overlap.
2511 2001-12-20 Robert Collins <rbtcollins@hotmail.com>
2513 * Makefile.in: Add libcomctl32.a for setup.exe.
2514 * archive.h (archive): Prevent non-child direct creation of the class.
2515 * archive_tar.h (archive_tar): Prevent inaccurate synthetic copy and assignment.
2516 * choose.cc: Include commctrl for the choose header.
2517 (NEW_COL_SIZE_SLOP): Define without magic numbers.
2518 (pkgtrustp): Convert to function.
2519 (set_action): Remove.
2520 (add_required, fill_missing_category,default_trust): Use list syntax for
2523 (choose_caption): Remove.
2524 (topbucket::paint): New method.
2525 (topbucket::empty): Ditto.
2526 (topbucket::click): Ditto.
2527 (topbucket::~topbucket): Ditto.
2528 (paint): Remove i,ii and p as they are obsolete.
2529 Remove header drawing code.
2530 Use new chooser method to paint the chooser.
2531 Use new chooser itemcount method.
2532 (scroll_common): Rename to view::scroll.
2533 Scroll the header window separately.
2534 (list_vscroll, list_hscroll, list_click): Update for new chooser methods.
2535 (listview_proc): Look for header messages.
2536 (note_width): Accept stringless calls.
2537 (pick_line::set_line): Remove.
2538 (pick_line::paint): Remove.
2539 (pick_pkg_line::paint): Paint this one line, using the header column widths.
2540 (pick_category_line::paint): Paint this category, and anything in the bucket.
2541 (pick_line::click): Remove.
2542 (pick_pkg_line::click): Handle a click.
2543 (pick_category_line::click): Handle a click.
2544 (_view): Rename all to view.
2545 (view::view): Initialise the control contents.
2546 (view::set_headers): Work with the header control.
2547 (view::init_headers): Use list syntax for package list.
2548 Rearrange the width logic a little.
2549 (view::insert_pkg): Update to use the hierarchy.
2550 (view::insert_category): Ditto.
2551 (view::insert_at, view::insert_under): Remove.
2552 (view::clear_view): Update to use the hierarchy.
2553 (view::click): Update to use the hierarchy.
2554 (set_view_mode): Use list syntax for package list.
2555 Update for new chooser methods.
2556 (DoInsertItem): New helper function. (Needs a home somewhere).
2557 (create_listview): Remove choose control code and use the constructor instead.
2558 (dialog_cmd,scan2,do_choose): Use list syntax for package list.
2559 * choose.h: Include newly required headers list and package_meta.
2560 (_voew): Rename to view.
2561 (pick_line): Convert to an ABC.
2562 (pick_pkg_line): New class.
2563 (pick_catgory_line): New class.
2564 (topbucket): New class.
2565 (view::scroll): New method created from listview_scroll function.
2566 * desktop.cc (make_passwd_group): Use list syntax for package list.
2567 * download.cc (do_download): Use list syntax for package list.
2568 * fromcwd.cc (found_file): Use list syntax for package list.
2569 * iniparse.y (pacakges): Use list syntax for package list.
2570 * install.cc (uninstall_one): Use list syntax for package list.
2571 (do_install): Use list syntax for package list.
2572 * io_stream.h (io_stream): Prevent non-child direct creation of the class.
2573 Prevent inaccurate synthetic copy and assignment.
2574 * list.h: Include required header stdlib.
2575 Work on const correctness.
2576 * package_db.cc (packagedb::getpackagebyname): Remove.
2577 (packagedb::packagedb): Remove custom list code, and make db a local.
2578 (packagedb::getfirstpackage): Remove.
2579 (packagedb::getnextpackage): Remove.
2580 (packagedb::addpackage): Remove.
2581 (flush): Remove custom list code.
2582 (packagedb::registerpackage): Remove.
2583 (packagedb::packages): New static member.
2584 (packagedb::task): New static member.
2585 * package_db.h (PackageDBActions): New enum.
2586 (packagedb): Remove getfirstpackage, getnextpackage, getpackagebyname,
2587 addpackage, registerpackage, packages, packagecount, curr_package, db.
2589 * pacakge_meta.cc: Include package_db.h.
2590 (packagemeta::action_caption): New method.
2591 (packagemeta::set_action): New method.
2592 * package_meta.h (CategoryPackage): Initialise key.
2593 (packagemeta): Initialise key.
2594 Add set_action and action_caption methods.
2595 Prevent inaccurate synthetic copy and assignment.
2596 * resource.h (IDC_CHOOSE_LISTHEADER): New ID.
2597 * source.cc: Include package_db for db manipulation.
2598 (save_dialog): Set the db task.
2599 * win32.h: Tell the w32 include headers what IE version to expect/require.
2601 2001-12-06 Robert Collins <rbtcollins@hotmail.com>
2603 * README: Wishlist updates.
2605 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
2607 * package_db.cc (getnextpackage): Don't overrun the array.
2609 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
2611 * Makefile.in (OBJS): Add setup_version.o.
2612 (version.c): Rename to setup_version.
2613 * choose.cc (set_action): Prevent NULL pointer dereference.
2614 (package_sort): Remove.
2615 * fromcwd.cc (canonicalize_version): Moved to version.cc.
2616 (check_ini): New function for use with find to see if there is a cached setup.ini.
2617 (do_fromcwd): Check for a cached setup.ini from any mirror site.
2618 * ini.cc (find_routine): New function, for finding cached setup.ini's.
2619 (do_local_ini): New function, drives parsing of local ini's.
2620 (do_remote_ini): New function, drives parsing and caching of remote ini's.
2621 (do_ini): Move guts to do_remote_ini and do_local_ini.
2622 * list.h (removebyindex): New method.
2623 * other.cc (save_dialog): Use new site_list and all_site_list to add the
2624 new site to the site picklist.
2625 (dialog_cmd): Only save the dialog when exiting the dialog.
2626 * res.rc (IDD_SITE): Make IDC_URL_LIST a multiple-selection control.
2627 * site.cc (site_list_type): Move to site.h
2628 (site_list): New global, sites chosen by the user.
2629 (all_site_list): New global, all potential sites.
2630 (site_list_type::init): New method, parses a mirror.lst URL string into a
2631 site_list_type object.
2632 (site_list_type::site_list_type): New method.
2633 (check_if_enable_next): Examine the control, not a local variable.
2634 (load_dialog): Select all the user chosen sites by default.
2635 (save_dialog): Adjust for multiple selection semantics.
2636 (save_site_url): Save all user chosen sites.
2637 (dialog_cmd): Don't save the dialog when the listbox recieves a message -
2639 Remove obsolete other_url reference.
2640 (dialog_proc): Use all_site_list instead of site_list.
2641 (site_sort): Remove.
2642 (get_site_list): Remove malloc use - use list template instead.
2643 Move site_list_type initialisation to site_list_type::init().
2644 (get_initial_list_idx): Renamed to ...
2645 (get_saved_sites): this. Also read in multiple sites to the site_list.
2646 (do_site): Use all_site_list not site_list.
2647 Log all chosen sites.
2648 * site.h: New file, defines site related class, functions and variables.
2649 * state.h: Add comment about use of state.h
2650 (mirror_site): Remove.
2651 (other_url): Remove.
2652 (MIRROR_SITE): Remove.
2653 * version.cc: New file, for version-handling and related functions.
2655 2001-12-02 Robert Collins <rbtcollins@hotmail.com>
2657 * Makefile.in: Add filemanip.o to setup.
2658 * archive.cc (archive::extract_file): Use new io_stream method 'copy'.
2659 * archive_tar.h (archive_tar_file): Implement get_size virtual.
2660 (archive_tar): Ditto.
2661 * choose.cc (set_action): Use [] operator instead of getnth - its more readable.
2663 (_view::init_headers): Ditto.
2664 (_view::insert_pkg): Ditto.
2665 (set_view_mode): Ditto.
2668 (base): Moved to filemanip.cc.
2669 (find_tar_ext): Ditto.
2670 (parse_filename): Ditto.
2671 (_Info::_Info): Remove.
2672 * compress_bz.h (compress_bz): Implement get_size virtual.
2673 * compress_gz.h (compress_gz): Implement get_size virtual.
2674 * cygpackage.cc (cygpackage::destroy): Use array delete for char * objects.
2675 * download.cc (get_file_size): Move to filemanip.cc.
2676 (check_for_cached): Use [] operator instead of getnth - its more readable.
2677 (download_one): Ditto.
2678 * filemanip.cc: New file.
2679 * geturl.cc (init_dialog): Make url a pointer to const as it is not modified.
2680 (get_url_to_membuf): New function - contains get_url_to_string worker code.
2681 (get_url_to_string): Becomes a trivial wrapper to get_url_to_membuf.
2682 * geturl.h: Declare new prototype.
2683 * ini.cc (do_ini): Use get_url_to_membuf and pass ini_init an io_stream.
2684 Tidy up the error code a little.
2685 * ini.h: Remove __cplusplus protection for ini_init.
2687 * inilex.l: Remove old globals.
2688 (ini_init): Use an io_stream for getting the characters.
2689 (ini_getchar): Ditto.
2690 * iniparse.y: Declare yylex as a C++ function.
2691 (add_correct_version): Use [] operator instead of getnth - its more readable.
2692 * io_stream.cc (io_stream::move_copy): Use the copy method.
2693 (io_stream::copy): New method to simply copy from one stream to another.
2694 * io_stream.h (io_stream): New static method copy, and virtual method get_size.
2695 * io_stream_cygfile.cc (io_stream_cygfile::get_size): Implement this.
2696 * io_stream_cygfile.h (io_stream_cygfile::get_size): Declare this.
2697 * io_stream_file.cc (io_stream_file::get_size): Implement this.
2698 * io_stream_file.h (io_stream_file::get_size): Declare this.
2699 * io_stream_memory.h: Include errno as it's neded to parse the header.
2700 (io_stream_memory::get_size): Implement this.
2701 (io_stream_memory::st_size): Delete this.
2702 * list.h: Change getnth into the [] operator.
2703 * netio.cc (NetIO::NetIO): Change prototype to reflect Purl not being modified.
2704 (NetIO::set_url): Ditto.
2705 (NetIO::open): Ditto.
2706 * netio.h: As for netio.cc.
2707 * nio-file.cc (NetIO_File::NetIO_File): Change prototype to reflect Purl not
2709 * nio-file.h: Ditto.
2710 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
2711 * nio-ftp.h (NetIO_FTP::NetIO_FTP): Ditto.
2712 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Ditto.
2713 * nio-http.h (NetIO_HTTP::NetIO_HTTP): Ditto.
2714 * nio-i5.cc (NetIO_IE5::NetIO_IE5): Ditto.
2715 * nio-i5.h (NetIO_IE5::NetIO_IE5): Ditto.
2716 * package_meta.cc (packagemeta::~packagemeta): Bugfix: use array delete.
2717 * package_source.cc (packagesource::set_canonical): Ditto.
2718 (packagesource::set_cached): Ditto.
2719 * package_source.h (site::~site): Ditto.
2720 * site.cc: Change site_list_type to a class, and search and replace sort_key to
2723 2001-12-01 Robert Collins <rbtcollins@hotmail.com>
2725 * package_source.cc (packagesource::set_canonical): Filename was out by one.
2727 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
2729 * Makefile.in (OBJS): Remove category_list - it's not needed.
2730 * README: More wishlist updates.
2731 * category.cc (Category::Category): Initialise new members.
2732 (Categorycmp): New function.
2733 * category.h (Category): New member key for template use.
2734 * category_list.cc: Remove.
2735 * category_list.h: Remove.
2736 (Categorycmp): New function prototype.
2737 * choose.cc: Remove category_list - not needed.
2738 (set_action): Only show the 'source' option when the source is actually
2740 (add_required): Fix recursion limiter to 5.
2741 (fill_missing_category): Use list access.
2742 (default_trust): Ditto.
2743 (pick_line::paint): Ditto.
2744 (_view::init_headers): Ditto.
2745 (_view::insert_pkg): Ditto.
2746 (_view::insert_category): Ditto.
2747 (_view::click): Ditto.
2748 (set_view_mode): Ditto.
2750 * cygpackage.h: Remove category_list - not needed.
2751 * geturl.cc (get_url_to_string): Fix null byte insertion.
2752 * inipatse.y: Remove category_list - not needed.
2753 (categories): Use list access.
2754 * package_db.cc: Ditto.
2755 * package_db.h: Remove category_list - not needed.
2756 (packagedb): Use the list template for categories.
2757 * package_meta.cc (add_category): Ditto.
2758 * package_meta.h (CategoryPackage): Link to the category as well.
2759 (packagemeta): Use a list of CategoryPackages instead of Categories
2760 for more memory efficient cross-referencing.
2762 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
2764 * package_db.cc (packagedb::flush): Write a canonical version for all packages
2765 irrespective of the media they were installed from.
2767 2001-11-29 Robert Collins <rbtcollins@hotmail.com>
2769 * Makefile.in (OBJS): Add package_source and rfc1738.
2770 * README: Wishlist update.
2771 * category_list.cc (register_category): Use references.
2772 * category_list.h (CategoryList): Ditto.
2773 * choose.cc (isinstalled): Remove.
2774 (pkgtrustp): New macro.
2775 (set_action): Use packagemeta.
2776 (add_required): Ditto.
2777 (choose_caption): Example package to choose caption, rather than state flags.
2778 (check_existence): Remove.
2779 (set_existence): Remove old code.
2780 (fill_missing_category): Use packagemeta.
2781 (keep_or_skip): Remove.
2782 (default_trust): Use packagemeta and set trust values directly.
2783 (pick_line::set_line): Use packagemeta.
2784 (_view::insert_pkg): Ditto.
2785 (_view::insert_category): Ditto.
2786 (_view::click): Ditto.
2787 (set_view_mode): Ditto. Also remove "exclude" code.
2788 (create_listview): Use packagemeta.
2789 (dialog_cmd): Ditto.
2790 (getpkgbyname): Remove
2791 (scan2): Use packagemeta. Temporarily comment out the holefinding code.
2792 (read_installed_db): Remove.
2793 (package_sort): Use packagemeta.
2794 (do_choose): Use packagemeta. Don't sort the packages - the db does that.
2795 * choose.h: Use packagemeta.
2796 * cygpackage.cc (cygpackage::cygpackage): Initialise all variables.
2797 (cygpackage::cygpackage): Ditto.
2798 (cygpackage::set_canonical_version): Copy the passed string.
2799 (cygpackage::~cygpackage): Move cleanup code to destroy().
2800 (cygpackage::destroy): New function.
2801 (cygpackage::getfirstfile): Use a separate buffer.
2802 (cygpackage::getnextfile): Ditto.
2803 (cygpackage::Canonical_version): New function.
2804 (cygpackage::set_sdesc): Ditto.
2805 (cygpackage::set_ldesc): Ditto.
2806 * cygpackage.h (cygpackage::Canonical_version): New method.
2807 (cygpackage::set_sdesc): New method.
2808 (cygpackage::set_ldesc): New method.
2809 (cygpackage::SDesc): New method.
2810 (cygpackage::LDesc): New method.
2811 (cygpackage::set_canonical_version): New method.
2812 * desktop.cc: Include packagedb headers.
2813 (make_password_group): Use packagemeta.
2814 * download.cc: Include packagedb headers.
2815 (check_for_cached): New method to find any cached file and fill out the database
2817 (download_one): Take a packagesource, support multiple mirrors.
2818 (do_download): Use packagemeta.
2819 * from cwd.cc: Include packagedb headers.
2820 (found_file): Use packagemeta.
2821 * ini.cc (do_ini): Beginning of multiple-mirror support.
2822 * ini.h (CategoryPackage): Remove.
2823 (Dependency): Remove.
2825 (new_package,getpkgbyname,getpackagecategorybyname,add_category): Remove.
2826 * inilex.l: Support multiple mirrors.
2827 * iniparse.y: Include packagedb headers.
2828 (parser): Use packagemeta.
2829 (new_package): Remove.
2830 (add_correct_version): New function.
2831 (new_requirement): Remove.
2832 (add_category): Remove.
2833 * install.cc (uninstall_one): Use packagemeta.
2834 (install_one_source): New function.
2835 (install_one): Use packagemeta.
2836 (do_install): Use packagemeta.
2837 * io_stream.cc (io_stream::move): Bugfix on move/copy case.
2838 * io_stream_cygfile.cc (io-stream_cygfile::set_mtime): Do not reopen the file
2839 after setting the mtime, it makes no sense, and results in 0 length files.
2840 * io_stream_file.cc (io-stream_file::set_mtime): Ditto.
2841 * list.h: New file, template class for a form of list.
2842 * package_db.cc (packagedb::registerpackage): New function.
2843 * package_db.h (packagedb::npackages ()): New method.
2844 * package_meta.cc (packagemeta::add_version): Use list template.
2845 (packagemeta::set_installed): Ditto.
2846 (packagemeta::add_category): New method.
2847 * package_meta.h: Include necessary headers to parse the class.
2848 (CategoryPackage): New class.
2849 (packagemeta): Initialise all members.
2850 (packagemeta::SDesc): New method.
2851 (packagemeta::Categories): New method.
2852 (packagemeta::add_category): Ditto.
2853 (packagemeta::versions): Change to be a list instance.
2854 * package_source.cc (packagesource::set_canonical): New method.
2855 (packagesource::set_cached): New method.
2856 * package_source.h: Include necessary headers to parse the class.
2858 (packagesource::packagesource): Initialize all members.
2859 (packagesource): Make this class non-abstract.
2860 * package_version.cc (packageversion::packageversion): New method.
2861 * package_version.h (Dependency): New class.
2862 (packageversion::Canonical_vesion): New method.
2863 (packageversion::SDesc): New method.
2864 (packageversion::LDesc): New method.
2865 (packageversion::new_requirement): Ditto.
2866 (packageversion::srcpicked, binpicked): What to install.
2867 (packageversion::src, bin): Installation source data.
2868 * rfc1738.cc: New file. Escapes special characters in URL's.
2871 2001-11-26 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2873 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Stop header parsing when
2874 SimpleSocket::gets() returns a zero-length string, so that we
2875 don't end up eating the entire stream thinking it's all header info.
2877 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
2879 * install.cc (badrename): Remove.
2880 (do_install): Use packagedb flush method to write /etc/setup/installed.db.
2881 * io_stream.cc (io_stream::move_copy): New method.
2882 (io_stream::move): New method.
2883 * io_stream.h (io_stream): New methods move and move_copy.
2884 * io_stream_cygfile.cc (io_stream_cygfile::move): New method.
2885 * io_stream_cygfile.h (io_stream_cygfile): New method move.
2886 * io_stream_file.cc (io_stream_file::move): New method.
2887 * io_stream_file.h (io_stream_file): New method move.
2888 * package_db.cc (packagedb::flush): New method.
2889 * package_db.h (packagedb): New method flush.
2891 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
2893 * Makefile.in (OBJS): Add package_version.
2894 * ategory.cc (Category::Category): Update constructors.
2895 * category_list.cc (CategoryList::register_category): Insert correctly.
2896 * choose.cc: Include package_version.h, not package.h.
2897 * cygpackage.cc: Ditto.
2898 (cygpackage::uninstall): New method.
2899 * cygpackage.h (cygpackage): Rename genericpackage to packageversion.
2900 New method uninstall.
2901 * hash.cc (add, has, enumerate): Change prototype to be accurate.
2902 * hash.h (hash): Change prototypes to be accurate.
2903 * ini.h (_Info): New parameterless constructor.
2904 (CategoryPackage): New constructor.
2906 * install.cc: Don't include unneeded headers.
2907 Include package database headers.
2908 (hash::add_subdirs): Remove.
2909 (uninstall_one): Use packagemeta->uninstall to perform the uninstallation.
2910 Don't uninstall source packages.
2911 (do_install): Just can uninstall_one once as we ignore source packages now.
2912 Don't copy the installed.old database accross, instead iterate through the
2913 packagedb packages list and write the isntalled packages out.
2914 * package_db.cc: Include package_version.h, not package.h.
2915 (packagedb::packagedb): Never let db be undefined.
2916 Record the installation filename, so we can reconstruct installed.db.
2917 (packagedb::addpackage): Insert packages in alpha sorted order.
2918 (packagedb::categories): Initialise correctly.
2919 * package_meta.cc: Include win32 and mount headers as a workaround to
2920 current io_stream limitations. Include a TODO about that.
2921 (standard_dirs): New, from install.cc.
2922 (hash::add_subdirs): New, from install.cc.
2923 (packagemeta::set_installed): Rename genericpackage to packageversion.
2924 (packagemeta::uninstall): New method.
2925 * package_meta.h: Rename genericpackage to packageversion.
2926 (packagemeta): Update constructor.
2927 (add_version, set_installed): Rename genericpackage to packageversion.
2928 (uninstall): New method.
2929 (installed_from): New member.
2930 * package_source.cc: New file.
2931 * package_source.h: New file.
2932 * package_version.cc: New file.
2933 * package_version.h: New file.
2934 * package.cc: Removed.
2935 * package.h: Removed.
2937 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
2939 * Makefile.in (OBJS): Add category.o and category_list.o.
2940 * category.h: New file.
2941 * category.cc: New file.
2942 * category_list.h: New file.
2943 * category_list.cc: New file.
2944 * choose.cc: Include category headers.
2945 (fill_missing_category): Use package_db to access global categories.
2946 (_view::insert_pkg): Ditto.
2947 (_view::insert_category): Ditto.
2948 (set_view_mode): Ditto.
2949 (getcategorybyname): Remove.
2950 * cygpackage.h: Include category_list.h to parse this correctly.
2951 (cygpackage): New virtual &Categories.
2952 * ini.h (_CategoryPackage): More C to C++ conversion.
2954 (getcategorybyname): Remove.
2955 (register_category): Remove.
2956 * iniparse.y: Include package db and category headers.
2957 (categories): Use package_db to access global categories.
2959 (ncategories): Remove.
2960 (register_category): Remove.
2961 * package.h: New virtual &Categories.
2962 * package_db.cc (packagedb::packagedb): Don't read the installed db twice.
2963 (packagedb::categories): Declare.
2964 * package_db.h (packagedb): New member categories for global categories list.
2966 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
2968 * choose.h: Don't include ini.h
2969 * ini.h: Allow pure c++ in the header file.
2971 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
2973 * install.cc (do_install): Write a version 2 installed.db file.
2974 * package_db.cc (packagedb::packagedb): Read version 1 and 2 installed.db files.
2976 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
2978 * Makefile.in (OBJS): Add package abstraction objects.
2979 * choose.cc: Include package abstraction headers.
2980 (read_installed_db): Use packagedb class and ignore installed sources.
2981 * cygpackage.cc: New file.
2982 * cygpackage.h: New file.
2983 * filemanip.h (get_file_size): Use unixy types.
2984 * package.h: New file.
2985 * package.cc: New file.
2986 * package_db.cc: New file.
2987 * package_db.h: New file.
2988 * package_meta.cc: New file.
2989 * package_meta.h: New file.
2991 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
2993 * REAME: Updates to wishlist.
2995 2001-11-16 Robert Collins <rbtcollins@hotmail.com>
2997 * README: Updated and added my list of wishlist and todo items.
2999 2001-11-14 Robert Collins <rbtcollins@hotmail.com>
3001 * Makefile.in (OBJS): Include io_stream_memory in setup.exe.
3002 * archive_tar.cc (archive_tar::write): New prototype.
3003 (archive_tar::seek): New method.
3004 * archive.h (archive_tar_file): Update write() and add seek().
3005 (archive_tar): Ditto.
3006 * archive_tar_file.cc (archive_tar_file::write): New prototype.
3007 (archive_tar_file::seek): New method.
3008 * compress_bz.cc (compress_bz::write): New prototype.
3009 (compress_bz::seek): New function.
3010 * compress_bz.h (compress_bz): Update write() and add seek().
3011 * compress_gz.cc (compress_gz::write): New prototype.
3012 (compress_gz::seek): New function.
3013 * compress_gz.h (compress_gz): Update write() and add seek().
3014 * geturl.cc: Include io_stream headers.
3016 (get_url_to_string): Use a io_stream_memory buffer instead of GUBuf.
3017 * io_stream.h (io_stream_seek_t): New enum.
3018 (io_stream): Update write() and add seek().
3019 * io_stream_cygfile.cc (io_stream_cygfile::write): New prototype.
3020 (io_stream_cygfile::seek): New function.
3021 * io_stream_cygfile.h (io_stream_cygfile): Update write() and add seek().
3022 * io_stream_file.cc (io_stream_file::write): New prototype.
3023 (io_stream_file::seek): New function.
3024 * io_stream_file.h (io_stream_file): Update write() and add seek().
3026 2001-11-13 Brian Keener <bkeener@thesoftwaresource.com>
3028 * localdir.cc: Add headers unistd.h and port.h.
3029 (save_local_dir): Expand search logic to include local directory for
3030 location of file last-cache.
3031 (dialog_cmd): Skip IDD_ROOT when downloading and use Back button.
3032 (do_local_dir): Expand search logic to include local directory for file
3034 * res.rc (IDD_CHOOSE_DIALOG): Add hotkey to View button.
3035 * Source.cc (dialog_cmd): Skip IDD_ROOT if select Download from
3037 (do_source): Default to Install from Internet on first entry or
3038 previous selection if backing up from IDD_ROOT or IDD_LOCAL_DIR.
3040 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
3042 * choose.cc (find_tar_ext): Only match at the end of the string.
3043 (getpkgbyname): Prevent NULL pointer dereference.
3045 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
3047 * Makefile.in (CFLAGS): Add warnings and -Werr.
3048 (WARNONLY_FLAGS): For sources that produce (harmless) errors no matter what.
3049 (OBJS): Add io_stream class' objects.
3050 (autoload.o): Use WARNONLY_FLAGS.
3052 (iniparse.o): Ditto.
3053 * archive.cc: New file.
3054 * archive.h: New file.
3055 * archive_tar.cc: New file.
3056 * archive_tar.h: New file.
3057 * archive_tar_file.cc: New file.
3058 * autoload.c: Fix compiler warnings (unused, deprecated conversion).
3059 * choose.cc: Use io_stream.h, not mount.h.
3061 (find_tar_ext): Rewritten to use strstr, and to accept .tar as an extension.
3062 (read_installed_db): Use io_streams.
3063 * choose.h: Run indent.
3064 * compress.cc: New file.
3065 * compress.h: New file.
3066 * compress_bz.cc: New file.
3067 * compress_bz.h: New file.
3068 * compress_gz.cc: New file.
3069 * compress_gz.h: New file.
3070 * concat.cc: Run indent.
3071 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3072 * concat.h: Run indent.
3073 * desktop.cc: Run indent.
3074 Include mklink2.h rather than redefining by hand.
3075 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3076 (etc_profile): Fix compiler warning (deprecated conversion).
3077 (make_link): Fix compiler warning (deprecated conversion).
3078 Tidy up use of args variable - consolidate into argbuf.
3079 (start_menu): Fix compiler warning (deprecated conversion).
3080 (desktop_icon): Fix compiler warning (deprecated conversion).
3081 (make_etc_profile): Fix compiler warning (deprecated conversion).
3082 (uexists): Fix compiler warning (deprecated conversion).
3083 (check_desktop): Fix compiler warning (deprecated conversion).
3084 (check_startmenu): Fix compiler warning (deprecated conversion).
3085 * dialog.cc: Run indent.
3086 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3087 (fatal): Fix compiler warning (deprecated conversion).
3088 * dialog.h: Run indent.
3089 * diskfull.cc: Run indent.
3090 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3091 * download.cc: Run indent.
3092 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3093 (download_one): Fix compiler warning (signed vs unsigned comparison).
3094 * filemanip.h: Run indent.
3095 * find.cc: Run indent.
3096 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3097 (find): Fix compiler warning (deprecated conversion).
3098 * find.h: Run indent.
3099 * fromcwd.cc: Run indent.
3100 * geturl.cc: Run indent.
3101 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3102 (dialog_cmd): Return a value.
3103 (dialog_proc): Remove unused variables.
3105 (get_url_to_file): Fix compiler warning (deprecated conversion).
3106 * geturl.h: Run indent.
3107 * hash.cc: Run indent.
3108 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3109 * hash.h: Run indent.
3110 * ini.cc: Run indent.
3112 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3113 (do_ini): Use io_streams for local io.
3114 * ini.h: Run indent.
3115 * inilex.l (ignore_line): Fix compiler warning (is not a prototype).
3116 Fix compiler warning (brackets for truth assignment).
3117 * install.cc: Run indent.
3118 Fix compiler warning (/* in comment).
3120 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3121 (dialog_cmd): Return a value.
3122 (dialog_proc): Return a value.
3123 (start_tics): Deleted - was unused.
3124 (badrename): Fix compiler warnings (unused, deprecated conversion).
3125 (standard_dirs): Fix compiler warning (deprecated conversion).
3127 (uninstall_one): Convert to io_streams.
3128 (install_one): Convert to io_streams.
3129 (do_install): Convert to io_streans.
3130 Fix compiler warning (deprecated conversion).
3131 * io_stream.cc: New file.
3132 * io_stream.h: New file.
3133 * io_stream_cygfile.cc: New file.
3134 * io_stream_cygfile.h: New file.
3135 * io_stream_file.cc: New file.
3136 * io_stream_file.h: New file.
3137 * localdir.cc: Run indent.
3139 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3140 (get_root_dir_now): Remove.
3141 (save_local_dir): Convert to io_streams.
3142 (dialog_cmd): Return a value.
3143 (do_local_dir): Convert to io_streams.
3144 (log.cc): Run indent.
3145 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3146 (log): Fix compiler warning (deprecated conversion).
3147 (log_save): Fix compiler warning (deprecated conversion).
3148 * log.h: Run indent.
3149 (log): Fix compiler warning (deprecated conversion).
3150 (log_save): Fix compiler warning (deprecated conversion).
3151 * main.cc: Run indent.
3152 Don't include "netio.h".
3153 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3154 (netio_test): Remove.
3155 (sid_auth): Fix compiler warning (partially bracketed initialiser).
3156 (WinMain): Return a value.
3157 * mkdir.cc: Run indent.
3158 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3159 * mklink2.c: Run indent.
3160 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3161 (mkcygsymlink): New function.
3162 * mklink2.h: New file.
3163 * mount.cc: Run indent.
3164 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3165 (create_mount): Remove unused variables.
3166 (cygpath): Fix compiler warning (signed vs unsigned comparison).
3167 * mount.h: Run indent.
3168 * msg.cc: Run indent.
3169 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3170 (msg): Fix compiler warning (deprecated conversion).
3171 (mbox): Fix compiler warning (deprecated conversion).
3172 * msg.h: Run indent.
3173 (msg): Fix compiler warning (deprecated conversion).
3174 * net.cc: Run indent.
3175 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3176 (dialog_cmd): Return a value.
3177 * netio.cc: Run indent.
3178 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3179 (auth_cmd): Return a value.
3180 * netio.h: Run indent.
3181 * nio-file.cc: Run indent.
3182 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3183 (NetIO_File::NetIO_File): Fix compiler warning (deprecated conversion).
3184 * nio-file.h: Run indent.
3185 * nio-ftp.cc: Run indent.
3186 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3187 * nio-ftp.h: Run indent.
3188 * nio-http.cc: Run indent.
3189 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3190 * nio-http.h: Run indent.
3191 * nio-ie5.cc: Run indent.
3192 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3193 * nio-ie5.h: Run indent.
3194 * other.cc: Run indent.
3195 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3196 (dialog_cmd): Return a value.
3197 * port.h: Run indent.
3198 * postinstall.cc: Run indent.
3199 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3200 (cmd): Fix compiler warning (deprecated conversion).
3201 (eun): Fix compiler warning (deprecated conversion).
3202 * root.cc: Run indent.
3203 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3204 * simpsock.cc: Run indent.
3205 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3206 * simpsock.h: Run indent.
3207 * site.cc: Run indent.
3209 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3210 (get_root_dir_now): Remove.
3211 (save_site_url): Convert to io_streams.
3212 (dialog_cmd): Return 0.
3213 (get_initial_list_idx): Convert to io_streans.
3214 * source.cc: Run indent.
3215 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3216 (check_if_enable_next): Remove.
3217 (load_dialog): Remove unused variables.
3218 (save_dialog): Ditto.
3219 (dialog_cmd): Return a value.
3220 * splash.cc: Return a value.
3221 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3222 (dialog_cmd): Return a value.
3223 * state.cc: Run indent.
3224 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3225 * state.h: Run indent.
3229 2001-11-12 Christopher Faylor <cgf@redhat.com>
3231 * desktop.cc (start_menu): Change start menu name to "Cygwin".
3232 (check_startmenu): Ditto.
3234 2001-11-11 Christopher Faylor <cgf@redhat.com>
3236 * choose.cc (parse_filename): Finish reorganization by correctly
3237 decrementing p in memmove.
3239 2001-11-11 Christopher Faylor <cgf@redhat.com>
3241 * choose.cc (parse_filename): Reorganize code to work around gcc
3242 optimization problem.
3244 2001-11-09 Gareth Pearce <tilps@hotmail.com>
3246 * choose.cc (set_action): Allow skip as an option for installed
3247 packages that have version number not listed in setup.ini.
3249 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
3251 * choose.cc (set_cation): Backout last change.
3252 (choose_caption): Ditto.
3254 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
3256 * ini.h (actions): Remove - transferred to choose.h.
3258 * choose.h: Protect class's from "C" compilers.
3259 (actions): New enum, from ini.h. This may not be the 'right' place
3260 but that place doesn't exist yet.
3261 (_views): New enum, from ini.h.
3262 * choose.cc (set_action): Handle installed packages with a version not in
3264 (choose_caption): Ditto.
3265 * iniparse.y: Rearrange header order to handle new ini.h.
3267 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
3269 * ini.h (_Info): Fix compiler warnings (signed vs unsigned comparison).
3270 (registry_category): Fix compiler warning (deprecated conversion).
3271 * iniparse.y (registry_category): Ditto.
3272 * choose.cc (cvsid): Fix compiler warnings (unused, deprecated conversion).
3273 (add_requried): Remove unused variable.
3274 (choose_caption): Handle all enumeration values via a default.
3275 (paint): Fix compiler warnings (unused, deprecated conversion).
3276 (scroll_common): Fix compiler warnings (unused, signed vs unsigned comparison).
3277 (list_clicK): Fix compiler warnings (signed vs unsigned comparison).
3278 (note_width): Fix compiler warnings (deprecated conversion).
3279 (keep_or_skip): Fix compiler warnings (unused).
3280 (_view::mode_caption): Fix compiler warnings (deprecated conversion).
3281 (set_view_mode): Fix compiler warnings (unused).
3282 (create_listview): Fix compiler warnings (unused, incorrect format, reaches
3284 (dialog_proc): Fix compiler warnings (unused).
3285 (read_installed_db): Fix compiler warnings (unused, deprecated conversion).
3286 * choose.h (_header): Fix compiler warnings (deprecated conversion).
3289 2001-11-08 Pavel Tsekov <ptsekov@syntrex.com>
3291 * simpsock.h (SimpleSocket::invalidate): Declare new method.
3292 * simpsock.cc (SimpleSocket::invalidate): Implement new method.
3293 (SimpleSocket::SimpleSocket): Initialize buf to zero. Do not allocate
3294 memory for buf in the constructor.
3295 (SimpleSocket::~SimpleSocket): Use SimpleSocket::invalidate().
3296 (SimpleSocket::printf): Use SimpleSocket::write() instead of send().
3297 (SimpleSocket::write): Check object consistency - return -1 on error.
3298 invalidate() the object on socket write error.
3299 (SimpleSocket::fill): Check object consistency - return -1 on error.
3300 invalidate() the object if socket read error is encountered and there
3301 is no more data available in the internal read buffer.
3302 Allocate memory for the internal read buffer.
3303 (SimpleSocket::gets): Return zero (NULL pointer) if error is encountered
3304 during fill() and no more data is available in the internal read buffer.
3305 (SimpleSocket::read): Check object consistency - return -1 on error.
3306 invalidate() the object if socket read error is encountered.
3307 * nio-ftp.cc (NetIO_FTP:NetIO_FTP): Allow 125 as valid response code to
3308 the RETR command (fix for MS IIS ftp server 5 - possibly others too).
3309 (NetIO_FTP::ok): Check if the SimpleSocket object is ok().
3310 (NetIO_FTP::read): Use NetIO_FTP::ok().
3311 * nio-http.cc: Check for valid return value of SimpleSocket::gets().
3312 (NetIO_HTTP::ok): Check if the SimpleSocket object is ok().
3314 2001-11-09 Robert Collins <rbtcollins@hotmail.com>
3316 * simpsock.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3317 (SimpleSocket::SimpleSocket): Avoid compiler warnings (deprecated conversion).
3318 (SimpleSocket::printf): Ditto.
3319 (SimpleSocket::write): Ditto.
3320 * simpsock.h (SimpleSocket): Avoid compiler warnings for constructor,
3322 * nio-ftp.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3323 (NetIO_FTP::NetIO_FTP): Remove unused variable done.
3324 * nio-http.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3326 2001-11-07 Charles Wilson <cwilson@ece.gatech.edu>
3328 * geturl.cc (get_url_to_string): clean up memory leak
3329 (get_url_to_file): ditto
3331 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
3333 * localdir.cc (dialog_cmd): Go back to IDD_ROOT in every case.
3334 * source.cc (dialog_cmd): Go forward to IDD_ROOT in every case.
3336 2001-11-06 Pavel Tsekov <ptsekov@syntrex.com>
3338 * fromcwd.cc (found_file): Free() memory containing the version and
3339 filepath information for a given package, before replacing the pointers which
3340 reference this memory.
3342 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
3344 * fromcwd: Fix compiler warnings for cvsid.
3345 (canonicalize_version): Fix compilter warnings.
3346 (do_fromcwd): Ditto.
3347 * version.h: Fix compiler warnings for canonicalize_version.
3349 2001-11-03 Robert Collins <rbtcollins@hotmail.com>
3351 * res.rc (IDD_CHOOSE): Move the view caption to the right hand side.
3353 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3355 * res.rc (IDD_CHOOSE): Tweak for use on a 640x480 screen.
3357 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3359 * choose.cc (set_action): Correctly allow skip for any uninstalled package.
3361 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3363 * choose.cc (default_trust): Change the "Required" forced install category to
3366 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3368 * choose.cc: Ran indent.
3369 (set_action): When the requested trust level is missing and the level was not
3370 user requested, set the action to ACTION_SAME_CURR.
3372 2001-11-01 Christopher Faylor <cgf@redhat.com>
3374 * Makefile.in (mingw_getopt.o): Fix typo in non-verbose compilation.
3376 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3378 * choose.cc (_view::init_headers): Resync with the paint logic.
3380 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3382 * choose.cc (add_required): Allow SKIP and SRC_ONLY for currently installed
3385 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3387 * choose.cc (default_trust): Autoset currently installed packages per the user's
3388 selection of prev/curr/exp.
3390 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3392 * splash.cc (dialog_proc): Return TRUE as specified in the WIN32 API.
3394 2001-11-02 Pavel Tsekov <ptsekov@syntrex.com>
3396 * geturl.cc (is_showing): Remove.
3397 (is_local_install): New static variable. Controls whether the
3398 progress dialog and the supporting thread will be created.
3399 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the WIN32 API.
3400 (init_dialog): Remove usage of SetForegroundWindow and is_showing.
3401 This prevents the progress dialog to gain control over the
3402 application and fixes the "setup.exe going to background" problem.
3403 (progress): Use is_local_install.
3404 (get_url_to_string): Set is_local_install.
3405 (dismiss_url_status_dialog): Use is_local_install.
3406 * install.cc (dialog_proc): Return TRUE as specified in WIN32 API.
3407 (init_dialog): Remove usage of SetForegroundWindow.
3408 This prevents the progress dialog to gain control over the
3409 application and fixes the "setup.exe going to background" problem.
3411 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3413 * choose.cc (list_click): Change r to row for clarity.
3414 When we shrink the list below 1 page, scroll to the top of the list.
3415 (_view::click): Return the actual change for contractions.
3416 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the Win32 API.
3418 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3420 * choose.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
3421 * localdir.cc: Ran indent.
3422 (get_root_dir_now): New function.
3423 (save_local_dir): New function.
3424 (dialog_cmd): Use it and swap cygwin root selection and local dir selection order.
3425 (do_local_dir): If there is a saved local dir, read it in.
3426 * net.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
3427 * root.cc (dialog_cmd): Ditto.
3428 * source.cc (dialog_cmd): Ditto.
3430 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
3432 * choose.cc(list_vscroll): Return 0 as required by win32.
3433 (list_hscroll): Ditto.
3434 (list_click): Ditto.
3436 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
3440 * main.cc(WinMain): Use __argv to retrieve command line parameters.
3441 * Makefile,in: Remove argv.o.
3443 2001-11-01 Matt Hargett <matt@use.net>
3445 * geturl.cc (progress): Change int to unsigned int to eliminate
3447 * (get_url_to_string): Check for NULL pointer.
3448 * mount.cc (find2): Use free instead of delete for malloc'd
3450 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Fix memory leak.
3452 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
3454 * choose.cc(_view::insert_under): Handle linen > nlines and lines[linen] with neither
3455 a package nor a category. The lines[linen] bug was reported by Matt (matt@usa.net).
3456 (read_installed_db): Bugfix for testing whether a package has a source tarball.
3457 Reported by Matt (matt@usa.net).
3458 * geturl.cc(dialog): Rename gw_dialog to local_gw_dialog to avoid programmer
3459 confusion and lint errors. Reported by Matt (matt@usa.net).
3461 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
3463 * argv.cc: New file, converts arguments for -mwindows programs. (Simplified derivation
3466 * Makefile,in: Add argv.o and mingw_getopt.o to setup.exe object list.
3467 Add mingw_getopt.o build rule.
3468 * main.cc(WinMain): Initialise argv and argc for use by getopt.
3470 2001-10-27 Christopher Faylor <cgf@redhat.com>
3472 * res.rc: Rearrange info on top line slightly.
3474 2001-10-27 Christopher Faylor <cgf@redhat.com>
3476 * desktop.cc (make_passwd_group): Move file creation earlier in the
3477 process to ensure that passwd-grp.bat reflects desired operation.
3479 2001-27-10 Trevor Forbes <t4bs@hotmail.com>
3481 * postinstall.cc (each): Remove "*.done" file else rename will fail.
3483 2001-10-16 Christopher Faylor <cgf@redhat.com>
3485 * res.rc: Oops. Take 640x480 screen size into account.
3487 2001-10-16 Christopher Faylor <cgf@redhat.com>
3489 * res.rc: Enlarge chooser screen.
3491 2001-10-12 Christopher Faylor <cgf@redhat.com>
3493 * Makefile.in: Accomodate changes to w32api_include macro.
3495 2001-10-12 Christopher Faylor <cgf@redhat.com>
3497 * Makefile.in: Use correct flags for windres.
3499 2001-10-12 Christopher Faylor <cgf@redhat.com>
3501 * Makefile.in (CFLAGS): Remove -nostdinc from CFLAGS.
3503 2001-10-12 Christopher Faylor <cgf@redhat.com>
3505 * choose.cc (pick_line::paint): Reorganize after botched patch.
3507 2001-10-12 Christopher Faylor <cgf@redhat.com>
3509 * choose.cc (pick_line::paint): Add missing declaration.
3511 2001-10-10 Ralf Habacker <Ralf.Habacker@freenet.de>
3513 * choose.cc (pick_line::paint): Add package name to sdesc for display.
3515 Wed Sep 26 21:39:00 Robert Collins rbtcollins@hotmail.com
3517 * choose.cc (_view::insert_pkg): Correctly exit loop.
3518 * iniparse.y (register_category): Always insert new categories.
3520 Fri Sep 21 13:56:32 2001 Christopher Faylor <cgf@cygnus.com>
3522 * inilex.l (yylex): For comments, eat all characters up to, but not
3525 Sun Aug 26 12:50:01 2001 John Marshall <jmarshall@acm.org>
3527 * fromcwd.cc (found_file): Use correct package name when adding an
3528 unknown package rather than random stack garbage.
3530 Sun Aug 12 14:25:21 2001 Christopher Faylor <cgf@cygnus.com>
3532 * desktop.cc (make_passwd_group): .bat files need \r\n endings.
3534 Wed Aug 8 13:53:47 2001 Christopher Faylor <cgf@cygnus.com>
3536 * desktop.cc (etc_profile): Leave environment variables untouched.
3538 2001-08-07 Corinna Vinschen <corinna@vinschen.de>
3540 * autoload.c: Add dynamic load statements for NT/W2K
3541 advapi32 functions not available in 9x/ME.
3542 * main.cc (set_default_dacl): New function.
3543 (WinMain): Call `set_default_dacl' if running on NT/W2K.
3545 Sat Aug 4 21:35:53 2001 Christopher Faylor <cgf@cygnus.com>
3547 * ini.h (_CategoryPackage): Change pkg field to pkgname for
3549 * choose.cc: Use pkgname field when referencing _CategoryPackage
3551 (fill_missing_category): Don't add excluded packages.
3552 (default_trust): Ditto.
3553 (_view::insert_pkg): Ditto.
3554 * iniparse.y (register_category): Use consistent variable name.
3556 2001-07-09 Egor Duda <deo@logos-m.ru>
3558 * choose.cc: Use system foreground color for text output.
3560 Sat Jul 7 00:40:28 2001 Christopher Faylor <cgf@cygnus.com>
3562 * choose.cc (set_action): Use default trust for determining reinstall
3564 (default_trust): Set default trust.
3565 (pick_line::paint): Allow source selection when reinstalling or
3568 Fri Jul 6 18:08:49 2001 Christopher Faylor <cgf@cygnus.com>
3570 * choose.cc (isinstalled): Modify to properly accomodate special case
3572 (set_action): Check downloaded components, not installed components if
3574 (set_existence): Always include full list of files when "download
3577 Fri Jul 6 00:37:05 2001 Christopher Faylor <cgf@cygnus.com>
3579 * choose.cc (pick_line::paint): Properly display "na" field when no
3582 Thu Jul 5 00:34:23 2001 Christopher Faylor <cgf@cygnus.com>
3584 * choose.cc (scan2): Ensure that older versions do not show up in
3587 Mon Jul 2 15:47:59 2001 Christopher Faylor <cgf@cygnus.com>
3589 * choose.cc (set_action): Allow "Skip" action if trust != installed.
3590 * res.rc: Fix copyright.
3592 Sat Jun 30 14:05:21 2001 Michael A Chase <mchase@ix.netcom.com>
3594 * res.rc (IDD_LOCAL_DIR): Change caption to match the other dialog
3596 (IDD_CHOOSE): Adjust horizontal size so package names are visible.
3598 * choose.cc: Restore some more changes from 2001-06-25, throughout.
3599 (paint): Wrap some excessively long lines.
3600 (pick_line::paint): Ditto. Move the arrow in the "Current" column
3601 right to where it belongs. Move the source checkbox slightly to the
3603 (do_choose): List categories and required packages in setup.log.full.
3605 Sat Jun 30 23:04:59 2001 Christopher Faylor <cgf@cygnus.com>
3607 * choose.cc (scan2): Restore source scanning eliminated by previous checkin.
3609 Sat Jun 30 15:18:33 2001 Christopher Faylor <cgf@cygnus.com>
3611 * ini.h (struct _Info): Add "derived" element.
3612 * choose.cc (scan2): Try to place unknown tar files into proper slot
3613 when package exists in setup.ini but tar file does not.
3615 Sat Jun 30 13:39:00 2001 Robert Collins <rbtcollins@hotmail.com>
3617 * choose.cc (create_listview): Call set_view_mode with VIEW_CATEGORY.
3618 (do_choose): Log the first category name.
3620 Fri Jun 29 23:07:44 2001 Christopher Faylor <cgf@cygnus.com>
3622 *ini.h: Reapply 2001-06-25 changes.
3623 * choose.cc (add_required): Ditto. Default to "Keep" state if
3624 UNINSTALL and product is installed. Default to curr state if SKIP,
3626 (keep_or_skip): New function. Returns skip or keep state depending on
3627 installed state of package.
3628 (default_trust): Use keep_or_skip to set state.
3629 (_view::insert_pkg): Use calloc to allocate lines.
3630 (set_view_mode): Adapt 2001-06-25 change to set_full_list here.
3632 Sat Jun 30 11:01:00 2001 Robert Collins <rbtcollins@hotmail.com>
3634 * choose.cc: Remove globals full_list, headers, package_indexes and
3636 Add globals cat_headers, pkg_headers and chooser.
3637 (add_required): New function.
3638 (paint): Use the chooser for header details.
3639 Call into the chooser to paint each line.
3640 (list_click): Use new global variables.
3641 Call into the chooser to handle the click.
3642 Repaint the entire view if packages have been added or removed.
3643 (note_width): Get passed a headers struct rather than using a global
3645 (fill_missing_category): New function.
3646 (default_trust): Skip non-"Required" or "Misc" packages.
3647 (pick_line::set_line (Package *)): New function.
3648 (pick_line::set_line (Category *)): New function.
3649 (pick_line::paint): New function.
3650 (pick_line::click): New function.
3651 (_view::_view): New function.
3652 (_view::set_view_mode): New function.
3653 (_view::mode_caption): New function.
3654 (_view::set_headers): New function.
3655 (_view::init_header): New function.
3656 (_view::insert_pkg): New function.
3657 (_view::insert_category): New function.
3658 (_view::insert_at): New function.
3659 (_view::insert_under): New function.
3660 (_view::clear_view): New function.
3661 (viewsplusplus): New function.
3662 (_view::client): New function.
3663 (set_view_mode): Use new chooser functionality.
3664 (set_full_list): Use new global variables.
3665 (create_listview): Instantiate chooser.
3666 Remove all hardcoded headers[] code.
3667 (dialog_cmd): On trust changes, check dependencies.
3668 (getcategorybyname): New function.
3669 (getpackagecategorybyname): New function.
3670 (scan2): Use case-insensitive package comparison.
3671 (do_choose): Use fill_missing_category ().
3672 Show some category data.
3673 * ini.h: Protect against multiple inclusion.
3675 (_CategoryPackage): New struct.
3676 (_Category): New struct.
3677 (_Package): Change category to Category * from char *.
3678 (extern Category category): New global variable.
3679 (extern in ncategories): Ditto.
3680 (getcategorybyname): New prototype.
3681 (catpackagecategorybyname): New prototype.
3682 (register_category): New prototype.
3683 (add_category): New prototype.
3684 * iniparse.y: Parse multiple categories per package.
3685 (category): New global variable.
3686 (ncategories): New global variable.
3687 (new_package): Compare package against NULL, not 0.
3688 (new_requirement): Source formatting fix.
3689 (register_category): New function.
3690 (add_category): New function.
3691 * res.rc: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
3692 IDC_CHOOSE_VIEWCAPTION: New control.
3693 * resource.h: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
3694 IDC_CHOOSE_VIEWCAPTION: New control.
3695 Increment _APS_NEXT_CONTROL_VALUE.
3697 Mon Jun 25 00:56:37 2001 Michael A Chase <mchase@ix.netcom.com>
3699 * choose.cc (paint): Wrap excessively long lines.
3700 (list_click): Ditto.
3701 (create_listview): Ditto.
3702 (do_choose): Ditto. Replace TABs and remove CRs in lines written to
3703 setup.log.full. Allow "Yes" for source exists in setup.log.full when
3704 installing from local directories.
3706 Mon Jun 25 00:56:37 2001 Christopher Faylor <cgf@cygnus.com>
3708 * choose.cc (set_action): Only clear srcpicked when moving to next
3709 state. Allow source installation if it exists in the current "trust"
3710 state. Don't move to skip state when package is installed.
3711 (list_click): Don't allow source clicking when no source is available.
3712 (set_full_list): Display package when not is_full_action.
3713 * ini.h (is_full_action): Define.
3715 Sun Jun 17 12:06:14 2001 Christopher Faylor <cgf@cygnus.com>
3717 * install.cc (check_for_old_cygwin): New function. First stab at
3718 checking for old cygwin versions.
3719 (do_install): Call check_for_old_cygwin if there were no errors during
3722 Sat Jun 16 11:33:51 2001 Michael A Chase <mchase@ix.netcom.com>
3724 * choose.cc (_Info::_Info): Test _source paramenter for non-NULL rather
3725 than zeroed "source" element.
3727 Fri Jun 15 20:54:43 2001 Christopher Faylor <cgf@cygnus.com>
3729 * choose.cc (scan2): Insert unknown tar archives, found on disk, into
3730 the highest available "hole" in the trust array.
3732 Fri Jun 15 00:20:48 2001 Christopher Faylor <cgf@cygnus.com>
3734 * choose.cc (set_existence): Use pointer method for indexing in trust
3736 (create_listview): Ditto.
3737 (scan2): Ditto. Also, use consistent variable name for indexing into
3739 * ini.h (Package): Reorganize info array for easier scanning.
3741 Fri Jun 15 00:01:51 2001 Christopher Faylor <cgf@cygnus.com>
3743 * choose.cc (isinstalled): Eliminate special download only test.
3744 (set_action): Don't move to next state if in ACTION_SAME range and not
3746 (choose_caption): Display "Retrieve" rather than "Reinstall" when just
3748 (do_choose): Sort packages after all packages have been read.
3749 Accomodate the fact that first element in trust array is empty so that
3750 log files don't report the wrong trust value.
3751 * iniparse.y (new_package): Malloc space for package name or suffer
3754 Thu Jun 14 22:43:59 2001 Robert Collins <rbtcollins@hotmail.com>
3756 * ini.h (Dependency): New structure. Declare new function.
3757 * inilex.l (yylex): Detect new setup.ini options - category and requires.
3758 * iniparse.y: Declare new setup.ini token values.
3759 (yyparse): Parse new token values.
3760 (new_requirement): New function.
3762 Thu Jun 14 22:43:26 2001 Christopher Faylor <cgf@cygnus.com>
3764 * choose.cc (read_installed_db): Eliminate obsolete code.
3766 Thu Jun 14 22:11:53 2001 Christopher Faylor <cgf@cygnus.com>
3768 * choose.cc (set_action): Set trust on "redo".
3769 (_Info::_Info): New constructor.
3770 (read_installed_db): Use new constructor. Use trusts type for
3772 * ini.h (struct _Info): Label struct, add constructor.
3773 (Package): Make installed_ix a type 'trusts.'
3774 * install.cc (uninstall_one): Unset any installed info for current
3776 (install_one): Allocate new Info struct for installed reflecting new
3778 (do_install): Don't output line to installed.db if package is being
3781 Thu Jun 14 20:33:01 2001 Robert Collins <rbtcollins@hotmail.com>
3783 * choose.cc (getpkgbyname): Use consistent method for scanning package
3786 Wed Jun 13 23:33:08 2001 Christopher Faylor <cgf@cygnus.com>
3788 * choose.cc: Add some comments.
3789 (getpkgbyname): Use strcasecmp for comparisons.
3791 Wed Jun 13 16:07:00 2001 Christopher Faylor <cgf@cygnus.com>
3793 * install.cc (do_install): Avoid checking for download action if
3794 package wasn't currently retrieved.
3796 Wed Jun 13 11:27:22 2001 Christopher Faylor <cgf@cygnus.com>
3798 * choose.cc: Eliminate extra array throughout. Use element in package
3799 structure instead. Use pointers rather than array indexes where
3801 (set_action): New function to set next action based on current.
3802 (choose_caption): New function. Returns display caption.
3803 (check_existence): Change arguments. Use pointer to 'info' structure.
3804 (set_existence): Use pointer rather than array index.
3805 (default_trust): Use trusts enum for second argument.
3806 (set_full_list): Honor exclude element in package structure.
3807 (build_labels): Eliminate.
3808 (base): Make global. Use const char * argument.
3809 (get_package_version): Eliminate.
3810 (getpkgbyname): New function.
3811 (read_installed_db): Use parse_filename to get version info.
3812 * desktop.cc (make_passwd_group): Use getpkgbyname function.
3813 * download.cc (get_file_size): const argument.
3814 (do_download): Use is_download_action to determine when something
3815 should be downloaded.
3816 * filemanip.h: Add some functions.
3817 * ini.cc (do_ini): Use NULL rather than 0 for pointer assignment.
3818 * ini.h: Use enums for actions and trusts.
3819 (is_download_action): New macro.
3820 (is_upgrade_action): Ditto.
3821 (is_uninstall_action): Ditto.
3822 (struct Package): Add new fields.
3823 * inilex.l (yylex): Detect new setup.ini options.
3824 * iniparse.y: Declare new tokens.
3825 (yyparse): Detect exclude keyword. Fill out version field even if
3827 (new_package): Use greater granularity when allocating package array to
3828 avoid repeated calls to realloc.
3829 * install.cc (exists): const argument.
3830 (uninstall_one): Take pkg argument.
3831 (install_one): Ditto. Eliminate unneeded arguments which can be
3832 derived from package info.
3833 (do_install): Iterate over package array using a pointer. Use
3834 is_download_action to control when package should be downloaded.
3835 * tar.cc (tar_open): const argument.
3836 * tar.h: Refloect const argument.
3838 2001-05-31 Michael Chase mchase@ix.netcom.com
3840 * main.cc (WinMain): Add setup version to starting setup.log entry
3842 Tue May 29 21:37:58 2001 Yukihiko Sohda <sohda@is.titech.ac.jp>
3844 * inilex.l: Add + to list of valid string characters.
3846 Mon May 28 20:54:50 2001 Christopher Faylor <cgf@cygnus.com>
3848 * Makefile.in: Remove more stuff in the clean target.
3850 Mon May 28 18:24:59 2001 Christopher Faylor <cgf@cygnus.com>
3852 * Makefile.in: Correctly generate iniparse.h.
3854 Tue Mar 6 19:14:00 2001 Corinna Vinschen <corinna@vinschen.de>
3856 * geturl.cc (get_url_to_file): Add parameter `allow_ftp_auth'.
3857 * geturl.h: Change declaration of `get_url_to_file' accordingly.
3858 * netio.cc (NetIO::NetIO): Add parameter `allow_ftp_auth'.
3859 Set member `ftp_auth'.
3860 (NetIO::open): Add parameter `allow_ftp_auth'. Use it in calls
3861 to constructors of derived classes.
3862 (NetIO::get_ftp_auth): New method.
3863 * netio.h: Change class definition accordingly.
3864 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Add parameter `allow_ftp_auth'.
3865 Take global variables `net_ftp_user' and `net_ftp_passwd' into account.
3866 Add code for ftp authentication retry.
3867 * nio-ftp.h: Change class definition accordingly.
3868 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Add parameter `allow_ftp_auth'.
3869 Add code for ftp authentication retry in case of proxy connection.
3870 * nio-http.h: Change class definition accordingly.
3871 * res.rc: Add FTP authentication dialog.
3872 * resource.h: Add new constants used in res.rc.
3873 * state.h: Add variables `net_ftp_user' and `net_ftp_passwd'.
3875 Sun May 27 17:12:23 2001 Christopher Faylor <cgf@cygnus.com>
3877 * res.rc (IDD_SPLASH): Add a copyright year.
3879 Sun May 27 15:42:18 2001 Christopher Faylor <cgf@cygnus.com>
3881 * Makefile.in: Make iniparse.y produce a c++ file.
3882 * choose.cc (set_existence): Revert 2001-05-27 change.
3883 * ini.cc: Remove "C" from declaration of yyparse.
3884 * iniparse.y (yyparse): Fill out version field by default when a binary
3885 install is detected and no version has been set yet.
3886 * install.cc (do_install): Mount things earlier so that we can use
3887 proper mount table settings. Don't remove mounts since they are now
3889 * mount.cc (create_mount): Reread the mount table after establishing a
3891 (read_mounts): Explicitly clear root_here to allow multiple uses of
3892 this function. Ensure that there is no garbage in the table when we've
3893 exhausted all of the mounts in the registry.
3894 (cygpath): Accomodate ./ in path.
3896 Sun May 27 02:59:07 2001 Christopher Faylor <cgf@cygnus.com>
3898 Use parse_filename method to parse filenames throughout. Use
3899 get_root_dir to retrieve the current root directory throughout. Set
3900 const in argument list, where appropriate, throughout.
3901 * choose.cc (set_existence): Detect case of uninstalled package with no
3903 (parse_filename): New function.
3904 * filemanip.h (fileparse): New structure.
3905 * mount.cc (read_mounts): Remember where we found the root mount.
3906 (set_root_dir): New function.
3907 (get_root_dir): Ditto.
3908 * mount.h: Declare new functions.
3909 * site.cc (get_root_dir_now): Renamed from get_root_dir.
3910 (save_site_url): Use new function name.
3911 (get_initial_list_idx): Ditto.
3913 Sat May 26 21:23:59 2001 Christopher Faylor <cgf@cygnus.com>
3915 * choose.cc: Use a constant throughout to deal with chooser icon
3917 * res.rc (IDD_CHOOSE): Increase size of chooser box.
3919 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
3921 * choose.cc (do_choose): Fix incorrect assignment of trust setting to
3922 use when Redownload or Sources Only selected.
3924 Thu May 10 22:35:59 2001 Christopher Faylor <cgf@cygnus.com>
3926 Reformat file after botched patch formatting.
3927 * choose.cc (which_trust): Eliminate variable.
3928 (default_trust): Don't set which_trust.
3929 (do_choose): Use selected trust when reinstalling or installing source.
3931 Thu May 10 21:04:18 2001 Christopher Faylor <cgf@cygnus.com>
3933 Change concat to cygpath throughout.
3934 Change map_filename to cygpath throughout.
3935 * concat.cc (vconcat): New function.
3936 (concat): Use vconcat.
3937 * concat.h: Reflect above.
3938 * install.cc (map_filename): Eliminate.
3939 (install_one): Free dest_file.
3940 * mount.cc (find2): Expect input key to be pointing to mount record.
3941 (in_table): New function.
3942 (is_admin): Move from root.cc.
3943 (read_mounts): New function.
3944 (path_prefix_p): New function.
3945 (cygpath): New function.
3946 * mount.h: Define new functions and structure.
3947 * root.cc (in_table): Move to mount.cc.
3948 (do_root): Call read_mounts to initialize root stuff and mount table.
3949 * site.cc (get_root_dir): Ditto.
3951 2001-05-09 Matt Hargett <matt@use.net>
3953 * Makefile.in: Remove *.rc from clean.
3955 Tue May 8 23:33:38 2001 Christopher Faylor <cgf@cygnus.com>
3957 * choose.cc (scan2): Fix incorrect setting of TRUST_CURR rather than
3958 TRUST_PREV which produced "0" versions.
3960 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
3962 * resource.h: Add new field IDC_CHOOSE_INST_TEXT. Modify
3963 _APS_NEXT_CONTROL_VALUE to account for addition of
3964 IDC_CHOOSE_INST_TEXT.
3965 * res.rc (IDD_CHOOSE): Modify choose dialog to use new field
3966 IDC_CHOOSE_INST_TEXT for screen text. Modify choose Dialog to allow
3967 hot keys to select Prev, Curr, Exp.
3968 * ini.h: Add new actions for ACTION_REDO and ACTION_SRC_ONLY. Modify
3969 define for LOOP_PACKAGES to include new actions ACTION_REDO and
3971 * choose.cc: Add new Trusts for TRUST_REDO and TRUST_SRC_ONLY.
3972 (paint): Modify to check TRUST_SRC_ONLY when determining Bitmap for
3973 source Checkbox to use.
3974 (build_labels): Add logic to allow for selection of Source only
3975 Download/ReDownload/Install/Reinstall and also to Redownload/Reinstall
3976 current version binary.
3977 (dialog_proc): Add conditional display for file selection prompt based
3978 on download vs install using IDC_CHOOSE_INST_TEXT.
3979 (do_choose): Add new logic for TRUST_REDO and TRUST_SRC_ONLY selection
3980 and modify logic for TRUST_UNINSTALL, TRUST_KEEP, and TRUST_NONE to
3981 handle the instance where Source Download/Install was selected. Modify
3982 log file to store appropriate information regarding Action selected and
3983 the new actions that were added (I.E.: ACTION_REDO and
3985 * download.cc: Add include for <unistd.h> and "port.h".
3986 (download_one): Modify parameter list to include the selected action
3987 for the file to be downloaded. Modify size check against expected size
3988 to include check for ACTION_REDO and ACTION_SRC_ONLY. Modify rename of
3989 .tmp file to also remove the destination file if exists due to ability
3990 to redownload source and binary now.
3991 (do_download): Modify to also use ACTION_REDO and ACTION_SRC_ONLY in
3992 calculation of Download Bytes. Modify to also use ACTION_REDO and
3993 ACTION_SRC_ONLY in determining files selected for download.
3994 * install.cc (uninstall_one): Add check to treat a Reinstall like an
3995 upgrade so current version will be uninstalled prior to reinstall.
3996 (do_install): Add logic to handle ACTION_REDO and ACTION_SRC_ONLY for
3997 uninstalling and installing binary and source packages.
3998 * desktop.cc (make_passwd_group): Modify logic to account for a Source
3999 only cygwin install when checking for cygwin to determine need for
4000 mkpasswd and mkgroup.
4002 Mon May 7 23:33:30 2001 Matt Hargett <matt@use.net>
4004 * winsup/cinstall/res.rc: Added accelerators and improved focus order.
4005 Removed WS_DISABLED from "OK" buttons to accomodate default focus
4006 changes in net.cc and source.cc.
4007 * winsup/cinstall/net.cc (dialog_proc): If no radio button is selected,
4008 a default is selected.
4009 * winsup/cinstall/source.cc (dialog_proc): Ditto.
4010 (check_if_enable_next): Removed. No longer needed since a radio button
4011 will always be selected.
4012 (load_dialog): Removed call to check_if_enable_next.
4013 (dialog_cmd): Ditto. Also added default to switch.
4015 Tue Apr 24 23:42:02 2001 Christopher Faylor <cgf@cygnus.com>
4017 * res.rc: Resize affected text.
4019 Tue Apr 24 23:35:31 2001 Christopher Faylor <cgf@cygnus.com>
4021 * net.cc (do_net): Default to direct download.
4022 * res.rc: Move default selections to the top.
4024 2001-04-18 Earnie Boyd <earnie@users.sourceforge.net>
4026 * win32.h: Remove the definitions for _UNION_NAME and _STRUCT_NAME.
4027 Must now include <windows.h> and not the pieces.
4028 * choose.cc (create_listview): Clean up type mismatch problems.
4029 * dialog.h (NEXT(id)): Ditto.
4030 * geturl.cc (dialog): Ditto.
4031 * install.cc (dialog): Ditto.
4032 * splash.cc (load_dialog): Ditto.
4034 Wed Apr 18 18:59:21 2001 Christopher Faylor <cgf@cygnus.com>
4036 * tar.cc (class gzbz): Define dummy virtual functions.
4038 Wed Apr 18 16:01:21 2001 Christopher Faylor <cgf@cygnus.com>
4040 * Makefile.in: Add bz2 include/library support.
4041 * filemanip.h: New file.
4042 * choose.cc (find_tar_ext): New function. Returns TRUE if .tar.gz or
4044 (scan2): Reorganize to use find_tar_ext, accomodating .bz2 extension.
4045 (read_installed_db): Ditto.
4047 * fromcwd.cc (found_file): Ditto.
4048 (do_fromcwd): Ditto.
4049 * tar.cc (class gzbz): New super class for uncompression support.
4050 (gz): New class for gzip support.
4051 (bz): New class for bzip2 support.
4052 (tar_open): Use gzbz class to control file opening.
4053 (tar_ftell): Ditto for returning position in file.
4054 (skip_file): Ditto for reading file.
4055 (tar_next_file): Ditto.
4056 (tar_read_file): Ditto.
4057 (tar_close): Ditto for close.
4059 * zlib/configure.in: Force NM substitution.
4061 * source.cc (do_source): Default to "Install from Internet".
4063 2001-03-16 Brian Keener <bkeener@thesoftwaresource.com>
4065 * nio-file.cc (NetIO_File::NetIO_File): Use `get_file_size' instead of
4067 * choose.cc (list_click): Correct inability to select source code for
4069 (scan2): Modify to skip source tarballs when scanning disk for
4070 installable packages.
4072 2001-03-10 Chris Abbey <chris_abbey@yahoo.com>
4074 * install.cc: install sources into /usr/src instead
4075 of /, also include the sizes of source tarballs
4077 * download.cc: include sizes of source tarballs in
4078 total_download_bytes.
4080 Tue Mar 6 19:31:00 2000 Corinna Vinschen <corinna@vinschen.com>
4082 * download.cc (get_file_size): Remove `static'.
4084 Tue Mar 6 19:11:00 2000 Corinna Vinschen <corinna@vinschen.com>
4086 * tar.cc (tar_open): Use `get_file_size' instead of `stat'.
4088 2001-03-06 Brian Keener <bkeener@thesoftwaresource.com>
4090 * choose.cc (paint): Modify message for nothing to download vs
4091 nothing to install/update based on installation method.
4092 (list_click): Modify to skip versions in selection process if
4093 installing from local directory and installation file does not exist.
4094 Also leaves Source Action set to N/A if the source file does not exist
4095 and installing from local directory.
4096 (check_existence): New method to check current existence of installation
4097 files based on selected installation method.
4098 (set_existence): New method to set the current existence of installation
4099 files based on selected installation method.
4100 (best_trust): Modify decision process for best trust to base decision on
4101 current trust selected (IE: Prev, Curr, or Test), existence of file and
4102 installation method selected.
4103 (default_trust): Add logic to capture the current trust level and the
4104 trust selected for the given package.
4105 (set_full_list): Expand decision criteria for displaying a package in
4106 the selection list to include file existence/non-existence and selected
4107 installation method.
4108 (build_labels): Modify criteria for label addition to include
4109 installation method and file existence/non-existence.
4110 (create_listview): Modify to establish package trust level for each
4111 package before setting up the display list. Also modification to set
4112 current trust button as the default.
4113 (dialog_cmd): Set response for Prev, Curr, Test button push to perform
4114 a reset of the selection list in addition to setting the default trust.
4115 (get_package_version): New method to provide reusable code for
4116 determining the package version from the file name for a specified
4118 (scan2): Modify to use new method get_package_version and
4119 also enhance handling of the build for the structures package and
4121 (read_installed_db): Modify to use the new method
4122 get_package_version and also enhance handling of the build for the
4123 structures package and extra.
4124 (do_choose): Add additional initialization of package and extra
4125 structures. Modify to use read_installed_db all the time despite
4126 install method. Modify output to setup.log.full log file to increase
4127 readability by adding additional spacing, expanded code and available
4129 * ini.h: Add new fields install_exists, source_exists and
4130 partial_list_display to the structure definition for package.
4131 * res.rc (IDD_CHOOSE): Modify choose dialog Prev, Curr, and Test
4132 pushbuttons by replacing with Radio Buttons thus allowing the
4133 operator to better determine which is selected.
4135 2001-02-20 Brian Keener <bkeener@thesoftwaresource.com>
4137 * download.cc (do_download): Add new variables total_download_bytes and
4138 total_download_bytes_sofar for download progress meter. Add loop
4139 to accumulate the total bytes to download from the selected packages.
4140 * geturl.cc: Add state.h and diskfull.h to include list. Add new
4141 variables gw_iprogress, gw_pprogress, gw_progress_text,
4142 gw_pprogress_text, and gw_iprogress_text to allow for addition of
4143 total packages download progress meter and disk full percent
4144 progress meter. Add variables total_download_bytes and
4145 total_download_bytes_sofar for use by progress meters.
4146 (dialog_proc): Add new variables gw_iprogress, gw_pprogress,
4147 gw_progress_text, gw_pprogress_text, and gw_iprogress_text to
4148 allow for addition of total packages download progress meter and disk
4149 full percent progress meter.
4150 (init_dialog): Ditto.
4152 (get_url_to_file): Ditto.
4153 * geturl.h: Add external definition for total_download_bytes and
4154 total_download_bytes_sofar.
4155 * res.rc: Add two additional progress meters (IDC_DLS_IPROGRESS)
4156 and (IDC_DLS_PPROGRESS) and three text objects (IDC_DLS_PROGRESS_TEXT)
4157 and (IDC_DLS_IPROGRESS_TEXT, IDC_DLS_PPROGRESS_TEXT) for use in the
4159 * resource.h: Add new fields for progress meters and text and update
4160 _APS_NEXT_CONTROL_VALUE.
4162 Wed Feb 21 13:05:00 2000 Corinna Vinschen <vinschen@redhat.com>
4164 * download.cc (get_file_size): Check for INVALID_HANDLE_VALUE instead
4167 Wed Feb 21 11:21:00 2000 Corinna Vinschen <vinschen@redhat.com>
4169 * download.cc (download_one): Add missing parenthesis.
4171 Mon Feb 19 18:59:00 2000 Corinna Vinschen <vinschen@redhat.com>
4173 * download.cc (get_file_size): New function. Eliminates the need
4175 (download_one): Call `get_file_size' instead of `stat'. This
4176 workarounds a problem with mingw's `stat' call.
4178 2001-02-07 Earnie Boyd <earnie@users.sourceforge.net>
4180 * Makefile.in: (%.o: %.rc): Specify --include-dir $(w32api_include).
4181 This is to allow cinstall to build with 2.95.2-7 and to make the
4182 use of headers consistent.
4184 2000-12-26 Earnie Boyd <earnie_boyd@yahoo.com>
4186 * Makefile.in (autoload.o): Add target to specify -fno-inline-functions
4188 Tue Dec 26 03:46:00 2000 Matt Hargett <matt@use.net>
4190 * winsup/cinstall/res.rc: Added accelerators and improved focus
4193 2000-12-10 Egor Duda <deo@logos-m.ru>
4195 * choose.cc (paint): Use system background color for text output.
4197 Sun Dec 10 19:05:25 2000 Christopher Faylor <cgf@cygnus.com>
4199 * Makefile.in: Use CXX for linking and for compiling .cc files.
4200 * configure.in: Find correct c++ compiler.
4201 * configure: Regenerate.
4203 2000-11-17 DJ Delorie <dj@redhat.com>
4205 * splash.cc (load_dialog): Make message more obvious.
4208 Fri Nov 17 17:15:21 2000 Christopher Faylor <cgf@cygnus.com>
4210 * Makefile.in: Use g++ to link so that libstdc++.a gets used. This is
4211 necessary for newer compilers.
4213 Wed Nov 9 2:19:00 2000 Corinna Vinschen <vinschen@redhat.com>
4215 * desktop.cc: Include "ini.h" and "version.h".
4216 (make_passwd_group): Skip the function on 9x/ME boxes when an
4217 older version of Cygwin has been installed which doesn't
4218 support mkpasswd/mkgroup on 9x/ME.
4219 * install.cc: Move the `LOOP_PACKAGES' and `pi' macros to...
4222 Wed Nov 8 17:10:00 2000 Corinna Vinschen <vinschen@redhat.com>
4224 * desktop.cc (make_passwd_group): Don't exit when started
4225 on 9x/ME since mkpasswd/mkgroup are usable on 9x/ME now.
4227 Sun Nov 5 12:51:42 2000 Jason Tishler <jt@dothill.com>
4229 * install.cc (do_install): Add call to set_cygdrive_flags to sync
4231 * mount.cc (set_cygdrive_flags): New function.
4232 (get_cygdrive_flags): Ditto.
4233 (default_cygdrive): Ditto.
4234 (set_cygdrive_flags): Ditto.
4235 * mount.h: Add prototype for set_cygdrive_flags.
4237 2000-10-23 DJ Delorie <dj@redhat.com>
4239 * ini.h: add source actions
4240 * fromcwd.cc: check for available sources
4241 * res.rc: add checkbox bitmaps
4244 * choose.cc: add source column
4245 * download.cc: download sources if called for
4246 * install.cc: [un]install sources too
4248 2000-10-22 DJ Delorie <dj@redhat.com>
4250 * choose.cc (build_labels): Don't skip TRUST_PREV completely; only
4251 ignore it wrt full_list if there's already a version installed.
4252 (do_choose): Sort the list.
4253 (package_sort): New.
4255 2000-10-12 DJ Delorie <dj@redhat.com>
4257 * res.rc: Add more error strings.
4258 * resource.h: Ditto.
4259 * iniparse.y (new_package): re-initialize if needed.
4260 * download.cc (do_download): Keep track of errors; notify and
4262 * install.cc (do_install): Ditto.
4264 2000-10-05 DJ Delorie <dj@redhat.com>
4266 * Makefile.in: fix %.cc rule
4268 2000-10-04 DJ Delorie <dj@redhat.com>
4270 * desktop.cc: quote HOME and USER, don't . ./.profile
4272 * choose.cc (build_labels): don't include in partial list just
4273 because there's a *previous* version available.
4275 * install.cc (do_install): if installing from local directory with
4276 setup.ini and the file isn't found, look in "." also. Note errors.
4278 2000-10-02 DJ Delorie <dj@redhat.com>
4280 * ini.cc (do_ini): save setup.ini locally
4282 2000-10-02 Chris Abbey <cabbey@bresnanlink.net>
4284 * desktop.cc: quote escapes in prompt
4286 2000-10-02 Jason Tishler <jt@dothill.com>
4288 * root.cc (is_admin): New function.
4289 (read_mount_table): Check for administrative priviledges and set
4290 installation scope as appropriate.
4292 2000-09-28 DJ Delorie <dj@redhat.com>
4294 * nio-ftp.cc (ftp_line): handle continuations more robustly
4296 2000-09-14 Brian Keener <bkeener@thesoftwaresource.com>
4298 * res.rc: increased the size of the site dialog (IDD_SITE) & the
4299 corresponding list box to provide for more URL's to be listed.
4300 Modified the position of the Back, Next and Cancel buttons to
4301 correspond to the new size of the dialog.
4303 2000-09-13 DJ Delorie <dj@redhat.com>
4305 * install.cc (do_install): update disk fullness once per package
4306 to improve performance
4308 * choose.cc (create_listview): call ReleaseDC
4310 Mon Sep 11 22:40 2000 Harold L Hunt II <harold@compasstechnologies.com>
4312 * mkdir.cc: Create directories when ERROR_FILE_NOT_FOUND is
4313 returned, as it seems Samba 2.0.6+ returns this instead of
4314 ERROR_PATH_NOT_FOUND
4316 Mon Sep 11 19:35:24 2000 Christopher Faylor <cgf@cygnus.com>
4318 * site.cc (get_initial_list_idx): Don't default to saved URL if it
4321 2000-09-07 DJ Delorie <dj@redhat.com>
4323 * splash.cc: use version.h, not local decl
4324 * res.rc: add "old version" message
4327 * fromcwd.cc (canonicalize_version): make global
4328 * iniparse.y: add setup-version support, fix bug in blank line
4331 * inilex.l: add [exp] as alias for [test], add setup-version
4332 * Makefile.in (version.c): add setup-version tag
4334 * desktop.cc (do_desktop): remove 1.1 version number
4335 (do_desktop_setup): ditto
4337 * ini.cc (do_ini): zero out package list just in case we redo it.
4339 2000-09-07 Jeffrey Juliano <juliano@cs.unc.edu>
4341 * choose.cc (list_click): Check for nindexes==0; if so, return.
4343 2000-09-06 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
4345 * localdir.cc: new, local package directory selection dialog; cd
4346 into selected directory
4347 * Makefile.in (OBJS): add localdir.o
4348 * dialog.h: add prototype for do_local_dir
4349 * main.cc (WinMain): initialize local_dir to cwd; add call to
4351 * net.cc (dialog_cmd): make DO_LOCAL_DIR next dialog
4352 * source.cc (dialog_cmd): ditto
4353 * res.rc: add DO_LOCAL_DIR dialog; remove "current directory" from
4354 presented choices in IDD_SOURCE; add IDS_ERR_CHDIR error string
4355 * resource.h: defines for DO_LOCAL_DIR dialog; define IDS_ERR_CHDIR
4356 * root.cc (dialog_cmd): make DO_LOCAL_DIR previous dialog
4357 * state.h: add local_dir variable
4359 2000-09-06 Brian Keener <bkeener@thesoftwaresource.com>
4361 * desktop.cc: added logic to handle to the new dialog and to
4362 default the setting for the new checkboxes based on whether the
4363 desktop icon or start menu link already exist.
4364 (desktop_icon): correction to desktop directories for desktop icon
4365 creation. Additional logic added for Win95 which does not appear
4366 to have Common Directories so if Common selected and null uses
4368 (start_menu): Additional logic added for Win95 which does not
4369 appear to have Common Directories so if Common selected and null
4370 uses normal directory.
4371 (do_desktop_setup): moved the saving of the icon, creation of the
4372 bat file, profile, passwd, Start Menu link and desktop shortcut to
4373 this method from do_desktop. Made the creation of the desktop
4374 icon and start menu link conditional on settings of new dialog
4375 created for desktop.
4376 * install.cc (do_install): changed next from IDD_S_DESKTOP to
4378 * main.cc (WinMain): changed case IDD_S_DESKTOP to IDD_DESKTOP.
4379 * res.rc: added new resource to create a desktop dialog with 2
4380 checkboxes for creating the desktop icon and start menu link.
4381 * resource.h: changed IDD_S_DESKTOP to IDD_DESKTOP and added two
4382 new controls: IDC_ROOT_MENU and IDC_ROOT_DESKTOP for new dialog.
4383 * state.h: added root_menu and root_desktop for use in dialog.
4385 2000-08-29 DJ Delorie <dj@redhat.com>
4387 * choose.cc (scan_downloaded_files): scan for existing files, so
4388 that the user only sees new downloads.
4390 * nio-ie5.cc (NetIO_IE5): pre-check for wininet.dll, enable dial-up
4391 * site.cc (do_site): if we can't download the mirror list, go back
4392 to the net setup box to choose another transport.
4393 * autoload.c: add more functions
4394 * Makefile.in (ALL_DEP_LDLIBS): remove wininet.a
4395 * resource.h: add WININET message
4397 * net.cc (do_net): no longer default to IE5
4398 * simpsock.h (class SimpleSocket): new, simplify socket operations
4399 * simpsock.cc: ditto
4400 * nio-http.h: new, for direct http protocol
4401 * nio-http.cc: ditto
4402 * nio-ftp.h: new, for direct http protocol
4404 * netio.cc (set_url): move initialization here to handle redirections
4405 (open): add direct http/ftp
4406 * netio.h (NetIO::set_url): new
4408 * log.cc (log_save): create directory for log if needed
4410 * hash.cc, hash.h: new
4411 * Makefile: add hash.o
4412 * choose.cc: enable "uninstall" option
4413 * download.cc: invert action test to accomodate uninstalling
4414 * ini.h: add ACTION_UNINSTALL
4415 * install.cc: add uninstall functionality
4416 * res.rc: make install tag changeable
4417 * resource.h: add uninstall resources
4419 * res.rc: update mirror list URL
4421 2000-08-24 DJ Delorie <dj@redhat.com>
4423 * log.cc, log.h: new files
4424 * Makefile.in (OBJS): add log.o
4425 * tar.cc: use exit_setup instead of exit
4426 * dialog.cc (fatal): use exit_setup instead of ExitProcess
4427 * msg.cc (fatal): ditto
4428 * install.cc (dialog_cmd): ditto
4429 * ini.cc (do_ini): ditto
4430 * main.cc (main): add logging
4431 * source.cc (do_source): ditto
4432 * root.cc (do_source): ditto
4433 * site.cc (do_site): ditto
4434 * other.cc (do_other): ditto
4435 * net.cc (do_net): ditto
4436 * choose.cc (do_choose): ditto
4437 * download.cc (do_download): ditto
4438 * install.cc (do_install): ditto
4439 * msg.cc (fatal): ditto
4441 * res.rc: mark password boxes as *being* password boxes.
4443 * fromcwd.cc (canonicalize_version): use multiple buffers so that multiple
4444 calls won't use the same buffer.
4445 * choose.cc (create_listview): don't default to full list if no changes
4446 (base): return computed value, not temporary :-(
4447 (do_choose): don't use installed.db if we're only downloading.
4449 2000-08-23 DJ Delorie <dj@redhat.com>
4451 * nio-ie5.cc (NetIO_IE5): Fix authentication logic
4452 * nio-ie5.h (flush_io): new
4453 * netio.cc (load_dialog): note when we're initializing the dialog
4454 box, and ignore changes to the edit fields then.
4456 2000-08-21 DJ Delorie <dj@redhat.com>
4460 * fromcwd.cc (found_file): don't remember the canonicalized version
4462 * choose.cc (paint): print "nothing to do" message when list is empty.
4463 (build_labels): Use version "0.0" if no version is available.
4464 (create_listview): default to full list if nothing to install/update.
4465 (base): new, returns basename of file
4466 (read_installed_db): compare base names, not full paths
4468 2000-08-11 DJ Delorie <dj@redhat.com>
4470 * choose.cc: add new chooser dialog
4471 * fromcwd.cc: use IDD_CHOOSE
4472 * ini.cc: use IDD_CHOOSE
4473 * main.cc: use IDD_CHOOSE
4474 * ini.h: cosmetic changes
4475 * res.rc: add choose dialog, bitmaps
4476 * choose-spin.bmp: new
4477 * choose-rtarrow.bmp: new
4478 * resource.h: add choose dialog controls
4480 * mount.cc: remove debug statement
4482 2000-08-08 DJ Delorie <dj@redhat.com>
4484 * Makefile.in (version.c): make version checking more robust
4485 * splash.cc (load_dialog): handle case where there's no version
4487 2000-08-07 DJ Delorie <dj@redhat.com>
4489 * (all): add cvsid tags
4490 * Makefile.in: generate version.c from ChangeLog, add splash.o
4492 * res.rc: add splash screen
4494 2000-08-02 DJ Delorie <dj@redhat.com>
4496 * net.cc: remove proxy password code
4497 * res.rc: remove proxy user/pass from net, add auth dialogs
4498 * netio.cc,h: add sys/proxy auth methods
4499 * nio-ie5: use them, check for http status codes
4500 * state.h: add system authorization
4502 * concat.cc (concat): canonicalize x:// to x:/ (exception to ://
4505 2000-08-02 Norman Vine <nhv@yahoo,com>
4507 * msg.cc (mbox): added MB_TOPMOST to MessageBox type flags
4509 2000-08-01 DJ Delorie <dj@redhat.com>
4511 * postinstall.cc (each): don't rename files we ignore
4512 (do_postinstall): set CYGWINROOT to root_dir, chdir there
4514 * desktop.cc: have /etc/profile call ~/.profile and ~/.bashrc
4516 2000-07-31 DJ Delorie <dj@redhat.com>
4518 * desktop.cc: reverse PATH so /usr/bin precedes /bin
4520 2000-07-18 DJ Delorie <dj@redhat.com>
4522 * autoload.c: new, autoload dlls that might not be available.
4523 * Makefile.in (OBJS): add autoload.o
4525 * res.rc: rewrite root options (text/binary, system/user) to be
4528 * site.cc (get_site_list): trim displayed URL, sort by domain
4530 * net.cc (do_net): make IE5 default to checked, for now
4532 * choose.cc (do_choose): sort packages correctly
4533 * ini.cc (do_ini): handle parse errors more gracefully
4535 (fprintf): line buffer output
4536 (do_ini): if we can't load setup.ini, go back to the site list.
4537 * ini.h: add "unknown" trust level
4538 * inilex.l: absorb unknown trust levels and key/value pairs,
4539 add line number logic
4540 * iniparse.y: handle parse errors more gracefully.
4541 * install.cc: skip packages with no valid install entry
4543 2000-07-17 DJ Delorie <dj@cygnus.com>
4545 * coding standards fixups, many files
4546 * mkdir.cc: warn about deletions *before* deleting them
4548 2000-07-17 Jeff Juliano <juliano@cs.unc.edu>
4550 * res.rc (IDD_OTHER_URL): reorder to give default focus to entry
4552 * other.cc (dialog_cmd): save download site URL
4553 * site.cc (get_root_dir): new
4554 (save_mirror_site): new
4555 (dialog_cmd): save download site URL
4556 (get_site_list): make list big enough to add prev site
4557 (get_initial_list_idx): new, read last-used URL from file and
4558 append it to site_list
4559 (do_site): call get_initial_list_idx
4561 * concat.cc (concat): avoid segfault when first parm is null
4563 2000-07-13 DJ Delorie <dj@cygnus.com>
4565 * postinstall.cc: new
4566 * Makefile.in: add postinstall.o
4567 * concat.h: add backslash ()
4569 * desktop.cc (etc_profile): don't do postinstall
4570 (backslash): moved to concat.cc
4572 (make_postinstall_script): run directly
4573 (do_desktop): chain to do_postinstall
4574 * dialog.h: add exit_msg, do_postinstall
4575 * download.cc: use exit_msg
4577 * main.cc: add postinstall, exit_msg
4578 * resource.h: add postinstall
4579 * README: add more to-do items
4581 2000-07-12 DJ Delorie <dj@cygnus.com>
4583 * desktop.cc: add /etc/postinstall/ support
4584 * install.cc: add more "standard" directories
4586 2000-07-11 DJ Delorie <dj@cygnus.com>
4588 * desktop.cc: create /etc/profile
4589 * desktop.cc: fix include syntax
4590 * Makefile.in: add auto-dependencies
4591 * root.cc: support system vs user
4599 * desktop.cc: make sure we use backslashes, not slashes.
4600 * desktop.cc: don't set PATH in cygwin.bat, create /etc/passwd
4601 * geturl.cc: change math for percentage to avoid overflow
4603 * download.cc: post "download complete" message.
4604 * root.cc: pre-fill in defaults if needed, don't start
4605 browse at root_dir unless it's set.
4606 * desktop.cc: quote $PATH in case it has spaces in it
4608 2000-07-10 DJ Delorie <dj@cygnus.com>
4610 * Makefile.in: add desktop.o and mklink2.o
4611 * dialog.h: add do_desktop
4612 * install.cc: create standard directories, call do_desktop
4613 * res.rc: add cygwin.ico as a file also
4614 * desktop.cc: new, do shortcuts, batch files, and icons
4615 * mklink2.c: new, for COM
4616 * README: update to-do list
4618 2000-07-10 DJ Delorie <dj@cygnus.com>
4620 * ini.cc (do_ini): don't worry about timestamps if we're not
4621 actually installing.
4623 2000-07-09 DJ Delorie <dj@cygnus.com>
4625 * Makefile.in: add -I$(srcdir) for ini.h
4627 2000-07-06 DJ Delorie <dj@cygnus.com>
4629 * Replace everything with a new GUI version
4630 * zlib/gzio.c: add gzctell() for progress displays
4632 2000-06-22 DJ Delorie <dj@cygnus.com>
4634 * setup.c (tarx): re-add call to write_pkg()
4636 2000-06-07 DJ Delorie <dj@cygnus.com>
4638 * cygcalls.c: new, call cygwin1.dll functions directly
4639 * cygcalls.h: header for same
4640 * Makefile.in: add cygcalls.[ch], remove mount/cygpath/umount
4641 exes, fix cinstall.rc dependencies.
4642 * path.c: remove unneeded code
4643 * setup.c: use cygcalls instead of xcreate_process.
4644 uncompress embedded files with zlib
4645 add "-d" for "download only"
4647 postpone mount changes until very end
4648 add download progress indicators
4649 pack multi-column listings more
4650 auto-delete temp files
4651 customize banner message according to options
4652 prompt user for text/binary mounts
4653 add warnings about empty setup directory, root installs, etc
4655 2000-05-24 DJ Delorie <dj@cygnus.com>
4657 * tar.c: New file; built-in tar using zlib.
4658 * tar.h: New file; header for same.
4659 * ctar.c: New file; test program for same.
4660 * Makefile.in: add built-in tar, remove tar.exe and gzip.exe
4661 * path.c (pathcat): convert slashes and canonicalize, instead of aborting
4662 * setup.c (tarx): add support for built-in tar
4663 (main): accept unix-style slashes, check root dir for drive letters,
4664 warn about installing in /, make sure cwd is empty for internet installs,
4665 defer mounts to end of install, support built-in tar.
4667 Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
4669 Fix compiler warnings throughout.
4670 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
4672 * setup.c: Make 'root' global.
4673 (istargz): Return pointer to "stem" of matched .tar.gz file.
4674 (tarx): Special case cygwin-20000301 to == cygwin-1.1.0.tar.gz. Remove
4675 bogus check_for_installed check.
4676 (recurse_dirs): Add preliminary support for .bat file execution.
4677 (create_uninstall): Eliminate unneeded parameter.
4678 (do_start_menu): Ditto.
4680 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
4681 scanning for the version number. Eliminate unneeded argument to
4683 (getdownloadsource): Add 'name' to list of names rather than url.
4684 (main): Eliminate unneeded argument in get_pkg_stuff. Eliminate
4685 unneeded argument in mkmount and do_start_menu.
4687 2000-05-18 DJ Delorie <dj@cygnus.com>
4689 * setup.c (optionprompt): allow multi-column, clean up message
4690 about more options, be more robust about user input.
4691 (getdownloadsource): make the mirror URL a macro.
4692 (main): do mounts after done prompting user.
4694 Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
4696 * setup.c (cleanup): Inverse order of deletion stands a better chance
4697 of deleting cygpath.exe. Still seems to suffer from occasional races,
4699 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
4701 (output_file): Defend against an unlikely handle leak.
4702 (main): Don't set up signal handling until we have something special to
4705 Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
4707 * path.c (kill_cygpath): Delete function.
4708 (exit_cygpath): Make more defensive so that it can be called at any
4710 (cygpath_pipe): Don't set up signal here. Do it in main().
4711 * setup.c (istargz): New function.
4712 (recurse_dirs): Look for *.gz pattern rather than *tar.gz since *tar.gz
4713 inexplicably fails on samba mounted partitions. Use istargz to match
4715 (processdirlisting) Use istargz to match tar.gz tail.
4716 (cleanup): Renamed from filedel.
4717 (cleanup_on_signal): New function. Called on CTRL-C.
4718 (main): Record handle of main thread so that it can be suspended when
4719 CTRL-C occurs. Set up cleanup_on_signal signal handler.
4721 Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
4723 * setup.c (do_start_menu): Don't concatenate paths to already built
4726 Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
4728 * path.c (exit_cygpath): Wait for subprocess to exit before returning.
4729 (cygpath_pipe): Don't call exit_cygpath. Let main atexit routine do
4731 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
4733 * setup.c (filedel): Call exit_cygpath here so that we can be assured
4734 that cygpath subprocess has died. This allows us to delete cygpath.exe
4736 (optionprompt): Initialize response to -1 so that second screen of
4737 mirrors will appear.
4738 (get_pkg_stuff): Don't attempt to use HKCLU. Pass root to init_pkgs.
4739 * setup.h: Reflect init_pkgs prototype change.
4741 Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
4743 * pkg.c (init_pkgs): Accept an argument to control what root registry
4745 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
4746 * setup.h: Reflect init_pkgs prototype change.
4748 Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
4750 * error.c (winerror): Respond to gcc warning.
4751 * path.c (cygpath_pipe): Ditto.
4752 * setup.c (filedel): Call sa_cleanup on deleteme.
4753 (create_shortcut): Coerce argument to eliminate compiler warning.
4754 (tarx): Use installed version of cygwin1.dll, overriding tar file name.
4755 (refmatches): New function. Tests if ref is contained in a list of
4756 packages to install.
4757 (filematches): New function. Tests if filename matches one of a list
4758 of packages to install.
4759 (recurse_dirs): Accept list of packages to install. Generalize tar.gz
4760 test to accomodate _tar.gz.
4761 (prompt): Ensure that stdout is flushed prior to asking for input.
4762 (findhref): Initialize variables to quiet a compiler warning.
4763 (processdirlisting): Accept list of packages to install. Special case
4764 cygwin tar file version number.
4765 (downloaddir): Accept list of packages to install.
4766 (downloadfrom): Ditto.
4767 (create_uninstall): Eliminate unneeded variables. Quote arguments to
4769 (do_start_menu): Don't create uninstall bat file if updating or user
4770 specified a list of packages.
4771 (mkmount): Eliminate unneeded variables.
4772 (get_pkg_stuff): New function. Checks for previous unversioned
4774 (main): Accept -u and -f options and package names on the command line.
4775 Use get_pkg_stuff to initialize package information. Umount /etc.
4776 Call recurse_dirs and downloadfrom with list of package to install.
4777 Ensure that all /usr/local directories are created. Output
4778 installation time to setup.log.
4779 * setup.h: Add some prototypes.
4780 * xsystem.c (xcreate_process): Eliminate unneeded variable.
4782 Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
4784 * setup.c (optionprompt): Don't overlap display of already seen options
4786 (geturl): Print name of site which we're connecting to rather than "ftp
4788 (processdirlisting): Avoid URLs that contain a /. or ./ . Is this
4789 test too simplistic?
4790 (do_start_menu): Use pathcat to build path to <root>\bin to avoid
4791 problems when user chooses x:\ as their root.
4792 (main): For now, default to "non-update" mode. Allow -u option to
4795 Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
4798 * setup.c (tarx): Skip already installed or older packages. Report
4799 when a package has been updated.
4800 (processdirlisting): Skip already installed or older packages.
4801 (main): Detect -f option for forced installation. Initialize pkg stuff
4803 * setup.h: Add pkg definitions.
4805 Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
4807 * setup.c (findhref): Return NULL on empty string. Eat any trailing
4809 (processdirlisting): Attempt to limit recursively processing the same
4812 Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
4814 * setup.c (filedel): New function.
4815 (output_file): Keep track of files extracted from setup.exe for
4816 subsequent deletion.
4817 (tarx): Close process handle of child tar process or suffer handle
4819 (getdownloadsource): Close mirror file so that it can be unlinked.
4820 (processdirlisting): Return total number of files extracted.
4821 (main): Initialize array of files to delete. Ensure that files are
4822 closed on exit. Make the directory that setup.exe is started from ==
4823 the directory where temporary files are placed. Issue an error if no
4824 files were found to download.
4825 * xsystem.c (xcreate_process): Close the thread handle. Close the
4826 process handle if we waited for it to exit.
4828 Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
4830 * setup.c (main): Change version number output.
4832 Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
4834 * setup.c (tarx): Use full path name to tar executable.
4835 (main): Build full pathname to tar executable. Create /usr/local/etc
4838 Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
4840 * setup.c (findhref): Change method for scanning for href= to choose
4841 the last one on the line. This is still not foolproof and probably
4842 will need to be changed eventually. Don't abort if no "size" field is
4844 (processdirlisting): Fix boolean algebra.
4846 Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
4848 * main.c (tarx): Add some code for future task of unmounting
4849 directories encountered in tar file.
4851 Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
4853 * setup.c (findhref): Decode file size, when appropriate.
4854 (needfile): New function. Returns 1 when file should be
4856 (processdirlisting): Always download if file size does not
4857 match. Prompt when download fails for some reason.
4858 (getdownloadsource): Accomodate findhref argument changes.
4860 Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
4862 Throughout, use global session handle rather than reinitializing for
4863 each connect. Don't pass session as an argument to setup.c functions.
4864 * setup.c (geturl): Only issue "Connecting to.." message when using
4865 http or first time for ftp since subsequent connections will be fast.
4866 (processdirlisting): Allocate space for "N" when user has specified
4867 "N"ever option so that it can be subsequently freed.
4868 (main): Abort if we can't get the list of mirrors.
4870 Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
4872 * setup.c (main): Umount /bin and /lib.
4874 Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
4876 * setup.c (main): Create an empty /var/run/utmp.
4878 Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
4880 * Makefile.in: Add umount to list of files to include in setup.exe.
4881 * setup.c (xumount): New function for unmounting directories.
4882 (main): Unmount /usr.
4883 (mkmount): Unmount "unix directory" before trying to figure out where
4884 to create the directory.
4886 Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
4888 * setup.c (mkmount): Use xcreate_process to start mount process,
4890 (main): Don't do buffering on stdout or prompts won't be displayed
4891 correctly if running in a cygwin shell with CYGWIN=tty.
4893 Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
4895 * setup.c (main): Remove the CYGWIN environment variable before
4896 starting any cygwin programs.
4898 Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
4900 * setup.c (geturl): Use alternative method for finding filename part of
4902 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
4903 (downloaddir): Unlink file containing dir listing.
4904 (downloadfrom): Ditto.
4906 Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
4908 * setup.c (main): Disallow running setup.exe from the "root".
4910 Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
4912 Use "warning" function, where appropriate, to output warnings.
4913 * setup.c (warning): New function -- outputs warning to console and log
4915 (tarx): Fix index used to reset file protection.
4916 (main): Open the log file earlier so that more stuff can be sent to it.
4918 Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
4920 * setup.c (processdirlisting): Make "N" option a little less aggressive.
4922 Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
4924 * setup.c (tarx): Wait to after tar has completed to reset protections
4925 or suffer races with tar process.
4927 Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
4929 * Makefile.in: Eliminate duplicate -nostdinc from CFLAGS.
4930 * setup.c (create_uninstall): Create the uninstall .bat file in the
4931 "root" so that we can remove the /bin directory. Add bin\cygwin.bat to
4932 list of files to be deleted. Fix directory detection for determining
4933 when to use 'rmdir'.
4934 (do_start_menu): Add /usr/local/bin to the path.
4935 (main): Add slop to files.array allocation so that we don't have to
4936 worry about reallocating the array when it grows too large when doing
4937 some trivial "pushes". Add /tmp and /usr/local/{bin,lib} to list of
4940 Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
4942 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
4945 Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
4947 * path.c (kill_cygpath): New cleanup function.
4948 (exit_cygpath): New cleanup function.
4949 (cygpath_pipe): New function. Sets up cygpath in the background for
4950 translating filenames.
4951 (pathcvt): Use background cygpath for file translation.
4952 * setup.c (tarx): New function. Called to extract tar files, capture
4953 logging output, and translate it to Windows format.
4954 (recurse_dirs): Use 'tarx' function to extract files.
4955 (create_uninstall): Use file list built up by tarx rather than reading
4957 (mkmount): Add ability to mount root.
4958 (main): Track elapsed install time. Mount root.
4959 * starry.h: Add index field to strarry for tracking of tarx's usage of
4961 * xsystem.c (xcreate_process): Return proces handle when not waiting.
4963 Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
4966 (pathfp): New function. Preliminary work for new -f cygpath
4968 * Makefile.in: Add new file.
4969 (pathcvt): Move to new file.
4973 * setup.c (processdirlisting): Always open file in text mode.
4974 (create_uninstall): Ditto.
4975 (getdownloadsource): Ditto.
4978 Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
4980 * xsystem.c: New file.
4981 * Makefile.in: Accomodate new file.
4982 * setup.c (xsystem): Move to new file.
4983 (recurse_dirs): Accept handle to output log file. Don't use ">"
4984 redirection to trap tar output. Use supplied handle instead.
4985 (create_uninstall): Accept FILE pointer to opened log file. Don't
4986 unlink log file here.
4987 (do_start_menu): Accept FILE pointer to pass to create_uninstall.
4988 (main): Open log file here and pass it to various functions. Unlink
4991 Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
4993 Change occurrences of .usr.bin to .bin throughout.
4994 * setup.c (geturl): Increase number of retries to 20. Let user know
4995 what's going on during long connects.
4996 (processdirlisting): Accept "A"lways and "N"ever as update options.
4997 (create_uninstall): Load cygwin1.dll from the current directory rather
4999 (main): Add some expository text.
5001 Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
5003 * Makefile.in: Change method for compressing cygwin1.dll to avoid
5004 creating a cygwin1.dll in the current directory. Ensure the addition
5005 of -nostdinc to MINGW_CFLAGS.
5007 Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
5009 * Makefile.in: Augment clean target.
5011 Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
5013 * README: Added info about non-working mingw implementation
5014 * gzip.exe.gz: Replace with a version from the same build as the other
5016 * tar.exe.gz: Replace with a version from the same build as the other
5018 * mount.exe.gz: Add to repository until, mingw can build setup.
5019 * cygpath.exe.gz: ditto
5020 * cygwin1.dll.gz: ditto
5021 * setup.c: Overwrite /bin and /lib mounts. Generate working shortcut
5022 for Win9x. Display only a screenfull of options at a time. Call all
5023 tools with an absolute path.
5024 * setup.dsp: Restore the carriage returns, MS Developer Studio needs
5029 Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
5031 * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab
5032 cygwin1.dll from ../cygwin subdirectory.
5033 * gzip.exe.gz: Update.
5034 * tar.exe.gz: Update.
5036 Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
5038 * Makefile.in: Use ZLIB variable as a target.
5040 Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
5042 * Makefile.in: Eliminate traces of cygwinisms. Don't link with
5043 libmsvcrt.a. It's unneeded. Build .rc file on the fly from various
5045 * configure.in: Locate correct objcopy.
5046 * configure: Regenerate.
5048 Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
5050 * Makefile.in: New file.
5051 * configure.in: New file.
5052 * configure: New file.
5053 * zlib/Makefile.am: New file.
5054 * zlib/configure.in: New file.
5055 * zlib/aclocal.m4: New file.
5056 * zlib/acinclude.m4: New file.
5057 * zlib/configure: Regenerate from configure.in.
5058 * zlib/Makefile.in: Regenerate from Makefile.am