1 2002-07-15 Robert Collins <rbtcollins@hotmail.com>
3 * package_version.cc (packageversion::sources): Implement this.
4 * download.cc (do_download_thread): Support multiple files per package.
6 2002-07-15 Robert Collins <rbtcollins@hotmail.com>
8 * package_version.h (packageversion::sources): Support multiple files in
9 a single package version.
10 * package_version.cc (_packageversion::accessible): Ditto.
11 (packageversion::source): Ditto.
13 2002-07-15 Robert Collins <rbtcollins@hotmail.com>
15 * iniparse.y: Implement support for multiple source files for a source
17 * IniDBBuilder.h (IniDBBuilder::buildSourceFile): Ditto.
18 * IniDBBuilderPackage.h (IniDBBuilder::buildSourceFile): Ditto.
19 * IniDBBuilder.cc (IniDBBuilder::buildSourceFile): Ditto.
20 * IniDBBuilderPackage.cc (IniDBBuilder::buildSourceFile): Implement a
23 2002-07-13 Robert Collins <rbtcollins@hotmail.com>
25 * PickPackageLine.cc (PickPackageLine::click): Set requirements for
26 packages under all circumstances - slightly higher overheader, simpler
28 * download.cc (do_download_thread): Correctly download source
30 * package_meta.cc (checkForInstalled): Remove.
31 (checkForUpgradeable): Ditto.
32 (checkForSatisfiable): Ditto.
33 (processOneDependency): Ditto.
34 (packagemeta::set_requirements): Move guts to packageversion.
35 * package_version.cc (checkForInstalled): Copied from package_meta.cc.
36 (checkForUpgradeable): Ditto.
37 (checkForSatisfiable): Ditto.
38 (processOneDependency): Ditto.
39 (packageversion::set_requirements): Ditto.
40 * package_version.h (packageversion::set_requirements): Declare.
42 2002-07-13 Robert Collins <rbtcollins@hotmail.com>
44 * IniDBBuilder.cc (IniDBBuilder::buildBeginBuildDepends): Implement.
45 (IniDBBuilder::buildBeginBinary): Implement.
46 * IniDBBuilder.h (IniDBBuilder::buildBeginBuildDepends): Declare.
47 (IniDBBuilder::buildBeginBinary): Ditto.
48 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildBeginBuildDepends):
50 (IniDBBuilderPackage::buildBeginBinary): Ditto.
51 * IniDBBuilderPackage.h (IniDBBuilderPackage::buildBeginBuildDepends):
53 (IniDBBuilderPackage::buildBeginBinary): Ditto.
54 * inilex.l: Recognise Build-Depends-Indep, [,], >, < and remove
56 * iniparse.y: Full support for parsing a debian Sources file in-line in
58 * package_version.cc (packageversion::binaries): Implement.
59 * package_version.h (packageversion::binaries): Declare list of what
60 packages are created from a given source package.
61 (_packageversion::binaries): Ditto.
63 2002-07-10 Robert Collins <rbtcollins@hotmail.com>
65 * iniparse.y: Add basis for support for parsing a debian Sources file.
68 2002-07-09 Robert Collins <rbtcollins@hotmail.com>
70 Change custom container code for packagedb::packages to STL containers
72 * IniDBBuilderPackage.cc: Ditto.
78 * package_db.cc: Ditto.
79 * package_db.h: Ditto.
80 * Makefile.am: Remove list.h references.
83 2002-07-08 Max Bowsher <maxb@ukf.net>
85 * PickView.cc (PickView::PickView): Set font of package list header to
86 the same as used in the rest of the package list.
88 2002-07-08 Robert Collins <rbtcollins@hotmail.com>
90 * install.cc (NoReplaceOnReboot): New command line option to prevent
91 replacing in use files.
92 (install_one_source): Check the option and use it.
93 * README: Update TODO lists.
95 2002-07-08 Robert Collins <rbtcollins@hotmail.com>
97 * PickCategoryLine.cc: Change bucket to use STL container syntax
99 (PickCategoryLine::paint): Use new Category type syntax.
100 * PickCategoryLine.h: Use STL vectors rather than custom containers
102 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageCategory):
103 Use new add_category syntax.
104 * PickView.cc (PickView::insert_pkg): Use new Category type syntax.
105 (PickView::insert_category): Ditto.
106 (PickView::init_headers): Ditto.
107 * category.cc: Trim obsolete code.
108 * category.h: Replace interconnecting class with a typedef to
109 facilitate leveraging STL maps.
110 * choose.cc (fill_missing_category): Use updated pkg.add_category
112 (default_trust): Use new Category type syntax.
113 (set_view_mode): Ditto.
114 (create_listview): Ditto.
115 * package_db.cc (categories): Ditto.
116 * package_db.h: Update headers list to include needed headers.
117 (packagedb::categories): Replace custom list with STL map.
118 * package_meta.cc: Use new Category type syntax throughout.
119 (packagemeta::add_category): Implement new syntax.
120 * package_meta.h: Remove commented out source.
121 (packagemeta::add_category): Update syntax to decouple interface from
124 2002-07-06 Christopher Faylor <cgf@redhat.com>
126 * site.cc (do_download_site_info_thread): Correct spelling error.
128 2002-07-06 Robert Collins <rbtcollins@hotmail.com>
130 * PickCategoryLine.h: Include required header list.h.
131 * PickPackageLine.cc (PickPackageLine::paint): Adjust to use STL
132 containers for listing of packages per category and vice verca.
133 * PickView.cc (PickView::insert_pkg): Ditto.
134 (PickView::insert_category): Ditto.
135 * String++.h (String::caseless): STL helper to allow trivial containers
136 of Strings with case insensitive comparisons.
137 * category.h: Adjust to use STL containers for listing of packages per
138 category and vice verca.
139 * choose.cc (fill_missing_category): Ditto.
140 (default_trust): Ditto.
141 (ChooserPage::OnNext): Ditto.
142 * package_meta.cc (CategoryPackage::~CategoryPackage): Remove.
143 (packagemeta::packagemeta): Adjust for new category list name.
144 (packagemeta::~packagemeta): Adjust to use STL containers for listing
145 of packages per category and vice verca.
146 (packagemeta::set_action): Ditto.
147 * package_meta.h (CategoryPackage): Remove.
148 (packagemeta): Adjust to use STL containers for listing of packages per
149 category and vice verca.
151 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
153 * io_stream.cc: Use STL containers rather than custom ones.
154 (io_stream::registerProvider): Ditto.
155 (findProvider): Ditto.
157 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
159 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
160 Use STL collections for download site collections.
161 (IniDBBuilderPackage::add_correct_version): Ditto.
162 (IniDBBuilderPackage::process_src): Ditto.
163 * PickPackageLine.cc (PickPackageLine::click): Use the packageversion
164 accessible() call to abstract package availability.
165 * choose.cc (scanAVersion): Use STL collections for download site
167 * download.cc (check_for_cached): Ditto.
168 (download_one): Ditto.
169 * package_meta.cc (packagemeta::set_action): Use the packageversion
170 accessible() call to abstract package availability.
171 * package_source.h: Use STL containers rather than custom containers.
172 (site): Create a == operator to allow STL container use.
173 (packagesource::sites): Use STL containers rather than custom
175 * package_version.cc (_packageversion::accessible): Use STL containers
176 for download site containers.
178 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
180 * LogFile.cc: Use STL containers rather than custom containers.
181 (filedef): Create == and < operators for STL use.
182 (files): Convert to an STL set.
183 (LogFile::setFile): Use STL operations on files.
184 (LogFile::exit): Ditto.
186 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
188 * ini.cc (do_remote_ini): Use STL collection for site collection.
189 * site.cc: Include site.h first to ensure it's parsable standalone.
191 (site_list): Convert to an STL container.
192 (all_site_list): Ditto.
193 (site_list_type::site_list_type): Implement copy constructor.
194 (site_list_type::operator=): Implement assignment operator.
195 (site_list_type::operator ==): Implement.
196 (site_list_type::operator <): Ditto.
197 (save_dialog): Use STL collection calls for site collection.
198 (save_site_url): Ditto.
199 (get_site_list): Ditto.
200 (get_saved_sites): Ditto.
201 (do_download_site_info_thread): Ditto.
202 (SitePage::OnNext): Ditto.
203 (SitePage::PopulateListBox): Ditto.
204 (SitePage::OnMessageCmd): Ditto.
205 * site.h: Use STL vectors instead of custom code.
206 (site_list_type::site_list_type): Declare.
207 (site_list_type::operator=): Ditto.
208 (site_list_type::operator ==): Ditto.
209 (site_list_type::operator !=): Ditto.
210 (site_list_type::operator <): Ditto.
211 (site_list_type::operator <=): Ditto.
212 (site_list_type::operator >): Ditto.
213 (site_list_type::operator >=): Ditto.
214 (site_list): Convert to an STL container.
215 (all_site_list): Ditto.
217 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
219 * choose.cc (default_trust): Check package accessibility before
220 triggering an install. (Suggested by Pavel).
222 2002-07-03 Pavel Tsekov <ptsekov@gmx.net>
224 * compress_gz.cc (compress_gz::construct): Always initialize key members
225 to ensure the destructor does the right thing.
227 2002-07-03 Pavel Tsekov <ptsekov@gmx.net>
229 * filemanip.cc (parse_filename): Do not try to parse empty
231 * package_db.cc (packagedb::packagedb): For each line check if sscanf()
232 extracted good package name and filename.
234 2002-07-03 Robert Collins <rbtcollins@hotmail.com>
236 * package_meta.cc (packagemeta::set_requirements): Automatically select
237 version of dependent packages that satisfies the requirements.
238 Use processOneDependency to trigger the install of those packages.
239 (checkForInstalled): Check that the package remains installed.
240 (processOneDependency): Helper function for dependent packages.
241 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackage): Add more
243 Clear out all current state on new packages.
244 (IniDBBuilderPackage::add_correct_version): Copy the dependency list
247 2002-07-02 Robert Collins <rbtcollins@hotmail.com>
249 * Makefile.am (inilint_SOURCES): Add PackageSpecification sources.
250 nb: inilint is still incomplete, as the packageversion code is not
251 ready for database-less linking.
252 * site.cc (get_site_list): When the same site is reentered by the user
253 replace the old one. (Suggested by John Marshall).
255 2002-07-02 Robert Collins <rbtcollins@hotmail.com>
257 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
258 Clear out package selections when generating implicit source packages.
259 * PackageSpecification.cc (PackageSpecification::satisfies): Implement.
260 (PackageSpecification::_operators::satisfies): Implement.
261 * PackageSpecification.h (PackageSpecification::_operators::satisfies):
262 Worker function for testing versions.
264 2002-07-01 Robert Collins <rbtcollins@hotmail.com>
266 * IniDBBuilder.cc (IniDBBuilder::buildPackageRequirement): Remove.
267 * IniDBBuilder.h (IniDBBuilder::buildPackageRequirement): Ditto.
268 * IniDBBuilderPackage.cc: Use the STL algorithms.
269 Change cpv to cbpv throughout. Adjust -> to ., and use the new accessor
270 functions for the same variable throughout.
271 (IniDBBuilderPackage::IniDBBuilderPackage): Initialise new members.
272 (IniDBBuilderPackage::buildPackage): Use new cygpackage syntax,
273 and set an empty source package.
274 (IniDBBuilderPackage::buildPackageInstall): Use the new source member
275 to record an install package.
276 (IniDBBuilderPackage::buildPackageSource): Move source package logic
277 out from process_src, as it now occurs at separate times.
278 (IniDBBuilderPackage::buildPackageRequirement): Remove.
279 (IniDBBuilderPackage::buildSourceName): Use renamed package
280 specifiation accessor for clarity.
281 (IniDBBuilderPackage::buildSourceNameVersion): Ditto.
282 (IniDBBuilderPackage::add_correct_version): Use STL iterators rather
284 Remove source package references.
285 (IniDBBuilderPackage::process_src): Remove source package code as it's
286 now handled separately.
287 Set Path information before merging versions, to prevent dangling
289 * IniDBBuilderPackage.h (IniDBBuilderPackage::buildPackageRequirement):
291 (IniDBBuilderPackage::cpv): Remove.
292 (IniDBBuilderPackage::cbpv): New generic binary working variable.
293 (IniDBBuilderPackage::cspv): Ditto, but for source packages.
294 (IniDBBuilderPackage::csp): Source package variable for disjoint
296 * Makefile.am (AM_CFLAGS): Remove -Winline to allow stl set code
297 to compile. If it compiles cleanly in gcc 3.1, then reinstate.
298 * PickPackageLine.cc: Adjust packageversion accessors to the new
299 reference calls. (i.e. -> to .) throughout.
300 (PickPackageLine::paint): Use accessible() for clarity.
301 Use new split out source package logic.
302 (PickPackageLine::click): Ditto.
303 * PickView.cc (PickView::init_headers): Adjust packageversion accessors
304 to the new reference calls. (i.e. -> to .) throughout.
305 Use new split out source package logic.
306 * choose.cc: Don't depend on a specific package type.
307 Adjust packageversion accessors to the new reference calls. (i.e. -> to
309 (set_existence): Use accessible () for clarity.
310 (default_trust): Simplify a little.
311 (scanAVersion): Factored out code from scan_downloaded_files for
313 (scan_downloaded_files): Factor out inner loop for clarity.
314 (ChooserPage::OnNext): Don't dump the dependency list,
315 it's parsing is robust now!.
316 * cygpackage.cc (createInstance): Use a factory method to create new
318 (cygpackage::cygpackage): Make this private for use by the factory.
319 (cygpackage::setCanonicalVersion): Renamed from set_canonical_version.
320 Remove key usage as it's obsolete.
321 * cygpackage.h (cygpackage): Inherit from _packageversion, not
323 (cygpackage::createInstance): New factory.
324 (cygpackage::cygpackage): Make private.
325 * desktop.cc (make_passwd_group): Use new packageversion reference.
326 * download.cc (do_download_thread): Use changeRequested() for clarity.
327 Use new packageversion reference calls.
328 * iniparse.y (REQUIRES): Reuse the packageList code and dump the one-off
330 * install.cc: Adjust -> to ., and use the new accessor functions for
331 packageversion throughout.
332 * package_db.cc: Adjust -> to ., and use the new accessor functions for
333 packageversion throughout.
334 (packagedb::packagedb): Use the new cygpackage factory.
335 (packagedb::flush): Leverage String to remove buffer overflow chance in
337 (packagedb::findBinary): Find a binary meta package that has a version
338 matching a given specification.
339 (packagedb::findSource): Ditto, but for source.
340 * package_db.h (packagedb::findBinary): Declare.
341 (packagedb::findSource): Ditto.
342 * package_meta.cc: Adjust packageversion accessors to the new
343 reference calls. (i.e. -> to .) throughout.
344 Include the package_meta header first to ensure it parses standalone.
345 Use the STL algorithms.
346 (packagemeta::packagemeta): Create a copy constructor to allowing
347 cloning binary package metadata to source package metadata.
348 (packagemeta::~packagemeta): Use the STL coleltion code rather than
349 custom collection code.
350 (packagemeta::add_version): Ditto.
351 (packagemeta::set_installed): Ditto.
352 (packagemeta::SDesc): Ditto.
353 (hasSDesc): Helper function for find_if.
354 (checkForInstalled): Ditto.
355 (checkForUpgradeable): Ditto.
356 (checkForSatisfiable): Ditto.
357 (packagemeta::action_caption): Update for split out source packages.
358 (packagemeta::set_action): Ditto.
359 (packagemeta::set_requirements): Support multi-valued dependency
360 lists - a|b & c|d - with versioned package specifications.
361 (packagemeta::accessible): Helper member to improve abstraction.
362 (packagemeta::sourceAccessible): Ditto.
363 * package_meta.h: Adjust packageversion accessors to the new
364 reference calls. (i.e. "->" to "." and"*" to "" ) throughout.
365 (packagemeta::packagemeta): Declare copy constructor.
366 Remove self initialising members.
367 (packagemeta::set_action): Update parameters for new packageversion.
368 (packagemeta::trustp): Ditto.
369 (packagemeta::versions): Becomes an STL set.
370 * package_source.h (packagesource::Cached): Const correctness change.
371 * package_version.cc: Rewrite the packageversion interface to remove
372 the cygpackage nonvirtual members, and provide a copy by value,
373 pointer semantics reference counting wrapper class to ease use and
374 comparison of packageversions.
375 Change existing packageversion class to _packageversion throughout.
376 (_defaultversion): A trivial concrete class to prevent specialcasing
377 the default constructor for packageversion;
378 (packageversion::packageversion): Implement.
379 (packageversion::~packageversion): Ditto.
380 (packageversion::operator=): Ditto.
381 (packageversion::operator !): Ditto.
382 (packageversion::operator bool): Ditto.
383 (packageversion::operator ==): Ditto.
384 (packageversion::operator !=): Ditto.
385 (packageversion::operator <): Ditto.
386 (packageversion::Name): Ditto.
387 (packageversion::Canonical_version): Ditto.
388 (packageversion::setCanonicalVersion): Ditto.
389 (packageversion::getfirstfile): Ditto.
390 (packageversion::getnextfile): Ditto.
391 (packageversion::SDesc): Ditto.
392 (packageversion::set_sdesc): Ditto.
393 (packageversion::LDesc): Ditto.
394 (packageversion::set_ldesc): Ditto.
395 (packageversion::sourcePackage): Ditto.
396 (packageversion::sourcePackageSpecification): Ditto.
397 (packageversion::setSourcePackageSpecification): Ditto.
398 (packageversion::depends): Ditto.
399 (packageversion::predepends): Ditto.
400 (packageversion::recommends): Ditto.
401 (packageversion::suggests): Ditto.
402 (packageversion::replaces): Ditto.
403 (packageversion::conflicts): Ditto.
404 (packageversion::provides): Ditto.
405 (packageversion::picked): Ditto.
406 (packageversion::pick): Ditto.
407 (packageversion::changeRequested): Ditto.
408 (packageversion::uninstall): Ditto.
409 (packageversion::source): Ditto.
410 (packageversion::accessible): Ditto.
411 (_packageversion::sourcePackage): Ditto.
412 (_packageversion::accessible): Ditto.
413 (_packageversion::changeRequested): Ditto.
414 * package_version.h: Rewrite the packageversion interface to remove
415 the cygpackage nonvirtual members, and provide a copy by value,
416 pointer semantics reference counting wrapper class to ease use and
417 comparison of packageversions.
418 Change existing packageversion class to _packageversion throughout.
419 (Dependency): Remove.
420 (packageversion): New wrapper class.
421 (_packageversion): Renamed from packageversion.
422 (_packageversion::setCanonicalVersion): New method.
423 (_packageversion::sourcePackage): Ditto.
424 (_packageversion::sourcePackageSpecification): Ditto.
425 (_packageversion::setSourcePackageSpecification): Ditto.
426 (_packageversion::changeRequested): Ditto.
427 (_packageversion::bin): Rename to source.
428 (_packageversion::src): Remove.
429 (_packageversion::accessible): New method.
430 (_packageversion::references): Allow reference counting.
431 (_packageversion::sourceVersion): Cached the best-match source
434 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
436 * compress_bz.h (compress_bz::position): Track how much has been read.
437 * compress_bz.cc (compress_bz::compress_bz): And initialise it.
438 (compress_bz::read): Track amount read by the client.
439 (compress_bz::tell): And report it when asked.
441 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
443 * Makefile.am (snapshot): Automate snapshot creation some more.
445 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
447 * msg.cc (msg): Use vsnprintf to avoid buffer overflows.
449 * ini.cc (fprintf): Ditto.
450 * log.cc (log): Ditto.
451 * package_db.cc (packagedb::sourcePackages): Split out source packages
452 from binary packages.
453 * package_db.h: Ditto.
455 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
457 * PackageSpecification.h: New file. Abstracts the ability to refer
458 to another package, by name, or name and version.
459 * PackageSpecification.cc: Ditto.
460 * IniDBBuilder.cc (IniDBBuilder::buildPackageInstall): Simplify.
461 (IniDBBuilder::buildPackageSource): Ditto.
462 (IniDBBuilder::buildBeginDepends): New method for versioned
464 (IniDBBuilder::buildBeginPreDepends): Likewise, for dependencies to be
465 satisfied before pre-install.
466 (IniDBBuilder::buildPriority): New method, for getting the package
468 (IniDBBuilder::buildInstalledSize): How much disk space does it need?
469 (IniDBBuilder::buildMaintainer): Who maintains the package?
470 (IniDBBuilder::buildArchitecture): What platform is it for?
471 (IniDBBuilder::buildInstallSize): How big is the binary download?
472 (IniDBBuilder::buildInstallMD5): Whats the MD5 on the binary?
473 (IniDBBuilder::buildSourceMD5): Whats the MD5 on the source package?
474 (IniDBBuilder::buildBeginRecommends): What other packages are
475 recommended with this one?
476 (IniDBBuilder::buildBeginSuggests): And suggested?
477 (IniDBBuilder::buildBeginReplaces): What packages does this replace?
478 (IniDBBuilder::buildBeginConflicts): And collide with?
479 (IniDBBuilder::buildBeginProvides): What virtual packages (or obsolete
480 package names) does this provide?
481 (IniDBBuilder::buildDescription): Grab a multi line description one
483 (IniDBBuilder::buildSourceName): What source package should be used to
484 install the source for this binary package?
485 (IniDBBuilder::buildSourceNameVersion): Is a specific version needed?
486 (IniDBBuilder::buildPackageListAndNode): Add another AND clause to a
487 list of package specifications.
488 (IniDBBuilder::buildPackageListOrNode): Add another OR clause.
489 (IniDBBuilder::buildPackageListOperator): Add a versioning operator
490 to the current specification.
491 (IniDBBuilder::buildPackageListOperatorVersion): What version does the
493 * IniDBBuilder.h: Declare all the IniDBBuilder.cc changes.
494 * IniDBBuilderPackage.cc: As for IniDBBuilder.cc.
495 (IniDBBuilderPackage::IniDBBuilderPackage): Iniitialize new members.
496 (IniDBBuilderPackage::process_src): Streamline and split out
498 (IniDBBuilderPackage::setSourceSize): From process_src.
499 * IniDBBuilderPackage.h: Declare the IniDBBuilderPackage.cc changes.
500 (IniDBBuilderPackage::currentSpec): Track the in-progress specifiation.
501 (IniDBBuilderPackage::currentOrList): Track the current Or list.
502 (IniDBBuilderPackage::currentAndList): Track the current And list.
503 * IniParseFeedback.cc (IniParseFeedback::progress): Provide completion
505 (IniParseFeedback::iniName): Tell what ini filename we are currently
507 * IniParseFeedback.h: Declare IniParseFeedback.cc changes.
508 * IniParseFindVisitor.cc (IniParseFindVisitor::IniParseFindVisitor):
509 Make the feedback object non-const to allow mutating methods which are
510 needed when the object has state.
511 (IniParseFindVisitor::visitFile): Tell the caller the name of each
513 Initialise the parser with the feedback object to allow it to tell of
515 * IniParseFindVisitor.h: Declare IniParseFindVisitor.cc changes.
516 * Makefile.am (inilinst_SOURCES): Add more requisite classes.
517 (setup_SOURCES): Add the new PackageSpecification sources.
518 * ScanFindVisitor.cc (ScanFindVisitor::visitFile): Use the new
519 builder syntax to setup binary package details.
520 * choose.cc: Use the LogSingleton calls throughout.
521 * configure.in: Create the INILINT substitution correctly for recent
522 autotool configurations.
523 * cygpackage.cc (cygpackage::getfirstfile): Return an empty String
524 rather than a string built from an int. Thanks to Pavel Tsekov for
526 (cygpackage::getnextfile): Ditto.
527 * download.cc: Use LogSIngletion calls throughout.
528 (validateCachedPackage): A refactoring of the
529 check_for_cached code to eliminate duplciation.
530 (check_for_cached): Use validateCachedPackage to check packages.
531 * ini.cc (GuiParseFeedback): Provide gui feedback on ini name and
533 (do_remote_ini): Ditto.
534 * ini.h (ini_init): Pass a IniParseFeedback to the parser, to allow
536 * inilex.l: Identify new symbols - operators, and multi line plain text.
538 * inilintmain.cc (show_help): Provide basic infomation on inilint.
539 * iniparse.y: Adjust for the new builder syntax, and process debian
541 * io_stream_file.cc: Always include mkdir.h.
542 * list.h: Factor index location into a private routine.
543 (list::findindex): Implement this.
544 * mkdir.cc (mkdir_p): Make the use of WIN32 code conditional on mingw
545 builds. NB: This breaks cygwin build functionality still.
546 * package_meta.cc: Use the LogSingleton calls throughout.
547 (packagemeta::set_requirements): Adjust for object changes in
549 * package_meta.h (packagemeta::packagemeta): Initialise new members.
550 (packagemeta::architecture): What platform does this package run on?
551 This may need to move in the future to a per packagefile object.
552 (packagemeta::priority): What priority does this package have?
553 * package_source.h (packagesource::packagesource): Initialise new
555 (packagesource::installedSize): How much space does the package need?
556 (packagesource::setInstalledSize): Tell the amount.
557 (packagesource::_installedSize): And store it.
558 * package_version.cc (packageversion::sourcePackage): return the
560 (packageversion::setSourcePackage): And set it.
561 * package_version.h: Declare the package_version.cc changes.
562 (packageversion::depends): New package specification AND list.
563 (packageversion::predepends): Ditto.
564 (packageversion::recommends): Ditto.
565 (packageversion::suggests): Ditto.
566 (packageversion::replaces): Ditto.
567 (packageversion::conflicts): Ditto.
568 (packageversion::provides): Ditto.
569 (packageversion::sourcePackage): What source package is needed?
570 * threebar.cc (ThreeBarProgressPage::SetText4): Set the label beside
572 * threebar.h: Declare the threebar.cc change.
574 2002-06-27 John Marshall <johnm@falch.net>
576 * res.rc (SETUPINI_MISSING): Make trailing spaces visible.
577 * site.cc (SitePage::OnMessageCmd): Ditto
579 2002-06-15 Robert Collins <rbtcollins@hotmail.com>
581 * nio-ie5.cc (NetIO_IE5::NetIO_IE): Allow cached data.
583 2002-06-15 Robert Collins <rbtcollins@hotmail.com>
585 * package_meta.cc (packagemeta::set_action): When installing packages
586 with no binaries, choose the source package.
588 2002-06-10 Robert Collins <rbtcollins@hotmail.com>
590 * IniParseFindVisitor (IniParseFindVisitor::visitFile): Apply Max
591 Bowshers fix for the crash with a root level setup.ini.
592 * README: Update todos.
594 2002-05-26 Ralf Habacker <ralf.habacker@freenet.de>
596 * archive_tar.cc (archive_tar::next_file_name()): fixed broken
597 GNU long name extension support.
599 2002-05-27 Robert Collins <rbtcollins@hotmail.com>
601 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Don't
602 unescape 0 length strings.
604 2002-05-20 Robert Collins <rbtcollins@hotmail.com>
606 * package_meta.cc (packagemeta::set_action): Don't allow reinstall
607 when local with no cached file, and install the default source if the
608 default version has no binary.
610 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
612 * IniDBBuilderPackage.cc (IniDBBuilderPackage::IniDBBuilderPackage): New
614 (IniDBBuilderPackage::buildVersion): Provide a warning when a newer
615 setup version created the ini file.
616 * IniDBBuilderPackage.h (IniDBBuilderPackage::IniDBBuilderPackage): New
618 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Use the new
620 * IniParseFindVisitor.h (IniParseFindVisitor::IniParseFindVisitor):
621 Require a feedback strategy.
622 * Makefile.am (setup_SOURCES): Add IniParseFeedback sources.
623 * Makefile.in: Regenerate.
625 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
627 * io_stream_file.cc (io_stream_file::remove): Use the SetFileAttributes
628 trick to delete read only files.
629 * io_stream_cygfile.cc (io_stream_cygfile::remove): Use file:// to
631 * Makefile.am (release): Tweak to be more helpful.
632 * Makefile.in: Regenerate.
634 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
636 * Makefile.am (release): Tweak to be more helpful.
637 * Makefile.in: Regenerate.
639 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
641 * Makefile.am (release): Tweak to be more helpful.
642 * Makefile.in: Regenerate.
644 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
646 * choose.cc (scan_downloaded_files): When a non-installed version
647 has neither bin nor src cached files for local installs,
648 remove the version from availability.
650 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
652 * ini.cc (do_remote_ini): Save uncompressed ini's correctly.
654 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
656 * rsync: New support library, contains librsync. This is not (yet)
658 * configure.in: --with-rsync to enable rsync support. (Not complete).
659 * Makefile.am: Enable building with rsync.
660 * Makefile.in: Regenerate.
662 * IniDBBuilder.cc (IniDBBuilder::buildPackageInstall): Pass the md5 as
664 (IniDBBuilder::buildPackageSource): Ditto.
665 * IniDBBuilder.h: Ditto.
666 * IniDBBuilderPackage.cc: Ditto.
667 * IniDBBuilderPackage.h: Ditto.
668 * FindVisitor.cc: New file.
669 * FindVisitor.h: New file, interface for visiting a file system
671 * IniParseFindVisitor.cc: New file.
672 * IniParseFindVisitor.h: New file, concrete FindVisitor that parses
674 * README: Update TODO's.
675 * String++.cc (String::String): New constructor for <string> inter-
677 (String::substr): New method.
679 * choose.cc (scan2): Remove.
680 (scan_downloaded_files): Simplify.
681 * dialog.h: Include parsing pre-requirements.
682 * download.cc (check_for_cached): Fullname was used incorrectly - fix.
683 * filemanip.cc (parse_filename): -src packages where incorrectly parsed.
684 * find.cc: Rewrite. Now uses a Visitor pattern and is re-entrant.
686 * fromcwd.cc: Remove unneeded includes.
687 (is_test_version): Remove.
688 (found_file): Remove.
689 (SetupFindVisitor): Trivial visitor to detect setup.ini's.
691 (do_fromcwd): Remove commented code that has be replaced elsewhere.
692 * ini.cc (local_ini): Remove.
693 (findBuilder): Remove.
694 (find_routine): Remove.
695 (do_local_ini): Use new IniParseFindVisitor.
696 * iniparse.y: Typecase MD5 arrays, as we know they are allocated as
698 * postinstall.cc: Remove non-core includes.
699 (run_script_in_postinstall): Remove.
700 (RunFindVisitor): Trivial Visitor, runs each found script.
701 (do_postinstall): Use new find syntax.
703 2002-05-14 Christopher Faylor <cgf@redhat.com>
705 * ini.cc (find_routine): Don't clear buffer it it's NULL.
707 2002-05-14 Christopher Faylor <cgf@redhat.com>
709 * filemanip.h (trail): Declare.
710 * filemanip.cc (trail): New function.
711 (find_tar_ext): Use trail() instead of strstr().
712 * fromcwd.cc (check_ini): Ditto.
713 * ini.cc (find_routine): Ditto. Don't tack local_dir to path since it
714 should now be fully qualified. Set ini_filename. Reset error_buf and
715 error_count for any subsequent ini file parsing.
716 (ini_filename): New static variable for parse error reporting.
717 (yyerror): Use full path of setup.ini in error message. Subtract one
718 from line number if at bol.
719 * find.cc (found_part): Eliminate.
720 (find_sub): Call for_each with full path found rather than just file
722 (find): Don't calculate found_part.
723 * inilex.l (ini_init): Flush input buffer and reset line number.
724 (yybol): New function. Exports YY_AT_BOL.
725 * iniparse.y: Increase stack depth to allow more tokens to be processed.
726 (yyparse): Remove newline from error condition to allow subsequent
727 per-line error processing to proceed normally.
729 2002-05-14 Christopher Faylor <cgf@redhat.com>
731 * find.cc (find_sub): Be more defensive in preserving trailing parts of
732 components when doing recursive directory searches or calling user
734 * ini.cc (find_routine): Don't assume that any path name with
735 "setup.ini" in it is actually a setup.ini file. Only honor trailing
736 components. Copy path argument to temporary storage when unescaping
737 to prevent nuking of argument.
739 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
741 * CONTRIBUTORS: New file.
743 2002-04-02 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
745 * choose.cc: Run indent.
746 (nextbutton): Remove static variable.
747 (default_trust): Remove use of nextbutton.
748 (set_view_mode): Ditto.
749 (create_listview): Add IDC_CHOOSE_PREV and IDC_CHOOSE_NEXT to ta[] so
750 rbset() sets the prev/next/curr radio buttons properly.
751 (dialog_cmd): Delete function.
752 (dialog_proc): Delete function. Move WM_INITDIALOG functionality to
754 (do_choose): Delete function. Move pre-DialogBox() code to
755 ChooserPage::OnInit(), post-DialogBox() code to ChooserPage::OnNext.
756 (WM_APP_START_CHOOSE): Remove define.
757 (WM_APP_CHOOSE_IS_FINISHED): Remove define.
758 (do_choose_thread): Delete function.
759 (ChooserPage::OnActivate): Delete method.
760 (ChooserPage::OnMessageApp): Delete method.
761 (ChooserPage::OnInit): New method.
762 (ChooserPage::OnNext): New method.
763 (ChooserPage::OnBack): New method.
764 (ChooserPage::OnMessageCmd): New method.
765 * choose.h: Run indent.
766 (ChooserPage::OnMessageApp): Delete declaration.
767 (ChooserPage::OnActivate): Ditto.
768 (ChooserPage::OnMessageCmd): New declaration.
769 (ChooserPage::OnInit): Ditto.
770 (ChooserPage::OnNext): Ditto.
771 (ChooserPage::OnBack): Ditto.
772 * desktop.cc (DesktopSetupPage::OnBack): Replace use of IDD_CHOOSER
774 * fromcwd.cc (do_fromcwd): Replace use of IDD_CHOOSER with IDD_CHOOSE.
775 * ini.cc (do_ini_thread): Replace use of IDD_CHOOSER with IDD_CHOOSE.
776 * res.rc (IDD_CHOOSE): Remove dialog template.
777 (IDD_CHOOSER): Alter dialog template to fit wizard size and format.
779 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
781 * LogFile.cc (endLog): Work around an apparent libg++-3 bug causing
782 corrupt log file entries.
783 * geturl.cc: Convert to the new LogSingleton logging.
785 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
787 * ini.cc (do_remote_ini): Use setup.bz2 if it exists in preference to
790 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
792 * geturl.h: Declare getUrlToStream.
793 * geturl.cc (getUrlToStream): New function.
794 (get_url_to_membuf): Refactor to use getUrlToStream.
796 2002-05-11 Robert Collins <rbtcollins@hotmail.com>
798 * Makefile.am: Add a release target to automate some of the routine
800 * Makefile.in: Regenerate.
802 2002-05-11 Robert Collins <rbtcollins@hotmail.com>
804 * choose.cc (scan_downloaded_files): On local installs remove all
805 mirror sites if no cached copy of a package is found.
807 2002-05-10 Robert Collins <rbtcollins@hotmail.com>
809 * Makefile.in: Regenerate.
810 * iniparse.y: Use left recursion, not right in the lines rule to
811 avoid stack overflows.
812 * README: Update TODO's.
813 * io_stream_file.cc: Native builds need to include sys/stat.h
815 2002-05-06 John Marshall <jmarshall@acm.org>
817 * site.cc (SitePage::OnMessageCmd): recalculate navigation
818 button activation when "Add" is pressed.
819 (SitePage::CheckControlsAndDisableAccordingly): tweak comment.
821 2002-05-07 Robert Collins <rbtcollins@hotmail.com>
823 * Makefile.am (inlint_SOURCES): Add conditional objects to inilint
824 depending on platform.
826 * configure.in: Set conditional MINGWTARGET if compiling against mingw
828 * Makefile.in: Regenerate.
830 * io_stream_file.cc: Only use win32 calls when building for mingw.
832 2002-05-05 Robert Collins <rbtcollins@hotmail.com>
834 * Makefile.am (noinst_PROGRAMS): Make inilint configurable.
835 * configure.in: Ditto.
836 Fix incorrect header checking syntax.
837 * aclocal.m4: Regenerate.
838 * configure: Regenerate.
839 * Makefile.in: Regenerate.
840 * io_stream.cc: Remove platform specific and provider specific code.
841 (io_stream::registerProvider): New method, registers a Url provider with
843 Make all methods consistently throw invalid_argument exceptions when
844 a provider that is requested is not present.
845 (findProvider): New private function, finds a provider.
846 * io_stream.h: Declare io_stream::registerProvider.
847 * io_stream_cygfile.cc: Create a Provider class to register with
849 * io_stream_file.cc: Ditto.
850 * archive.cc: Remove unneeded includes.
851 * archive_tar.cc: Remove unneeded includes.
852 * archive_tar.h: Add required include.
853 * archive_tar_file.cc: Remove unneded includes.
854 * choose.cc: Remove unneeded includes:
856 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
858 * io_stream.cc: Use the new log interface thruout.
860 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
862 * log.cc (log): Reimplement via LogSingleton.
864 (exit_setup): Remove.
865 * log.h (log_save): Remove.
866 (exit_setup): Remove.
867 * LogSingleton.cc: New file.
868 * LogSingleton.h: New file.
869 * LogFile.cc: New file.
870 * LogFile.h: New file.
871 * Makefile.am (inilint_SOURCES): Add the new log interface.
872 (setup_SOURCES): Add the new log interface and the concrete File
874 * Makefile.in: Regenerate.
875 * archive.cc: Use the new log interface thruout.
876 * archive_tar.cc: Ditto.
878 * dialog.cc (fatal): Use the new log interface.
879 * ini.cc (do_ini_thread): Use the log interface to exit.
880 * isntall.cc (do_install_thread): Ditto.
881 * netio.cc (auth_cmd): Ditto.
882 * msg.cc (fatal): Ditto.
883 * localdir.cc (save_local_dir): Save to different files depending on
884 the mode, and if a root dir exists.
886 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
888 * IniDBBuilder.cc: New file.
889 * IniDBBuilder.h: New file.
890 * IniDBBuilderPackage.cc: New file.
891 * IniDBBuilderPackage.h: New file.
892 * PackageTrust.h: New file.
893 * IniState.h: Remove, wasn't thought out well enough.
894 * Makefile.am (inilint_SOURCES): Add more requirements.
895 (setup_SOURCES): Add new Builder base and concrete classes.
896 * Makefile.in: Regenerate.
897 * String++.cc (String::String): Implement int contructor.
898 * String++.h (String): Declare int constructor.
899 * archive_tar.cc (archive_tar::next_file_name): Return String() when
901 * archive_tar.h (archive_tar_file): Remove get_next_filename method,
903 * ini.cc: Replace IniState wuth IniDBBuilderPacakge.
904 (find_routine): Use new IniDBBuilder to configure the parser.
905 (do_local_ini): Ditto.
906 (do_remote_ini): Ditto.
907 * ini.h: Use IniDBBuilder to initialise parsing.
908 * inilex.l (MD5): Parse the MD5 string correctly, we had the nibbles
910 (ini_init): Use an IniDBBuilder rather than static variables.
911 * iniparse.y: Hand off all the object creation to a builder, rather
912 than hardcoding the behaviour. This allows run-time configured
914 * io_stream_cygfile.h (io_stream_cygfile): Remove get_next_filename
915 method, it's not needed.
916 * io_stream_file.h (io_stream_file): Ditto.
917 * mount.cc (cygpath): Return String() for missing mounts.
918 * package_meta.cc (packagemeta::SDesc): Return String() for blank
920 * package_meta.h (trusts): Remove - replaced by PackageTrust.h.
921 (packagemeta::packagemeta): Fix incorrect syntax in String constructor
923 * cygpackage.cc (cygpackage::cygpackage): Fix incorrect syntax in
924 String constructor usage.
925 * site.h (site_list_type): Ditto.
927 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
929 * String++.h: Declare a << operator that accepts String objects.
930 * String++.cc: We need iostream for..
931 (operator <<): this. Provide a << operator that accepts String objects.
932 * ini.cc (yyerror): Remove the "C" classifier - it's not needed.
933 Change from vargs to a String parameter.
934 * inilintmail.cc: Remove the gui related headers.
935 (yyerror): Implement this for parsing.
936 * iniparse.y: Use the new yyerror syntax.
938 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
940 * Makefile.am: Add IniState.h.
941 * Makefile.in: Regenerate.
942 * IniState.h: New file.
943 * choose.cc: Don't include ini.h - it's not needed.
944 * configure: Regenerate.
945 * desktop.cc: Don't include ini.h - it's not needed.
946 * download.cc: Ditto.
948 * ini.cc: Use IniState.h to track each parsing calling.
949 (find_routine): Ditto.
950 (do_remote_ini): Ditto.
951 (do_ini_thread): Ditto.
952 * ini.h (ini_init): Adjust parameters to include state object.
953 * inilex.l: Declare parser state variable.
954 (ini_init): Adjust parameters to include state object.
955 * iniparse.y: Remove obsolete setup_timestamp and setup_version
957 (setup_header): Use new state variable to track time and version.
958 (add_correct_version): Ditto.
959 * install.cc: Don't include ini.h - it's not needed.
961 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
963 * nio-files.cc (NetIO): Use io_stream syntax for get_file_size.
964 * io_stream_file.cc: Don't include filemanip.h.
965 (io_stream_file::get_size): Implement here to remove filemanip
967 * io_stream_cygfile.cc: Don't include filemanip.h.
968 (io_stream_cygfile::get_size): Implement here to remove filemanip
970 Implement a stat based version for when win32 is not available.
971 * filemanip.h (get_file_size): Return size_t - it's more appropriate.
972 * filemanip.cc: Don't include win32.h - be platform independent.
973 Include strings.h and io_stream.h as part of that.
974 (get_file_size): Leverage io_streams and remove win32 implementation.
975 * download.cc (check_for_cached): Use io_stream syntax for
977 (download_one): Ditto.
979 2002-05-02 Robert Collins <rbtcollins@hotmail.com>
981 * configure.in: Correct a typo in last change.
982 * configure: Regenerate.
983 * Makefile.in: Regenerate.
985 2002-05-02 Robert Collins <rbtcollins@hotmail.com>
987 * configure.in: Check for string.h and string.
988 * configure: Regenerate.
989 * Makefile.in: Regenerate.
991 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
993 * res.rc (IDD_SPLASH): Remove white box.
995 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
997 Oops! forgot to list these in the last checkin.
998 * inilintmain.cc: New file.
999 * md5.h: New file - imported md5 source, BSD style licence.
1000 * md5.cc: New file - imported md5 source, BSD style licence.
1001 * Exception.cc: New file.
1002 * Exception.h: New file.
1003 * MD5++.cc: New file.
1004 * MD5++.h: New file.
1006 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
1008 * Makefile.am (AM_CFLAGS): Remove -mwindows, it's a linker flag.
1009 Remove -fno-rtti, we need it for exceptions.
1010 (AM_CXXFLAGS): Ditto.
1011 (WARNONLY_CFLAGS): Ditto.
1012 (EXTRA_PROGRAMS): Add with initial linter sources - not functional yet.
1013 (setup_LDFLAGS): Add and set to -mwindows.
1014 (setup_SOURCES): Add new sources.
1015 * Makefile.in: Regenerate.
1016 * README: Update TODO.
1017 * choose.cc (scan_downloaded_files): Use ini information if it's
1019 * configure: Regenerate.
1020 * download.cc (check_for_cached): Make reusable from elsewhere.
1021 Throw exceptions on errors (as opposed to failures).
1022 Check MD5 sum when it's known.
1023 (download_one): Never force a download.
1024 Handle corrupt package exceptions.
1025 * ini.cc (find_routine): Reverse escape the URL to correctly identify
1027 * inilex.l (MD5): Provide a parsing rule (note: lowercase is required).
1028 * iniparse.y: Allow calculation of MD5 sums, and allow src only
1030 (process_src): New helper function.
1031 * isntall.cc (install_one_source): Check MD5 sums when possible.
1032 Throw exceptions on errors.
1033 (do_install_thread): Handle exceptions for installation calls.
1034 * package_source.h: Store MD5 information.
1035 * propsheet.cc (PropSheet::Create): Add a useful comment.
1036 * res.rc (IDS_INSTALL_ERROR): Define.
1037 (IDS_CORRUPT_PACKAGE): Define.
1038 * resource.h (IDS_INSTALL_ERROR): Define.
1039 (IDS_CORRUPT_PACKAGE): Define.
1040 * rfc1738.cc (rfc1738_unescape_part): Implement.
1041 * rfc1738.h (rfc1738_unescape_part): Declare.
1043 2002-04-29 Robert Collins <rbtcollins@hotmail.com>
1045 * Makefile.am: Remove dependecy rules that automake emits.
1046 Correct badly copied dependency info for manually compiled files.
1047 (setup_SOURCES): Add all used headers.
1048 (EXTRA_DIST): Include non compilate but required sources.
1049 (setup_LDADD): Remove mingw32, it is autodetected.
1050 * Makefile.in: Regenerate.
1051 * String++.h: sys/types is a system header.
1052 * choose.cc (do_choose_thread): Make into a Win32 thread routine.
1054 (ChooserPage::OnMessageApp): Use Win32 threads. (_beginthread is not
1056 * configure: Regenerate.
1057 * configure.in: Check for mingw32/cygwin specific headers and libraries.
1058 * cygpackage.h: Include the win32.h header to get correct macro
1059 definitions in all situations.
1060 * download.cc (do_download_reflector): Make into a Win32 thread routine.
1062 (do_download): Use Win32 threads.
1064 * install.cc: Ditto.
1065 * (WinMain): Adjust to build valid command line using application
1066 under both mingw32 and cygwin.
1067 * mount.cc (set)cygdrive_flags): Create new system flags if the
1068 user requests system and the value does not exist.
1069 * nio-http.cc: Define a _strnicmp for cygwin.
1070 * package_db.cc: Include <errno.h> if it exists.
1071 * site.cc (do_download_site_info_thread): Make into a Win32 thread
1074 (do_download_site-Info): Use Win32 threads.
1075 * state.cc: Explicity declare variables to avoid header conflicts
1076 caused by '#define extern" on cygwin.
1077 * win32.h: Include <alloca.h> if it exists.
1078 (_MAX_PATH): Define as MAX_PATH when not defined by windows.h.
1079 (_access): Define as access if not defined by windows.h.
1081 2002-04-27 Robert Collins <rbtcollins@hotmail.com>
1083 * compress_gz.cc (compress_gz::error): EOF is not an error condition.
1085 2002-04-27 Robert Collins <rbtcollins@hotmail.com>
1087 * Makefile.am: Add libgetopt++ to the subdirs list.
1088 Search the libgetopt++ header directory.
1089 Link against libgetopt++.la.
1090 (setup_SOURCES): Remove GetOption.cc and getopt.c and Option.cc.
1091 (setup_LDADD): Explicitly include res.o.
1092 * Makefile.in: Regenerate.
1093 * aclocal.m4: Regenerate.
1094 * bootstrap.sh: Call libtoolize.
1095 * configure: Regenerate.
1096 * configure.in: Add libtool support and configure libgetopt++.
1097 * desktop.cc (NoShortcutsOption): Turn into a BoolOption.
1098 (DesktopSetupPage::OnInit): Use the simpler syntax.
1099 * desktop.h: Remove dependency on Option.h, and remove NoShortcustOption
1101 * main.cc: Include getopt++/GetOption.h.
1102 (main): Use simpler syntax.
1106 * GetOption.h: Remove.
1107 * GetOption.cc: Remove.
1109 * Option.cc: Remove.
1111 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
1113 * Makefile.am: Add zlib and bz2lib to SUBDIRS.
1115 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
1117 * aclocal.m4: New file, cached macros.
1118 * bootstrap.sh: New file, calls required autotools in appropriate
1120 * Makefile.am: New file, input Makefile for automake.
1121 * Makefile,in: Now a generated file - regenerate.
1122 * configure: Regenerate.
1123 * configure.in: Add automake support.
1124 * inilex.l: Change VERSION to PACKAGEVERSION to avoid a collision with
1125 automake's VERSION define.
1126 * iniparse.y: Ditto.
1128 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
1130 * cdefs.h: New file, imported to allow getopt.c to build without
1132 * getopt.h: New file, imported to allow building without cygwin headers.
1134 * bz2lib: New directory, contains copy of bz2lib.
1135 * cfgaux: New directory, contains autotool helper scripts.
1136 * Makefile,in: Adjust library and target definitions for building
1137 outside the sourceware tree.
1138 * compress_bz.h: Use new bz2lib header location.
1139 * mount.cc: Import key defines and enums to be independent of cygwin
1141 * configure.in: Update to autoconf 2.53, and to be sourceware
1143 * configure: Regenerate.
1145 2002-04-12 Robert Collins <rbtcollins@hotmail.com>
1147 * mklink2.cc (make_link_2): Tweak to work with current w32api
1150 2002-04-10 Pavel Tsekov <ptsekov@gmx.net>
1152 * version.cc (canonicalize_version): Fix a call delete[]
1153 to delete the allocated address.
1155 2002-03-29 Robert Collins <rbtcollins@hotmail.com>
1157 * PickView.cc (PickView::set_headers): Set last_col correctly. Thanks
1158 to Ton van Overbeek for locating the bug area.
1160 2003-03-27 Robert Collins <rbtcollins@hotmail.com>
1162 * PickView.cc (PickView::insert_pkg): Be more generic with
1164 (PickView::insert_category): Ditto.
1165 (PickView::~PickView): Create.
1166 * PickView.h (PickView::~PickView): Declare.
1168 2003-03-27 Robert Collins <rbtcollins@hotmail.com>
1170 * Makefile.in (OBJS): Add new commandline objects.
1171 * desktop.cc (NoShortCutsOption): New option code.
1172 (DesktopSetupPage::OnInit): Check whether to skip shortcuts.
1173 * desktop.h (NoShortCutsOption): New concrete command line option class.
1174 * main.cc (WinMain): Process command line options.
1175 * GetOption.h: New file, singleton command line class.
1176 * GetOption.cc: New file, implementation of the above.
1177 * Option.h : New file, abstract option for GetOption.
1178 * Option.cc: New file, implement constructor and destructor.
1180 2002-03-26 Pavel Tsekov <ptsekov@gmx.net>
1182 * mkdir.cc (mkdir_p): Stop processing if the path is exhausted.
1184 2002-03-26 Ton van Overbeek <tvoverbe@cistron.nl>
1186 * PickPackageLine.cc (PickPackageline::paint): Adjust clipping rectangle
1187 to textheight, so large fonts work.
1189 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
1191 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Don't translate
1194 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
1196 * io_stream_cygfile.cc (cwd): New static for cwd storage.
1197 (io_stream_cygfile::normalise): New method.
1198 (io_stream_cygfile::io_stream_cygfile): Use it.
1199 (io_stream_cygfile::exists): Ditto.
1200 (io_stream_cygfile::remove): Ditto.
1201 (io_stream_cygfile::mklink): And again.
1202 (cygmkdir_p): Yes, again.
1203 (io_stream_cygfile::move): And once more.
1204 * io_stream_cygfile.h (io_stream_cygfile::normalise): Declare.
1205 (io_stream_cygfile::cwd): Ditto.
1207 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
1209 * package_meta.cc (package_meta::~package_meta): Remove duplicate.
1210 (CategoryPackage::~CategoryPackage): Ditto. (Thanks to Ton van
1211 Overbeek for the report).
1212 * mklink2.cc: Moved from mklink2.c to avoid 'not a prototype error'.
1213 Make g++ compatible.
1214 * mklink2.c: Remove.
1215 * site.cc (site_list_type::init): Delete the correct memory addres.
1216 Thanks to Pavel Tsekov for tracking this down.
1218 2002-03-20 Robert Collins <rbtcollins@hotmail.com>
1220 * win32.h: Only define alloca if it's not already.
1222 2002-03-20 Robert Collins <rbtcollins@hotmail.com>
1224 * package_meta.h (packamgemeta::trustp): Make 'test' choice leave installed
1226 * README: Update with latest requests.
1227 * Various: MTC fixes from setup200202 branch.
1229 2002-03-19 Christopher Faylor <cgf@redhat.com>
1231 * Makefile.in (setup_version.c): Add back magic which allows detection
1232 of setup.exe version number.
1234 2002-03-17 Robert Collins <rbtcollins@hotmail.com>
1236 * * PickPackageLine.cc (PickPackageLine::paint): Fix incorrect clip region
1237 calculation on win9x systems.
1239 2002-03-16 Robert Collins <rbtcollins@hotmail.com>
1241 * install.cc (install_one_source): Write the correct length of a string to the
1242 lst file (Thanks to Pavel Tsekov for reporting the bug).
1244 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
1246 * choose.cc (list_click): Always refresh the entire chooser, as our
1247 package state change mechanism is broken with the new improved list classes.
1249 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
1251 * desktop.cc (make_passwd_group): Check for .lnk suffix on /etc/passwd and
1254 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
1256 * PickPackageLine.cc (PickPackageLine::DrawCheck): New method factored out from
1258 (PickPackageLine::paint): Use DrawCheck to draw the src tick box, and the new
1260 (PickPackageLine::click): Handle the new bin tickbox.
1261 * PickPackageLine.h (PickPackageLine::DrawCheck): Declare this.
1262 * PickView.cc (pkg_headers): Add a Bin? column.
1263 (cat_headers): Ditto.
1264 (PickView::set_headers): Ditto.
1265 (PickView::init_headers): Ditto.
1266 * PickView.h (PickView): Ditto.
1267 * choose.cc (list_click): Use the new name for src_col to set the clip rectangle.
1269 2002-02-24 Michael A Chase <mchase@ix.netcom.com>
1271 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Fix up Robert's
1274 2002-02-24 Michael A Chase <mchase@ix.netcom.com>
1276 * desktop.cc (make_link): Add "file://" prefix to io_stream::mkpath_p()
1278 (make_passwd_group): Ditto.
1279 * localdir.cc (save_local_dir): Ditto.
1280 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Wrap long lines.
1281 Add "cygfile://" prefix to io_stream::open() calls.
1283 2002-02-24 Robert Collins <rbtcollins@hotmail.com>
1285 * log.cc (log_save): Fix creating /var/log.
1286 * packate_meta.cc (standard_dirs): Remove duplicate '/''s.
1288 2002-02-24 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1290 * res.rc (STRINGTABLE): Add IDS_CYGWIN_SETUP and
1291 IDS_CYGWIN_SETUP_WITH_PROGRESS strings.
1292 * resource.h: Add IDS_CYGWIN_SETUP and
1293 IDS_CYGWIN_SETUP_WITH_PROGRESS IDs.
1295 * splash.cc (OnInit): Qualify SetWindowText() call with global scope
1296 operator (::SetWindowText()).
1298 * threebar.cc: Run indent.
1299 (cistring.h): Add include.
1300 (SetText1, SetText2, SetText3): Qualify SetWindowText() call with
1301 global scope operator.
1302 (SetBar2): Add logic for writing percent complete into window title.
1304 * window.h: Run indent.
1305 (SetWindowText): New function.
1306 (String): Add forward declaration.
1307 * window.cc: Run indent.
1308 (String++.h): Add include.
1309 (SetWindowText): New function.
1311 2002-02-24 Robert Collins <rbtcollins@hotmail.com>
1313 * README: Update TODO list.
1314 * install.cc (install_one): Fix src package location.
1315 (do_install_thread): Fix creating directories.
1317 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1319 * choose.cc: Include cygpackage.h for scan2 use.
1320 (set_existence): Ignore setup.ini mirrors when installing from cwd.
1321 (scan2): Process any valid file.
1322 Add cache entries when a file matching a setup.ini listed version is found.
1323 * filemanip.cc (parse_filename): Remove pkgtar - not used anywhere else.
1324 * filemanip.h (filemanip::pkgtar): Remove.
1325 * package_meta.cc (CategoryPackage::~CategoryPackage): New method.
1326 (packagemeta::~packagemeta): Move from package_meta.h
1327 Remove and delete all version and category information.
1328 * package_meta.h (CategoryPackage): Create a destructor.
1329 (packagemeta::~packagemeta): Move to .cc file.
1331 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1333 * install.cc (install_one_source): Make NULL cached package names cause
1336 2002-02-18 Michael A Chase <mchase@ix.netcom.com>
1338 * desktop.cc (make_passwd_group): Don't create passwd-grp.bat
1341 2002-02-18 Michael A Chase <mchase@ix.netcom.com>
1343 * log.cc (log_save): Put "\n" at end of log lines instead of "'".
1345 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1347 * mount.cc (create_mount): Avoid a const char*->char* warning.
1348 (read_mounts): Ditto.
1350 2002-02-05 Jason Tishler <jason@tishler.net>
1352 * download.cc (do_download_thread): Fix off-by-one error.
1354 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1356 * configure.in (CXXFLAGS): Substitute at configure time, not runtime.
1357 * configure (CXXFLAGS): Regenerate.
1358 * Makefile.in (iniparse.o): Build via default rules - no errors now.
1359 * README: TODO list updates.
1361 2002-02-19 Michael A Chase <mchase@ix.netcom.com>
1363 * String++.cc (String::concat):: Remove.
1364 (String::vconcat):: Ditto.
1365 * String++.h (String::concat):: Remove.
1366 (String::vconcat):: Ditto.
1367 * archive_tar.cc: Don't include concat.h.
1368 * archive_tar_file.cc: Don't include concat.h.
1369 * compress_bz.cc (compress_bz::peek): Don't log unneeded messages.
1370 (compress_bz::seek): Ditto.
1371 (compress_bz::~compress_bz): Ditto.
1372 * compress_gz.cc (compress_gz::peek): Ditto.
1373 (compress_gz::error): Ditto.
1374 (compress_gz::~compress_gz): Ditto.
1375 * concat.cc (vconcat): Remove.
1377 * concat.h (vconcat): Remove.
1379 * desktop.cc (desktop_icon): Use new cygpath.
1380 (make_etc_profile): Ditto.
1382 (make_passwd_group): Ditto.
1384 (check_desktop): Remove concat use.
1385 (check_start_menu): Ditto.
1386 * download.cc (download_one): Use new mkpath_p correctly.
1388 * fromcwd.cc: Don't include concat.h.
1389 * geturl.cc (get_url_to_membuf): Use String log() call.
1390 (get_url_to_file): Ditto.
1391 * install.cc: Don't include concat.h.
1392 (uninstall_one): Use LOG_PLAIN.
1393 (replace_one): Ditto.
1394 (install_one_source): Ditto.
1395 (install_one): More char to String conversion.
1396 (do_install_thread): Use new cygpath.
1397 Use new create_mount.
1398 * io_stream.cc (io_stream::move): Use new log().
1399 * io_stream_cygfile (io_stream_cygfile::io_stream_cygfile): Use new cygpath.
1400 (io_stream_cygfile::exists): Ditto.
1401 (io_stream_cygfile::remove): Ditto.
1402 (io_stream_cygfile::mklink): Ditto.
1403 (io_stream_cygfile::write): Ditto.
1404 (cygmkdir_p): Ditto.
1405 (io_stream_cygfile::move): Ditto.
1406 * io_stream_file.cc: Don't include log.h.
1407 (io_stream_file::write): Don't log unneeded messages.
1408 * localdir.cc: Don't include concat.h.
1409 (LocalDirPage::OnNext): Use LOG_PLAIN.
1410 * log.cc: Don't include log.h.
1411 (exit_setup): Use new cygpath.
1412 * log.h (log_level): Add new level LOG_PLAIN.
1413 * main.cc (WinMain): Use new log().
1414 * mount.cc (SLASH_P): New macro from concat.h.
1415 (cygpath): Make String version globally visible.
1416 Remove varargs version.
1418 * msg.cc (mbox): Use LOG_PLAIN.
1419 * net.cc (NetPage::OnNext): Ditto.
1420 * nio-ftp.cc (ftp_line): Use new log().
1421 * nio-http.cc: Don't include log.h.
1422 (retry_get): Use alternative url variable.
1423 * package_db.cc: Don't include concat.h.
1424 (packagedb::flush): Don't use concat.
1425 * package_meta.cc: Don't include concat.h.
1426 (packagemeta::uninstall): Use new cygpath.
1427 * postinstall.cc (do_postinstall): Ditto.
1428 * root.cc (RootPage::OnNext): Use LOG_PLAIN.
1429 * script.cc: Don't include concat.h.
1430 (init_run_script): Use new cygpath.
1431 (run_script): More char * to String conversion.
1432 (try_run_script): Ditto.
1433 * site.cc: Don't include concat.h.
1434 (SitePage::OnNext): Use LOG_PLAIN.
1435 (SitePage::OnMessageCmd): Use new log().
1436 * source.cc (SourcePage::OnDeactivate): Use LOG_PLAIN.
1438 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1440 * Makefile.in (OBJS): Add new object.
1441 * PickCategoryLine.cc (PickCategoryLine::paint): Print a "+" before the name.
1442 * PickCategoryLine.h (PickCategoryLine::bucket): Use the String class.
1443 * PickLine.h (Pickline::key): Change to a String to help plug leaks.
1444 (PickLine::Pickline): Accept a String for the key.
1445 * PickPackageLine.cc (PickPackageLine::paint): Convert all char use to Strings.
1446 * PickPackageLine.h (PickPackageLine::PickPackageLine): The key is automatically
1448 * PickView.cc (PickView::note_width): Convert all char * use to Strings.
1449 (PickView::init_header): Move category length checking out of the inner loop for
1451 Convert all char use to Strings.
1452 * PickView.h: Include the String++ header.
1453 (PickView::note_width): Update the prototype.
1454 * String++.cc: New file, implements a reference counting string class.
1455 * String++.h: New file, declares a reference counting string class.
1456 * archive.cc: Include String++ instead of concat.
1457 (archive::extract_file): Convert char * usage to Strings.
1458 * archive.h: Inlude the String++ header.
1459 (archive::extract_file): Update prototype.
1460 (archive::next_file_name): Convert to a String.
1461 (archive::linktarget): Ditto.
1462 * archive_tar.cc (archive_tar::next_file_name): Convert to String usage.
1463 (archive_tar::linktarget): Ditto.
1464 * arhive_tar.h: Update the copyright.
1465 Explicitly include the relevant headers.
1466 (tar_map_result_type): Convert to String usage.
1467 (archive_tar::next_file_name): Update prototype.
1468 (archive_tar::linktarget): Ditto.
1469 * category.cc (Category::Category): Update initialisers.
1470 Convert to String usage.
1471 (Categorycmp): Update to String usage.
1472 * category.h: Include the String++ header.
1473 (Category::Category): Update to String usage.
1474 (Category::name): Ditto.
1475 (Category::key): Ditto.
1476 * choose.cc: Remove concat.h, it's not needed.
1477 (scan2): Update to String usage.
1479 * cygpackage.cc: Update includes for use of String class.
1480 (cygpackage::cygpackage): Update for String usage.
1481 (cygpackage::set_canonical_version): Ditto.
1482 (cygpackage::destroy): Ditto.
1483 (cygpackage::getfirstfile): Ditto.
1484 (cygpackage::getnextfile): Ditto.
1485 (cygpackage::Name): Ditto.
1486 (cygpackage::Vendor_version): Ditto.
1487 (cygpackage::Package_version): Ditto.
1488 (cygpackage::Canonical_version): Ditto.
1489 (cygpackage::set_sdesc): Ditto.
1490 (cygpackage::set_ldesc): Ditto.
1491 * cygpackage.h: Include String++.h for parsing this file.
1492 (cygpackage::cygpackage): Update for String usage.
1493 (cygpackage::set_canonical_version): Ditto.
1494 (cygpackage::destroy): Ditto.
1495 (cygpackage::getfirstfile): Ditto.
1496 (cygpackage::getnextfile): Ditto.
1497 (cygpackage::Name): Ditto.
1498 (cygpackage::Vendor_version): Ditto.
1499 (cygpackage::Package_version): Ditto.
1500 (cygpackage::Canonical_version): Ditto.
1501 (cygpackage::set_sdesc): Ditto.
1502 (cygpackage::set_ldesc): Ditto.
1503 (cygpackage::name): Ditto.
1504 (cygpackage::vendor): Ditto.
1505 (cygpackage::packagev): Ditto.
1506 (cygpackage::canonical): Ditto.
1507 (cygpackage::fn): Ditto.
1508 (cygpackage::sdesc): Ditto.
1509 (cygpackage::ldesc): Ditto.
1510 * desktop.cc: Update includes for use of String class.
1511 (batname): Update for String usage.
1514 (start)menu): Ditto.
1515 (desktop_icon): Ditto.
1516 (make_cygwin_bat): Ditto.
1517 (make_etc_profile): Ditto.
1519 (make_passwd_group): Ditto.
1521 (check_desktop): Ditto.
1522 (check_startmenu): Ditto.
1523 * dialog.cc (eget): Update for String usage.
1524 (egetString): New function.
1525 (eset): New variant for Strings.
1526 * dialog.h: Include String++.h for parsing this file.
1527 (egetString): New function.
1528 (eset): New variant for Strings.
1529 * diskfull.cc (diskfull): Update for String usage.
1530 * diskfull.h: Include String++.h for parsing this file.
1531 (diskfull): Update for String usage.
1532 * download.cc: Update includes for use of String class.
1533 (check_for_cached): Update for String usage.
1534 (download_one): Ditto.
1535 * filemanip.cc (get_file_size): Ditto.
1537 (parse_filename): Ditto.
1539 * filemanip.h: Include String++.h for parsing this file.
1540 (fileparse): Update for String usage.
1542 (parse_filename): Ditto.
1543 Don't consider '_' to be a separator.
1545 * find.cc: Update includes for use of String class.
1546 (find_sub): Make more flexible.
1547 (find): Update for String usage.
1548 * find.h (find): Use Strings.
1549 * fromcwd.cc (found_file): Update for String usage.
1551 (init_dialog): Ditto.
1552 (get_url_to_membuf): Ditto.
1553 (get_url_to_string): Ditto.
1554 (get_url_to_file): Ditto.
1556 (get_url_to_membuf): Ditto.
1557 (get_url_to_string): Ditto.
1558 (get_url_to_file): Ditto.
1560 (add_subdirs): Ditto.
1561 * ini.cc: Update includes for String usage.
1562 (find_routine): Update for String usage.
1563 (do_remote_ini): Ditto.
1564 (do_ini_thread): Ditto.
1565 * ini.h (ini_init): Ditto.
1566 * inilex.l: Update includes for String usage.
1567 (ini_init): Update for String usage.
1568 * iniparse.y: Ditto.
1569 (add_correct_version): Ditto.
1570 * install.cc: Update includes for String usage.
1571 (install_one_source): Update for String usage.
1572 (uninstall_one): Ditto.
1573 (replace_one): Ditto.
1574 (install_one_source): Ditto.
1575 (do_install_thread): Ditto.
1576 * io_stream.cc: Update includes for String usage.
1577 (io_stream::open): Update for String usage.
1578 (io_stream::mkpath_p): Ditto.
1579 (io_stream::remove): Ditto.
1580 (io_stream::mklink): Ditto.
1581 (io_stream::move_copy): Ditto.
1582 (io_stream::move): Ditto.
1583 (io_stream::exists): Ditto.
1584 * io_stream.h: Update includes to allow correct parsing.
1585 (io_stream::open): Update for String usage.
1586 (io_stream::mkpath_p): Ditto.
1587 (io_stream::remove): Ditto.
1588 (io_stream::mklink): Ditto.
1589 (io_stream::move_copy): Ditto.
1590 (io_stream::move): Ditto.
1591 (io_stream::exists): Ditto.
1592 * io_stream_cygfile.cc: Update includes for String usage.
1593 (get_root_dir_now): Update for String usage.
1594 (io_stream_cygfile::io_stream_cygfile): Ditto.
1595 (io_stream_cygfile::~io_stream_cygfile): Ditto.
1596 (io_stream_cygfile::exists): Ditto.
1597 (io_stream_cygfile::remove): Ditto.
1598 (io_stream_cygfile::mklink): Ditto.
1599 (cygmkdir_p): Ditto.
1600 (io_stream_cygfile::set_mtime): Ditto.
1601 (io_stream_cygfile::move): Ditto.
1602 (io_stream_cygfile::get_size): Ditto.
1603 * io_stream_cygfile.h: Update includes for String usage.
1604 (io_stream_cygfile::io_stream_cygfile): Update for String usage.
1605 (io_stream_cygfile::~io_stream_cygfile): Ditto.
1606 (io_stream_cygfile::exists): Ditto.
1607 (io_stream_cygfile::remove): Ditto.
1608 (io_stream_cygfile::mklink): Ditto.
1609 (cygmkdir_p): Ditto.
1610 (io_stream_cygfile::set_mtime): Ditto.
1611 (io_stream_cygfile::move): Ditto.
1612 (io_stream_cygfile::get_size): Ditto.
1613 (io_stream_cygfile::fname): Ditto.
1614 (io_stream_cygfile::lmode): Ditto.
1615 * io_stream_file.cc: Update includes for String usage.
1616 (io_stream_file::io_stream_file): Update for String usage.
1617 (io_stream_file::~io_stream_file): Ditto.
1618 (io_stream_file::exists): Ditto.
1619 (io_stream_file::remove): Ditto.
1620 (io_stream_file::mklink): Ditto.
1621 (io_stream_file::set_mtime): Ditto.
1622 (io_stream_file::move): Ditto.
1623 (io_stream_file::get_size): Ditto.
1624 * io_stream_file.h: Update includes for String usage.
1625 * io_stream_file.cc: Update includes for String usage.
1626 (io_stream_file::io_stream_file): Update for String usage.
1627 (io_stream_file::~io_stream_file): Ditto.
1628 (io_stream_file::exists): Ditto.
1629 (io_stream_file::remove): Ditto.
1630 (io_stream_file::mklink): Ditto.
1631 (io_stream_file::set_mtime): Ditto.
1632 (io_stream_file::move): Ditto.
1633 (io_stream_file::get_size): Ditto.
1634 (io_stream_file::fname): Ditto.
1635 (io_stream_file::lmode): Ditto.
1636 * localdir.cc: Update includes for String usage.
1637 (save_local_dir): Update for String usage.
1638 (check_if_enable_next): Ditto.
1639 (load_dialog): Ditto.
1641 (LocalDirPage::OnInit): Ditto.
1642 (LocalDirPage::OnNext): Ditto.
1643 * log.cc: Update includes for String usage.
1644 (struct LogEnt): Update for String usage.
1647 (exit_setup): Ditto.
1648 * log.h: Update includes for String usage.
1649 (log_level): Update for String usage.
1652 * main.cc (WinMain): Update for String usage.
1653 * mklink2.c (make_link_2): Update for String usage.
1654 * mklink2.h (make_link_2): Update for String usage.
1655 * mount.cc: Update includes for String usage.
1656 (mount_table): Update for String usage.
1658 (create_mount): Ditto.
1660 (remove_mount): Ditto.
1661 (read_mounts): Ditto.
1662 (set_root_dir): Ditto.
1663 (get_root_dir): Ditto.
1664 (path_prefix_p): Ditto.
1666 * mount.h: Update includes for String usage.
1667 (create_mount): Update for String usage.
1668 (remove_mount): Ditto.
1670 (set_root_dir): Ditto.
1671 (get_root_dir): Ditto.
1672 * msg.cc (mbox): Ditto.
1673 * net.cc (NetPage::OnNext): Ditto.
1674 * package_db.cc (packagedb::flush): Ditto.
1675 (packagedb::packages): Ditto.
1676 (packagedb::categories): Ditto.
1677 * package_db.h: Update includes for String usage.
1678 (packagedb::packages): Update for String usage.
1679 (packagedb::categories): Ditto.
1680 * package_meta.cc: Update includes for String usage.
1681 (hash::add_subdirs): Update for String usage.
1682 (packagemeta::uninstall): Ditto.
1683 (packagemeta::SDesc): Ditto.
1684 (packagemeta::action_caption): Ditto.
1685 * package_meta.h: Update includes for String usage.
1686 (packagemeta::packagemeta): Update for String usage.
1687 (packagemeta::~packagemeta): Ditto.
1688 (packagemeta::uninstall): Ditto.
1689 (packagemeta::SDesc): Ditto.
1690 (packagemeta::action_caption): Ditto.
1691 (package_source.cc site::site): Ditto.
1692 (packagesource::set_canonical): Ditto.
1693 (packagesource::set_cached): Ditto.
1694 * package_source.h: Update includes for String usage.
1695 (site::site): Update for String usage.
1696 (packagesource::set_canonical): Ditto.
1697 (packagesource::set_cached): Ditto.
1698 (packagesource::packagesource): Ditto.
1699 (packagesource::sites): Ditto.
1700 (packagesource::cached): Ditto.
1701 * package_version.h: Update includes for String usage.
1702 (Dependency): Update for String usage.
1703 (packageversion): Ditto.
1704 * postinstall.cc: Update includes for String usage.
1705 (do_postinstall): Update for String usage.
1706 * res.rc (IDD_LOCAL_DIR): Fix typo again!
1707 * rfc1738.cc (rfc1738_escape_part): Update for String usage.
1708 * rfc1738.h: Update includes for String usage.
1709 (rfc1738_escape_part): Update for String usage.
1710 * root.cc: Update includes for String usage.
1711 (check_if_enable_next): Update for String usage.
1712 (save_dialog): Ditto.
1714 (directory_is_absolute): Ditto.
1715 (directory_is_rootdir): Ditto.
1716 (directory_has_spaces): Ditto.
1717 (RootPage::OnInit): Ditto.
1718 (RootPage::OnNext): Ditto.
1719 * script.cc: Update includes for String usage.
1720 (init_run_script): Update for String usage.
1722 (run_script): Ditto.
1723 (try_run_script): Ditto.
1724 * script.h: Update includes for String usage.
1725 (run_script): Update for String usage.
1726 (try_run_script): Ditto.
1727 * site.cc site_list): Ditto.
1728 (all_site_list): Ditto.
1729 (other_url): Eliminate.
1730 (site_list_type::init): Update for String usage.
1731 (site_list_type::site_list_type): Ditto.
1732 (get_site_list): Ditto.
1733 (get_saved_sites): Ditto.
1734 (do_download_site_info_thread): Ditto.
1735 (SitePage::OnNext): Ditto.
1736 (SitePage::OnActivate): Ditto.
1737 (SitePage::PopulateListBox): Ditto.
1738 (SitePage::OnMessageCmd): Handle empty url's.
1739 * site.h: Update includes for String usage.
1740 (site_list_type::site_list_type): Update for String usage.
1741 (site_list_type::init): Ditto.
1742 (site_list_type::~site_list_type): Ditto.
1743 (site_list_type::url): Ditto.
1744 (site_list_type::displayed_url): Ditto.
1745 (site_list_type::key): Ditto.
1746 * source.cc (SourcePage::OnDeactivate): Ditto.
1747 * state.h: Update includes for String usage.
1748 (local_dir): Update for String usage.
1749 (trust_level): Remove.
1750 * version.cc: Update includes for String usage.
1751 (canonicalize_version): Update for String usage.
1752 * version.h: Update includes for String usage.
1753 (canonicalize_version): Update for String usage.
1755 2002-02-15 Christopher Faylor <cgf@redhat.com>
1757 * filemanip.c (parse_filename): Revert previous change.
1759 2002-02-14 Christopher Faylor <cgf@redhat.com>
1761 * filemanip.c (parse_filename): Don't treat '_' as a version number
1764 2002-01-29 Christopher Faylor <cgf@redhat.com>
1766 * configure: Regenerate.
1768 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
1770 * res.rc (IDD_LOCAL_DIR): Fix typo reported by Rene
1771 <Hoeck@extern.lrz-muenchen.de>
1773 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
1775 * README: Update Todo's.
1776 * list.h: Run indent.
1777 (list): New methods checksize and insert to reduce code duplication.
1778 (list::registerbykey): Use them.
1779 (list::registerbyobject): Ditto.
1780 (list::removebyindex): Copy each object individually - safe for non
1782 (list::checksize): Implement.
1783 (list::insert): Implement.
1785 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
1787 * Makefile.in: Remove the dlmalloc object by default.
1788 * install.cc (do_install_thread): Remove the mallinfo call for 'working
1789 around' the crashing issue.
1790 * package_db.h: Include <string.h> - it's needed to parse this.
1791 * package_source.cc (site::site): Move here from the header file.
1792 * package_source.h (site): Stop the constructor being inlinable.
1794 2002-01-26 Robert Collins <rbtcollins@hotmail.com>
1796 * filemanip.cc (find_tar_ext): Add a descriptive comment.
1798 2002-01-25 Michael A Chase <mchase@ix.netcom.com>
1800 * filemanip.cc (find_tar_ext): Clean up tests for .tar.gz and .tar.
1801 * fromcwd.cc (do_fromcwd): Expand FIXME comment in source file check.
1802 * install.cc (install_one_source): Add space between words in log()
1805 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1807 * log.cc (exit_setup): When saving to the download dir, explicity
1810 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1812 * archive.cc (extract_file): Separate out the prefix and the URL
1814 * archive.h (archive::extract_file): Ditto.
1815 * install.cc (install_one_source): Ditto. Use the new
1816 archive::extract_file syntax.
1817 (replace_one): Use the new syntax.
1818 (io_stream.cc): Add some log info for links.
1820 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1822 * PickCategoryLine.cc (PickCategoryLine::actiontext): Remove.
1823 (PickCategoryLine::paint): Use the new action method.
1824 (PickCategoryLine::click): Set the action for all children.
1825 (PickCategoryLine::set_action): New method.
1826 * PickCategoryLine.h (PickCategoryLine::-actions): Remove.
1827 (PickCategoryLine::current_default): Use packagemeta _actions class.
1828 * PickLine.h (PickLine::set_action): New abstract method that requires
1829 including package_meta.h.
1830 * PickPackageLine.cc (PickPackageLine::set_action): New method.
1831 * PickPackageLine.h (PickPackageLine::set_action): Declare this.
1832 * list.h (getbykey): A const correctness fix.
1833 * package_meta.cc: Run indent.
1834 (packagemeta::Default_action): New const.
1835 (packagemeta::Install_action): Ditto.
1836 (packagemeta::Reinstall_action): Ditto.
1837 (packagemeta::Uninstall_action): Ditto.
1838 (packagemeta::_actions::caption): New method.
1839 (packagemeta::_actions::operator++): Ditto.
1840 (packagemeta::set_action): New overload.
1841 * package_meta.h (packagemeta::_actions): New class.
1842 (packagemeta::set_action): Declare this.
1844 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1846 * Makefile.in (OBJS): Remove supp.o - it appears accidental.
1847 * choose.cc: Don't define alloca anymore, it's done in win32.h
1849 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1851 * PickPackageLine.cc: New file.
1852 * PickPackageLine.h: New file.
1853 * PickLine.cc: New file.
1854 * PickLine.h: New file.
1855 * PickCategoryLine.cc: New file.
1856 * PickCategoryLine.h: New file.
1857 * PickView.cc: New file.
1858 * PickView.h: New file.
1859 * Makefile.in: Add new objects to setup.exe.
1860 Backout -fno-exceptions option.
1861 * choose.cc: Include PickView.h.
1862 Remove view related defines and static variables.
1863 (_pkg_headers): Moved to PickView.cc.
1864 (_cat_headers): Ditto.
1865 (view::views::Unknown): Ditto.
1866 (view::views::PackageFull):
1867 (view::views::Package):
1868 (view::views::Category):
1869 (pkgtrustp): Moved to package_meta.cc.
1870 (add_required): Moved to package_meta.cc.
1871 (pick_category_line::empty): Moved to PickCategoryLine.cc
1872 (paint): Adjust for moved static variables.
1873 (view::scroll): Moved to PickView.cc.
1874 (list_vscroll): Adjust for moved static variables.
1875 (list_hscroll): Ditto.
1876 (list_click): Ditto.
1877 (note_width): Moved to PickView.cc.
1878 (view::view): Ditto.
1879 (view::set_view_mode): Ditto.
1880 (view::mode_caption): Ditto.
1881 (view::views::caption): Ditto.
1882 (view::set_headers): Ditto.
1883 (DoInsertItem): Ditto.
1884 (view::init_headers): Ditto.
1885 (view::insert_pkg): Ditto.
1886 (view::insert_category): Ditto.
1887 (view::clear_view): Ditto.
1888 (view::views::operator++): Ditto.
1889 (view::click): Ditto.
1890 (default_trust): Adjust for moved statics.
1891 (pick_pkg_line::paint): Moved to PickPackageLine.cc.
1892 (pick_pkg_line::click): Ditto.
1893 (pick_category_line::actiontext): Moved to PickCategoryLine.cc
1894 (pick_category_line::paint): Ditto.
1895 (pick_category_line::click): Ditto.
1896 (set_view_mode): Adjust for moved statics.
1897 (create_listview): Ditto.
1898 * choose.h: Remove Category and packagemeta forward defines - not needed.
1899 Don't include unneeded headers list and package_meta.
1900 (_header): Move to PickView.h.
1901 (pick_line): Move to PickLine.h.
1902 (pick_pkg_line): Move to PickPackageLine.h.
1903 (pick_category_line): Move to PickCategoryLine.h.
1904 (view): Move to PickView.h.
1905 * ini.h (trusts): Move to package_meta.h.
1906 * package_meta.h (trusts): New enum.
1907 (packagemeta::set_requirements): New helper method.
1908 (packagemeta::trustp): Ditto.
1910 2002-01-21 Christopher Faylor <cgf@redhat.com>
1912 * choose.h (view): Move forward declaration of views into public area
1913 or g++ v3 will complain.
1915 2002-01-21 Christopher Faylor <cgf@redhat.com>
1917 * Makefile.in (CXXFLAGS): Add -fno-exceptions.
1918 * win32.h (alloca): Define as __builtin_alloca.
1919 * io_stream_memory.cc: Add include file.
1921 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
1923 * archive_tar.cc (archive_tar::~archive_tar): Mark the stream as destroyed.
1924 * archive_tar_file.cc (archive_tar_file::~archive_tar_file): Ditto.
1925 * compress.cc (compress::~compress): Be less verbose.
1926 * compress_bz.cc (compress_bz::~compress_bz): Ditto.
1927 Mark the stream as destroyed.
1928 * compress_gz.cc (compress_gz::~compress_gz): Mark the stream as destroyed.
1929 * io_stream.cc (io_stream::~io_stream): Only warn when the stream is not marked
1931 * io_stream_cygfile.cc (io_stream_cygfile::~io_stream_cygfile): Mark the
1932 stream as destroyed.
1933 * io_stream_file.cc (io_stream_file::~io_stream_file): Ditto.
1934 * io_stream_memory.cc (io_stream_memory::~io_stream_memory): Ditto.
1936 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
1938 * Makefile.in (CFLAGS): Allow customisable malloc debug flags.
1939 (OBJS): Link in malloc objects.
1940 * category.cc (category): Use new char, not strdup.
1941 * choose.cc (pick_pkg_line::paint): Allow for the regionsize to shrink.
1942 (do_choose): Use new char, not malloc.
1943 * concat.cc (vconcat): Ditto.
1944 * cygpackage.cc (cygpackage): Use new char, not strdup.
1945 (set_canonical_version): Ditto.
1946 (cygpackage::destroy): Use delete[], not free.
1947 * desktop.cc (uexists): Ditto.
1948 * dialog.cc (egest): Use new char, not strdup.
1949 * dlmalloc.c: New file - Doug Lea's malloc 2.7.0
1950 * hash.cc (hash::hash): Use delete instead of free.
1951 (hash::add): Use new char, not strdup.
1952 * ini.cc (do_remote_ini): Use delete[] not free.
1953 * inilex.l: Use new char, not strdup.
1955 * iniparse.y: Ditto.
1956 Use a local package_db rather than a static one.
1957 * install.cc (struct mallinfo): Workaround an apparent dlmalloc bug.
1958 (do_install_thread): Call mallinfo to force a consistency check. Appears
1959 to fix a 'inuse' error in -DDEBUG builds.
1960 Use delete[] for strings.
1961 * io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile): Use new char,
1963 (io_stream_cygfile::~io_stream_cygfile): Use delete[], not free.
1964 (io_stream_cygfile::remove): Use new char, not strdup.
1965 * io_stream_file.cc (io_stream_file::io_stream_file): Use new char, not strdup.
1966 (io_stream_file::io_stream_file): Use delete[], not free.
1967 (io_stream_file::remove): Use new char, not strdup.
1968 * io_stream_memory.cc (memblock::~memblock): Use delete[], not free.
1969 * io_stream_memory.h (memblock): Use new char, not malloc.
1970 * localdir.cc (LocalDirPage::OnInit): Use new char, not strdup.
1971 * main.cc (WinMain): Use new char, not strdup.
1972 * mount.cc (find2): Use new char, not malloc.
1973 (read_mounts): Ditto.
1974 (cygpath): Use new char, not strdup.
1975 * netio.cc (NetIO::~NetIO): Use delete[], not free.
1976 (NetIO::set_url): Use new char, not strdup.
1977 (NetIO::get_ftp_auth): Use delete[], not free.
1978 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
1979 Use new char instead of strdup.
1980 * nio-http.cc (base64_encode): Use new char, not malloc.
1981 * package_meta.cc (hash::add_subdirs): Use new char instead of strdup.
1982 * package_source.h (~ packagesource): Use delete[] instead of delete.
1983 * port.h (strdup): Deprecate the use of strdup.
1984 * rfc1738.cc (rfc1738_do_escape): Use new char, not calloc.
1985 * script.cc (init_run_script): Us delete[], not free.
1986 (run_script): Ditto.
1987 * simpsock.cc (SimpleSocket::fill): Use new char, not malloc.
1988 (SimpleSocket::invalidate): Use delete[], not free.
1989 * site.cc (site_list_type::init): Use new char instead of strdup.
1990 * site.h (~site_list_type): Use delete[], not free.
1992 2002-01-20 Robert Collins <rbtcollins@hotmail.com>
1994 * Makefile.in (OBJS): Add win32.o - win32 support functions.
1995 * README: Update todos.
1996 * archive.cc (extract_file): Support a suffix for appending to extracted files.
1998 * choose.cc (set_view_mode): Use the new view::views class.
1999 (view::views::Unknown): New static for defaulting view::views variables.
2000 (view::views::PackageFull): New static for the current view.
2001 (view::views::Package): Ditto.
2002 (view::views::Category): Ditto.
2003 (topbucket::paint): Remove.
2004 (topbucket::empty): Rename to pick_category_line::empty.
2005 (topbucket::~topbucket): Remove.
2006 (paint): Use the new view::views class.
2007 Don't paint 'all' as a category when showing package categoies.
2008 (pick_category_line::actiontext): New method.
2009 (pick_category_line::paint): Make showing the category optional, and show the
2011 (pick_category_line::click): Make showing the category optional, and
2012 differentiate between the name being clicked, and the action description.
2013 (view::view): Use the new view::views class.
2014 (view::set_view_mode): Ditto.
2015 (view::mode_caption): Ditto.
2016 (view::views::caption): New method.
2017 (view::set_headers): Use the new view::views class.
2018 (view::clear_view): Ditto.
2019 (viewsplusplus): Replaced by
2020 (view::views::operator++): New operator.
2021 (set_view_mode): Use the new view::views class.
2022 (create_listview): Ditto.
2023 (dialog_cmd): Ditto.
2024 * choose.h (actions): Remove.
2026 (pick_line): Add a new convenience constructor.
2027 (top_bucket): Remove.
2028 (pick_category_line): Reparent under pick_line, and adsorb top_bucket.
2029 (view::views): New class.
2030 * ini.h: Don't include choose.h
2031 (is_download_action): Remove.
2032 (is_upgrade_action): Remove.
2033 (is_uninstall_action): Remove.
2034 (is_full_action): Remove.
2035 * install.cc (num_replacements): New static.
2036 (rebootneeded): Ditto.
2037 (replace_one): Handle upgrades separate from removal or new installs.
2038 (install_one_source): Handle in use files.
2039 (install_one): Don't repeat upgrades.
2040 (do_install_thread): Initialize new statics.
2041 Order actions as uninstall, replace, install.
2042 Warn about rebooting if needed.
2043 * res.rc (IDS_REBOOT_REQUIRED): New string.
2044 * resource.h (IDS_REBOOT_REQUIRED): Give value.
2045 * win32.h: Declare class Win32, and update copyright and intent message.
2046 * win32.cc: New file.
2048 2002-01-15 Corinna Vinschen <corinna@vinschen.de>
2050 * io_stream.cc (io_stream::gets): Eliminate trailing new line chars.
2051 * package_meta.cc (packagemeta::uninstall): Check for additional
2052 Windows shortcut. Unset R/O file attribute before trying to delete
2055 2002-01-09 Robert Collins <rbtcollins@hotmail.com>
2057 * choose.cc (pkgtrustp): Fall back to installed if a package is not present in
2058 the current trust level. For prev, fall back via curr.
2059 (set_existence): Allow sources with no sites, but cached files to be
2061 (pick_category_line::paint): Start drawing clickable categories.
2062 * fromcwd.cc (found_file): Reinstate local file scanning.
2064 2002-01-07 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2066 * fromcwd.cc: Run indent.
2067 (do_fromcwd): Reverse sense of comment. Set next_dialog
2068 to IDD_CHOOSER instead of IDD_CHOOSE.
2069 * ini.cc (find_routine): Remove "/" from "/setup.ini".
2071 2001-01-07 Robert Collins <rbtcollins@hotmail.com>
2073 * category.cc (Categorycmp): Add a const safe version.
2074 * category.h (Categorycmp): Add a const safe version.
2075 (Category): Add operator ==.
2076 * choose.cc (fill_missing_category): Add every package to "All".
2077 (pick_category_line::paint): Add support for hidden labels, and a tree depth.
2078 (pick_category_line::click): Ditto.
2079 (view::view): Pass in a top level category to use.
2080 (view::insert_pkg): Special case - skip category "All".
2081 (view::insert_category): Ditto.
2082 (view::clear_view): Set the contents label state.
2083 (create_listview): Pass in a top level category to view().
2084 * choose.h (topbucket): Make bucket available to derived classes.
2085 (pick_category_line): Add support for hidden labels, and a tree depth.
2086 Remove our second copy of bucket.
2087 (view): Pass in a top level category to the constructor.
2088 Use pick_category_line to allow three level display.
2090 2001-01-06 Robert Collins <rbtcollins@hotmail.com>
2092 * cygpackage.h (cygpackage): Make set_[s|l]desc virtual.
2093 * iniparse.y (add_correct_version): Copy descriptions across.
2094 * package_meta.cc (SDesc): Iterate through versions, return the first with a
2096 * package_version.h (packageversion): Add new virtuals set_[l|s]desc.
2098 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
2100 * script.cc (run_script): Change cygpath:// to cygfile://.
2101 * install.cc (do_install_thread): Fix off-by-one errors.
2103 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
2105 * package_db.cc (packagedb::flush): Fix an off-by-one error.
2107 2002-01-04 Jan Nieuwenhuizen <janneke@gnu.org>
2109 * Makefile.in (realclean): more clean.
2110 (OBJS): Add script.o.
2111 * postinstall.cc (run_script_in_etc_postinstall): New function.
2112 (do_postinstall): Split off new funtion init_run_script ().
2115 (run_script): Move to script.cc. Replace some deprecated remove
2118 * script.cc: New file.
2119 * Forward port cygwin-20010707.jcn3.patch.
2120 * package_meta.cc (uninstall): Run pre- and postremove scripts.
2121 * install.cc: Typo fix.
2122 (do_install): Run script initialisation.
2124 2001-01-04 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2126 * cistring.cc: Run d2u.
2127 * cistring.h: Run d2u.
2129 * desktop.cc (etc_profile): Remove "test -f ./.bashrc && . ./.bashrc"
2130 from the generated /etc/profile. Bash will source this file
2131 automatically, and having this here merely results in .bashrc being
2132 executed twice. Run d2u.
2133 * desktop.h: Run d2u.
2135 * propsheet.cc: Run d2u.
2136 (PropSheetProc): New function. Add minimize box here instead of in
2137 PropertyPage::DialogProc.
2138 (PropSheet::Create): Change to use creation callback PropSheetProc.
2139 (DLGTEMPLATEEX): Add 'hidden' Windows struct definition.
2141 * propsheet.h: Run indent, d2u.
2142 * proppage.h: Run indent, d2u.
2144 * proppage.cc: Run d2u.
2145 (PropertyPage::DialogProc): Remove minimize-box-adding
2146 functionality. Remove commented-out "PropSheet_SetWizButtons" calls.
2147 Add support for calling virtual OnMessageCmd. Add setting of fonts in
2148 WM_INITDIALOG handler.
2149 (resource.h): New include for resource IDs.
2151 * res.rc: Resize and rearrange property page dialog templates
2152 to bring them in line with "Microsoft's Backward Compatible Wizard 97"
2153 specification. Run d2u.
2154 (IDD_SITE): Add an edit control and an "Add" button in order to
2155 combine the IDD_SITE and IDD_OTHER_URL functionality onto one page.
2156 (IDD_OTHER_URL): Remove dialog template.
2157 (IDD_DLSTATUS): Remove dialog template.
2160 (SitePage::OnBack): Remove NEXT() macro invocation.
2161 (SitePage::OnActivate): New member function.
2162 (load_dialog): Remove. Functionality subsumed into
2163 SitePage::OnActivate.
2164 (save_dialog): Change to support both list and user URLs. Remove
2165 OTHER_IDX and mirror_idx logic.
2166 (SitePage::PopulateListBox): New member function.
2167 (SitePage::CheckControlsAndDisableAccordingly): New member function.
2168 (SitePage::OnMessageCmd): New override.
2169 (check_if_enable_next): Remove.
2170 (dialog_cmd): Remove.
2171 (do_download_site_info_thread): Remove calls to NEXT() macro.
2172 (SitePage::Create): Call the single-param PropertyPage::Create
2174 (other_url): New static taken from other.cc.
2175 (SitePage::OnNext): Remove mirror_idx logic.
2176 (SitePage::OnInit): Remove "Other URL" entry from list box. Remove
2177 list box populating code, now handled in SitePage::PopulateListBox.
2178 (mirror_idx, NO_IDX, OTHER_IDX): Remove.
2179 (save_site_url): Fix potential buffer overflow problem. Switched to
2180 TCHAR in grossly premature preparation for multilingual support.
2182 (SitePage::OnActivate): New member function.
2183 (SitePage::CheckControlsAndDisableAccordingly) New member.
2184 (SitePage::OnMessageCmd): New override.
2185 (do_download_site_info_thread): Add MessageBox call on failure to
2188 * splash.cc: Run d2u.
2189 (SplashPage::OnInit): Set the font for the title.
2190 * splash.h: Run d2u.
2192 * threebar.cc: Run d2u.
2193 * threebar.h: Run d2u.
2195 * window.h: Run d2u.
2196 (Window::IsButtonChecked): New member function declaration.
2197 (Window::OnMessageCmd): New member function.
2198 (Window::SetDlgItemFont): New member function declaration.
2199 (Window::MAXFONTS, Window::Fonts, Window::FontCounter): New data
2201 * window.cc: Run d2u.
2202 (Window::IsButtonChecked): New member function definition.
2203 (Window::SetDlgItemFont): New member function definition.
2204 (Window::Window): Add initialization for FontCounter.
2205 (Window::~Window): Delete any fonts we created.
2207 * geturl.cc: Run d2u.
2208 (progress): Remove the "3" field width from the "%3d"
2209 percent-complete format indicator. Causes line to not start at
2210 beginning of text box, and does little to help with "jumping", since
2211 the "bytes downloaded so far" field is variable-width anyway. Change
2212 kb/s format field to "%03.1" to 0-pad the kb/s number in the event of
2213 painfully slow connections, or temporary slowdowns in faster
2214 connections should such more-instantaneous functionality become
2218 (NetPage::OnMessageCmd): New member function declaration.
2219 (NetPage::CheckIfEnableNext): New member function declaration.
2221 (NetPage::OnMessageCmd): New member function definition.
2222 (dialog_cmd): Remove, subsumed into NetPage::OnMessageCmd.
2223 (check_if_enable_next): Remove.
2224 (NetPage::CheckIfEnableNext): New member function, subsumes
2225 check_if_enable_next.
2226 (propsheet.h): Add include.
2227 (NetPage::Init): Add call to CheckIfEnableNext.
2228 (load_dialog): Remove call to check_if_enable_next.
2229 (NetPage::Create): Call single-template-ID-parameter overload of
2230 PropertyPage::Create instead of three-parameter one.
2232 * Makefile.in (OBJS): Remove other.o.
2233 * other.cc: Remove file.
2235 2002-01-01 Robert Collins <rbtcollins@hotmail.com>
2237 * README: Update TODO's.
2238 * choose.cc (set_existence): Delete non installed packages with no
2240 (fill_missing_category): Fix an off-by-one error.
2241 (default_trust): Ditto. Also delete any unused categories.
2242 (view::init_headers): Fix an off-by-one error.
2243 (set_view_mode): Ditto.
2244 (set_view_mode): Ditto.
2245 (create_listview): Ditto.
2246 (dialog_cmd): Ditto.
2248 * io_stream.cc: Indent.
2249 * io_stream.h: Ditto.
2250 * package_db.cc: Ditto.
2251 * package_meta.h: Const correctness for SDesc ();
2252 * proppage.cc: Run d2u and indent.
2253 * propsheet.cc: Run d2u and indent.
2254 * window.cc: Run d2u and indent.
2255 * window.h: Run d2u and indent.
2257 2001-12-28 Christopher Faylor <cgf@redhat.com>
2259 * Makefile.in (iniparse.o): Accommodate newer bisons.
2261 2001-12-23 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2263 * window.h (Window): New file, new class.
2264 * window.cc (Window): New file, new class.
2266 * threebar.h (ThreeBarProgressPage): New file, new class.
2267 * threebar.cc (ThreeBarProgressPage): New file, new class.
2269 * splash.h (SplashPage): New file, new class.
2270 * splash.cc (SplashPage): Replace file with implementation of new
2273 * source.h (SourcePage): New file, new class.
2274 * source.cc: Run indent.
2275 (SourcePage): Add class implementation to this file.
2276 (do_source): Remove, functionality subsumed by SourcePage::Create()
2277 and SourcePage::OnDeactivate().
2278 (dialog_proc): Remove, functionality subsumed by
2279 SourcePage::OnActivate().
2281 * site.h: Run indent.
2282 (SitePage): Add class declaration.
2283 * site.cc: Run indent.
2284 (SitePage): Add class implementation.
2285 (do_download_site_info_thread): New function.
2286 (context): New var. Context info for do_download_site_info_thread().
2287 (do_download_site_info): New function.
2288 (SitePage::Create, SitePage::OnInit SitePage::OnNext)
2289 (SitePage::OnBack): SitePage class implementation..
2290 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers, now handled
2291 by SitePage members.
2292 (dialog_proc): Remove, now handled by SitePage::OnInit and base class
2294 (do_site): Remove, now handled by do_download_site_info_thread() and
2295 SitePage::OnNext functionality.
2296 (get_site_list): Remove dismiss_url_status_dialog() call.
2298 * root.h (RootPage): New file, new class.
2299 * root.cc: Run indent.
2300 (dialog_cmd): Pass parent HWND parameter to note(), yesno().
2301 (dialog_proc): Remove.
2303 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL clauses from switch.
2304 (RootPage::OnInit): New member function. Move get_root_dir() logic to
2305 here from do_root().
2306 (RootPage::Create): New member function.
2307 (RootPage::OnNext): New member function. Move IDOK logic from
2308 dialog_cmd() to here.
2309 (RootPage::OnBack): New member function.
2311 * propsheet.h (PropSheet): New file, new class.
2312 * propsheet.cc (PropSheet): New file, new class.
2314 * proppage.h (PropertyPage): New file, new class.
2315 * proppage.cc (PropertyPage): New file, new class.
2317 * postinstall.cc (do_postinstall): Add owner parameter.
2319 * other.cc (do_other): Add owner parameter.
2321 * nio-file.cc (NetIO::Purl): Pass NULL parent param to note().
2322 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Pass NULL parent param to
2324 * nio-http.cc (retry_get): Pass NULL parent param to get_auth(),
2327 * nio-ie5.cc (NetIO::_url): Pass NULL parent param to note(),
2328 get_auth(), get_proxy_auth().
2330 * netio.h (get_auth, get_proxy_auth, get_ftp_auth): Add owner param.
2331 * netio.cc (auth_common, NetIO::get_auth, NetIO::get_proxy_auth,
2332 NetIO::get_ftp_auth)
2333 (auth_common): Add owner param. Pass owner param to DialogBox.
2334 (NetIO::get_auth, NetIO::get_proxy_auth, NetIO::get_ftp_auth): Pass
2335 owner param to auth_common().
2337 * net.h (NetPage): New file, new class.
2338 * net.cc: Run indent.
2339 (net.h, threebar.h): Add includes.
2340 (Progress): Add extern.
2341 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, now handled by
2342 property sheet logic. Saved temporarily for reference.
2343 (NetPage::Create, NetPage::OnInit, NetPage::OnDeactivate,
2344 NetPage::OnNext, NetPage::OnBack):
2345 New implementation of NetPage class members.
2347 (dialog_proc): Remove.
2349 * msg.h (fatal, note, yesno): Add owner param.
2350 * msg.c (fatal, note, yesno, mbox): Add owner param.
2351 (mbox): Remove MB_TOPMOST from MessageBox call. Unnecessary and wrong
2352 now that we have a parent.
2354 * main.cc: Run indent.
2355 (commctrl.h, proppage.h, propsheet.h, splash.h, source.h)
2356 (localdir.h, net.h, site.h, choose.h, threebar.h, desktop.h): Include
2358 (root_dialog_proc): extern into this file.
2359 (Progress): Progress dialog defined here, used in several other files.
2360 (WinMain): Instantiate and create Splash, Source, Root, LocalDir, Net,
2361 Site, Chooser, Desktop pages and MainWindow sheet. Call
2362 InitCommonControls() to make sure Windows is set up for our use of
2363 property sheets. Add pages to sheet.
2364 Call MainWindow.Create() to "DoModal". Remove main loop, that logic is
2365 now handled by the PropSheet class.
2366 (root.h): Add include.
2368 * log.cc (log_save): Pass NULL parent to fatal().
2369 (exit_setup): Pass NULL parent to note().
2371 * localdir.h (LocalDirPage): New file, new class.
2372 * localdir.cc: Run indent.
2373 (localdir.h): New include.
2374 (threebar.h): New include.
2375 (Progress): extern into this file.
2376 (LocalDirPage::Create, LocalDirPage::OnInit, LocalDirPage::OnActivate)
2377 (LocalDirPage::OnNext, LocalDirPage::OnBack): Implementation of
2379 (LocalDirPage::OnNext): Move log() call from do_local_dir() to here.
2380 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers.
2381 (do_local_dir): Remove.
2382 (dialog_proc): Remove.
2383 (cwd): Remove, not used by anything.
2385 * install.cc: Run indent.
2386 (process.h, threebar.h): New includes.
2387 (Progress): extern into this file.
2388 (ins_dialog, ins_action, ins_pkgname, ins_filename, ins_pprogress)
2389 (ins_iprogress, ins_diskfull, init_event): Remove, now handled by
2390 ThreeBarProgressPage.
2391 (dialog_cmd, dialog_proc, dialog): Removed, handled in
2392 ThreeBarProgressPage.
2393 (init_dialog): Remove all mention of the above ins_* handles. Now
2394 handled in ThreeBarProgressPage. Altered SetWindowText()s to call
2395 ThreeBarProgressPage instance Progress directly.
2396 (progress): Alter bar update logic to call ThreeBarProgressPage
2397 instance Progress directly.
2398 (uninstall_one): Alter SetWindowText()s to call ThreeBarProgressPage
2399 instance Progress directly.
2400 (install_one_source): Alter SetWindowText()s to call
2401 ThreeBarProgressPage
2402 instance Progress directly. Pass NULL parent to note().
2403 (do_install_thread): Rename from do_install(), added owner param.
2404 Alter SetWindowText()s to call ThreeBarProgressPage instance Progress
2406 Remove dismiss_url_status_dialog() call, no longer necessary. Remove
2407 ShowWindow(<hide>) call, also unnecessary now. Pass owner handle to
2409 (do_install_reflector): New function.
2410 (do_install): New function.
2412 * ini.cc (process.h, threebar.h): New includes.
2413 (Progress): externed into this file.
2414 (find_routine): Pass NULL parent to note().
2415 (do_local_ini): Add owner param.
2416 (do_remote_ini): Add owner param. Pass owner to get_url_to_membuf()
2417 and note(). Remove call to dismiss_url_status_dialog().
2418 (do_ini_thread): Rename from do_ini(). Add owner param. Pass owner to
2419 do_local_ini(), do_remote_ini(), yesno(), and note(). Set next_dialog
2420 to IDD_CHOOSER on exit.
2421 (do_ini_thread_reflector): New function.
2422 (context): New var. Context for do_ini_thread.
2423 (do_ini): New function.
2425 * geturl.h (get_url_to_membuf, get_url_to_string, get_url_to_file): Add
2427 * geturl.cc (gw_dialog, gw_url, gw_rate, gw_progress, gw_pprogress,
2429 (gw_progress_text, gw_pprogress_text, gw_iprogress_text, init_event):
2431 (threebar.h): New include.
2432 (Progress): externed into this file.
2433 (dialog_cmd, dialog_proc, dialog): Removed, handled by
2434 ThreeBarProgressPage now.
2435 (init_dialog): Remove "if (gw_dialog == 0)" clause. Alter
2437 and bar setting SendMessage()s to call ThreeBarProgressPage instance
2438 Progress directly. Remove "one bar only" logic, this is now handled
2439 explicitly in the ThreeBarProgressPage class.
2440 (progress): Altered bar and text update logic to call
2441 ThreeBarProgressPage instance Progress directly. Changed kbps
2442 calculation to floating point and now print out a single decimal
2444 (get_url_to_membuf): Add owner param. Pass it to init_dialog.
2445 (get_url_to_string): Add owner param. Pass it to get_url_to_membuf.
2446 (get_url_to_file): Add owner param. Pass it to init_dialog. Alter bar
2447 update logic to call ThreeBarProgressPage instance Progress directly.
2448 (dismiss_url_status_dialog): Remove.
2450 * fromcwd.cc (do_fromcwd): Add owner param. Initialize found_ini to
2453 * download.cc: Run indent.
2454 (process.h, threebar.h): New includes.
2455 (Progress): externed into this file.
2456 (download_one): Add owner param. Pass it to get_url_to_file().
2457 (do_download_thread): Renamed from do_download. Add owner param. When
2458 calculating total_download_bytes, take binpicked and srcpicked into
2459 account. Remove call to dismiss_url_status_dialog(), no longer needed.
2460 Pass owner handle to download_one() and yesno().
2461 (do_download_reflector, do_download): New functions.
2462 (context): New var. Context for do_download_thread().
2464 * dialog.h (D(x)): Add owner param.
2466 * desktop.h (DesktopSetupPage): New file, new class.
2467 * desktop.cc: Run indent.
2468 (desktop.h): Add include.
2469 (dialog_proc, do_desktop): Remove, now handled in
2470 DesktopSetupPage::OnInit().
2471 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, handled in
2472 DesktopSetupPage::OnFinish(), DesktopSetupPage::OnBack(), and PropSheet
2474 (DesktopSetupPage::Create, DesktopSetupPage::OnInit)
2475 (DesktopSetupPage::OnBack, DesktopSetupPage::OnFinish): Implementation
2476 of DesktopSetupPage.
2478 * cistring.h: New file, new class.
2479 * cistring.cc: New file, new class.
2481 * choose.h: Run indent.
2482 (Chooser): New class declaration.
2483 * choose.cc: Run indent.
2484 (do_choose): Add owner param. Pass it to DialogBox() and
2486 (Chooser): New class implementation.
2488 * res.rc (IDS_VERSION_INFO): New string.
2489 (IDD_SOURCE, IDD_LOCAL_DIR, IDD_ROOT, IDD_SITE, IDD_OTHER_URL)
2490 (IDD_DLSTATUS, IDD_INSTATUS, IDD_SPLASH, IDD_CHOOSE, IDD_DESKTOP):
2491 Change WS_POPUP to WS_CHILD. Numerous positioning/size changes
2493 (IDD_CHOOSE): Give template the WS_EX_CONTROLPARENT style to enable
2494 TAB control navigation etc. Give the controls a reasonable tab order.
2495 Grouped radio buttons. Something's still not right, can't tab away
2496 from back/next/cancel group reliably.
2497 * resource.h (IDD_CHOOSER): New dialog ID.
2499 * Makefile.in (OBJS): Add cistring.o, proppage.o, propsheet.o,
2500 threebar.o, and window.o.
2502 2001-12-21 Robert Collins <rbtcollins@hotmail.com>
2504 * choose.cc (listview_proc): Update the scrollbar when the headers are dragged.
2505 (pick_pkg_line::paint): Clip columns to prevent overlap.
2507 2001-12-20 Robert Collins <rbtcollins@hotmail.com>
2509 * Makefile.in: Add libcomctl32.a for setup.exe.
2510 * archive.h (archive): Prevent non-child direct creation of the class.
2511 * archive_tar.h (archive_tar): Prevent inaccurate synthetic copy and assignment.
2512 * choose.cc: Include commctrl for the choose header.
2513 (NEW_COL_SIZE_SLOP): Define without magic numbers.
2514 (pkgtrustp): Convert to function.
2515 (set_action): Remove.
2516 (add_required, fill_missing_category,default_trust): Use list syntax for
2519 (choose_caption): Remove.
2520 (topbucket::paint): New method.
2521 (topbucket::empty): Ditto.
2522 (topbucket::click): Ditto.
2523 (topbucket::~topbucket): Ditto.
2524 (paint): Remove i,ii and p as they are obsolete.
2525 Remove header drawing code.
2526 Use new chooser method to paint the chooser.
2527 Use new chooser itemcount method.
2528 (scroll_common): Rename to view::scroll.
2529 Scroll the header window separately.
2530 (list_vscroll, list_hscroll, list_click): Update for new chooser methods.
2531 (listview_proc): Look for header messages.
2532 (note_width): Accept stringless calls.
2533 (pick_line::set_line): Remove.
2534 (pick_line::paint): Remove.
2535 (pick_pkg_line::paint): Paint this one line, using the header column widths.
2536 (pick_category_line::paint): Paint this category, and anything in the bucket.
2537 (pick_line::click): Remove.
2538 (pick_pkg_line::click): Handle a click.
2539 (pick_category_line::click): Handle a click.
2540 (_view): Rename all to view.
2541 (view::view): Initialise the control contents.
2542 (view::set_headers): Work with the header control.
2543 (view::init_headers): Use list syntax for package list.
2544 Rearrange the width logic a little.
2545 (view::insert_pkg): Update to use the hierarchy.
2546 (view::insert_category): Ditto.
2547 (view::insert_at, view::insert_under): Remove.
2548 (view::clear_view): Update to use the hierarchy.
2549 (view::click): Update to use the hierarchy.
2550 (set_view_mode): Use list syntax for package list.
2551 Update for new chooser methods.
2552 (DoInsertItem): New helper function. (Needs a home somewhere).
2553 (create_listview): Remove choose control code and use the constructor instead.
2554 (dialog_cmd,scan2,do_choose): Use list syntax for package list.
2555 * choose.h: Include newly required headers list and package_meta.
2556 (_voew): Rename to view.
2557 (pick_line): Convert to an ABC.
2558 (pick_pkg_line): New class.
2559 (pick_catgory_line): New class.
2560 (topbucket): New class.
2561 (view::scroll): New method created from listview_scroll function.
2562 * desktop.cc (make_passwd_group): Use list syntax for package list.
2563 * download.cc (do_download): Use list syntax for package list.
2564 * fromcwd.cc (found_file): Use list syntax for package list.
2565 * iniparse.y (pacakges): Use list syntax for package list.
2566 * install.cc (uninstall_one): Use list syntax for package list.
2567 (do_install): Use list syntax for package list.
2568 * io_stream.h (io_stream): Prevent non-child direct creation of the class.
2569 Prevent inaccurate synthetic copy and assignment.
2570 * list.h: Include required header stdlib.
2571 Work on const correctness.
2572 * package_db.cc (packagedb::getpackagebyname): Remove.
2573 (packagedb::packagedb): Remove custom list code, and make db a local.
2574 (packagedb::getfirstpackage): Remove.
2575 (packagedb::getnextpackage): Remove.
2576 (packagedb::addpackage): Remove.
2577 (flush): Remove custom list code.
2578 (packagedb::registerpackage): Remove.
2579 (packagedb::packages): New static member.
2580 (packagedb::task): New static member.
2581 * package_db.h (PackageDBActions): New enum.
2582 (packagedb): Remove getfirstpackage, getnextpackage, getpackagebyname,
2583 addpackage, registerpackage, packages, packagecount, curr_package, db.
2585 * pacakge_meta.cc: Include package_db.h.
2586 (packagemeta::action_caption): New method.
2587 (packagemeta::set_action): New method.
2588 * package_meta.h (CategoryPackage): Initialise key.
2589 (packagemeta): Initialise key.
2590 Add set_action and action_caption methods.
2591 Prevent inaccurate synthetic copy and assignment.
2592 * resource.h (IDC_CHOOSE_LISTHEADER): New ID.
2593 * source.cc: Include package_db for db manipulation.
2594 (save_dialog): Set the db task.
2595 * win32.h: Tell the w32 include headers what IE version to expect/require.
2597 2001-12-06 Robert Collins <rbtcollins@hotmail.com>
2599 * README: Wishlist updates.
2601 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
2603 * package_db.cc (getnextpackage): Don't overrun the array.
2605 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
2607 * Makefile.in (OBJS): Add setup_version.o.
2608 (version.c): Rename to setup_version.
2609 * choose.cc (set_action): Prevent NULL pointer dereference.
2610 (package_sort): Remove.
2611 * fromcwd.cc (canonicalize_version): Moved to version.cc.
2612 (check_ini): New function for use with find to see if there is a cached setup.ini.
2613 (do_fromcwd): Check for a cached setup.ini from any mirror site.
2614 * ini.cc (find_routine): New function, for finding cached setup.ini's.
2615 (do_local_ini): New function, drives parsing of local ini's.
2616 (do_remote_ini): New function, drives parsing and caching of remote ini's.
2617 (do_ini): Move guts to do_remote_ini and do_local_ini.
2618 * list.h (removebyindex): New method.
2619 * other.cc (save_dialog): Use new site_list and all_site_list to add the
2620 new site to the site picklist.
2621 (dialog_cmd): Only save the dialog when exiting the dialog.
2622 * res.rc (IDD_SITE): Make IDC_URL_LIST a multiple-selection control.
2623 * site.cc (site_list_type): Move to site.h
2624 (site_list): New global, sites chosen by the user.
2625 (all_site_list): New global, all potential sites.
2626 (site_list_type::init): New method, parses a mirror.lst URL string into a
2627 site_list_type object.
2628 (site_list_type::site_list_type): New method.
2629 (check_if_enable_next): Examine the control, not a local variable.
2630 (load_dialog): Select all the user chosen sites by default.
2631 (save_dialog): Adjust for multiple selection semantics.
2632 (save_site_url): Save all user chosen sites.
2633 (dialog_cmd): Don't save the dialog when the listbox recieves a message -
2635 Remove obsolete other_url reference.
2636 (dialog_proc): Use all_site_list instead of site_list.
2637 (site_sort): Remove.
2638 (get_site_list): Remove malloc use - use list template instead.
2639 Move site_list_type initialisation to site_list_type::init().
2640 (get_initial_list_idx): Renamed to ...
2641 (get_saved_sites): this. Also read in multiple sites to the site_list.
2642 (do_site): Use all_site_list not site_list.
2643 Log all chosen sites.
2644 * site.h: New file, defines site related class, functions and variables.
2645 * state.h: Add comment about use of state.h
2646 (mirror_site): Remove.
2647 (other_url): Remove.
2648 (MIRROR_SITE): Remove.
2649 * version.cc: New file, for version-handling and related functions.
2651 2001-12-02 Robert Collins <rbtcollins@hotmail.com>
2653 * Makefile.in: Add filemanip.o to setup.
2654 * archive.cc (archive::extract_file): Use new io_stream method 'copy'.
2655 * archive_tar.h (archive_tar_file): Implement get_size virtual.
2656 (archive_tar): Ditto.
2657 * choose.cc (set_action): Use [] operator instead of getnth - its more readable.
2659 (_view::init_headers): Ditto.
2660 (_view::insert_pkg): Ditto.
2661 (set_view_mode): Ditto.
2664 (base): Moved to filemanip.cc.
2665 (find_tar_ext): Ditto.
2666 (parse_filename): Ditto.
2667 (_Info::_Info): Remove.
2668 * compress_bz.h (compress_bz): Implement get_size virtual.
2669 * compress_gz.h (compress_gz): Implement get_size virtual.
2670 * cygpackage.cc (cygpackage::destroy): Use array delete for char * objects.
2671 * download.cc (get_file_size): Move to filemanip.cc.
2672 (check_for_cached): Use [] operator instead of getnth - its more readable.
2673 (download_one): Ditto.
2674 * filemanip.cc: New file.
2675 * geturl.cc (init_dialog): Make url a pointer to const as it is not modified.
2676 (get_url_to_membuf): New function - contains get_url_to_string worker code.
2677 (get_url_to_string): Becomes a trivial wrapper to get_url_to_membuf.
2678 * geturl.h: Declare new prototype.
2679 * ini.cc (do_ini): Use get_url_to_membuf and pass ini_init an io_stream.
2680 Tidy up the error code a little.
2681 * ini.h: Remove __cplusplus protection for ini_init.
2683 * inilex.l: Remove old globals.
2684 (ini_init): Use an io_stream for getting the characters.
2685 (ini_getchar): Ditto.
2686 * iniparse.y: Declare yylex as a C++ function.
2687 (add_correct_version): Use [] operator instead of getnth - its more readable.
2688 * io_stream.cc (io_stream::move_copy): Use the copy method.
2689 (io_stream::copy): New method to simply copy from one stream to another.
2690 * io_stream.h (io_stream): New static method copy, and virtual method get_size.
2691 * io_stream_cygfile.cc (io_stream_cygfile::get_size): Implement this.
2692 * io_stream_cygfile.h (io_stream_cygfile::get_size): Declare this.
2693 * io_stream_file.cc (io_stream_file::get_size): Implement this.
2694 * io_stream_file.h (io_stream_file::get_size): Declare this.
2695 * io_stream_memory.h: Include errno as it's neded to parse the header.
2696 (io_stream_memory::get_size): Implement this.
2697 (io_stream_memory::st_size): Delete this.
2698 * list.h: Change getnth into the [] operator.
2699 * netio.cc (NetIO::NetIO): Change prototype to reflect Purl not being modified.
2700 (NetIO::set_url): Ditto.
2701 (NetIO::open): Ditto.
2702 * netio.h: As for netio.cc.
2703 * nio-file.cc (NetIO_File::NetIO_File): Change prototype to reflect Purl not
2705 * nio-file.h: Ditto.
2706 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
2707 * nio-ftp.h (NetIO_FTP::NetIO_FTP): Ditto.
2708 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Ditto.
2709 * nio-http.h (NetIO_HTTP::NetIO_HTTP): Ditto.
2710 * nio-i5.cc (NetIO_IE5::NetIO_IE5): Ditto.
2711 * nio-i5.h (NetIO_IE5::NetIO_IE5): Ditto.
2712 * package_meta.cc (packagemeta::~packagemeta): Bugfix: use array delete.
2713 * package_source.cc (packagesource::set_canonical): Ditto.
2714 (packagesource::set_cached): Ditto.
2715 * package_source.h (site::~site): Ditto.
2716 * site.cc: Change site_list_type to a class, and search and replace sort_key to
2719 2001-12-01 Robert Collins <rbtcollins@hotmail.com>
2721 * package_source.cc (packagesource::set_canonical): Filename was out by one.
2723 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
2725 * Makefile.in (OBJS): Remove category_list - it's not needed.
2726 * README: More wishlist updates.
2727 * category.cc (Category::Category): Initialise new members.
2728 (Categorycmp): New function.
2729 * category.h (Category): New member key for template use.
2730 * category_list.cc: Remove.
2731 * category_list.h: Remove.
2732 (Categorycmp): New function prototype.
2733 * choose.cc: Remove category_list - not needed.
2734 (set_action): Only show the 'source' option when the source is actually
2736 (add_required): Fix recursion limiter to 5.
2737 (fill_missing_category): Use list access.
2738 (default_trust): Ditto.
2739 (pick_line::paint): Ditto.
2740 (_view::init_headers): Ditto.
2741 (_view::insert_pkg): Ditto.
2742 (_view::insert_category): Ditto.
2743 (_view::click): Ditto.
2744 (set_view_mode): Ditto.
2746 * cygpackage.h: Remove category_list - not needed.
2747 * geturl.cc (get_url_to_string): Fix null byte insertion.
2748 * inipatse.y: Remove category_list - not needed.
2749 (categories): Use list access.
2750 * package_db.cc: Ditto.
2751 * package_db.h: Remove category_list - not needed.
2752 (packagedb): Use the list template for categories.
2753 * package_meta.cc (add_category): Ditto.
2754 * package_meta.h (CategoryPackage): Link to the category as well.
2755 (packagemeta): Use a list of CategoryPackages instead of Categories
2756 for more memory efficient cross-referencing.
2758 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
2760 * package_db.cc (packagedb::flush): Write a canonical version for all packages
2761 irrespective of the media they were installed from.
2763 2001-11-29 Robert Collins <rbtcollins@hotmail.com>
2765 * Makefile.in (OBJS): Add package_source and rfc1738.
2766 * README: Wishlist update.
2767 * category_list.cc (register_category): Use references.
2768 * category_list.h (CategoryList): Ditto.
2769 * choose.cc (isinstalled): Remove.
2770 (pkgtrustp): New macro.
2771 (set_action): Use packagemeta.
2772 (add_required): Ditto.
2773 (choose_caption): Example package to choose caption, rather than state flags.
2774 (check_existence): Remove.
2775 (set_existence): Remove old code.
2776 (fill_missing_category): Use packagemeta.
2777 (keep_or_skip): Remove.
2778 (default_trust): Use packagemeta and set trust values directly.
2779 (pick_line::set_line): Use packagemeta.
2780 (_view::insert_pkg): Ditto.
2781 (_view::insert_category): Ditto.
2782 (_view::click): Ditto.
2783 (set_view_mode): Ditto. Also remove "exclude" code.
2784 (create_listview): Use packagemeta.
2785 (dialog_cmd): Ditto.
2786 (getpkgbyname): Remove
2787 (scan2): Use packagemeta. Temporarily comment out the holefinding code.
2788 (read_installed_db): Remove.
2789 (package_sort): Use packagemeta.
2790 (do_choose): Use packagemeta. Don't sort the packages - the db does that.
2791 * choose.h: Use packagemeta.
2792 * cygpackage.cc (cygpackage::cygpackage): Initialise all variables.
2793 (cygpackage::cygpackage): Ditto.
2794 (cygpackage::set_canonical_version): Copy the passed string.
2795 (cygpackage::~cygpackage): Move cleanup code to destroy().
2796 (cygpackage::destroy): New function.
2797 (cygpackage::getfirstfile): Use a separate buffer.
2798 (cygpackage::getnextfile): Ditto.
2799 (cygpackage::Canonical_version): New function.
2800 (cygpackage::set_sdesc): Ditto.
2801 (cygpackage::set_ldesc): Ditto.
2802 * cygpackage.h (cygpackage::Canonical_version): New method.
2803 (cygpackage::set_sdesc): New method.
2804 (cygpackage::set_ldesc): New method.
2805 (cygpackage::SDesc): New method.
2806 (cygpackage::LDesc): New method.
2807 (cygpackage::set_canonical_version): New method.
2808 * desktop.cc: Include packagedb headers.
2809 (make_password_group): Use packagemeta.
2810 * download.cc: Include packagedb headers.
2811 (check_for_cached): New method to find any cached file and fill out the database
2813 (download_one): Take a packagesource, support multiple mirrors.
2814 (do_download): Use packagemeta.
2815 * from cwd.cc: Include packagedb headers.
2816 (found_file): Use packagemeta.
2817 * ini.cc (do_ini): Beginning of multiple-mirror support.
2818 * ini.h (CategoryPackage): Remove.
2819 (Dependency): Remove.
2821 (new_package,getpkgbyname,getpackagecategorybyname,add_category): Remove.
2822 * inilex.l: Support multiple mirrors.
2823 * iniparse.y: Include packagedb headers.
2824 (parser): Use packagemeta.
2825 (new_package): Remove.
2826 (add_correct_version): New function.
2827 (new_requirement): Remove.
2828 (add_category): Remove.
2829 * install.cc (uninstall_one): Use packagemeta.
2830 (install_one_source): New function.
2831 (install_one): Use packagemeta.
2832 (do_install): Use packagemeta.
2833 * io_stream.cc (io_stream::move): Bugfix on move/copy case.
2834 * io_stream_cygfile.cc (io-stream_cygfile::set_mtime): Do not reopen the file
2835 after setting the mtime, it makes no sense, and results in 0 length files.
2836 * io_stream_file.cc (io-stream_file::set_mtime): Ditto.
2837 * list.h: New file, template class for a form of list.
2838 * package_db.cc (packagedb::registerpackage): New function.
2839 * package_db.h (packagedb::npackages ()): New method.
2840 * package_meta.cc (packagemeta::add_version): Use list template.
2841 (packagemeta::set_installed): Ditto.
2842 (packagemeta::add_category): New method.
2843 * package_meta.h: Include necessary headers to parse the class.
2844 (CategoryPackage): New class.
2845 (packagemeta): Initialise all members.
2846 (packagemeta::SDesc): New method.
2847 (packagemeta::Categories): New method.
2848 (packagemeta::add_category): Ditto.
2849 (packagemeta::versions): Change to be a list instance.
2850 * package_source.cc (packagesource::set_canonical): New method.
2851 (packagesource::set_cached): New method.
2852 * package_source.h: Include necessary headers to parse the class.
2854 (packagesource::packagesource): Initialize all members.
2855 (packagesource): Make this class non-abstract.
2856 * package_version.cc (packageversion::packageversion): New method.
2857 * package_version.h (Dependency): New class.
2858 (packageversion::Canonical_vesion): New method.
2859 (packageversion::SDesc): New method.
2860 (packageversion::LDesc): New method.
2861 (packageversion::new_requirement): Ditto.
2862 (packageversion::srcpicked, binpicked): What to install.
2863 (packageversion::src, bin): Installation source data.
2864 * rfc1738.cc: New file. Escapes special characters in URL's.
2867 2001-11-26 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2869 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Stop header parsing when
2870 SimpleSocket::gets() returns a zero-length string, so that we
2871 don't end up eating the entire stream thinking it's all header info.
2873 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
2875 * install.cc (badrename): Remove.
2876 (do_install): Use packagedb flush method to write /etc/setup/installed.db.
2877 * io_stream.cc (io_stream::move_copy): New method.
2878 (io_stream::move): New method.
2879 * io_stream.h (io_stream): New methods move and move_copy.
2880 * io_stream_cygfile.cc (io_stream_cygfile::move): New method.
2881 * io_stream_cygfile.h (io_stream_cygfile): New method move.
2882 * io_stream_file.cc (io_stream_file::move): New method.
2883 * io_stream_file.h (io_stream_file): New method move.
2884 * package_db.cc (packagedb::flush): New method.
2885 * package_db.h (packagedb): New method flush.
2887 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
2889 * Makefile.in (OBJS): Add package_version.
2890 * ategory.cc (Category::Category): Update constructors.
2891 * category_list.cc (CategoryList::register_category): Insert correctly.
2892 * choose.cc: Include package_version.h, not package.h.
2893 * cygpackage.cc: Ditto.
2894 (cygpackage::uninstall): New method.
2895 * cygpackage.h (cygpackage): Rename genericpackage to packageversion.
2896 New method uninstall.
2897 * hash.cc (add, has, enumerate): Change prototype to be accurate.
2898 * hash.h (hash): Change prototypes to be accurate.
2899 * ini.h (_Info): New parameterless constructor.
2900 (CategoryPackage): New constructor.
2902 * install.cc: Don't include unneeded headers.
2903 Include package database headers.
2904 (hash::add_subdirs): Remove.
2905 (uninstall_one): Use packagemeta->uninstall to perform the uninstallation.
2906 Don't uninstall source packages.
2907 (do_install): Just can uninstall_one once as we ignore source packages now.
2908 Don't copy the installed.old database accross, instead iterate through the
2909 packagedb packages list and write the isntalled packages out.
2910 * package_db.cc: Include package_version.h, not package.h.
2911 (packagedb::packagedb): Never let db be undefined.
2912 Record the installation filename, so we can reconstruct installed.db.
2913 (packagedb::addpackage): Insert packages in alpha sorted order.
2914 (packagedb::categories): Initialise correctly.
2915 * package_meta.cc: Include win32 and mount headers as a workaround to
2916 current io_stream limitations. Include a TODO about that.
2917 (standard_dirs): New, from install.cc.
2918 (hash::add_subdirs): New, from install.cc.
2919 (packagemeta::set_installed): Rename genericpackage to packageversion.
2920 (packagemeta::uninstall): New method.
2921 * package_meta.h: Rename genericpackage to packageversion.
2922 (packagemeta): Update constructor.
2923 (add_version, set_installed): Rename genericpackage to packageversion.
2924 (uninstall): New method.
2925 (installed_from): New member.
2926 * package_source.cc: New file.
2927 * package_source.h: New file.
2928 * package_version.cc: New file.
2929 * package_version.h: New file.
2930 * package.cc: Removed.
2931 * package.h: Removed.
2933 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
2935 * Makefile.in (OBJS): Add category.o and category_list.o.
2936 * category.h: New file.
2937 * category.cc: New file.
2938 * category_list.h: New file.
2939 * category_list.cc: New file.
2940 * choose.cc: Include category headers.
2941 (fill_missing_category): Use package_db to access global categories.
2942 (_view::insert_pkg): Ditto.
2943 (_view::insert_category): Ditto.
2944 (set_view_mode): Ditto.
2945 (getcategorybyname): Remove.
2946 * cygpackage.h: Include category_list.h to parse this correctly.
2947 (cygpackage): New virtual &Categories.
2948 * ini.h (_CategoryPackage): More C to C++ conversion.
2950 (getcategorybyname): Remove.
2951 (register_category): Remove.
2952 * iniparse.y: Include package db and category headers.
2953 (categories): Use package_db to access global categories.
2955 (ncategories): Remove.
2956 (register_category): Remove.
2957 * package.h: New virtual &Categories.
2958 * package_db.cc (packagedb::packagedb): Don't read the installed db twice.
2959 (packagedb::categories): Declare.
2960 * package_db.h (packagedb): New member categories for global categories list.
2962 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
2964 * choose.h: Don't include ini.h
2965 * ini.h: Allow pure c++ in the header file.
2967 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
2969 * install.cc (do_install): Write a version 2 installed.db file.
2970 * package_db.cc (packagedb::packagedb): Read version 1 and 2 installed.db files.
2972 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
2974 * Makefile.in (OBJS): Add package abstraction objects.
2975 * choose.cc: Include package abstraction headers.
2976 (read_installed_db): Use packagedb class and ignore installed sources.
2977 * cygpackage.cc: New file.
2978 * cygpackage.h: New file.
2979 * filemanip.h (get_file_size): Use unixy types.
2980 * package.h: New file.
2981 * package.cc: New file.
2982 * package_db.cc: New file.
2983 * package_db.h: New file.
2984 * package_meta.cc: New file.
2985 * package_meta.h: New file.
2987 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
2989 * REAME: Updates to wishlist.
2991 2001-11-16 Robert Collins <rbtcollins@hotmail.com>
2993 * README: Updated and added my list of wishlist and todo items.
2995 2001-11-14 Robert Collins <rbtcollins@hotmail.com>
2997 * Makefile.in (OBJS): Include io_stream_memory in setup.exe.
2998 * archive_tar.cc (archive_tar::write): New prototype.
2999 (archive_tar::seek): New method.
3000 * archive.h (archive_tar_file): Update write() and add seek().
3001 (archive_tar): Ditto.
3002 * archive_tar_file.cc (archive_tar_file::write): New prototype.
3003 (archive_tar_file::seek): New method.
3004 * compress_bz.cc (compress_bz::write): New prototype.
3005 (compress_bz::seek): New function.
3006 * compress_bz.h (compress_bz): Update write() and add seek().
3007 * compress_gz.cc (compress_gz::write): New prototype.
3008 (compress_gz::seek): New function.
3009 * compress_gz.h (compress_gz): Update write() and add seek().
3010 * geturl.cc: Include io_stream headers.
3012 (get_url_to_string): Use a io_stream_memory buffer instead of GUBuf.
3013 * io_stream.h (io_stream_seek_t): New enum.
3014 (io_stream): Update write() and add seek().
3015 * io_stream_cygfile.cc (io_stream_cygfile::write): New prototype.
3016 (io_stream_cygfile::seek): New function.
3017 * io_stream_cygfile.h (io_stream_cygfile): Update write() and add seek().
3018 * io_stream_file.cc (io_stream_file::write): New prototype.
3019 (io_stream_file::seek): New function.
3020 * io_stream_file.h (io_stream_file): Update write() and add seek().
3022 2001-11-13 Brian Keener <bkeener@thesoftwaresource.com>
3024 * localdir.cc: Add headers unistd.h and port.h.
3025 (save_local_dir): Expand search logic to include local directory for
3026 location of file last-cache.
3027 (dialog_cmd): Skip IDD_ROOT when downloading and use Back button.
3028 (do_local_dir): Expand search logic to include local directory for file
3030 * res.rc (IDD_CHOOSE_DIALOG): Add hotkey to View button.
3031 * Source.cc (dialog_cmd): Skip IDD_ROOT if select Download from
3033 (do_source): Default to Install from Internet on first entry or
3034 previous selection if backing up from IDD_ROOT or IDD_LOCAL_DIR.
3036 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
3038 * choose.cc (find_tar_ext): Only match at the end of the string.
3039 (getpkgbyname): Prevent NULL pointer dereference.
3041 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
3043 * Makefile.in (CFLAGS): Add warnings and -Werr.
3044 (WARNONLY_FLAGS): For sources that produce (harmless) errors no matter what.
3045 (OBJS): Add io_stream class' objects.
3046 (autoload.o): Use WARNONLY_FLAGS.
3048 (iniparse.o): Ditto.
3049 * archive.cc: New file.
3050 * archive.h: New file.
3051 * archive_tar.cc: New file.
3052 * archive_tar.h: New file.
3053 * archive_tar_file.cc: New file.
3054 * autoload.c: Fix compiler warnings (unused, deprecated conversion).
3055 * choose.cc: Use io_stream.h, not mount.h.
3057 (find_tar_ext): Rewritten to use strstr, and to accept .tar as an extension.
3058 (read_installed_db): Use io_streams.
3059 * choose.h: Run indent.
3060 * compress.cc: New file.
3061 * compress.h: New file.
3062 * compress_bz.cc: New file.
3063 * compress_bz.h: New file.
3064 * compress_gz.cc: New file.
3065 * compress_gz.h: New file.
3066 * concat.cc: Run indent.
3067 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3068 * concat.h: Run indent.
3069 * desktop.cc: Run indent.
3070 Include mklink2.h rather than redefining by hand.
3071 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3072 (etc_profile): Fix compiler warning (deprecated conversion).
3073 (make_link): Fix compiler warning (deprecated conversion).
3074 Tidy up use of args variable - consolidate into argbuf.
3075 (start_menu): Fix compiler warning (deprecated conversion).
3076 (desktop_icon): Fix compiler warning (deprecated conversion).
3077 (make_etc_profile): Fix compiler warning (deprecated conversion).
3078 (uexists): Fix compiler warning (deprecated conversion).
3079 (check_desktop): Fix compiler warning (deprecated conversion).
3080 (check_startmenu): Fix compiler warning (deprecated conversion).
3081 * dialog.cc: Run indent.
3082 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3083 (fatal): Fix compiler warning (deprecated conversion).
3084 * dialog.h: Run indent.
3085 * diskfull.cc: Run indent.
3086 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3087 * download.cc: Run indent.
3088 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3089 (download_one): Fix compiler warning (signed vs unsigned comparison).
3090 * filemanip.h: Run indent.
3091 * find.cc: Run indent.
3092 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3093 (find): Fix compiler warning (deprecated conversion).
3094 * find.h: Run indent.
3095 * fromcwd.cc: Run indent.
3096 * geturl.cc: Run indent.
3097 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3098 (dialog_cmd): Return a value.
3099 (dialog_proc): Remove unused variables.
3101 (get_url_to_file): Fix compiler warning (deprecated conversion).
3102 * geturl.h: Run indent.
3103 * hash.cc: Run indent.
3104 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3105 * hash.h: Run indent.
3106 * ini.cc: Run indent.
3108 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3109 (do_ini): Use io_streams for local io.
3110 * ini.h: Run indent.
3111 * inilex.l (ignore_line): Fix compiler warning (is not a prototype).
3112 Fix compiler warning (brackets for truth assignment).
3113 * install.cc: Run indent.
3114 Fix compiler warning (/* in comment).
3116 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3117 (dialog_cmd): Return a value.
3118 (dialog_proc): Return a value.
3119 (start_tics): Deleted - was unused.
3120 (badrename): Fix compiler warnings (unused, deprecated conversion).
3121 (standard_dirs): Fix compiler warning (deprecated conversion).
3123 (uninstall_one): Convert to io_streams.
3124 (install_one): Convert to io_streams.
3125 (do_install): Convert to io_streans.
3126 Fix compiler warning (deprecated conversion).
3127 * io_stream.cc: New file.
3128 * io_stream.h: New file.
3129 * io_stream_cygfile.cc: New file.
3130 * io_stream_cygfile.h: New file.
3131 * io_stream_file.cc: New file.
3132 * io_stream_file.h: New file.
3133 * localdir.cc: Run indent.
3135 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3136 (get_root_dir_now): Remove.
3137 (save_local_dir): Convert to io_streams.
3138 (dialog_cmd): Return a value.
3139 (do_local_dir): Convert to io_streams.
3140 (log.cc): Run indent.
3141 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3142 (log): Fix compiler warning (deprecated conversion).
3143 (log_save): Fix compiler warning (deprecated conversion).
3144 * log.h: Run indent.
3145 (log): Fix compiler warning (deprecated conversion).
3146 (log_save): Fix compiler warning (deprecated conversion).
3147 * main.cc: Run indent.
3148 Don't include "netio.h".
3149 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3150 (netio_test): Remove.
3151 (sid_auth): Fix compiler warning (partially bracketed initialiser).
3152 (WinMain): Return a value.
3153 * mkdir.cc: Run indent.
3154 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3155 * mklink2.c: Run indent.
3156 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3157 (mkcygsymlink): New function.
3158 * mklink2.h: New file.
3159 * mount.cc: Run indent.
3160 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3161 (create_mount): Remove unused variables.
3162 (cygpath): Fix compiler warning (signed vs unsigned comparison).
3163 * mount.h: Run indent.
3164 * msg.cc: Run indent.
3165 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3166 (msg): Fix compiler warning (deprecated conversion).
3167 (mbox): Fix compiler warning (deprecated conversion).
3168 * msg.h: Run indent.
3169 (msg): Fix compiler warning (deprecated conversion).
3170 * net.cc: Run indent.
3171 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3172 (dialog_cmd): Return a value.
3173 * netio.cc: Run indent.
3174 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3175 (auth_cmd): Return a value.
3176 * netio.h: Run indent.
3177 * nio-file.cc: Run indent.
3178 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3179 (NetIO_File::NetIO_File): Fix compiler warning (deprecated conversion).
3180 * nio-file.h: Run indent.
3181 * nio-ftp.cc: Run indent.
3182 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3183 * nio-ftp.h: Run indent.
3184 * nio-http.cc: Run indent.
3185 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3186 * nio-http.h: Run indent.
3187 * nio-ie5.cc: Run indent.
3188 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3189 * nio-ie5.h: Run indent.
3190 * other.cc: Run indent.
3191 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3192 (dialog_cmd): Return a value.
3193 * port.h: Run indent.
3194 * postinstall.cc: Run indent.
3195 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3196 (cmd): Fix compiler warning (deprecated conversion).
3197 (eun): Fix compiler warning (deprecated conversion).
3198 * root.cc: Run indent.
3199 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3200 * simpsock.cc: Run indent.
3201 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3202 * simpsock.h: Run indent.
3203 * site.cc: Run indent.
3205 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3206 (get_root_dir_now): Remove.
3207 (save_site_url): Convert to io_streams.
3208 (dialog_cmd): Return 0.
3209 (get_initial_list_idx): Convert to io_streans.
3210 * source.cc: Run indent.
3211 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3212 (check_if_enable_next): Remove.
3213 (load_dialog): Remove unused variables.
3214 (save_dialog): Ditto.
3215 (dialog_cmd): Return a value.
3216 * splash.cc: Return a value.
3217 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3218 (dialog_cmd): Return a value.
3219 * state.cc: Run indent.
3220 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3221 * state.h: Run indent.
3225 2001-11-12 Christopher Faylor <cgf@redhat.com>
3227 * desktop.cc (start_menu): Change start menu name to "Cygwin".
3228 (check_startmenu): Ditto.
3230 2001-11-11 Christopher Faylor <cgf@redhat.com>
3232 * choose.cc (parse_filename): Finish reorganization by correctly
3233 decrementing p in memmove.
3235 2001-11-11 Christopher Faylor <cgf@redhat.com>
3237 * choose.cc (parse_filename): Reorganize code to work around gcc
3238 optimization problem.
3240 2001-11-09 Gareth Pearce <tilps@hotmail.com>
3242 * choose.cc (set_action): Allow skip as an option for installed
3243 packages that have version number not listed in setup.ini.
3245 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
3247 * choose.cc (set_cation): Backout last change.
3248 (choose_caption): Ditto.
3250 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
3252 * ini.h (actions): Remove - transferred to choose.h.
3254 * choose.h: Protect class's from "C" compilers.
3255 (actions): New enum, from ini.h. This may not be the 'right' place
3256 but that place doesn't exist yet.
3257 (_views): New enum, from ini.h.
3258 * choose.cc (set_action): Handle installed packages with a version not in
3260 (choose_caption): Ditto.
3261 * iniparse.y: Rearrange header order to handle new ini.h.
3263 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
3265 * ini.h (_Info): Fix compiler warnings (signed vs unsigned comparison).
3266 (registry_category): Fix compiler warning (deprecated conversion).
3267 * iniparse.y (registry_category): Ditto.
3268 * choose.cc (cvsid): Fix compiler warnings (unused, deprecated conversion).
3269 (add_requried): Remove unused variable.
3270 (choose_caption): Handle all enumeration values via a default.
3271 (paint): Fix compiler warnings (unused, deprecated conversion).
3272 (scroll_common): Fix compiler warnings (unused, signed vs unsigned comparison).
3273 (list_clicK): Fix compiler warnings (signed vs unsigned comparison).
3274 (note_width): Fix compiler warnings (deprecated conversion).
3275 (keep_or_skip): Fix compiler warnings (unused).
3276 (_view::mode_caption): Fix compiler warnings (deprecated conversion).
3277 (set_view_mode): Fix compiler warnings (unused).
3278 (create_listview): Fix compiler warnings (unused, incorrect format, reaches
3280 (dialog_proc): Fix compiler warnings (unused).
3281 (read_installed_db): Fix compiler warnings (unused, deprecated conversion).
3282 * choose.h (_header): Fix compiler warnings (deprecated conversion).
3285 2001-11-08 Pavel Tsekov <ptsekov@syntrex.com>
3287 * simpsock.h (SimpleSocket::invalidate): Declare new method.
3288 * simpsock.cc (SimpleSocket::invalidate): Implement new method.
3289 (SimpleSocket::SimpleSocket): Initialize buf to zero. Do not allocate
3290 memory for buf in the constructor.
3291 (SimpleSocket::~SimpleSocket): Use SimpleSocket::invalidate().
3292 (SimpleSocket::printf): Use SimpleSocket::write() instead of send().
3293 (SimpleSocket::write): Check object consistency - return -1 on error.
3294 invalidate() the object on socket write error.
3295 (SimpleSocket::fill): Check object consistency - return -1 on error.
3296 invalidate() the object if socket read error is encountered and there
3297 is no more data available in the internal read buffer.
3298 Allocate memory for the internal read buffer.
3299 (SimpleSocket::gets): Return zero (NULL pointer) if error is encountered
3300 during fill() and no more data is available in the internal read buffer.
3301 (SimpleSocket::read): Check object consistency - return -1 on error.
3302 invalidate() the object if socket read error is encountered.
3303 * nio-ftp.cc (NetIO_FTP:NetIO_FTP): Allow 125 as valid response code to
3304 the RETR command (fix for MS IIS ftp server 5 - possibly others too).
3305 (NetIO_FTP::ok): Check if the SimpleSocket object is ok().
3306 (NetIO_FTP::read): Use NetIO_FTP::ok().
3307 * nio-http.cc: Check for valid return value of SimpleSocket::gets().
3308 (NetIO_HTTP::ok): Check if the SimpleSocket object is ok().
3310 2001-11-09 Robert Collins <rbtcollins@hotmail.com>
3312 * simpsock.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3313 (SimpleSocket::SimpleSocket): Avoid compiler warnings (deprecated conversion).
3314 (SimpleSocket::printf): Ditto.
3315 (SimpleSocket::write): Ditto.
3316 * simpsock.h (SimpleSocket): Avoid compiler warnings for constructor,
3318 * nio-ftp.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3319 (NetIO_FTP::NetIO_FTP): Remove unused variable done.
3320 * nio-http.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3322 2001-11-07 Charles Wilson <cwilson@ece.gatech.edu>
3324 * geturl.cc (get_url_to_string): clean up memory leak
3325 (get_url_to_file): ditto
3327 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
3329 * localdir.cc (dialog_cmd): Go back to IDD_ROOT in every case.
3330 * source.cc (dialog_cmd): Go forward to IDD_ROOT in every case.
3332 2001-11-06 Pavel Tsekov <ptsekov@syntrex.com>
3334 * fromcwd.cc (found_file): Free() memory containing the version and
3335 filepath information for a given package, before replacing the pointers which
3336 reference this memory.
3338 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
3340 * fromcwd: Fix compiler warnings for cvsid.
3341 (canonicalize_version): Fix compilter warnings.
3342 (do_fromcwd): Ditto.
3343 * version.h: Fix compiler warnings for canonicalize_version.
3345 2001-11-03 Robert Collins <rbtcollins@hotmail.com>
3347 * res.rc (IDD_CHOOSE): Move the view caption to the right hand side.
3349 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3351 * res.rc (IDD_CHOOSE): Tweak for use on a 640x480 screen.
3353 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3355 * choose.cc (set_action): Correctly allow skip for any uninstalled package.
3357 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3359 * choose.cc (default_trust): Change the "Required" forced install category to
3362 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3364 * choose.cc: Ran indent.
3365 (set_action): When the requested trust level is missing and the level was not
3366 user requested, set the action to ACTION_SAME_CURR.
3368 2001-11-01 Christopher Faylor <cgf@redhat.com>
3370 * Makefile.in (mingw_getopt.o): Fix typo in non-verbose compilation.
3372 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3374 * choose.cc (_view::init_headers): Resync with the paint logic.
3376 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3378 * choose.cc (add_required): Allow SKIP and SRC_ONLY for currently installed
3381 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3383 * choose.cc (default_trust): Autoset currently installed packages per the user's
3384 selection of prev/curr/exp.
3386 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3388 * splash.cc (dialog_proc): Return TRUE as specified in the WIN32 API.
3390 2001-11-02 Pavel Tsekov <ptsekov@syntrex.com>
3392 * geturl.cc (is_showing): Remove.
3393 (is_local_install): New static variable. Controls whether the
3394 progress dialog and the supporting thread will be created.
3395 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the WIN32 API.
3396 (init_dialog): Remove usage of SetForegroundWindow and is_showing.
3397 This prevents the progress dialog to gain control over the
3398 application and fixes the "setup.exe going to background" problem.
3399 (progress): Use is_local_install.
3400 (get_url_to_string): Set is_local_install.
3401 (dismiss_url_status_dialog): Use is_local_install.
3402 * install.cc (dialog_proc): Return TRUE as specified in WIN32 API.
3403 (init_dialog): Remove usage of SetForegroundWindow.
3404 This prevents the progress dialog to gain control over the
3405 application and fixes the "setup.exe going to background" problem.
3407 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3409 * choose.cc (list_click): Change r to row for clarity.
3410 When we shrink the list below 1 page, scroll to the top of the list.
3411 (_view::click): Return the actual change for contractions.
3412 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the Win32 API.
3414 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3416 * choose.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
3417 * localdir.cc: Ran indent.
3418 (get_root_dir_now): New function.
3419 (save_local_dir): New function.
3420 (dialog_cmd): Use it and swap cygwin root selection and local dir selection order.
3421 (do_local_dir): If there is a saved local dir, read it in.
3422 * net.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
3423 * root.cc (dialog_cmd): Ditto.
3424 * source.cc (dialog_cmd): Ditto.
3426 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
3428 * choose.cc(list_vscroll): Return 0 as required by win32.
3429 (list_hscroll): Ditto.
3430 (list_click): Ditto.
3432 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
3436 * main.cc(WinMain): Use __argv to retrieve command line parameters.
3437 * Makefile,in: Remove argv.o.
3439 2001-11-01 Matt Hargett <matt@use.net>
3441 * geturl.cc (progress): Change int to unsigned int to eliminate
3443 * (get_url_to_string): Check for NULL pointer.
3444 * mount.cc (find2): Use free instead of delete for malloc'd
3446 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Fix memory leak.
3448 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
3450 * choose.cc(_view::insert_under): Handle linen > nlines and lines[linen] with neither
3451 a package nor a category. The lines[linen] bug was reported by Matt (matt@usa.net).
3452 (read_installed_db): Bugfix for testing whether a package has a source tarball.
3453 Reported by Matt (matt@usa.net).
3454 * geturl.cc(dialog): Rename gw_dialog to local_gw_dialog to avoid programmer
3455 confusion and lint errors. Reported by Matt (matt@usa.net).
3457 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
3459 * argv.cc: New file, converts arguments for -mwindows programs. (Simplified derivation
3462 * Makefile,in: Add argv.o and mingw_getopt.o to setup.exe object list.
3463 Add mingw_getopt.o build rule.
3464 * main.cc(WinMain): Initialise argv and argc for use by getopt.
3466 2001-10-27 Christopher Faylor <cgf@redhat.com>
3468 * res.rc: Rearrange info on top line slightly.
3470 2001-10-27 Christopher Faylor <cgf@redhat.com>
3472 * desktop.cc (make_passwd_group): Move file creation earlier in the
3473 process to ensure that passwd-grp.bat reflects desired operation.
3475 2001-27-10 Trevor Forbes <t4bs@hotmail.com>
3477 * postinstall.cc (each): Remove "*.done" file else rename will fail.
3479 2001-10-16 Christopher Faylor <cgf@redhat.com>
3481 * res.rc: Oops. Take 640x480 screen size into account.
3483 2001-10-16 Christopher Faylor <cgf@redhat.com>
3485 * res.rc: Enlarge chooser screen.
3487 2001-10-12 Christopher Faylor <cgf@redhat.com>
3489 * Makefile.in: Accomodate changes to w32api_include macro.
3491 2001-10-12 Christopher Faylor <cgf@redhat.com>
3493 * Makefile.in: Use correct flags for windres.
3495 2001-10-12 Christopher Faylor <cgf@redhat.com>
3497 * Makefile.in (CFLAGS): Remove -nostdinc from CFLAGS.
3499 2001-10-12 Christopher Faylor <cgf@redhat.com>
3501 * choose.cc (pick_line::paint): Reorganize after botched patch.
3503 2001-10-12 Christopher Faylor <cgf@redhat.com>
3505 * choose.cc (pick_line::paint): Add missing declaration.
3507 2001-10-10 Ralf Habacker <Ralf.Habacker@freenet.de>
3509 * choose.cc (pick_line::paint): Add package name to sdesc for display.
3511 Wed Sep 26 21:39:00 Robert Collins rbtcollins@hotmail.com
3513 * choose.cc (_view::insert_pkg): Correctly exit loop.
3514 * iniparse.y (register_category): Always insert new categories.
3516 Fri Sep 21 13:56:32 2001 Christopher Faylor <cgf@cygnus.com>
3518 * inilex.l (yylex): For comments, eat all characters up to, but not
3521 Sun Aug 26 12:50:01 2001 John Marshall <jmarshall@acm.org>
3523 * fromcwd.cc (found_file): Use correct package name when adding an
3524 unknown package rather than random stack garbage.
3526 Sun Aug 12 14:25:21 2001 Christopher Faylor <cgf@cygnus.com>
3528 * desktop.cc (make_passwd_group): .bat files need \r\n endings.
3530 Wed Aug 8 13:53:47 2001 Christopher Faylor <cgf@cygnus.com>
3532 * desktop.cc (etc_profile): Leave environment variables untouched.
3534 2001-08-07 Corinna Vinschen <corinna@vinschen.de>
3536 * autoload.c: Add dynamic load statements for NT/W2K
3537 advapi32 functions not available in 9x/ME.
3538 * main.cc (set_default_dacl): New function.
3539 (WinMain): Call `set_default_dacl' if running on NT/W2K.
3541 Sat Aug 4 21:35:53 2001 Christopher Faylor <cgf@cygnus.com>
3543 * ini.h (_CategoryPackage): Change pkg field to pkgname for
3545 * choose.cc: Use pkgname field when referencing _CategoryPackage
3547 (fill_missing_category): Don't add excluded packages.
3548 (default_trust): Ditto.
3549 (_view::insert_pkg): Ditto.
3550 * iniparse.y (register_category): Use consistent variable name.
3552 2001-07-09 Egor Duda <deo@logos-m.ru>
3554 * choose.cc: Use system foreground color for text output.
3556 Sat Jul 7 00:40:28 2001 Christopher Faylor <cgf@cygnus.com>
3558 * choose.cc (set_action): Use default trust for determining reinstall
3560 (default_trust): Set default trust.
3561 (pick_line::paint): Allow source selection when reinstalling or
3564 Fri Jul 6 18:08:49 2001 Christopher Faylor <cgf@cygnus.com>
3566 * choose.cc (isinstalled): Modify to properly accomodate special case
3568 (set_action): Check downloaded components, not installed components if
3570 (set_existence): Always include full list of files when "download
3573 Fri Jul 6 00:37:05 2001 Christopher Faylor <cgf@cygnus.com>
3575 * choose.cc (pick_line::paint): Properly display "na" field when no
3578 Thu Jul 5 00:34:23 2001 Christopher Faylor <cgf@cygnus.com>
3580 * choose.cc (scan2): Ensure that older versions do not show up in
3583 Mon Jul 2 15:47:59 2001 Christopher Faylor <cgf@cygnus.com>
3585 * choose.cc (set_action): Allow "Skip" action if trust != installed.
3586 * res.rc: Fix copyright.
3588 Sat Jun 30 14:05:21 2001 Michael A Chase <mchase@ix.netcom.com>
3590 * res.rc (IDD_LOCAL_DIR): Change caption to match the other dialog
3592 (IDD_CHOOSE): Adjust horizontal size so package names are visible.
3594 * choose.cc: Restore some more changes from 2001-06-25, throughout.
3595 (paint): Wrap some excessively long lines.
3596 (pick_line::paint): Ditto. Move the arrow in the "Current" column
3597 right to where it belongs. Move the source checkbox slightly to the
3599 (do_choose): List categories and required packages in setup.log.full.
3601 Sat Jun 30 23:04:59 2001 Christopher Faylor <cgf@cygnus.com>
3603 * choose.cc (scan2): Restore source scanning eliminated by previous checkin.
3605 Sat Jun 30 15:18:33 2001 Christopher Faylor <cgf@cygnus.com>
3607 * ini.h (struct _Info): Add "derived" element.
3608 * choose.cc (scan2): Try to place unknown tar files into proper slot
3609 when package exists in setup.ini but tar file does not.
3611 Sat Jun 30 13:39:00 2001 Robert Collins <rbtcollins@hotmail.com>
3613 * choose.cc (create_listview): Call set_view_mode with VIEW_CATEGORY.
3614 (do_choose): Log the first category name.
3616 Fri Jun 29 23:07:44 2001 Christopher Faylor <cgf@cygnus.com>
3618 *ini.h: Reapply 2001-06-25 changes.
3619 * choose.cc (add_required): Ditto. Default to "Keep" state if
3620 UNINSTALL and product is installed. Default to curr state if SKIP,
3622 (keep_or_skip): New function. Returns skip or keep state depending on
3623 installed state of package.
3624 (default_trust): Use keep_or_skip to set state.
3625 (_view::insert_pkg): Use calloc to allocate lines.
3626 (set_view_mode): Adapt 2001-06-25 change to set_full_list here.
3628 Sat Jun 30 11:01:00 2001 Robert Collins <rbtcollins@hotmail.com>
3630 * choose.cc: Remove globals full_list, headers, package_indexes and
3632 Add globals cat_headers, pkg_headers and chooser.
3633 (add_required): New function.
3634 (paint): Use the chooser for header details.
3635 Call into the chooser to paint each line.
3636 (list_click): Use new global variables.
3637 Call into the chooser to handle the click.
3638 Repaint the entire view if packages have been added or removed.
3639 (note_width): Get passed a headers struct rather than using a global
3641 (fill_missing_category): New function.
3642 (default_trust): Skip non-"Required" or "Misc" packages.
3643 (pick_line::set_line (Package *)): New function.
3644 (pick_line::set_line (Category *)): New function.
3645 (pick_line::paint): New function.
3646 (pick_line::click): New function.
3647 (_view::_view): New function.
3648 (_view::set_view_mode): New function.
3649 (_view::mode_caption): New function.
3650 (_view::set_headers): New function.
3651 (_view::init_header): New function.
3652 (_view::insert_pkg): New function.
3653 (_view::insert_category): New function.
3654 (_view::insert_at): New function.
3655 (_view::insert_under): New function.
3656 (_view::clear_view): New function.
3657 (viewsplusplus): New function.
3658 (_view::client): New function.
3659 (set_view_mode): Use new chooser functionality.
3660 (set_full_list): Use new global variables.
3661 (create_listview): Instantiate chooser.
3662 Remove all hardcoded headers[] code.
3663 (dialog_cmd): On trust changes, check dependencies.
3664 (getcategorybyname): New function.
3665 (getpackagecategorybyname): New function.
3666 (scan2): Use case-insensitive package comparison.
3667 (do_choose): Use fill_missing_category ().
3668 Show some category data.
3669 * ini.h: Protect against multiple inclusion.
3671 (_CategoryPackage): New struct.
3672 (_Category): New struct.
3673 (_Package): Change category to Category * from char *.
3674 (extern Category category): New global variable.
3675 (extern in ncategories): Ditto.
3676 (getcategorybyname): New prototype.
3677 (catpackagecategorybyname): New prototype.
3678 (register_category): New prototype.
3679 (add_category): New prototype.
3680 * iniparse.y: Parse multiple categories per package.
3681 (category): New global variable.
3682 (ncategories): New global variable.
3683 (new_package): Compare package against NULL, not 0.
3684 (new_requirement): Source formatting fix.
3685 (register_category): New function.
3686 (add_category): New function.
3687 * res.rc: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
3688 IDC_CHOOSE_VIEWCAPTION: New control.
3689 * resource.h: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
3690 IDC_CHOOSE_VIEWCAPTION: New control.
3691 Increment _APS_NEXT_CONTROL_VALUE.
3693 Mon Jun 25 00:56:37 2001 Michael A Chase <mchase@ix.netcom.com>
3695 * choose.cc (paint): Wrap excessively long lines.
3696 (list_click): Ditto.
3697 (create_listview): Ditto.
3698 (do_choose): Ditto. Replace TABs and remove CRs in lines written to
3699 setup.log.full. Allow "Yes" for source exists in setup.log.full when
3700 installing from local directories.
3702 Mon Jun 25 00:56:37 2001 Christopher Faylor <cgf@cygnus.com>
3704 * choose.cc (set_action): Only clear srcpicked when moving to next
3705 state. Allow source installation if it exists in the current "trust"
3706 state. Don't move to skip state when package is installed.
3707 (list_click): Don't allow source clicking when no source is available.
3708 (set_full_list): Display package when not is_full_action.
3709 * ini.h (is_full_action): Define.
3711 Sun Jun 17 12:06:14 2001 Christopher Faylor <cgf@cygnus.com>
3713 * install.cc (check_for_old_cygwin): New function. First stab at
3714 checking for old cygwin versions.
3715 (do_install): Call check_for_old_cygwin if there were no errors during
3718 Sat Jun 16 11:33:51 2001 Michael A Chase <mchase@ix.netcom.com>
3720 * choose.cc (_Info::_Info): Test _source paramenter for non-NULL rather
3721 than zeroed "source" element.
3723 Fri Jun 15 20:54:43 2001 Christopher Faylor <cgf@cygnus.com>
3725 * choose.cc (scan2): Insert unknown tar archives, found on disk, into
3726 the highest available "hole" in the trust array.
3728 Fri Jun 15 00:20:48 2001 Christopher Faylor <cgf@cygnus.com>
3730 * choose.cc (set_existence): Use pointer method for indexing in trust
3732 (create_listview): Ditto.
3733 (scan2): Ditto. Also, use consistent variable name for indexing into
3735 * ini.h (Package): Reorganize info array for easier scanning.
3737 Fri Jun 15 00:01:51 2001 Christopher Faylor <cgf@cygnus.com>
3739 * choose.cc (isinstalled): Eliminate special download only test.
3740 (set_action): Don't move to next state if in ACTION_SAME range and not
3742 (choose_caption): Display "Retrieve" rather than "Reinstall" when just
3744 (do_choose): Sort packages after all packages have been read.
3745 Accomodate the fact that first element in trust array is empty so that
3746 log files don't report the wrong trust value.
3747 * iniparse.y (new_package): Malloc space for package name or suffer
3750 Thu Jun 14 22:43:59 2001 Robert Collins <rbtcollins@hotmail.com>
3752 * ini.h (Dependency): New structure. Declare new function.
3753 * inilex.l (yylex): Detect new setup.ini options - category and requires.
3754 * iniparse.y: Declare new setup.ini token values.
3755 (yyparse): Parse new token values.
3756 (new_requirement): New function.
3758 Thu Jun 14 22:43:26 2001 Christopher Faylor <cgf@cygnus.com>
3760 * choose.cc (read_installed_db): Eliminate obsolete code.
3762 Thu Jun 14 22:11:53 2001 Christopher Faylor <cgf@cygnus.com>
3764 * choose.cc (set_action): Set trust on "redo".
3765 (_Info::_Info): New constructor.
3766 (read_installed_db): Use new constructor. Use trusts type for
3768 * ini.h (struct _Info): Label struct, add constructor.
3769 (Package): Make installed_ix a type 'trusts.'
3770 * install.cc (uninstall_one): Unset any installed info for current
3772 (install_one): Allocate new Info struct for installed reflecting new
3774 (do_install): Don't output line to installed.db if package is being
3777 Thu Jun 14 20:33:01 2001 Robert Collins <rbtcollins@hotmail.com>
3779 * choose.cc (getpkgbyname): Use consistent method for scanning package
3782 Wed Jun 13 23:33:08 2001 Christopher Faylor <cgf@cygnus.com>
3784 * choose.cc: Add some comments.
3785 (getpkgbyname): Use strcasecmp for comparisons.
3787 Wed Jun 13 16:07:00 2001 Christopher Faylor <cgf@cygnus.com>
3789 * install.cc (do_install): Avoid checking for download action if
3790 package wasn't currently retrieved.
3792 Wed Jun 13 11:27:22 2001 Christopher Faylor <cgf@cygnus.com>
3794 * choose.cc: Eliminate extra array throughout. Use element in package
3795 structure instead. Use pointers rather than array indexes where
3797 (set_action): New function to set next action based on current.
3798 (choose_caption): New function. Returns display caption.
3799 (check_existence): Change arguments. Use pointer to 'info' structure.
3800 (set_existence): Use pointer rather than array index.
3801 (default_trust): Use trusts enum for second argument.
3802 (set_full_list): Honor exclude element in package structure.
3803 (build_labels): Eliminate.
3804 (base): Make global. Use const char * argument.
3805 (get_package_version): Eliminate.
3806 (getpkgbyname): New function.
3807 (read_installed_db): Use parse_filename to get version info.
3808 * desktop.cc (make_passwd_group): Use getpkgbyname function.
3809 * download.cc (get_file_size): const argument.
3810 (do_download): Use is_download_action to determine when something
3811 should be downloaded.
3812 * filemanip.h: Add some functions.
3813 * ini.cc (do_ini): Use NULL rather than 0 for pointer assignment.
3814 * ini.h: Use enums for actions and trusts.
3815 (is_download_action): New macro.
3816 (is_upgrade_action): Ditto.
3817 (is_uninstall_action): Ditto.
3818 (struct Package): Add new fields.
3819 * inilex.l (yylex): Detect new setup.ini options.
3820 * iniparse.y: Declare new tokens.
3821 (yyparse): Detect exclude keyword. Fill out version field even if
3823 (new_package): Use greater granularity when allocating package array to
3824 avoid repeated calls to realloc.
3825 * install.cc (exists): const argument.
3826 (uninstall_one): Take pkg argument.
3827 (install_one): Ditto. Eliminate unneeded arguments which can be
3828 derived from package info.
3829 (do_install): Iterate over package array using a pointer. Use
3830 is_download_action to control when package should be downloaded.
3831 * tar.cc (tar_open): const argument.
3832 * tar.h: Refloect const argument.
3834 2001-05-31 Michael Chase mchase@ix.netcom.com
3836 * main.cc (WinMain): Add setup version to starting setup.log entry
3838 Tue May 29 21:37:58 2001 Yukihiko Sohda <sohda@is.titech.ac.jp>
3840 * inilex.l: Add + to list of valid string characters.
3842 Mon May 28 20:54:50 2001 Christopher Faylor <cgf@cygnus.com>
3844 * Makefile.in: Remove more stuff in the clean target.
3846 Mon May 28 18:24:59 2001 Christopher Faylor <cgf@cygnus.com>
3848 * Makefile.in: Correctly generate iniparse.h.
3850 Tue Mar 6 19:14:00 2001 Corinna Vinschen <corinna@vinschen.de>
3852 * geturl.cc (get_url_to_file): Add parameter `allow_ftp_auth'.
3853 * geturl.h: Change declaration of `get_url_to_file' accordingly.
3854 * netio.cc (NetIO::NetIO): Add parameter `allow_ftp_auth'.
3855 Set member `ftp_auth'.
3856 (NetIO::open): Add parameter `allow_ftp_auth'. Use it in calls
3857 to constructors of derived classes.
3858 (NetIO::get_ftp_auth): New method.
3859 * netio.h: Change class definition accordingly.
3860 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Add parameter `allow_ftp_auth'.
3861 Take global variables `net_ftp_user' and `net_ftp_passwd' into account.
3862 Add code for ftp authentication retry.
3863 * nio-ftp.h: Change class definition accordingly.
3864 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Add parameter `allow_ftp_auth'.
3865 Add code for ftp authentication retry in case of proxy connection.
3866 * nio-http.h: Change class definition accordingly.
3867 * res.rc: Add FTP authentication dialog.
3868 * resource.h: Add new constants used in res.rc.
3869 * state.h: Add variables `net_ftp_user' and `net_ftp_passwd'.
3871 Sun May 27 17:12:23 2001 Christopher Faylor <cgf@cygnus.com>
3873 * res.rc (IDD_SPLASH): Add a copyright year.
3875 Sun May 27 15:42:18 2001 Christopher Faylor <cgf@cygnus.com>
3877 * Makefile.in: Make iniparse.y produce a c++ file.
3878 * choose.cc (set_existence): Revert 2001-05-27 change.
3879 * ini.cc: Remove "C" from declaration of yyparse.
3880 * iniparse.y (yyparse): Fill out version field by default when a binary
3881 install is detected and no version has been set yet.
3882 * install.cc (do_install): Mount things earlier so that we can use
3883 proper mount table settings. Don't remove mounts since they are now
3885 * mount.cc (create_mount): Reread the mount table after establishing a
3887 (read_mounts): Explicitly clear root_here to allow multiple uses of
3888 this function. Ensure that there is no garbage in the table when we've
3889 exhausted all of the mounts in the registry.
3890 (cygpath): Accomodate ./ in path.
3892 Sun May 27 02:59:07 2001 Christopher Faylor <cgf@cygnus.com>
3894 Use parse_filename method to parse filenames throughout. Use
3895 get_root_dir to retrieve the current root directory throughout. Set
3896 const in argument list, where appropriate, throughout.
3897 * choose.cc (set_existence): Detect case of uninstalled package with no
3899 (parse_filename): New function.
3900 * filemanip.h (fileparse): New structure.
3901 * mount.cc (read_mounts): Remember where we found the root mount.
3902 (set_root_dir): New function.
3903 (get_root_dir): Ditto.
3904 * mount.h: Declare new functions.
3905 * site.cc (get_root_dir_now): Renamed from get_root_dir.
3906 (save_site_url): Use new function name.
3907 (get_initial_list_idx): Ditto.
3909 Sat May 26 21:23:59 2001 Christopher Faylor <cgf@cygnus.com>
3911 * choose.cc: Use a constant throughout to deal with chooser icon
3913 * res.rc (IDD_CHOOSE): Increase size of chooser box.
3915 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
3917 * choose.cc (do_choose): Fix incorrect assignment of trust setting to
3918 use when Redownload or Sources Only selected.
3920 Thu May 10 22:35:59 2001 Christopher Faylor <cgf@cygnus.com>
3922 Reformat file after botched patch formatting.
3923 * choose.cc (which_trust): Eliminate variable.
3924 (default_trust): Don't set which_trust.
3925 (do_choose): Use selected trust when reinstalling or installing source.
3927 Thu May 10 21:04:18 2001 Christopher Faylor <cgf@cygnus.com>
3929 Change concat to cygpath throughout.
3930 Change map_filename to cygpath throughout.
3931 * concat.cc (vconcat): New function.
3932 (concat): Use vconcat.
3933 * concat.h: Reflect above.
3934 * install.cc (map_filename): Eliminate.
3935 (install_one): Free dest_file.
3936 * mount.cc (find2): Expect input key to be pointing to mount record.
3937 (in_table): New function.
3938 (is_admin): Move from root.cc.
3939 (read_mounts): New function.
3940 (path_prefix_p): New function.
3941 (cygpath): New function.
3942 * mount.h: Define new functions and structure.
3943 * root.cc (in_table): Move to mount.cc.
3944 (do_root): Call read_mounts to initialize root stuff and mount table.
3945 * site.cc (get_root_dir): Ditto.
3947 2001-05-09 Matt Hargett <matt@use.net>
3949 * Makefile.in: Remove *.rc from clean.
3951 Tue May 8 23:33:38 2001 Christopher Faylor <cgf@cygnus.com>
3953 * choose.cc (scan2): Fix incorrect setting of TRUST_CURR rather than
3954 TRUST_PREV which produced "0" versions.
3956 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
3958 * resource.h: Add new field IDC_CHOOSE_INST_TEXT. Modify
3959 _APS_NEXT_CONTROL_VALUE to account for addition of
3960 IDC_CHOOSE_INST_TEXT.
3961 * res.rc (IDD_CHOOSE): Modify choose dialog to use new field
3962 IDC_CHOOSE_INST_TEXT for screen text. Modify choose Dialog to allow
3963 hot keys to select Prev, Curr, Exp.
3964 * ini.h: Add new actions for ACTION_REDO and ACTION_SRC_ONLY. Modify
3965 define for LOOP_PACKAGES to include new actions ACTION_REDO and
3967 * choose.cc: Add new Trusts for TRUST_REDO and TRUST_SRC_ONLY.
3968 (paint): Modify to check TRUST_SRC_ONLY when determining Bitmap for
3969 source Checkbox to use.
3970 (build_labels): Add logic to allow for selection of Source only
3971 Download/ReDownload/Install/Reinstall and also to Redownload/Reinstall
3972 current version binary.
3973 (dialog_proc): Add conditional display for file selection prompt based
3974 on download vs install using IDC_CHOOSE_INST_TEXT.
3975 (do_choose): Add new logic for TRUST_REDO and TRUST_SRC_ONLY selection
3976 and modify logic for TRUST_UNINSTALL, TRUST_KEEP, and TRUST_NONE to
3977 handle the instance where Source Download/Install was selected. Modify
3978 log file to store appropriate information regarding Action selected and
3979 the new actions that were added (I.E.: ACTION_REDO and
3981 * download.cc: Add include for <unistd.h> and "port.h".
3982 (download_one): Modify parameter list to include the selected action
3983 for the file to be downloaded. Modify size check against expected size
3984 to include check for ACTION_REDO and ACTION_SRC_ONLY. Modify rename of
3985 .tmp file to also remove the destination file if exists due to ability
3986 to redownload source and binary now.
3987 (do_download): Modify to also use ACTION_REDO and ACTION_SRC_ONLY in
3988 calculation of Download Bytes. Modify to also use ACTION_REDO and
3989 ACTION_SRC_ONLY in determining files selected for download.
3990 * install.cc (uninstall_one): Add check to treat a Reinstall like an
3991 upgrade so current version will be uninstalled prior to reinstall.
3992 (do_install): Add logic to handle ACTION_REDO and ACTION_SRC_ONLY for
3993 uninstalling and installing binary and source packages.
3994 * desktop.cc (make_passwd_group): Modify logic to account for a Source
3995 only cygwin install when checking for cygwin to determine need for
3996 mkpasswd and mkgroup.
3998 Mon May 7 23:33:30 2001 Matt Hargett <matt@use.net>
4000 * winsup/cinstall/res.rc: Added accelerators and improved focus order.
4001 Removed WS_DISABLED from "OK" buttons to accomodate default focus
4002 changes in net.cc and source.cc.
4003 * winsup/cinstall/net.cc (dialog_proc): If no radio button is selected,
4004 a default is selected.
4005 * winsup/cinstall/source.cc (dialog_proc): Ditto.
4006 (check_if_enable_next): Removed. No longer needed since a radio button
4007 will always be selected.
4008 (load_dialog): Removed call to check_if_enable_next.
4009 (dialog_cmd): Ditto. Also added default to switch.
4011 Tue Apr 24 23:42:02 2001 Christopher Faylor <cgf@cygnus.com>
4013 * res.rc: Resize affected text.
4015 Tue Apr 24 23:35:31 2001 Christopher Faylor <cgf@cygnus.com>
4017 * net.cc (do_net): Default to direct download.
4018 * res.rc: Move default selections to the top.
4020 2001-04-18 Earnie Boyd <earnie@users.sourceforge.net>
4022 * win32.h: Remove the definitions for _UNION_NAME and _STRUCT_NAME.
4023 Must now include <windows.h> and not the pieces.
4024 * choose.cc (create_listview): Clean up type mismatch problems.
4025 * dialog.h (NEXT(id)): Ditto.
4026 * geturl.cc (dialog): Ditto.
4027 * install.cc (dialog): Ditto.
4028 * splash.cc (load_dialog): Ditto.
4030 Wed Apr 18 18:59:21 2001 Christopher Faylor <cgf@cygnus.com>
4032 * tar.cc (class gzbz): Define dummy virtual functions.
4034 Wed Apr 18 16:01:21 2001 Christopher Faylor <cgf@cygnus.com>
4036 * Makefile.in: Add bz2 include/library support.
4037 * filemanip.h: New file.
4038 * choose.cc (find_tar_ext): New function. Returns TRUE if .tar.gz or
4040 (scan2): Reorganize to use find_tar_ext, accomodating .bz2 extension.
4041 (read_installed_db): Ditto.
4043 * fromcwd.cc (found_file): Ditto.
4044 (do_fromcwd): Ditto.
4045 * tar.cc (class gzbz): New super class for uncompression support.
4046 (gz): New class for gzip support.
4047 (bz): New class for bzip2 support.
4048 (tar_open): Use gzbz class to control file opening.
4049 (tar_ftell): Ditto for returning position in file.
4050 (skip_file): Ditto for reading file.
4051 (tar_next_file): Ditto.
4052 (tar_read_file): Ditto.
4053 (tar_close): Ditto for close.
4055 * zlib/configure.in: Force NM substitution.
4057 * source.cc (do_source): Default to "Install from Internet".
4059 2001-03-16 Brian Keener <bkeener@thesoftwaresource.com>
4061 * nio-file.cc (NetIO_File::NetIO_File): Use `get_file_size' instead of
4063 * choose.cc (list_click): Correct inability to select source code for
4065 (scan2): Modify to skip source tarballs when scanning disk for
4066 installable packages.
4068 2001-03-10 Chris Abbey <chris_abbey@yahoo.com>
4070 * install.cc: install sources into /usr/src instead
4071 of /, also include the sizes of source tarballs
4073 * download.cc: include sizes of source tarballs in
4074 total_download_bytes.
4076 Tue Mar 6 19:31:00 2000 Corinna Vinschen <corinna@vinschen.com>
4078 * download.cc (get_file_size): Remove `static'.
4080 Tue Mar 6 19:11:00 2000 Corinna Vinschen <corinna@vinschen.com>
4082 * tar.cc (tar_open): Use `get_file_size' instead of `stat'.
4084 2001-03-06 Brian Keener <bkeener@thesoftwaresource.com>
4086 * choose.cc (paint): Modify message for nothing to download vs
4087 nothing to install/update based on installation method.
4088 (list_click): Modify to skip versions in selection process if
4089 installing from local directory and installation file does not exist.
4090 Also leaves Source Action set to N/A if the source file does not exist
4091 and installing from local directory.
4092 (check_existence): New method to check current existence of installation
4093 files based on selected installation method.
4094 (set_existence): New method to set the current existence of installation
4095 files based on selected installation method.
4096 (best_trust): Modify decision process for best trust to base decision on
4097 current trust selected (IE: Prev, Curr, or Test), existence of file and
4098 installation method selected.
4099 (default_trust): Add logic to capture the current trust level and the
4100 trust selected for the given package.
4101 (set_full_list): Expand decision criteria for displaying a package in
4102 the selection list to include file existence/non-existence and selected
4103 installation method.
4104 (build_labels): Modify criteria for label addition to include
4105 installation method and file existence/non-existence.
4106 (create_listview): Modify to establish package trust level for each
4107 package before setting up the display list. Also modification to set
4108 current trust button as the default.
4109 (dialog_cmd): Set response for Prev, Curr, Test button push to perform
4110 a reset of the selection list in addition to setting the default trust.
4111 (get_package_version): New method to provide reusable code for
4112 determining the package version from the file name for a specified
4114 (scan2): Modify to use new method get_package_version and
4115 also enhance handling of the build for the structures package and
4117 (read_installed_db): Modify to use the new method
4118 get_package_version and also enhance handling of the build for the
4119 structures package and extra.
4120 (do_choose): Add additional initialization of package and extra
4121 structures. Modify to use read_installed_db all the time despite
4122 install method. Modify output to setup.log.full log file to increase
4123 readability by adding additional spacing, expanded code and available
4125 * ini.h: Add new fields install_exists, source_exists and
4126 partial_list_display to the structure definition for package.
4127 * res.rc (IDD_CHOOSE): Modify choose dialog Prev, Curr, and Test
4128 pushbuttons by replacing with Radio Buttons thus allowing the
4129 operator to better determine which is selected.
4131 2001-02-20 Brian Keener <bkeener@thesoftwaresource.com>
4133 * download.cc (do_download): Add new variables total_download_bytes and
4134 total_download_bytes_sofar for download progress meter. Add loop
4135 to accumulate the total bytes to download from the selected packages.
4136 * geturl.cc: Add state.h and diskfull.h to include list. Add new
4137 variables gw_iprogress, gw_pprogress, gw_progress_text,
4138 gw_pprogress_text, and gw_iprogress_text to allow for addition of
4139 total packages download progress meter and disk full percent
4140 progress meter. Add variables total_download_bytes and
4141 total_download_bytes_sofar for use by progress meters.
4142 (dialog_proc): Add new variables gw_iprogress, gw_pprogress,
4143 gw_progress_text, gw_pprogress_text, and gw_iprogress_text to
4144 allow for addition of total packages download progress meter and disk
4145 full percent progress meter.
4146 (init_dialog): Ditto.
4148 (get_url_to_file): Ditto.
4149 * geturl.h: Add external definition for total_download_bytes and
4150 total_download_bytes_sofar.
4151 * res.rc: Add two additional progress meters (IDC_DLS_IPROGRESS)
4152 and (IDC_DLS_PPROGRESS) and three text objects (IDC_DLS_PROGRESS_TEXT)
4153 and (IDC_DLS_IPROGRESS_TEXT, IDC_DLS_PPROGRESS_TEXT) for use in the
4155 * resource.h: Add new fields for progress meters and text and update
4156 _APS_NEXT_CONTROL_VALUE.
4158 Wed Feb 21 13:05:00 2000 Corinna Vinschen <vinschen@redhat.com>
4160 * download.cc (get_file_size): Check for INVALID_HANDLE_VALUE instead
4163 Wed Feb 21 11:21:00 2000 Corinna Vinschen <vinschen@redhat.com>
4165 * download.cc (download_one): Add missing parenthesis.
4167 Mon Feb 19 18:59:00 2000 Corinna Vinschen <vinschen@redhat.com>
4169 * download.cc (get_file_size): New function. Eliminates the need
4171 (download_one): Call `get_file_size' instead of `stat'. This
4172 workarounds a problem with mingw's `stat' call.
4174 2001-02-07 Earnie Boyd <earnie@users.sourceforge.net>
4176 * Makefile.in: (%.o: %.rc): Specify --include-dir $(w32api_include).
4177 This is to allow cinstall to build with 2.95.2-7 and to make the
4178 use of headers consistent.
4180 2000-12-26 Earnie Boyd <earnie_boyd@yahoo.com>
4182 * Makefile.in (autoload.o): Add target to specify -fno-inline-functions
4184 Tue Dec 26 03:46:00 2000 Matt Hargett <matt@use.net>
4186 * winsup/cinstall/res.rc: Added accelerators and improved focus
4189 2000-12-10 Egor Duda <deo@logos-m.ru>
4191 * choose.cc (paint): Use system background color for text output.
4193 Sun Dec 10 19:05:25 2000 Christopher Faylor <cgf@cygnus.com>
4195 * Makefile.in: Use CXX for linking and for compiling .cc files.
4196 * configure.in: Find correct c++ compiler.
4197 * configure: Regenerate.
4199 2000-11-17 DJ Delorie <dj@redhat.com>
4201 * splash.cc (load_dialog): Make message more obvious.
4204 Fri Nov 17 17:15:21 2000 Christopher Faylor <cgf@cygnus.com>
4206 * Makefile.in: Use g++ to link so that libstdc++.a gets used. This is
4207 necessary for newer compilers.
4209 Wed Nov 9 2:19:00 2000 Corinna Vinschen <vinschen@redhat.com>
4211 * desktop.cc: Include "ini.h" and "version.h".
4212 (make_passwd_group): Skip the function on 9x/ME boxes when an
4213 older version of Cygwin has been installed which doesn't
4214 support mkpasswd/mkgroup on 9x/ME.
4215 * install.cc: Move the `LOOP_PACKAGES' and `pi' macros to...
4218 Wed Nov 8 17:10:00 2000 Corinna Vinschen <vinschen@redhat.com>
4220 * desktop.cc (make_passwd_group): Don't exit when started
4221 on 9x/ME since mkpasswd/mkgroup are usable on 9x/ME now.
4223 Sun Nov 5 12:51:42 2000 Jason Tishler <jt@dothill.com>
4225 * install.cc (do_install): Add call to set_cygdrive_flags to sync
4227 * mount.cc (set_cygdrive_flags): New function.
4228 (get_cygdrive_flags): Ditto.
4229 (default_cygdrive): Ditto.
4230 (set_cygdrive_flags): Ditto.
4231 * mount.h: Add prototype for set_cygdrive_flags.
4233 2000-10-23 DJ Delorie <dj@redhat.com>
4235 * ini.h: add source actions
4236 * fromcwd.cc: check for available sources
4237 * res.rc: add checkbox bitmaps
4240 * choose.cc: add source column
4241 * download.cc: download sources if called for
4242 * install.cc: [un]install sources too
4244 2000-10-22 DJ Delorie <dj@redhat.com>
4246 * choose.cc (build_labels): Don't skip TRUST_PREV completely; only
4247 ignore it wrt full_list if there's already a version installed.
4248 (do_choose): Sort the list.
4249 (package_sort): New.
4251 2000-10-12 DJ Delorie <dj@redhat.com>
4253 * res.rc: Add more error strings.
4254 * resource.h: Ditto.
4255 * iniparse.y (new_package): re-initialize if needed.
4256 * download.cc (do_download): Keep track of errors; notify and
4258 * install.cc (do_install): Ditto.
4260 2000-10-05 DJ Delorie <dj@redhat.com>
4262 * Makefile.in: fix %.cc rule
4264 2000-10-04 DJ Delorie <dj@redhat.com>
4266 * desktop.cc: quote HOME and USER, don't . ./.profile
4268 * choose.cc (build_labels): don't include in partial list just
4269 because there's a *previous* version available.
4271 * install.cc (do_install): if installing from local directory with
4272 setup.ini and the file isn't found, look in "." also. Note errors.
4274 2000-10-02 DJ Delorie <dj@redhat.com>
4276 * ini.cc (do_ini): save setup.ini locally
4278 2000-10-02 Chris Abbey <cabbey@bresnanlink.net>
4280 * desktop.cc: quote escapes in prompt
4282 2000-10-02 Jason Tishler <jt@dothill.com>
4284 * root.cc (is_admin): New function.
4285 (read_mount_table): Check for administrative priviledges and set
4286 installation scope as appropriate.
4288 2000-09-28 DJ Delorie <dj@redhat.com>
4290 * nio-ftp.cc (ftp_line): handle continuations more robustly
4292 2000-09-14 Brian Keener <bkeener@thesoftwaresource.com>
4294 * res.rc: increased the size of the site dialog (IDD_SITE) & the
4295 corresponding list box to provide for more URL's to be listed.
4296 Modified the position of the Back, Next and Cancel buttons to
4297 correspond to the new size of the dialog.
4299 2000-09-13 DJ Delorie <dj@redhat.com>
4301 * install.cc (do_install): update disk fullness once per package
4302 to improve performance
4304 * choose.cc (create_listview): call ReleaseDC
4306 Mon Sep 11 22:40 2000 Harold L Hunt II <harold@compasstechnologies.com>
4308 * mkdir.cc: Create directories when ERROR_FILE_NOT_FOUND is
4309 returned, as it seems Samba 2.0.6+ returns this instead of
4310 ERROR_PATH_NOT_FOUND
4312 Mon Sep 11 19:35:24 2000 Christopher Faylor <cgf@cygnus.com>
4314 * site.cc (get_initial_list_idx): Don't default to saved URL if it
4317 2000-09-07 DJ Delorie <dj@redhat.com>
4319 * splash.cc: use version.h, not local decl
4320 * res.rc: add "old version" message
4323 * fromcwd.cc (canonicalize_version): make global
4324 * iniparse.y: add setup-version support, fix bug in blank line
4327 * inilex.l: add [exp] as alias for [test], add setup-version
4328 * Makefile.in (version.c): add setup-version tag
4330 * desktop.cc (do_desktop): remove 1.1 version number
4331 (do_desktop_setup): ditto
4333 * ini.cc (do_ini): zero out package list just in case we redo it.
4335 2000-09-07 Jeffrey Juliano <juliano@cs.unc.edu>
4337 * choose.cc (list_click): Check for nindexes==0; if so, return.
4339 2000-09-06 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
4341 * localdir.cc: new, local package directory selection dialog; cd
4342 into selected directory
4343 * Makefile.in (OBJS): add localdir.o
4344 * dialog.h: add prototype for do_local_dir
4345 * main.cc (WinMain): initialize local_dir to cwd; add call to
4347 * net.cc (dialog_cmd): make DO_LOCAL_DIR next dialog
4348 * source.cc (dialog_cmd): ditto
4349 * res.rc: add DO_LOCAL_DIR dialog; remove "current directory" from
4350 presented choices in IDD_SOURCE; add IDS_ERR_CHDIR error string
4351 * resource.h: defines for DO_LOCAL_DIR dialog; define IDS_ERR_CHDIR
4352 * root.cc (dialog_cmd): make DO_LOCAL_DIR previous dialog
4353 * state.h: add local_dir variable
4355 2000-09-06 Brian Keener <bkeener@thesoftwaresource.com>
4357 * desktop.cc: added logic to handle to the new dialog and to
4358 default the setting for the new checkboxes based on whether the
4359 desktop icon or start menu link already exist.
4360 (desktop_icon): correction to desktop directories for desktop icon
4361 creation. Additional logic added for Win95 which does not appear
4362 to have Common Directories so if Common selected and null uses
4364 (start_menu): Additional logic added for Win95 which does not
4365 appear to have Common Directories so if Common selected and null
4366 uses normal directory.
4367 (do_desktop_setup): moved the saving of the icon, creation of the
4368 bat file, profile, passwd, Start Menu link and desktop shortcut to
4369 this method from do_desktop. Made the creation of the desktop
4370 icon and start menu link conditional on settings of new dialog
4371 created for desktop.
4372 * install.cc (do_install): changed next from IDD_S_DESKTOP to
4374 * main.cc (WinMain): changed case IDD_S_DESKTOP to IDD_DESKTOP.
4375 * res.rc: added new resource to create a desktop dialog with 2
4376 checkboxes for creating the desktop icon and start menu link.
4377 * resource.h: changed IDD_S_DESKTOP to IDD_DESKTOP and added two
4378 new controls: IDC_ROOT_MENU and IDC_ROOT_DESKTOP for new dialog.
4379 * state.h: added root_menu and root_desktop for use in dialog.
4381 2000-08-29 DJ Delorie <dj@redhat.com>
4383 * choose.cc (scan_downloaded_files): scan for existing files, so
4384 that the user only sees new downloads.
4386 * nio-ie5.cc (NetIO_IE5): pre-check for wininet.dll, enable dial-up
4387 * site.cc (do_site): if we can't download the mirror list, go back
4388 to the net setup box to choose another transport.
4389 * autoload.c: add more functions
4390 * Makefile.in (ALL_DEP_LDLIBS): remove wininet.a
4391 * resource.h: add WININET message
4393 * net.cc (do_net): no longer default to IE5
4394 * simpsock.h (class SimpleSocket): new, simplify socket operations
4395 * simpsock.cc: ditto
4396 * nio-http.h: new, for direct http protocol
4397 * nio-http.cc: ditto
4398 * nio-ftp.h: new, for direct http protocol
4400 * netio.cc (set_url): move initialization here to handle redirections
4401 (open): add direct http/ftp
4402 * netio.h (NetIO::set_url): new
4404 * log.cc (log_save): create directory for log if needed
4406 * hash.cc, hash.h: new
4407 * Makefile: add hash.o
4408 * choose.cc: enable "uninstall" option
4409 * download.cc: invert action test to accomodate uninstalling
4410 * ini.h: add ACTION_UNINSTALL
4411 * install.cc: add uninstall functionality
4412 * res.rc: make install tag changeable
4413 * resource.h: add uninstall resources
4415 * res.rc: update mirror list URL
4417 2000-08-24 DJ Delorie <dj@redhat.com>
4419 * log.cc, log.h: new files
4420 * Makefile.in (OBJS): add log.o
4421 * tar.cc: use exit_setup instead of exit
4422 * dialog.cc (fatal): use exit_setup instead of ExitProcess
4423 * msg.cc (fatal): ditto
4424 * install.cc (dialog_cmd): ditto
4425 * ini.cc (do_ini): ditto
4426 * main.cc (main): add logging
4427 * source.cc (do_source): ditto
4428 * root.cc (do_source): ditto
4429 * site.cc (do_site): ditto
4430 * other.cc (do_other): ditto
4431 * net.cc (do_net): ditto
4432 * choose.cc (do_choose): ditto
4433 * download.cc (do_download): ditto
4434 * install.cc (do_install): ditto
4435 * msg.cc (fatal): ditto
4437 * res.rc: mark password boxes as *being* password boxes.
4439 * fromcwd.cc (canonicalize_version): use multiple buffers so that multiple
4440 calls won't use the same buffer.
4441 * choose.cc (create_listview): don't default to full list if no changes
4442 (base): return computed value, not temporary :-(
4443 (do_choose): don't use installed.db if we're only downloading.
4445 2000-08-23 DJ Delorie <dj@redhat.com>
4447 * nio-ie5.cc (NetIO_IE5): Fix authentication logic
4448 * nio-ie5.h (flush_io): new
4449 * netio.cc (load_dialog): note when we're initializing the dialog
4450 box, and ignore changes to the edit fields then.
4452 2000-08-21 DJ Delorie <dj@redhat.com>
4456 * fromcwd.cc (found_file): don't remember the canonicalized version
4458 * choose.cc (paint): print "nothing to do" message when list is empty.
4459 (build_labels): Use version "0.0" if no version is available.
4460 (create_listview): default to full list if nothing to install/update.
4461 (base): new, returns basename of file
4462 (read_installed_db): compare base names, not full paths
4464 2000-08-11 DJ Delorie <dj@redhat.com>
4466 * choose.cc: add new chooser dialog
4467 * fromcwd.cc: use IDD_CHOOSE
4468 * ini.cc: use IDD_CHOOSE
4469 * main.cc: use IDD_CHOOSE
4470 * ini.h: cosmetic changes
4471 * res.rc: add choose dialog, bitmaps
4472 * choose-spin.bmp: new
4473 * choose-rtarrow.bmp: new
4474 * resource.h: add choose dialog controls
4476 * mount.cc: remove debug statement
4478 2000-08-08 DJ Delorie <dj@redhat.com>
4480 * Makefile.in (version.c): make version checking more robust
4481 * splash.cc (load_dialog): handle case where there's no version
4483 2000-08-07 DJ Delorie <dj@redhat.com>
4485 * (all): add cvsid tags
4486 * Makefile.in: generate version.c from ChangeLog, add splash.o
4488 * res.rc: add splash screen
4490 2000-08-02 DJ Delorie <dj@redhat.com>
4492 * net.cc: remove proxy password code
4493 * res.rc: remove proxy user/pass from net, add auth dialogs
4494 * netio.cc,h: add sys/proxy auth methods
4495 * nio-ie5: use them, check for http status codes
4496 * state.h: add system authorization
4498 * concat.cc (concat): canonicalize x:// to x:/ (exception to ://
4501 2000-08-02 Norman Vine <nhv@yahoo,com>
4503 * msg.cc (mbox): added MB_TOPMOST to MessageBox type flags
4505 2000-08-01 DJ Delorie <dj@redhat.com>
4507 * postinstall.cc (each): don't rename files we ignore
4508 (do_postinstall): set CYGWINROOT to root_dir, chdir there
4510 * desktop.cc: have /etc/profile call ~/.profile and ~/.bashrc
4512 2000-07-31 DJ Delorie <dj@redhat.com>
4514 * desktop.cc: reverse PATH so /usr/bin precedes /bin
4516 2000-07-18 DJ Delorie <dj@redhat.com>
4518 * autoload.c: new, autoload dlls that might not be available.
4519 * Makefile.in (OBJS): add autoload.o
4521 * res.rc: rewrite root options (text/binary, system/user) to be
4524 * site.cc (get_site_list): trim displayed URL, sort by domain
4526 * net.cc (do_net): make IE5 default to checked, for now
4528 * choose.cc (do_choose): sort packages correctly
4529 * ini.cc (do_ini): handle parse errors more gracefully
4531 (fprintf): line buffer output
4532 (do_ini): if we can't load setup.ini, go back to the site list.
4533 * ini.h: add "unknown" trust level
4534 * inilex.l: absorb unknown trust levels and key/value pairs,
4535 add line number logic
4536 * iniparse.y: handle parse errors more gracefully.
4537 * install.cc: skip packages with no valid install entry
4539 2000-07-17 DJ Delorie <dj@cygnus.com>
4541 * coding standards fixups, many files
4542 * mkdir.cc: warn about deletions *before* deleting them
4544 2000-07-17 Jeff Juliano <juliano@cs.unc.edu>
4546 * res.rc (IDD_OTHER_URL): reorder to give default focus to entry
4548 * other.cc (dialog_cmd): save download site URL
4549 * site.cc (get_root_dir): new
4550 (save_mirror_site): new
4551 (dialog_cmd): save download site URL
4552 (get_site_list): make list big enough to add prev site
4553 (get_initial_list_idx): new, read last-used URL from file and
4554 append it to site_list
4555 (do_site): call get_initial_list_idx
4557 * concat.cc (concat): avoid segfault when first parm is null
4559 2000-07-13 DJ Delorie <dj@cygnus.com>
4561 * postinstall.cc: new
4562 * Makefile.in: add postinstall.o
4563 * concat.h: add backslash ()
4565 * desktop.cc (etc_profile): don't do postinstall
4566 (backslash): moved to concat.cc
4568 (make_postinstall_script): run directly
4569 (do_desktop): chain to do_postinstall
4570 * dialog.h: add exit_msg, do_postinstall
4571 * download.cc: use exit_msg
4573 * main.cc: add postinstall, exit_msg
4574 * resource.h: add postinstall
4575 * README: add more to-do items
4577 2000-07-12 DJ Delorie <dj@cygnus.com>
4579 * desktop.cc: add /etc/postinstall/ support
4580 * install.cc: add more "standard" directories
4582 2000-07-11 DJ Delorie <dj@cygnus.com>
4584 * desktop.cc: create /etc/profile
4585 * desktop.cc: fix include syntax
4586 * Makefile.in: add auto-dependencies
4587 * root.cc: support system vs user
4595 * desktop.cc: make sure we use backslashes, not slashes.
4596 * desktop.cc: don't set PATH in cygwin.bat, create /etc/passwd
4597 * geturl.cc: change math for percentage to avoid overflow
4599 * download.cc: post "download complete" message.
4600 * root.cc: pre-fill in defaults if needed, don't start
4601 browse at root_dir unless it's set.
4602 * desktop.cc: quote $PATH in case it has spaces in it
4604 2000-07-10 DJ Delorie <dj@cygnus.com>
4606 * Makefile.in: add desktop.o and mklink2.o
4607 * dialog.h: add do_desktop
4608 * install.cc: create standard directories, call do_desktop
4609 * res.rc: add cygwin.ico as a file also
4610 * desktop.cc: new, do shortcuts, batch files, and icons
4611 * mklink2.c: new, for COM
4612 * README: update to-do list
4614 2000-07-10 DJ Delorie <dj@cygnus.com>
4616 * ini.cc (do_ini): don't worry about timestamps if we're not
4617 actually installing.
4619 2000-07-09 DJ Delorie <dj@cygnus.com>
4621 * Makefile.in: add -I$(srcdir) for ini.h
4623 2000-07-06 DJ Delorie <dj@cygnus.com>
4625 * Replace everything with a new GUI version
4626 * zlib/gzio.c: add gzctell() for progress displays
4628 2000-06-22 DJ Delorie <dj@cygnus.com>
4630 * setup.c (tarx): re-add call to write_pkg()
4632 2000-06-07 DJ Delorie <dj@cygnus.com>
4634 * cygcalls.c: new, call cygwin1.dll functions directly
4635 * cygcalls.h: header for same
4636 * Makefile.in: add cygcalls.[ch], remove mount/cygpath/umount
4637 exes, fix cinstall.rc dependencies.
4638 * path.c: remove unneeded code
4639 * setup.c: use cygcalls instead of xcreate_process.
4640 uncompress embedded files with zlib
4641 add "-d" for "download only"
4643 postpone mount changes until very end
4644 add download progress indicators
4645 pack multi-column listings more
4646 auto-delete temp files
4647 customize banner message according to options
4648 prompt user for text/binary mounts
4649 add warnings about empty setup directory, root installs, etc
4651 2000-05-24 DJ Delorie <dj@cygnus.com>
4653 * tar.c: New file; built-in tar using zlib.
4654 * tar.h: New file; header for same.
4655 * ctar.c: New file; test program for same.
4656 * Makefile.in: add built-in tar, remove tar.exe and gzip.exe
4657 * path.c (pathcat): convert slashes and canonicalize, instead of aborting
4658 * setup.c (tarx): add support for built-in tar
4659 (main): accept unix-style slashes, check root dir for drive letters,
4660 warn about installing in /, make sure cwd is empty for internet installs,
4661 defer mounts to end of install, support built-in tar.
4663 Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
4665 Fix compiler warnings throughout.
4666 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
4668 * setup.c: Make 'root' global.
4669 (istargz): Return pointer to "stem" of matched .tar.gz file.
4670 (tarx): Special case cygwin-20000301 to == cygwin-1.1.0.tar.gz. Remove
4671 bogus check_for_installed check.
4672 (recurse_dirs): Add preliminary support for .bat file execution.
4673 (create_uninstall): Eliminate unneeded parameter.
4674 (do_start_menu): Ditto.
4676 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
4677 scanning for the version number. Eliminate unneeded argument to
4679 (getdownloadsource): Add 'name' to list of names rather than url.
4680 (main): Eliminate unneeded argument in get_pkg_stuff. Eliminate
4681 unneeded argument in mkmount and do_start_menu.
4683 2000-05-18 DJ Delorie <dj@cygnus.com>
4685 * setup.c (optionprompt): allow multi-column, clean up message
4686 about more options, be more robust about user input.
4687 (getdownloadsource): make the mirror URL a macro.
4688 (main): do mounts after done prompting user.
4690 Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
4692 * setup.c (cleanup): Inverse order of deletion stands a better chance
4693 of deleting cygpath.exe. Still seems to suffer from occasional races,
4695 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
4697 (output_file): Defend against an unlikely handle leak.
4698 (main): Don't set up signal handling until we have something special to
4701 Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
4703 * path.c (kill_cygpath): Delete function.
4704 (exit_cygpath): Make more defensive so that it can be called at any
4706 (cygpath_pipe): Don't set up signal here. Do it in main().
4707 * setup.c (istargz): New function.
4708 (recurse_dirs): Look for *.gz pattern rather than *tar.gz since *tar.gz
4709 inexplicably fails on samba mounted partitions. Use istargz to match
4711 (processdirlisting) Use istargz to match tar.gz tail.
4712 (cleanup): Renamed from filedel.
4713 (cleanup_on_signal): New function. Called on CTRL-C.
4714 (main): Record handle of main thread so that it can be suspended when
4715 CTRL-C occurs. Set up cleanup_on_signal signal handler.
4717 Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
4719 * setup.c (do_start_menu): Don't concatenate paths to already built
4722 Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
4724 * path.c (exit_cygpath): Wait for subprocess to exit before returning.
4725 (cygpath_pipe): Don't call exit_cygpath. Let main atexit routine do
4727 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
4729 * setup.c (filedel): Call exit_cygpath here so that we can be assured
4730 that cygpath subprocess has died. This allows us to delete cygpath.exe
4732 (optionprompt): Initialize response to -1 so that second screen of
4733 mirrors will appear.
4734 (get_pkg_stuff): Don't attempt to use HKCLU. Pass root to init_pkgs.
4735 * setup.h: Reflect init_pkgs prototype change.
4737 Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
4739 * pkg.c (init_pkgs): Accept an argument to control what root registry
4741 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
4742 * setup.h: Reflect init_pkgs prototype change.
4744 Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
4746 * error.c (winerror): Respond to gcc warning.
4747 * path.c (cygpath_pipe): Ditto.
4748 * setup.c (filedel): Call sa_cleanup on deleteme.
4749 (create_shortcut): Coerce argument to eliminate compiler warning.
4750 (tarx): Use installed version of cygwin1.dll, overriding tar file name.
4751 (refmatches): New function. Tests if ref is contained in a list of
4752 packages to install.
4753 (filematches): New function. Tests if filename matches one of a list
4754 of packages to install.
4755 (recurse_dirs): Accept list of packages to install. Generalize tar.gz
4756 test to accomodate _tar.gz.
4757 (prompt): Ensure that stdout is flushed prior to asking for input.
4758 (findhref): Initialize variables to quiet a compiler warning.
4759 (processdirlisting): Accept list of packages to install. Special case
4760 cygwin tar file version number.
4761 (downloaddir): Accept list of packages to install.
4762 (downloadfrom): Ditto.
4763 (create_uninstall): Eliminate unneeded variables. Quote arguments to
4765 (do_start_menu): Don't create uninstall bat file if updating or user
4766 specified a list of packages.
4767 (mkmount): Eliminate unneeded variables.
4768 (get_pkg_stuff): New function. Checks for previous unversioned
4770 (main): Accept -u and -f options and package names on the command line.
4771 Use get_pkg_stuff to initialize package information. Umount /etc.
4772 Call recurse_dirs and downloadfrom with list of package to install.
4773 Ensure that all /usr/local directories are created. Output
4774 installation time to setup.log.
4775 * setup.h: Add some prototypes.
4776 * xsystem.c (xcreate_process): Eliminate unneeded variable.
4778 Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
4780 * setup.c (optionprompt): Don't overlap display of already seen options
4782 (geturl): Print name of site which we're connecting to rather than "ftp
4784 (processdirlisting): Avoid URLs that contain a /. or ./ . Is this
4785 test too simplistic?
4786 (do_start_menu): Use pathcat to build path to <root>\bin to avoid
4787 problems when user chooses x:\ as their root.
4788 (main): For now, default to "non-update" mode. Allow -u option to
4791 Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
4794 * setup.c (tarx): Skip already installed or older packages. Report
4795 when a package has been updated.
4796 (processdirlisting): Skip already installed or older packages.
4797 (main): Detect -f option for forced installation. Initialize pkg stuff
4799 * setup.h: Add pkg definitions.
4801 Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
4803 * setup.c (findhref): Return NULL on empty string. Eat any trailing
4805 (processdirlisting): Attempt to limit recursively processing the same
4808 Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
4810 * setup.c (filedel): New function.
4811 (output_file): Keep track of files extracted from setup.exe for
4812 subsequent deletion.
4813 (tarx): Close process handle of child tar process or suffer handle
4815 (getdownloadsource): Close mirror file so that it can be unlinked.
4816 (processdirlisting): Return total number of files extracted.
4817 (main): Initialize array of files to delete. Ensure that files are
4818 closed on exit. Make the directory that setup.exe is started from ==
4819 the directory where temporary files are placed. Issue an error if no
4820 files were found to download.
4821 * xsystem.c (xcreate_process): Close the thread handle. Close the
4822 process handle if we waited for it to exit.
4824 Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
4826 * setup.c (main): Change version number output.
4828 Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
4830 * setup.c (tarx): Use full path name to tar executable.
4831 (main): Build full pathname to tar executable. Create /usr/local/etc
4834 Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
4836 * setup.c (findhref): Change method for scanning for href= to choose
4837 the last one on the line. This is still not foolproof and probably
4838 will need to be changed eventually. Don't abort if no "size" field is
4840 (processdirlisting): Fix boolean algebra.
4842 Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
4844 * main.c (tarx): Add some code for future task of unmounting
4845 directories encountered in tar file.
4847 Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
4849 * setup.c (findhref): Decode file size, when appropriate.
4850 (needfile): New function. Returns 1 when file should be
4852 (processdirlisting): Always download if file size does not
4853 match. Prompt when download fails for some reason.
4854 (getdownloadsource): Accomodate findhref argument changes.
4856 Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
4858 Throughout, use global session handle rather than reinitializing for
4859 each connect. Don't pass session as an argument to setup.c functions.
4860 * setup.c (geturl): Only issue "Connecting to.." message when using
4861 http or first time for ftp since subsequent connections will be fast.
4862 (processdirlisting): Allocate space for "N" when user has specified
4863 "N"ever option so that it can be subsequently freed.
4864 (main): Abort if we can't get the list of mirrors.
4866 Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
4868 * setup.c (main): Umount /bin and /lib.
4870 Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
4872 * setup.c (main): Create an empty /var/run/utmp.
4874 Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
4876 * Makefile.in: Add umount to list of files to include in setup.exe.
4877 * setup.c (xumount): New function for unmounting directories.
4878 (main): Unmount /usr.
4879 (mkmount): Unmount "unix directory" before trying to figure out where
4880 to create the directory.
4882 Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
4884 * setup.c (mkmount): Use xcreate_process to start mount process,
4886 (main): Don't do buffering on stdout or prompts won't be displayed
4887 correctly if running in a cygwin shell with CYGWIN=tty.
4889 Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
4891 * setup.c (main): Remove the CYGWIN environment variable before
4892 starting any cygwin programs.
4894 Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
4896 * setup.c (geturl): Use alternative method for finding filename part of
4898 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
4899 (downloaddir): Unlink file containing dir listing.
4900 (downloadfrom): Ditto.
4902 Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
4904 * setup.c (main): Disallow running setup.exe from the "root".
4906 Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
4908 Use "warning" function, where appropriate, to output warnings.
4909 * setup.c (warning): New function -- outputs warning to console and log
4911 (tarx): Fix index used to reset file protection.
4912 (main): Open the log file earlier so that more stuff can be sent to it.
4914 Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
4916 * setup.c (processdirlisting): Make "N" option a little less aggressive.
4918 Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
4920 * setup.c (tarx): Wait to after tar has completed to reset protections
4921 or suffer races with tar process.
4923 Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
4925 * Makefile.in: Eliminate duplicate -nostdinc from CFLAGS.
4926 * setup.c (create_uninstall): Create the uninstall .bat file in the
4927 "root" so that we can remove the /bin directory. Add bin\cygwin.bat to
4928 list of files to be deleted. Fix directory detection for determining
4929 when to use 'rmdir'.
4930 (do_start_menu): Add /usr/local/bin to the path.
4931 (main): Add slop to files.array allocation so that we don't have to
4932 worry about reallocating the array when it grows too large when doing
4933 some trivial "pushes". Add /tmp and /usr/local/{bin,lib} to list of
4936 Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
4938 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
4941 Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
4943 * path.c (kill_cygpath): New cleanup function.
4944 (exit_cygpath): New cleanup function.
4945 (cygpath_pipe): New function. Sets up cygpath in the background for
4946 translating filenames.
4947 (pathcvt): Use background cygpath for file translation.
4948 * setup.c (tarx): New function. Called to extract tar files, capture
4949 logging output, and translate it to Windows format.
4950 (recurse_dirs): Use 'tarx' function to extract files.
4951 (create_uninstall): Use file list built up by tarx rather than reading
4953 (mkmount): Add ability to mount root.
4954 (main): Track elapsed install time. Mount root.
4955 * starry.h: Add index field to strarry for tracking of tarx's usage of
4957 * xsystem.c (xcreate_process): Return proces handle when not waiting.
4959 Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
4962 (pathfp): New function. Preliminary work for new -f cygpath
4964 * Makefile.in: Add new file.
4965 (pathcvt): Move to new file.
4969 * setup.c (processdirlisting): Always open file in text mode.
4970 (create_uninstall): Ditto.
4971 (getdownloadsource): Ditto.
4974 Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
4976 * xsystem.c: New file.
4977 * Makefile.in: Accomodate new file.
4978 * setup.c (xsystem): Move to new file.
4979 (recurse_dirs): Accept handle to output log file. Don't use ">"
4980 redirection to trap tar output. Use supplied handle instead.
4981 (create_uninstall): Accept FILE pointer to opened log file. Don't
4982 unlink log file here.
4983 (do_start_menu): Accept FILE pointer to pass to create_uninstall.
4984 (main): Open log file here and pass it to various functions. Unlink
4987 Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
4989 Change occurrences of .usr.bin to .bin throughout.
4990 * setup.c (geturl): Increase number of retries to 20. Let user know
4991 what's going on during long connects.
4992 (processdirlisting): Accept "A"lways and "N"ever as update options.
4993 (create_uninstall): Load cygwin1.dll from the current directory rather
4995 (main): Add some expository text.
4997 Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
4999 * Makefile.in: Change method for compressing cygwin1.dll to avoid
5000 creating a cygwin1.dll in the current directory. Ensure the addition
5001 of -nostdinc to MINGW_CFLAGS.
5003 Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
5005 * Makefile.in: Augment clean target.
5007 Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
5009 * README: Added info about non-working mingw implementation
5010 * gzip.exe.gz: Replace with a version from the same build as the other
5012 * tar.exe.gz: Replace with a version from the same build as the other
5014 * mount.exe.gz: Add to repository until, mingw can build setup.
5015 * cygpath.exe.gz: ditto
5016 * cygwin1.dll.gz: ditto
5017 * setup.c: Overwrite /bin and /lib mounts. Generate working shortcut
5018 for Win9x. Display only a screenfull of options at a time. Call all
5019 tools with an absolute path.
5020 * setup.dsp: Restore the carriage returns, MS Developer Studio needs
5025 Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
5027 * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab
5028 cygwin1.dll from ../cygwin subdirectory.
5029 * gzip.exe.gz: Update.
5030 * tar.exe.gz: Update.
5032 Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
5034 * Makefile.in: Use ZLIB variable as a target.
5036 Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
5038 * Makefile.in: Eliminate traces of cygwinisms. Don't link with
5039 libmsvcrt.a. It's unneeded. Build .rc file on the fly from various
5041 * configure.in: Locate correct objcopy.
5042 * configure: Regenerate.
5044 Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
5046 * Makefile.in: New file.
5047 * configure.in: New file.
5048 * configure: New file.
5049 * zlib/Makefile.am: New file.
5050 * zlib/configure.in: New file.
5051 * zlib/aclocal.m4: New file.
5052 * zlib/acinclude.m4: New file.
5053 * zlib/configure: Regenerate from configure.in.
5054 * zlib/Makefile.in: Regenerate from Makefile.am