1 2002-07-15 Robert Collins <rbtcollins@hotmail.com>
3 * package_version.h (packageversion::sources): Support multiple files in
4 a single package version.
5 * package_version.cc (_packageversion::accessible): Ditto.
6 (packageversion::source): Ditto.
8 2002-07-15 Robert Collins <rbtcollins@hotmail.com>
10 * iniparse.y: Implement support for multiple source files for a source
12 * IniDBBuilder.h (IniDBBuilder::buildSourceFile): Ditto.
13 * IniDBBuilderPackage.h (IniDBBuilder::buildSourceFile): Ditto.
14 * IniDBBuilder.cc (IniDBBuilder::buildSourceFile): Ditto.
15 * IniDBBuilderPackage.cc (IniDBBuilder::buildSourceFile): Implement a
18 2002-07-13 Robert Collins <rbtcollins@hotmail.com>
20 * PickPackageLine.cc (PickPackageLine::click): Set requirements for
21 packages under all circumstances - slightly higher overheader, simpler
23 * download.cc (do_download_thread): Correctly download source
25 * package_meta.cc (checkForInstalled): Remove.
26 (checkForUpgradeable): Ditto.
27 (checkForSatisfiable): Ditto.
28 (processOneDependency): Ditto.
29 (packagemeta::set_requirements): Move guts to packageversion.
30 * package_version.cc (checkForInstalled): Copied from package_meta.cc.
31 (checkForUpgradeable): Ditto.
32 (checkForSatisfiable): Ditto.
33 (processOneDependency): Ditto.
34 (packageversion::set_requirements): Ditto.
35 * package_version.h (packageversion::set_requirements): Declare.
37 2002-07-13 Robert Collins <rbtcollins@hotmail.com>
39 * IniDBBuilder.cc (IniDBBuilder::buildBeginBuildDepends): Implement.
40 (IniDBBuilder::buildBeginBinary): Implement.
41 * IniDBBuilder.h (IniDBBuilder::buildBeginBuildDepends): Declare.
42 (IniDBBuilder::buildBeginBinary): Ditto.
43 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildBeginBuildDepends):
45 (IniDBBuilderPackage::buildBeginBinary): Ditto.
46 * IniDBBuilderPackage.h (IniDBBuilderPackage::buildBeginBuildDepends):
48 (IniDBBuilderPackage::buildBeginBinary): Ditto.
49 * inilex.l: Recognise Build-Depends-Indep, [,], >, < and remove
51 * iniparse.y: Full support for parsing a debian Sources file in-line in
53 * package_version.cc (packageversion::binaries): Implement.
54 * package_version.h (packageversion::binaries): Declare list of what
55 packages are created from a given source package.
56 (_packageversion::binaries): Ditto.
58 2002-07-10 Robert Collins <rbtcollins@hotmail.com>
60 * iniparse.y: Add basis for support for parsing a debian Sources file.
63 2002-07-09 Robert Collins <rbtcollins@hotmail.com>
65 Change custom container code for packagedb::packages to STL containers
67 * IniDBBuilderPackage.cc: Ditto.
73 * package_db.cc: Ditto.
74 * package_db.h: Ditto.
75 * Makefile.am: Remove list.h references.
78 2002-07-08 Max Bowsher <maxb@ukf.net>
80 * PickView.cc (PickView::PickView): Set font of package list header to
81 the same as used in the rest of the package list.
83 2002-07-08 Robert Collins <rbtcollins@hotmail.com>
85 * install.cc (NoReplaceOnReboot): New command line option to prevent
86 replacing in use files.
87 (install_one_source): Check the option and use it.
88 * README: Update TODO lists.
90 2002-07-08 Robert Collins <rbtcollins@hotmail.com>
92 * PickCategoryLine.cc: Change bucket to use STL container syntax
94 (PickCategoryLine::paint): Use new Category type syntax.
95 * PickCategoryLine.h: Use STL vectors rather than custom containers
97 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageCategory):
98 Use new add_category syntax.
99 * PickView.cc (PickView::insert_pkg): Use new Category type syntax.
100 (PickView::insert_category): Ditto.
101 (PickView::init_headers): Ditto.
102 * category.cc: Trim obsolete code.
103 * category.h: Replace interconnecting class with a typedef to
104 facilitate leveraging STL maps.
105 * choose.cc (fill_missing_category): Use updated pkg.add_category
107 (default_trust): Use new Category type syntax.
108 (set_view_mode): Ditto.
109 (create_listview): Ditto.
110 * package_db.cc (categories): Ditto.
111 * package_db.h: Update headers list to include needed headers.
112 (packagedb::categories): Replace custom list with STL map.
113 * package_meta.cc: Use new Category type syntax throughout.
114 (packagemeta::add_category): Implement new syntax.
115 * package_meta.h: Remove commented out source.
116 (packagemeta::add_category): Update syntax to decouple interface from
119 2002-07-06 Christopher Faylor <cgf@redhat.com>
121 * site.cc (do_download_site_info_thread): Correct spelling error.
123 2002-07-06 Robert Collins <rbtcollins@hotmail.com>
125 * PickCategoryLine.h: Include required header list.h.
126 * PickPackageLine.cc (PickPackageLine::paint): Adjust to use STL
127 containers for listing of packages per category and vice verca.
128 * PickView.cc (PickView::insert_pkg): Ditto.
129 (PickView::insert_category): Ditto.
130 * String++.h (String::caseless): STL helper to allow trivial containers
131 of Strings with case insensitive comparisons.
132 * category.h: Adjust to use STL containers for listing of packages per
133 category and vice verca.
134 * choose.cc (fill_missing_category): Ditto.
135 (default_trust): Ditto.
136 (ChooserPage::OnNext): Ditto.
137 * package_meta.cc (CategoryPackage::~CategoryPackage): Remove.
138 (packagemeta::packagemeta): Adjust for new category list name.
139 (packagemeta::~packagemeta): Adjust to use STL containers for listing
140 of packages per category and vice verca.
141 (packagemeta::set_action): Ditto.
142 * package_meta.h (CategoryPackage): Remove.
143 (packagemeta): Adjust to use STL containers for listing of packages per
144 category and vice verca.
146 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
148 * io_stream.cc: Use STL containers rather than custom ones.
149 (io_stream::registerProvider): Ditto.
150 (findProvider): Ditto.
152 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
154 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
155 Use STL collections for download site collections.
156 (IniDBBuilderPackage::add_correct_version): Ditto.
157 (IniDBBuilderPackage::process_src): Ditto.
158 * PickPackageLine.cc (PickPackageLine::click): Use the packageversion
159 accessible() call to abstract package availability.
160 * choose.cc (scanAVersion): Use STL collections for download site
162 * download.cc (check_for_cached): Ditto.
163 (download_one): Ditto.
164 * package_meta.cc (packagemeta::set_action): Use the packageversion
165 accessible() call to abstract package availability.
166 * package_source.h: Use STL containers rather than custom containers.
167 (site): Create a == operator to allow STL container use.
168 (packagesource::sites): Use STL containers rather than custom
170 * package_version.cc (_packageversion::accessible): Use STL containers
171 for download site containers.
173 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
175 * LogFile.cc: Use STL containers rather than custom containers.
176 (filedef): Create == and < operators for STL use.
177 (files): Convert to an STL set.
178 (LogFile::setFile): Use STL operations on files.
179 (LogFile::exit): Ditto.
181 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
183 * ini.cc (do_remote_ini): Use STL collection for site collection.
184 * site.cc: Include site.h first to ensure it's parsable standalone.
186 (site_list): Convert to an STL container.
187 (all_site_list): Ditto.
188 (site_list_type::site_list_type): Implement copy constructor.
189 (site_list_type::operator=): Implement assignment operator.
190 (site_list_type::operator ==): Implement.
191 (site_list_type::operator <): Ditto.
192 (save_dialog): Use STL collection calls for site collection.
193 (save_site_url): Ditto.
194 (get_site_list): Ditto.
195 (get_saved_sites): Ditto.
196 (do_download_site_info_thread): Ditto.
197 (SitePage::OnNext): Ditto.
198 (SitePage::PopulateListBox): Ditto.
199 (SitePage::OnMessageCmd): Ditto.
200 * site.h: Use STL vectors instead of custom code.
201 (site_list_type::site_list_type): Declare.
202 (site_list_type::operator=): Ditto.
203 (site_list_type::operator ==): Ditto.
204 (site_list_type::operator !=): Ditto.
205 (site_list_type::operator <): Ditto.
206 (site_list_type::operator <=): Ditto.
207 (site_list_type::operator >): Ditto.
208 (site_list_type::operator >=): Ditto.
209 (site_list): Convert to an STL container.
210 (all_site_list): Ditto.
212 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
214 * choose.cc (default_trust): Check package accessibility before
215 triggering an install. (Suggested by Pavel).
217 2002-07-03 Pavel Tsekov <ptsekov@gmx.net>
219 * compress_gz.cc (compress_gz::construct): Always initialize key members
220 to ensure the destructor does the right thing.
222 2002-07-03 Pavel Tsekov <ptsekov@gmx.net>
224 * filemanip.cc (parse_filename): Do not try to parse empty
226 * package_db.cc (packagedb::packagedb): For each line check if sscanf()
227 extracted good package name and filename.
229 2002-07-03 Robert Collins <rbtcollins@hotmail.com>
231 * package_meta.cc (packagemeta::set_requirements): Automatically select
232 version of dependent packages that satisfies the requirements.
233 Use processOneDependency to trigger the install of those packages.
234 (checkForInstalled): Check that the package remains installed.
235 (processOneDependency): Helper function for dependent packages.
236 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackage): Add more
238 Clear out all current state on new packages.
239 (IniDBBuilderPackage::add_correct_version): Copy the dependency list
242 2002-07-02 Robert Collins <rbtcollins@hotmail.com>
244 * Makefile.am (inilint_SOURCES): Add PackageSpecification sources.
245 nb: inilint is still incomplete, as the packageversion code is not
246 ready for database-less linking.
247 * site.cc (get_site_list): When the same site is reentered by the user
248 replace the old one. (Suggested by John Marshall).
250 2002-07-02 Robert Collins <rbtcollins@hotmail.com>
252 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
253 Clear out package selections when generating implicit source packages.
254 * PackageSpecification.cc (PackageSpecification::satisfies): Implement.
255 (PackageSpecification::_operators::satisfies): Implement.
256 * PackageSpecification.h (PackageSpecification::_operators::satisfies):
257 Worker function for testing versions.
259 2002-07-01 Robert Collins <rbtcollins@hotmail.com>
261 * IniDBBuilder.cc (IniDBBuilder::buildPackageRequirement): Remove.
262 * IniDBBuilder.h (IniDBBuilder::buildPackageRequirement): Ditto.
263 * IniDBBuilderPackage.cc: Use the STL algorithms.
264 Change cpv to cbpv throughout. Adjust -> to ., and use the new accessor
265 functions for the same variable throughout.
266 (IniDBBuilderPackage::IniDBBuilderPackage): Initialise new members.
267 (IniDBBuilderPackage::buildPackage): Use new cygpackage syntax,
268 and set an empty source package.
269 (IniDBBuilderPackage::buildPackageInstall): Use the new source member
270 to record an install package.
271 (IniDBBuilderPackage::buildPackageSource): Move source package logic
272 out from process_src, as it now occurs at separate times.
273 (IniDBBuilderPackage::buildPackageRequirement): Remove.
274 (IniDBBuilderPackage::buildSourceName): Use renamed package
275 specifiation accessor for clarity.
276 (IniDBBuilderPackage::buildSourceNameVersion): Ditto.
277 (IniDBBuilderPackage::add_correct_version): Use STL iterators rather
279 Remove source package references.
280 (IniDBBuilderPackage::process_src): Remove source package code as it's
281 now handled separately.
282 Set Path information before merging versions, to prevent dangling
284 * IniDBBuilderPackage.h (IniDBBuilderPackage::buildPackageRequirement):
286 (IniDBBuilderPackage::cpv): Remove.
287 (IniDBBuilderPackage::cbpv): New generic binary working variable.
288 (IniDBBuilderPackage::cspv): Ditto, but for source packages.
289 (IniDBBuilderPackage::csp): Source package variable for disjoint
291 * Makefile.am (AM_CFLAGS): Remove -Winline to allow stl set code
292 to compile. If it compiles cleanly in gcc 3.1, then reinstate.
293 * PickPackageLine.cc: Adjust packageversion accessors to the new
294 reference calls. (i.e. -> to .) throughout.
295 (PickPackageLine::paint): Use accessible() for clarity.
296 Use new split out source package logic.
297 (PickPackageLine::click): Ditto.
298 * PickView.cc (PickView::init_headers): Adjust packageversion accessors
299 to the new reference calls. (i.e. -> to .) throughout.
300 Use new split out source package logic.
301 * choose.cc: Don't depend on a specific package type.
302 Adjust packageversion accessors to the new reference calls. (i.e. -> to
304 (set_existence): Use accessible () for clarity.
305 (default_trust): Simplify a little.
306 (scanAVersion): Factored out code from scan_downloaded_files for
308 (scan_downloaded_files): Factor out inner loop for clarity.
309 (ChooserPage::OnNext): Don't dump the dependency list,
310 it's parsing is robust now!.
311 * cygpackage.cc (createInstance): Use a factory method to create new
313 (cygpackage::cygpackage): Make this private for use by the factory.
314 (cygpackage::setCanonicalVersion): Renamed from set_canonical_version.
315 Remove key usage as it's obsolete.
316 * cygpackage.h (cygpackage): Inherit from _packageversion, not
318 (cygpackage::createInstance): New factory.
319 (cygpackage::cygpackage): Make private.
320 * desktop.cc (make_passwd_group): Use new packageversion reference.
321 * download.cc (do_download_thread): Use changeRequested() for clarity.
322 Use new packageversion reference calls.
323 * iniparse.y (REQUIRES): Reuse the packageList code and dump the one-off
325 * install.cc: Adjust -> to ., and use the new accessor functions for
326 packageversion throughout.
327 * package_db.cc: Adjust -> to ., and use the new accessor functions for
328 packageversion throughout.
329 (packagedb::packagedb): Use the new cygpackage factory.
330 (packagedb::flush): Leverage String to remove buffer overflow chance in
332 (packagedb::findBinary): Find a binary meta package that has a version
333 matching a given specification.
334 (packagedb::findSource): Ditto, but for source.
335 * package_db.h (packagedb::findBinary): Declare.
336 (packagedb::findSource): Ditto.
337 * package_meta.cc: Adjust packageversion accessors to the new
338 reference calls. (i.e. -> to .) throughout.
339 Include the package_meta header first to ensure it parses standalone.
340 Use the STL algorithms.
341 (packagemeta::packagemeta): Create a copy constructor to allowing
342 cloning binary package metadata to source package metadata.
343 (packagemeta::~packagemeta): Use the STL coleltion code rather than
344 custom collection code.
345 (packagemeta::add_version): Ditto.
346 (packagemeta::set_installed): Ditto.
347 (packagemeta::SDesc): Ditto.
348 (hasSDesc): Helper function for find_if.
349 (checkForInstalled): Ditto.
350 (checkForUpgradeable): Ditto.
351 (checkForSatisfiable): Ditto.
352 (packagemeta::action_caption): Update for split out source packages.
353 (packagemeta::set_action): Ditto.
354 (packagemeta::set_requirements): Support multi-valued dependency
355 lists - a|b & c|d - with versioned package specifications.
356 (packagemeta::accessible): Helper member to improve abstraction.
357 (packagemeta::sourceAccessible): Ditto.
358 * package_meta.h: Adjust packageversion accessors to the new
359 reference calls. (i.e. "->" to "." and"*" to "" ) throughout.
360 (packagemeta::packagemeta): Declare copy constructor.
361 Remove self initialising members.
362 (packagemeta::set_action): Update parameters for new packageversion.
363 (packagemeta::trustp): Ditto.
364 (packagemeta::versions): Becomes an STL set.
365 * package_source.h (packagesource::Cached): Const correctness change.
366 * package_version.cc: Rewrite the packageversion interface to remove
367 the cygpackage nonvirtual members, and provide a copy by value,
368 pointer semantics reference counting wrapper class to ease use and
369 comparison of packageversions.
370 Change existing packageversion class to _packageversion throughout.
371 (_defaultversion): A trivial concrete class to prevent specialcasing
372 the default constructor for packageversion;
373 (packageversion::packageversion): Implement.
374 (packageversion::~packageversion): Ditto.
375 (packageversion::operator=): Ditto.
376 (packageversion::operator !): Ditto.
377 (packageversion::operator bool): Ditto.
378 (packageversion::operator ==): Ditto.
379 (packageversion::operator !=): Ditto.
380 (packageversion::operator <): Ditto.
381 (packageversion::Name): Ditto.
382 (packageversion::Canonical_version): Ditto.
383 (packageversion::setCanonicalVersion): Ditto.
384 (packageversion::getfirstfile): Ditto.
385 (packageversion::getnextfile): Ditto.
386 (packageversion::SDesc): Ditto.
387 (packageversion::set_sdesc): Ditto.
388 (packageversion::LDesc): Ditto.
389 (packageversion::set_ldesc): Ditto.
390 (packageversion::sourcePackage): Ditto.
391 (packageversion::sourcePackageSpecification): Ditto.
392 (packageversion::setSourcePackageSpecification): Ditto.
393 (packageversion::depends): Ditto.
394 (packageversion::predepends): Ditto.
395 (packageversion::recommends): Ditto.
396 (packageversion::suggests): Ditto.
397 (packageversion::replaces): Ditto.
398 (packageversion::conflicts): Ditto.
399 (packageversion::provides): Ditto.
400 (packageversion::picked): Ditto.
401 (packageversion::pick): Ditto.
402 (packageversion::changeRequested): Ditto.
403 (packageversion::uninstall): Ditto.
404 (packageversion::source): Ditto.
405 (packageversion::accessible): Ditto.
406 (_packageversion::sourcePackage): Ditto.
407 (_packageversion::accessible): Ditto.
408 (_packageversion::changeRequested): Ditto.
409 * package_version.h: Rewrite the packageversion interface to remove
410 the cygpackage nonvirtual members, and provide a copy by value,
411 pointer semantics reference counting wrapper class to ease use and
412 comparison of packageversions.
413 Change existing packageversion class to _packageversion throughout.
414 (Dependency): Remove.
415 (packageversion): New wrapper class.
416 (_packageversion): Renamed from packageversion.
417 (_packageversion::setCanonicalVersion): New method.
418 (_packageversion::sourcePackage): Ditto.
419 (_packageversion::sourcePackageSpecification): Ditto.
420 (_packageversion::setSourcePackageSpecification): Ditto.
421 (_packageversion::changeRequested): Ditto.
422 (_packageversion::bin): Rename to source.
423 (_packageversion::src): Remove.
424 (_packageversion::accessible): New method.
425 (_packageversion::references): Allow reference counting.
426 (_packageversion::sourceVersion): Cached the best-match source
429 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
431 * compress_bz.h (compress_bz::position): Track how much has been read.
432 * compress_bz.cc (compress_bz::compress_bz): And initialise it.
433 (compress_bz::read): Track amount read by the client.
434 (compress_bz::tell): And report it when asked.
436 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
438 * Makefile.am (snapshot): Automate snapshot creation some more.
440 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
442 * msg.cc (msg): Use vsnprintf to avoid buffer overflows.
444 * ini.cc (fprintf): Ditto.
445 * log.cc (log): Ditto.
446 * package_db.cc (packagedb::sourcePackages): Split out source packages
447 from binary packages.
448 * package_db.h: Ditto.
450 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
452 * PackageSpecification.h: New file. Abstracts the ability to refer
453 to another package, by name, or name and version.
454 * PackageSpecification.cc: Ditto.
455 * IniDBBuilder.cc (IniDBBuilder::buildPackageInstall): Simplify.
456 (IniDBBuilder::buildPackageSource): Ditto.
457 (IniDBBuilder::buildBeginDepends): New method for versioned
459 (IniDBBuilder::buildBeginPreDepends): Likewise, for dependencies to be
460 satisfied before pre-install.
461 (IniDBBuilder::buildPriority): New method, for getting the package
463 (IniDBBuilder::buildInstalledSize): How much disk space does it need?
464 (IniDBBuilder::buildMaintainer): Who maintains the package?
465 (IniDBBuilder::buildArchitecture): What platform is it for?
466 (IniDBBuilder::buildInstallSize): How big is the binary download?
467 (IniDBBuilder::buildInstallMD5): Whats the MD5 on the binary?
468 (IniDBBuilder::buildSourceMD5): Whats the MD5 on the source package?
469 (IniDBBuilder::buildBeginRecommends): What other packages are
470 recommended with this one?
471 (IniDBBuilder::buildBeginSuggests): And suggested?
472 (IniDBBuilder::buildBeginReplaces): What packages does this replace?
473 (IniDBBuilder::buildBeginConflicts): And collide with?
474 (IniDBBuilder::buildBeginProvides): What virtual packages (or obsolete
475 package names) does this provide?
476 (IniDBBuilder::buildDescription): Grab a multi line description one
478 (IniDBBuilder::buildSourceName): What source package should be used to
479 install the source for this binary package?
480 (IniDBBuilder::buildSourceNameVersion): Is a specific version needed?
481 (IniDBBuilder::buildPackageListAndNode): Add another AND clause to a
482 list of package specifications.
483 (IniDBBuilder::buildPackageListOrNode): Add another OR clause.
484 (IniDBBuilder::buildPackageListOperator): Add a versioning operator
485 to the current specification.
486 (IniDBBuilder::buildPackageListOperatorVersion): What version does the
488 * IniDBBuilder.h: Declare all the IniDBBuilder.cc changes.
489 * IniDBBuilderPackage.cc: As for IniDBBuilder.cc.
490 (IniDBBuilderPackage::IniDBBuilderPackage): Iniitialize new members.
491 (IniDBBuilderPackage::process_src): Streamline and split out
493 (IniDBBuilderPackage::setSourceSize): From process_src.
494 * IniDBBuilderPackage.h: Declare the IniDBBuilderPackage.cc changes.
495 (IniDBBuilderPackage::currentSpec): Track the in-progress specifiation.
496 (IniDBBuilderPackage::currentOrList): Track the current Or list.
497 (IniDBBuilderPackage::currentAndList): Track the current And list.
498 * IniParseFeedback.cc (IniParseFeedback::progress): Provide completion
500 (IniParseFeedback::iniName): Tell what ini filename we are currently
502 * IniParseFeedback.h: Declare IniParseFeedback.cc changes.
503 * IniParseFindVisitor.cc (IniParseFindVisitor::IniParseFindVisitor):
504 Make the feedback object non-const to allow mutating methods which are
505 needed when the object has state.
506 (IniParseFindVisitor::visitFile): Tell the caller the name of each
508 Initialise the parser with the feedback object to allow it to tell of
510 * IniParseFindVisitor.h: Declare IniParseFindVisitor.cc changes.
511 * Makefile.am (inilinst_SOURCES): Add more requisite classes.
512 (setup_SOURCES): Add the new PackageSpecification sources.
513 * ScanFindVisitor.cc (ScanFindVisitor::visitFile): Use the new
514 builder syntax to setup binary package details.
515 * choose.cc: Use the LogSingleton calls throughout.
516 * configure.in: Create the INILINT substitution correctly for recent
517 autotool configurations.
518 * cygpackage.cc (cygpackage::getfirstfile): Return an empty String
519 rather than a string built from an int. Thanks to Pavel Tsekov for
521 (cygpackage::getnextfile): Ditto.
522 * download.cc: Use LogSIngletion calls throughout.
523 (validateCachedPackage): A refactoring of the
524 check_for_cached code to eliminate duplciation.
525 (check_for_cached): Use validateCachedPackage to check packages.
526 * ini.cc (GuiParseFeedback): Provide gui feedback on ini name and
528 (do_remote_ini): Ditto.
529 * ini.h (ini_init): Pass a IniParseFeedback to the parser, to allow
531 * inilex.l: Identify new symbols - operators, and multi line plain text.
533 * inilintmain.cc (show_help): Provide basic infomation on inilint.
534 * iniparse.y: Adjust for the new builder syntax, and process debian
536 * io_stream_file.cc: Always include mkdir.h.
537 * list.h: Factor index location into a private routine.
538 (list::findindex): Implement this.
539 * mkdir.cc (mkdir_p): Make the use of WIN32 code conditional on mingw
540 builds. NB: This breaks cygwin build functionality still.
541 * package_meta.cc: Use the LogSingleton calls throughout.
542 (packagemeta::set_requirements): Adjust for object changes in
544 * package_meta.h (packagemeta::packagemeta): Initialise new members.
545 (packagemeta::architecture): What platform does this package run on?
546 This may need to move in the future to a per packagefile object.
547 (packagemeta::priority): What priority does this package have?
548 * package_source.h (packagesource::packagesource): Initialise new
550 (packagesource::installedSize): How much space does the package need?
551 (packagesource::setInstalledSize): Tell the amount.
552 (packagesource::_installedSize): And store it.
553 * package_version.cc (packageversion::sourcePackage): return the
555 (packageversion::setSourcePackage): And set it.
556 * package_version.h: Declare the package_version.cc changes.
557 (packageversion::depends): New package specification AND list.
558 (packageversion::predepends): Ditto.
559 (packageversion::recommends): Ditto.
560 (packageversion::suggests): Ditto.
561 (packageversion::replaces): Ditto.
562 (packageversion::conflicts): Ditto.
563 (packageversion::provides): Ditto.
564 (packageversion::sourcePackage): What source package is needed?
565 * threebar.cc (ThreeBarProgressPage::SetText4): Set the label beside
567 * threebar.h: Declare the threebar.cc change.
569 2002-06-27 John Marshall <johnm@falch.net>
571 * res.rc (SETUPINI_MISSING): Make trailing spaces visible.
572 * site.cc (SitePage::OnMessageCmd): Ditto
574 2002-06-15 Robert Collins <rbtcollins@hotmail.com>
576 * nio-ie5.cc (NetIO_IE5::NetIO_IE): Allow cached data.
578 2002-06-15 Robert Collins <rbtcollins@hotmail.com>
580 * package_meta.cc (packagemeta::set_action): When installing packages
581 with no binaries, choose the source package.
583 2002-06-10 Robert Collins <rbtcollins@hotmail.com>
585 * IniParseFindVisitor (IniParseFindVisitor::visitFile): Apply Max
586 Bowshers fix for the crash with a root level setup.ini.
587 * README: Update todos.
589 2002-05-26 Ralf Habacker <ralf.habacker@freenet.de>
591 * archive_tar.cc (archive_tar::next_file_name()): fixed broken
592 GNU long name extension support.
594 2002-05-27 Robert Collins <rbtcollins@hotmail.com>
596 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Don't
597 unescape 0 length strings.
599 2002-05-20 Robert Collins <rbtcollins@hotmail.com>
601 * package_meta.cc (packagemeta::set_action): Don't allow reinstall
602 when local with no cached file, and install the default source if the
603 default version has no binary.
605 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
607 * IniDBBuilderPackage.cc (IniDBBuilderPackage::IniDBBuilderPackage): New
609 (IniDBBuilderPackage::buildVersion): Provide a warning when a newer
610 setup version created the ini file.
611 * IniDBBuilderPackage.h (IniDBBuilderPackage::IniDBBuilderPackage): New
613 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Use the new
615 * IniParseFindVisitor.h (IniParseFindVisitor::IniParseFindVisitor):
616 Require a feedback strategy.
617 * Makefile.am (setup_SOURCES): Add IniParseFeedback sources.
618 * Makefile.in: Regenerate.
620 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
622 * io_stream_file.cc (io_stream_file::remove): Use the SetFileAttributes
623 trick to delete read only files.
624 * io_stream_cygfile.cc (io_stream_cygfile::remove): Use file:// to
626 * Makefile.am (release): Tweak to be more helpful.
627 * Makefile.in: Regenerate.
629 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
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 * choose.cc (scan_downloaded_files): When a non-installed version
642 has neither bin nor src cached files for local installs,
643 remove the version from availability.
645 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
647 * ini.cc (do_remote_ini): Save uncompressed ini's correctly.
649 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
651 * rsync: New support library, contains librsync. This is not (yet)
653 * configure.in: --with-rsync to enable rsync support. (Not complete).
654 * Makefile.am: Enable building with rsync.
655 * Makefile.in: Regenerate.
657 * IniDBBuilder.cc (IniDBBuilder::buildPackageInstall): Pass the md5 as
659 (IniDBBuilder::buildPackageSource): Ditto.
660 * IniDBBuilder.h: Ditto.
661 * IniDBBuilderPackage.cc: Ditto.
662 * IniDBBuilderPackage.h: Ditto.
663 * FindVisitor.cc: New file.
664 * FindVisitor.h: New file, interface for visiting a file system
666 * IniParseFindVisitor.cc: New file.
667 * IniParseFindVisitor.h: New file, concrete FindVisitor that parses
669 * README: Update TODO's.
670 * String++.cc (String::String): New constructor for <string> inter-
672 (String::substr): New method.
674 * choose.cc (scan2): Remove.
675 (scan_downloaded_files): Simplify.
676 * dialog.h: Include parsing pre-requirements.
677 * download.cc (check_for_cached): Fullname was used incorrectly - fix.
678 * filemanip.cc (parse_filename): -src packages where incorrectly parsed.
679 * find.cc: Rewrite. Now uses a Visitor pattern and is re-entrant.
681 * fromcwd.cc: Remove unneeded includes.
682 (is_test_version): Remove.
683 (found_file): Remove.
684 (SetupFindVisitor): Trivial visitor to detect setup.ini's.
686 (do_fromcwd): Remove commented code that has be replaced elsewhere.
687 * ini.cc (local_ini): Remove.
688 (findBuilder): Remove.
689 (find_routine): Remove.
690 (do_local_ini): Use new IniParseFindVisitor.
691 * iniparse.y: Typecase MD5 arrays, as we know they are allocated as
693 * postinstall.cc: Remove non-core includes.
694 (run_script_in_postinstall): Remove.
695 (RunFindVisitor): Trivial Visitor, runs each found script.
696 (do_postinstall): Use new find syntax.
698 2002-05-14 Christopher Faylor <cgf@redhat.com>
700 * ini.cc (find_routine): Don't clear buffer it it's NULL.
702 2002-05-14 Christopher Faylor <cgf@redhat.com>
704 * filemanip.h (trail): Declare.
705 * filemanip.cc (trail): New function.
706 (find_tar_ext): Use trail() instead of strstr().
707 * fromcwd.cc (check_ini): Ditto.
708 * ini.cc (find_routine): Ditto. Don't tack local_dir to path since it
709 should now be fully qualified. Set ini_filename. Reset error_buf and
710 error_count for any subsequent ini file parsing.
711 (ini_filename): New static variable for parse error reporting.
712 (yyerror): Use full path of setup.ini in error message. Subtract one
713 from line number if at bol.
714 * find.cc (found_part): Eliminate.
715 (find_sub): Call for_each with full path found rather than just file
717 (find): Don't calculate found_part.
718 * inilex.l (ini_init): Flush input buffer and reset line number.
719 (yybol): New function. Exports YY_AT_BOL.
720 * iniparse.y: Increase stack depth to allow more tokens to be processed.
721 (yyparse): Remove newline from error condition to allow subsequent
722 per-line error processing to proceed normally.
724 2002-05-14 Christopher Faylor <cgf@redhat.com>
726 * find.cc (find_sub): Be more defensive in preserving trailing parts of
727 components when doing recursive directory searches or calling user
729 * ini.cc (find_routine): Don't assume that any path name with
730 "setup.ini" in it is actually a setup.ini file. Only honor trailing
731 components. Copy path argument to temporary storage when unescaping
732 to prevent nuking of argument.
734 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
736 * CONTRIBUTORS: New file.
738 2002-04-02 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
740 * choose.cc: Run indent.
741 (nextbutton): Remove static variable.
742 (default_trust): Remove use of nextbutton.
743 (set_view_mode): Ditto.
744 (create_listview): Add IDC_CHOOSE_PREV and IDC_CHOOSE_NEXT to ta[] so
745 rbset() sets the prev/next/curr radio buttons properly.
746 (dialog_cmd): Delete function.
747 (dialog_proc): Delete function. Move WM_INITDIALOG functionality to
749 (do_choose): Delete function. Move pre-DialogBox() code to
750 ChooserPage::OnInit(), post-DialogBox() code to ChooserPage::OnNext.
751 (WM_APP_START_CHOOSE): Remove define.
752 (WM_APP_CHOOSE_IS_FINISHED): Remove define.
753 (do_choose_thread): Delete function.
754 (ChooserPage::OnActivate): Delete method.
755 (ChooserPage::OnMessageApp): Delete method.
756 (ChooserPage::OnInit): New method.
757 (ChooserPage::OnNext): New method.
758 (ChooserPage::OnBack): New method.
759 (ChooserPage::OnMessageCmd): New method.
760 * choose.h: Run indent.
761 (ChooserPage::OnMessageApp): Delete declaration.
762 (ChooserPage::OnActivate): Ditto.
763 (ChooserPage::OnMessageCmd): New declaration.
764 (ChooserPage::OnInit): Ditto.
765 (ChooserPage::OnNext): Ditto.
766 (ChooserPage::OnBack): Ditto.
767 * desktop.cc (DesktopSetupPage::OnBack): Replace use of IDD_CHOOSER
769 * fromcwd.cc (do_fromcwd): Replace use of IDD_CHOOSER with IDD_CHOOSE.
770 * ini.cc (do_ini_thread): Replace use of IDD_CHOOSER with IDD_CHOOSE.
771 * res.rc (IDD_CHOOSE): Remove dialog template.
772 (IDD_CHOOSER): Alter dialog template to fit wizard size and format.
774 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
776 * LogFile.cc (endLog): Work around an apparent libg++-3 bug causing
777 corrupt log file entries.
778 * geturl.cc: Convert to the new LogSingleton logging.
780 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
782 * ini.cc (do_remote_ini): Use setup.bz2 if it exists in preference to
785 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
787 * geturl.h: Declare getUrlToStream.
788 * geturl.cc (getUrlToStream): New function.
789 (get_url_to_membuf): Refactor to use getUrlToStream.
791 2002-05-11 Robert Collins <rbtcollins@hotmail.com>
793 * Makefile.am: Add a release target to automate some of the routine
795 * Makefile.in: Regenerate.
797 2002-05-11 Robert Collins <rbtcollins@hotmail.com>
799 * choose.cc (scan_downloaded_files): On local installs remove all
800 mirror sites if no cached copy of a package is found.
802 2002-05-10 Robert Collins <rbtcollins@hotmail.com>
804 * Makefile.in: Regenerate.
805 * iniparse.y: Use left recursion, not right in the lines rule to
806 avoid stack overflows.
807 * README: Update TODO's.
808 * io_stream_file.cc: Native builds need to include sys/stat.h
810 2002-05-06 John Marshall <jmarshall@acm.org>
812 * site.cc (SitePage::OnMessageCmd): recalculate navigation
813 button activation when "Add" is pressed.
814 (SitePage::CheckControlsAndDisableAccordingly): tweak comment.
816 2002-05-07 Robert Collins <rbtcollins@hotmail.com>
818 * Makefile.am (inlint_SOURCES): Add conditional objects to inilint
819 depending on platform.
821 * configure.in: Set conditional MINGWTARGET if compiling against mingw
823 * Makefile.in: Regenerate.
825 * io_stream_file.cc: Only use win32 calls when building for mingw.
827 2002-05-05 Robert Collins <rbtcollins@hotmail.com>
829 * Makefile.am (noinst_PROGRAMS): Make inilint configurable.
830 * configure.in: Ditto.
831 Fix incorrect header checking syntax.
832 * aclocal.m4: Regenerate.
833 * configure: Regenerate.
834 * Makefile.in: Regenerate.
835 * io_stream.cc: Remove platform specific and provider specific code.
836 (io_stream::registerProvider): New method, registers a Url provider with
838 Make all methods consistently throw invalid_argument exceptions when
839 a provider that is requested is not present.
840 (findProvider): New private function, finds a provider.
841 * io_stream.h: Declare io_stream::registerProvider.
842 * io_stream_cygfile.cc: Create a Provider class to register with
844 * io_stream_file.cc: Ditto.
845 * archive.cc: Remove unneeded includes.
846 * archive_tar.cc: Remove unneeded includes.
847 * archive_tar.h: Add required include.
848 * archive_tar_file.cc: Remove unneded includes.
849 * choose.cc: Remove unneeded includes:
851 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
853 * io_stream.cc: Use the new log interface thruout.
855 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
857 * log.cc (log): Reimplement via LogSingleton.
859 (exit_setup): Remove.
860 * log.h (log_save): Remove.
861 (exit_setup): Remove.
862 * LogSingleton.cc: New file.
863 * LogSingleton.h: New file.
864 * LogFile.cc: New file.
865 * LogFile.h: New file.
866 * Makefile.am (inilint_SOURCES): Add the new log interface.
867 (setup_SOURCES): Add the new log interface and the concrete File
869 * Makefile.in: Regenerate.
870 * archive.cc: Use the new log interface thruout.
871 * archive_tar.cc: Ditto.
873 * dialog.cc (fatal): Use the new log interface.
874 * ini.cc (do_ini_thread): Use the log interface to exit.
875 * isntall.cc (do_install_thread): Ditto.
876 * netio.cc (auth_cmd): Ditto.
877 * msg.cc (fatal): Ditto.
878 * localdir.cc (save_local_dir): Save to different files depending on
879 the mode, and if a root dir exists.
881 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
883 * IniDBBuilder.cc: New file.
884 * IniDBBuilder.h: New file.
885 * IniDBBuilderPackage.cc: New file.
886 * IniDBBuilderPackage.h: New file.
887 * PackageTrust.h: New file.
888 * IniState.h: Remove, wasn't thought out well enough.
889 * Makefile.am (inilint_SOURCES): Add more requirements.
890 (setup_SOURCES): Add new Builder base and concrete classes.
891 * Makefile.in: Regenerate.
892 * String++.cc (String::String): Implement int contructor.
893 * String++.h (String): Declare int constructor.
894 * archive_tar.cc (archive_tar::next_file_name): Return String() when
896 * archive_tar.h (archive_tar_file): Remove get_next_filename method,
898 * ini.cc: Replace IniState wuth IniDBBuilderPacakge.
899 (find_routine): Use new IniDBBuilder to configure the parser.
900 (do_local_ini): Ditto.
901 (do_remote_ini): Ditto.
902 * ini.h: Use IniDBBuilder to initialise parsing.
903 * inilex.l (MD5): Parse the MD5 string correctly, we had the nibbles
905 (ini_init): Use an IniDBBuilder rather than static variables.
906 * iniparse.y: Hand off all the object creation to a builder, rather
907 than hardcoding the behaviour. This allows run-time configured
909 * io_stream_cygfile.h (io_stream_cygfile): Remove get_next_filename
910 method, it's not needed.
911 * io_stream_file.h (io_stream_file): Ditto.
912 * mount.cc (cygpath): Return String() for missing mounts.
913 * package_meta.cc (packagemeta::SDesc): Return String() for blank
915 * package_meta.h (trusts): Remove - replaced by PackageTrust.h.
916 (packagemeta::packagemeta): Fix incorrect syntax in String constructor
918 * cygpackage.cc (cygpackage::cygpackage): Fix incorrect syntax in
919 String constructor usage.
920 * site.h (site_list_type): Ditto.
922 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
924 * String++.h: Declare a << operator that accepts String objects.
925 * String++.cc: We need iostream for..
926 (operator <<): this. Provide a << operator that accepts String objects.
927 * ini.cc (yyerror): Remove the "C" classifier - it's not needed.
928 Change from vargs to a String parameter.
929 * inilintmail.cc: Remove the gui related headers.
930 (yyerror): Implement this for parsing.
931 * iniparse.y: Use the new yyerror syntax.
933 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
935 * Makefile.am: Add IniState.h.
936 * Makefile.in: Regenerate.
937 * IniState.h: New file.
938 * choose.cc: Don't include ini.h - it's not needed.
939 * configure: Regenerate.
940 * desktop.cc: Don't include ini.h - it's not needed.
941 * download.cc: Ditto.
943 * ini.cc: Use IniState.h to track each parsing calling.
944 (find_routine): Ditto.
945 (do_remote_ini): Ditto.
946 (do_ini_thread): Ditto.
947 * ini.h (ini_init): Adjust parameters to include state object.
948 * inilex.l: Declare parser state variable.
949 (ini_init): Adjust parameters to include state object.
950 * iniparse.y: Remove obsolete setup_timestamp and setup_version
952 (setup_header): Use new state variable to track time and version.
953 (add_correct_version): Ditto.
954 * install.cc: Don't include ini.h - it's not needed.
956 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
958 * nio-files.cc (NetIO): Use io_stream syntax for get_file_size.
959 * io_stream_file.cc: Don't include filemanip.h.
960 (io_stream_file::get_size): Implement here to remove filemanip
962 * io_stream_cygfile.cc: Don't include filemanip.h.
963 (io_stream_cygfile::get_size): Implement here to remove filemanip
965 Implement a stat based version for when win32 is not available.
966 * filemanip.h (get_file_size): Return size_t - it's more appropriate.
967 * filemanip.cc: Don't include win32.h - be platform independent.
968 Include strings.h and io_stream.h as part of that.
969 (get_file_size): Leverage io_streams and remove win32 implementation.
970 * download.cc (check_for_cached): Use io_stream syntax for
972 (download_one): Ditto.
974 2002-05-02 Robert Collins <rbtcollins@hotmail.com>
976 * configure.in: Correct a typo in last change.
977 * configure: Regenerate.
978 * Makefile.in: Regenerate.
980 2002-05-02 Robert Collins <rbtcollins@hotmail.com>
982 * configure.in: Check for string.h and string.
983 * configure: Regenerate.
984 * Makefile.in: Regenerate.
986 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
988 * res.rc (IDD_SPLASH): Remove white box.
990 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
992 Oops! forgot to list these in the last checkin.
993 * inilintmain.cc: New file.
994 * md5.h: New file - imported md5 source, BSD style licence.
995 * md5.cc: New file - imported md5 source, BSD style licence.
996 * Exception.cc: New file.
997 * Exception.h: New file.
998 * MD5++.cc: New file.
1001 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
1003 * Makefile.am (AM_CFLAGS): Remove -mwindows, it's a linker flag.
1004 Remove -fno-rtti, we need it for exceptions.
1005 (AM_CXXFLAGS): Ditto.
1006 (WARNONLY_CFLAGS): Ditto.
1007 (EXTRA_PROGRAMS): Add with initial linter sources - not functional yet.
1008 (setup_LDFLAGS): Add and set to -mwindows.
1009 (setup_SOURCES): Add new sources.
1010 * Makefile.in: Regenerate.
1011 * README: Update TODO.
1012 * choose.cc (scan_downloaded_files): Use ini information if it's
1014 * configure: Regenerate.
1015 * download.cc (check_for_cached): Make reusable from elsewhere.
1016 Throw exceptions on errors (as opposed to failures).
1017 Check MD5 sum when it's known.
1018 (download_one): Never force a download.
1019 Handle corrupt package exceptions.
1020 * ini.cc (find_routine): Reverse escape the URL to correctly identify
1022 * inilex.l (MD5): Provide a parsing rule (note: lowercase is required).
1023 * iniparse.y: Allow calculation of MD5 sums, and allow src only
1025 (process_src): New helper function.
1026 * isntall.cc (install_one_source): Check MD5 sums when possible.
1027 Throw exceptions on errors.
1028 (do_install_thread): Handle exceptions for installation calls.
1029 * package_source.h: Store MD5 information.
1030 * propsheet.cc (PropSheet::Create): Add a useful comment.
1031 * res.rc (IDS_INSTALL_ERROR): Define.
1032 (IDS_CORRUPT_PACKAGE): Define.
1033 * resource.h (IDS_INSTALL_ERROR): Define.
1034 (IDS_CORRUPT_PACKAGE): Define.
1035 * rfc1738.cc (rfc1738_unescape_part): Implement.
1036 * rfc1738.h (rfc1738_unescape_part): Declare.
1038 2002-04-29 Robert Collins <rbtcollins@hotmail.com>
1040 * Makefile.am: Remove dependecy rules that automake emits.
1041 Correct badly copied dependency info for manually compiled files.
1042 (setup_SOURCES): Add all used headers.
1043 (EXTRA_DIST): Include non compilate but required sources.
1044 (setup_LDADD): Remove mingw32, it is autodetected.
1045 * Makefile.in: Regenerate.
1046 * String++.h: sys/types is a system header.
1047 * choose.cc (do_choose_thread): Make into a Win32 thread routine.
1049 (ChooserPage::OnMessageApp): Use Win32 threads. (_beginthread is not
1051 * configure: Regenerate.
1052 * configure.in: Check for mingw32/cygwin specific headers and libraries.
1053 * cygpackage.h: Include the win32.h header to get correct macro
1054 definitions in all situations.
1055 * download.cc (do_download_reflector): Make into a Win32 thread routine.
1057 (do_download): Use Win32 threads.
1059 * install.cc: Ditto.
1060 * (WinMain): Adjust to build valid command line using application
1061 under both mingw32 and cygwin.
1062 * mount.cc (set)cygdrive_flags): Create new system flags if the
1063 user requests system and the value does not exist.
1064 * nio-http.cc: Define a _strnicmp for cygwin.
1065 * package_db.cc: Include <errno.h> if it exists.
1066 * site.cc (do_download_site_info_thread): Make into a Win32 thread
1069 (do_download_site-Info): Use Win32 threads.
1070 * state.cc: Explicity declare variables to avoid header conflicts
1071 caused by '#define extern" on cygwin.
1072 * win32.h: Include <alloca.h> if it exists.
1073 (_MAX_PATH): Define as MAX_PATH when not defined by windows.h.
1074 (_access): Define as access if not defined by windows.h.
1076 2002-04-27 Robert Collins <rbtcollins@hotmail.com>
1078 * compress_gz.cc (compress_gz::error): EOF is not an error condition.
1080 2002-04-27 Robert Collins <rbtcollins@hotmail.com>
1082 * Makefile.am: Add libgetopt++ to the subdirs list.
1083 Search the libgetopt++ header directory.
1084 Link against libgetopt++.la.
1085 (setup_SOURCES): Remove GetOption.cc and getopt.c and Option.cc.
1086 (setup_LDADD): Explicitly include res.o.
1087 * Makefile.in: Regenerate.
1088 * aclocal.m4: Regenerate.
1089 * bootstrap.sh: Call libtoolize.
1090 * configure: Regenerate.
1091 * configure.in: Add libtool support and configure libgetopt++.
1092 * desktop.cc (NoShortcutsOption): Turn into a BoolOption.
1093 (DesktopSetupPage::OnInit): Use the simpler syntax.
1094 * desktop.h: Remove dependency on Option.h, and remove NoShortcustOption
1096 * main.cc: Include getopt++/GetOption.h.
1097 (main): Use simpler syntax.
1101 * GetOption.h: Remove.
1102 * GetOption.cc: Remove.
1104 * Option.cc: Remove.
1106 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
1108 * Makefile.am: Add zlib and bz2lib to SUBDIRS.
1110 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
1112 * aclocal.m4: New file, cached macros.
1113 * bootstrap.sh: New file, calls required autotools in appropriate
1115 * Makefile.am: New file, input Makefile for automake.
1116 * Makefile,in: Now a generated file - regenerate.
1117 * configure: Regenerate.
1118 * configure.in: Add automake support.
1119 * inilex.l: Change VERSION to PACKAGEVERSION to avoid a collision with
1120 automake's VERSION define.
1121 * iniparse.y: Ditto.
1123 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
1125 * cdefs.h: New file, imported to allow getopt.c to build without
1127 * getopt.h: New file, imported to allow building without cygwin headers.
1129 * bz2lib: New directory, contains copy of bz2lib.
1130 * cfgaux: New directory, contains autotool helper scripts.
1131 * Makefile,in: Adjust library and target definitions for building
1132 outside the sourceware tree.
1133 * compress_bz.h: Use new bz2lib header location.
1134 * mount.cc: Import key defines and enums to be independent of cygwin
1136 * configure.in: Update to autoconf 2.53, and to be sourceware
1138 * configure: Regenerate.
1140 2002-04-12 Robert Collins <rbtcollins@hotmail.com>
1142 * mklink2.cc (make_link_2): Tweak to work with current w32api
1145 2002-04-10 Pavel Tsekov <ptsekov@gmx.net>
1147 * version.cc (canonicalize_version): Fix a call delete[]
1148 to delete the allocated address.
1150 2002-03-29 Robert Collins <rbtcollins@hotmail.com>
1152 * PickView.cc (PickView::set_headers): Set last_col correctly. Thanks
1153 to Ton van Overbeek for locating the bug area.
1155 2003-03-27 Robert Collins <rbtcollins@hotmail.com>
1157 * PickView.cc (PickView::insert_pkg): Be more generic with
1159 (PickView::insert_category): Ditto.
1160 (PickView::~PickView): Create.
1161 * PickView.h (PickView::~PickView): Declare.
1163 2003-03-27 Robert Collins <rbtcollins@hotmail.com>
1165 * Makefile.in (OBJS): Add new commandline objects.
1166 * desktop.cc (NoShortCutsOption): New option code.
1167 (DesktopSetupPage::OnInit): Check whether to skip shortcuts.
1168 * desktop.h (NoShortCutsOption): New concrete command line option class.
1169 * main.cc (WinMain): Process command line options.
1170 * GetOption.h: New file, singleton command line class.
1171 * GetOption.cc: New file, implementation of the above.
1172 * Option.h : New file, abstract option for GetOption.
1173 * Option.cc: New file, implement constructor and destructor.
1175 2002-03-26 Pavel Tsekov <ptsekov@gmx.net>
1177 * mkdir.cc (mkdir_p): Stop processing if the path is exhausted.
1179 2002-03-26 Ton van Overbeek <tvoverbe@cistron.nl>
1181 * PickPackageLine.cc (PickPackageline::paint): Adjust clipping rectangle
1182 to textheight, so large fonts work.
1184 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
1186 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Don't translate
1189 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
1191 * io_stream_cygfile.cc (cwd): New static for cwd storage.
1192 (io_stream_cygfile::normalise): New method.
1193 (io_stream_cygfile::io_stream_cygfile): Use it.
1194 (io_stream_cygfile::exists): Ditto.
1195 (io_stream_cygfile::remove): Ditto.
1196 (io_stream_cygfile::mklink): And again.
1197 (cygmkdir_p): Yes, again.
1198 (io_stream_cygfile::move): And once more.
1199 * io_stream_cygfile.h (io_stream_cygfile::normalise): Declare.
1200 (io_stream_cygfile::cwd): Ditto.
1202 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
1204 * package_meta.cc (package_meta::~package_meta): Remove duplicate.
1205 (CategoryPackage::~CategoryPackage): Ditto. (Thanks to Ton van
1206 Overbeek for the report).
1207 * mklink2.cc: Moved from mklink2.c to avoid 'not a prototype error'.
1208 Make g++ compatible.
1209 * mklink2.c: Remove.
1210 * site.cc (site_list_type::init): Delete the correct memory addres.
1211 Thanks to Pavel Tsekov for tracking this down.
1213 2002-03-20 Robert Collins <rbtcollins@hotmail.com>
1215 * win32.h: Only define alloca if it's not already.
1217 2002-03-20 Robert Collins <rbtcollins@hotmail.com>
1219 * package_meta.h (packamgemeta::trustp): Make 'test' choice leave installed
1221 * README: Update with latest requests.
1222 * Various: MTC fixes from setup200202 branch.
1224 2002-03-19 Christopher Faylor <cgf@redhat.com>
1226 * Makefile.in (setup_version.c): Add back magic which allows detection
1227 of setup.exe version number.
1229 2002-03-17 Robert Collins <rbtcollins@hotmail.com>
1231 * * PickPackageLine.cc (PickPackageLine::paint): Fix incorrect clip region
1232 calculation on win9x systems.
1234 2002-03-16 Robert Collins <rbtcollins@hotmail.com>
1236 * install.cc (install_one_source): Write the correct length of a string to the
1237 lst file (Thanks to Pavel Tsekov for reporting the bug).
1239 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
1241 * choose.cc (list_click): Always refresh the entire chooser, as our
1242 package state change mechanism is broken with the new improved list classes.
1244 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
1246 * desktop.cc (make_passwd_group): Check for .lnk suffix on /etc/passwd and
1249 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
1251 * PickPackageLine.cc (PickPackageLine::DrawCheck): New method factored out from
1253 (PickPackageLine::paint): Use DrawCheck to draw the src tick box, and the new
1255 (PickPackageLine::click): Handle the new bin tickbox.
1256 * PickPackageLine.h (PickPackageLine::DrawCheck): Declare this.
1257 * PickView.cc (pkg_headers): Add a Bin? column.
1258 (cat_headers): Ditto.
1259 (PickView::set_headers): Ditto.
1260 (PickView::init_headers): Ditto.
1261 * PickView.h (PickView): Ditto.
1262 * choose.cc (list_click): Use the new name for src_col to set the clip rectangle.
1264 2002-02-24 Michael A Chase <mchase@ix.netcom.com>
1266 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Fix up Robert's
1269 2002-02-24 Michael A Chase <mchase@ix.netcom.com>
1271 * desktop.cc (make_link): Add "file://" prefix to io_stream::mkpath_p()
1273 (make_passwd_group): Ditto.
1274 * localdir.cc (save_local_dir): Ditto.
1275 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Wrap long lines.
1276 Add "cygfile://" prefix to io_stream::open() calls.
1278 2002-02-24 Robert Collins <rbtcollins@hotmail.com>
1280 * log.cc (log_save): Fix creating /var/log.
1281 * packate_meta.cc (standard_dirs): Remove duplicate '/''s.
1283 2002-02-24 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1285 * res.rc (STRINGTABLE): Add IDS_CYGWIN_SETUP and
1286 IDS_CYGWIN_SETUP_WITH_PROGRESS strings.
1287 * resource.h: Add IDS_CYGWIN_SETUP and
1288 IDS_CYGWIN_SETUP_WITH_PROGRESS IDs.
1290 * splash.cc (OnInit): Qualify SetWindowText() call with global scope
1291 operator (::SetWindowText()).
1293 * threebar.cc: Run indent.
1294 (cistring.h): Add include.
1295 (SetText1, SetText2, SetText3): Qualify SetWindowText() call with
1296 global scope operator.
1297 (SetBar2): Add logic for writing percent complete into window title.
1299 * window.h: Run indent.
1300 (SetWindowText): New function.
1301 (String): Add forward declaration.
1302 * window.cc: Run indent.
1303 (String++.h): Add include.
1304 (SetWindowText): New function.
1306 2002-02-24 Robert Collins <rbtcollins@hotmail.com>
1308 * README: Update TODO list.
1309 * install.cc (install_one): Fix src package location.
1310 (do_install_thread): Fix creating directories.
1312 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1314 * choose.cc: Include cygpackage.h for scan2 use.
1315 (set_existence): Ignore setup.ini mirrors when installing from cwd.
1316 (scan2): Process any valid file.
1317 Add cache entries when a file matching a setup.ini listed version is found.
1318 * filemanip.cc (parse_filename): Remove pkgtar - not used anywhere else.
1319 * filemanip.h (filemanip::pkgtar): Remove.
1320 * package_meta.cc (CategoryPackage::~CategoryPackage): New method.
1321 (packagemeta::~packagemeta): Move from package_meta.h
1322 Remove and delete all version and category information.
1323 * package_meta.h (CategoryPackage): Create a destructor.
1324 (packagemeta::~packagemeta): Move to .cc file.
1326 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1328 * install.cc (install_one_source): Make NULL cached package names cause
1331 2002-02-18 Michael A Chase <mchase@ix.netcom.com>
1333 * desktop.cc (make_passwd_group): Don't create passwd-grp.bat
1336 2002-02-18 Michael A Chase <mchase@ix.netcom.com>
1338 * log.cc (log_save): Put "\n" at end of log lines instead of "'".
1340 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1342 * mount.cc (create_mount): Avoid a const char*->char* warning.
1343 (read_mounts): Ditto.
1345 2002-02-05 Jason Tishler <jason@tishler.net>
1347 * download.cc (do_download_thread): Fix off-by-one error.
1349 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1351 * configure.in (CXXFLAGS): Substitute at configure time, not runtime.
1352 * configure (CXXFLAGS): Regenerate.
1353 * Makefile.in (iniparse.o): Build via default rules - no errors now.
1354 * README: TODO list updates.
1356 2002-02-19 Michael A Chase <mchase@ix.netcom.com>
1358 * String++.cc (String::concat):: Remove.
1359 (String::vconcat):: Ditto.
1360 * String++.h (String::concat):: Remove.
1361 (String::vconcat):: Ditto.
1362 * archive_tar.cc: Don't include concat.h.
1363 * archive_tar_file.cc: Don't include concat.h.
1364 * compress_bz.cc (compress_bz::peek): Don't log unneeded messages.
1365 (compress_bz::seek): Ditto.
1366 (compress_bz::~compress_bz): Ditto.
1367 * compress_gz.cc (compress_gz::peek): Ditto.
1368 (compress_gz::error): Ditto.
1369 (compress_gz::~compress_gz): Ditto.
1370 * concat.cc (vconcat): Remove.
1372 * concat.h (vconcat): Remove.
1374 * desktop.cc (desktop_icon): Use new cygpath.
1375 (make_etc_profile): Ditto.
1377 (make_passwd_group): Ditto.
1379 (check_desktop): Remove concat use.
1380 (check_start_menu): Ditto.
1381 * download.cc (download_one): Use new mkpath_p correctly.
1383 * fromcwd.cc: Don't include concat.h.
1384 * geturl.cc (get_url_to_membuf): Use String log() call.
1385 (get_url_to_file): Ditto.
1386 * install.cc: Don't include concat.h.
1387 (uninstall_one): Use LOG_PLAIN.
1388 (replace_one): Ditto.
1389 (install_one_source): Ditto.
1390 (install_one): More char to String conversion.
1391 (do_install_thread): Use new cygpath.
1392 Use new create_mount.
1393 * io_stream.cc (io_stream::move): Use new log().
1394 * io_stream_cygfile (io_stream_cygfile::io_stream_cygfile): Use new cygpath.
1395 (io_stream_cygfile::exists): Ditto.
1396 (io_stream_cygfile::remove): Ditto.
1397 (io_stream_cygfile::mklink): Ditto.
1398 (io_stream_cygfile::write): Ditto.
1399 (cygmkdir_p): Ditto.
1400 (io_stream_cygfile::move): Ditto.
1401 * io_stream_file.cc: Don't include log.h.
1402 (io_stream_file::write): Don't log unneeded messages.
1403 * localdir.cc: Don't include concat.h.
1404 (LocalDirPage::OnNext): Use LOG_PLAIN.
1405 * log.cc: Don't include log.h.
1406 (exit_setup): Use new cygpath.
1407 * log.h (log_level): Add new level LOG_PLAIN.
1408 * main.cc (WinMain): Use new log().
1409 * mount.cc (SLASH_P): New macro from concat.h.
1410 (cygpath): Make String version globally visible.
1411 Remove varargs version.
1413 * msg.cc (mbox): Use LOG_PLAIN.
1414 * net.cc (NetPage::OnNext): Ditto.
1415 * nio-ftp.cc (ftp_line): Use new log().
1416 * nio-http.cc: Don't include log.h.
1417 (retry_get): Use alternative url variable.
1418 * package_db.cc: Don't include concat.h.
1419 (packagedb::flush): Don't use concat.
1420 * package_meta.cc: Don't include concat.h.
1421 (packagemeta::uninstall): Use new cygpath.
1422 * postinstall.cc (do_postinstall): Ditto.
1423 * root.cc (RootPage::OnNext): Use LOG_PLAIN.
1424 * script.cc: Don't include concat.h.
1425 (init_run_script): Use new cygpath.
1426 (run_script): More char * to String conversion.
1427 (try_run_script): Ditto.
1428 * site.cc: Don't include concat.h.
1429 (SitePage::OnNext): Use LOG_PLAIN.
1430 (SitePage::OnMessageCmd): Use new log().
1431 * source.cc (SourcePage::OnDeactivate): Use LOG_PLAIN.
1433 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1435 * Makefile.in (OBJS): Add new object.
1436 * PickCategoryLine.cc (PickCategoryLine::paint): Print a "+" before the name.
1437 * PickCategoryLine.h (PickCategoryLine::bucket): Use the String class.
1438 * PickLine.h (Pickline::key): Change to a String to help plug leaks.
1439 (PickLine::Pickline): Accept a String for the key.
1440 * PickPackageLine.cc (PickPackageLine::paint): Convert all char use to Strings.
1441 * PickPackageLine.h (PickPackageLine::PickPackageLine): The key is automatically
1443 * PickView.cc (PickView::note_width): Convert all char * use to Strings.
1444 (PickView::init_header): Move category length checking out of the inner loop for
1446 Convert all char use to Strings.
1447 * PickView.h: Include the String++ header.
1448 (PickView::note_width): Update the prototype.
1449 * String++.cc: New file, implements a reference counting string class.
1450 * String++.h: New file, declares a reference counting string class.
1451 * archive.cc: Include String++ instead of concat.
1452 (archive::extract_file): Convert char * usage to Strings.
1453 * archive.h: Inlude the String++ header.
1454 (archive::extract_file): Update prototype.
1455 (archive::next_file_name): Convert to a String.
1456 (archive::linktarget): Ditto.
1457 * archive_tar.cc (archive_tar::next_file_name): Convert to String usage.
1458 (archive_tar::linktarget): Ditto.
1459 * arhive_tar.h: Update the copyright.
1460 Explicitly include the relevant headers.
1461 (tar_map_result_type): Convert to String usage.
1462 (archive_tar::next_file_name): Update prototype.
1463 (archive_tar::linktarget): Ditto.
1464 * category.cc (Category::Category): Update initialisers.
1465 Convert to String usage.
1466 (Categorycmp): Update to String usage.
1467 * category.h: Include the String++ header.
1468 (Category::Category): Update to String usage.
1469 (Category::name): Ditto.
1470 (Category::key): Ditto.
1471 * choose.cc: Remove concat.h, it's not needed.
1472 (scan2): Update to String usage.
1474 * cygpackage.cc: Update includes for use of String class.
1475 (cygpackage::cygpackage): Update for String usage.
1476 (cygpackage::set_canonical_version): Ditto.
1477 (cygpackage::destroy): Ditto.
1478 (cygpackage::getfirstfile): Ditto.
1479 (cygpackage::getnextfile): Ditto.
1480 (cygpackage::Name): Ditto.
1481 (cygpackage::Vendor_version): Ditto.
1482 (cygpackage::Package_version): Ditto.
1483 (cygpackage::Canonical_version): Ditto.
1484 (cygpackage::set_sdesc): Ditto.
1485 (cygpackage::set_ldesc): Ditto.
1486 * cygpackage.h: Include String++.h for parsing this file.
1487 (cygpackage::cygpackage): Update for String usage.
1488 (cygpackage::set_canonical_version): Ditto.
1489 (cygpackage::destroy): Ditto.
1490 (cygpackage::getfirstfile): Ditto.
1491 (cygpackage::getnextfile): Ditto.
1492 (cygpackage::Name): Ditto.
1493 (cygpackage::Vendor_version): Ditto.
1494 (cygpackage::Package_version): Ditto.
1495 (cygpackage::Canonical_version): Ditto.
1496 (cygpackage::set_sdesc): Ditto.
1497 (cygpackage::set_ldesc): Ditto.
1498 (cygpackage::name): Ditto.
1499 (cygpackage::vendor): Ditto.
1500 (cygpackage::packagev): Ditto.
1501 (cygpackage::canonical): Ditto.
1502 (cygpackage::fn): Ditto.
1503 (cygpackage::sdesc): Ditto.
1504 (cygpackage::ldesc): Ditto.
1505 * desktop.cc: Update includes for use of String class.
1506 (batname): Update for String usage.
1509 (start)menu): Ditto.
1510 (desktop_icon): Ditto.
1511 (make_cygwin_bat): Ditto.
1512 (make_etc_profile): Ditto.
1514 (make_passwd_group): Ditto.
1516 (check_desktop): Ditto.
1517 (check_startmenu): Ditto.
1518 * dialog.cc (eget): Update for String usage.
1519 (egetString): New function.
1520 (eset): New variant for Strings.
1521 * dialog.h: Include String++.h for parsing this file.
1522 (egetString): New function.
1523 (eset): New variant for Strings.
1524 * diskfull.cc (diskfull): Update for String usage.
1525 * diskfull.h: Include String++.h for parsing this file.
1526 (diskfull): Update for String usage.
1527 * download.cc: Update includes for use of String class.
1528 (check_for_cached): Update for String usage.
1529 (download_one): Ditto.
1530 * filemanip.cc (get_file_size): Ditto.
1532 (parse_filename): Ditto.
1534 * filemanip.h: Include String++.h for parsing this file.
1535 (fileparse): Update for String usage.
1537 (parse_filename): Ditto.
1538 Don't consider '_' to be a separator.
1540 * find.cc: Update includes for use of String class.
1541 (find_sub): Make more flexible.
1542 (find): Update for String usage.
1543 * find.h (find): Use Strings.
1544 * fromcwd.cc (found_file): Update for String usage.
1546 (init_dialog): Ditto.
1547 (get_url_to_membuf): Ditto.
1548 (get_url_to_string): Ditto.
1549 (get_url_to_file): Ditto.
1551 (get_url_to_membuf): Ditto.
1552 (get_url_to_string): Ditto.
1553 (get_url_to_file): Ditto.
1555 (add_subdirs): Ditto.
1556 * ini.cc: Update includes for String usage.
1557 (find_routine): Update for String usage.
1558 (do_remote_ini): Ditto.
1559 (do_ini_thread): Ditto.
1560 * ini.h (ini_init): Ditto.
1561 * inilex.l: Update includes for String usage.
1562 (ini_init): Update for String usage.
1563 * iniparse.y: Ditto.
1564 (add_correct_version): Ditto.
1565 * install.cc: Update includes for String usage.
1566 (install_one_source): Update for String usage.
1567 (uninstall_one): Ditto.
1568 (replace_one): Ditto.
1569 (install_one_source): Ditto.
1570 (do_install_thread): Ditto.
1571 * io_stream.cc: Update includes for String usage.
1572 (io_stream::open): Update for String usage.
1573 (io_stream::mkpath_p): Ditto.
1574 (io_stream::remove): Ditto.
1575 (io_stream::mklink): Ditto.
1576 (io_stream::move_copy): Ditto.
1577 (io_stream::move): Ditto.
1578 (io_stream::exists): Ditto.
1579 * io_stream.h: Update includes to allow correct parsing.
1580 (io_stream::open): Update for String usage.
1581 (io_stream::mkpath_p): Ditto.
1582 (io_stream::remove): Ditto.
1583 (io_stream::mklink): Ditto.
1584 (io_stream::move_copy): Ditto.
1585 (io_stream::move): Ditto.
1586 (io_stream::exists): Ditto.
1587 * io_stream_cygfile.cc: Update includes for String usage.
1588 (get_root_dir_now): Update for String usage.
1589 (io_stream_cygfile::io_stream_cygfile): Ditto.
1590 (io_stream_cygfile::~io_stream_cygfile): Ditto.
1591 (io_stream_cygfile::exists): Ditto.
1592 (io_stream_cygfile::remove): Ditto.
1593 (io_stream_cygfile::mklink): Ditto.
1594 (cygmkdir_p): Ditto.
1595 (io_stream_cygfile::set_mtime): Ditto.
1596 (io_stream_cygfile::move): Ditto.
1597 (io_stream_cygfile::get_size): Ditto.
1598 * io_stream_cygfile.h: Update includes for String usage.
1599 (io_stream_cygfile::io_stream_cygfile): Update for String usage.
1600 (io_stream_cygfile::~io_stream_cygfile): Ditto.
1601 (io_stream_cygfile::exists): Ditto.
1602 (io_stream_cygfile::remove): Ditto.
1603 (io_stream_cygfile::mklink): Ditto.
1604 (cygmkdir_p): Ditto.
1605 (io_stream_cygfile::set_mtime): Ditto.
1606 (io_stream_cygfile::move): Ditto.
1607 (io_stream_cygfile::get_size): Ditto.
1608 (io_stream_cygfile::fname): Ditto.
1609 (io_stream_cygfile::lmode): Ditto.
1610 * io_stream_file.cc: Update includes for String usage.
1611 (io_stream_file::io_stream_file): Update for String usage.
1612 (io_stream_file::~io_stream_file): Ditto.
1613 (io_stream_file::exists): Ditto.
1614 (io_stream_file::remove): Ditto.
1615 (io_stream_file::mklink): Ditto.
1616 (io_stream_file::set_mtime): Ditto.
1617 (io_stream_file::move): Ditto.
1618 (io_stream_file::get_size): Ditto.
1619 * io_stream_file.h: Update includes for String usage.
1620 * io_stream_file.cc: Update includes for String usage.
1621 (io_stream_file::io_stream_file): Update for String usage.
1622 (io_stream_file::~io_stream_file): Ditto.
1623 (io_stream_file::exists): Ditto.
1624 (io_stream_file::remove): Ditto.
1625 (io_stream_file::mklink): Ditto.
1626 (io_stream_file::set_mtime): Ditto.
1627 (io_stream_file::move): Ditto.
1628 (io_stream_file::get_size): Ditto.
1629 (io_stream_file::fname): Ditto.
1630 (io_stream_file::lmode): Ditto.
1631 * localdir.cc: Update includes for String usage.
1632 (save_local_dir): Update for String usage.
1633 (check_if_enable_next): Ditto.
1634 (load_dialog): Ditto.
1636 (LocalDirPage::OnInit): Ditto.
1637 (LocalDirPage::OnNext): Ditto.
1638 * log.cc: Update includes for String usage.
1639 (struct LogEnt): Update for String usage.
1642 (exit_setup): Ditto.
1643 * log.h: Update includes for String usage.
1644 (log_level): Update for String usage.
1647 * main.cc (WinMain): Update for String usage.
1648 * mklink2.c (make_link_2): Update for String usage.
1649 * mklink2.h (make_link_2): Update for String usage.
1650 * mount.cc: Update includes for String usage.
1651 (mount_table): Update for String usage.
1653 (create_mount): Ditto.
1655 (remove_mount): Ditto.
1656 (read_mounts): Ditto.
1657 (set_root_dir): Ditto.
1658 (get_root_dir): Ditto.
1659 (path_prefix_p): Ditto.
1661 * mount.h: Update includes for String usage.
1662 (create_mount): Update for String usage.
1663 (remove_mount): Ditto.
1665 (set_root_dir): Ditto.
1666 (get_root_dir): Ditto.
1667 * msg.cc (mbox): Ditto.
1668 * net.cc (NetPage::OnNext): Ditto.
1669 * package_db.cc (packagedb::flush): Ditto.
1670 (packagedb::packages): Ditto.
1671 (packagedb::categories): Ditto.
1672 * package_db.h: Update includes for String usage.
1673 (packagedb::packages): Update for String usage.
1674 (packagedb::categories): Ditto.
1675 * package_meta.cc: Update includes for String usage.
1676 (hash::add_subdirs): Update for String usage.
1677 (packagemeta::uninstall): Ditto.
1678 (packagemeta::SDesc): Ditto.
1679 (packagemeta::action_caption): Ditto.
1680 * package_meta.h: Update includes for String usage.
1681 (packagemeta::packagemeta): Update for String usage.
1682 (packagemeta::~packagemeta): Ditto.
1683 (packagemeta::uninstall): Ditto.
1684 (packagemeta::SDesc): Ditto.
1685 (packagemeta::action_caption): Ditto.
1686 (package_source.cc site::site): Ditto.
1687 (packagesource::set_canonical): Ditto.
1688 (packagesource::set_cached): Ditto.
1689 * package_source.h: Update includes for String usage.
1690 (site::site): Update for String usage.
1691 (packagesource::set_canonical): Ditto.
1692 (packagesource::set_cached): Ditto.
1693 (packagesource::packagesource): Ditto.
1694 (packagesource::sites): Ditto.
1695 (packagesource::cached): Ditto.
1696 * package_version.h: Update includes for String usage.
1697 (Dependency): Update for String usage.
1698 (packageversion): Ditto.
1699 * postinstall.cc: Update includes for String usage.
1700 (do_postinstall): Update for String usage.
1701 * res.rc (IDD_LOCAL_DIR): Fix typo again!
1702 * rfc1738.cc (rfc1738_escape_part): Update for String usage.
1703 * rfc1738.h: Update includes for String usage.
1704 (rfc1738_escape_part): Update for String usage.
1705 * root.cc: Update includes for String usage.
1706 (check_if_enable_next): Update for String usage.
1707 (save_dialog): Ditto.
1709 (directory_is_absolute): Ditto.
1710 (directory_is_rootdir): Ditto.
1711 (directory_has_spaces): Ditto.
1712 (RootPage::OnInit): Ditto.
1713 (RootPage::OnNext): Ditto.
1714 * script.cc: Update includes for String usage.
1715 (init_run_script): Update for String usage.
1717 (run_script): Ditto.
1718 (try_run_script): Ditto.
1719 * script.h: Update includes for String usage.
1720 (run_script): Update for String usage.
1721 (try_run_script): Ditto.
1722 * site.cc site_list): Ditto.
1723 (all_site_list): Ditto.
1724 (other_url): Eliminate.
1725 (site_list_type::init): Update for String usage.
1726 (site_list_type::site_list_type): Ditto.
1727 (get_site_list): Ditto.
1728 (get_saved_sites): Ditto.
1729 (do_download_site_info_thread): Ditto.
1730 (SitePage::OnNext): Ditto.
1731 (SitePage::OnActivate): Ditto.
1732 (SitePage::PopulateListBox): Ditto.
1733 (SitePage::OnMessageCmd): Handle empty url's.
1734 * site.h: Update includes for String usage.
1735 (site_list_type::site_list_type): Update for String usage.
1736 (site_list_type::init): Ditto.
1737 (site_list_type::~site_list_type): Ditto.
1738 (site_list_type::url): Ditto.
1739 (site_list_type::displayed_url): Ditto.
1740 (site_list_type::key): Ditto.
1741 * source.cc (SourcePage::OnDeactivate): Ditto.
1742 * state.h: Update includes for String usage.
1743 (local_dir): Update for String usage.
1744 (trust_level): Remove.
1745 * version.cc: Update includes for String usage.
1746 (canonicalize_version): Update for String usage.
1747 * version.h: Update includes for String usage.
1748 (canonicalize_version): Update for String usage.
1750 2002-02-15 Christopher Faylor <cgf@redhat.com>
1752 * filemanip.c (parse_filename): Revert previous change.
1754 2002-02-14 Christopher Faylor <cgf@redhat.com>
1756 * filemanip.c (parse_filename): Don't treat '_' as a version number
1759 2002-01-29 Christopher Faylor <cgf@redhat.com>
1761 * configure: Regenerate.
1763 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
1765 * res.rc (IDD_LOCAL_DIR): Fix typo reported by Rene
1766 <Hoeck@extern.lrz-muenchen.de>
1768 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
1770 * README: Update Todo's.
1771 * list.h: Run indent.
1772 (list): New methods checksize and insert to reduce code duplication.
1773 (list::registerbykey): Use them.
1774 (list::registerbyobject): Ditto.
1775 (list::removebyindex): Copy each object individually - safe for non
1777 (list::checksize): Implement.
1778 (list::insert): Implement.
1780 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
1782 * Makefile.in: Remove the dlmalloc object by default.
1783 * install.cc (do_install_thread): Remove the mallinfo call for 'working
1784 around' the crashing issue.
1785 * package_db.h: Include <string.h> - it's needed to parse this.
1786 * package_source.cc (site::site): Move here from the header file.
1787 * package_source.h (site): Stop the constructor being inlinable.
1789 2002-01-26 Robert Collins <rbtcollins@hotmail.com>
1791 * filemanip.cc (find_tar_ext): Add a descriptive comment.
1793 2002-01-25 Michael A Chase <mchase@ix.netcom.com>
1795 * filemanip.cc (find_tar_ext): Clean up tests for .tar.gz and .tar.
1796 * fromcwd.cc (do_fromcwd): Expand FIXME comment in source file check.
1797 * install.cc (install_one_source): Add space between words in log()
1800 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1802 * log.cc (exit_setup): When saving to the download dir, explicity
1805 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1807 * archive.cc (extract_file): Separate out the prefix and the URL
1809 * archive.h (archive::extract_file): Ditto.
1810 * install.cc (install_one_source): Ditto. Use the new
1811 archive::extract_file syntax.
1812 (replace_one): Use the new syntax.
1813 (io_stream.cc): Add some log info for links.
1815 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1817 * PickCategoryLine.cc (PickCategoryLine::actiontext): Remove.
1818 (PickCategoryLine::paint): Use the new action method.
1819 (PickCategoryLine::click): Set the action for all children.
1820 (PickCategoryLine::set_action): New method.
1821 * PickCategoryLine.h (PickCategoryLine::-actions): Remove.
1822 (PickCategoryLine::current_default): Use packagemeta _actions class.
1823 * PickLine.h (PickLine::set_action): New abstract method that requires
1824 including package_meta.h.
1825 * PickPackageLine.cc (PickPackageLine::set_action): New method.
1826 * PickPackageLine.h (PickPackageLine::set_action): Declare this.
1827 * list.h (getbykey): A const correctness fix.
1828 * package_meta.cc: Run indent.
1829 (packagemeta::Default_action): New const.
1830 (packagemeta::Install_action): Ditto.
1831 (packagemeta::Reinstall_action): Ditto.
1832 (packagemeta::Uninstall_action): Ditto.
1833 (packagemeta::_actions::caption): New method.
1834 (packagemeta::_actions::operator++): Ditto.
1835 (packagemeta::set_action): New overload.
1836 * package_meta.h (packagemeta::_actions): New class.
1837 (packagemeta::set_action): Declare this.
1839 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1841 * Makefile.in (OBJS): Remove supp.o - it appears accidental.
1842 * choose.cc: Don't define alloca anymore, it's done in win32.h
1844 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1846 * PickPackageLine.cc: New file.
1847 * PickPackageLine.h: New file.
1848 * PickLine.cc: New file.
1849 * PickLine.h: New file.
1850 * PickCategoryLine.cc: New file.
1851 * PickCategoryLine.h: New file.
1852 * PickView.cc: New file.
1853 * PickView.h: New file.
1854 * Makefile.in: Add new objects to setup.exe.
1855 Backout -fno-exceptions option.
1856 * choose.cc: Include PickView.h.
1857 Remove view related defines and static variables.
1858 (_pkg_headers): Moved to PickView.cc.
1859 (_cat_headers): Ditto.
1860 (view::views::Unknown): Ditto.
1861 (view::views::PackageFull):
1862 (view::views::Package):
1863 (view::views::Category):
1864 (pkgtrustp): Moved to package_meta.cc.
1865 (add_required): Moved to package_meta.cc.
1866 (pick_category_line::empty): Moved to PickCategoryLine.cc
1867 (paint): Adjust for moved static variables.
1868 (view::scroll): Moved to PickView.cc.
1869 (list_vscroll): Adjust for moved static variables.
1870 (list_hscroll): Ditto.
1871 (list_click): Ditto.
1872 (note_width): Moved to PickView.cc.
1873 (view::view): Ditto.
1874 (view::set_view_mode): Ditto.
1875 (view::mode_caption): Ditto.
1876 (view::views::caption): Ditto.
1877 (view::set_headers): Ditto.
1878 (DoInsertItem): Ditto.
1879 (view::init_headers): Ditto.
1880 (view::insert_pkg): Ditto.
1881 (view::insert_category): Ditto.
1882 (view::clear_view): Ditto.
1883 (view::views::operator++): Ditto.
1884 (view::click): Ditto.
1885 (default_trust): Adjust for moved statics.
1886 (pick_pkg_line::paint): Moved to PickPackageLine.cc.
1887 (pick_pkg_line::click): Ditto.
1888 (pick_category_line::actiontext): Moved to PickCategoryLine.cc
1889 (pick_category_line::paint): Ditto.
1890 (pick_category_line::click): Ditto.
1891 (set_view_mode): Adjust for moved statics.
1892 (create_listview): Ditto.
1893 * choose.h: Remove Category and packagemeta forward defines - not needed.
1894 Don't include unneeded headers list and package_meta.
1895 (_header): Move to PickView.h.
1896 (pick_line): Move to PickLine.h.
1897 (pick_pkg_line): Move to PickPackageLine.h.
1898 (pick_category_line): Move to PickCategoryLine.h.
1899 (view): Move to PickView.h.
1900 * ini.h (trusts): Move to package_meta.h.
1901 * package_meta.h (trusts): New enum.
1902 (packagemeta::set_requirements): New helper method.
1903 (packagemeta::trustp): Ditto.
1905 2002-01-21 Christopher Faylor <cgf@redhat.com>
1907 * choose.h (view): Move forward declaration of views into public area
1908 or g++ v3 will complain.
1910 2002-01-21 Christopher Faylor <cgf@redhat.com>
1912 * Makefile.in (CXXFLAGS): Add -fno-exceptions.
1913 * win32.h (alloca): Define as __builtin_alloca.
1914 * io_stream_memory.cc: Add include file.
1916 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
1918 * archive_tar.cc (archive_tar::~archive_tar): Mark the stream as destroyed.
1919 * archive_tar_file.cc (archive_tar_file::~archive_tar_file): Ditto.
1920 * compress.cc (compress::~compress): Be less verbose.
1921 * compress_bz.cc (compress_bz::~compress_bz): Ditto.
1922 Mark the stream as destroyed.
1923 * compress_gz.cc (compress_gz::~compress_gz): Mark the stream as destroyed.
1924 * io_stream.cc (io_stream::~io_stream): Only warn when the stream is not marked
1926 * io_stream_cygfile.cc (io_stream_cygfile::~io_stream_cygfile): Mark the
1927 stream as destroyed.
1928 * io_stream_file.cc (io_stream_file::~io_stream_file): Ditto.
1929 * io_stream_memory.cc (io_stream_memory::~io_stream_memory): Ditto.
1931 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
1933 * Makefile.in (CFLAGS): Allow customisable malloc debug flags.
1934 (OBJS): Link in malloc objects.
1935 * category.cc (category): Use new char, not strdup.
1936 * choose.cc (pick_pkg_line::paint): Allow for the regionsize to shrink.
1937 (do_choose): Use new char, not malloc.
1938 * concat.cc (vconcat): Ditto.
1939 * cygpackage.cc (cygpackage): Use new char, not strdup.
1940 (set_canonical_version): Ditto.
1941 (cygpackage::destroy): Use delete[], not free.
1942 * desktop.cc (uexists): Ditto.
1943 * dialog.cc (egest): Use new char, not strdup.
1944 * dlmalloc.c: New file - Doug Lea's malloc 2.7.0
1945 * hash.cc (hash::hash): Use delete instead of free.
1946 (hash::add): Use new char, not strdup.
1947 * ini.cc (do_remote_ini): Use delete[] not free.
1948 * inilex.l: Use new char, not strdup.
1950 * iniparse.y: Ditto.
1951 Use a local package_db rather than a static one.
1952 * install.cc (struct mallinfo): Workaround an apparent dlmalloc bug.
1953 (do_install_thread): Call mallinfo to force a consistency check. Appears
1954 to fix a 'inuse' error in -DDEBUG builds.
1955 Use delete[] for strings.
1956 * io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile): Use new char,
1958 (io_stream_cygfile::~io_stream_cygfile): Use delete[], not free.
1959 (io_stream_cygfile::remove): Use new char, not strdup.
1960 * io_stream_file.cc (io_stream_file::io_stream_file): Use new char, not strdup.
1961 (io_stream_file::io_stream_file): Use delete[], not free.
1962 (io_stream_file::remove): Use new char, not strdup.
1963 * io_stream_memory.cc (memblock::~memblock): Use delete[], not free.
1964 * io_stream_memory.h (memblock): Use new char, not malloc.
1965 * localdir.cc (LocalDirPage::OnInit): Use new char, not strdup.
1966 * main.cc (WinMain): Use new char, not strdup.
1967 * mount.cc (find2): Use new char, not malloc.
1968 (read_mounts): Ditto.
1969 (cygpath): Use new char, not strdup.
1970 * netio.cc (NetIO::~NetIO): Use delete[], not free.
1971 (NetIO::set_url): Use new char, not strdup.
1972 (NetIO::get_ftp_auth): Use delete[], not free.
1973 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
1974 Use new char instead of strdup.
1975 * nio-http.cc (base64_encode): Use new char, not malloc.
1976 * package_meta.cc (hash::add_subdirs): Use new char instead of strdup.
1977 * package_source.h (~ packagesource): Use delete[] instead of delete.
1978 * port.h (strdup): Deprecate the use of strdup.
1979 * rfc1738.cc (rfc1738_do_escape): Use new char, not calloc.
1980 * script.cc (init_run_script): Us delete[], not free.
1981 (run_script): Ditto.
1982 * simpsock.cc (SimpleSocket::fill): Use new char, not malloc.
1983 (SimpleSocket::invalidate): Use delete[], not free.
1984 * site.cc (site_list_type::init): Use new char instead of strdup.
1985 * site.h (~site_list_type): Use delete[], not free.
1987 2002-01-20 Robert Collins <rbtcollins@hotmail.com>
1989 * Makefile.in (OBJS): Add win32.o - win32 support functions.
1990 * README: Update todos.
1991 * archive.cc (extract_file): Support a suffix for appending to extracted files.
1993 * choose.cc (set_view_mode): Use the new view::views class.
1994 (view::views::Unknown): New static for defaulting view::views variables.
1995 (view::views::PackageFull): New static for the current view.
1996 (view::views::Package): Ditto.
1997 (view::views::Category): Ditto.
1998 (topbucket::paint): Remove.
1999 (topbucket::empty): Rename to pick_category_line::empty.
2000 (topbucket::~topbucket): Remove.
2001 (paint): Use the new view::views class.
2002 Don't paint 'all' as a category when showing package categoies.
2003 (pick_category_line::actiontext): New method.
2004 (pick_category_line::paint): Make showing the category optional, and show the
2006 (pick_category_line::click): Make showing the category optional, and
2007 differentiate between the name being clicked, and the action description.
2008 (view::view): Use the new view::views class.
2009 (view::set_view_mode): Ditto.
2010 (view::mode_caption): Ditto.
2011 (view::views::caption): New method.
2012 (view::set_headers): Use the new view::views class.
2013 (view::clear_view): Ditto.
2014 (viewsplusplus): Replaced by
2015 (view::views::operator++): New operator.
2016 (set_view_mode): Use the new view::views class.
2017 (create_listview): Ditto.
2018 (dialog_cmd): Ditto.
2019 * choose.h (actions): Remove.
2021 (pick_line): Add a new convenience constructor.
2022 (top_bucket): Remove.
2023 (pick_category_line): Reparent under pick_line, and adsorb top_bucket.
2024 (view::views): New class.
2025 * ini.h: Don't include choose.h
2026 (is_download_action): Remove.
2027 (is_upgrade_action): Remove.
2028 (is_uninstall_action): Remove.
2029 (is_full_action): Remove.
2030 * install.cc (num_replacements): New static.
2031 (rebootneeded): Ditto.
2032 (replace_one): Handle upgrades separate from removal or new installs.
2033 (install_one_source): Handle in use files.
2034 (install_one): Don't repeat upgrades.
2035 (do_install_thread): Initialize new statics.
2036 Order actions as uninstall, replace, install.
2037 Warn about rebooting if needed.
2038 * res.rc (IDS_REBOOT_REQUIRED): New string.
2039 * resource.h (IDS_REBOOT_REQUIRED): Give value.
2040 * win32.h: Declare class Win32, and update copyright and intent message.
2041 * win32.cc: New file.
2043 2002-01-15 Corinna Vinschen <corinna@vinschen.de>
2045 * io_stream.cc (io_stream::gets): Eliminate trailing new line chars.
2046 * package_meta.cc (packagemeta::uninstall): Check for additional
2047 Windows shortcut. Unset R/O file attribute before trying to delete
2050 2002-01-09 Robert Collins <rbtcollins@hotmail.com>
2052 * choose.cc (pkgtrustp): Fall back to installed if a package is not present in
2053 the current trust level. For prev, fall back via curr.
2054 (set_existence): Allow sources with no sites, but cached files to be
2056 (pick_category_line::paint): Start drawing clickable categories.
2057 * fromcwd.cc (found_file): Reinstate local file scanning.
2059 2002-01-07 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2061 * fromcwd.cc: Run indent.
2062 (do_fromcwd): Reverse sense of comment. Set next_dialog
2063 to IDD_CHOOSER instead of IDD_CHOOSE.
2064 * ini.cc (find_routine): Remove "/" from "/setup.ini".
2066 2001-01-07 Robert Collins <rbtcollins@hotmail.com>
2068 * category.cc (Categorycmp): Add a const safe version.
2069 * category.h (Categorycmp): Add a const safe version.
2070 (Category): Add operator ==.
2071 * choose.cc (fill_missing_category): Add every package to "All".
2072 (pick_category_line::paint): Add support for hidden labels, and a tree depth.
2073 (pick_category_line::click): Ditto.
2074 (view::view): Pass in a top level category to use.
2075 (view::insert_pkg): Special case - skip category "All".
2076 (view::insert_category): Ditto.
2077 (view::clear_view): Set the contents label state.
2078 (create_listview): Pass in a top level category to view().
2079 * choose.h (topbucket): Make bucket available to derived classes.
2080 (pick_category_line): Add support for hidden labels, and a tree depth.
2081 Remove our second copy of bucket.
2082 (view): Pass in a top level category to the constructor.
2083 Use pick_category_line to allow three level display.
2085 2001-01-06 Robert Collins <rbtcollins@hotmail.com>
2087 * cygpackage.h (cygpackage): Make set_[s|l]desc virtual.
2088 * iniparse.y (add_correct_version): Copy descriptions across.
2089 * package_meta.cc (SDesc): Iterate through versions, return the first with a
2091 * package_version.h (packageversion): Add new virtuals set_[l|s]desc.
2093 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
2095 * script.cc (run_script): Change cygpath:// to cygfile://.
2096 * install.cc (do_install_thread): Fix off-by-one errors.
2098 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
2100 * package_db.cc (packagedb::flush): Fix an off-by-one error.
2102 2002-01-04 Jan Nieuwenhuizen <janneke@gnu.org>
2104 * Makefile.in (realclean): more clean.
2105 (OBJS): Add script.o.
2106 * postinstall.cc (run_script_in_etc_postinstall): New function.
2107 (do_postinstall): Split off new funtion init_run_script ().
2110 (run_script): Move to script.cc. Replace some deprecated remove
2113 * script.cc: New file.
2114 * Forward port cygwin-20010707.jcn3.patch.
2115 * package_meta.cc (uninstall): Run pre- and postremove scripts.
2116 * install.cc: Typo fix.
2117 (do_install): Run script initialisation.
2119 2001-01-04 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2121 * cistring.cc: Run d2u.
2122 * cistring.h: Run d2u.
2124 * desktop.cc (etc_profile): Remove "test -f ./.bashrc && . ./.bashrc"
2125 from the generated /etc/profile. Bash will source this file
2126 automatically, and having this here merely results in .bashrc being
2127 executed twice. Run d2u.
2128 * desktop.h: Run d2u.
2130 * propsheet.cc: Run d2u.
2131 (PropSheetProc): New function. Add minimize box here instead of in
2132 PropertyPage::DialogProc.
2133 (PropSheet::Create): Change to use creation callback PropSheetProc.
2134 (DLGTEMPLATEEX): Add 'hidden' Windows struct definition.
2136 * propsheet.h: Run indent, d2u.
2137 * proppage.h: Run indent, d2u.
2139 * proppage.cc: Run d2u.
2140 (PropertyPage::DialogProc): Remove minimize-box-adding
2141 functionality. Remove commented-out "PropSheet_SetWizButtons" calls.
2142 Add support for calling virtual OnMessageCmd. Add setting of fonts in
2143 WM_INITDIALOG handler.
2144 (resource.h): New include for resource IDs.
2146 * res.rc: Resize and rearrange property page dialog templates
2147 to bring them in line with "Microsoft's Backward Compatible Wizard 97"
2148 specification. Run d2u.
2149 (IDD_SITE): Add an edit control and an "Add" button in order to
2150 combine the IDD_SITE and IDD_OTHER_URL functionality onto one page.
2151 (IDD_OTHER_URL): Remove dialog template.
2152 (IDD_DLSTATUS): Remove dialog template.
2155 (SitePage::OnBack): Remove NEXT() macro invocation.
2156 (SitePage::OnActivate): New member function.
2157 (load_dialog): Remove. Functionality subsumed into
2158 SitePage::OnActivate.
2159 (save_dialog): Change to support both list and user URLs. Remove
2160 OTHER_IDX and mirror_idx logic.
2161 (SitePage::PopulateListBox): New member function.
2162 (SitePage::CheckControlsAndDisableAccordingly): New member function.
2163 (SitePage::OnMessageCmd): New override.
2164 (check_if_enable_next): Remove.
2165 (dialog_cmd): Remove.
2166 (do_download_site_info_thread): Remove calls to NEXT() macro.
2167 (SitePage::Create): Call the single-param PropertyPage::Create
2169 (other_url): New static taken from other.cc.
2170 (SitePage::OnNext): Remove mirror_idx logic.
2171 (SitePage::OnInit): Remove "Other URL" entry from list box. Remove
2172 list box populating code, now handled in SitePage::PopulateListBox.
2173 (mirror_idx, NO_IDX, OTHER_IDX): Remove.
2174 (save_site_url): Fix potential buffer overflow problem. Switched to
2175 TCHAR in grossly premature preparation for multilingual support.
2177 (SitePage::OnActivate): New member function.
2178 (SitePage::CheckControlsAndDisableAccordingly) New member.
2179 (SitePage::OnMessageCmd): New override.
2180 (do_download_site_info_thread): Add MessageBox call on failure to
2183 * splash.cc: Run d2u.
2184 (SplashPage::OnInit): Set the font for the title.
2185 * splash.h: Run d2u.
2187 * threebar.cc: Run d2u.
2188 * threebar.h: Run d2u.
2190 * window.h: Run d2u.
2191 (Window::IsButtonChecked): New member function declaration.
2192 (Window::OnMessageCmd): New member function.
2193 (Window::SetDlgItemFont): New member function declaration.
2194 (Window::MAXFONTS, Window::Fonts, Window::FontCounter): New data
2196 * window.cc: Run d2u.
2197 (Window::IsButtonChecked): New member function definition.
2198 (Window::SetDlgItemFont): New member function definition.
2199 (Window::Window): Add initialization for FontCounter.
2200 (Window::~Window): Delete any fonts we created.
2202 * geturl.cc: Run d2u.
2203 (progress): Remove the "3" field width from the "%3d"
2204 percent-complete format indicator. Causes line to not start at
2205 beginning of text box, and does little to help with "jumping", since
2206 the "bytes downloaded so far" field is variable-width anyway. Change
2207 kb/s format field to "%03.1" to 0-pad the kb/s number in the event of
2208 painfully slow connections, or temporary slowdowns in faster
2209 connections should such more-instantaneous functionality become
2213 (NetPage::OnMessageCmd): New member function declaration.
2214 (NetPage::CheckIfEnableNext): New member function declaration.
2216 (NetPage::OnMessageCmd): New member function definition.
2217 (dialog_cmd): Remove, subsumed into NetPage::OnMessageCmd.
2218 (check_if_enable_next): Remove.
2219 (NetPage::CheckIfEnableNext): New member function, subsumes
2220 check_if_enable_next.
2221 (propsheet.h): Add include.
2222 (NetPage::Init): Add call to CheckIfEnableNext.
2223 (load_dialog): Remove call to check_if_enable_next.
2224 (NetPage::Create): Call single-template-ID-parameter overload of
2225 PropertyPage::Create instead of three-parameter one.
2227 * Makefile.in (OBJS): Remove other.o.
2228 * other.cc: Remove file.
2230 2002-01-01 Robert Collins <rbtcollins@hotmail.com>
2232 * README: Update TODO's.
2233 * choose.cc (set_existence): Delete non installed packages with no
2235 (fill_missing_category): Fix an off-by-one error.
2236 (default_trust): Ditto. Also delete any unused categories.
2237 (view::init_headers): Fix an off-by-one error.
2238 (set_view_mode): Ditto.
2239 (set_view_mode): Ditto.
2240 (create_listview): Ditto.
2241 (dialog_cmd): Ditto.
2243 * io_stream.cc: Indent.
2244 * io_stream.h: Ditto.
2245 * package_db.cc: Ditto.
2246 * package_meta.h: Const correctness for SDesc ();
2247 * proppage.cc: Run d2u and indent.
2248 * propsheet.cc: Run d2u and indent.
2249 * window.cc: Run d2u and indent.
2250 * window.h: Run d2u and indent.
2252 2001-12-28 Christopher Faylor <cgf@redhat.com>
2254 * Makefile.in (iniparse.o): Accommodate newer bisons.
2256 2001-12-23 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2258 * window.h (Window): New file, new class.
2259 * window.cc (Window): New file, new class.
2261 * threebar.h (ThreeBarProgressPage): New file, new class.
2262 * threebar.cc (ThreeBarProgressPage): New file, new class.
2264 * splash.h (SplashPage): New file, new class.
2265 * splash.cc (SplashPage): Replace file with implementation of new
2268 * source.h (SourcePage): New file, new class.
2269 * source.cc: Run indent.
2270 (SourcePage): Add class implementation to this file.
2271 (do_source): Remove, functionality subsumed by SourcePage::Create()
2272 and SourcePage::OnDeactivate().
2273 (dialog_proc): Remove, functionality subsumed by
2274 SourcePage::OnActivate().
2276 * site.h: Run indent.
2277 (SitePage): Add class declaration.
2278 * site.cc: Run indent.
2279 (SitePage): Add class implementation.
2280 (do_download_site_info_thread): New function.
2281 (context): New var. Context info for do_download_site_info_thread().
2282 (do_download_site_info): New function.
2283 (SitePage::Create, SitePage::OnInit SitePage::OnNext)
2284 (SitePage::OnBack): SitePage class implementation..
2285 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers, now handled
2286 by SitePage members.
2287 (dialog_proc): Remove, now handled by SitePage::OnInit and base class
2289 (do_site): Remove, now handled by do_download_site_info_thread() and
2290 SitePage::OnNext functionality.
2291 (get_site_list): Remove dismiss_url_status_dialog() call.
2293 * root.h (RootPage): New file, new class.
2294 * root.cc: Run indent.
2295 (dialog_cmd): Pass parent HWND parameter to note(), yesno().
2296 (dialog_proc): Remove.
2298 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL clauses from switch.
2299 (RootPage::OnInit): New member function. Move get_root_dir() logic to
2300 here from do_root().
2301 (RootPage::Create): New member function.
2302 (RootPage::OnNext): New member function. Move IDOK logic from
2303 dialog_cmd() to here.
2304 (RootPage::OnBack): New member function.
2306 * propsheet.h (PropSheet): New file, new class.
2307 * propsheet.cc (PropSheet): New file, new class.
2309 * proppage.h (PropertyPage): New file, new class.
2310 * proppage.cc (PropertyPage): New file, new class.
2312 * postinstall.cc (do_postinstall): Add owner parameter.
2314 * other.cc (do_other): Add owner parameter.
2316 * nio-file.cc (NetIO::Purl): Pass NULL parent param to note().
2317 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Pass NULL parent param to
2319 * nio-http.cc (retry_get): Pass NULL parent param to get_auth(),
2322 * nio-ie5.cc (NetIO::_url): Pass NULL parent param to note(),
2323 get_auth(), get_proxy_auth().
2325 * netio.h (get_auth, get_proxy_auth, get_ftp_auth): Add owner param.
2326 * netio.cc (auth_common, NetIO::get_auth, NetIO::get_proxy_auth,
2327 NetIO::get_ftp_auth)
2328 (auth_common): Add owner param. Pass owner param to DialogBox.
2329 (NetIO::get_auth, NetIO::get_proxy_auth, NetIO::get_ftp_auth): Pass
2330 owner param to auth_common().
2332 * net.h (NetPage): New file, new class.
2333 * net.cc: Run indent.
2334 (net.h, threebar.h): Add includes.
2335 (Progress): Add extern.
2336 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, now handled by
2337 property sheet logic. Saved temporarily for reference.
2338 (NetPage::Create, NetPage::OnInit, NetPage::OnDeactivate,
2339 NetPage::OnNext, NetPage::OnBack):
2340 New implementation of NetPage class members.
2342 (dialog_proc): Remove.
2344 * msg.h (fatal, note, yesno): Add owner param.
2345 * msg.c (fatal, note, yesno, mbox): Add owner param.
2346 (mbox): Remove MB_TOPMOST from MessageBox call. Unnecessary and wrong
2347 now that we have a parent.
2349 * main.cc: Run indent.
2350 (commctrl.h, proppage.h, propsheet.h, splash.h, source.h)
2351 (localdir.h, net.h, site.h, choose.h, threebar.h, desktop.h): Include
2353 (root_dialog_proc): extern into this file.
2354 (Progress): Progress dialog defined here, used in several other files.
2355 (WinMain): Instantiate and create Splash, Source, Root, LocalDir, Net,
2356 Site, Chooser, Desktop pages and MainWindow sheet. Call
2357 InitCommonControls() to make sure Windows is set up for our use of
2358 property sheets. Add pages to sheet.
2359 Call MainWindow.Create() to "DoModal". Remove main loop, that logic is
2360 now handled by the PropSheet class.
2361 (root.h): Add include.
2363 * log.cc (log_save): Pass NULL parent to fatal().
2364 (exit_setup): Pass NULL parent to note().
2366 * localdir.h (LocalDirPage): New file, new class.
2367 * localdir.cc: Run indent.
2368 (localdir.h): New include.
2369 (threebar.h): New include.
2370 (Progress): extern into this file.
2371 (LocalDirPage::Create, LocalDirPage::OnInit, LocalDirPage::OnActivate)
2372 (LocalDirPage::OnNext, LocalDirPage::OnBack): Implementation of
2374 (LocalDirPage::OnNext): Move log() call from do_local_dir() to here.
2375 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers.
2376 (do_local_dir): Remove.
2377 (dialog_proc): Remove.
2378 (cwd): Remove, not used by anything.
2380 * install.cc: Run indent.
2381 (process.h, threebar.h): New includes.
2382 (Progress): extern into this file.
2383 (ins_dialog, ins_action, ins_pkgname, ins_filename, ins_pprogress)
2384 (ins_iprogress, ins_diskfull, init_event): Remove, now handled by
2385 ThreeBarProgressPage.
2386 (dialog_cmd, dialog_proc, dialog): Removed, handled in
2387 ThreeBarProgressPage.
2388 (init_dialog): Remove all mention of the above ins_* handles. Now
2389 handled in ThreeBarProgressPage. Altered SetWindowText()s to call
2390 ThreeBarProgressPage instance Progress directly.
2391 (progress): Alter bar update logic to call ThreeBarProgressPage
2392 instance Progress directly.
2393 (uninstall_one): Alter SetWindowText()s to call ThreeBarProgressPage
2394 instance Progress directly.
2395 (install_one_source): Alter SetWindowText()s to call
2396 ThreeBarProgressPage
2397 instance Progress directly. Pass NULL parent to note().
2398 (do_install_thread): Rename from do_install(), added owner param.
2399 Alter SetWindowText()s to call ThreeBarProgressPage instance Progress
2401 Remove dismiss_url_status_dialog() call, no longer necessary. Remove
2402 ShowWindow(<hide>) call, also unnecessary now. Pass owner handle to
2404 (do_install_reflector): New function.
2405 (do_install): New function.
2407 * ini.cc (process.h, threebar.h): New includes.
2408 (Progress): externed into this file.
2409 (find_routine): Pass NULL parent to note().
2410 (do_local_ini): Add owner param.
2411 (do_remote_ini): Add owner param. Pass owner to get_url_to_membuf()
2412 and note(). Remove call to dismiss_url_status_dialog().
2413 (do_ini_thread): Rename from do_ini(). Add owner param. Pass owner to
2414 do_local_ini(), do_remote_ini(), yesno(), and note(). Set next_dialog
2415 to IDD_CHOOSER on exit.
2416 (do_ini_thread_reflector): New function.
2417 (context): New var. Context for do_ini_thread.
2418 (do_ini): New function.
2420 * geturl.h (get_url_to_membuf, get_url_to_string, get_url_to_file): Add
2422 * geturl.cc (gw_dialog, gw_url, gw_rate, gw_progress, gw_pprogress,
2424 (gw_progress_text, gw_pprogress_text, gw_iprogress_text, init_event):
2426 (threebar.h): New include.
2427 (Progress): externed into this file.
2428 (dialog_cmd, dialog_proc, dialog): Removed, handled by
2429 ThreeBarProgressPage now.
2430 (init_dialog): Remove "if (gw_dialog == 0)" clause. Alter
2432 and bar setting SendMessage()s to call ThreeBarProgressPage instance
2433 Progress directly. Remove "one bar only" logic, this is now handled
2434 explicitly in the ThreeBarProgressPage class.
2435 (progress): Altered bar and text update logic to call
2436 ThreeBarProgressPage instance Progress directly. Changed kbps
2437 calculation to floating point and now print out a single decimal
2439 (get_url_to_membuf): Add owner param. Pass it to init_dialog.
2440 (get_url_to_string): Add owner param. Pass it to get_url_to_membuf.
2441 (get_url_to_file): Add owner param. Pass it to init_dialog. Alter bar
2442 update logic to call ThreeBarProgressPage instance Progress directly.
2443 (dismiss_url_status_dialog): Remove.
2445 * fromcwd.cc (do_fromcwd): Add owner param. Initialize found_ini to
2448 * download.cc: Run indent.
2449 (process.h, threebar.h): New includes.
2450 (Progress): externed into this file.
2451 (download_one): Add owner param. Pass it to get_url_to_file().
2452 (do_download_thread): Renamed from do_download. Add owner param. When
2453 calculating total_download_bytes, take binpicked and srcpicked into
2454 account. Remove call to dismiss_url_status_dialog(), no longer needed.
2455 Pass owner handle to download_one() and yesno().
2456 (do_download_reflector, do_download): New functions.
2457 (context): New var. Context for do_download_thread().
2459 * dialog.h (D(x)): Add owner param.
2461 * desktop.h (DesktopSetupPage): New file, new class.
2462 * desktop.cc: Run indent.
2463 (desktop.h): Add include.
2464 (dialog_proc, do_desktop): Remove, now handled in
2465 DesktopSetupPage::OnInit().
2466 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, handled in
2467 DesktopSetupPage::OnFinish(), DesktopSetupPage::OnBack(), and PropSheet
2469 (DesktopSetupPage::Create, DesktopSetupPage::OnInit)
2470 (DesktopSetupPage::OnBack, DesktopSetupPage::OnFinish): Implementation
2471 of DesktopSetupPage.
2473 * cistring.h: New file, new class.
2474 * cistring.cc: New file, new class.
2476 * choose.h: Run indent.
2477 (Chooser): New class declaration.
2478 * choose.cc: Run indent.
2479 (do_choose): Add owner param. Pass it to DialogBox() and
2481 (Chooser): New class implementation.
2483 * res.rc (IDS_VERSION_INFO): New string.
2484 (IDD_SOURCE, IDD_LOCAL_DIR, IDD_ROOT, IDD_SITE, IDD_OTHER_URL)
2485 (IDD_DLSTATUS, IDD_INSTATUS, IDD_SPLASH, IDD_CHOOSE, IDD_DESKTOP):
2486 Change WS_POPUP to WS_CHILD. Numerous positioning/size changes
2488 (IDD_CHOOSE): Give template the WS_EX_CONTROLPARENT style to enable
2489 TAB control navigation etc. Give the controls a reasonable tab order.
2490 Grouped radio buttons. Something's still not right, can't tab away
2491 from back/next/cancel group reliably.
2492 * resource.h (IDD_CHOOSER): New dialog ID.
2494 * Makefile.in (OBJS): Add cistring.o, proppage.o, propsheet.o,
2495 threebar.o, and window.o.
2497 2001-12-21 Robert Collins <rbtcollins@hotmail.com>
2499 * choose.cc (listview_proc): Update the scrollbar when the headers are dragged.
2500 (pick_pkg_line::paint): Clip columns to prevent overlap.
2502 2001-12-20 Robert Collins <rbtcollins@hotmail.com>
2504 * Makefile.in: Add libcomctl32.a for setup.exe.
2505 * archive.h (archive): Prevent non-child direct creation of the class.
2506 * archive_tar.h (archive_tar): Prevent inaccurate synthetic copy and assignment.
2507 * choose.cc: Include commctrl for the choose header.
2508 (NEW_COL_SIZE_SLOP): Define without magic numbers.
2509 (pkgtrustp): Convert to function.
2510 (set_action): Remove.
2511 (add_required, fill_missing_category,default_trust): Use list syntax for
2514 (choose_caption): Remove.
2515 (topbucket::paint): New method.
2516 (topbucket::empty): Ditto.
2517 (topbucket::click): Ditto.
2518 (topbucket::~topbucket): Ditto.
2519 (paint): Remove i,ii and p as they are obsolete.
2520 Remove header drawing code.
2521 Use new chooser method to paint the chooser.
2522 Use new chooser itemcount method.
2523 (scroll_common): Rename to view::scroll.
2524 Scroll the header window separately.
2525 (list_vscroll, list_hscroll, list_click): Update for new chooser methods.
2526 (listview_proc): Look for header messages.
2527 (note_width): Accept stringless calls.
2528 (pick_line::set_line): Remove.
2529 (pick_line::paint): Remove.
2530 (pick_pkg_line::paint): Paint this one line, using the header column widths.
2531 (pick_category_line::paint): Paint this category, and anything in the bucket.
2532 (pick_line::click): Remove.
2533 (pick_pkg_line::click): Handle a click.
2534 (pick_category_line::click): Handle a click.
2535 (_view): Rename all to view.
2536 (view::view): Initialise the control contents.
2537 (view::set_headers): Work with the header control.
2538 (view::init_headers): Use list syntax for package list.
2539 Rearrange the width logic a little.
2540 (view::insert_pkg): Update to use the hierarchy.
2541 (view::insert_category): Ditto.
2542 (view::insert_at, view::insert_under): Remove.
2543 (view::clear_view): Update to use the hierarchy.
2544 (view::click): Update to use the hierarchy.
2545 (set_view_mode): Use list syntax for package list.
2546 Update for new chooser methods.
2547 (DoInsertItem): New helper function. (Needs a home somewhere).
2548 (create_listview): Remove choose control code and use the constructor instead.
2549 (dialog_cmd,scan2,do_choose): Use list syntax for package list.
2550 * choose.h: Include newly required headers list and package_meta.
2551 (_voew): Rename to view.
2552 (pick_line): Convert to an ABC.
2553 (pick_pkg_line): New class.
2554 (pick_catgory_line): New class.
2555 (topbucket): New class.
2556 (view::scroll): New method created from listview_scroll function.
2557 * desktop.cc (make_passwd_group): Use list syntax for package list.
2558 * download.cc (do_download): Use list syntax for package list.
2559 * fromcwd.cc (found_file): Use list syntax for package list.
2560 * iniparse.y (pacakges): Use list syntax for package list.
2561 * install.cc (uninstall_one): Use list syntax for package list.
2562 (do_install): Use list syntax for package list.
2563 * io_stream.h (io_stream): Prevent non-child direct creation of the class.
2564 Prevent inaccurate synthetic copy and assignment.
2565 * list.h: Include required header stdlib.
2566 Work on const correctness.
2567 * package_db.cc (packagedb::getpackagebyname): Remove.
2568 (packagedb::packagedb): Remove custom list code, and make db a local.
2569 (packagedb::getfirstpackage): Remove.
2570 (packagedb::getnextpackage): Remove.
2571 (packagedb::addpackage): Remove.
2572 (flush): Remove custom list code.
2573 (packagedb::registerpackage): Remove.
2574 (packagedb::packages): New static member.
2575 (packagedb::task): New static member.
2576 * package_db.h (PackageDBActions): New enum.
2577 (packagedb): Remove getfirstpackage, getnextpackage, getpackagebyname,
2578 addpackage, registerpackage, packages, packagecount, curr_package, db.
2580 * pacakge_meta.cc: Include package_db.h.
2581 (packagemeta::action_caption): New method.
2582 (packagemeta::set_action): New method.
2583 * package_meta.h (CategoryPackage): Initialise key.
2584 (packagemeta): Initialise key.
2585 Add set_action and action_caption methods.
2586 Prevent inaccurate synthetic copy and assignment.
2587 * resource.h (IDC_CHOOSE_LISTHEADER): New ID.
2588 * source.cc: Include package_db for db manipulation.
2589 (save_dialog): Set the db task.
2590 * win32.h: Tell the w32 include headers what IE version to expect/require.
2592 2001-12-06 Robert Collins <rbtcollins@hotmail.com>
2594 * README: Wishlist updates.
2596 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
2598 * package_db.cc (getnextpackage): Don't overrun the array.
2600 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
2602 * Makefile.in (OBJS): Add setup_version.o.
2603 (version.c): Rename to setup_version.
2604 * choose.cc (set_action): Prevent NULL pointer dereference.
2605 (package_sort): Remove.
2606 * fromcwd.cc (canonicalize_version): Moved to version.cc.
2607 (check_ini): New function for use with find to see if there is a cached setup.ini.
2608 (do_fromcwd): Check for a cached setup.ini from any mirror site.
2609 * ini.cc (find_routine): New function, for finding cached setup.ini's.
2610 (do_local_ini): New function, drives parsing of local ini's.
2611 (do_remote_ini): New function, drives parsing and caching of remote ini's.
2612 (do_ini): Move guts to do_remote_ini and do_local_ini.
2613 * list.h (removebyindex): New method.
2614 * other.cc (save_dialog): Use new site_list and all_site_list to add the
2615 new site to the site picklist.
2616 (dialog_cmd): Only save the dialog when exiting the dialog.
2617 * res.rc (IDD_SITE): Make IDC_URL_LIST a multiple-selection control.
2618 * site.cc (site_list_type): Move to site.h
2619 (site_list): New global, sites chosen by the user.
2620 (all_site_list): New global, all potential sites.
2621 (site_list_type::init): New method, parses a mirror.lst URL string into a
2622 site_list_type object.
2623 (site_list_type::site_list_type): New method.
2624 (check_if_enable_next): Examine the control, not a local variable.
2625 (load_dialog): Select all the user chosen sites by default.
2626 (save_dialog): Adjust for multiple selection semantics.
2627 (save_site_url): Save all user chosen sites.
2628 (dialog_cmd): Don't save the dialog when the listbox recieves a message -
2630 Remove obsolete other_url reference.
2631 (dialog_proc): Use all_site_list instead of site_list.
2632 (site_sort): Remove.
2633 (get_site_list): Remove malloc use - use list template instead.
2634 Move site_list_type initialisation to site_list_type::init().
2635 (get_initial_list_idx): Renamed to ...
2636 (get_saved_sites): this. Also read in multiple sites to the site_list.
2637 (do_site): Use all_site_list not site_list.
2638 Log all chosen sites.
2639 * site.h: New file, defines site related class, functions and variables.
2640 * state.h: Add comment about use of state.h
2641 (mirror_site): Remove.
2642 (other_url): Remove.
2643 (MIRROR_SITE): Remove.
2644 * version.cc: New file, for version-handling and related functions.
2646 2001-12-02 Robert Collins <rbtcollins@hotmail.com>
2648 * Makefile.in: Add filemanip.o to setup.
2649 * archive.cc (archive::extract_file): Use new io_stream method 'copy'.
2650 * archive_tar.h (archive_tar_file): Implement get_size virtual.
2651 (archive_tar): Ditto.
2652 * choose.cc (set_action): Use [] operator instead of getnth - its more readable.
2654 (_view::init_headers): Ditto.
2655 (_view::insert_pkg): Ditto.
2656 (set_view_mode): Ditto.
2659 (base): Moved to filemanip.cc.
2660 (find_tar_ext): Ditto.
2661 (parse_filename): Ditto.
2662 (_Info::_Info): Remove.
2663 * compress_bz.h (compress_bz): Implement get_size virtual.
2664 * compress_gz.h (compress_gz): Implement get_size virtual.
2665 * cygpackage.cc (cygpackage::destroy): Use array delete for char * objects.
2666 * download.cc (get_file_size): Move to filemanip.cc.
2667 (check_for_cached): Use [] operator instead of getnth - its more readable.
2668 (download_one): Ditto.
2669 * filemanip.cc: New file.
2670 * geturl.cc (init_dialog): Make url a pointer to const as it is not modified.
2671 (get_url_to_membuf): New function - contains get_url_to_string worker code.
2672 (get_url_to_string): Becomes a trivial wrapper to get_url_to_membuf.
2673 * geturl.h: Declare new prototype.
2674 * ini.cc (do_ini): Use get_url_to_membuf and pass ini_init an io_stream.
2675 Tidy up the error code a little.
2676 * ini.h: Remove __cplusplus protection for ini_init.
2678 * inilex.l: Remove old globals.
2679 (ini_init): Use an io_stream for getting the characters.
2680 (ini_getchar): Ditto.
2681 * iniparse.y: Declare yylex as a C++ function.
2682 (add_correct_version): Use [] operator instead of getnth - its more readable.
2683 * io_stream.cc (io_stream::move_copy): Use the copy method.
2684 (io_stream::copy): New method to simply copy from one stream to another.
2685 * io_stream.h (io_stream): New static method copy, and virtual method get_size.
2686 * io_stream_cygfile.cc (io_stream_cygfile::get_size): Implement this.
2687 * io_stream_cygfile.h (io_stream_cygfile::get_size): Declare this.
2688 * io_stream_file.cc (io_stream_file::get_size): Implement this.
2689 * io_stream_file.h (io_stream_file::get_size): Declare this.
2690 * io_stream_memory.h: Include errno as it's neded to parse the header.
2691 (io_stream_memory::get_size): Implement this.
2692 (io_stream_memory::st_size): Delete this.
2693 * list.h: Change getnth into the [] operator.
2694 * netio.cc (NetIO::NetIO): Change prototype to reflect Purl not being modified.
2695 (NetIO::set_url): Ditto.
2696 (NetIO::open): Ditto.
2697 * netio.h: As for netio.cc.
2698 * nio-file.cc (NetIO_File::NetIO_File): Change prototype to reflect Purl not
2700 * nio-file.h: Ditto.
2701 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
2702 * nio-ftp.h (NetIO_FTP::NetIO_FTP): Ditto.
2703 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Ditto.
2704 * nio-http.h (NetIO_HTTP::NetIO_HTTP): Ditto.
2705 * nio-i5.cc (NetIO_IE5::NetIO_IE5): Ditto.
2706 * nio-i5.h (NetIO_IE5::NetIO_IE5): Ditto.
2707 * package_meta.cc (packagemeta::~packagemeta): Bugfix: use array delete.
2708 * package_source.cc (packagesource::set_canonical): Ditto.
2709 (packagesource::set_cached): Ditto.
2710 * package_source.h (site::~site): Ditto.
2711 * site.cc: Change site_list_type to a class, and search and replace sort_key to
2714 2001-12-01 Robert Collins <rbtcollins@hotmail.com>
2716 * package_source.cc (packagesource::set_canonical): Filename was out by one.
2718 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
2720 * Makefile.in (OBJS): Remove category_list - it's not needed.
2721 * README: More wishlist updates.
2722 * category.cc (Category::Category): Initialise new members.
2723 (Categorycmp): New function.
2724 * category.h (Category): New member key for template use.
2725 * category_list.cc: Remove.
2726 * category_list.h: Remove.
2727 (Categorycmp): New function prototype.
2728 * choose.cc: Remove category_list - not needed.
2729 (set_action): Only show the 'source' option when the source is actually
2731 (add_required): Fix recursion limiter to 5.
2732 (fill_missing_category): Use list access.
2733 (default_trust): Ditto.
2734 (pick_line::paint): Ditto.
2735 (_view::init_headers): Ditto.
2736 (_view::insert_pkg): Ditto.
2737 (_view::insert_category): Ditto.
2738 (_view::click): Ditto.
2739 (set_view_mode): Ditto.
2741 * cygpackage.h: Remove category_list - not needed.
2742 * geturl.cc (get_url_to_string): Fix null byte insertion.
2743 * inipatse.y: Remove category_list - not needed.
2744 (categories): Use list access.
2745 * package_db.cc: Ditto.
2746 * package_db.h: Remove category_list - not needed.
2747 (packagedb): Use the list template for categories.
2748 * package_meta.cc (add_category): Ditto.
2749 * package_meta.h (CategoryPackage): Link to the category as well.
2750 (packagemeta): Use a list of CategoryPackages instead of Categories
2751 for more memory efficient cross-referencing.
2753 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
2755 * package_db.cc (packagedb::flush): Write a canonical version for all packages
2756 irrespective of the media they were installed from.
2758 2001-11-29 Robert Collins <rbtcollins@hotmail.com>
2760 * Makefile.in (OBJS): Add package_source and rfc1738.
2761 * README: Wishlist update.
2762 * category_list.cc (register_category): Use references.
2763 * category_list.h (CategoryList): Ditto.
2764 * choose.cc (isinstalled): Remove.
2765 (pkgtrustp): New macro.
2766 (set_action): Use packagemeta.
2767 (add_required): Ditto.
2768 (choose_caption): Example package to choose caption, rather than state flags.
2769 (check_existence): Remove.
2770 (set_existence): Remove old code.
2771 (fill_missing_category): Use packagemeta.
2772 (keep_or_skip): Remove.
2773 (default_trust): Use packagemeta and set trust values directly.
2774 (pick_line::set_line): Use packagemeta.
2775 (_view::insert_pkg): Ditto.
2776 (_view::insert_category): Ditto.
2777 (_view::click): Ditto.
2778 (set_view_mode): Ditto. Also remove "exclude" code.
2779 (create_listview): Use packagemeta.
2780 (dialog_cmd): Ditto.
2781 (getpkgbyname): Remove
2782 (scan2): Use packagemeta. Temporarily comment out the holefinding code.
2783 (read_installed_db): Remove.
2784 (package_sort): Use packagemeta.
2785 (do_choose): Use packagemeta. Don't sort the packages - the db does that.
2786 * choose.h: Use packagemeta.
2787 * cygpackage.cc (cygpackage::cygpackage): Initialise all variables.
2788 (cygpackage::cygpackage): Ditto.
2789 (cygpackage::set_canonical_version): Copy the passed string.
2790 (cygpackage::~cygpackage): Move cleanup code to destroy().
2791 (cygpackage::destroy): New function.
2792 (cygpackage::getfirstfile): Use a separate buffer.
2793 (cygpackage::getnextfile): Ditto.
2794 (cygpackage::Canonical_version): New function.
2795 (cygpackage::set_sdesc): Ditto.
2796 (cygpackage::set_ldesc): Ditto.
2797 * cygpackage.h (cygpackage::Canonical_version): New method.
2798 (cygpackage::set_sdesc): New method.
2799 (cygpackage::set_ldesc): New method.
2800 (cygpackage::SDesc): New method.
2801 (cygpackage::LDesc): New method.
2802 (cygpackage::set_canonical_version): New method.
2803 * desktop.cc: Include packagedb headers.
2804 (make_password_group): Use packagemeta.
2805 * download.cc: Include packagedb headers.
2806 (check_for_cached): New method to find any cached file and fill out the database
2808 (download_one): Take a packagesource, support multiple mirrors.
2809 (do_download): Use packagemeta.
2810 * from cwd.cc: Include packagedb headers.
2811 (found_file): Use packagemeta.
2812 * ini.cc (do_ini): Beginning of multiple-mirror support.
2813 * ini.h (CategoryPackage): Remove.
2814 (Dependency): Remove.
2816 (new_package,getpkgbyname,getpackagecategorybyname,add_category): Remove.
2817 * inilex.l: Support multiple mirrors.
2818 * iniparse.y: Include packagedb headers.
2819 (parser): Use packagemeta.
2820 (new_package): Remove.
2821 (add_correct_version): New function.
2822 (new_requirement): Remove.
2823 (add_category): Remove.
2824 * install.cc (uninstall_one): Use packagemeta.
2825 (install_one_source): New function.
2826 (install_one): Use packagemeta.
2827 (do_install): Use packagemeta.
2828 * io_stream.cc (io_stream::move): Bugfix on move/copy case.
2829 * io_stream_cygfile.cc (io-stream_cygfile::set_mtime): Do not reopen the file
2830 after setting the mtime, it makes no sense, and results in 0 length files.
2831 * io_stream_file.cc (io-stream_file::set_mtime): Ditto.
2832 * list.h: New file, template class for a form of list.
2833 * package_db.cc (packagedb::registerpackage): New function.
2834 * package_db.h (packagedb::npackages ()): New method.
2835 * package_meta.cc (packagemeta::add_version): Use list template.
2836 (packagemeta::set_installed): Ditto.
2837 (packagemeta::add_category): New method.
2838 * package_meta.h: Include necessary headers to parse the class.
2839 (CategoryPackage): New class.
2840 (packagemeta): Initialise all members.
2841 (packagemeta::SDesc): New method.
2842 (packagemeta::Categories): New method.
2843 (packagemeta::add_category): Ditto.
2844 (packagemeta::versions): Change to be a list instance.
2845 * package_source.cc (packagesource::set_canonical): New method.
2846 (packagesource::set_cached): New method.
2847 * package_source.h: Include necessary headers to parse the class.
2849 (packagesource::packagesource): Initialize all members.
2850 (packagesource): Make this class non-abstract.
2851 * package_version.cc (packageversion::packageversion): New method.
2852 * package_version.h (Dependency): New class.
2853 (packageversion::Canonical_vesion): New method.
2854 (packageversion::SDesc): New method.
2855 (packageversion::LDesc): New method.
2856 (packageversion::new_requirement): Ditto.
2857 (packageversion::srcpicked, binpicked): What to install.
2858 (packageversion::src, bin): Installation source data.
2859 * rfc1738.cc: New file. Escapes special characters in URL's.
2862 2001-11-26 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2864 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Stop header parsing when
2865 SimpleSocket::gets() returns a zero-length string, so that we
2866 don't end up eating the entire stream thinking it's all header info.
2868 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
2870 * install.cc (badrename): Remove.
2871 (do_install): Use packagedb flush method to write /etc/setup/installed.db.
2872 * io_stream.cc (io_stream::move_copy): New method.
2873 (io_stream::move): New method.
2874 * io_stream.h (io_stream): New methods move and move_copy.
2875 * io_stream_cygfile.cc (io_stream_cygfile::move): New method.
2876 * io_stream_cygfile.h (io_stream_cygfile): New method move.
2877 * io_stream_file.cc (io_stream_file::move): New method.
2878 * io_stream_file.h (io_stream_file): New method move.
2879 * package_db.cc (packagedb::flush): New method.
2880 * package_db.h (packagedb): New method flush.
2882 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
2884 * Makefile.in (OBJS): Add package_version.
2885 * ategory.cc (Category::Category): Update constructors.
2886 * category_list.cc (CategoryList::register_category): Insert correctly.
2887 * choose.cc: Include package_version.h, not package.h.
2888 * cygpackage.cc: Ditto.
2889 (cygpackage::uninstall): New method.
2890 * cygpackage.h (cygpackage): Rename genericpackage to packageversion.
2891 New method uninstall.
2892 * hash.cc (add, has, enumerate): Change prototype to be accurate.
2893 * hash.h (hash): Change prototypes to be accurate.
2894 * ini.h (_Info): New parameterless constructor.
2895 (CategoryPackage): New constructor.
2897 * install.cc: Don't include unneeded headers.
2898 Include package database headers.
2899 (hash::add_subdirs): Remove.
2900 (uninstall_one): Use packagemeta->uninstall to perform the uninstallation.
2901 Don't uninstall source packages.
2902 (do_install): Just can uninstall_one once as we ignore source packages now.
2903 Don't copy the installed.old database accross, instead iterate through the
2904 packagedb packages list and write the isntalled packages out.
2905 * package_db.cc: Include package_version.h, not package.h.
2906 (packagedb::packagedb): Never let db be undefined.
2907 Record the installation filename, so we can reconstruct installed.db.
2908 (packagedb::addpackage): Insert packages in alpha sorted order.
2909 (packagedb::categories): Initialise correctly.
2910 * package_meta.cc: Include win32 and mount headers as a workaround to
2911 current io_stream limitations. Include a TODO about that.
2912 (standard_dirs): New, from install.cc.
2913 (hash::add_subdirs): New, from install.cc.
2914 (packagemeta::set_installed): Rename genericpackage to packageversion.
2915 (packagemeta::uninstall): New method.
2916 * package_meta.h: Rename genericpackage to packageversion.
2917 (packagemeta): Update constructor.
2918 (add_version, set_installed): Rename genericpackage to packageversion.
2919 (uninstall): New method.
2920 (installed_from): New member.
2921 * package_source.cc: New file.
2922 * package_source.h: New file.
2923 * package_version.cc: New file.
2924 * package_version.h: New file.
2925 * package.cc: Removed.
2926 * package.h: Removed.
2928 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
2930 * Makefile.in (OBJS): Add category.o and category_list.o.
2931 * category.h: New file.
2932 * category.cc: New file.
2933 * category_list.h: New file.
2934 * category_list.cc: New file.
2935 * choose.cc: Include category headers.
2936 (fill_missing_category): Use package_db to access global categories.
2937 (_view::insert_pkg): Ditto.
2938 (_view::insert_category): Ditto.
2939 (set_view_mode): Ditto.
2940 (getcategorybyname): Remove.
2941 * cygpackage.h: Include category_list.h to parse this correctly.
2942 (cygpackage): New virtual &Categories.
2943 * ini.h (_CategoryPackage): More C to C++ conversion.
2945 (getcategorybyname): Remove.
2946 (register_category): Remove.
2947 * iniparse.y: Include package db and category headers.
2948 (categories): Use package_db to access global categories.
2950 (ncategories): Remove.
2951 (register_category): Remove.
2952 * package.h: New virtual &Categories.
2953 * package_db.cc (packagedb::packagedb): Don't read the installed db twice.
2954 (packagedb::categories): Declare.
2955 * package_db.h (packagedb): New member categories for global categories list.
2957 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
2959 * choose.h: Don't include ini.h
2960 * ini.h: Allow pure c++ in the header file.
2962 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
2964 * install.cc (do_install): Write a version 2 installed.db file.
2965 * package_db.cc (packagedb::packagedb): Read version 1 and 2 installed.db files.
2967 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
2969 * Makefile.in (OBJS): Add package abstraction objects.
2970 * choose.cc: Include package abstraction headers.
2971 (read_installed_db): Use packagedb class and ignore installed sources.
2972 * cygpackage.cc: New file.
2973 * cygpackage.h: New file.
2974 * filemanip.h (get_file_size): Use unixy types.
2975 * package.h: New file.
2976 * package.cc: New file.
2977 * package_db.cc: New file.
2978 * package_db.h: New file.
2979 * package_meta.cc: New file.
2980 * package_meta.h: New file.
2982 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
2984 * REAME: Updates to wishlist.
2986 2001-11-16 Robert Collins <rbtcollins@hotmail.com>
2988 * README: Updated and added my list of wishlist and todo items.
2990 2001-11-14 Robert Collins <rbtcollins@hotmail.com>
2992 * Makefile.in (OBJS): Include io_stream_memory in setup.exe.
2993 * archive_tar.cc (archive_tar::write): New prototype.
2994 (archive_tar::seek): New method.
2995 * archive.h (archive_tar_file): Update write() and add seek().
2996 (archive_tar): Ditto.
2997 * archive_tar_file.cc (archive_tar_file::write): New prototype.
2998 (archive_tar_file::seek): New method.
2999 * compress_bz.cc (compress_bz::write): New prototype.
3000 (compress_bz::seek): New function.
3001 * compress_bz.h (compress_bz): Update write() and add seek().
3002 * compress_gz.cc (compress_gz::write): New prototype.
3003 (compress_gz::seek): New function.
3004 * compress_gz.h (compress_gz): Update write() and add seek().
3005 * geturl.cc: Include io_stream headers.
3007 (get_url_to_string): Use a io_stream_memory buffer instead of GUBuf.
3008 * io_stream.h (io_stream_seek_t): New enum.
3009 (io_stream): Update write() and add seek().
3010 * io_stream_cygfile.cc (io_stream_cygfile::write): New prototype.
3011 (io_stream_cygfile::seek): New function.
3012 * io_stream_cygfile.h (io_stream_cygfile): Update write() and add seek().
3013 * io_stream_file.cc (io_stream_file::write): New prototype.
3014 (io_stream_file::seek): New function.
3015 * io_stream_file.h (io_stream_file): Update write() and add seek().
3017 2001-11-13 Brian Keener <bkeener@thesoftwaresource.com>
3019 * localdir.cc: Add headers unistd.h and port.h.
3020 (save_local_dir): Expand search logic to include local directory for
3021 location of file last-cache.
3022 (dialog_cmd): Skip IDD_ROOT when downloading and use Back button.
3023 (do_local_dir): Expand search logic to include local directory for file
3025 * res.rc (IDD_CHOOSE_DIALOG): Add hotkey to View button.
3026 * Source.cc (dialog_cmd): Skip IDD_ROOT if select Download from
3028 (do_source): Default to Install from Internet on first entry or
3029 previous selection if backing up from IDD_ROOT or IDD_LOCAL_DIR.
3031 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
3033 * choose.cc (find_tar_ext): Only match at the end of the string.
3034 (getpkgbyname): Prevent NULL pointer dereference.
3036 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
3038 * Makefile.in (CFLAGS): Add warnings and -Werr.
3039 (WARNONLY_FLAGS): For sources that produce (harmless) errors no matter what.
3040 (OBJS): Add io_stream class' objects.
3041 (autoload.o): Use WARNONLY_FLAGS.
3043 (iniparse.o): Ditto.
3044 * archive.cc: New file.
3045 * archive.h: New file.
3046 * archive_tar.cc: New file.
3047 * archive_tar.h: New file.
3048 * archive_tar_file.cc: New file.
3049 * autoload.c: Fix compiler warnings (unused, deprecated conversion).
3050 * choose.cc: Use io_stream.h, not mount.h.
3052 (find_tar_ext): Rewritten to use strstr, and to accept .tar as an extension.
3053 (read_installed_db): Use io_streams.
3054 * choose.h: Run indent.
3055 * compress.cc: New file.
3056 * compress.h: New file.
3057 * compress_bz.cc: New file.
3058 * compress_bz.h: New file.
3059 * compress_gz.cc: New file.
3060 * compress_gz.h: New file.
3061 * concat.cc: Run indent.
3062 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3063 * concat.h: Run indent.
3064 * desktop.cc: Run indent.
3065 Include mklink2.h rather than redefining by hand.
3066 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3067 (etc_profile): Fix compiler warning (deprecated conversion).
3068 (make_link): Fix compiler warning (deprecated conversion).
3069 Tidy up use of args variable - consolidate into argbuf.
3070 (start_menu): Fix compiler warning (deprecated conversion).
3071 (desktop_icon): Fix compiler warning (deprecated conversion).
3072 (make_etc_profile): Fix compiler warning (deprecated conversion).
3073 (uexists): Fix compiler warning (deprecated conversion).
3074 (check_desktop): Fix compiler warning (deprecated conversion).
3075 (check_startmenu): Fix compiler warning (deprecated conversion).
3076 * dialog.cc: Run indent.
3077 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3078 (fatal): Fix compiler warning (deprecated conversion).
3079 * dialog.h: Run indent.
3080 * diskfull.cc: Run indent.
3081 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3082 * download.cc: Run indent.
3083 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3084 (download_one): Fix compiler warning (signed vs unsigned comparison).
3085 * filemanip.h: Run indent.
3086 * find.cc: Run indent.
3087 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3088 (find): Fix compiler warning (deprecated conversion).
3089 * find.h: Run indent.
3090 * fromcwd.cc: Run indent.
3091 * geturl.cc: Run indent.
3092 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3093 (dialog_cmd): Return a value.
3094 (dialog_proc): Remove unused variables.
3096 (get_url_to_file): Fix compiler warning (deprecated conversion).
3097 * geturl.h: Run indent.
3098 * hash.cc: Run indent.
3099 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3100 * hash.h: Run indent.
3101 * ini.cc: Run indent.
3103 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3104 (do_ini): Use io_streams for local io.
3105 * ini.h: Run indent.
3106 * inilex.l (ignore_line): Fix compiler warning (is not a prototype).
3107 Fix compiler warning (brackets for truth assignment).
3108 * install.cc: Run indent.
3109 Fix compiler warning (/* in comment).
3111 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3112 (dialog_cmd): Return a value.
3113 (dialog_proc): Return a value.
3114 (start_tics): Deleted - was unused.
3115 (badrename): Fix compiler warnings (unused, deprecated conversion).
3116 (standard_dirs): Fix compiler warning (deprecated conversion).
3118 (uninstall_one): Convert to io_streams.
3119 (install_one): Convert to io_streams.
3120 (do_install): Convert to io_streans.
3121 Fix compiler warning (deprecated conversion).
3122 * io_stream.cc: New file.
3123 * io_stream.h: New file.
3124 * io_stream_cygfile.cc: New file.
3125 * io_stream_cygfile.h: New file.
3126 * io_stream_file.cc: New file.
3127 * io_stream_file.h: New file.
3128 * localdir.cc: Run indent.
3130 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3131 (get_root_dir_now): Remove.
3132 (save_local_dir): Convert to io_streams.
3133 (dialog_cmd): Return a value.
3134 (do_local_dir): Convert to io_streams.
3135 (log.cc): Run indent.
3136 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3137 (log): Fix compiler warning (deprecated conversion).
3138 (log_save): Fix compiler warning (deprecated conversion).
3139 * log.h: Run indent.
3140 (log): Fix compiler warning (deprecated conversion).
3141 (log_save): Fix compiler warning (deprecated conversion).
3142 * main.cc: Run indent.
3143 Don't include "netio.h".
3144 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3145 (netio_test): Remove.
3146 (sid_auth): Fix compiler warning (partially bracketed initialiser).
3147 (WinMain): Return a value.
3148 * mkdir.cc: Run indent.
3149 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3150 * mklink2.c: Run indent.
3151 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3152 (mkcygsymlink): New function.
3153 * mklink2.h: New file.
3154 * mount.cc: Run indent.
3155 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3156 (create_mount): Remove unused variables.
3157 (cygpath): Fix compiler warning (signed vs unsigned comparison).
3158 * mount.h: Run indent.
3159 * msg.cc: Run indent.
3160 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3161 (msg): Fix compiler warning (deprecated conversion).
3162 (mbox): Fix compiler warning (deprecated conversion).
3163 * msg.h: Run indent.
3164 (msg): Fix compiler warning (deprecated conversion).
3165 * net.cc: Run indent.
3166 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3167 (dialog_cmd): Return a value.
3168 * netio.cc: Run indent.
3169 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3170 (auth_cmd): Return a value.
3171 * netio.h: Run indent.
3172 * nio-file.cc: Run indent.
3173 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3174 (NetIO_File::NetIO_File): Fix compiler warning (deprecated conversion).
3175 * nio-file.h: Run indent.
3176 * nio-ftp.cc: Run indent.
3177 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3178 * nio-ftp.h: Run indent.
3179 * nio-http.cc: Run indent.
3180 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3181 * nio-http.h: Run indent.
3182 * nio-ie5.cc: Run indent.
3183 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3184 * nio-ie5.h: Run indent.
3185 * other.cc: Run indent.
3186 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3187 (dialog_cmd): Return a value.
3188 * port.h: Run indent.
3189 * postinstall.cc: Run indent.
3190 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3191 (cmd): Fix compiler warning (deprecated conversion).
3192 (eun): Fix compiler warning (deprecated conversion).
3193 * root.cc: Run indent.
3194 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3195 * simpsock.cc: Run indent.
3196 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3197 * simpsock.h: Run indent.
3198 * site.cc: Run indent.
3200 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3201 (get_root_dir_now): Remove.
3202 (save_site_url): Convert to io_streams.
3203 (dialog_cmd): Return 0.
3204 (get_initial_list_idx): Convert to io_streans.
3205 * source.cc: Run indent.
3206 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3207 (check_if_enable_next): Remove.
3208 (load_dialog): Remove unused variables.
3209 (save_dialog): Ditto.
3210 (dialog_cmd): Return a value.
3211 * splash.cc: Return a value.
3212 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3213 (dialog_cmd): Return a value.
3214 * state.cc: Run indent.
3215 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3216 * state.h: Run indent.
3220 2001-11-12 Christopher Faylor <cgf@redhat.com>
3222 * desktop.cc (start_menu): Change start menu name to "Cygwin".
3223 (check_startmenu): Ditto.
3225 2001-11-11 Christopher Faylor <cgf@redhat.com>
3227 * choose.cc (parse_filename): Finish reorganization by correctly
3228 decrementing p in memmove.
3230 2001-11-11 Christopher Faylor <cgf@redhat.com>
3232 * choose.cc (parse_filename): Reorganize code to work around gcc
3233 optimization problem.
3235 2001-11-09 Gareth Pearce <tilps@hotmail.com>
3237 * choose.cc (set_action): Allow skip as an option for installed
3238 packages that have version number not listed in setup.ini.
3240 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
3242 * choose.cc (set_cation): Backout last change.
3243 (choose_caption): Ditto.
3245 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
3247 * ini.h (actions): Remove - transferred to choose.h.
3249 * choose.h: Protect class's from "C" compilers.
3250 (actions): New enum, from ini.h. This may not be the 'right' place
3251 but that place doesn't exist yet.
3252 (_views): New enum, from ini.h.
3253 * choose.cc (set_action): Handle installed packages with a version not in
3255 (choose_caption): Ditto.
3256 * iniparse.y: Rearrange header order to handle new ini.h.
3258 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
3260 * ini.h (_Info): Fix compiler warnings (signed vs unsigned comparison).
3261 (registry_category): Fix compiler warning (deprecated conversion).
3262 * iniparse.y (registry_category): Ditto.
3263 * choose.cc (cvsid): Fix compiler warnings (unused, deprecated conversion).
3264 (add_requried): Remove unused variable.
3265 (choose_caption): Handle all enumeration values via a default.
3266 (paint): Fix compiler warnings (unused, deprecated conversion).
3267 (scroll_common): Fix compiler warnings (unused, signed vs unsigned comparison).
3268 (list_clicK): Fix compiler warnings (signed vs unsigned comparison).
3269 (note_width): Fix compiler warnings (deprecated conversion).
3270 (keep_or_skip): Fix compiler warnings (unused).
3271 (_view::mode_caption): Fix compiler warnings (deprecated conversion).
3272 (set_view_mode): Fix compiler warnings (unused).
3273 (create_listview): Fix compiler warnings (unused, incorrect format, reaches
3275 (dialog_proc): Fix compiler warnings (unused).
3276 (read_installed_db): Fix compiler warnings (unused, deprecated conversion).
3277 * choose.h (_header): Fix compiler warnings (deprecated conversion).
3280 2001-11-08 Pavel Tsekov <ptsekov@syntrex.com>
3282 * simpsock.h (SimpleSocket::invalidate): Declare new method.
3283 * simpsock.cc (SimpleSocket::invalidate): Implement new method.
3284 (SimpleSocket::SimpleSocket): Initialize buf to zero. Do not allocate
3285 memory for buf in the constructor.
3286 (SimpleSocket::~SimpleSocket): Use SimpleSocket::invalidate().
3287 (SimpleSocket::printf): Use SimpleSocket::write() instead of send().
3288 (SimpleSocket::write): Check object consistency - return -1 on error.
3289 invalidate() the object on socket write error.
3290 (SimpleSocket::fill): Check object consistency - return -1 on error.
3291 invalidate() the object if socket read error is encountered and there
3292 is no more data available in the internal read buffer.
3293 Allocate memory for the internal read buffer.
3294 (SimpleSocket::gets): Return zero (NULL pointer) if error is encountered
3295 during fill() and no more data is available in the internal read buffer.
3296 (SimpleSocket::read): Check object consistency - return -1 on error.
3297 invalidate() the object if socket read error is encountered.
3298 * nio-ftp.cc (NetIO_FTP:NetIO_FTP): Allow 125 as valid response code to
3299 the RETR command (fix for MS IIS ftp server 5 - possibly others too).
3300 (NetIO_FTP::ok): Check if the SimpleSocket object is ok().
3301 (NetIO_FTP::read): Use NetIO_FTP::ok().
3302 * nio-http.cc: Check for valid return value of SimpleSocket::gets().
3303 (NetIO_HTTP::ok): Check if the SimpleSocket object is ok().
3305 2001-11-09 Robert Collins <rbtcollins@hotmail.com>
3307 * simpsock.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3308 (SimpleSocket::SimpleSocket): Avoid compiler warnings (deprecated conversion).
3309 (SimpleSocket::printf): Ditto.
3310 (SimpleSocket::write): Ditto.
3311 * simpsock.h (SimpleSocket): Avoid compiler warnings for constructor,
3313 * nio-ftp.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3314 (NetIO_FTP::NetIO_FTP): Remove unused variable done.
3315 * nio-http.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3317 2001-11-07 Charles Wilson <cwilson@ece.gatech.edu>
3319 * geturl.cc (get_url_to_string): clean up memory leak
3320 (get_url_to_file): ditto
3322 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
3324 * localdir.cc (dialog_cmd): Go back to IDD_ROOT in every case.
3325 * source.cc (dialog_cmd): Go forward to IDD_ROOT in every case.
3327 2001-11-06 Pavel Tsekov <ptsekov@syntrex.com>
3329 * fromcwd.cc (found_file): Free() memory containing the version and
3330 filepath information for a given package, before replacing the pointers which
3331 reference this memory.
3333 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
3335 * fromcwd: Fix compiler warnings for cvsid.
3336 (canonicalize_version): Fix compilter warnings.
3337 (do_fromcwd): Ditto.
3338 * version.h: Fix compiler warnings for canonicalize_version.
3340 2001-11-03 Robert Collins <rbtcollins@hotmail.com>
3342 * res.rc (IDD_CHOOSE): Move the view caption to the right hand side.
3344 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3346 * res.rc (IDD_CHOOSE): Tweak for use on a 640x480 screen.
3348 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3350 * choose.cc (set_action): Correctly allow skip for any uninstalled package.
3352 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3354 * choose.cc (default_trust): Change the "Required" forced install category to
3357 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3359 * choose.cc: Ran indent.
3360 (set_action): When the requested trust level is missing and the level was not
3361 user requested, set the action to ACTION_SAME_CURR.
3363 2001-11-01 Christopher Faylor <cgf@redhat.com>
3365 * Makefile.in (mingw_getopt.o): Fix typo in non-verbose compilation.
3367 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3369 * choose.cc (_view::init_headers): Resync with the paint logic.
3371 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3373 * choose.cc (add_required): Allow SKIP and SRC_ONLY for currently installed
3376 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3378 * choose.cc (default_trust): Autoset currently installed packages per the user's
3379 selection of prev/curr/exp.
3381 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3383 * splash.cc (dialog_proc): Return TRUE as specified in the WIN32 API.
3385 2001-11-02 Pavel Tsekov <ptsekov@syntrex.com>
3387 * geturl.cc (is_showing): Remove.
3388 (is_local_install): New static variable. Controls whether the
3389 progress dialog and the supporting thread will be created.
3390 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the WIN32 API.
3391 (init_dialog): Remove usage of SetForegroundWindow and is_showing.
3392 This prevents the progress dialog to gain control over the
3393 application and fixes the "setup.exe going to background" problem.
3394 (progress): Use is_local_install.
3395 (get_url_to_string): Set is_local_install.
3396 (dismiss_url_status_dialog): Use is_local_install.
3397 * install.cc (dialog_proc): Return TRUE as specified in WIN32 API.
3398 (init_dialog): Remove usage of SetForegroundWindow.
3399 This prevents the progress dialog to gain control over the
3400 application and fixes the "setup.exe going to background" problem.
3402 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3404 * choose.cc (list_click): Change r to row for clarity.
3405 When we shrink the list below 1 page, scroll to the top of the list.
3406 (_view::click): Return the actual change for contractions.
3407 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the Win32 API.
3409 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3411 * choose.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
3412 * localdir.cc: Ran indent.
3413 (get_root_dir_now): New function.
3414 (save_local_dir): New function.
3415 (dialog_cmd): Use it and swap cygwin root selection and local dir selection order.
3416 (do_local_dir): If there is a saved local dir, read it in.
3417 * net.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
3418 * root.cc (dialog_cmd): Ditto.
3419 * source.cc (dialog_cmd): Ditto.
3421 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
3423 * choose.cc(list_vscroll): Return 0 as required by win32.
3424 (list_hscroll): Ditto.
3425 (list_click): Ditto.
3427 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
3431 * main.cc(WinMain): Use __argv to retrieve command line parameters.
3432 * Makefile,in: Remove argv.o.
3434 2001-11-01 Matt Hargett <matt@use.net>
3436 * geturl.cc (progress): Change int to unsigned int to eliminate
3438 * (get_url_to_string): Check for NULL pointer.
3439 * mount.cc (find2): Use free instead of delete for malloc'd
3441 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Fix memory leak.
3443 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
3445 * choose.cc(_view::insert_under): Handle linen > nlines and lines[linen] with neither
3446 a package nor a category. The lines[linen] bug was reported by Matt (matt@usa.net).
3447 (read_installed_db): Bugfix for testing whether a package has a source tarball.
3448 Reported by Matt (matt@usa.net).
3449 * geturl.cc(dialog): Rename gw_dialog to local_gw_dialog to avoid programmer
3450 confusion and lint errors. Reported by Matt (matt@usa.net).
3452 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
3454 * argv.cc: New file, converts arguments for -mwindows programs. (Simplified derivation
3457 * Makefile,in: Add argv.o and mingw_getopt.o to setup.exe object list.
3458 Add mingw_getopt.o build rule.
3459 * main.cc(WinMain): Initialise argv and argc for use by getopt.
3461 2001-10-27 Christopher Faylor <cgf@redhat.com>
3463 * res.rc: Rearrange info on top line slightly.
3465 2001-10-27 Christopher Faylor <cgf@redhat.com>
3467 * desktop.cc (make_passwd_group): Move file creation earlier in the
3468 process to ensure that passwd-grp.bat reflects desired operation.
3470 2001-27-10 Trevor Forbes <t4bs@hotmail.com>
3472 * postinstall.cc (each): Remove "*.done" file else rename will fail.
3474 2001-10-16 Christopher Faylor <cgf@redhat.com>
3476 * res.rc: Oops. Take 640x480 screen size into account.
3478 2001-10-16 Christopher Faylor <cgf@redhat.com>
3480 * res.rc: Enlarge chooser screen.
3482 2001-10-12 Christopher Faylor <cgf@redhat.com>
3484 * Makefile.in: Accomodate changes to w32api_include macro.
3486 2001-10-12 Christopher Faylor <cgf@redhat.com>
3488 * Makefile.in: Use correct flags for windres.
3490 2001-10-12 Christopher Faylor <cgf@redhat.com>
3492 * Makefile.in (CFLAGS): Remove -nostdinc from CFLAGS.
3494 2001-10-12 Christopher Faylor <cgf@redhat.com>
3496 * choose.cc (pick_line::paint): Reorganize after botched patch.
3498 2001-10-12 Christopher Faylor <cgf@redhat.com>
3500 * choose.cc (pick_line::paint): Add missing declaration.
3502 2001-10-10 Ralf Habacker <Ralf.Habacker@freenet.de>
3504 * choose.cc (pick_line::paint): Add package name to sdesc for display.
3506 Wed Sep 26 21:39:00 Robert Collins rbtcollins@hotmail.com
3508 * choose.cc (_view::insert_pkg): Correctly exit loop.
3509 * iniparse.y (register_category): Always insert new categories.
3511 Fri Sep 21 13:56:32 2001 Christopher Faylor <cgf@cygnus.com>
3513 * inilex.l (yylex): For comments, eat all characters up to, but not
3516 Sun Aug 26 12:50:01 2001 John Marshall <jmarshall@acm.org>
3518 * fromcwd.cc (found_file): Use correct package name when adding an
3519 unknown package rather than random stack garbage.
3521 Sun Aug 12 14:25:21 2001 Christopher Faylor <cgf@cygnus.com>
3523 * desktop.cc (make_passwd_group): .bat files need \r\n endings.
3525 Wed Aug 8 13:53:47 2001 Christopher Faylor <cgf@cygnus.com>
3527 * desktop.cc (etc_profile): Leave environment variables untouched.
3529 2001-08-07 Corinna Vinschen <corinna@vinschen.de>
3531 * autoload.c: Add dynamic load statements for NT/W2K
3532 advapi32 functions not available in 9x/ME.
3533 * main.cc (set_default_dacl): New function.
3534 (WinMain): Call `set_default_dacl' if running on NT/W2K.
3536 Sat Aug 4 21:35:53 2001 Christopher Faylor <cgf@cygnus.com>
3538 * ini.h (_CategoryPackage): Change pkg field to pkgname for
3540 * choose.cc: Use pkgname field when referencing _CategoryPackage
3542 (fill_missing_category): Don't add excluded packages.
3543 (default_trust): Ditto.
3544 (_view::insert_pkg): Ditto.
3545 * iniparse.y (register_category): Use consistent variable name.
3547 2001-07-09 Egor Duda <deo@logos-m.ru>
3549 * choose.cc: Use system foreground color for text output.
3551 Sat Jul 7 00:40:28 2001 Christopher Faylor <cgf@cygnus.com>
3553 * choose.cc (set_action): Use default trust for determining reinstall
3555 (default_trust): Set default trust.
3556 (pick_line::paint): Allow source selection when reinstalling or
3559 Fri Jul 6 18:08:49 2001 Christopher Faylor <cgf@cygnus.com>
3561 * choose.cc (isinstalled): Modify to properly accomodate special case
3563 (set_action): Check downloaded components, not installed components if
3565 (set_existence): Always include full list of files when "download
3568 Fri Jul 6 00:37:05 2001 Christopher Faylor <cgf@cygnus.com>
3570 * choose.cc (pick_line::paint): Properly display "na" field when no
3573 Thu Jul 5 00:34:23 2001 Christopher Faylor <cgf@cygnus.com>
3575 * choose.cc (scan2): Ensure that older versions do not show up in
3578 Mon Jul 2 15:47:59 2001 Christopher Faylor <cgf@cygnus.com>
3580 * choose.cc (set_action): Allow "Skip" action if trust != installed.
3581 * res.rc: Fix copyright.
3583 Sat Jun 30 14:05:21 2001 Michael A Chase <mchase@ix.netcom.com>
3585 * res.rc (IDD_LOCAL_DIR): Change caption to match the other dialog
3587 (IDD_CHOOSE): Adjust horizontal size so package names are visible.
3589 * choose.cc: Restore some more changes from 2001-06-25, throughout.
3590 (paint): Wrap some excessively long lines.
3591 (pick_line::paint): Ditto. Move the arrow in the "Current" column
3592 right to where it belongs. Move the source checkbox slightly to the
3594 (do_choose): List categories and required packages in setup.log.full.
3596 Sat Jun 30 23:04:59 2001 Christopher Faylor <cgf@cygnus.com>
3598 * choose.cc (scan2): Restore source scanning eliminated by previous checkin.
3600 Sat Jun 30 15:18:33 2001 Christopher Faylor <cgf@cygnus.com>
3602 * ini.h (struct _Info): Add "derived" element.
3603 * choose.cc (scan2): Try to place unknown tar files into proper slot
3604 when package exists in setup.ini but tar file does not.
3606 Sat Jun 30 13:39:00 2001 Robert Collins <rbtcollins@hotmail.com>
3608 * choose.cc (create_listview): Call set_view_mode with VIEW_CATEGORY.
3609 (do_choose): Log the first category name.
3611 Fri Jun 29 23:07:44 2001 Christopher Faylor <cgf@cygnus.com>
3613 *ini.h: Reapply 2001-06-25 changes.
3614 * choose.cc (add_required): Ditto. Default to "Keep" state if
3615 UNINSTALL and product is installed. Default to curr state if SKIP,
3617 (keep_or_skip): New function. Returns skip or keep state depending on
3618 installed state of package.
3619 (default_trust): Use keep_or_skip to set state.
3620 (_view::insert_pkg): Use calloc to allocate lines.
3621 (set_view_mode): Adapt 2001-06-25 change to set_full_list here.
3623 Sat Jun 30 11:01:00 2001 Robert Collins <rbtcollins@hotmail.com>
3625 * choose.cc: Remove globals full_list, headers, package_indexes and
3627 Add globals cat_headers, pkg_headers and chooser.
3628 (add_required): New function.
3629 (paint): Use the chooser for header details.
3630 Call into the chooser to paint each line.
3631 (list_click): Use new global variables.
3632 Call into the chooser to handle the click.
3633 Repaint the entire view if packages have been added or removed.
3634 (note_width): Get passed a headers struct rather than using a global
3636 (fill_missing_category): New function.
3637 (default_trust): Skip non-"Required" or "Misc" packages.
3638 (pick_line::set_line (Package *)): New function.
3639 (pick_line::set_line (Category *)): New function.
3640 (pick_line::paint): New function.
3641 (pick_line::click): New function.
3642 (_view::_view): New function.
3643 (_view::set_view_mode): New function.
3644 (_view::mode_caption): New function.
3645 (_view::set_headers): New function.
3646 (_view::init_header): New function.
3647 (_view::insert_pkg): New function.
3648 (_view::insert_category): New function.
3649 (_view::insert_at): New function.
3650 (_view::insert_under): New function.
3651 (_view::clear_view): New function.
3652 (viewsplusplus): New function.
3653 (_view::client): New function.
3654 (set_view_mode): Use new chooser functionality.
3655 (set_full_list): Use new global variables.
3656 (create_listview): Instantiate chooser.
3657 Remove all hardcoded headers[] code.
3658 (dialog_cmd): On trust changes, check dependencies.
3659 (getcategorybyname): New function.
3660 (getpackagecategorybyname): New function.
3661 (scan2): Use case-insensitive package comparison.
3662 (do_choose): Use fill_missing_category ().
3663 Show some category data.
3664 * ini.h: Protect against multiple inclusion.
3666 (_CategoryPackage): New struct.
3667 (_Category): New struct.
3668 (_Package): Change category to Category * from char *.
3669 (extern Category category): New global variable.
3670 (extern in ncategories): Ditto.
3671 (getcategorybyname): New prototype.
3672 (catpackagecategorybyname): New prototype.
3673 (register_category): New prototype.
3674 (add_category): New prototype.
3675 * iniparse.y: Parse multiple categories per package.
3676 (category): New global variable.
3677 (ncategories): New global variable.
3678 (new_package): Compare package against NULL, not 0.
3679 (new_requirement): Source formatting fix.
3680 (register_category): New function.
3681 (add_category): New function.
3682 * res.rc: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
3683 IDC_CHOOSE_VIEWCAPTION: New control.
3684 * resource.h: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
3685 IDC_CHOOSE_VIEWCAPTION: New control.
3686 Increment _APS_NEXT_CONTROL_VALUE.
3688 Mon Jun 25 00:56:37 2001 Michael A Chase <mchase@ix.netcom.com>
3690 * choose.cc (paint): Wrap excessively long lines.
3691 (list_click): Ditto.
3692 (create_listview): Ditto.
3693 (do_choose): Ditto. Replace TABs and remove CRs in lines written to
3694 setup.log.full. Allow "Yes" for source exists in setup.log.full when
3695 installing from local directories.
3697 Mon Jun 25 00:56:37 2001 Christopher Faylor <cgf@cygnus.com>
3699 * choose.cc (set_action): Only clear srcpicked when moving to next
3700 state. Allow source installation if it exists in the current "trust"
3701 state. Don't move to skip state when package is installed.
3702 (list_click): Don't allow source clicking when no source is available.
3703 (set_full_list): Display package when not is_full_action.
3704 * ini.h (is_full_action): Define.
3706 Sun Jun 17 12:06:14 2001 Christopher Faylor <cgf@cygnus.com>
3708 * install.cc (check_for_old_cygwin): New function. First stab at
3709 checking for old cygwin versions.
3710 (do_install): Call check_for_old_cygwin if there were no errors during
3713 Sat Jun 16 11:33:51 2001 Michael A Chase <mchase@ix.netcom.com>
3715 * choose.cc (_Info::_Info): Test _source paramenter for non-NULL rather
3716 than zeroed "source" element.
3718 Fri Jun 15 20:54:43 2001 Christopher Faylor <cgf@cygnus.com>
3720 * choose.cc (scan2): Insert unknown tar archives, found on disk, into
3721 the highest available "hole" in the trust array.
3723 Fri Jun 15 00:20:48 2001 Christopher Faylor <cgf@cygnus.com>
3725 * choose.cc (set_existence): Use pointer method for indexing in trust
3727 (create_listview): Ditto.
3728 (scan2): Ditto. Also, use consistent variable name for indexing into
3730 * ini.h (Package): Reorganize info array for easier scanning.
3732 Fri Jun 15 00:01:51 2001 Christopher Faylor <cgf@cygnus.com>
3734 * choose.cc (isinstalled): Eliminate special download only test.
3735 (set_action): Don't move to next state if in ACTION_SAME range and not
3737 (choose_caption): Display "Retrieve" rather than "Reinstall" when just
3739 (do_choose): Sort packages after all packages have been read.
3740 Accomodate the fact that first element in trust array is empty so that
3741 log files don't report the wrong trust value.
3742 * iniparse.y (new_package): Malloc space for package name or suffer
3745 Thu Jun 14 22:43:59 2001 Robert Collins <rbtcollins@hotmail.com>
3747 * ini.h (Dependency): New structure. Declare new function.
3748 * inilex.l (yylex): Detect new setup.ini options - category and requires.
3749 * iniparse.y: Declare new setup.ini token values.
3750 (yyparse): Parse new token values.
3751 (new_requirement): New function.
3753 Thu Jun 14 22:43:26 2001 Christopher Faylor <cgf@cygnus.com>
3755 * choose.cc (read_installed_db): Eliminate obsolete code.
3757 Thu Jun 14 22:11:53 2001 Christopher Faylor <cgf@cygnus.com>
3759 * choose.cc (set_action): Set trust on "redo".
3760 (_Info::_Info): New constructor.
3761 (read_installed_db): Use new constructor. Use trusts type for
3763 * ini.h (struct _Info): Label struct, add constructor.
3764 (Package): Make installed_ix a type 'trusts.'
3765 * install.cc (uninstall_one): Unset any installed info for current
3767 (install_one): Allocate new Info struct for installed reflecting new
3769 (do_install): Don't output line to installed.db if package is being
3772 Thu Jun 14 20:33:01 2001 Robert Collins <rbtcollins@hotmail.com>
3774 * choose.cc (getpkgbyname): Use consistent method for scanning package
3777 Wed Jun 13 23:33:08 2001 Christopher Faylor <cgf@cygnus.com>
3779 * choose.cc: Add some comments.
3780 (getpkgbyname): Use strcasecmp for comparisons.
3782 Wed Jun 13 16:07:00 2001 Christopher Faylor <cgf@cygnus.com>
3784 * install.cc (do_install): Avoid checking for download action if
3785 package wasn't currently retrieved.
3787 Wed Jun 13 11:27:22 2001 Christopher Faylor <cgf@cygnus.com>
3789 * choose.cc: Eliminate extra array throughout. Use element in package
3790 structure instead. Use pointers rather than array indexes where
3792 (set_action): New function to set next action based on current.
3793 (choose_caption): New function. Returns display caption.
3794 (check_existence): Change arguments. Use pointer to 'info' structure.
3795 (set_existence): Use pointer rather than array index.
3796 (default_trust): Use trusts enum for second argument.
3797 (set_full_list): Honor exclude element in package structure.
3798 (build_labels): Eliminate.
3799 (base): Make global. Use const char * argument.
3800 (get_package_version): Eliminate.
3801 (getpkgbyname): New function.
3802 (read_installed_db): Use parse_filename to get version info.
3803 * desktop.cc (make_passwd_group): Use getpkgbyname function.
3804 * download.cc (get_file_size): const argument.
3805 (do_download): Use is_download_action to determine when something
3806 should be downloaded.
3807 * filemanip.h: Add some functions.
3808 * ini.cc (do_ini): Use NULL rather than 0 for pointer assignment.
3809 * ini.h: Use enums for actions and trusts.
3810 (is_download_action): New macro.
3811 (is_upgrade_action): Ditto.
3812 (is_uninstall_action): Ditto.
3813 (struct Package): Add new fields.
3814 * inilex.l (yylex): Detect new setup.ini options.
3815 * iniparse.y: Declare new tokens.
3816 (yyparse): Detect exclude keyword. Fill out version field even if
3818 (new_package): Use greater granularity when allocating package array to
3819 avoid repeated calls to realloc.
3820 * install.cc (exists): const argument.
3821 (uninstall_one): Take pkg argument.
3822 (install_one): Ditto. Eliminate unneeded arguments which can be
3823 derived from package info.
3824 (do_install): Iterate over package array using a pointer. Use
3825 is_download_action to control when package should be downloaded.
3826 * tar.cc (tar_open): const argument.
3827 * tar.h: Refloect const argument.
3829 2001-05-31 Michael Chase mchase@ix.netcom.com
3831 * main.cc (WinMain): Add setup version to starting setup.log entry
3833 Tue May 29 21:37:58 2001 Yukihiko Sohda <sohda@is.titech.ac.jp>
3835 * inilex.l: Add + to list of valid string characters.
3837 Mon May 28 20:54:50 2001 Christopher Faylor <cgf@cygnus.com>
3839 * Makefile.in: Remove more stuff in the clean target.
3841 Mon May 28 18:24:59 2001 Christopher Faylor <cgf@cygnus.com>
3843 * Makefile.in: Correctly generate iniparse.h.
3845 Tue Mar 6 19:14:00 2001 Corinna Vinschen <corinna@vinschen.de>
3847 * geturl.cc (get_url_to_file): Add parameter `allow_ftp_auth'.
3848 * geturl.h: Change declaration of `get_url_to_file' accordingly.
3849 * netio.cc (NetIO::NetIO): Add parameter `allow_ftp_auth'.
3850 Set member `ftp_auth'.
3851 (NetIO::open): Add parameter `allow_ftp_auth'. Use it in calls
3852 to constructors of derived classes.
3853 (NetIO::get_ftp_auth): New method.
3854 * netio.h: Change class definition accordingly.
3855 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Add parameter `allow_ftp_auth'.
3856 Take global variables `net_ftp_user' and `net_ftp_passwd' into account.
3857 Add code for ftp authentication retry.
3858 * nio-ftp.h: Change class definition accordingly.
3859 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Add parameter `allow_ftp_auth'.
3860 Add code for ftp authentication retry in case of proxy connection.
3861 * nio-http.h: Change class definition accordingly.
3862 * res.rc: Add FTP authentication dialog.
3863 * resource.h: Add new constants used in res.rc.
3864 * state.h: Add variables `net_ftp_user' and `net_ftp_passwd'.
3866 Sun May 27 17:12:23 2001 Christopher Faylor <cgf@cygnus.com>
3868 * res.rc (IDD_SPLASH): Add a copyright year.
3870 Sun May 27 15:42:18 2001 Christopher Faylor <cgf@cygnus.com>
3872 * Makefile.in: Make iniparse.y produce a c++ file.
3873 * choose.cc (set_existence): Revert 2001-05-27 change.
3874 * ini.cc: Remove "C" from declaration of yyparse.
3875 * iniparse.y (yyparse): Fill out version field by default when a binary
3876 install is detected and no version has been set yet.
3877 * install.cc (do_install): Mount things earlier so that we can use
3878 proper mount table settings. Don't remove mounts since they are now
3880 * mount.cc (create_mount): Reread the mount table after establishing a
3882 (read_mounts): Explicitly clear root_here to allow multiple uses of
3883 this function. Ensure that there is no garbage in the table when we've
3884 exhausted all of the mounts in the registry.
3885 (cygpath): Accomodate ./ in path.
3887 Sun May 27 02:59:07 2001 Christopher Faylor <cgf@cygnus.com>
3889 Use parse_filename method to parse filenames throughout. Use
3890 get_root_dir to retrieve the current root directory throughout. Set
3891 const in argument list, where appropriate, throughout.
3892 * choose.cc (set_existence): Detect case of uninstalled package with no
3894 (parse_filename): New function.
3895 * filemanip.h (fileparse): New structure.
3896 * mount.cc (read_mounts): Remember where we found the root mount.
3897 (set_root_dir): New function.
3898 (get_root_dir): Ditto.
3899 * mount.h: Declare new functions.
3900 * site.cc (get_root_dir_now): Renamed from get_root_dir.
3901 (save_site_url): Use new function name.
3902 (get_initial_list_idx): Ditto.
3904 Sat May 26 21:23:59 2001 Christopher Faylor <cgf@cygnus.com>
3906 * choose.cc: Use a constant throughout to deal with chooser icon
3908 * res.rc (IDD_CHOOSE): Increase size of chooser box.
3910 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
3912 * choose.cc (do_choose): Fix incorrect assignment of trust setting to
3913 use when Redownload or Sources Only selected.
3915 Thu May 10 22:35:59 2001 Christopher Faylor <cgf@cygnus.com>
3917 Reformat file after botched patch formatting.
3918 * choose.cc (which_trust): Eliminate variable.
3919 (default_trust): Don't set which_trust.
3920 (do_choose): Use selected trust when reinstalling or installing source.
3922 Thu May 10 21:04:18 2001 Christopher Faylor <cgf@cygnus.com>
3924 Change concat to cygpath throughout.
3925 Change map_filename to cygpath throughout.
3926 * concat.cc (vconcat): New function.
3927 (concat): Use vconcat.
3928 * concat.h: Reflect above.
3929 * install.cc (map_filename): Eliminate.
3930 (install_one): Free dest_file.
3931 * mount.cc (find2): Expect input key to be pointing to mount record.
3932 (in_table): New function.
3933 (is_admin): Move from root.cc.
3934 (read_mounts): New function.
3935 (path_prefix_p): New function.
3936 (cygpath): New function.
3937 * mount.h: Define new functions and structure.
3938 * root.cc (in_table): Move to mount.cc.
3939 (do_root): Call read_mounts to initialize root stuff and mount table.
3940 * site.cc (get_root_dir): Ditto.
3942 2001-05-09 Matt Hargett <matt@use.net>
3944 * Makefile.in: Remove *.rc from clean.
3946 Tue May 8 23:33:38 2001 Christopher Faylor <cgf@cygnus.com>
3948 * choose.cc (scan2): Fix incorrect setting of TRUST_CURR rather than
3949 TRUST_PREV which produced "0" versions.
3951 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
3953 * resource.h: Add new field IDC_CHOOSE_INST_TEXT. Modify
3954 _APS_NEXT_CONTROL_VALUE to account for addition of
3955 IDC_CHOOSE_INST_TEXT.
3956 * res.rc (IDD_CHOOSE): Modify choose dialog to use new field
3957 IDC_CHOOSE_INST_TEXT for screen text. Modify choose Dialog to allow
3958 hot keys to select Prev, Curr, Exp.
3959 * ini.h: Add new actions for ACTION_REDO and ACTION_SRC_ONLY. Modify
3960 define for LOOP_PACKAGES to include new actions ACTION_REDO and
3962 * choose.cc: Add new Trusts for TRUST_REDO and TRUST_SRC_ONLY.
3963 (paint): Modify to check TRUST_SRC_ONLY when determining Bitmap for
3964 source Checkbox to use.
3965 (build_labels): Add logic to allow for selection of Source only
3966 Download/ReDownload/Install/Reinstall and also to Redownload/Reinstall
3967 current version binary.
3968 (dialog_proc): Add conditional display for file selection prompt based
3969 on download vs install using IDC_CHOOSE_INST_TEXT.
3970 (do_choose): Add new logic for TRUST_REDO and TRUST_SRC_ONLY selection
3971 and modify logic for TRUST_UNINSTALL, TRUST_KEEP, and TRUST_NONE to
3972 handle the instance where Source Download/Install was selected. Modify
3973 log file to store appropriate information regarding Action selected and
3974 the new actions that were added (I.E.: ACTION_REDO and
3976 * download.cc: Add include for <unistd.h> and "port.h".
3977 (download_one): Modify parameter list to include the selected action
3978 for the file to be downloaded. Modify size check against expected size
3979 to include check for ACTION_REDO and ACTION_SRC_ONLY. Modify rename of
3980 .tmp file to also remove the destination file if exists due to ability
3981 to redownload source and binary now.
3982 (do_download): Modify to also use ACTION_REDO and ACTION_SRC_ONLY in
3983 calculation of Download Bytes. Modify to also use ACTION_REDO and
3984 ACTION_SRC_ONLY in determining files selected for download.
3985 * install.cc (uninstall_one): Add check to treat a Reinstall like an
3986 upgrade so current version will be uninstalled prior to reinstall.
3987 (do_install): Add logic to handle ACTION_REDO and ACTION_SRC_ONLY for
3988 uninstalling and installing binary and source packages.
3989 * desktop.cc (make_passwd_group): Modify logic to account for a Source
3990 only cygwin install when checking for cygwin to determine need for
3991 mkpasswd and mkgroup.
3993 Mon May 7 23:33:30 2001 Matt Hargett <matt@use.net>
3995 * winsup/cinstall/res.rc: Added accelerators and improved focus order.
3996 Removed WS_DISABLED from "OK" buttons to accomodate default focus
3997 changes in net.cc and source.cc.
3998 * winsup/cinstall/net.cc (dialog_proc): If no radio button is selected,
3999 a default is selected.
4000 * winsup/cinstall/source.cc (dialog_proc): Ditto.
4001 (check_if_enable_next): Removed. No longer needed since a radio button
4002 will always be selected.
4003 (load_dialog): Removed call to check_if_enable_next.
4004 (dialog_cmd): Ditto. Also added default to switch.
4006 Tue Apr 24 23:42:02 2001 Christopher Faylor <cgf@cygnus.com>
4008 * res.rc: Resize affected text.
4010 Tue Apr 24 23:35:31 2001 Christopher Faylor <cgf@cygnus.com>
4012 * net.cc (do_net): Default to direct download.
4013 * res.rc: Move default selections to the top.
4015 2001-04-18 Earnie Boyd <earnie@users.sourceforge.net>
4017 * win32.h: Remove the definitions for _UNION_NAME and _STRUCT_NAME.
4018 Must now include <windows.h> and not the pieces.
4019 * choose.cc (create_listview): Clean up type mismatch problems.
4020 * dialog.h (NEXT(id)): Ditto.
4021 * geturl.cc (dialog): Ditto.
4022 * install.cc (dialog): Ditto.
4023 * splash.cc (load_dialog): Ditto.
4025 Wed Apr 18 18:59:21 2001 Christopher Faylor <cgf@cygnus.com>
4027 * tar.cc (class gzbz): Define dummy virtual functions.
4029 Wed Apr 18 16:01:21 2001 Christopher Faylor <cgf@cygnus.com>
4031 * Makefile.in: Add bz2 include/library support.
4032 * filemanip.h: New file.
4033 * choose.cc (find_tar_ext): New function. Returns TRUE if .tar.gz or
4035 (scan2): Reorganize to use find_tar_ext, accomodating .bz2 extension.
4036 (read_installed_db): Ditto.
4038 * fromcwd.cc (found_file): Ditto.
4039 (do_fromcwd): Ditto.
4040 * tar.cc (class gzbz): New super class for uncompression support.
4041 (gz): New class for gzip support.
4042 (bz): New class for bzip2 support.
4043 (tar_open): Use gzbz class to control file opening.
4044 (tar_ftell): Ditto for returning position in file.
4045 (skip_file): Ditto for reading file.
4046 (tar_next_file): Ditto.
4047 (tar_read_file): Ditto.
4048 (tar_close): Ditto for close.
4050 * zlib/configure.in: Force NM substitution.
4052 * source.cc (do_source): Default to "Install from Internet".
4054 2001-03-16 Brian Keener <bkeener@thesoftwaresource.com>
4056 * nio-file.cc (NetIO_File::NetIO_File): Use `get_file_size' instead of
4058 * choose.cc (list_click): Correct inability to select source code for
4060 (scan2): Modify to skip source tarballs when scanning disk for
4061 installable packages.
4063 2001-03-10 Chris Abbey <chris_abbey@yahoo.com>
4065 * install.cc: install sources into /usr/src instead
4066 of /, also include the sizes of source tarballs
4068 * download.cc: include sizes of source tarballs in
4069 total_download_bytes.
4071 Tue Mar 6 19:31:00 2000 Corinna Vinschen <corinna@vinschen.com>
4073 * download.cc (get_file_size): Remove `static'.
4075 Tue Mar 6 19:11:00 2000 Corinna Vinschen <corinna@vinschen.com>
4077 * tar.cc (tar_open): Use `get_file_size' instead of `stat'.
4079 2001-03-06 Brian Keener <bkeener@thesoftwaresource.com>
4081 * choose.cc (paint): Modify message for nothing to download vs
4082 nothing to install/update based on installation method.
4083 (list_click): Modify to skip versions in selection process if
4084 installing from local directory and installation file does not exist.
4085 Also leaves Source Action set to N/A if the source file does not exist
4086 and installing from local directory.
4087 (check_existence): New method to check current existence of installation
4088 files based on selected installation method.
4089 (set_existence): New method to set the current existence of installation
4090 files based on selected installation method.
4091 (best_trust): Modify decision process for best trust to base decision on
4092 current trust selected (IE: Prev, Curr, or Test), existence of file and
4093 installation method selected.
4094 (default_trust): Add logic to capture the current trust level and the
4095 trust selected for the given package.
4096 (set_full_list): Expand decision criteria for displaying a package in
4097 the selection list to include file existence/non-existence and selected
4098 installation method.
4099 (build_labels): Modify criteria for label addition to include
4100 installation method and file existence/non-existence.
4101 (create_listview): Modify to establish package trust level for each
4102 package before setting up the display list. Also modification to set
4103 current trust button as the default.
4104 (dialog_cmd): Set response for Prev, Curr, Test button push to perform
4105 a reset of the selection list in addition to setting the default trust.
4106 (get_package_version): New method to provide reusable code for
4107 determining the package version from the file name for a specified
4109 (scan2): Modify to use new method get_package_version and
4110 also enhance handling of the build for the structures package and
4112 (read_installed_db): Modify to use the new method
4113 get_package_version and also enhance handling of the build for the
4114 structures package and extra.
4115 (do_choose): Add additional initialization of package and extra
4116 structures. Modify to use read_installed_db all the time despite
4117 install method. Modify output to setup.log.full log file to increase
4118 readability by adding additional spacing, expanded code and available
4120 * ini.h: Add new fields install_exists, source_exists and
4121 partial_list_display to the structure definition for package.
4122 * res.rc (IDD_CHOOSE): Modify choose dialog Prev, Curr, and Test
4123 pushbuttons by replacing with Radio Buttons thus allowing the
4124 operator to better determine which is selected.
4126 2001-02-20 Brian Keener <bkeener@thesoftwaresource.com>
4128 * download.cc (do_download): Add new variables total_download_bytes and
4129 total_download_bytes_sofar for download progress meter. Add loop
4130 to accumulate the total bytes to download from the selected packages.
4131 * geturl.cc: Add state.h and diskfull.h to include list. Add new
4132 variables gw_iprogress, gw_pprogress, gw_progress_text,
4133 gw_pprogress_text, and gw_iprogress_text to allow for addition of
4134 total packages download progress meter and disk full percent
4135 progress meter. Add variables total_download_bytes and
4136 total_download_bytes_sofar for use by progress meters.
4137 (dialog_proc): Add new variables gw_iprogress, gw_pprogress,
4138 gw_progress_text, gw_pprogress_text, and gw_iprogress_text to
4139 allow for addition of total packages download progress meter and disk
4140 full percent progress meter.
4141 (init_dialog): Ditto.
4143 (get_url_to_file): Ditto.
4144 * geturl.h: Add external definition for total_download_bytes and
4145 total_download_bytes_sofar.
4146 * res.rc: Add two additional progress meters (IDC_DLS_IPROGRESS)
4147 and (IDC_DLS_PPROGRESS) and three text objects (IDC_DLS_PROGRESS_TEXT)
4148 and (IDC_DLS_IPROGRESS_TEXT, IDC_DLS_PPROGRESS_TEXT) for use in the
4150 * resource.h: Add new fields for progress meters and text and update
4151 _APS_NEXT_CONTROL_VALUE.
4153 Wed Feb 21 13:05:00 2000 Corinna Vinschen <vinschen@redhat.com>
4155 * download.cc (get_file_size): Check for INVALID_HANDLE_VALUE instead
4158 Wed Feb 21 11:21:00 2000 Corinna Vinschen <vinschen@redhat.com>
4160 * download.cc (download_one): Add missing parenthesis.
4162 Mon Feb 19 18:59:00 2000 Corinna Vinschen <vinschen@redhat.com>
4164 * download.cc (get_file_size): New function. Eliminates the need
4166 (download_one): Call `get_file_size' instead of `stat'. This
4167 workarounds a problem with mingw's `stat' call.
4169 2001-02-07 Earnie Boyd <earnie@users.sourceforge.net>
4171 * Makefile.in: (%.o: %.rc): Specify --include-dir $(w32api_include).
4172 This is to allow cinstall to build with 2.95.2-7 and to make the
4173 use of headers consistent.
4175 2000-12-26 Earnie Boyd <earnie_boyd@yahoo.com>
4177 * Makefile.in (autoload.o): Add target to specify -fno-inline-functions
4179 Tue Dec 26 03:46:00 2000 Matt Hargett <matt@use.net>
4181 * winsup/cinstall/res.rc: Added accelerators and improved focus
4184 2000-12-10 Egor Duda <deo@logos-m.ru>
4186 * choose.cc (paint): Use system background color for text output.
4188 Sun Dec 10 19:05:25 2000 Christopher Faylor <cgf@cygnus.com>
4190 * Makefile.in: Use CXX for linking and for compiling .cc files.
4191 * configure.in: Find correct c++ compiler.
4192 * configure: Regenerate.
4194 2000-11-17 DJ Delorie <dj@redhat.com>
4196 * splash.cc (load_dialog): Make message more obvious.
4199 Fri Nov 17 17:15:21 2000 Christopher Faylor <cgf@cygnus.com>
4201 * Makefile.in: Use g++ to link so that libstdc++.a gets used. This is
4202 necessary for newer compilers.
4204 Wed Nov 9 2:19:00 2000 Corinna Vinschen <vinschen@redhat.com>
4206 * desktop.cc: Include "ini.h" and "version.h".
4207 (make_passwd_group): Skip the function on 9x/ME boxes when an
4208 older version of Cygwin has been installed which doesn't
4209 support mkpasswd/mkgroup on 9x/ME.
4210 * install.cc: Move the `LOOP_PACKAGES' and `pi' macros to...
4213 Wed Nov 8 17:10:00 2000 Corinna Vinschen <vinschen@redhat.com>
4215 * desktop.cc (make_passwd_group): Don't exit when started
4216 on 9x/ME since mkpasswd/mkgroup are usable on 9x/ME now.
4218 Sun Nov 5 12:51:42 2000 Jason Tishler <jt@dothill.com>
4220 * install.cc (do_install): Add call to set_cygdrive_flags to sync
4222 * mount.cc (set_cygdrive_flags): New function.
4223 (get_cygdrive_flags): Ditto.
4224 (default_cygdrive): Ditto.
4225 (set_cygdrive_flags): Ditto.
4226 * mount.h: Add prototype for set_cygdrive_flags.
4228 2000-10-23 DJ Delorie <dj@redhat.com>
4230 * ini.h: add source actions
4231 * fromcwd.cc: check for available sources
4232 * res.rc: add checkbox bitmaps
4235 * choose.cc: add source column
4236 * download.cc: download sources if called for
4237 * install.cc: [un]install sources too
4239 2000-10-22 DJ Delorie <dj@redhat.com>
4241 * choose.cc (build_labels): Don't skip TRUST_PREV completely; only
4242 ignore it wrt full_list if there's already a version installed.
4243 (do_choose): Sort the list.
4244 (package_sort): New.
4246 2000-10-12 DJ Delorie <dj@redhat.com>
4248 * res.rc: Add more error strings.
4249 * resource.h: Ditto.
4250 * iniparse.y (new_package): re-initialize if needed.
4251 * download.cc (do_download): Keep track of errors; notify and
4253 * install.cc (do_install): Ditto.
4255 2000-10-05 DJ Delorie <dj@redhat.com>
4257 * Makefile.in: fix %.cc rule
4259 2000-10-04 DJ Delorie <dj@redhat.com>
4261 * desktop.cc: quote HOME and USER, don't . ./.profile
4263 * choose.cc (build_labels): don't include in partial list just
4264 because there's a *previous* version available.
4266 * install.cc (do_install): if installing from local directory with
4267 setup.ini and the file isn't found, look in "." also. Note errors.
4269 2000-10-02 DJ Delorie <dj@redhat.com>
4271 * ini.cc (do_ini): save setup.ini locally
4273 2000-10-02 Chris Abbey <cabbey@bresnanlink.net>
4275 * desktop.cc: quote escapes in prompt
4277 2000-10-02 Jason Tishler <jt@dothill.com>
4279 * root.cc (is_admin): New function.
4280 (read_mount_table): Check for administrative priviledges and set
4281 installation scope as appropriate.
4283 2000-09-28 DJ Delorie <dj@redhat.com>
4285 * nio-ftp.cc (ftp_line): handle continuations more robustly
4287 2000-09-14 Brian Keener <bkeener@thesoftwaresource.com>
4289 * res.rc: increased the size of the site dialog (IDD_SITE) & the
4290 corresponding list box to provide for more URL's to be listed.
4291 Modified the position of the Back, Next and Cancel buttons to
4292 correspond to the new size of the dialog.
4294 2000-09-13 DJ Delorie <dj@redhat.com>
4296 * install.cc (do_install): update disk fullness once per package
4297 to improve performance
4299 * choose.cc (create_listview): call ReleaseDC
4301 Mon Sep 11 22:40 2000 Harold L Hunt II <harold@compasstechnologies.com>
4303 * mkdir.cc: Create directories when ERROR_FILE_NOT_FOUND is
4304 returned, as it seems Samba 2.0.6+ returns this instead of
4305 ERROR_PATH_NOT_FOUND
4307 Mon Sep 11 19:35:24 2000 Christopher Faylor <cgf@cygnus.com>
4309 * site.cc (get_initial_list_idx): Don't default to saved URL if it
4312 2000-09-07 DJ Delorie <dj@redhat.com>
4314 * splash.cc: use version.h, not local decl
4315 * res.rc: add "old version" message
4318 * fromcwd.cc (canonicalize_version): make global
4319 * iniparse.y: add setup-version support, fix bug in blank line
4322 * inilex.l: add [exp] as alias for [test], add setup-version
4323 * Makefile.in (version.c): add setup-version tag
4325 * desktop.cc (do_desktop): remove 1.1 version number
4326 (do_desktop_setup): ditto
4328 * ini.cc (do_ini): zero out package list just in case we redo it.
4330 2000-09-07 Jeffrey Juliano <juliano@cs.unc.edu>
4332 * choose.cc (list_click): Check for nindexes==0; if so, return.
4334 2000-09-06 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
4336 * localdir.cc: new, local package directory selection dialog; cd
4337 into selected directory
4338 * Makefile.in (OBJS): add localdir.o
4339 * dialog.h: add prototype for do_local_dir
4340 * main.cc (WinMain): initialize local_dir to cwd; add call to
4342 * net.cc (dialog_cmd): make DO_LOCAL_DIR next dialog
4343 * source.cc (dialog_cmd): ditto
4344 * res.rc: add DO_LOCAL_DIR dialog; remove "current directory" from
4345 presented choices in IDD_SOURCE; add IDS_ERR_CHDIR error string
4346 * resource.h: defines for DO_LOCAL_DIR dialog; define IDS_ERR_CHDIR
4347 * root.cc (dialog_cmd): make DO_LOCAL_DIR previous dialog
4348 * state.h: add local_dir variable
4350 2000-09-06 Brian Keener <bkeener@thesoftwaresource.com>
4352 * desktop.cc: added logic to handle to the new dialog and to
4353 default the setting for the new checkboxes based on whether the
4354 desktop icon or start menu link already exist.
4355 (desktop_icon): correction to desktop directories for desktop icon
4356 creation. Additional logic added for Win95 which does not appear
4357 to have Common Directories so if Common selected and null uses
4359 (start_menu): Additional logic added for Win95 which does not
4360 appear to have Common Directories so if Common selected and null
4361 uses normal directory.
4362 (do_desktop_setup): moved the saving of the icon, creation of the
4363 bat file, profile, passwd, Start Menu link and desktop shortcut to
4364 this method from do_desktop. Made the creation of the desktop
4365 icon and start menu link conditional on settings of new dialog
4366 created for desktop.
4367 * install.cc (do_install): changed next from IDD_S_DESKTOP to
4369 * main.cc (WinMain): changed case IDD_S_DESKTOP to IDD_DESKTOP.
4370 * res.rc: added new resource to create a desktop dialog with 2
4371 checkboxes for creating the desktop icon and start menu link.
4372 * resource.h: changed IDD_S_DESKTOP to IDD_DESKTOP and added two
4373 new controls: IDC_ROOT_MENU and IDC_ROOT_DESKTOP for new dialog.
4374 * state.h: added root_menu and root_desktop for use in dialog.
4376 2000-08-29 DJ Delorie <dj@redhat.com>
4378 * choose.cc (scan_downloaded_files): scan for existing files, so
4379 that the user only sees new downloads.
4381 * nio-ie5.cc (NetIO_IE5): pre-check for wininet.dll, enable dial-up
4382 * site.cc (do_site): if we can't download the mirror list, go back
4383 to the net setup box to choose another transport.
4384 * autoload.c: add more functions
4385 * Makefile.in (ALL_DEP_LDLIBS): remove wininet.a
4386 * resource.h: add WININET message
4388 * net.cc (do_net): no longer default to IE5
4389 * simpsock.h (class SimpleSocket): new, simplify socket operations
4390 * simpsock.cc: ditto
4391 * nio-http.h: new, for direct http protocol
4392 * nio-http.cc: ditto
4393 * nio-ftp.h: new, for direct http protocol
4395 * netio.cc (set_url): move initialization here to handle redirections
4396 (open): add direct http/ftp
4397 * netio.h (NetIO::set_url): new
4399 * log.cc (log_save): create directory for log if needed
4401 * hash.cc, hash.h: new
4402 * Makefile: add hash.o
4403 * choose.cc: enable "uninstall" option
4404 * download.cc: invert action test to accomodate uninstalling
4405 * ini.h: add ACTION_UNINSTALL
4406 * install.cc: add uninstall functionality
4407 * res.rc: make install tag changeable
4408 * resource.h: add uninstall resources
4410 * res.rc: update mirror list URL
4412 2000-08-24 DJ Delorie <dj@redhat.com>
4414 * log.cc, log.h: new files
4415 * Makefile.in (OBJS): add log.o
4416 * tar.cc: use exit_setup instead of exit
4417 * dialog.cc (fatal): use exit_setup instead of ExitProcess
4418 * msg.cc (fatal): ditto
4419 * install.cc (dialog_cmd): ditto
4420 * ini.cc (do_ini): ditto
4421 * main.cc (main): add logging
4422 * source.cc (do_source): ditto
4423 * root.cc (do_source): ditto
4424 * site.cc (do_site): ditto
4425 * other.cc (do_other): ditto
4426 * net.cc (do_net): ditto
4427 * choose.cc (do_choose): ditto
4428 * download.cc (do_download): ditto
4429 * install.cc (do_install): ditto
4430 * msg.cc (fatal): ditto
4432 * res.rc: mark password boxes as *being* password boxes.
4434 * fromcwd.cc (canonicalize_version): use multiple buffers so that multiple
4435 calls won't use the same buffer.
4436 * choose.cc (create_listview): don't default to full list if no changes
4437 (base): return computed value, not temporary :-(
4438 (do_choose): don't use installed.db if we're only downloading.
4440 2000-08-23 DJ Delorie <dj@redhat.com>
4442 * nio-ie5.cc (NetIO_IE5): Fix authentication logic
4443 * nio-ie5.h (flush_io): new
4444 * netio.cc (load_dialog): note when we're initializing the dialog
4445 box, and ignore changes to the edit fields then.
4447 2000-08-21 DJ Delorie <dj@redhat.com>
4451 * fromcwd.cc (found_file): don't remember the canonicalized version
4453 * choose.cc (paint): print "nothing to do" message when list is empty.
4454 (build_labels): Use version "0.0" if no version is available.
4455 (create_listview): default to full list if nothing to install/update.
4456 (base): new, returns basename of file
4457 (read_installed_db): compare base names, not full paths
4459 2000-08-11 DJ Delorie <dj@redhat.com>
4461 * choose.cc: add new chooser dialog
4462 * fromcwd.cc: use IDD_CHOOSE
4463 * ini.cc: use IDD_CHOOSE
4464 * main.cc: use IDD_CHOOSE
4465 * ini.h: cosmetic changes
4466 * res.rc: add choose dialog, bitmaps
4467 * choose-spin.bmp: new
4468 * choose-rtarrow.bmp: new
4469 * resource.h: add choose dialog controls
4471 * mount.cc: remove debug statement
4473 2000-08-08 DJ Delorie <dj@redhat.com>
4475 * Makefile.in (version.c): make version checking more robust
4476 * splash.cc (load_dialog): handle case where there's no version
4478 2000-08-07 DJ Delorie <dj@redhat.com>
4480 * (all): add cvsid tags
4481 * Makefile.in: generate version.c from ChangeLog, add splash.o
4483 * res.rc: add splash screen
4485 2000-08-02 DJ Delorie <dj@redhat.com>
4487 * net.cc: remove proxy password code
4488 * res.rc: remove proxy user/pass from net, add auth dialogs
4489 * netio.cc,h: add sys/proxy auth methods
4490 * nio-ie5: use them, check for http status codes
4491 * state.h: add system authorization
4493 * concat.cc (concat): canonicalize x:// to x:/ (exception to ://
4496 2000-08-02 Norman Vine <nhv@yahoo,com>
4498 * msg.cc (mbox): added MB_TOPMOST to MessageBox type flags
4500 2000-08-01 DJ Delorie <dj@redhat.com>
4502 * postinstall.cc (each): don't rename files we ignore
4503 (do_postinstall): set CYGWINROOT to root_dir, chdir there
4505 * desktop.cc: have /etc/profile call ~/.profile and ~/.bashrc
4507 2000-07-31 DJ Delorie <dj@redhat.com>
4509 * desktop.cc: reverse PATH so /usr/bin precedes /bin
4511 2000-07-18 DJ Delorie <dj@redhat.com>
4513 * autoload.c: new, autoload dlls that might not be available.
4514 * Makefile.in (OBJS): add autoload.o
4516 * res.rc: rewrite root options (text/binary, system/user) to be
4519 * site.cc (get_site_list): trim displayed URL, sort by domain
4521 * net.cc (do_net): make IE5 default to checked, for now
4523 * choose.cc (do_choose): sort packages correctly
4524 * ini.cc (do_ini): handle parse errors more gracefully
4526 (fprintf): line buffer output
4527 (do_ini): if we can't load setup.ini, go back to the site list.
4528 * ini.h: add "unknown" trust level
4529 * inilex.l: absorb unknown trust levels and key/value pairs,
4530 add line number logic
4531 * iniparse.y: handle parse errors more gracefully.
4532 * install.cc: skip packages with no valid install entry
4534 2000-07-17 DJ Delorie <dj@cygnus.com>
4536 * coding standards fixups, many files
4537 * mkdir.cc: warn about deletions *before* deleting them
4539 2000-07-17 Jeff Juliano <juliano@cs.unc.edu>
4541 * res.rc (IDD_OTHER_URL): reorder to give default focus to entry
4543 * other.cc (dialog_cmd): save download site URL
4544 * site.cc (get_root_dir): new
4545 (save_mirror_site): new
4546 (dialog_cmd): save download site URL
4547 (get_site_list): make list big enough to add prev site
4548 (get_initial_list_idx): new, read last-used URL from file and
4549 append it to site_list
4550 (do_site): call get_initial_list_idx
4552 * concat.cc (concat): avoid segfault when first parm is null
4554 2000-07-13 DJ Delorie <dj@cygnus.com>
4556 * postinstall.cc: new
4557 * Makefile.in: add postinstall.o
4558 * concat.h: add backslash ()
4560 * desktop.cc (etc_profile): don't do postinstall
4561 (backslash): moved to concat.cc
4563 (make_postinstall_script): run directly
4564 (do_desktop): chain to do_postinstall
4565 * dialog.h: add exit_msg, do_postinstall
4566 * download.cc: use exit_msg
4568 * main.cc: add postinstall, exit_msg
4569 * resource.h: add postinstall
4570 * README: add more to-do items
4572 2000-07-12 DJ Delorie <dj@cygnus.com>
4574 * desktop.cc: add /etc/postinstall/ support
4575 * install.cc: add more "standard" directories
4577 2000-07-11 DJ Delorie <dj@cygnus.com>
4579 * desktop.cc: create /etc/profile
4580 * desktop.cc: fix include syntax
4581 * Makefile.in: add auto-dependencies
4582 * root.cc: support system vs user
4590 * desktop.cc: make sure we use backslashes, not slashes.
4591 * desktop.cc: don't set PATH in cygwin.bat, create /etc/passwd
4592 * geturl.cc: change math for percentage to avoid overflow
4594 * download.cc: post "download complete" message.
4595 * root.cc: pre-fill in defaults if needed, don't start
4596 browse at root_dir unless it's set.
4597 * desktop.cc: quote $PATH in case it has spaces in it
4599 2000-07-10 DJ Delorie <dj@cygnus.com>
4601 * Makefile.in: add desktop.o and mklink2.o
4602 * dialog.h: add do_desktop
4603 * install.cc: create standard directories, call do_desktop
4604 * res.rc: add cygwin.ico as a file also
4605 * desktop.cc: new, do shortcuts, batch files, and icons
4606 * mklink2.c: new, for COM
4607 * README: update to-do list
4609 2000-07-10 DJ Delorie <dj@cygnus.com>
4611 * ini.cc (do_ini): don't worry about timestamps if we're not
4612 actually installing.
4614 2000-07-09 DJ Delorie <dj@cygnus.com>
4616 * Makefile.in: add -I$(srcdir) for ini.h
4618 2000-07-06 DJ Delorie <dj@cygnus.com>
4620 * Replace everything with a new GUI version
4621 * zlib/gzio.c: add gzctell() for progress displays
4623 2000-06-22 DJ Delorie <dj@cygnus.com>
4625 * setup.c (tarx): re-add call to write_pkg()
4627 2000-06-07 DJ Delorie <dj@cygnus.com>
4629 * cygcalls.c: new, call cygwin1.dll functions directly
4630 * cygcalls.h: header for same
4631 * Makefile.in: add cygcalls.[ch], remove mount/cygpath/umount
4632 exes, fix cinstall.rc dependencies.
4633 * path.c: remove unneeded code
4634 * setup.c: use cygcalls instead of xcreate_process.
4635 uncompress embedded files with zlib
4636 add "-d" for "download only"
4638 postpone mount changes until very end
4639 add download progress indicators
4640 pack multi-column listings more
4641 auto-delete temp files
4642 customize banner message according to options
4643 prompt user for text/binary mounts
4644 add warnings about empty setup directory, root installs, etc
4646 2000-05-24 DJ Delorie <dj@cygnus.com>
4648 * tar.c: New file; built-in tar using zlib.
4649 * tar.h: New file; header for same.
4650 * ctar.c: New file; test program for same.
4651 * Makefile.in: add built-in tar, remove tar.exe and gzip.exe
4652 * path.c (pathcat): convert slashes and canonicalize, instead of aborting
4653 * setup.c (tarx): add support for built-in tar
4654 (main): accept unix-style slashes, check root dir for drive letters,
4655 warn about installing in /, make sure cwd is empty for internet installs,
4656 defer mounts to end of install, support built-in tar.
4658 Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
4660 Fix compiler warnings throughout.
4661 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
4663 * setup.c: Make 'root' global.
4664 (istargz): Return pointer to "stem" of matched .tar.gz file.
4665 (tarx): Special case cygwin-20000301 to == cygwin-1.1.0.tar.gz. Remove
4666 bogus check_for_installed check.
4667 (recurse_dirs): Add preliminary support for .bat file execution.
4668 (create_uninstall): Eliminate unneeded parameter.
4669 (do_start_menu): Ditto.
4671 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
4672 scanning for the version number. Eliminate unneeded argument to
4674 (getdownloadsource): Add 'name' to list of names rather than url.
4675 (main): Eliminate unneeded argument in get_pkg_stuff. Eliminate
4676 unneeded argument in mkmount and do_start_menu.
4678 2000-05-18 DJ Delorie <dj@cygnus.com>
4680 * setup.c (optionprompt): allow multi-column, clean up message
4681 about more options, be more robust about user input.
4682 (getdownloadsource): make the mirror URL a macro.
4683 (main): do mounts after done prompting user.
4685 Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
4687 * setup.c (cleanup): Inverse order of deletion stands a better chance
4688 of deleting cygpath.exe. Still seems to suffer from occasional races,
4690 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
4692 (output_file): Defend against an unlikely handle leak.
4693 (main): Don't set up signal handling until we have something special to
4696 Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
4698 * path.c (kill_cygpath): Delete function.
4699 (exit_cygpath): Make more defensive so that it can be called at any
4701 (cygpath_pipe): Don't set up signal here. Do it in main().
4702 * setup.c (istargz): New function.
4703 (recurse_dirs): Look for *.gz pattern rather than *tar.gz since *tar.gz
4704 inexplicably fails on samba mounted partitions. Use istargz to match
4706 (processdirlisting) Use istargz to match tar.gz tail.
4707 (cleanup): Renamed from filedel.
4708 (cleanup_on_signal): New function. Called on CTRL-C.
4709 (main): Record handle of main thread so that it can be suspended when
4710 CTRL-C occurs. Set up cleanup_on_signal signal handler.
4712 Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
4714 * setup.c (do_start_menu): Don't concatenate paths to already built
4717 Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
4719 * path.c (exit_cygpath): Wait for subprocess to exit before returning.
4720 (cygpath_pipe): Don't call exit_cygpath. Let main atexit routine do
4722 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
4724 * setup.c (filedel): Call exit_cygpath here so that we can be assured
4725 that cygpath subprocess has died. This allows us to delete cygpath.exe
4727 (optionprompt): Initialize response to -1 so that second screen of
4728 mirrors will appear.
4729 (get_pkg_stuff): Don't attempt to use HKCLU. Pass root to init_pkgs.
4730 * setup.h: Reflect init_pkgs prototype change.
4732 Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
4734 * pkg.c (init_pkgs): Accept an argument to control what root registry
4736 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
4737 * setup.h: Reflect init_pkgs prototype change.
4739 Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
4741 * error.c (winerror): Respond to gcc warning.
4742 * path.c (cygpath_pipe): Ditto.
4743 * setup.c (filedel): Call sa_cleanup on deleteme.
4744 (create_shortcut): Coerce argument to eliminate compiler warning.
4745 (tarx): Use installed version of cygwin1.dll, overriding tar file name.
4746 (refmatches): New function. Tests if ref is contained in a list of
4747 packages to install.
4748 (filematches): New function. Tests if filename matches one of a list
4749 of packages to install.
4750 (recurse_dirs): Accept list of packages to install. Generalize tar.gz
4751 test to accomodate _tar.gz.
4752 (prompt): Ensure that stdout is flushed prior to asking for input.
4753 (findhref): Initialize variables to quiet a compiler warning.
4754 (processdirlisting): Accept list of packages to install. Special case
4755 cygwin tar file version number.
4756 (downloaddir): Accept list of packages to install.
4757 (downloadfrom): Ditto.
4758 (create_uninstall): Eliminate unneeded variables. Quote arguments to
4760 (do_start_menu): Don't create uninstall bat file if updating or user
4761 specified a list of packages.
4762 (mkmount): Eliminate unneeded variables.
4763 (get_pkg_stuff): New function. Checks for previous unversioned
4765 (main): Accept -u and -f options and package names on the command line.
4766 Use get_pkg_stuff to initialize package information. Umount /etc.
4767 Call recurse_dirs and downloadfrom with list of package to install.
4768 Ensure that all /usr/local directories are created. Output
4769 installation time to setup.log.
4770 * setup.h: Add some prototypes.
4771 * xsystem.c (xcreate_process): Eliminate unneeded variable.
4773 Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
4775 * setup.c (optionprompt): Don't overlap display of already seen options
4777 (geturl): Print name of site which we're connecting to rather than "ftp
4779 (processdirlisting): Avoid URLs that contain a /. or ./ . Is this
4780 test too simplistic?
4781 (do_start_menu): Use pathcat to build path to <root>\bin to avoid
4782 problems when user chooses x:\ as their root.
4783 (main): For now, default to "non-update" mode. Allow -u option to
4786 Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
4789 * setup.c (tarx): Skip already installed or older packages. Report
4790 when a package has been updated.
4791 (processdirlisting): Skip already installed or older packages.
4792 (main): Detect -f option for forced installation. Initialize pkg stuff
4794 * setup.h: Add pkg definitions.
4796 Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
4798 * setup.c (findhref): Return NULL on empty string. Eat any trailing
4800 (processdirlisting): Attempt to limit recursively processing the same
4803 Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
4805 * setup.c (filedel): New function.
4806 (output_file): Keep track of files extracted from setup.exe for
4807 subsequent deletion.
4808 (tarx): Close process handle of child tar process or suffer handle
4810 (getdownloadsource): Close mirror file so that it can be unlinked.
4811 (processdirlisting): Return total number of files extracted.
4812 (main): Initialize array of files to delete. Ensure that files are
4813 closed on exit. Make the directory that setup.exe is started from ==
4814 the directory where temporary files are placed. Issue an error if no
4815 files were found to download.
4816 * xsystem.c (xcreate_process): Close the thread handle. Close the
4817 process handle if we waited for it to exit.
4819 Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
4821 * setup.c (main): Change version number output.
4823 Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
4825 * setup.c (tarx): Use full path name to tar executable.
4826 (main): Build full pathname to tar executable. Create /usr/local/etc
4829 Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
4831 * setup.c (findhref): Change method for scanning for href= to choose
4832 the last one on the line. This is still not foolproof and probably
4833 will need to be changed eventually. Don't abort if no "size" field is
4835 (processdirlisting): Fix boolean algebra.
4837 Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
4839 * main.c (tarx): Add some code for future task of unmounting
4840 directories encountered in tar file.
4842 Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
4844 * setup.c (findhref): Decode file size, when appropriate.
4845 (needfile): New function. Returns 1 when file should be
4847 (processdirlisting): Always download if file size does not
4848 match. Prompt when download fails for some reason.
4849 (getdownloadsource): Accomodate findhref argument changes.
4851 Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
4853 Throughout, use global session handle rather than reinitializing for
4854 each connect. Don't pass session as an argument to setup.c functions.
4855 * setup.c (geturl): Only issue "Connecting to.." message when using
4856 http or first time for ftp since subsequent connections will be fast.
4857 (processdirlisting): Allocate space for "N" when user has specified
4858 "N"ever option so that it can be subsequently freed.
4859 (main): Abort if we can't get the list of mirrors.
4861 Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
4863 * setup.c (main): Umount /bin and /lib.
4865 Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
4867 * setup.c (main): Create an empty /var/run/utmp.
4869 Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
4871 * Makefile.in: Add umount to list of files to include in setup.exe.
4872 * setup.c (xumount): New function for unmounting directories.
4873 (main): Unmount /usr.
4874 (mkmount): Unmount "unix directory" before trying to figure out where
4875 to create the directory.
4877 Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
4879 * setup.c (mkmount): Use xcreate_process to start mount process,
4881 (main): Don't do buffering on stdout or prompts won't be displayed
4882 correctly if running in a cygwin shell with CYGWIN=tty.
4884 Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
4886 * setup.c (main): Remove the CYGWIN environment variable before
4887 starting any cygwin programs.
4889 Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
4891 * setup.c (geturl): Use alternative method for finding filename part of
4893 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
4894 (downloaddir): Unlink file containing dir listing.
4895 (downloadfrom): Ditto.
4897 Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
4899 * setup.c (main): Disallow running setup.exe from the "root".
4901 Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
4903 Use "warning" function, where appropriate, to output warnings.
4904 * setup.c (warning): New function -- outputs warning to console and log
4906 (tarx): Fix index used to reset file protection.
4907 (main): Open the log file earlier so that more stuff can be sent to it.
4909 Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
4911 * setup.c (processdirlisting): Make "N" option a little less aggressive.
4913 Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
4915 * setup.c (tarx): Wait to after tar has completed to reset protections
4916 or suffer races with tar process.
4918 Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
4920 * Makefile.in: Eliminate duplicate -nostdinc from CFLAGS.
4921 * setup.c (create_uninstall): Create the uninstall .bat file in the
4922 "root" so that we can remove the /bin directory. Add bin\cygwin.bat to
4923 list of files to be deleted. Fix directory detection for determining
4924 when to use 'rmdir'.
4925 (do_start_menu): Add /usr/local/bin to the path.
4926 (main): Add slop to files.array allocation so that we don't have to
4927 worry about reallocating the array when it grows too large when doing
4928 some trivial "pushes". Add /tmp and /usr/local/{bin,lib} to list of
4931 Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
4933 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
4936 Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
4938 * path.c (kill_cygpath): New cleanup function.
4939 (exit_cygpath): New cleanup function.
4940 (cygpath_pipe): New function. Sets up cygpath in the background for
4941 translating filenames.
4942 (pathcvt): Use background cygpath for file translation.
4943 * setup.c (tarx): New function. Called to extract tar files, capture
4944 logging output, and translate it to Windows format.
4945 (recurse_dirs): Use 'tarx' function to extract files.
4946 (create_uninstall): Use file list built up by tarx rather than reading
4948 (mkmount): Add ability to mount root.
4949 (main): Track elapsed install time. Mount root.
4950 * starry.h: Add index field to strarry for tracking of tarx's usage of
4952 * xsystem.c (xcreate_process): Return proces handle when not waiting.
4954 Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
4957 (pathfp): New function. Preliminary work for new -f cygpath
4959 * Makefile.in: Add new file.
4960 (pathcvt): Move to new file.
4964 * setup.c (processdirlisting): Always open file in text mode.
4965 (create_uninstall): Ditto.
4966 (getdownloadsource): Ditto.
4969 Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
4971 * xsystem.c: New file.
4972 * Makefile.in: Accomodate new file.
4973 * setup.c (xsystem): Move to new file.
4974 (recurse_dirs): Accept handle to output log file. Don't use ">"
4975 redirection to trap tar output. Use supplied handle instead.
4976 (create_uninstall): Accept FILE pointer to opened log file. Don't
4977 unlink log file here.
4978 (do_start_menu): Accept FILE pointer to pass to create_uninstall.
4979 (main): Open log file here and pass it to various functions. Unlink
4982 Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
4984 Change occurrences of .usr.bin to .bin throughout.
4985 * setup.c (geturl): Increase number of retries to 20. Let user know
4986 what's going on during long connects.
4987 (processdirlisting): Accept "A"lways and "N"ever as update options.
4988 (create_uninstall): Load cygwin1.dll from the current directory rather
4990 (main): Add some expository text.
4992 Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
4994 * Makefile.in: Change method for compressing cygwin1.dll to avoid
4995 creating a cygwin1.dll in the current directory. Ensure the addition
4996 of -nostdinc to MINGW_CFLAGS.
4998 Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
5000 * Makefile.in: Augment clean target.
5002 Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
5004 * README: Added info about non-working mingw implementation
5005 * gzip.exe.gz: Replace with a version from the same build as the other
5007 * tar.exe.gz: Replace with a version from the same build as the other
5009 * mount.exe.gz: Add to repository until, mingw can build setup.
5010 * cygpath.exe.gz: ditto
5011 * cygwin1.dll.gz: ditto
5012 * setup.c: Overwrite /bin and /lib mounts. Generate working shortcut
5013 for Win9x. Display only a screenfull of options at a time. Call all
5014 tools with an absolute path.
5015 * setup.dsp: Restore the carriage returns, MS Developer Studio needs
5020 Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
5022 * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab
5023 cygwin1.dll from ../cygwin subdirectory.
5024 * gzip.exe.gz: Update.
5025 * tar.exe.gz: Update.
5027 Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
5029 * Makefile.in: Use ZLIB variable as a target.
5031 Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
5033 * Makefile.in: Eliminate traces of cygwinisms. Don't link with
5034 libmsvcrt.a. It's unneeded. Build .rc file on the fly from various
5036 * configure.in: Locate correct objcopy.
5037 * configure: Regenerate.
5039 Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
5041 * Makefile.in: New file.
5042 * configure.in: New file.
5043 * configure: New file.
5044 * zlib/Makefile.am: New file.
5045 * zlib/configure.in: New file.
5046 * zlib/aclocal.m4: New file.
5047 * zlib/acinclude.m4: New file.
5048 * zlib/configure: Regenerate from configure.in.
5049 * zlib/Makefile.in: Regenerate from Makefile.am