1 2002-09-21 Robert Collins <rbtcollins@hotmail.com>
3 * choose.h: Add OnUnattended method.
4 * desktop.cc (DesktopSetupPage::OnInit): Allow fine grained
5 control via command line options.
6 (DesktopSetupPage::OnUnattended): Implement.
7 (DesktopSetupPage::OnMessageApp): Implement.
8 * desktop.h (DesktopSetupPage::OnUnattended): declare.
9 (DesktopSetupPage::OnMessageApp): Ditto.
10 * download.cc (do_download_thread): Support unattended mode.
11 * install.cc (do_install_thread): Ditto.
13 * main.cc (main): Ditto.
14 * net.cc (NetPage::OnUnattended): Ditto.
15 * net.h (NetPage::OnUnattended): Declare.
16 * proppage.cc (PropertyPage::DialogProc): Support unattended mode.
17 * proppage.h (PropertyPage::OnUnattended): Declare.
18 * root.cc (RootPage::OnInit): Support unattended mode.
19 (RootPage::OnUnattended): Implement.
20 * root.h (RootPage::OnUnattended): Declare.
21 * site.cc (register_saved_site): Extract Method from get_saved_sites.
22 (get_saved_sites): Remove common code for adding a site.
23 (SitePage::OnInit): Support unattended mode.
24 (SitePage::OnUnattended): Implement.
25 * site.h (SitePage::OnUnattended): Declare.
26 * source.cc (SourcePage::OnActivate): Support unattended mode.
27 (SourcePage::OnUnattended): Implement.
28 * source.h (SourcePage::OnUnattended): Declare.
29 * splash.h (SplashPage::OnUnattended): Declare.
30 * state.cc (unattended_mode): Declare.
31 * state.h (unattended_mode): Declare.
32 * threebar.h (ThreeBarProgressPage::OnUnattended): New method.
34 2002-09-21 Robert Collins <rbtcollins@hotmail.com>
36 * res.rc: Commit Harry Johnston's dialog caption patch. From July.
38 2002-07-15 Robert Collins <rbtcollins@hotmail.com>
40 * package_version.cc (packageversion::sources): Implement this.
41 * download.cc (do_download_thread): Support multiple files per package.
43 2002-07-15 Robert Collins <rbtcollins@hotmail.com>
45 * package_version.h (packageversion::sources): Support multiple files in
46 a single package version.
47 * package_version.cc (_packageversion::accessible): Ditto.
48 (packageversion::source): Ditto.
50 2002-07-15 Robert Collins <rbtcollins@hotmail.com>
52 * iniparse.y: Implement support for multiple source files for a source
54 * IniDBBuilder.h (IniDBBuilder::buildSourceFile): Ditto.
55 * IniDBBuilderPackage.h (IniDBBuilder::buildSourceFile): Ditto.
56 * IniDBBuilder.cc (IniDBBuilder::buildSourceFile): Ditto.
57 * IniDBBuilderPackage.cc (IniDBBuilder::buildSourceFile): Implement a
60 2002-07-13 Robert Collins <rbtcollins@hotmail.com>
62 * PickPackageLine.cc (PickPackageLine::click): Set requirements for
63 packages under all circumstances - slightly higher overheader, simpler
65 * download.cc (do_download_thread): Correctly download source
67 * package_meta.cc (checkForInstalled): Remove.
68 (checkForUpgradeable): Ditto.
69 (checkForSatisfiable): Ditto.
70 (processOneDependency): Ditto.
71 (packagemeta::set_requirements): Move guts to packageversion.
72 * package_version.cc (checkForInstalled): Copied from package_meta.cc.
73 (checkForUpgradeable): Ditto.
74 (checkForSatisfiable): Ditto.
75 (processOneDependency): Ditto.
76 (packageversion::set_requirements): Ditto.
77 * package_version.h (packageversion::set_requirements): Declare.
79 2002-07-13 Robert Collins <rbtcollins@hotmail.com>
81 * IniDBBuilder.cc (IniDBBuilder::buildBeginBuildDepends): Implement.
82 (IniDBBuilder::buildBeginBinary): Implement.
83 * IniDBBuilder.h (IniDBBuilder::buildBeginBuildDepends): Declare.
84 (IniDBBuilder::buildBeginBinary): Ditto.
85 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildBeginBuildDepends):
87 (IniDBBuilderPackage::buildBeginBinary): Ditto.
88 * IniDBBuilderPackage.h (IniDBBuilderPackage::buildBeginBuildDepends):
90 (IniDBBuilderPackage::buildBeginBinary): Ditto.
91 * inilex.l: Recognise Build-Depends-Indep, [,], >, < and remove
93 * iniparse.y: Full support for parsing a debian Sources file in-line in
95 * package_version.cc (packageversion::binaries): Implement.
96 * package_version.h (packageversion::binaries): Declare list of what
97 packages are created from a given source package.
98 (_packageversion::binaries): Ditto.
100 2002-07-10 Robert Collins <rbtcollins@hotmail.com>
102 * iniparse.y: Add basis for support for parsing a debian Sources file.
105 2002-07-09 Robert Collins <rbtcollins@hotmail.com>
107 Change custom container code for packagedb::packages to STL containers
109 * IniDBBuilderPackage.cc: Ditto.
110 * PickView.cc: Ditto.
113 * download.cc: Ditto.
115 * package_db.cc: Ditto.
116 * package_db.h: Ditto.
117 * Makefile.am: Remove list.h references.
120 2002-07-08 Max Bowsher <maxb@ukf.net>
122 * PickView.cc (PickView::PickView): Set font of package list header to
123 the same as used in the rest of the package list.
125 2002-07-08 Robert Collins <rbtcollins@hotmail.com>
127 * install.cc (NoReplaceOnReboot): New command line option to prevent
128 replacing in use files.
129 (install_one_source): Check the option and use it.
130 * README: Update TODO lists.
132 2002-07-08 Robert Collins <rbtcollins@hotmail.com>
134 * PickCategoryLine.cc: Change bucket to use STL container syntax
136 (PickCategoryLine::paint): Use new Category type syntax.
137 * PickCategoryLine.h: Use STL vectors rather than custom containers
139 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageCategory):
140 Use new add_category syntax.
141 * PickView.cc (PickView::insert_pkg): Use new Category type syntax.
142 (PickView::insert_category): Ditto.
143 (PickView::init_headers): Ditto.
144 * category.cc: Trim obsolete code.
145 * category.h: Replace interconnecting class with a typedef to
146 facilitate leveraging STL maps.
147 * choose.cc (fill_missing_category): Use updated pkg.add_category
149 (default_trust): Use new Category type syntax.
150 (set_view_mode): Ditto.
151 (create_listview): Ditto.
152 * package_db.cc (categories): Ditto.
153 * package_db.h: Update headers list to include needed headers.
154 (packagedb::categories): Replace custom list with STL map.
155 * package_meta.cc: Use new Category type syntax throughout.
156 (packagemeta::add_category): Implement new syntax.
157 * package_meta.h: Remove commented out source.
158 (packagemeta::add_category): Update syntax to decouple interface from
161 2002-07-06 Christopher Faylor <cgf@redhat.com>
163 * site.cc (do_download_site_info_thread): Correct spelling error.
165 2002-07-06 Robert Collins <rbtcollins@hotmail.com>
167 * PickCategoryLine.h: Include required header list.h.
168 * PickPackageLine.cc (PickPackageLine::paint): Adjust to use STL
169 containers for listing of packages per category and vice verca.
170 * PickView.cc (PickView::insert_pkg): Ditto.
171 (PickView::insert_category): Ditto.
172 * String++.h (String::caseless): STL helper to allow trivial containers
173 of Strings with case insensitive comparisons.
174 * category.h: Adjust to use STL containers for listing of packages per
175 category and vice verca.
176 * choose.cc (fill_missing_category): Ditto.
177 (default_trust): Ditto.
178 (ChooserPage::OnNext): Ditto.
179 * package_meta.cc (CategoryPackage::~CategoryPackage): Remove.
180 (packagemeta::packagemeta): Adjust for new category list name.
181 (packagemeta::~packagemeta): Adjust to use STL containers for listing
182 of packages per category and vice verca.
183 (packagemeta::set_action): Ditto.
184 * package_meta.h (CategoryPackage): Remove.
185 (packagemeta): Adjust to use STL containers for listing of packages per
186 category and vice verca.
188 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
190 * io_stream.cc: Use STL containers rather than custom ones.
191 (io_stream::registerProvider): Ditto.
192 (findProvider): Ditto.
194 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
196 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
197 Use STL collections for download site collections.
198 (IniDBBuilderPackage::add_correct_version): Ditto.
199 (IniDBBuilderPackage::process_src): Ditto.
200 * PickPackageLine.cc (PickPackageLine::click): Use the packageversion
201 accessible() call to abstract package availability.
202 * choose.cc (scanAVersion): Use STL collections for download site
204 * download.cc (check_for_cached): Ditto.
205 (download_one): Ditto.
206 * package_meta.cc (packagemeta::set_action): Use the packageversion
207 accessible() call to abstract package availability.
208 * package_source.h: Use STL containers rather than custom containers.
209 (site): Create a == operator to allow STL container use.
210 (packagesource::sites): Use STL containers rather than custom
212 * package_version.cc (_packageversion::accessible): Use STL containers
213 for download site containers.
215 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
217 * LogFile.cc: Use STL containers rather than custom containers.
218 (filedef): Create == and < operators for STL use.
219 (files): Convert to an STL set.
220 (LogFile::setFile): Use STL operations on files.
221 (LogFile::exit): Ditto.
223 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
225 * ini.cc (do_remote_ini): Use STL collection for site collection.
226 * site.cc: Include site.h first to ensure it's parsable standalone.
228 (site_list): Convert to an STL container.
229 (all_site_list): Ditto.
230 (site_list_type::site_list_type): Implement copy constructor.
231 (site_list_type::operator=): Implement assignment operator.
232 (site_list_type::operator ==): Implement.
233 (site_list_type::operator <): Ditto.
234 (save_dialog): Use STL collection calls for site collection.
235 (save_site_url): Ditto.
236 (get_site_list): Ditto.
237 (get_saved_sites): Ditto.
238 (do_download_site_info_thread): Ditto.
239 (SitePage::OnNext): Ditto.
240 (SitePage::PopulateListBox): Ditto.
241 (SitePage::OnMessageCmd): Ditto.
242 * site.h: Use STL vectors instead of custom code.
243 (site_list_type::site_list_type): Declare.
244 (site_list_type::operator=): Ditto.
245 (site_list_type::operator ==): Ditto.
246 (site_list_type::operator !=): Ditto.
247 (site_list_type::operator <): Ditto.
248 (site_list_type::operator <=): Ditto.
249 (site_list_type::operator >): Ditto.
250 (site_list_type::operator >=): Ditto.
251 (site_list): Convert to an STL container.
252 (all_site_list): Ditto.
254 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
256 * choose.cc (default_trust): Check package accessibility before
257 triggering an install. (Suggested by Pavel).
259 2002-07-03 Pavel Tsekov <ptsekov@gmx.net>
261 * compress_gz.cc (compress_gz::construct): Always initialize key members
262 to ensure the destructor does the right thing.
264 2002-07-03 Pavel Tsekov <ptsekov@gmx.net>
266 * filemanip.cc (parse_filename): Do not try to parse empty
268 * package_db.cc (packagedb::packagedb): For each line check if sscanf()
269 extracted good package name and filename.
271 2002-07-03 Robert Collins <rbtcollins@hotmail.com>
273 * package_meta.cc (packagemeta::set_requirements): Automatically select
274 version of dependent packages that satisfies the requirements.
275 Use processOneDependency to trigger the install of those packages.
276 (checkForInstalled): Check that the package remains installed.
277 (processOneDependency): Helper function for dependent packages.
278 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackage): Add more
280 Clear out all current state on new packages.
281 (IniDBBuilderPackage::add_correct_version): Copy the dependency list
284 2002-07-02 Robert Collins <rbtcollins@hotmail.com>
286 * Makefile.am (inilint_SOURCES): Add PackageSpecification sources.
287 nb: inilint is still incomplete, as the packageversion code is not
288 ready for database-less linking.
289 * site.cc (get_site_list): When the same site is reentered by the user
290 replace the old one. (Suggested by John Marshall).
292 2002-07-02 Robert Collins <rbtcollins@hotmail.com>
294 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
295 Clear out package selections when generating implicit source packages.
296 * PackageSpecification.cc (PackageSpecification::satisfies): Implement.
297 (PackageSpecification::_operators::satisfies): Implement.
298 * PackageSpecification.h (PackageSpecification::_operators::satisfies):
299 Worker function for testing versions.
301 2002-07-01 Robert Collins <rbtcollins@hotmail.com>
303 * IniDBBuilder.cc (IniDBBuilder::buildPackageRequirement): Remove.
304 * IniDBBuilder.h (IniDBBuilder::buildPackageRequirement): Ditto.
305 * IniDBBuilderPackage.cc: Use the STL algorithms.
306 Change cpv to cbpv throughout. Adjust -> to ., and use the new accessor
307 functions for the same variable throughout.
308 (IniDBBuilderPackage::IniDBBuilderPackage): Initialise new members.
309 (IniDBBuilderPackage::buildPackage): Use new cygpackage syntax,
310 and set an empty source package.
311 (IniDBBuilderPackage::buildPackageInstall): Use the new source member
312 to record an install package.
313 (IniDBBuilderPackage::buildPackageSource): Move source package logic
314 out from process_src, as it now occurs at separate times.
315 (IniDBBuilderPackage::buildPackageRequirement): Remove.
316 (IniDBBuilderPackage::buildSourceName): Use renamed package
317 specifiation accessor for clarity.
318 (IniDBBuilderPackage::buildSourceNameVersion): Ditto.
319 (IniDBBuilderPackage::add_correct_version): Use STL iterators rather
321 Remove source package references.
322 (IniDBBuilderPackage::process_src): Remove source package code as it's
323 now handled separately.
324 Set Path information before merging versions, to prevent dangling
326 * IniDBBuilderPackage.h (IniDBBuilderPackage::buildPackageRequirement):
328 (IniDBBuilderPackage::cpv): Remove.
329 (IniDBBuilderPackage::cbpv): New generic binary working variable.
330 (IniDBBuilderPackage::cspv): Ditto, but for source packages.
331 (IniDBBuilderPackage::csp): Source package variable for disjoint
333 * Makefile.am (AM_CFLAGS): Remove -Winline to allow stl set code
334 to compile. If it compiles cleanly in gcc 3.1, then reinstate.
335 * PickPackageLine.cc: Adjust packageversion accessors to the new
336 reference calls. (i.e. -> to .) throughout.
337 (PickPackageLine::paint): Use accessible() for clarity.
338 Use new split out source package logic.
339 (PickPackageLine::click): Ditto.
340 * PickView.cc (PickView::init_headers): Adjust packageversion accessors
341 to the new reference calls. (i.e. -> to .) throughout.
342 Use new split out source package logic.
343 * choose.cc: Don't depend on a specific package type.
344 Adjust packageversion accessors to the new reference calls. (i.e. -> to
346 (set_existence): Use accessible () for clarity.
347 (default_trust): Simplify a little.
348 (scanAVersion): Factored out code from scan_downloaded_files for
350 (scan_downloaded_files): Factor out inner loop for clarity.
351 (ChooserPage::OnNext): Don't dump the dependency list,
352 it's parsing is robust now!.
353 * cygpackage.cc (createInstance): Use a factory method to create new
355 (cygpackage::cygpackage): Make this private for use by the factory.
356 (cygpackage::setCanonicalVersion): Renamed from set_canonical_version.
357 Remove key usage as it's obsolete.
358 * cygpackage.h (cygpackage): Inherit from _packageversion, not
360 (cygpackage::createInstance): New factory.
361 (cygpackage::cygpackage): Make private.
362 * desktop.cc (make_passwd_group): Use new packageversion reference.
363 * download.cc (do_download_thread): Use changeRequested() for clarity.
364 Use new packageversion reference calls.
365 * iniparse.y (REQUIRES): Reuse the packageList code and dump the one-off
367 * install.cc: Adjust -> to ., and use the new accessor functions for
368 packageversion throughout.
369 * package_db.cc: Adjust -> to ., and use the new accessor functions for
370 packageversion throughout.
371 (packagedb::packagedb): Use the new cygpackage factory.
372 (packagedb::flush): Leverage String to remove buffer overflow chance in
374 (packagedb::findBinary): Find a binary meta package that has a version
375 matching a given specification.
376 (packagedb::findSource): Ditto, but for source.
377 * package_db.h (packagedb::findBinary): Declare.
378 (packagedb::findSource): Ditto.
379 * package_meta.cc: Adjust packageversion accessors to the new
380 reference calls. (i.e. -> to .) throughout.
381 Include the package_meta header first to ensure it parses standalone.
382 Use the STL algorithms.
383 (packagemeta::packagemeta): Create a copy constructor to allowing
384 cloning binary package metadata to source package metadata.
385 (packagemeta::~packagemeta): Use the STL coleltion code rather than
386 custom collection code.
387 (packagemeta::add_version): Ditto.
388 (packagemeta::set_installed): Ditto.
389 (packagemeta::SDesc): Ditto.
390 (hasSDesc): Helper function for find_if.
391 (checkForInstalled): Ditto.
392 (checkForUpgradeable): Ditto.
393 (checkForSatisfiable): Ditto.
394 (packagemeta::action_caption): Update for split out source packages.
395 (packagemeta::set_action): Ditto.
396 (packagemeta::set_requirements): Support multi-valued dependency
397 lists - a|b & c|d - with versioned package specifications.
398 (packagemeta::accessible): Helper member to improve abstraction.
399 (packagemeta::sourceAccessible): Ditto.
400 * package_meta.h: Adjust packageversion accessors to the new
401 reference calls. (i.e. "->" to "." and"*" to "" ) throughout.
402 (packagemeta::packagemeta): Declare copy constructor.
403 Remove self initialising members.
404 (packagemeta::set_action): Update parameters for new packageversion.
405 (packagemeta::trustp): Ditto.
406 (packagemeta::versions): Becomes an STL set.
407 * package_source.h (packagesource::Cached): Const correctness change.
408 * package_version.cc: Rewrite the packageversion interface to remove
409 the cygpackage nonvirtual members, and provide a copy by value,
410 pointer semantics reference counting wrapper class to ease use and
411 comparison of packageversions.
412 Change existing packageversion class to _packageversion throughout.
413 (_defaultversion): A trivial concrete class to prevent specialcasing
414 the default constructor for packageversion;
415 (packageversion::packageversion): Implement.
416 (packageversion::~packageversion): Ditto.
417 (packageversion::operator=): Ditto.
418 (packageversion::operator !): Ditto.
419 (packageversion::operator bool): Ditto.
420 (packageversion::operator ==): Ditto.
421 (packageversion::operator !=): Ditto.
422 (packageversion::operator <): Ditto.
423 (packageversion::Name): Ditto.
424 (packageversion::Canonical_version): Ditto.
425 (packageversion::setCanonicalVersion): Ditto.
426 (packageversion::getfirstfile): Ditto.
427 (packageversion::getnextfile): Ditto.
428 (packageversion::SDesc): Ditto.
429 (packageversion::set_sdesc): Ditto.
430 (packageversion::LDesc): Ditto.
431 (packageversion::set_ldesc): Ditto.
432 (packageversion::sourcePackage): Ditto.
433 (packageversion::sourcePackageSpecification): Ditto.
434 (packageversion::setSourcePackageSpecification): Ditto.
435 (packageversion::depends): Ditto.
436 (packageversion::predepends): Ditto.
437 (packageversion::recommends): Ditto.
438 (packageversion::suggests): Ditto.
439 (packageversion::replaces): Ditto.
440 (packageversion::conflicts): Ditto.
441 (packageversion::provides): Ditto.
442 (packageversion::picked): Ditto.
443 (packageversion::pick): Ditto.
444 (packageversion::changeRequested): Ditto.
445 (packageversion::uninstall): Ditto.
446 (packageversion::source): Ditto.
447 (packageversion::accessible): Ditto.
448 (_packageversion::sourcePackage): Ditto.
449 (_packageversion::accessible): Ditto.
450 (_packageversion::changeRequested): Ditto.
451 * package_version.h: Rewrite the packageversion interface to remove
452 the cygpackage nonvirtual members, and provide a copy by value,
453 pointer semantics reference counting wrapper class to ease use and
454 comparison of packageversions.
455 Change existing packageversion class to _packageversion throughout.
456 (Dependency): Remove.
457 (packageversion): New wrapper class.
458 (_packageversion): Renamed from packageversion.
459 (_packageversion::setCanonicalVersion): New method.
460 (_packageversion::sourcePackage): Ditto.
461 (_packageversion::sourcePackageSpecification): Ditto.
462 (_packageversion::setSourcePackageSpecification): Ditto.
463 (_packageversion::changeRequested): Ditto.
464 (_packageversion::bin): Rename to source.
465 (_packageversion::src): Remove.
466 (_packageversion::accessible): New method.
467 (_packageversion::references): Allow reference counting.
468 (_packageversion::sourceVersion): Cached the best-match source
471 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
473 * compress_bz.h (compress_bz::position): Track how much has been read.
474 * compress_bz.cc (compress_bz::compress_bz): And initialise it.
475 (compress_bz::read): Track amount read by the client.
476 (compress_bz::tell): And report it when asked.
478 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
480 * Makefile.am (snapshot): Automate snapshot creation some more.
482 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
484 * msg.cc (msg): Use vsnprintf to avoid buffer overflows.
486 * ini.cc (fprintf): Ditto.
487 * log.cc (log): Ditto.
488 * package_db.cc (packagedb::sourcePackages): Split out source packages
489 from binary packages.
490 * package_db.h: Ditto.
492 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
494 * PackageSpecification.h: New file. Abstracts the ability to refer
495 to another package, by name, or name and version.
496 * PackageSpecification.cc: Ditto.
497 * IniDBBuilder.cc (IniDBBuilder::buildPackageInstall): Simplify.
498 (IniDBBuilder::buildPackageSource): Ditto.
499 (IniDBBuilder::buildBeginDepends): New method for versioned
501 (IniDBBuilder::buildBeginPreDepends): Likewise, for dependencies to be
502 satisfied before pre-install.
503 (IniDBBuilder::buildPriority): New method, for getting the package
505 (IniDBBuilder::buildInstalledSize): How much disk space does it need?
506 (IniDBBuilder::buildMaintainer): Who maintains the package?
507 (IniDBBuilder::buildArchitecture): What platform is it for?
508 (IniDBBuilder::buildInstallSize): How big is the binary download?
509 (IniDBBuilder::buildInstallMD5): Whats the MD5 on the binary?
510 (IniDBBuilder::buildSourceMD5): Whats the MD5 on the source package?
511 (IniDBBuilder::buildBeginRecommends): What other packages are
512 recommended with this one?
513 (IniDBBuilder::buildBeginSuggests): And suggested?
514 (IniDBBuilder::buildBeginReplaces): What packages does this replace?
515 (IniDBBuilder::buildBeginConflicts): And collide with?
516 (IniDBBuilder::buildBeginProvides): What virtual packages (or obsolete
517 package names) does this provide?
518 (IniDBBuilder::buildDescription): Grab a multi line description one
520 (IniDBBuilder::buildSourceName): What source package should be used to
521 install the source for this binary package?
522 (IniDBBuilder::buildSourceNameVersion): Is a specific version needed?
523 (IniDBBuilder::buildPackageListAndNode): Add another AND clause to a
524 list of package specifications.
525 (IniDBBuilder::buildPackageListOrNode): Add another OR clause.
526 (IniDBBuilder::buildPackageListOperator): Add a versioning operator
527 to the current specification.
528 (IniDBBuilder::buildPackageListOperatorVersion): What version does the
530 * IniDBBuilder.h: Declare all the IniDBBuilder.cc changes.
531 * IniDBBuilderPackage.cc: As for IniDBBuilder.cc.
532 (IniDBBuilderPackage::IniDBBuilderPackage): Iniitialize new members.
533 (IniDBBuilderPackage::process_src): Streamline and split out
535 (IniDBBuilderPackage::setSourceSize): From process_src.
536 * IniDBBuilderPackage.h: Declare the IniDBBuilderPackage.cc changes.
537 (IniDBBuilderPackage::currentSpec): Track the in-progress specifiation.
538 (IniDBBuilderPackage::currentOrList): Track the current Or list.
539 (IniDBBuilderPackage::currentAndList): Track the current And list.
540 * IniParseFeedback.cc (IniParseFeedback::progress): Provide completion
542 (IniParseFeedback::iniName): Tell what ini filename we are currently
544 * IniParseFeedback.h: Declare IniParseFeedback.cc changes.
545 * IniParseFindVisitor.cc (IniParseFindVisitor::IniParseFindVisitor):
546 Make the feedback object non-const to allow mutating methods which are
547 needed when the object has state.
548 (IniParseFindVisitor::visitFile): Tell the caller the name of each
550 Initialise the parser with the feedback object to allow it to tell of
552 * IniParseFindVisitor.h: Declare IniParseFindVisitor.cc changes.
553 * Makefile.am (inilinst_SOURCES): Add more requisite classes.
554 (setup_SOURCES): Add the new PackageSpecification sources.
555 * ScanFindVisitor.cc (ScanFindVisitor::visitFile): Use the new
556 builder syntax to setup binary package details.
557 * choose.cc: Use the LogSingleton calls throughout.
558 * configure.in: Create the INILINT substitution correctly for recent
559 autotool configurations.
560 * cygpackage.cc (cygpackage::getfirstfile): Return an empty String
561 rather than a string built from an int. Thanks to Pavel Tsekov for
563 (cygpackage::getnextfile): Ditto.
564 * download.cc: Use LogSIngletion calls throughout.
565 (validateCachedPackage): A refactoring of the
566 check_for_cached code to eliminate duplciation.
567 (check_for_cached): Use validateCachedPackage to check packages.
568 * ini.cc (GuiParseFeedback): Provide gui feedback on ini name and
570 (do_remote_ini): Ditto.
571 * ini.h (ini_init): Pass a IniParseFeedback to the parser, to allow
573 * inilex.l: Identify new symbols - operators, and multi line plain text.
575 * inilintmain.cc (show_help): Provide basic infomation on inilint.
576 * iniparse.y: Adjust for the new builder syntax, and process debian
578 * io_stream_file.cc: Always include mkdir.h.
579 * list.h: Factor index location into a private routine.
580 (list::findindex): Implement this.
581 * mkdir.cc (mkdir_p): Make the use of WIN32 code conditional on mingw
582 builds. NB: This breaks cygwin build functionality still.
583 * package_meta.cc: Use the LogSingleton calls throughout.
584 (packagemeta::set_requirements): Adjust for object changes in
586 * package_meta.h (packagemeta::packagemeta): Initialise new members.
587 (packagemeta::architecture): What platform does this package run on?
588 This may need to move in the future to a per packagefile object.
589 (packagemeta::priority): What priority does this package have?
590 * package_source.h (packagesource::packagesource): Initialise new
592 (packagesource::installedSize): How much space does the package need?
593 (packagesource::setInstalledSize): Tell the amount.
594 (packagesource::_installedSize): And store it.
595 * package_version.cc (packageversion::sourcePackage): return the
597 (packageversion::setSourcePackage): And set it.
598 * package_version.h: Declare the package_version.cc changes.
599 (packageversion::depends): New package specification AND list.
600 (packageversion::predepends): Ditto.
601 (packageversion::recommends): Ditto.
602 (packageversion::suggests): Ditto.
603 (packageversion::replaces): Ditto.
604 (packageversion::conflicts): Ditto.
605 (packageversion::provides): Ditto.
606 (packageversion::sourcePackage): What source package is needed?
607 * threebar.cc (ThreeBarProgressPage::SetText4): Set the label beside
609 * threebar.h: Declare the threebar.cc change.
611 2002-06-27 John Marshall <johnm@falch.net>
613 * res.rc (SETUPINI_MISSING): Make trailing spaces visible.
614 * site.cc (SitePage::OnMessageCmd): Ditto
616 2002-06-15 Robert Collins <rbtcollins@hotmail.com>
618 * nio-ie5.cc (NetIO_IE5::NetIO_IE): Allow cached data.
620 2002-06-15 Robert Collins <rbtcollins@hotmail.com>
622 * package_meta.cc (packagemeta::set_action): When installing packages
623 with no binaries, choose the source package.
625 2002-06-10 Robert Collins <rbtcollins@hotmail.com>
627 * IniParseFindVisitor (IniParseFindVisitor::visitFile): Apply Max
628 Bowshers fix for the crash with a root level setup.ini.
629 * README: Update todos.
631 2002-05-26 Ralf Habacker <ralf.habacker@freenet.de>
633 * archive_tar.cc (archive_tar::next_file_name()): fixed broken
634 GNU long name extension support.
636 2002-05-27 Robert Collins <rbtcollins@hotmail.com>
638 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Don't
639 unescape 0 length strings.
641 2002-05-20 Robert Collins <rbtcollins@hotmail.com>
643 * package_meta.cc (packagemeta::set_action): Don't allow reinstall
644 when local with no cached file, and install the default source if the
645 default version has no binary.
647 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
649 * IniDBBuilderPackage.cc (IniDBBuilderPackage::IniDBBuilderPackage): New
651 (IniDBBuilderPackage::buildVersion): Provide a warning when a newer
652 setup version created the ini file.
653 * IniDBBuilderPackage.h (IniDBBuilderPackage::IniDBBuilderPackage): New
655 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Use the new
657 * IniParseFindVisitor.h (IniParseFindVisitor::IniParseFindVisitor):
658 Require a feedback strategy.
659 * Makefile.am (setup_SOURCES): Add IniParseFeedback sources.
660 * Makefile.in: Regenerate.
662 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
664 * io_stream_file.cc (io_stream_file::remove): Use the SetFileAttributes
665 trick to delete read only files.
666 * io_stream_cygfile.cc (io_stream_cygfile::remove): Use file:// to
668 * Makefile.am (release): Tweak to be more helpful.
669 * Makefile.in: Regenerate.
671 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
673 * Makefile.am (release): Tweak to be more helpful.
674 * Makefile.in: Regenerate.
676 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
678 * Makefile.am (release): Tweak to be more helpful.
679 * Makefile.in: Regenerate.
681 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
683 * choose.cc (scan_downloaded_files): When a non-installed version
684 has neither bin nor src cached files for local installs,
685 remove the version from availability.
687 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
689 * ini.cc (do_remote_ini): Save uncompressed ini's correctly.
691 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
693 * rsync: New support library, contains librsync. This is not (yet)
695 * configure.in: --with-rsync to enable rsync support. (Not complete).
696 * Makefile.am: Enable building with rsync.
697 * Makefile.in: Regenerate.
699 * IniDBBuilder.cc (IniDBBuilder::buildPackageInstall): Pass the md5 as
701 (IniDBBuilder::buildPackageSource): Ditto.
702 * IniDBBuilder.h: Ditto.
703 * IniDBBuilderPackage.cc: Ditto.
704 * IniDBBuilderPackage.h: Ditto.
705 * FindVisitor.cc: New file.
706 * FindVisitor.h: New file, interface for visiting a file system
708 * IniParseFindVisitor.cc: New file.
709 * IniParseFindVisitor.h: New file, concrete FindVisitor that parses
711 * README: Update TODO's.
712 * String++.cc (String::String): New constructor for <string> inter-
714 (String::substr): New method.
716 * choose.cc (scan2): Remove.
717 (scan_downloaded_files): Simplify.
718 * dialog.h: Include parsing pre-requirements.
719 * download.cc (check_for_cached): Fullname was used incorrectly - fix.
720 * filemanip.cc (parse_filename): -src packages where incorrectly parsed.
721 * find.cc: Rewrite. Now uses a Visitor pattern and is re-entrant.
723 * fromcwd.cc: Remove unneeded includes.
724 (is_test_version): Remove.
725 (found_file): Remove.
726 (SetupFindVisitor): Trivial visitor to detect setup.ini's.
728 (do_fromcwd): Remove commented code that has be replaced elsewhere.
729 * ini.cc (local_ini): Remove.
730 (findBuilder): Remove.
731 (find_routine): Remove.
732 (do_local_ini): Use new IniParseFindVisitor.
733 * iniparse.y: Typecase MD5 arrays, as we know they are allocated as
735 * postinstall.cc: Remove non-core includes.
736 (run_script_in_postinstall): Remove.
737 (RunFindVisitor): Trivial Visitor, runs each found script.
738 (do_postinstall): Use new find syntax.
740 2002-05-14 Christopher Faylor <cgf@redhat.com>
742 * ini.cc (find_routine): Don't clear buffer it it's NULL.
744 2002-05-14 Christopher Faylor <cgf@redhat.com>
746 * filemanip.h (trail): Declare.
747 * filemanip.cc (trail): New function.
748 (find_tar_ext): Use trail() instead of strstr().
749 * fromcwd.cc (check_ini): Ditto.
750 * ini.cc (find_routine): Ditto. Don't tack local_dir to path since it
751 should now be fully qualified. Set ini_filename. Reset error_buf and
752 error_count for any subsequent ini file parsing.
753 (ini_filename): New static variable for parse error reporting.
754 (yyerror): Use full path of setup.ini in error message. Subtract one
755 from line number if at bol.
756 * find.cc (found_part): Eliminate.
757 (find_sub): Call for_each with full path found rather than just file
759 (find): Don't calculate found_part.
760 * inilex.l (ini_init): Flush input buffer and reset line number.
761 (yybol): New function. Exports YY_AT_BOL.
762 * iniparse.y: Increase stack depth to allow more tokens to be processed.
763 (yyparse): Remove newline from error condition to allow subsequent
764 per-line error processing to proceed normally.
766 2002-05-14 Christopher Faylor <cgf@redhat.com>
768 * find.cc (find_sub): Be more defensive in preserving trailing parts of
769 components when doing recursive directory searches or calling user
771 * ini.cc (find_routine): Don't assume that any path name with
772 "setup.ini" in it is actually a setup.ini file. Only honor trailing
773 components. Copy path argument to temporary storage when unescaping
774 to prevent nuking of argument.
776 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
778 * CONTRIBUTORS: New file.
780 2002-04-02 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
782 * choose.cc: Run indent.
783 (nextbutton): Remove static variable.
784 (default_trust): Remove use of nextbutton.
785 (set_view_mode): Ditto.
786 (create_listview): Add IDC_CHOOSE_PREV and IDC_CHOOSE_NEXT to ta[] so
787 rbset() sets the prev/next/curr radio buttons properly.
788 (dialog_cmd): Delete function.
789 (dialog_proc): Delete function. Move WM_INITDIALOG functionality to
791 (do_choose): Delete function. Move pre-DialogBox() code to
792 ChooserPage::OnInit(), post-DialogBox() code to ChooserPage::OnNext.
793 (WM_APP_START_CHOOSE): Remove define.
794 (WM_APP_CHOOSE_IS_FINISHED): Remove define.
795 (do_choose_thread): Delete function.
796 (ChooserPage::OnActivate): Delete method.
797 (ChooserPage::OnMessageApp): Delete method.
798 (ChooserPage::OnInit): New method.
799 (ChooserPage::OnNext): New method.
800 (ChooserPage::OnBack): New method.
801 (ChooserPage::OnMessageCmd): New method.
802 * choose.h: Run indent.
803 (ChooserPage::OnMessageApp): Delete declaration.
804 (ChooserPage::OnActivate): Ditto.
805 (ChooserPage::OnMessageCmd): New declaration.
806 (ChooserPage::OnInit): Ditto.
807 (ChooserPage::OnNext): Ditto.
808 (ChooserPage::OnBack): Ditto.
809 * desktop.cc (DesktopSetupPage::OnBack): Replace use of IDD_CHOOSER
811 * fromcwd.cc (do_fromcwd): Replace use of IDD_CHOOSER with IDD_CHOOSE.
812 * ini.cc (do_ini_thread): Replace use of IDD_CHOOSER with IDD_CHOOSE.
813 * res.rc (IDD_CHOOSE): Remove dialog template.
814 (IDD_CHOOSER): Alter dialog template to fit wizard size and format.
816 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
818 * LogFile.cc (endLog): Work around an apparent libg++-3 bug causing
819 corrupt log file entries.
820 * geturl.cc: Convert to the new LogSingleton logging.
822 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
824 * ini.cc (do_remote_ini): Use setup.bz2 if it exists in preference to
827 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
829 * geturl.h: Declare getUrlToStream.
830 * geturl.cc (getUrlToStream): New function.
831 (get_url_to_membuf): Refactor to use getUrlToStream.
833 2002-05-11 Robert Collins <rbtcollins@hotmail.com>
835 * Makefile.am: Add a release target to automate some of the routine
837 * Makefile.in: Regenerate.
839 2002-05-11 Robert Collins <rbtcollins@hotmail.com>
841 * choose.cc (scan_downloaded_files): On local installs remove all
842 mirror sites if no cached copy of a package is found.
844 2002-05-10 Robert Collins <rbtcollins@hotmail.com>
846 * Makefile.in: Regenerate.
847 * iniparse.y: Use left recursion, not right in the lines rule to
848 avoid stack overflows.
849 * README: Update TODO's.
850 * io_stream_file.cc: Native builds need to include sys/stat.h
852 2002-05-06 John Marshall <jmarshall@acm.org>
854 * site.cc (SitePage::OnMessageCmd): recalculate navigation
855 button activation when "Add" is pressed.
856 (SitePage::CheckControlsAndDisableAccordingly): tweak comment.
858 2002-05-07 Robert Collins <rbtcollins@hotmail.com>
860 * Makefile.am (inlint_SOURCES): Add conditional objects to inilint
861 depending on platform.
863 * configure.in: Set conditional MINGWTARGET if compiling against mingw
865 * Makefile.in: Regenerate.
867 * io_stream_file.cc: Only use win32 calls when building for mingw.
869 2002-05-05 Robert Collins <rbtcollins@hotmail.com>
871 * Makefile.am (noinst_PROGRAMS): Make inilint configurable.
872 * configure.in: Ditto.
873 Fix incorrect header checking syntax.
874 * aclocal.m4: Regenerate.
875 * configure: Regenerate.
876 * Makefile.in: Regenerate.
877 * io_stream.cc: Remove platform specific and provider specific code.
878 (io_stream::registerProvider): New method, registers a Url provider with
880 Make all methods consistently throw invalid_argument exceptions when
881 a provider that is requested is not present.
882 (findProvider): New private function, finds a provider.
883 * io_stream.h: Declare io_stream::registerProvider.
884 * io_stream_cygfile.cc: Create a Provider class to register with
886 * io_stream_file.cc: Ditto.
887 * archive.cc: Remove unneeded includes.
888 * archive_tar.cc: Remove unneeded includes.
889 * archive_tar.h: Add required include.
890 * archive_tar_file.cc: Remove unneded includes.
891 * choose.cc: Remove unneeded includes:
893 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
895 * io_stream.cc: Use the new log interface thruout.
897 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
899 * log.cc (log): Reimplement via LogSingleton.
901 (exit_setup): Remove.
902 * log.h (log_save): Remove.
903 (exit_setup): Remove.
904 * LogSingleton.cc: New file.
905 * LogSingleton.h: New file.
906 * LogFile.cc: New file.
907 * LogFile.h: New file.
908 * Makefile.am (inilint_SOURCES): Add the new log interface.
909 (setup_SOURCES): Add the new log interface and the concrete File
911 * Makefile.in: Regenerate.
912 * archive.cc: Use the new log interface thruout.
913 * archive_tar.cc: Ditto.
915 * dialog.cc (fatal): Use the new log interface.
916 * ini.cc (do_ini_thread): Use the log interface to exit.
917 * isntall.cc (do_install_thread): Ditto.
918 * netio.cc (auth_cmd): Ditto.
919 * msg.cc (fatal): Ditto.
920 * localdir.cc (save_local_dir): Save to different files depending on
921 the mode, and if a root dir exists.
923 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
925 * IniDBBuilder.cc: New file.
926 * IniDBBuilder.h: New file.
927 * IniDBBuilderPackage.cc: New file.
928 * IniDBBuilderPackage.h: New file.
929 * PackageTrust.h: New file.
930 * IniState.h: Remove, wasn't thought out well enough.
931 * Makefile.am (inilint_SOURCES): Add more requirements.
932 (setup_SOURCES): Add new Builder base and concrete classes.
933 * Makefile.in: Regenerate.
934 * String++.cc (String::String): Implement int contructor.
935 * String++.h (String): Declare int constructor.
936 * archive_tar.cc (archive_tar::next_file_name): Return String() when
938 * archive_tar.h (archive_tar_file): Remove get_next_filename method,
940 * ini.cc: Replace IniState wuth IniDBBuilderPacakge.
941 (find_routine): Use new IniDBBuilder to configure the parser.
942 (do_local_ini): Ditto.
943 (do_remote_ini): Ditto.
944 * ini.h: Use IniDBBuilder to initialise parsing.
945 * inilex.l (MD5): Parse the MD5 string correctly, we had the nibbles
947 (ini_init): Use an IniDBBuilder rather than static variables.
948 * iniparse.y: Hand off all the object creation to a builder, rather
949 than hardcoding the behaviour. This allows run-time configured
951 * io_stream_cygfile.h (io_stream_cygfile): Remove get_next_filename
952 method, it's not needed.
953 * io_stream_file.h (io_stream_file): Ditto.
954 * mount.cc (cygpath): Return String() for missing mounts.
955 * package_meta.cc (packagemeta::SDesc): Return String() for blank
957 * package_meta.h (trusts): Remove - replaced by PackageTrust.h.
958 (packagemeta::packagemeta): Fix incorrect syntax in String constructor
960 * cygpackage.cc (cygpackage::cygpackage): Fix incorrect syntax in
961 String constructor usage.
962 * site.h (site_list_type): Ditto.
964 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
966 * String++.h: Declare a << operator that accepts String objects.
967 * String++.cc: We need iostream for..
968 (operator <<): this. Provide a << operator that accepts String objects.
969 * ini.cc (yyerror): Remove the "C" classifier - it's not needed.
970 Change from vargs to a String parameter.
971 * inilintmail.cc: Remove the gui related headers.
972 (yyerror): Implement this for parsing.
973 * iniparse.y: Use the new yyerror syntax.
975 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
977 * Makefile.am: Add IniState.h.
978 * Makefile.in: Regenerate.
979 * IniState.h: New file.
980 * choose.cc: Don't include ini.h - it's not needed.
981 * configure: Regenerate.
982 * desktop.cc: Don't include ini.h - it's not needed.
983 * download.cc: Ditto.
985 * ini.cc: Use IniState.h to track each parsing calling.
986 (find_routine): Ditto.
987 (do_remote_ini): Ditto.
988 (do_ini_thread): Ditto.
989 * ini.h (ini_init): Adjust parameters to include state object.
990 * inilex.l: Declare parser state variable.
991 (ini_init): Adjust parameters to include state object.
992 * iniparse.y: Remove obsolete setup_timestamp and setup_version
994 (setup_header): Use new state variable to track time and version.
995 (add_correct_version): Ditto.
996 * install.cc: Don't include ini.h - it's not needed.
998 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
1000 * nio-files.cc (NetIO): Use io_stream syntax for get_file_size.
1001 * io_stream_file.cc: Don't include filemanip.h.
1002 (io_stream_file::get_size): Implement here to remove filemanip
1004 * io_stream_cygfile.cc: Don't include filemanip.h.
1005 (io_stream_cygfile::get_size): Implement here to remove filemanip
1007 Implement a stat based version for when win32 is not available.
1008 * filemanip.h (get_file_size): Return size_t - it's more appropriate.
1009 * filemanip.cc: Don't include win32.h - be platform independent.
1010 Include strings.h and io_stream.h as part of that.
1011 (get_file_size): Leverage io_streams and remove win32 implementation.
1012 * download.cc (check_for_cached): Use io_stream syntax for
1014 (download_one): Ditto.
1016 2002-05-02 Robert Collins <rbtcollins@hotmail.com>
1018 * configure.in: Correct a typo in last change.
1019 * configure: Regenerate.
1020 * Makefile.in: Regenerate.
1022 2002-05-02 Robert Collins <rbtcollins@hotmail.com>
1024 * configure.in: Check for string.h and string.
1025 * configure: Regenerate.
1026 * Makefile.in: Regenerate.
1028 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
1030 * res.rc (IDD_SPLASH): Remove white box.
1032 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
1034 Oops! forgot to list these in the last checkin.
1035 * inilintmain.cc: New file.
1036 * md5.h: New file - imported md5 source, BSD style licence.
1037 * md5.cc: New file - imported md5 source, BSD style licence.
1038 * Exception.cc: New file.
1039 * Exception.h: New file.
1040 * MD5++.cc: New file.
1041 * MD5++.h: New file.
1043 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
1045 * Makefile.am (AM_CFLAGS): Remove -mwindows, it's a linker flag.
1046 Remove -fno-rtti, we need it for exceptions.
1047 (AM_CXXFLAGS): Ditto.
1048 (WARNONLY_CFLAGS): Ditto.
1049 (EXTRA_PROGRAMS): Add with initial linter sources - not functional yet.
1050 (setup_LDFLAGS): Add and set to -mwindows.
1051 (setup_SOURCES): Add new sources.
1052 * Makefile.in: Regenerate.
1053 * README: Update TODO.
1054 * choose.cc (scan_downloaded_files): Use ini information if it's
1056 * configure: Regenerate.
1057 * download.cc (check_for_cached): Make reusable from elsewhere.
1058 Throw exceptions on errors (as opposed to failures).
1059 Check MD5 sum when it's known.
1060 (download_one): Never force a download.
1061 Handle corrupt package exceptions.
1062 * ini.cc (find_routine): Reverse escape the URL to correctly identify
1064 * inilex.l (MD5): Provide a parsing rule (note: lowercase is required).
1065 * iniparse.y: Allow calculation of MD5 sums, and allow src only
1067 (process_src): New helper function.
1068 * isntall.cc (install_one_source): Check MD5 sums when possible.
1069 Throw exceptions on errors.
1070 (do_install_thread): Handle exceptions for installation calls.
1071 * package_source.h: Store MD5 information.
1072 * propsheet.cc (PropSheet::Create): Add a useful comment.
1073 * res.rc (IDS_INSTALL_ERROR): Define.
1074 (IDS_CORRUPT_PACKAGE): Define.
1075 * resource.h (IDS_INSTALL_ERROR): Define.
1076 (IDS_CORRUPT_PACKAGE): Define.
1077 * rfc1738.cc (rfc1738_unescape_part): Implement.
1078 * rfc1738.h (rfc1738_unescape_part): Declare.
1080 2002-04-29 Robert Collins <rbtcollins@hotmail.com>
1082 * Makefile.am: Remove dependecy rules that automake emits.
1083 Correct badly copied dependency info for manually compiled files.
1084 (setup_SOURCES): Add all used headers.
1085 (EXTRA_DIST): Include non compilate but required sources.
1086 (setup_LDADD): Remove mingw32, it is autodetected.
1087 * Makefile.in: Regenerate.
1088 * String++.h: sys/types is a system header.
1089 * choose.cc (do_choose_thread): Make into a Win32 thread routine.
1091 (ChooserPage::OnMessageApp): Use Win32 threads. (_beginthread is not
1093 * configure: Regenerate.
1094 * configure.in: Check for mingw32/cygwin specific headers and libraries.
1095 * cygpackage.h: Include the win32.h header to get correct macro
1096 definitions in all situations.
1097 * download.cc (do_download_reflector): Make into a Win32 thread routine.
1099 (do_download): Use Win32 threads.
1101 * install.cc: Ditto.
1102 * (WinMain): Adjust to build valid command line using application
1103 under both mingw32 and cygwin.
1104 * mount.cc (set)cygdrive_flags): Create new system flags if the
1105 user requests system and the value does not exist.
1106 * nio-http.cc: Define a _strnicmp for cygwin.
1107 * package_db.cc: Include <errno.h> if it exists.
1108 * site.cc (do_download_site_info_thread): Make into a Win32 thread
1111 (do_download_site-Info): Use Win32 threads.
1112 * state.cc: Explicity declare variables to avoid header conflicts
1113 caused by '#define extern" on cygwin.
1114 * win32.h: Include <alloca.h> if it exists.
1115 (_MAX_PATH): Define as MAX_PATH when not defined by windows.h.
1116 (_access): Define as access if not defined by windows.h.
1118 2002-04-27 Robert Collins <rbtcollins@hotmail.com>
1120 * compress_gz.cc (compress_gz::error): EOF is not an error condition.
1122 2002-04-27 Robert Collins <rbtcollins@hotmail.com>
1124 * Makefile.am: Add libgetopt++ to the subdirs list.
1125 Search the libgetopt++ header directory.
1126 Link against libgetopt++.la.
1127 (setup_SOURCES): Remove GetOption.cc and getopt.c and Option.cc.
1128 (setup_LDADD): Explicitly include res.o.
1129 * Makefile.in: Regenerate.
1130 * aclocal.m4: Regenerate.
1131 * bootstrap.sh: Call libtoolize.
1132 * configure: Regenerate.
1133 * configure.in: Add libtool support and configure libgetopt++.
1134 * desktop.cc (NoShortcutsOption): Turn into a BoolOption.
1135 (DesktopSetupPage::OnInit): Use the simpler syntax.
1136 * desktop.h: Remove dependency on Option.h, and remove NoShortcustOption
1138 * main.cc: Include getopt++/GetOption.h.
1139 (main): Use simpler syntax.
1143 * GetOption.h: Remove.
1144 * GetOption.cc: Remove.
1146 * Option.cc: Remove.
1148 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
1150 * Makefile.am: Add zlib and bz2lib to SUBDIRS.
1152 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
1154 * aclocal.m4: New file, cached macros.
1155 * bootstrap.sh: New file, calls required autotools in appropriate
1157 * Makefile.am: New file, input Makefile for automake.
1158 * Makefile,in: Now a generated file - regenerate.
1159 * configure: Regenerate.
1160 * configure.in: Add automake support.
1161 * inilex.l: Change VERSION to PACKAGEVERSION to avoid a collision with
1162 automake's VERSION define.
1163 * iniparse.y: Ditto.
1165 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
1167 * cdefs.h: New file, imported to allow getopt.c to build without
1169 * getopt.h: New file, imported to allow building without cygwin headers.
1171 * bz2lib: New directory, contains copy of bz2lib.
1172 * cfgaux: New directory, contains autotool helper scripts.
1173 * Makefile,in: Adjust library and target definitions for building
1174 outside the sourceware tree.
1175 * compress_bz.h: Use new bz2lib header location.
1176 * mount.cc: Import key defines and enums to be independent of cygwin
1178 * configure.in: Update to autoconf 2.53, and to be sourceware
1180 * configure: Regenerate.
1182 2002-04-12 Robert Collins <rbtcollins@hotmail.com>
1184 * mklink2.cc (make_link_2): Tweak to work with current w32api
1187 2002-04-10 Pavel Tsekov <ptsekov@gmx.net>
1189 * version.cc (canonicalize_version): Fix a call delete[]
1190 to delete the allocated address.
1192 2002-03-29 Robert Collins <rbtcollins@hotmail.com>
1194 * PickView.cc (PickView::set_headers): Set last_col correctly. Thanks
1195 to Ton van Overbeek for locating the bug area.
1197 2003-03-27 Robert Collins <rbtcollins@hotmail.com>
1199 * PickView.cc (PickView::insert_pkg): Be more generic with
1201 (PickView::insert_category): Ditto.
1202 (PickView::~PickView): Create.
1203 * PickView.h (PickView::~PickView): Declare.
1205 2003-03-27 Robert Collins <rbtcollins@hotmail.com>
1207 * Makefile.in (OBJS): Add new commandline objects.
1208 * desktop.cc (NoShortCutsOption): New option code.
1209 (DesktopSetupPage::OnInit): Check whether to skip shortcuts.
1210 * desktop.h (NoShortCutsOption): New concrete command line option class.
1211 * main.cc (WinMain): Process command line options.
1212 * GetOption.h: New file, singleton command line class.
1213 * GetOption.cc: New file, implementation of the above.
1214 * Option.h : New file, abstract option for GetOption.
1215 * Option.cc: New file, implement constructor and destructor.
1217 2002-03-26 Pavel Tsekov <ptsekov@gmx.net>
1219 * mkdir.cc (mkdir_p): Stop processing if the path is exhausted.
1221 2002-03-26 Ton van Overbeek <tvoverbe@cistron.nl>
1223 * PickPackageLine.cc (PickPackageline::paint): Adjust clipping rectangle
1224 to textheight, so large fonts work.
1226 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
1228 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Don't translate
1231 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
1233 * io_stream_cygfile.cc (cwd): New static for cwd storage.
1234 (io_stream_cygfile::normalise): New method.
1235 (io_stream_cygfile::io_stream_cygfile): Use it.
1236 (io_stream_cygfile::exists): Ditto.
1237 (io_stream_cygfile::remove): Ditto.
1238 (io_stream_cygfile::mklink): And again.
1239 (cygmkdir_p): Yes, again.
1240 (io_stream_cygfile::move): And once more.
1241 * io_stream_cygfile.h (io_stream_cygfile::normalise): Declare.
1242 (io_stream_cygfile::cwd): Ditto.
1244 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
1246 * package_meta.cc (package_meta::~package_meta): Remove duplicate.
1247 (CategoryPackage::~CategoryPackage): Ditto. (Thanks to Ton van
1248 Overbeek for the report).
1249 * mklink2.cc: Moved from mklink2.c to avoid 'not a prototype error'.
1250 Make g++ compatible.
1251 * mklink2.c: Remove.
1252 * site.cc (site_list_type::init): Delete the correct memory addres.
1253 Thanks to Pavel Tsekov for tracking this down.
1255 2002-03-20 Robert Collins <rbtcollins@hotmail.com>
1257 * win32.h: Only define alloca if it's not already.
1259 2002-03-20 Robert Collins <rbtcollins@hotmail.com>
1261 * package_meta.h (packamgemeta::trustp): Make 'test' choice leave installed
1263 * README: Update with latest requests.
1264 * Various: MTC fixes from setup200202 branch.
1266 2002-03-19 Christopher Faylor <cgf@redhat.com>
1268 * Makefile.in (setup_version.c): Add back magic which allows detection
1269 of setup.exe version number.
1271 2002-03-17 Robert Collins <rbtcollins@hotmail.com>
1273 * * PickPackageLine.cc (PickPackageLine::paint): Fix incorrect clip region
1274 calculation on win9x systems.
1276 2002-03-16 Robert Collins <rbtcollins@hotmail.com>
1278 * install.cc (install_one_source): Write the correct length of a string to the
1279 lst file (Thanks to Pavel Tsekov for reporting the bug).
1281 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
1283 * choose.cc (list_click): Always refresh the entire chooser, as our
1284 package state change mechanism is broken with the new improved list classes.
1286 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
1288 * desktop.cc (make_passwd_group): Check for .lnk suffix on /etc/passwd and
1291 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
1293 * PickPackageLine.cc (PickPackageLine::DrawCheck): New method factored out from
1295 (PickPackageLine::paint): Use DrawCheck to draw the src tick box, and the new
1297 (PickPackageLine::click): Handle the new bin tickbox.
1298 * PickPackageLine.h (PickPackageLine::DrawCheck): Declare this.
1299 * PickView.cc (pkg_headers): Add a Bin? column.
1300 (cat_headers): Ditto.
1301 (PickView::set_headers): Ditto.
1302 (PickView::init_headers): Ditto.
1303 * PickView.h (PickView): Ditto.
1304 * choose.cc (list_click): Use the new name for src_col to set the clip rectangle.
1306 2002-02-24 Michael A Chase <mchase@ix.netcom.com>
1308 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Fix up Robert's
1311 2002-02-24 Michael A Chase <mchase@ix.netcom.com>
1313 * desktop.cc (make_link): Add "file://" prefix to io_stream::mkpath_p()
1315 (make_passwd_group): Ditto.
1316 * localdir.cc (save_local_dir): Ditto.
1317 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Wrap long lines.
1318 Add "cygfile://" prefix to io_stream::open() calls.
1320 2002-02-24 Robert Collins <rbtcollins@hotmail.com>
1322 * log.cc (log_save): Fix creating /var/log.
1323 * packate_meta.cc (standard_dirs): Remove duplicate '/''s.
1325 2002-02-24 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1327 * res.rc (STRINGTABLE): Add IDS_CYGWIN_SETUP and
1328 IDS_CYGWIN_SETUP_WITH_PROGRESS strings.
1329 * resource.h: Add IDS_CYGWIN_SETUP and
1330 IDS_CYGWIN_SETUP_WITH_PROGRESS IDs.
1332 * splash.cc (OnInit): Qualify SetWindowText() call with global scope
1333 operator (::SetWindowText()).
1335 * threebar.cc: Run indent.
1336 (cistring.h): Add include.
1337 (SetText1, SetText2, SetText3): Qualify SetWindowText() call with
1338 global scope operator.
1339 (SetBar2): Add logic for writing percent complete into window title.
1341 * window.h: Run indent.
1342 (SetWindowText): New function.
1343 (String): Add forward declaration.
1344 * window.cc: Run indent.
1345 (String++.h): Add include.
1346 (SetWindowText): New function.
1348 2002-02-24 Robert Collins <rbtcollins@hotmail.com>
1350 * README: Update TODO list.
1351 * install.cc (install_one): Fix src package location.
1352 (do_install_thread): Fix creating directories.
1354 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1356 * choose.cc: Include cygpackage.h for scan2 use.
1357 (set_existence): Ignore setup.ini mirrors when installing from cwd.
1358 (scan2): Process any valid file.
1359 Add cache entries when a file matching a setup.ini listed version is found.
1360 * filemanip.cc (parse_filename): Remove pkgtar - not used anywhere else.
1361 * filemanip.h (filemanip::pkgtar): Remove.
1362 * package_meta.cc (CategoryPackage::~CategoryPackage): New method.
1363 (packagemeta::~packagemeta): Move from package_meta.h
1364 Remove and delete all version and category information.
1365 * package_meta.h (CategoryPackage): Create a destructor.
1366 (packagemeta::~packagemeta): Move to .cc file.
1368 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1370 * install.cc (install_one_source): Make NULL cached package names cause
1373 2002-02-18 Michael A Chase <mchase@ix.netcom.com>
1375 * desktop.cc (make_passwd_group): Don't create passwd-grp.bat
1378 2002-02-18 Michael A Chase <mchase@ix.netcom.com>
1380 * log.cc (log_save): Put "\n" at end of log lines instead of "'".
1382 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1384 * mount.cc (create_mount): Avoid a const char*->char* warning.
1385 (read_mounts): Ditto.
1387 2002-02-05 Jason Tishler <jason@tishler.net>
1389 * download.cc (do_download_thread): Fix off-by-one error.
1391 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1393 * configure.in (CXXFLAGS): Substitute at configure time, not runtime.
1394 * configure (CXXFLAGS): Regenerate.
1395 * Makefile.in (iniparse.o): Build via default rules - no errors now.
1396 * README: TODO list updates.
1398 2002-02-19 Michael A Chase <mchase@ix.netcom.com>
1400 * String++.cc (String::concat):: Remove.
1401 (String::vconcat):: Ditto.
1402 * String++.h (String::concat):: Remove.
1403 (String::vconcat):: Ditto.
1404 * archive_tar.cc: Don't include concat.h.
1405 * archive_tar_file.cc: Don't include concat.h.
1406 * compress_bz.cc (compress_bz::peek): Don't log unneeded messages.
1407 (compress_bz::seek): Ditto.
1408 (compress_bz::~compress_bz): Ditto.
1409 * compress_gz.cc (compress_gz::peek): Ditto.
1410 (compress_gz::error): Ditto.
1411 (compress_gz::~compress_gz): Ditto.
1412 * concat.cc (vconcat): Remove.
1414 * concat.h (vconcat): Remove.
1416 * desktop.cc (desktop_icon): Use new cygpath.
1417 (make_etc_profile): Ditto.
1419 (make_passwd_group): Ditto.
1421 (check_desktop): Remove concat use.
1422 (check_start_menu): Ditto.
1423 * download.cc (download_one): Use new mkpath_p correctly.
1425 * fromcwd.cc: Don't include concat.h.
1426 * geturl.cc (get_url_to_membuf): Use String log() call.
1427 (get_url_to_file): Ditto.
1428 * install.cc: Don't include concat.h.
1429 (uninstall_one): Use LOG_PLAIN.
1430 (replace_one): Ditto.
1431 (install_one_source): Ditto.
1432 (install_one): More char to String conversion.
1433 (do_install_thread): Use new cygpath.
1434 Use new create_mount.
1435 * io_stream.cc (io_stream::move): Use new log().
1436 * io_stream_cygfile (io_stream_cygfile::io_stream_cygfile): Use new cygpath.
1437 (io_stream_cygfile::exists): Ditto.
1438 (io_stream_cygfile::remove): Ditto.
1439 (io_stream_cygfile::mklink): Ditto.
1440 (io_stream_cygfile::write): Ditto.
1441 (cygmkdir_p): Ditto.
1442 (io_stream_cygfile::move): Ditto.
1443 * io_stream_file.cc: Don't include log.h.
1444 (io_stream_file::write): Don't log unneeded messages.
1445 * localdir.cc: Don't include concat.h.
1446 (LocalDirPage::OnNext): Use LOG_PLAIN.
1447 * log.cc: Don't include log.h.
1448 (exit_setup): Use new cygpath.
1449 * log.h (log_level): Add new level LOG_PLAIN.
1450 * main.cc (WinMain): Use new log().
1451 * mount.cc (SLASH_P): New macro from concat.h.
1452 (cygpath): Make String version globally visible.
1453 Remove varargs version.
1455 * msg.cc (mbox): Use LOG_PLAIN.
1456 * net.cc (NetPage::OnNext): Ditto.
1457 * nio-ftp.cc (ftp_line): Use new log().
1458 * nio-http.cc: Don't include log.h.
1459 (retry_get): Use alternative url variable.
1460 * package_db.cc: Don't include concat.h.
1461 (packagedb::flush): Don't use concat.
1462 * package_meta.cc: Don't include concat.h.
1463 (packagemeta::uninstall): Use new cygpath.
1464 * postinstall.cc (do_postinstall): Ditto.
1465 * root.cc (RootPage::OnNext): Use LOG_PLAIN.
1466 * script.cc: Don't include concat.h.
1467 (init_run_script): Use new cygpath.
1468 (run_script): More char * to String conversion.
1469 (try_run_script): Ditto.
1470 * site.cc: Don't include concat.h.
1471 (SitePage::OnNext): Use LOG_PLAIN.
1472 (SitePage::OnMessageCmd): Use new log().
1473 * source.cc (SourcePage::OnDeactivate): Use LOG_PLAIN.
1475 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1477 * Makefile.in (OBJS): Add new object.
1478 * PickCategoryLine.cc (PickCategoryLine::paint): Print a "+" before the name.
1479 * PickCategoryLine.h (PickCategoryLine::bucket): Use the String class.
1480 * PickLine.h (Pickline::key): Change to a String to help plug leaks.
1481 (PickLine::Pickline): Accept a String for the key.
1482 * PickPackageLine.cc (PickPackageLine::paint): Convert all char use to Strings.
1483 * PickPackageLine.h (PickPackageLine::PickPackageLine): The key is automatically
1485 * PickView.cc (PickView::note_width): Convert all char * use to Strings.
1486 (PickView::init_header): Move category length checking out of the inner loop for
1488 Convert all char use to Strings.
1489 * PickView.h: Include the String++ header.
1490 (PickView::note_width): Update the prototype.
1491 * String++.cc: New file, implements a reference counting string class.
1492 * String++.h: New file, declares a reference counting string class.
1493 * archive.cc: Include String++ instead of concat.
1494 (archive::extract_file): Convert char * usage to Strings.
1495 * archive.h: Inlude the String++ header.
1496 (archive::extract_file): Update prototype.
1497 (archive::next_file_name): Convert to a String.
1498 (archive::linktarget): Ditto.
1499 * archive_tar.cc (archive_tar::next_file_name): Convert to String usage.
1500 (archive_tar::linktarget): Ditto.
1501 * arhive_tar.h: Update the copyright.
1502 Explicitly include the relevant headers.
1503 (tar_map_result_type): Convert to String usage.
1504 (archive_tar::next_file_name): Update prototype.
1505 (archive_tar::linktarget): Ditto.
1506 * category.cc (Category::Category): Update initialisers.
1507 Convert to String usage.
1508 (Categorycmp): Update to String usage.
1509 * category.h: Include the String++ header.
1510 (Category::Category): Update to String usage.
1511 (Category::name): Ditto.
1512 (Category::key): Ditto.
1513 * choose.cc: Remove concat.h, it's not needed.
1514 (scan2): Update to String usage.
1516 * cygpackage.cc: Update includes for use of String class.
1517 (cygpackage::cygpackage): Update for String usage.
1518 (cygpackage::set_canonical_version): Ditto.
1519 (cygpackage::destroy): Ditto.
1520 (cygpackage::getfirstfile): Ditto.
1521 (cygpackage::getnextfile): Ditto.
1522 (cygpackage::Name): Ditto.
1523 (cygpackage::Vendor_version): Ditto.
1524 (cygpackage::Package_version): Ditto.
1525 (cygpackage::Canonical_version): Ditto.
1526 (cygpackage::set_sdesc): Ditto.
1527 (cygpackage::set_ldesc): Ditto.
1528 * cygpackage.h: Include String++.h for parsing this file.
1529 (cygpackage::cygpackage): Update for String usage.
1530 (cygpackage::set_canonical_version): Ditto.
1531 (cygpackage::destroy): Ditto.
1532 (cygpackage::getfirstfile): Ditto.
1533 (cygpackage::getnextfile): Ditto.
1534 (cygpackage::Name): Ditto.
1535 (cygpackage::Vendor_version): Ditto.
1536 (cygpackage::Package_version): Ditto.
1537 (cygpackage::Canonical_version): Ditto.
1538 (cygpackage::set_sdesc): Ditto.
1539 (cygpackage::set_ldesc): Ditto.
1540 (cygpackage::name): Ditto.
1541 (cygpackage::vendor): Ditto.
1542 (cygpackage::packagev): Ditto.
1543 (cygpackage::canonical): Ditto.
1544 (cygpackage::fn): Ditto.
1545 (cygpackage::sdesc): Ditto.
1546 (cygpackage::ldesc): Ditto.
1547 * desktop.cc: Update includes for use of String class.
1548 (batname): Update for String usage.
1551 (start)menu): Ditto.
1552 (desktop_icon): Ditto.
1553 (make_cygwin_bat): Ditto.
1554 (make_etc_profile): Ditto.
1556 (make_passwd_group): Ditto.
1558 (check_desktop): Ditto.
1559 (check_startmenu): Ditto.
1560 * dialog.cc (eget): Update for String usage.
1561 (egetString): New function.
1562 (eset): New variant for Strings.
1563 * dialog.h: Include String++.h for parsing this file.
1564 (egetString): New function.
1565 (eset): New variant for Strings.
1566 * diskfull.cc (diskfull): Update for String usage.
1567 * diskfull.h: Include String++.h for parsing this file.
1568 (diskfull): Update for String usage.
1569 * download.cc: Update includes for use of String class.
1570 (check_for_cached): Update for String usage.
1571 (download_one): Ditto.
1572 * filemanip.cc (get_file_size): Ditto.
1574 (parse_filename): Ditto.
1576 * filemanip.h: Include String++.h for parsing this file.
1577 (fileparse): Update for String usage.
1579 (parse_filename): Ditto.
1580 Don't consider '_' to be a separator.
1582 * find.cc: Update includes for use of String class.
1583 (find_sub): Make more flexible.
1584 (find): Update for String usage.
1585 * find.h (find): Use Strings.
1586 * fromcwd.cc (found_file): Update for String usage.
1588 (init_dialog): Ditto.
1589 (get_url_to_membuf): Ditto.
1590 (get_url_to_string): Ditto.
1591 (get_url_to_file): Ditto.
1593 (get_url_to_membuf): Ditto.
1594 (get_url_to_string): Ditto.
1595 (get_url_to_file): Ditto.
1597 (add_subdirs): Ditto.
1598 * ini.cc: Update includes for String usage.
1599 (find_routine): Update for String usage.
1600 (do_remote_ini): Ditto.
1601 (do_ini_thread): Ditto.
1602 * ini.h (ini_init): Ditto.
1603 * inilex.l: Update includes for String usage.
1604 (ini_init): Update for String usage.
1605 * iniparse.y: Ditto.
1606 (add_correct_version): Ditto.
1607 * install.cc: Update includes for String usage.
1608 (install_one_source): Update for String usage.
1609 (uninstall_one): Ditto.
1610 (replace_one): Ditto.
1611 (install_one_source): Ditto.
1612 (do_install_thread): Ditto.
1613 * io_stream.cc: Update includes for String usage.
1614 (io_stream::open): Update for String usage.
1615 (io_stream::mkpath_p): Ditto.
1616 (io_stream::remove): Ditto.
1617 (io_stream::mklink): Ditto.
1618 (io_stream::move_copy): Ditto.
1619 (io_stream::move): Ditto.
1620 (io_stream::exists): Ditto.
1621 * io_stream.h: Update includes to allow correct parsing.
1622 (io_stream::open): Update for String usage.
1623 (io_stream::mkpath_p): Ditto.
1624 (io_stream::remove): Ditto.
1625 (io_stream::mklink): Ditto.
1626 (io_stream::move_copy): Ditto.
1627 (io_stream::move): Ditto.
1628 (io_stream::exists): Ditto.
1629 * io_stream_cygfile.cc: Update includes for String usage.
1630 (get_root_dir_now): Update for String usage.
1631 (io_stream_cygfile::io_stream_cygfile): Ditto.
1632 (io_stream_cygfile::~io_stream_cygfile): Ditto.
1633 (io_stream_cygfile::exists): Ditto.
1634 (io_stream_cygfile::remove): Ditto.
1635 (io_stream_cygfile::mklink): Ditto.
1636 (cygmkdir_p): Ditto.
1637 (io_stream_cygfile::set_mtime): Ditto.
1638 (io_stream_cygfile::move): Ditto.
1639 (io_stream_cygfile::get_size): Ditto.
1640 * io_stream_cygfile.h: Update includes for String usage.
1641 (io_stream_cygfile::io_stream_cygfile): Update for String usage.
1642 (io_stream_cygfile::~io_stream_cygfile): Ditto.
1643 (io_stream_cygfile::exists): Ditto.
1644 (io_stream_cygfile::remove): Ditto.
1645 (io_stream_cygfile::mklink): Ditto.
1646 (cygmkdir_p): Ditto.
1647 (io_stream_cygfile::set_mtime): Ditto.
1648 (io_stream_cygfile::move): Ditto.
1649 (io_stream_cygfile::get_size): Ditto.
1650 (io_stream_cygfile::fname): Ditto.
1651 (io_stream_cygfile::lmode): Ditto.
1652 * io_stream_file.cc: Update includes for String usage.
1653 (io_stream_file::io_stream_file): Update for String usage.
1654 (io_stream_file::~io_stream_file): Ditto.
1655 (io_stream_file::exists): Ditto.
1656 (io_stream_file::remove): Ditto.
1657 (io_stream_file::mklink): Ditto.
1658 (io_stream_file::set_mtime): Ditto.
1659 (io_stream_file::move): Ditto.
1660 (io_stream_file::get_size): Ditto.
1661 * io_stream_file.h: Update includes for String usage.
1662 * io_stream_file.cc: Update includes for String usage.
1663 (io_stream_file::io_stream_file): Update for String usage.
1664 (io_stream_file::~io_stream_file): Ditto.
1665 (io_stream_file::exists): Ditto.
1666 (io_stream_file::remove): Ditto.
1667 (io_stream_file::mklink): Ditto.
1668 (io_stream_file::set_mtime): Ditto.
1669 (io_stream_file::move): Ditto.
1670 (io_stream_file::get_size): Ditto.
1671 (io_stream_file::fname): Ditto.
1672 (io_stream_file::lmode): Ditto.
1673 * localdir.cc: Update includes for String usage.
1674 (save_local_dir): Update for String usage.
1675 (check_if_enable_next): Ditto.
1676 (load_dialog): Ditto.
1678 (LocalDirPage::OnInit): Ditto.
1679 (LocalDirPage::OnNext): Ditto.
1680 * log.cc: Update includes for String usage.
1681 (struct LogEnt): Update for String usage.
1684 (exit_setup): Ditto.
1685 * log.h: Update includes for String usage.
1686 (log_level): Update for String usage.
1689 * main.cc (WinMain): Update for String usage.
1690 * mklink2.c (make_link_2): Update for String usage.
1691 * mklink2.h (make_link_2): Update for String usage.
1692 * mount.cc: Update includes for String usage.
1693 (mount_table): Update for String usage.
1695 (create_mount): Ditto.
1697 (remove_mount): Ditto.
1698 (read_mounts): Ditto.
1699 (set_root_dir): Ditto.
1700 (get_root_dir): Ditto.
1701 (path_prefix_p): Ditto.
1703 * mount.h: Update includes for String usage.
1704 (create_mount): Update for String usage.
1705 (remove_mount): Ditto.
1707 (set_root_dir): Ditto.
1708 (get_root_dir): Ditto.
1709 * msg.cc (mbox): Ditto.
1710 * net.cc (NetPage::OnNext): Ditto.
1711 * package_db.cc (packagedb::flush): Ditto.
1712 (packagedb::packages): Ditto.
1713 (packagedb::categories): Ditto.
1714 * package_db.h: Update includes for String usage.
1715 (packagedb::packages): Update for String usage.
1716 (packagedb::categories): Ditto.
1717 * package_meta.cc: Update includes for String usage.
1718 (hash::add_subdirs): Update for String usage.
1719 (packagemeta::uninstall): Ditto.
1720 (packagemeta::SDesc): Ditto.
1721 (packagemeta::action_caption): Ditto.
1722 * package_meta.h: Update includes for String usage.
1723 (packagemeta::packagemeta): Update for String usage.
1724 (packagemeta::~packagemeta): Ditto.
1725 (packagemeta::uninstall): Ditto.
1726 (packagemeta::SDesc): Ditto.
1727 (packagemeta::action_caption): Ditto.
1728 (package_source.cc site::site): Ditto.
1729 (packagesource::set_canonical): Ditto.
1730 (packagesource::set_cached): Ditto.
1731 * package_source.h: Update includes for String usage.
1732 (site::site): Update for String usage.
1733 (packagesource::set_canonical): Ditto.
1734 (packagesource::set_cached): Ditto.
1735 (packagesource::packagesource): Ditto.
1736 (packagesource::sites): Ditto.
1737 (packagesource::cached): Ditto.
1738 * package_version.h: Update includes for String usage.
1739 (Dependency): Update for String usage.
1740 (packageversion): Ditto.
1741 * postinstall.cc: Update includes for String usage.
1742 (do_postinstall): Update for String usage.
1743 * res.rc (IDD_LOCAL_DIR): Fix typo again!
1744 * rfc1738.cc (rfc1738_escape_part): Update for String usage.
1745 * rfc1738.h: Update includes for String usage.
1746 (rfc1738_escape_part): Update for String usage.
1747 * root.cc: Update includes for String usage.
1748 (check_if_enable_next): Update for String usage.
1749 (save_dialog): Ditto.
1751 (directory_is_absolute): Ditto.
1752 (directory_is_rootdir): Ditto.
1753 (directory_has_spaces): Ditto.
1754 (RootPage::OnInit): Ditto.
1755 (RootPage::OnNext): Ditto.
1756 * script.cc: Update includes for String usage.
1757 (init_run_script): Update for String usage.
1759 (run_script): Ditto.
1760 (try_run_script): Ditto.
1761 * script.h: Update includes for String usage.
1762 (run_script): Update for String usage.
1763 (try_run_script): Ditto.
1764 * site.cc site_list): Ditto.
1765 (all_site_list): Ditto.
1766 (other_url): Eliminate.
1767 (site_list_type::init): Update for String usage.
1768 (site_list_type::site_list_type): Ditto.
1769 (get_site_list): Ditto.
1770 (get_saved_sites): Ditto.
1771 (do_download_site_info_thread): Ditto.
1772 (SitePage::OnNext): Ditto.
1773 (SitePage::OnActivate): Ditto.
1774 (SitePage::PopulateListBox): Ditto.
1775 (SitePage::OnMessageCmd): Handle empty url's.
1776 * site.h: Update includes for String usage.
1777 (site_list_type::site_list_type): Update for String usage.
1778 (site_list_type::init): Ditto.
1779 (site_list_type::~site_list_type): Ditto.
1780 (site_list_type::url): Ditto.
1781 (site_list_type::displayed_url): Ditto.
1782 (site_list_type::key): Ditto.
1783 * source.cc (SourcePage::OnDeactivate): Ditto.
1784 * state.h: Update includes for String usage.
1785 (local_dir): Update for String usage.
1786 (trust_level): Remove.
1787 * version.cc: Update includes for String usage.
1788 (canonicalize_version): Update for String usage.
1789 * version.h: Update includes for String usage.
1790 (canonicalize_version): Update for String usage.
1792 2002-02-15 Christopher Faylor <cgf@redhat.com>
1794 * filemanip.c (parse_filename): Revert previous change.
1796 2002-02-14 Christopher Faylor <cgf@redhat.com>
1798 * filemanip.c (parse_filename): Don't treat '_' as a version number
1801 2002-01-29 Christopher Faylor <cgf@redhat.com>
1803 * configure: Regenerate.
1805 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
1807 * res.rc (IDD_LOCAL_DIR): Fix typo reported by Rene
1808 <Hoeck@extern.lrz-muenchen.de>
1810 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
1812 * README: Update Todo's.
1813 * list.h: Run indent.
1814 (list): New methods checksize and insert to reduce code duplication.
1815 (list::registerbykey): Use them.
1816 (list::registerbyobject): Ditto.
1817 (list::removebyindex): Copy each object individually - safe for non
1819 (list::checksize): Implement.
1820 (list::insert): Implement.
1822 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
1824 * Makefile.in: Remove the dlmalloc object by default.
1825 * install.cc (do_install_thread): Remove the mallinfo call for 'working
1826 around' the crashing issue.
1827 * package_db.h: Include <string.h> - it's needed to parse this.
1828 * package_source.cc (site::site): Move here from the header file.
1829 * package_source.h (site): Stop the constructor being inlinable.
1831 2002-01-26 Robert Collins <rbtcollins@hotmail.com>
1833 * filemanip.cc (find_tar_ext): Add a descriptive comment.
1835 2002-01-25 Michael A Chase <mchase@ix.netcom.com>
1837 * filemanip.cc (find_tar_ext): Clean up tests for .tar.gz and .tar.
1838 * fromcwd.cc (do_fromcwd): Expand FIXME comment in source file check.
1839 * install.cc (install_one_source): Add space between words in log()
1842 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1844 * log.cc (exit_setup): When saving to the download dir, explicity
1847 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1849 * archive.cc (extract_file): Separate out the prefix and the URL
1851 * archive.h (archive::extract_file): Ditto.
1852 * install.cc (install_one_source): Ditto. Use the new
1853 archive::extract_file syntax.
1854 (replace_one): Use the new syntax.
1855 (io_stream.cc): Add some log info for links.
1857 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1859 * PickCategoryLine.cc (PickCategoryLine::actiontext): Remove.
1860 (PickCategoryLine::paint): Use the new action method.
1861 (PickCategoryLine::click): Set the action for all children.
1862 (PickCategoryLine::set_action): New method.
1863 * PickCategoryLine.h (PickCategoryLine::-actions): Remove.
1864 (PickCategoryLine::current_default): Use packagemeta _actions class.
1865 * PickLine.h (PickLine::set_action): New abstract method that requires
1866 including package_meta.h.
1867 * PickPackageLine.cc (PickPackageLine::set_action): New method.
1868 * PickPackageLine.h (PickPackageLine::set_action): Declare this.
1869 * list.h (getbykey): A const correctness fix.
1870 * package_meta.cc: Run indent.
1871 (packagemeta::Default_action): New const.
1872 (packagemeta::Install_action): Ditto.
1873 (packagemeta::Reinstall_action): Ditto.
1874 (packagemeta::Uninstall_action): Ditto.
1875 (packagemeta::_actions::caption): New method.
1876 (packagemeta::_actions::operator++): Ditto.
1877 (packagemeta::set_action): New overload.
1878 * package_meta.h (packagemeta::_actions): New class.
1879 (packagemeta::set_action): Declare this.
1881 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1883 * Makefile.in (OBJS): Remove supp.o - it appears accidental.
1884 * choose.cc: Don't define alloca anymore, it's done in win32.h
1886 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1888 * PickPackageLine.cc: New file.
1889 * PickPackageLine.h: New file.
1890 * PickLine.cc: New file.
1891 * PickLine.h: New file.
1892 * PickCategoryLine.cc: New file.
1893 * PickCategoryLine.h: New file.
1894 * PickView.cc: New file.
1895 * PickView.h: New file.
1896 * Makefile.in: Add new objects to setup.exe.
1897 Backout -fno-exceptions option.
1898 * choose.cc: Include PickView.h.
1899 Remove view related defines and static variables.
1900 (_pkg_headers): Moved to PickView.cc.
1901 (_cat_headers): Ditto.
1902 (view::views::Unknown): Ditto.
1903 (view::views::PackageFull):
1904 (view::views::Package):
1905 (view::views::Category):
1906 (pkgtrustp): Moved to package_meta.cc.
1907 (add_required): Moved to package_meta.cc.
1908 (pick_category_line::empty): Moved to PickCategoryLine.cc
1909 (paint): Adjust for moved static variables.
1910 (view::scroll): Moved to PickView.cc.
1911 (list_vscroll): Adjust for moved static variables.
1912 (list_hscroll): Ditto.
1913 (list_click): Ditto.
1914 (note_width): Moved to PickView.cc.
1915 (view::view): Ditto.
1916 (view::set_view_mode): Ditto.
1917 (view::mode_caption): Ditto.
1918 (view::views::caption): Ditto.
1919 (view::set_headers): Ditto.
1920 (DoInsertItem): Ditto.
1921 (view::init_headers): Ditto.
1922 (view::insert_pkg): Ditto.
1923 (view::insert_category): Ditto.
1924 (view::clear_view): Ditto.
1925 (view::views::operator++): Ditto.
1926 (view::click): Ditto.
1927 (default_trust): Adjust for moved statics.
1928 (pick_pkg_line::paint): Moved to PickPackageLine.cc.
1929 (pick_pkg_line::click): Ditto.
1930 (pick_category_line::actiontext): Moved to PickCategoryLine.cc
1931 (pick_category_line::paint): Ditto.
1932 (pick_category_line::click): Ditto.
1933 (set_view_mode): Adjust for moved statics.
1934 (create_listview): Ditto.
1935 * choose.h: Remove Category and packagemeta forward defines - not needed.
1936 Don't include unneeded headers list and package_meta.
1937 (_header): Move to PickView.h.
1938 (pick_line): Move to PickLine.h.
1939 (pick_pkg_line): Move to PickPackageLine.h.
1940 (pick_category_line): Move to PickCategoryLine.h.
1941 (view): Move to PickView.h.
1942 * ini.h (trusts): Move to package_meta.h.
1943 * package_meta.h (trusts): New enum.
1944 (packagemeta::set_requirements): New helper method.
1945 (packagemeta::trustp): Ditto.
1947 2002-01-21 Christopher Faylor <cgf@redhat.com>
1949 * choose.h (view): Move forward declaration of views into public area
1950 or g++ v3 will complain.
1952 2002-01-21 Christopher Faylor <cgf@redhat.com>
1954 * Makefile.in (CXXFLAGS): Add -fno-exceptions.
1955 * win32.h (alloca): Define as __builtin_alloca.
1956 * io_stream_memory.cc: Add include file.
1958 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
1960 * archive_tar.cc (archive_tar::~archive_tar): Mark the stream as destroyed.
1961 * archive_tar_file.cc (archive_tar_file::~archive_tar_file): Ditto.
1962 * compress.cc (compress::~compress): Be less verbose.
1963 * compress_bz.cc (compress_bz::~compress_bz): Ditto.
1964 Mark the stream as destroyed.
1965 * compress_gz.cc (compress_gz::~compress_gz): Mark the stream as destroyed.
1966 * io_stream.cc (io_stream::~io_stream): Only warn when the stream is not marked
1968 * io_stream_cygfile.cc (io_stream_cygfile::~io_stream_cygfile): Mark the
1969 stream as destroyed.
1970 * io_stream_file.cc (io_stream_file::~io_stream_file): Ditto.
1971 * io_stream_memory.cc (io_stream_memory::~io_stream_memory): Ditto.
1973 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
1975 * Makefile.in (CFLAGS): Allow customisable malloc debug flags.
1976 (OBJS): Link in malloc objects.
1977 * category.cc (category): Use new char, not strdup.
1978 * choose.cc (pick_pkg_line::paint): Allow for the regionsize to shrink.
1979 (do_choose): Use new char, not malloc.
1980 * concat.cc (vconcat): Ditto.
1981 * cygpackage.cc (cygpackage): Use new char, not strdup.
1982 (set_canonical_version): Ditto.
1983 (cygpackage::destroy): Use delete[], not free.
1984 * desktop.cc (uexists): Ditto.
1985 * dialog.cc (egest): Use new char, not strdup.
1986 * dlmalloc.c: New file - Doug Lea's malloc 2.7.0
1987 * hash.cc (hash::hash): Use delete instead of free.
1988 (hash::add): Use new char, not strdup.
1989 * ini.cc (do_remote_ini): Use delete[] not free.
1990 * inilex.l: Use new char, not strdup.
1992 * iniparse.y: Ditto.
1993 Use a local package_db rather than a static one.
1994 * install.cc (struct mallinfo): Workaround an apparent dlmalloc bug.
1995 (do_install_thread): Call mallinfo to force a consistency check. Appears
1996 to fix a 'inuse' error in -DDEBUG builds.
1997 Use delete[] for strings.
1998 * io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile): Use new char,
2000 (io_stream_cygfile::~io_stream_cygfile): Use delete[], not free.
2001 (io_stream_cygfile::remove): Use new char, not strdup.
2002 * io_stream_file.cc (io_stream_file::io_stream_file): Use new char, not strdup.
2003 (io_stream_file::io_stream_file): Use delete[], not free.
2004 (io_stream_file::remove): Use new char, not strdup.
2005 * io_stream_memory.cc (memblock::~memblock): Use delete[], not free.
2006 * io_stream_memory.h (memblock): Use new char, not malloc.
2007 * localdir.cc (LocalDirPage::OnInit): Use new char, not strdup.
2008 * main.cc (WinMain): Use new char, not strdup.
2009 * mount.cc (find2): Use new char, not malloc.
2010 (read_mounts): Ditto.
2011 (cygpath): Use new char, not strdup.
2012 * netio.cc (NetIO::~NetIO): Use delete[], not free.
2013 (NetIO::set_url): Use new char, not strdup.
2014 (NetIO::get_ftp_auth): Use delete[], not free.
2015 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
2016 Use new char instead of strdup.
2017 * nio-http.cc (base64_encode): Use new char, not malloc.
2018 * package_meta.cc (hash::add_subdirs): Use new char instead of strdup.
2019 * package_source.h (~ packagesource): Use delete[] instead of delete.
2020 * port.h (strdup): Deprecate the use of strdup.
2021 * rfc1738.cc (rfc1738_do_escape): Use new char, not calloc.
2022 * script.cc (init_run_script): Us delete[], not free.
2023 (run_script): Ditto.
2024 * simpsock.cc (SimpleSocket::fill): Use new char, not malloc.
2025 (SimpleSocket::invalidate): Use delete[], not free.
2026 * site.cc (site_list_type::init): Use new char instead of strdup.
2027 * site.h (~site_list_type): Use delete[], not free.
2029 2002-01-20 Robert Collins <rbtcollins@hotmail.com>
2031 * Makefile.in (OBJS): Add win32.o - win32 support functions.
2032 * README: Update todos.
2033 * archive.cc (extract_file): Support a suffix for appending to extracted files.
2035 * choose.cc (set_view_mode): Use the new view::views class.
2036 (view::views::Unknown): New static for defaulting view::views variables.
2037 (view::views::PackageFull): New static for the current view.
2038 (view::views::Package): Ditto.
2039 (view::views::Category): Ditto.
2040 (topbucket::paint): Remove.
2041 (topbucket::empty): Rename to pick_category_line::empty.
2042 (topbucket::~topbucket): Remove.
2043 (paint): Use the new view::views class.
2044 Don't paint 'all' as a category when showing package categoies.
2045 (pick_category_line::actiontext): New method.
2046 (pick_category_line::paint): Make showing the category optional, and show the
2048 (pick_category_line::click): Make showing the category optional, and
2049 differentiate between the name being clicked, and the action description.
2050 (view::view): Use the new view::views class.
2051 (view::set_view_mode): Ditto.
2052 (view::mode_caption): Ditto.
2053 (view::views::caption): New method.
2054 (view::set_headers): Use the new view::views class.
2055 (view::clear_view): Ditto.
2056 (viewsplusplus): Replaced by
2057 (view::views::operator++): New operator.
2058 (set_view_mode): Use the new view::views class.
2059 (create_listview): Ditto.
2060 (dialog_cmd): Ditto.
2061 * choose.h (actions): Remove.
2063 (pick_line): Add a new convenience constructor.
2064 (top_bucket): Remove.
2065 (pick_category_line): Reparent under pick_line, and adsorb top_bucket.
2066 (view::views): New class.
2067 * ini.h: Don't include choose.h
2068 (is_download_action): Remove.
2069 (is_upgrade_action): Remove.
2070 (is_uninstall_action): Remove.
2071 (is_full_action): Remove.
2072 * install.cc (num_replacements): New static.
2073 (rebootneeded): Ditto.
2074 (replace_one): Handle upgrades separate from removal or new installs.
2075 (install_one_source): Handle in use files.
2076 (install_one): Don't repeat upgrades.
2077 (do_install_thread): Initialize new statics.
2078 Order actions as uninstall, replace, install.
2079 Warn about rebooting if needed.
2080 * res.rc (IDS_REBOOT_REQUIRED): New string.
2081 * resource.h (IDS_REBOOT_REQUIRED): Give value.
2082 * win32.h: Declare class Win32, and update copyright and intent message.
2083 * win32.cc: New file.
2085 2002-01-15 Corinna Vinschen <corinna@vinschen.de>
2087 * io_stream.cc (io_stream::gets): Eliminate trailing new line chars.
2088 * package_meta.cc (packagemeta::uninstall): Check for additional
2089 Windows shortcut. Unset R/O file attribute before trying to delete
2092 2002-01-09 Robert Collins <rbtcollins@hotmail.com>
2094 * choose.cc (pkgtrustp): Fall back to installed if a package is not present in
2095 the current trust level. For prev, fall back via curr.
2096 (set_existence): Allow sources with no sites, but cached files to be
2098 (pick_category_line::paint): Start drawing clickable categories.
2099 * fromcwd.cc (found_file): Reinstate local file scanning.
2101 2002-01-07 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2103 * fromcwd.cc: Run indent.
2104 (do_fromcwd): Reverse sense of comment. Set next_dialog
2105 to IDD_CHOOSER instead of IDD_CHOOSE.
2106 * ini.cc (find_routine): Remove "/" from "/setup.ini".
2108 2001-01-07 Robert Collins <rbtcollins@hotmail.com>
2110 * category.cc (Categorycmp): Add a const safe version.
2111 * category.h (Categorycmp): Add a const safe version.
2112 (Category): Add operator ==.
2113 * choose.cc (fill_missing_category): Add every package to "All".
2114 (pick_category_line::paint): Add support for hidden labels, and a tree depth.
2115 (pick_category_line::click): Ditto.
2116 (view::view): Pass in a top level category to use.
2117 (view::insert_pkg): Special case - skip category "All".
2118 (view::insert_category): Ditto.
2119 (view::clear_view): Set the contents label state.
2120 (create_listview): Pass in a top level category to view().
2121 * choose.h (topbucket): Make bucket available to derived classes.
2122 (pick_category_line): Add support for hidden labels, and a tree depth.
2123 Remove our second copy of bucket.
2124 (view): Pass in a top level category to the constructor.
2125 Use pick_category_line to allow three level display.
2127 2001-01-06 Robert Collins <rbtcollins@hotmail.com>
2129 * cygpackage.h (cygpackage): Make set_[s|l]desc virtual.
2130 * iniparse.y (add_correct_version): Copy descriptions across.
2131 * package_meta.cc (SDesc): Iterate through versions, return the first with a
2133 * package_version.h (packageversion): Add new virtuals set_[l|s]desc.
2135 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
2137 * script.cc (run_script): Change cygpath:// to cygfile://.
2138 * install.cc (do_install_thread): Fix off-by-one errors.
2140 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
2142 * package_db.cc (packagedb::flush): Fix an off-by-one error.
2144 2002-01-04 Jan Nieuwenhuizen <janneke@gnu.org>
2146 * Makefile.in (realclean): more clean.
2147 (OBJS): Add script.o.
2148 * postinstall.cc (run_script_in_etc_postinstall): New function.
2149 (do_postinstall): Split off new funtion init_run_script ().
2152 (run_script): Move to script.cc. Replace some deprecated remove
2155 * script.cc: New file.
2156 * Forward port cygwin-20010707.jcn3.patch.
2157 * package_meta.cc (uninstall): Run pre- and postremove scripts.
2158 * install.cc: Typo fix.
2159 (do_install): Run script initialisation.
2161 2001-01-04 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2163 * cistring.cc: Run d2u.
2164 * cistring.h: Run d2u.
2166 * desktop.cc (etc_profile): Remove "test -f ./.bashrc && . ./.bashrc"
2167 from the generated /etc/profile. Bash will source this file
2168 automatically, and having this here merely results in .bashrc being
2169 executed twice. Run d2u.
2170 * desktop.h: Run d2u.
2172 * propsheet.cc: Run d2u.
2173 (PropSheetProc): New function. Add minimize box here instead of in
2174 PropertyPage::DialogProc.
2175 (PropSheet::Create): Change to use creation callback PropSheetProc.
2176 (DLGTEMPLATEEX): Add 'hidden' Windows struct definition.
2178 * propsheet.h: Run indent, d2u.
2179 * proppage.h: Run indent, d2u.
2181 * proppage.cc: Run d2u.
2182 (PropertyPage::DialogProc): Remove minimize-box-adding
2183 functionality. Remove commented-out "PropSheet_SetWizButtons" calls.
2184 Add support for calling virtual OnMessageCmd. Add setting of fonts in
2185 WM_INITDIALOG handler.
2186 (resource.h): New include for resource IDs.
2188 * res.rc: Resize and rearrange property page dialog templates
2189 to bring them in line with "Microsoft's Backward Compatible Wizard 97"
2190 specification. Run d2u.
2191 (IDD_SITE): Add an edit control and an "Add" button in order to
2192 combine the IDD_SITE and IDD_OTHER_URL functionality onto one page.
2193 (IDD_OTHER_URL): Remove dialog template.
2194 (IDD_DLSTATUS): Remove dialog template.
2197 (SitePage::OnBack): Remove NEXT() macro invocation.
2198 (SitePage::OnActivate): New member function.
2199 (load_dialog): Remove. Functionality subsumed into
2200 SitePage::OnActivate.
2201 (save_dialog): Change to support both list and user URLs. Remove
2202 OTHER_IDX and mirror_idx logic.
2203 (SitePage::PopulateListBox): New member function.
2204 (SitePage::CheckControlsAndDisableAccordingly): New member function.
2205 (SitePage::OnMessageCmd): New override.
2206 (check_if_enable_next): Remove.
2207 (dialog_cmd): Remove.
2208 (do_download_site_info_thread): Remove calls to NEXT() macro.
2209 (SitePage::Create): Call the single-param PropertyPage::Create
2211 (other_url): New static taken from other.cc.
2212 (SitePage::OnNext): Remove mirror_idx logic.
2213 (SitePage::OnInit): Remove "Other URL" entry from list box. Remove
2214 list box populating code, now handled in SitePage::PopulateListBox.
2215 (mirror_idx, NO_IDX, OTHER_IDX): Remove.
2216 (save_site_url): Fix potential buffer overflow problem. Switched to
2217 TCHAR in grossly premature preparation for multilingual support.
2219 (SitePage::OnActivate): New member function.
2220 (SitePage::CheckControlsAndDisableAccordingly) New member.
2221 (SitePage::OnMessageCmd): New override.
2222 (do_download_site_info_thread): Add MessageBox call on failure to
2225 * splash.cc: Run d2u.
2226 (SplashPage::OnInit): Set the font for the title.
2227 * splash.h: Run d2u.
2229 * threebar.cc: Run d2u.
2230 * threebar.h: Run d2u.
2232 * window.h: Run d2u.
2233 (Window::IsButtonChecked): New member function declaration.
2234 (Window::OnMessageCmd): New member function.
2235 (Window::SetDlgItemFont): New member function declaration.
2236 (Window::MAXFONTS, Window::Fonts, Window::FontCounter): New data
2238 * window.cc: Run d2u.
2239 (Window::IsButtonChecked): New member function definition.
2240 (Window::SetDlgItemFont): New member function definition.
2241 (Window::Window): Add initialization for FontCounter.
2242 (Window::~Window): Delete any fonts we created.
2244 * geturl.cc: Run d2u.
2245 (progress): Remove the "3" field width from the "%3d"
2246 percent-complete format indicator. Causes line to not start at
2247 beginning of text box, and does little to help with "jumping", since
2248 the "bytes downloaded so far" field is variable-width anyway. Change
2249 kb/s format field to "%03.1" to 0-pad the kb/s number in the event of
2250 painfully slow connections, or temporary slowdowns in faster
2251 connections should such more-instantaneous functionality become
2255 (NetPage::OnMessageCmd): New member function declaration.
2256 (NetPage::CheckIfEnableNext): New member function declaration.
2258 (NetPage::OnMessageCmd): New member function definition.
2259 (dialog_cmd): Remove, subsumed into NetPage::OnMessageCmd.
2260 (check_if_enable_next): Remove.
2261 (NetPage::CheckIfEnableNext): New member function, subsumes
2262 check_if_enable_next.
2263 (propsheet.h): Add include.
2264 (NetPage::Init): Add call to CheckIfEnableNext.
2265 (load_dialog): Remove call to check_if_enable_next.
2266 (NetPage::Create): Call single-template-ID-parameter overload of
2267 PropertyPage::Create instead of three-parameter one.
2269 * Makefile.in (OBJS): Remove other.o.
2270 * other.cc: Remove file.
2272 2002-01-01 Robert Collins <rbtcollins@hotmail.com>
2274 * README: Update TODO's.
2275 * choose.cc (set_existence): Delete non installed packages with no
2277 (fill_missing_category): Fix an off-by-one error.
2278 (default_trust): Ditto. Also delete any unused categories.
2279 (view::init_headers): Fix an off-by-one error.
2280 (set_view_mode): Ditto.
2281 (set_view_mode): Ditto.
2282 (create_listview): Ditto.
2283 (dialog_cmd): Ditto.
2285 * io_stream.cc: Indent.
2286 * io_stream.h: Ditto.
2287 * package_db.cc: Ditto.
2288 * package_meta.h: Const correctness for SDesc ();
2289 * proppage.cc: Run d2u and indent.
2290 * propsheet.cc: Run d2u and indent.
2291 * window.cc: Run d2u and indent.
2292 * window.h: Run d2u and indent.
2294 2001-12-28 Christopher Faylor <cgf@redhat.com>
2296 * Makefile.in (iniparse.o): Accommodate newer bisons.
2298 2001-12-23 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2300 * window.h (Window): New file, new class.
2301 * window.cc (Window): New file, new class.
2303 * threebar.h (ThreeBarProgressPage): New file, new class.
2304 * threebar.cc (ThreeBarProgressPage): New file, new class.
2306 * splash.h (SplashPage): New file, new class.
2307 * splash.cc (SplashPage): Replace file with implementation of new
2310 * source.h (SourcePage): New file, new class.
2311 * source.cc: Run indent.
2312 (SourcePage): Add class implementation to this file.
2313 (do_source): Remove, functionality subsumed by SourcePage::Create()
2314 and SourcePage::OnDeactivate().
2315 (dialog_proc): Remove, functionality subsumed by
2316 SourcePage::OnActivate().
2318 * site.h: Run indent.
2319 (SitePage): Add class declaration.
2320 * site.cc: Run indent.
2321 (SitePage): Add class implementation.
2322 (do_download_site_info_thread): New function.
2323 (context): New var. Context info for do_download_site_info_thread().
2324 (do_download_site_info): New function.
2325 (SitePage::Create, SitePage::OnInit SitePage::OnNext)
2326 (SitePage::OnBack): SitePage class implementation..
2327 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers, now handled
2328 by SitePage members.
2329 (dialog_proc): Remove, now handled by SitePage::OnInit and base class
2331 (do_site): Remove, now handled by do_download_site_info_thread() and
2332 SitePage::OnNext functionality.
2333 (get_site_list): Remove dismiss_url_status_dialog() call.
2335 * root.h (RootPage): New file, new class.
2336 * root.cc: Run indent.
2337 (dialog_cmd): Pass parent HWND parameter to note(), yesno().
2338 (dialog_proc): Remove.
2340 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL clauses from switch.
2341 (RootPage::OnInit): New member function. Move get_root_dir() logic to
2342 here from do_root().
2343 (RootPage::Create): New member function.
2344 (RootPage::OnNext): New member function. Move IDOK logic from
2345 dialog_cmd() to here.
2346 (RootPage::OnBack): New member function.
2348 * propsheet.h (PropSheet): New file, new class.
2349 * propsheet.cc (PropSheet): New file, new class.
2351 * proppage.h (PropertyPage): New file, new class.
2352 * proppage.cc (PropertyPage): New file, new class.
2354 * postinstall.cc (do_postinstall): Add owner parameter.
2356 * other.cc (do_other): Add owner parameter.
2358 * nio-file.cc (NetIO::Purl): Pass NULL parent param to note().
2359 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Pass NULL parent param to
2361 * nio-http.cc (retry_get): Pass NULL parent param to get_auth(),
2364 * nio-ie5.cc (NetIO::_url): Pass NULL parent param to note(),
2365 get_auth(), get_proxy_auth().
2367 * netio.h (get_auth, get_proxy_auth, get_ftp_auth): Add owner param.
2368 * netio.cc (auth_common, NetIO::get_auth, NetIO::get_proxy_auth,
2369 NetIO::get_ftp_auth)
2370 (auth_common): Add owner param. Pass owner param to DialogBox.
2371 (NetIO::get_auth, NetIO::get_proxy_auth, NetIO::get_ftp_auth): Pass
2372 owner param to auth_common().
2374 * net.h (NetPage): New file, new class.
2375 * net.cc: Run indent.
2376 (net.h, threebar.h): Add includes.
2377 (Progress): Add extern.
2378 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, now handled by
2379 property sheet logic. Saved temporarily for reference.
2380 (NetPage::Create, NetPage::OnInit, NetPage::OnDeactivate,
2381 NetPage::OnNext, NetPage::OnBack):
2382 New implementation of NetPage class members.
2384 (dialog_proc): Remove.
2386 * msg.h (fatal, note, yesno): Add owner param.
2387 * msg.c (fatal, note, yesno, mbox): Add owner param.
2388 (mbox): Remove MB_TOPMOST from MessageBox call. Unnecessary and wrong
2389 now that we have a parent.
2391 * main.cc: Run indent.
2392 (commctrl.h, proppage.h, propsheet.h, splash.h, source.h)
2393 (localdir.h, net.h, site.h, choose.h, threebar.h, desktop.h): Include
2395 (root_dialog_proc): extern into this file.
2396 (Progress): Progress dialog defined here, used in several other files.
2397 (WinMain): Instantiate and create Splash, Source, Root, LocalDir, Net,
2398 Site, Chooser, Desktop pages and MainWindow sheet. Call
2399 InitCommonControls() to make sure Windows is set up for our use of
2400 property sheets. Add pages to sheet.
2401 Call MainWindow.Create() to "DoModal". Remove main loop, that logic is
2402 now handled by the PropSheet class.
2403 (root.h): Add include.
2405 * log.cc (log_save): Pass NULL parent to fatal().
2406 (exit_setup): Pass NULL parent to note().
2408 * localdir.h (LocalDirPage): New file, new class.
2409 * localdir.cc: Run indent.
2410 (localdir.h): New include.
2411 (threebar.h): New include.
2412 (Progress): extern into this file.
2413 (LocalDirPage::Create, LocalDirPage::OnInit, LocalDirPage::OnActivate)
2414 (LocalDirPage::OnNext, LocalDirPage::OnBack): Implementation of
2416 (LocalDirPage::OnNext): Move log() call from do_local_dir() to here.
2417 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers.
2418 (do_local_dir): Remove.
2419 (dialog_proc): Remove.
2420 (cwd): Remove, not used by anything.
2422 * install.cc: Run indent.
2423 (process.h, threebar.h): New includes.
2424 (Progress): extern into this file.
2425 (ins_dialog, ins_action, ins_pkgname, ins_filename, ins_pprogress)
2426 (ins_iprogress, ins_diskfull, init_event): Remove, now handled by
2427 ThreeBarProgressPage.
2428 (dialog_cmd, dialog_proc, dialog): Removed, handled in
2429 ThreeBarProgressPage.
2430 (init_dialog): Remove all mention of the above ins_* handles. Now
2431 handled in ThreeBarProgressPage. Altered SetWindowText()s to call
2432 ThreeBarProgressPage instance Progress directly.
2433 (progress): Alter bar update logic to call ThreeBarProgressPage
2434 instance Progress directly.
2435 (uninstall_one): Alter SetWindowText()s to call ThreeBarProgressPage
2436 instance Progress directly.
2437 (install_one_source): Alter SetWindowText()s to call
2438 ThreeBarProgressPage
2439 instance Progress directly. Pass NULL parent to note().
2440 (do_install_thread): Rename from do_install(), added owner param.
2441 Alter SetWindowText()s to call ThreeBarProgressPage instance Progress
2443 Remove dismiss_url_status_dialog() call, no longer necessary. Remove
2444 ShowWindow(<hide>) call, also unnecessary now. Pass owner handle to
2446 (do_install_reflector): New function.
2447 (do_install): New function.
2449 * ini.cc (process.h, threebar.h): New includes.
2450 (Progress): externed into this file.
2451 (find_routine): Pass NULL parent to note().
2452 (do_local_ini): Add owner param.
2453 (do_remote_ini): Add owner param. Pass owner to get_url_to_membuf()
2454 and note(). Remove call to dismiss_url_status_dialog().
2455 (do_ini_thread): Rename from do_ini(). Add owner param. Pass owner to
2456 do_local_ini(), do_remote_ini(), yesno(), and note(). Set next_dialog
2457 to IDD_CHOOSER on exit.
2458 (do_ini_thread_reflector): New function.
2459 (context): New var. Context for do_ini_thread.
2460 (do_ini): New function.
2462 * geturl.h (get_url_to_membuf, get_url_to_string, get_url_to_file): Add
2464 * geturl.cc (gw_dialog, gw_url, gw_rate, gw_progress, gw_pprogress,
2466 (gw_progress_text, gw_pprogress_text, gw_iprogress_text, init_event):
2468 (threebar.h): New include.
2469 (Progress): externed into this file.
2470 (dialog_cmd, dialog_proc, dialog): Removed, handled by
2471 ThreeBarProgressPage now.
2472 (init_dialog): Remove "if (gw_dialog == 0)" clause. Alter
2474 and bar setting SendMessage()s to call ThreeBarProgressPage instance
2475 Progress directly. Remove "one bar only" logic, this is now handled
2476 explicitly in the ThreeBarProgressPage class.
2477 (progress): Altered bar and text update logic to call
2478 ThreeBarProgressPage instance Progress directly. Changed kbps
2479 calculation to floating point and now print out a single decimal
2481 (get_url_to_membuf): Add owner param. Pass it to init_dialog.
2482 (get_url_to_string): Add owner param. Pass it to get_url_to_membuf.
2483 (get_url_to_file): Add owner param. Pass it to init_dialog. Alter bar
2484 update logic to call ThreeBarProgressPage instance Progress directly.
2485 (dismiss_url_status_dialog): Remove.
2487 * fromcwd.cc (do_fromcwd): Add owner param. Initialize found_ini to
2490 * download.cc: Run indent.
2491 (process.h, threebar.h): New includes.
2492 (Progress): externed into this file.
2493 (download_one): Add owner param. Pass it to get_url_to_file().
2494 (do_download_thread): Renamed from do_download. Add owner param. When
2495 calculating total_download_bytes, take binpicked and srcpicked into
2496 account. Remove call to dismiss_url_status_dialog(), no longer needed.
2497 Pass owner handle to download_one() and yesno().
2498 (do_download_reflector, do_download): New functions.
2499 (context): New var. Context for do_download_thread().
2501 * dialog.h (D(x)): Add owner param.
2503 * desktop.h (DesktopSetupPage): New file, new class.
2504 * desktop.cc: Run indent.
2505 (desktop.h): Add include.
2506 (dialog_proc, do_desktop): Remove, now handled in
2507 DesktopSetupPage::OnInit().
2508 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, handled in
2509 DesktopSetupPage::OnFinish(), DesktopSetupPage::OnBack(), and PropSheet
2511 (DesktopSetupPage::Create, DesktopSetupPage::OnInit)
2512 (DesktopSetupPage::OnBack, DesktopSetupPage::OnFinish): Implementation
2513 of DesktopSetupPage.
2515 * cistring.h: New file, new class.
2516 * cistring.cc: New file, new class.
2518 * choose.h: Run indent.
2519 (Chooser): New class declaration.
2520 * choose.cc: Run indent.
2521 (do_choose): Add owner param. Pass it to DialogBox() and
2523 (Chooser): New class implementation.
2525 * res.rc (IDS_VERSION_INFO): New string.
2526 (IDD_SOURCE, IDD_LOCAL_DIR, IDD_ROOT, IDD_SITE, IDD_OTHER_URL)
2527 (IDD_DLSTATUS, IDD_INSTATUS, IDD_SPLASH, IDD_CHOOSE, IDD_DESKTOP):
2528 Change WS_POPUP to WS_CHILD. Numerous positioning/size changes
2530 (IDD_CHOOSE): Give template the WS_EX_CONTROLPARENT style to enable
2531 TAB control navigation etc. Give the controls a reasonable tab order.
2532 Grouped radio buttons. Something's still not right, can't tab away
2533 from back/next/cancel group reliably.
2534 * resource.h (IDD_CHOOSER): New dialog ID.
2536 * Makefile.in (OBJS): Add cistring.o, proppage.o, propsheet.o,
2537 threebar.o, and window.o.
2539 2001-12-21 Robert Collins <rbtcollins@hotmail.com>
2541 * choose.cc (listview_proc): Update the scrollbar when the headers are dragged.
2542 (pick_pkg_line::paint): Clip columns to prevent overlap.
2544 2001-12-20 Robert Collins <rbtcollins@hotmail.com>
2546 * Makefile.in: Add libcomctl32.a for setup.exe.
2547 * archive.h (archive): Prevent non-child direct creation of the class.
2548 * archive_tar.h (archive_tar): Prevent inaccurate synthetic copy and assignment.
2549 * choose.cc: Include commctrl for the choose header.
2550 (NEW_COL_SIZE_SLOP): Define without magic numbers.
2551 (pkgtrustp): Convert to function.
2552 (set_action): Remove.
2553 (add_required, fill_missing_category,default_trust): Use list syntax for
2556 (choose_caption): Remove.
2557 (topbucket::paint): New method.
2558 (topbucket::empty): Ditto.
2559 (topbucket::click): Ditto.
2560 (topbucket::~topbucket): Ditto.
2561 (paint): Remove i,ii and p as they are obsolete.
2562 Remove header drawing code.
2563 Use new chooser method to paint the chooser.
2564 Use new chooser itemcount method.
2565 (scroll_common): Rename to view::scroll.
2566 Scroll the header window separately.
2567 (list_vscroll, list_hscroll, list_click): Update for new chooser methods.
2568 (listview_proc): Look for header messages.
2569 (note_width): Accept stringless calls.
2570 (pick_line::set_line): Remove.
2571 (pick_line::paint): Remove.
2572 (pick_pkg_line::paint): Paint this one line, using the header column widths.
2573 (pick_category_line::paint): Paint this category, and anything in the bucket.
2574 (pick_line::click): Remove.
2575 (pick_pkg_line::click): Handle a click.
2576 (pick_category_line::click): Handle a click.
2577 (_view): Rename all to view.
2578 (view::view): Initialise the control contents.
2579 (view::set_headers): Work with the header control.
2580 (view::init_headers): Use list syntax for package list.
2581 Rearrange the width logic a little.
2582 (view::insert_pkg): Update to use the hierarchy.
2583 (view::insert_category): Ditto.
2584 (view::insert_at, view::insert_under): Remove.
2585 (view::clear_view): Update to use the hierarchy.
2586 (view::click): Update to use the hierarchy.
2587 (set_view_mode): Use list syntax for package list.
2588 Update for new chooser methods.
2589 (DoInsertItem): New helper function. (Needs a home somewhere).
2590 (create_listview): Remove choose control code and use the constructor instead.
2591 (dialog_cmd,scan2,do_choose): Use list syntax for package list.
2592 * choose.h: Include newly required headers list and package_meta.
2593 (_voew): Rename to view.
2594 (pick_line): Convert to an ABC.
2595 (pick_pkg_line): New class.
2596 (pick_catgory_line): New class.
2597 (topbucket): New class.
2598 (view::scroll): New method created from listview_scroll function.
2599 * desktop.cc (make_passwd_group): Use list syntax for package list.
2600 * download.cc (do_download): Use list syntax for package list.
2601 * fromcwd.cc (found_file): Use list syntax for package list.
2602 * iniparse.y (pacakges): Use list syntax for package list.
2603 * install.cc (uninstall_one): Use list syntax for package list.
2604 (do_install): Use list syntax for package list.
2605 * io_stream.h (io_stream): Prevent non-child direct creation of the class.
2606 Prevent inaccurate synthetic copy and assignment.
2607 * list.h: Include required header stdlib.
2608 Work on const correctness.
2609 * package_db.cc (packagedb::getpackagebyname): Remove.
2610 (packagedb::packagedb): Remove custom list code, and make db a local.
2611 (packagedb::getfirstpackage): Remove.
2612 (packagedb::getnextpackage): Remove.
2613 (packagedb::addpackage): Remove.
2614 (flush): Remove custom list code.
2615 (packagedb::registerpackage): Remove.
2616 (packagedb::packages): New static member.
2617 (packagedb::task): New static member.
2618 * package_db.h (PackageDBActions): New enum.
2619 (packagedb): Remove getfirstpackage, getnextpackage, getpackagebyname,
2620 addpackage, registerpackage, packages, packagecount, curr_package, db.
2622 * pacakge_meta.cc: Include package_db.h.
2623 (packagemeta::action_caption): New method.
2624 (packagemeta::set_action): New method.
2625 * package_meta.h (CategoryPackage): Initialise key.
2626 (packagemeta): Initialise key.
2627 Add set_action and action_caption methods.
2628 Prevent inaccurate synthetic copy and assignment.
2629 * resource.h (IDC_CHOOSE_LISTHEADER): New ID.
2630 * source.cc: Include package_db for db manipulation.
2631 (save_dialog): Set the db task.
2632 * win32.h: Tell the w32 include headers what IE version to expect/require.
2634 2001-12-06 Robert Collins <rbtcollins@hotmail.com>
2636 * README: Wishlist updates.
2638 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
2640 * package_db.cc (getnextpackage): Don't overrun the array.
2642 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
2644 * Makefile.in (OBJS): Add setup_version.o.
2645 (version.c): Rename to setup_version.
2646 * choose.cc (set_action): Prevent NULL pointer dereference.
2647 (package_sort): Remove.
2648 * fromcwd.cc (canonicalize_version): Moved to version.cc.
2649 (check_ini): New function for use with find to see if there is a cached setup.ini.
2650 (do_fromcwd): Check for a cached setup.ini from any mirror site.
2651 * ini.cc (find_routine): New function, for finding cached setup.ini's.
2652 (do_local_ini): New function, drives parsing of local ini's.
2653 (do_remote_ini): New function, drives parsing and caching of remote ini's.
2654 (do_ini): Move guts to do_remote_ini and do_local_ini.
2655 * list.h (removebyindex): New method.
2656 * other.cc (save_dialog): Use new site_list and all_site_list to add the
2657 new site to the site picklist.
2658 (dialog_cmd): Only save the dialog when exiting the dialog.
2659 * res.rc (IDD_SITE): Make IDC_URL_LIST a multiple-selection control.
2660 * site.cc (site_list_type): Move to site.h
2661 (site_list): New global, sites chosen by the user.
2662 (all_site_list): New global, all potential sites.
2663 (site_list_type::init): New method, parses a mirror.lst URL string into a
2664 site_list_type object.
2665 (site_list_type::site_list_type): New method.
2666 (check_if_enable_next): Examine the control, not a local variable.
2667 (load_dialog): Select all the user chosen sites by default.
2668 (save_dialog): Adjust for multiple selection semantics.
2669 (save_site_url): Save all user chosen sites.
2670 (dialog_cmd): Don't save the dialog when the listbox recieves a message -
2672 Remove obsolete other_url reference.
2673 (dialog_proc): Use all_site_list instead of site_list.
2674 (site_sort): Remove.
2675 (get_site_list): Remove malloc use - use list template instead.
2676 Move site_list_type initialisation to site_list_type::init().
2677 (get_initial_list_idx): Renamed to ...
2678 (get_saved_sites): this. Also read in multiple sites to the site_list.
2679 (do_site): Use all_site_list not site_list.
2680 Log all chosen sites.
2681 * site.h: New file, defines site related class, functions and variables.
2682 * state.h: Add comment about use of state.h
2683 (mirror_site): Remove.
2684 (other_url): Remove.
2685 (MIRROR_SITE): Remove.
2686 * version.cc: New file, for version-handling and related functions.
2688 2001-12-02 Robert Collins <rbtcollins@hotmail.com>
2690 * Makefile.in: Add filemanip.o to setup.
2691 * archive.cc (archive::extract_file): Use new io_stream method 'copy'.
2692 * archive_tar.h (archive_tar_file): Implement get_size virtual.
2693 (archive_tar): Ditto.
2694 * choose.cc (set_action): Use [] operator instead of getnth - its more readable.
2696 (_view::init_headers): Ditto.
2697 (_view::insert_pkg): Ditto.
2698 (set_view_mode): Ditto.
2701 (base): Moved to filemanip.cc.
2702 (find_tar_ext): Ditto.
2703 (parse_filename): Ditto.
2704 (_Info::_Info): Remove.
2705 * compress_bz.h (compress_bz): Implement get_size virtual.
2706 * compress_gz.h (compress_gz): Implement get_size virtual.
2707 * cygpackage.cc (cygpackage::destroy): Use array delete for char * objects.
2708 * download.cc (get_file_size): Move to filemanip.cc.
2709 (check_for_cached): Use [] operator instead of getnth - its more readable.
2710 (download_one): Ditto.
2711 * filemanip.cc: New file.
2712 * geturl.cc (init_dialog): Make url a pointer to const as it is not modified.
2713 (get_url_to_membuf): New function - contains get_url_to_string worker code.
2714 (get_url_to_string): Becomes a trivial wrapper to get_url_to_membuf.
2715 * geturl.h: Declare new prototype.
2716 * ini.cc (do_ini): Use get_url_to_membuf and pass ini_init an io_stream.
2717 Tidy up the error code a little.
2718 * ini.h: Remove __cplusplus protection for ini_init.
2720 * inilex.l: Remove old globals.
2721 (ini_init): Use an io_stream for getting the characters.
2722 (ini_getchar): Ditto.
2723 * iniparse.y: Declare yylex as a C++ function.
2724 (add_correct_version): Use [] operator instead of getnth - its more readable.
2725 * io_stream.cc (io_stream::move_copy): Use the copy method.
2726 (io_stream::copy): New method to simply copy from one stream to another.
2727 * io_stream.h (io_stream): New static method copy, and virtual method get_size.
2728 * io_stream_cygfile.cc (io_stream_cygfile::get_size): Implement this.
2729 * io_stream_cygfile.h (io_stream_cygfile::get_size): Declare this.
2730 * io_stream_file.cc (io_stream_file::get_size): Implement this.
2731 * io_stream_file.h (io_stream_file::get_size): Declare this.
2732 * io_stream_memory.h: Include errno as it's neded to parse the header.
2733 (io_stream_memory::get_size): Implement this.
2734 (io_stream_memory::st_size): Delete this.
2735 * list.h: Change getnth into the [] operator.
2736 * netio.cc (NetIO::NetIO): Change prototype to reflect Purl not being modified.
2737 (NetIO::set_url): Ditto.
2738 (NetIO::open): Ditto.
2739 * netio.h: As for netio.cc.
2740 * nio-file.cc (NetIO_File::NetIO_File): Change prototype to reflect Purl not
2742 * nio-file.h: Ditto.
2743 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
2744 * nio-ftp.h (NetIO_FTP::NetIO_FTP): Ditto.
2745 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Ditto.
2746 * nio-http.h (NetIO_HTTP::NetIO_HTTP): Ditto.
2747 * nio-i5.cc (NetIO_IE5::NetIO_IE5): Ditto.
2748 * nio-i5.h (NetIO_IE5::NetIO_IE5): Ditto.
2749 * package_meta.cc (packagemeta::~packagemeta): Bugfix: use array delete.
2750 * package_source.cc (packagesource::set_canonical): Ditto.
2751 (packagesource::set_cached): Ditto.
2752 * package_source.h (site::~site): Ditto.
2753 * site.cc: Change site_list_type to a class, and search and replace sort_key to
2756 2001-12-01 Robert Collins <rbtcollins@hotmail.com>
2758 * package_source.cc (packagesource::set_canonical): Filename was out by one.
2760 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
2762 * Makefile.in (OBJS): Remove category_list - it's not needed.
2763 * README: More wishlist updates.
2764 * category.cc (Category::Category): Initialise new members.
2765 (Categorycmp): New function.
2766 * category.h (Category): New member key for template use.
2767 * category_list.cc: Remove.
2768 * category_list.h: Remove.
2769 (Categorycmp): New function prototype.
2770 * choose.cc: Remove category_list - not needed.
2771 (set_action): Only show the 'source' option when the source is actually
2773 (add_required): Fix recursion limiter to 5.
2774 (fill_missing_category): Use list access.
2775 (default_trust): Ditto.
2776 (pick_line::paint): Ditto.
2777 (_view::init_headers): Ditto.
2778 (_view::insert_pkg): Ditto.
2779 (_view::insert_category): Ditto.
2780 (_view::click): Ditto.
2781 (set_view_mode): Ditto.
2783 * cygpackage.h: Remove category_list - not needed.
2784 * geturl.cc (get_url_to_string): Fix null byte insertion.
2785 * inipatse.y: Remove category_list - not needed.
2786 (categories): Use list access.
2787 * package_db.cc: Ditto.
2788 * package_db.h: Remove category_list - not needed.
2789 (packagedb): Use the list template for categories.
2790 * package_meta.cc (add_category): Ditto.
2791 * package_meta.h (CategoryPackage): Link to the category as well.
2792 (packagemeta): Use a list of CategoryPackages instead of Categories
2793 for more memory efficient cross-referencing.
2795 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
2797 * package_db.cc (packagedb::flush): Write a canonical version for all packages
2798 irrespective of the media they were installed from.
2800 2001-11-29 Robert Collins <rbtcollins@hotmail.com>
2802 * Makefile.in (OBJS): Add package_source and rfc1738.
2803 * README: Wishlist update.
2804 * category_list.cc (register_category): Use references.
2805 * category_list.h (CategoryList): Ditto.
2806 * choose.cc (isinstalled): Remove.
2807 (pkgtrustp): New macro.
2808 (set_action): Use packagemeta.
2809 (add_required): Ditto.
2810 (choose_caption): Example package to choose caption, rather than state flags.
2811 (check_existence): Remove.
2812 (set_existence): Remove old code.
2813 (fill_missing_category): Use packagemeta.
2814 (keep_or_skip): Remove.
2815 (default_trust): Use packagemeta and set trust values directly.
2816 (pick_line::set_line): Use packagemeta.
2817 (_view::insert_pkg): Ditto.
2818 (_view::insert_category): Ditto.
2819 (_view::click): Ditto.
2820 (set_view_mode): Ditto. Also remove "exclude" code.
2821 (create_listview): Use packagemeta.
2822 (dialog_cmd): Ditto.
2823 (getpkgbyname): Remove
2824 (scan2): Use packagemeta. Temporarily comment out the holefinding code.
2825 (read_installed_db): Remove.
2826 (package_sort): Use packagemeta.
2827 (do_choose): Use packagemeta. Don't sort the packages - the db does that.
2828 * choose.h: Use packagemeta.
2829 * cygpackage.cc (cygpackage::cygpackage): Initialise all variables.
2830 (cygpackage::cygpackage): Ditto.
2831 (cygpackage::set_canonical_version): Copy the passed string.
2832 (cygpackage::~cygpackage): Move cleanup code to destroy().
2833 (cygpackage::destroy): New function.
2834 (cygpackage::getfirstfile): Use a separate buffer.
2835 (cygpackage::getnextfile): Ditto.
2836 (cygpackage::Canonical_version): New function.
2837 (cygpackage::set_sdesc): Ditto.
2838 (cygpackage::set_ldesc): Ditto.
2839 * cygpackage.h (cygpackage::Canonical_version): New method.
2840 (cygpackage::set_sdesc): New method.
2841 (cygpackage::set_ldesc): New method.
2842 (cygpackage::SDesc): New method.
2843 (cygpackage::LDesc): New method.
2844 (cygpackage::set_canonical_version): New method.
2845 * desktop.cc: Include packagedb headers.
2846 (make_password_group): Use packagemeta.
2847 * download.cc: Include packagedb headers.
2848 (check_for_cached): New method to find any cached file and fill out the database
2850 (download_one): Take a packagesource, support multiple mirrors.
2851 (do_download): Use packagemeta.
2852 * from cwd.cc: Include packagedb headers.
2853 (found_file): Use packagemeta.
2854 * ini.cc (do_ini): Beginning of multiple-mirror support.
2855 * ini.h (CategoryPackage): Remove.
2856 (Dependency): Remove.
2858 (new_package,getpkgbyname,getpackagecategorybyname,add_category): Remove.
2859 * inilex.l: Support multiple mirrors.
2860 * iniparse.y: Include packagedb headers.
2861 (parser): Use packagemeta.
2862 (new_package): Remove.
2863 (add_correct_version): New function.
2864 (new_requirement): Remove.
2865 (add_category): Remove.
2866 * install.cc (uninstall_one): Use packagemeta.
2867 (install_one_source): New function.
2868 (install_one): Use packagemeta.
2869 (do_install): Use packagemeta.
2870 * io_stream.cc (io_stream::move): Bugfix on move/copy case.
2871 * io_stream_cygfile.cc (io-stream_cygfile::set_mtime): Do not reopen the file
2872 after setting the mtime, it makes no sense, and results in 0 length files.
2873 * io_stream_file.cc (io-stream_file::set_mtime): Ditto.
2874 * list.h: New file, template class for a form of list.
2875 * package_db.cc (packagedb::registerpackage): New function.
2876 * package_db.h (packagedb::npackages ()): New method.
2877 * package_meta.cc (packagemeta::add_version): Use list template.
2878 (packagemeta::set_installed): Ditto.
2879 (packagemeta::add_category): New method.
2880 * package_meta.h: Include necessary headers to parse the class.
2881 (CategoryPackage): New class.
2882 (packagemeta): Initialise all members.
2883 (packagemeta::SDesc): New method.
2884 (packagemeta::Categories): New method.
2885 (packagemeta::add_category): Ditto.
2886 (packagemeta::versions): Change to be a list instance.
2887 * package_source.cc (packagesource::set_canonical): New method.
2888 (packagesource::set_cached): New method.
2889 * package_source.h: Include necessary headers to parse the class.
2891 (packagesource::packagesource): Initialize all members.
2892 (packagesource): Make this class non-abstract.
2893 * package_version.cc (packageversion::packageversion): New method.
2894 * package_version.h (Dependency): New class.
2895 (packageversion::Canonical_vesion): New method.
2896 (packageversion::SDesc): New method.
2897 (packageversion::LDesc): New method.
2898 (packageversion::new_requirement): Ditto.
2899 (packageversion::srcpicked, binpicked): What to install.
2900 (packageversion::src, bin): Installation source data.
2901 * rfc1738.cc: New file. Escapes special characters in URL's.
2904 2001-11-26 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2906 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Stop header parsing when
2907 SimpleSocket::gets() returns a zero-length string, so that we
2908 don't end up eating the entire stream thinking it's all header info.
2910 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
2912 * install.cc (badrename): Remove.
2913 (do_install): Use packagedb flush method to write /etc/setup/installed.db.
2914 * io_stream.cc (io_stream::move_copy): New method.
2915 (io_stream::move): New method.
2916 * io_stream.h (io_stream): New methods move and move_copy.
2917 * io_stream_cygfile.cc (io_stream_cygfile::move): New method.
2918 * io_stream_cygfile.h (io_stream_cygfile): New method move.
2919 * io_stream_file.cc (io_stream_file::move): New method.
2920 * io_stream_file.h (io_stream_file): New method move.
2921 * package_db.cc (packagedb::flush): New method.
2922 * package_db.h (packagedb): New method flush.
2924 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
2926 * Makefile.in (OBJS): Add package_version.
2927 * ategory.cc (Category::Category): Update constructors.
2928 * category_list.cc (CategoryList::register_category): Insert correctly.
2929 * choose.cc: Include package_version.h, not package.h.
2930 * cygpackage.cc: Ditto.
2931 (cygpackage::uninstall): New method.
2932 * cygpackage.h (cygpackage): Rename genericpackage to packageversion.
2933 New method uninstall.
2934 * hash.cc (add, has, enumerate): Change prototype to be accurate.
2935 * hash.h (hash): Change prototypes to be accurate.
2936 * ini.h (_Info): New parameterless constructor.
2937 (CategoryPackage): New constructor.
2939 * install.cc: Don't include unneeded headers.
2940 Include package database headers.
2941 (hash::add_subdirs): Remove.
2942 (uninstall_one): Use packagemeta->uninstall to perform the uninstallation.
2943 Don't uninstall source packages.
2944 (do_install): Just can uninstall_one once as we ignore source packages now.
2945 Don't copy the installed.old database accross, instead iterate through the
2946 packagedb packages list and write the isntalled packages out.
2947 * package_db.cc: Include package_version.h, not package.h.
2948 (packagedb::packagedb): Never let db be undefined.
2949 Record the installation filename, so we can reconstruct installed.db.
2950 (packagedb::addpackage): Insert packages in alpha sorted order.
2951 (packagedb::categories): Initialise correctly.
2952 * package_meta.cc: Include win32 and mount headers as a workaround to
2953 current io_stream limitations. Include a TODO about that.
2954 (standard_dirs): New, from install.cc.
2955 (hash::add_subdirs): New, from install.cc.
2956 (packagemeta::set_installed): Rename genericpackage to packageversion.
2957 (packagemeta::uninstall): New method.
2958 * package_meta.h: Rename genericpackage to packageversion.
2959 (packagemeta): Update constructor.
2960 (add_version, set_installed): Rename genericpackage to packageversion.
2961 (uninstall): New method.
2962 (installed_from): New member.
2963 * package_source.cc: New file.
2964 * package_source.h: New file.
2965 * package_version.cc: New file.
2966 * package_version.h: New file.
2967 * package.cc: Removed.
2968 * package.h: Removed.
2970 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
2972 * Makefile.in (OBJS): Add category.o and category_list.o.
2973 * category.h: New file.
2974 * category.cc: New file.
2975 * category_list.h: New file.
2976 * category_list.cc: New file.
2977 * choose.cc: Include category headers.
2978 (fill_missing_category): Use package_db to access global categories.
2979 (_view::insert_pkg): Ditto.
2980 (_view::insert_category): Ditto.
2981 (set_view_mode): Ditto.
2982 (getcategorybyname): Remove.
2983 * cygpackage.h: Include category_list.h to parse this correctly.
2984 (cygpackage): New virtual &Categories.
2985 * ini.h (_CategoryPackage): More C to C++ conversion.
2987 (getcategorybyname): Remove.
2988 (register_category): Remove.
2989 * iniparse.y: Include package db and category headers.
2990 (categories): Use package_db to access global categories.
2992 (ncategories): Remove.
2993 (register_category): Remove.
2994 * package.h: New virtual &Categories.
2995 * package_db.cc (packagedb::packagedb): Don't read the installed db twice.
2996 (packagedb::categories): Declare.
2997 * package_db.h (packagedb): New member categories for global categories list.
2999 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
3001 * choose.h: Don't include ini.h
3002 * ini.h: Allow pure c++ in the header file.
3004 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
3006 * install.cc (do_install): Write a version 2 installed.db file.
3007 * package_db.cc (packagedb::packagedb): Read version 1 and 2 installed.db files.
3009 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
3011 * Makefile.in (OBJS): Add package abstraction objects.
3012 * choose.cc: Include package abstraction headers.
3013 (read_installed_db): Use packagedb class and ignore installed sources.
3014 * cygpackage.cc: New file.
3015 * cygpackage.h: New file.
3016 * filemanip.h (get_file_size): Use unixy types.
3017 * package.h: New file.
3018 * package.cc: New file.
3019 * package_db.cc: New file.
3020 * package_db.h: New file.
3021 * package_meta.cc: New file.
3022 * package_meta.h: New file.
3024 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
3026 * REAME: Updates to wishlist.
3028 2001-11-16 Robert Collins <rbtcollins@hotmail.com>
3030 * README: Updated and added my list of wishlist and todo items.
3032 2001-11-14 Robert Collins <rbtcollins@hotmail.com>
3034 * Makefile.in (OBJS): Include io_stream_memory in setup.exe.
3035 * archive_tar.cc (archive_tar::write): New prototype.
3036 (archive_tar::seek): New method.
3037 * archive.h (archive_tar_file): Update write() and add seek().
3038 (archive_tar): Ditto.
3039 * archive_tar_file.cc (archive_tar_file::write): New prototype.
3040 (archive_tar_file::seek): New method.
3041 * compress_bz.cc (compress_bz::write): New prototype.
3042 (compress_bz::seek): New function.
3043 * compress_bz.h (compress_bz): Update write() and add seek().
3044 * compress_gz.cc (compress_gz::write): New prototype.
3045 (compress_gz::seek): New function.
3046 * compress_gz.h (compress_gz): Update write() and add seek().
3047 * geturl.cc: Include io_stream headers.
3049 (get_url_to_string): Use a io_stream_memory buffer instead of GUBuf.
3050 * io_stream.h (io_stream_seek_t): New enum.
3051 (io_stream): Update write() and add seek().
3052 * io_stream_cygfile.cc (io_stream_cygfile::write): New prototype.
3053 (io_stream_cygfile::seek): New function.
3054 * io_stream_cygfile.h (io_stream_cygfile): Update write() and add seek().
3055 * io_stream_file.cc (io_stream_file::write): New prototype.
3056 (io_stream_file::seek): New function.
3057 * io_stream_file.h (io_stream_file): Update write() and add seek().
3059 2001-11-13 Brian Keener <bkeener@thesoftwaresource.com>
3061 * localdir.cc: Add headers unistd.h and port.h.
3062 (save_local_dir): Expand search logic to include local directory for
3063 location of file last-cache.
3064 (dialog_cmd): Skip IDD_ROOT when downloading and use Back button.
3065 (do_local_dir): Expand search logic to include local directory for file
3067 * res.rc (IDD_CHOOSE_DIALOG): Add hotkey to View button.
3068 * Source.cc (dialog_cmd): Skip IDD_ROOT if select Download from
3070 (do_source): Default to Install from Internet on first entry or
3071 previous selection if backing up from IDD_ROOT or IDD_LOCAL_DIR.
3073 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
3075 * choose.cc (find_tar_ext): Only match at the end of the string.
3076 (getpkgbyname): Prevent NULL pointer dereference.
3078 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
3080 * Makefile.in (CFLAGS): Add warnings and -Werr.
3081 (WARNONLY_FLAGS): For sources that produce (harmless) errors no matter what.
3082 (OBJS): Add io_stream class' objects.
3083 (autoload.o): Use WARNONLY_FLAGS.
3085 (iniparse.o): Ditto.
3086 * archive.cc: New file.
3087 * archive.h: New file.
3088 * archive_tar.cc: New file.
3089 * archive_tar.h: New file.
3090 * archive_tar_file.cc: New file.
3091 * autoload.c: Fix compiler warnings (unused, deprecated conversion).
3092 * choose.cc: Use io_stream.h, not mount.h.
3094 (find_tar_ext): Rewritten to use strstr, and to accept .tar as an extension.
3095 (read_installed_db): Use io_streams.
3096 * choose.h: Run indent.
3097 * compress.cc: New file.
3098 * compress.h: New file.
3099 * compress_bz.cc: New file.
3100 * compress_bz.h: New file.
3101 * compress_gz.cc: New file.
3102 * compress_gz.h: New file.
3103 * concat.cc: Run indent.
3104 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3105 * concat.h: Run indent.
3106 * desktop.cc: Run indent.
3107 Include mklink2.h rather than redefining by hand.
3108 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3109 (etc_profile): Fix compiler warning (deprecated conversion).
3110 (make_link): Fix compiler warning (deprecated conversion).
3111 Tidy up use of args variable - consolidate into argbuf.
3112 (start_menu): Fix compiler warning (deprecated conversion).
3113 (desktop_icon): Fix compiler warning (deprecated conversion).
3114 (make_etc_profile): Fix compiler warning (deprecated conversion).
3115 (uexists): Fix compiler warning (deprecated conversion).
3116 (check_desktop): Fix compiler warning (deprecated conversion).
3117 (check_startmenu): Fix compiler warning (deprecated conversion).
3118 * dialog.cc: Run indent.
3119 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3120 (fatal): Fix compiler warning (deprecated conversion).
3121 * dialog.h: Run indent.
3122 * diskfull.cc: Run indent.
3123 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3124 * download.cc: Run indent.
3125 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3126 (download_one): Fix compiler warning (signed vs unsigned comparison).
3127 * filemanip.h: Run indent.
3128 * find.cc: Run indent.
3129 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3130 (find): Fix compiler warning (deprecated conversion).
3131 * find.h: Run indent.
3132 * fromcwd.cc: Run indent.
3133 * geturl.cc: Run indent.
3134 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3135 (dialog_cmd): Return a value.
3136 (dialog_proc): Remove unused variables.
3138 (get_url_to_file): Fix compiler warning (deprecated conversion).
3139 * geturl.h: Run indent.
3140 * hash.cc: Run indent.
3141 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3142 * hash.h: Run indent.
3143 * ini.cc: Run indent.
3145 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3146 (do_ini): Use io_streams for local io.
3147 * ini.h: Run indent.
3148 * inilex.l (ignore_line): Fix compiler warning (is not a prototype).
3149 Fix compiler warning (brackets for truth assignment).
3150 * install.cc: Run indent.
3151 Fix compiler warning (/* in comment).
3153 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3154 (dialog_cmd): Return a value.
3155 (dialog_proc): Return a value.
3156 (start_tics): Deleted - was unused.
3157 (badrename): Fix compiler warnings (unused, deprecated conversion).
3158 (standard_dirs): Fix compiler warning (deprecated conversion).
3160 (uninstall_one): Convert to io_streams.
3161 (install_one): Convert to io_streams.
3162 (do_install): Convert to io_streans.
3163 Fix compiler warning (deprecated conversion).
3164 * io_stream.cc: New file.
3165 * io_stream.h: New file.
3166 * io_stream_cygfile.cc: New file.
3167 * io_stream_cygfile.h: New file.
3168 * io_stream_file.cc: New file.
3169 * io_stream_file.h: New file.
3170 * localdir.cc: Run indent.
3172 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3173 (get_root_dir_now): Remove.
3174 (save_local_dir): Convert to io_streams.
3175 (dialog_cmd): Return a value.
3176 (do_local_dir): Convert to io_streams.
3177 (log.cc): Run indent.
3178 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3179 (log): Fix compiler warning (deprecated conversion).
3180 (log_save): Fix compiler warning (deprecated conversion).
3181 * log.h: Run indent.
3182 (log): Fix compiler warning (deprecated conversion).
3183 (log_save): Fix compiler warning (deprecated conversion).
3184 * main.cc: Run indent.
3185 Don't include "netio.h".
3186 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3187 (netio_test): Remove.
3188 (sid_auth): Fix compiler warning (partially bracketed initialiser).
3189 (WinMain): Return a value.
3190 * mkdir.cc: Run indent.
3191 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3192 * mklink2.c: Run indent.
3193 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3194 (mkcygsymlink): New function.
3195 * mklink2.h: New file.
3196 * mount.cc: Run indent.
3197 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3198 (create_mount): Remove unused variables.
3199 (cygpath): Fix compiler warning (signed vs unsigned comparison).
3200 * mount.h: Run indent.
3201 * msg.cc: Run indent.
3202 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3203 (msg): Fix compiler warning (deprecated conversion).
3204 (mbox): Fix compiler warning (deprecated conversion).
3205 * msg.h: Run indent.
3206 (msg): Fix compiler warning (deprecated conversion).
3207 * net.cc: Run indent.
3208 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3209 (dialog_cmd): Return a value.
3210 * netio.cc: Run indent.
3211 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3212 (auth_cmd): Return a value.
3213 * netio.h: Run indent.
3214 * nio-file.cc: Run indent.
3215 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3216 (NetIO_File::NetIO_File): Fix compiler warning (deprecated conversion).
3217 * nio-file.h: Run indent.
3218 * nio-ftp.cc: Run indent.
3219 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3220 * nio-ftp.h: Run indent.
3221 * nio-http.cc: Run indent.
3222 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3223 * nio-http.h: Run indent.
3224 * nio-ie5.cc: Run indent.
3225 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3226 * nio-ie5.h: Run indent.
3227 * other.cc: Run indent.
3228 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3229 (dialog_cmd): Return a value.
3230 * port.h: Run indent.
3231 * postinstall.cc: Run indent.
3232 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3233 (cmd): Fix compiler warning (deprecated conversion).
3234 (eun): Fix compiler warning (deprecated conversion).
3235 * root.cc: Run indent.
3236 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3237 * simpsock.cc: Run indent.
3238 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3239 * simpsock.h: Run indent.
3240 * site.cc: Run indent.
3242 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3243 (get_root_dir_now): Remove.
3244 (save_site_url): Convert to io_streams.
3245 (dialog_cmd): Return 0.
3246 (get_initial_list_idx): Convert to io_streans.
3247 * source.cc: Run indent.
3248 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3249 (check_if_enable_next): Remove.
3250 (load_dialog): Remove unused variables.
3251 (save_dialog): Ditto.
3252 (dialog_cmd): Return a value.
3253 * splash.cc: Return a value.
3254 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3255 (dialog_cmd): Return a value.
3256 * state.cc: Run indent.
3257 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3258 * state.h: Run indent.
3262 2001-11-12 Christopher Faylor <cgf@redhat.com>
3264 * desktop.cc (start_menu): Change start menu name to "Cygwin".
3265 (check_startmenu): Ditto.
3267 2001-11-11 Christopher Faylor <cgf@redhat.com>
3269 * choose.cc (parse_filename): Finish reorganization by correctly
3270 decrementing p in memmove.
3272 2001-11-11 Christopher Faylor <cgf@redhat.com>
3274 * choose.cc (parse_filename): Reorganize code to work around gcc
3275 optimization problem.
3277 2001-11-09 Gareth Pearce <tilps@hotmail.com>
3279 * choose.cc (set_action): Allow skip as an option for installed
3280 packages that have version number not listed in setup.ini.
3282 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
3284 * choose.cc (set_cation): Backout last change.
3285 (choose_caption): Ditto.
3287 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
3289 * ini.h (actions): Remove - transferred to choose.h.
3291 * choose.h: Protect class's from "C" compilers.
3292 (actions): New enum, from ini.h. This may not be the 'right' place
3293 but that place doesn't exist yet.
3294 (_views): New enum, from ini.h.
3295 * choose.cc (set_action): Handle installed packages with a version not in
3297 (choose_caption): Ditto.
3298 * iniparse.y: Rearrange header order to handle new ini.h.
3300 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
3302 * ini.h (_Info): Fix compiler warnings (signed vs unsigned comparison).
3303 (registry_category): Fix compiler warning (deprecated conversion).
3304 * iniparse.y (registry_category): Ditto.
3305 * choose.cc (cvsid): Fix compiler warnings (unused, deprecated conversion).
3306 (add_requried): Remove unused variable.
3307 (choose_caption): Handle all enumeration values via a default.
3308 (paint): Fix compiler warnings (unused, deprecated conversion).
3309 (scroll_common): Fix compiler warnings (unused, signed vs unsigned comparison).
3310 (list_clicK): Fix compiler warnings (signed vs unsigned comparison).
3311 (note_width): Fix compiler warnings (deprecated conversion).
3312 (keep_or_skip): Fix compiler warnings (unused).
3313 (_view::mode_caption): Fix compiler warnings (deprecated conversion).
3314 (set_view_mode): Fix compiler warnings (unused).
3315 (create_listview): Fix compiler warnings (unused, incorrect format, reaches
3317 (dialog_proc): Fix compiler warnings (unused).
3318 (read_installed_db): Fix compiler warnings (unused, deprecated conversion).
3319 * choose.h (_header): Fix compiler warnings (deprecated conversion).
3322 2001-11-08 Pavel Tsekov <ptsekov@syntrex.com>
3324 * simpsock.h (SimpleSocket::invalidate): Declare new method.
3325 * simpsock.cc (SimpleSocket::invalidate): Implement new method.
3326 (SimpleSocket::SimpleSocket): Initialize buf to zero. Do not allocate
3327 memory for buf in the constructor.
3328 (SimpleSocket::~SimpleSocket): Use SimpleSocket::invalidate().
3329 (SimpleSocket::printf): Use SimpleSocket::write() instead of send().
3330 (SimpleSocket::write): Check object consistency - return -1 on error.
3331 invalidate() the object on socket write error.
3332 (SimpleSocket::fill): Check object consistency - return -1 on error.
3333 invalidate() the object if socket read error is encountered and there
3334 is no more data available in the internal read buffer.
3335 Allocate memory for the internal read buffer.
3336 (SimpleSocket::gets): Return zero (NULL pointer) if error is encountered
3337 during fill() and no more data is available in the internal read buffer.
3338 (SimpleSocket::read): Check object consistency - return -1 on error.
3339 invalidate() the object if socket read error is encountered.
3340 * nio-ftp.cc (NetIO_FTP:NetIO_FTP): Allow 125 as valid response code to
3341 the RETR command (fix for MS IIS ftp server 5 - possibly others too).
3342 (NetIO_FTP::ok): Check if the SimpleSocket object is ok().
3343 (NetIO_FTP::read): Use NetIO_FTP::ok().
3344 * nio-http.cc: Check for valid return value of SimpleSocket::gets().
3345 (NetIO_HTTP::ok): Check if the SimpleSocket object is ok().
3347 2001-11-09 Robert Collins <rbtcollins@hotmail.com>
3349 * simpsock.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3350 (SimpleSocket::SimpleSocket): Avoid compiler warnings (deprecated conversion).
3351 (SimpleSocket::printf): Ditto.
3352 (SimpleSocket::write): Ditto.
3353 * simpsock.h (SimpleSocket): Avoid compiler warnings for constructor,
3355 * nio-ftp.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3356 (NetIO_FTP::NetIO_FTP): Remove unused variable done.
3357 * nio-http.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3359 2001-11-07 Charles Wilson <cwilson@ece.gatech.edu>
3361 * geturl.cc (get_url_to_string): clean up memory leak
3362 (get_url_to_file): ditto
3364 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
3366 * localdir.cc (dialog_cmd): Go back to IDD_ROOT in every case.
3367 * source.cc (dialog_cmd): Go forward to IDD_ROOT in every case.
3369 2001-11-06 Pavel Tsekov <ptsekov@syntrex.com>
3371 * fromcwd.cc (found_file): Free() memory containing the version and
3372 filepath information for a given package, before replacing the pointers which
3373 reference this memory.
3375 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
3377 * fromcwd: Fix compiler warnings for cvsid.
3378 (canonicalize_version): Fix compilter warnings.
3379 (do_fromcwd): Ditto.
3380 * version.h: Fix compiler warnings for canonicalize_version.
3382 2001-11-03 Robert Collins <rbtcollins@hotmail.com>
3384 * res.rc (IDD_CHOOSE): Move the view caption to the right hand side.
3386 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3388 * res.rc (IDD_CHOOSE): Tweak for use on a 640x480 screen.
3390 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3392 * choose.cc (set_action): Correctly allow skip for any uninstalled package.
3394 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3396 * choose.cc (default_trust): Change the "Required" forced install category to
3399 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3401 * choose.cc: Ran indent.
3402 (set_action): When the requested trust level is missing and the level was not
3403 user requested, set the action to ACTION_SAME_CURR.
3405 2001-11-01 Christopher Faylor <cgf@redhat.com>
3407 * Makefile.in (mingw_getopt.o): Fix typo in non-verbose compilation.
3409 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3411 * choose.cc (_view::init_headers): Resync with the paint logic.
3413 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3415 * choose.cc (add_required): Allow SKIP and SRC_ONLY for currently installed
3418 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3420 * choose.cc (default_trust): Autoset currently installed packages per the user's
3421 selection of prev/curr/exp.
3423 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3425 * splash.cc (dialog_proc): Return TRUE as specified in the WIN32 API.
3427 2001-11-02 Pavel Tsekov <ptsekov@syntrex.com>
3429 * geturl.cc (is_showing): Remove.
3430 (is_local_install): New static variable. Controls whether the
3431 progress dialog and the supporting thread will be created.
3432 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the WIN32 API.
3433 (init_dialog): Remove usage of SetForegroundWindow and is_showing.
3434 This prevents the progress dialog to gain control over the
3435 application and fixes the "setup.exe going to background" problem.
3436 (progress): Use is_local_install.
3437 (get_url_to_string): Set is_local_install.
3438 (dismiss_url_status_dialog): Use is_local_install.
3439 * install.cc (dialog_proc): Return TRUE as specified in WIN32 API.
3440 (init_dialog): Remove usage of SetForegroundWindow.
3441 This prevents the progress dialog to gain control over the
3442 application and fixes the "setup.exe going to background" problem.
3444 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3446 * choose.cc (list_click): Change r to row for clarity.
3447 When we shrink the list below 1 page, scroll to the top of the list.
3448 (_view::click): Return the actual change for contractions.
3449 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the Win32 API.
3451 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3453 * choose.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
3454 * localdir.cc: Ran indent.
3455 (get_root_dir_now): New function.
3456 (save_local_dir): New function.
3457 (dialog_cmd): Use it and swap cygwin root selection and local dir selection order.
3458 (do_local_dir): If there is a saved local dir, read it in.
3459 * net.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
3460 * root.cc (dialog_cmd): Ditto.
3461 * source.cc (dialog_cmd): Ditto.
3463 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
3465 * choose.cc(list_vscroll): Return 0 as required by win32.
3466 (list_hscroll): Ditto.
3467 (list_click): Ditto.
3469 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
3473 * main.cc(WinMain): Use __argv to retrieve command line parameters.
3474 * Makefile,in: Remove argv.o.
3476 2001-11-01 Matt Hargett <matt@use.net>
3478 * geturl.cc (progress): Change int to unsigned int to eliminate
3480 * (get_url_to_string): Check for NULL pointer.
3481 * mount.cc (find2): Use free instead of delete for malloc'd
3483 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Fix memory leak.
3485 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
3487 * choose.cc(_view::insert_under): Handle linen > nlines and lines[linen] with neither
3488 a package nor a category. The lines[linen] bug was reported by Matt (matt@usa.net).
3489 (read_installed_db): Bugfix for testing whether a package has a source tarball.
3490 Reported by Matt (matt@usa.net).
3491 * geturl.cc(dialog): Rename gw_dialog to local_gw_dialog to avoid programmer
3492 confusion and lint errors. Reported by Matt (matt@usa.net).
3494 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
3496 * argv.cc: New file, converts arguments for -mwindows programs. (Simplified derivation
3499 * Makefile,in: Add argv.o and mingw_getopt.o to setup.exe object list.
3500 Add mingw_getopt.o build rule.
3501 * main.cc(WinMain): Initialise argv and argc for use by getopt.
3503 2001-10-27 Christopher Faylor <cgf@redhat.com>
3505 * res.rc: Rearrange info on top line slightly.
3507 2001-10-27 Christopher Faylor <cgf@redhat.com>
3509 * desktop.cc (make_passwd_group): Move file creation earlier in the
3510 process to ensure that passwd-grp.bat reflects desired operation.
3512 2001-27-10 Trevor Forbes <t4bs@hotmail.com>
3514 * postinstall.cc (each): Remove "*.done" file else rename will fail.
3516 2001-10-16 Christopher Faylor <cgf@redhat.com>
3518 * res.rc: Oops. Take 640x480 screen size into account.
3520 2001-10-16 Christopher Faylor <cgf@redhat.com>
3522 * res.rc: Enlarge chooser screen.
3524 2001-10-12 Christopher Faylor <cgf@redhat.com>
3526 * Makefile.in: Accomodate changes to w32api_include macro.
3528 2001-10-12 Christopher Faylor <cgf@redhat.com>
3530 * Makefile.in: Use correct flags for windres.
3532 2001-10-12 Christopher Faylor <cgf@redhat.com>
3534 * Makefile.in (CFLAGS): Remove -nostdinc from CFLAGS.
3536 2001-10-12 Christopher Faylor <cgf@redhat.com>
3538 * choose.cc (pick_line::paint): Reorganize after botched patch.
3540 2001-10-12 Christopher Faylor <cgf@redhat.com>
3542 * choose.cc (pick_line::paint): Add missing declaration.
3544 2001-10-10 Ralf Habacker <Ralf.Habacker@freenet.de>
3546 * choose.cc (pick_line::paint): Add package name to sdesc for display.
3548 Wed Sep 26 21:39:00 Robert Collins rbtcollins@hotmail.com
3550 * choose.cc (_view::insert_pkg): Correctly exit loop.
3551 * iniparse.y (register_category): Always insert new categories.
3553 Fri Sep 21 13:56:32 2001 Christopher Faylor <cgf@cygnus.com>
3555 * inilex.l (yylex): For comments, eat all characters up to, but not
3558 Sun Aug 26 12:50:01 2001 John Marshall <jmarshall@acm.org>
3560 * fromcwd.cc (found_file): Use correct package name when adding an
3561 unknown package rather than random stack garbage.
3563 Sun Aug 12 14:25:21 2001 Christopher Faylor <cgf@cygnus.com>
3565 * desktop.cc (make_passwd_group): .bat files need \r\n endings.
3567 Wed Aug 8 13:53:47 2001 Christopher Faylor <cgf@cygnus.com>
3569 * desktop.cc (etc_profile): Leave environment variables untouched.
3571 2001-08-07 Corinna Vinschen <corinna@vinschen.de>
3573 * autoload.c: Add dynamic load statements for NT/W2K
3574 advapi32 functions not available in 9x/ME.
3575 * main.cc (set_default_dacl): New function.
3576 (WinMain): Call `set_default_dacl' if running on NT/W2K.
3578 Sat Aug 4 21:35:53 2001 Christopher Faylor <cgf@cygnus.com>
3580 * ini.h (_CategoryPackage): Change pkg field to pkgname for
3582 * choose.cc: Use pkgname field when referencing _CategoryPackage
3584 (fill_missing_category): Don't add excluded packages.
3585 (default_trust): Ditto.
3586 (_view::insert_pkg): Ditto.
3587 * iniparse.y (register_category): Use consistent variable name.
3589 2001-07-09 Egor Duda <deo@logos-m.ru>
3591 * choose.cc: Use system foreground color for text output.
3593 Sat Jul 7 00:40:28 2001 Christopher Faylor <cgf@cygnus.com>
3595 * choose.cc (set_action): Use default trust for determining reinstall
3597 (default_trust): Set default trust.
3598 (pick_line::paint): Allow source selection when reinstalling or
3601 Fri Jul 6 18:08:49 2001 Christopher Faylor <cgf@cygnus.com>
3603 * choose.cc (isinstalled): Modify to properly accomodate special case
3605 (set_action): Check downloaded components, not installed components if
3607 (set_existence): Always include full list of files when "download
3610 Fri Jul 6 00:37:05 2001 Christopher Faylor <cgf@cygnus.com>
3612 * choose.cc (pick_line::paint): Properly display "na" field when no
3615 Thu Jul 5 00:34:23 2001 Christopher Faylor <cgf@cygnus.com>
3617 * choose.cc (scan2): Ensure that older versions do not show up in
3620 Mon Jul 2 15:47:59 2001 Christopher Faylor <cgf@cygnus.com>
3622 * choose.cc (set_action): Allow "Skip" action if trust != installed.
3623 * res.rc: Fix copyright.
3625 Sat Jun 30 14:05:21 2001 Michael A Chase <mchase@ix.netcom.com>
3627 * res.rc (IDD_LOCAL_DIR): Change caption to match the other dialog
3629 (IDD_CHOOSE): Adjust horizontal size so package names are visible.
3631 * choose.cc: Restore some more changes from 2001-06-25, throughout.
3632 (paint): Wrap some excessively long lines.
3633 (pick_line::paint): Ditto. Move the arrow in the "Current" column
3634 right to where it belongs. Move the source checkbox slightly to the
3636 (do_choose): List categories and required packages in setup.log.full.
3638 Sat Jun 30 23:04:59 2001 Christopher Faylor <cgf@cygnus.com>
3640 * choose.cc (scan2): Restore source scanning eliminated by previous checkin.
3642 Sat Jun 30 15:18:33 2001 Christopher Faylor <cgf@cygnus.com>
3644 * ini.h (struct _Info): Add "derived" element.
3645 * choose.cc (scan2): Try to place unknown tar files into proper slot
3646 when package exists in setup.ini but tar file does not.
3648 Sat Jun 30 13:39:00 2001 Robert Collins <rbtcollins@hotmail.com>
3650 * choose.cc (create_listview): Call set_view_mode with VIEW_CATEGORY.
3651 (do_choose): Log the first category name.
3653 Fri Jun 29 23:07:44 2001 Christopher Faylor <cgf@cygnus.com>
3655 *ini.h: Reapply 2001-06-25 changes.
3656 * choose.cc (add_required): Ditto. Default to "Keep" state if
3657 UNINSTALL and product is installed. Default to curr state if SKIP,
3659 (keep_or_skip): New function. Returns skip or keep state depending on
3660 installed state of package.
3661 (default_trust): Use keep_or_skip to set state.
3662 (_view::insert_pkg): Use calloc to allocate lines.
3663 (set_view_mode): Adapt 2001-06-25 change to set_full_list here.
3665 Sat Jun 30 11:01:00 2001 Robert Collins <rbtcollins@hotmail.com>
3667 * choose.cc: Remove globals full_list, headers, package_indexes and
3669 Add globals cat_headers, pkg_headers and chooser.
3670 (add_required): New function.
3671 (paint): Use the chooser for header details.
3672 Call into the chooser to paint each line.
3673 (list_click): Use new global variables.
3674 Call into the chooser to handle the click.
3675 Repaint the entire view if packages have been added or removed.
3676 (note_width): Get passed a headers struct rather than using a global
3678 (fill_missing_category): New function.
3679 (default_trust): Skip non-"Required" or "Misc" packages.
3680 (pick_line::set_line (Package *)): New function.
3681 (pick_line::set_line (Category *)): New function.
3682 (pick_line::paint): New function.
3683 (pick_line::click): New function.
3684 (_view::_view): New function.
3685 (_view::set_view_mode): New function.
3686 (_view::mode_caption): New function.
3687 (_view::set_headers): New function.
3688 (_view::init_header): New function.
3689 (_view::insert_pkg): New function.
3690 (_view::insert_category): New function.
3691 (_view::insert_at): New function.
3692 (_view::insert_under): New function.
3693 (_view::clear_view): New function.
3694 (viewsplusplus): New function.
3695 (_view::client): New function.
3696 (set_view_mode): Use new chooser functionality.
3697 (set_full_list): Use new global variables.
3698 (create_listview): Instantiate chooser.
3699 Remove all hardcoded headers[] code.
3700 (dialog_cmd): On trust changes, check dependencies.
3701 (getcategorybyname): New function.
3702 (getpackagecategorybyname): New function.
3703 (scan2): Use case-insensitive package comparison.
3704 (do_choose): Use fill_missing_category ().
3705 Show some category data.
3706 * ini.h: Protect against multiple inclusion.
3708 (_CategoryPackage): New struct.
3709 (_Category): New struct.
3710 (_Package): Change category to Category * from char *.
3711 (extern Category category): New global variable.
3712 (extern in ncategories): Ditto.
3713 (getcategorybyname): New prototype.
3714 (catpackagecategorybyname): New prototype.
3715 (register_category): New prototype.
3716 (add_category): New prototype.
3717 * iniparse.y: Parse multiple categories per package.
3718 (category): New global variable.
3719 (ncategories): New global variable.
3720 (new_package): Compare package against NULL, not 0.
3721 (new_requirement): Source formatting fix.
3722 (register_category): New function.
3723 (add_category): New function.
3724 * res.rc: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
3725 IDC_CHOOSE_VIEWCAPTION: New control.
3726 * resource.h: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
3727 IDC_CHOOSE_VIEWCAPTION: New control.
3728 Increment _APS_NEXT_CONTROL_VALUE.
3730 Mon Jun 25 00:56:37 2001 Michael A Chase <mchase@ix.netcom.com>
3732 * choose.cc (paint): Wrap excessively long lines.
3733 (list_click): Ditto.
3734 (create_listview): Ditto.
3735 (do_choose): Ditto. Replace TABs and remove CRs in lines written to
3736 setup.log.full. Allow "Yes" for source exists in setup.log.full when
3737 installing from local directories.
3739 Mon Jun 25 00:56:37 2001 Christopher Faylor <cgf@cygnus.com>
3741 * choose.cc (set_action): Only clear srcpicked when moving to next
3742 state. Allow source installation if it exists in the current "trust"
3743 state. Don't move to skip state when package is installed.
3744 (list_click): Don't allow source clicking when no source is available.
3745 (set_full_list): Display package when not is_full_action.
3746 * ini.h (is_full_action): Define.
3748 Sun Jun 17 12:06:14 2001 Christopher Faylor <cgf@cygnus.com>
3750 * install.cc (check_for_old_cygwin): New function. First stab at
3751 checking for old cygwin versions.
3752 (do_install): Call check_for_old_cygwin if there were no errors during
3755 Sat Jun 16 11:33:51 2001 Michael A Chase <mchase@ix.netcom.com>
3757 * choose.cc (_Info::_Info): Test _source paramenter for non-NULL rather
3758 than zeroed "source" element.
3760 Fri Jun 15 20:54:43 2001 Christopher Faylor <cgf@cygnus.com>
3762 * choose.cc (scan2): Insert unknown tar archives, found on disk, into
3763 the highest available "hole" in the trust array.
3765 Fri Jun 15 00:20:48 2001 Christopher Faylor <cgf@cygnus.com>
3767 * choose.cc (set_existence): Use pointer method for indexing in trust
3769 (create_listview): Ditto.
3770 (scan2): Ditto. Also, use consistent variable name for indexing into
3772 * ini.h (Package): Reorganize info array for easier scanning.
3774 Fri Jun 15 00:01:51 2001 Christopher Faylor <cgf@cygnus.com>
3776 * choose.cc (isinstalled): Eliminate special download only test.
3777 (set_action): Don't move to next state if in ACTION_SAME range and not
3779 (choose_caption): Display "Retrieve" rather than "Reinstall" when just
3781 (do_choose): Sort packages after all packages have been read.
3782 Accomodate the fact that first element in trust array is empty so that
3783 log files don't report the wrong trust value.
3784 * iniparse.y (new_package): Malloc space for package name or suffer
3787 Thu Jun 14 22:43:59 2001 Robert Collins <rbtcollins@hotmail.com>
3789 * ini.h (Dependency): New structure. Declare new function.
3790 * inilex.l (yylex): Detect new setup.ini options - category and requires.
3791 * iniparse.y: Declare new setup.ini token values.
3792 (yyparse): Parse new token values.
3793 (new_requirement): New function.
3795 Thu Jun 14 22:43:26 2001 Christopher Faylor <cgf@cygnus.com>
3797 * choose.cc (read_installed_db): Eliminate obsolete code.
3799 Thu Jun 14 22:11:53 2001 Christopher Faylor <cgf@cygnus.com>
3801 * choose.cc (set_action): Set trust on "redo".
3802 (_Info::_Info): New constructor.
3803 (read_installed_db): Use new constructor. Use trusts type for
3805 * ini.h (struct _Info): Label struct, add constructor.
3806 (Package): Make installed_ix a type 'trusts.'
3807 * install.cc (uninstall_one): Unset any installed info for current
3809 (install_one): Allocate new Info struct for installed reflecting new
3811 (do_install): Don't output line to installed.db if package is being
3814 Thu Jun 14 20:33:01 2001 Robert Collins <rbtcollins@hotmail.com>
3816 * choose.cc (getpkgbyname): Use consistent method for scanning package
3819 Wed Jun 13 23:33:08 2001 Christopher Faylor <cgf@cygnus.com>
3821 * choose.cc: Add some comments.
3822 (getpkgbyname): Use strcasecmp for comparisons.
3824 Wed Jun 13 16:07:00 2001 Christopher Faylor <cgf@cygnus.com>
3826 * install.cc (do_install): Avoid checking for download action if
3827 package wasn't currently retrieved.
3829 Wed Jun 13 11:27:22 2001 Christopher Faylor <cgf@cygnus.com>
3831 * choose.cc: Eliminate extra array throughout. Use element in package
3832 structure instead. Use pointers rather than array indexes where
3834 (set_action): New function to set next action based on current.
3835 (choose_caption): New function. Returns display caption.
3836 (check_existence): Change arguments. Use pointer to 'info' structure.
3837 (set_existence): Use pointer rather than array index.
3838 (default_trust): Use trusts enum for second argument.
3839 (set_full_list): Honor exclude element in package structure.
3840 (build_labels): Eliminate.
3841 (base): Make global. Use const char * argument.
3842 (get_package_version): Eliminate.
3843 (getpkgbyname): New function.
3844 (read_installed_db): Use parse_filename to get version info.
3845 * desktop.cc (make_passwd_group): Use getpkgbyname function.
3846 * download.cc (get_file_size): const argument.
3847 (do_download): Use is_download_action to determine when something
3848 should be downloaded.
3849 * filemanip.h: Add some functions.
3850 * ini.cc (do_ini): Use NULL rather than 0 for pointer assignment.
3851 * ini.h: Use enums for actions and trusts.
3852 (is_download_action): New macro.
3853 (is_upgrade_action): Ditto.
3854 (is_uninstall_action): Ditto.
3855 (struct Package): Add new fields.
3856 * inilex.l (yylex): Detect new setup.ini options.
3857 * iniparse.y: Declare new tokens.
3858 (yyparse): Detect exclude keyword. Fill out version field even if
3860 (new_package): Use greater granularity when allocating package array to
3861 avoid repeated calls to realloc.
3862 * install.cc (exists): const argument.
3863 (uninstall_one): Take pkg argument.
3864 (install_one): Ditto. Eliminate unneeded arguments which can be
3865 derived from package info.
3866 (do_install): Iterate over package array using a pointer. Use
3867 is_download_action to control when package should be downloaded.
3868 * tar.cc (tar_open): const argument.
3869 * tar.h: Refloect const argument.
3871 2001-05-31 Michael Chase mchase@ix.netcom.com
3873 * main.cc (WinMain): Add setup version to starting setup.log entry
3875 Tue May 29 21:37:58 2001 Yukihiko Sohda <sohda@is.titech.ac.jp>
3877 * inilex.l: Add + to list of valid string characters.
3879 Mon May 28 20:54:50 2001 Christopher Faylor <cgf@cygnus.com>
3881 * Makefile.in: Remove more stuff in the clean target.
3883 Mon May 28 18:24:59 2001 Christopher Faylor <cgf@cygnus.com>
3885 * Makefile.in: Correctly generate iniparse.h.
3887 Tue Mar 6 19:14:00 2001 Corinna Vinschen <corinna@vinschen.de>
3889 * geturl.cc (get_url_to_file): Add parameter `allow_ftp_auth'.
3890 * geturl.h: Change declaration of `get_url_to_file' accordingly.
3891 * netio.cc (NetIO::NetIO): Add parameter `allow_ftp_auth'.
3892 Set member `ftp_auth'.
3893 (NetIO::open): Add parameter `allow_ftp_auth'. Use it in calls
3894 to constructors of derived classes.
3895 (NetIO::get_ftp_auth): New method.
3896 * netio.h: Change class definition accordingly.
3897 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Add parameter `allow_ftp_auth'.
3898 Take global variables `net_ftp_user' and `net_ftp_passwd' into account.
3899 Add code for ftp authentication retry.
3900 * nio-ftp.h: Change class definition accordingly.
3901 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Add parameter `allow_ftp_auth'.
3902 Add code for ftp authentication retry in case of proxy connection.
3903 * nio-http.h: Change class definition accordingly.
3904 * res.rc: Add FTP authentication dialog.
3905 * resource.h: Add new constants used in res.rc.
3906 * state.h: Add variables `net_ftp_user' and `net_ftp_passwd'.
3908 Sun May 27 17:12:23 2001 Christopher Faylor <cgf@cygnus.com>
3910 * res.rc (IDD_SPLASH): Add a copyright year.
3912 Sun May 27 15:42:18 2001 Christopher Faylor <cgf@cygnus.com>
3914 * Makefile.in: Make iniparse.y produce a c++ file.
3915 * choose.cc (set_existence): Revert 2001-05-27 change.
3916 * ini.cc: Remove "C" from declaration of yyparse.
3917 * iniparse.y (yyparse): Fill out version field by default when a binary
3918 install is detected and no version has been set yet.
3919 * install.cc (do_install): Mount things earlier so that we can use
3920 proper mount table settings. Don't remove mounts since they are now
3922 * mount.cc (create_mount): Reread the mount table after establishing a
3924 (read_mounts): Explicitly clear root_here to allow multiple uses of
3925 this function. Ensure that there is no garbage in the table when we've
3926 exhausted all of the mounts in the registry.
3927 (cygpath): Accomodate ./ in path.
3929 Sun May 27 02:59:07 2001 Christopher Faylor <cgf@cygnus.com>
3931 Use parse_filename method to parse filenames throughout. Use
3932 get_root_dir to retrieve the current root directory throughout. Set
3933 const in argument list, where appropriate, throughout.
3934 * choose.cc (set_existence): Detect case of uninstalled package with no
3936 (parse_filename): New function.
3937 * filemanip.h (fileparse): New structure.
3938 * mount.cc (read_mounts): Remember where we found the root mount.
3939 (set_root_dir): New function.
3940 (get_root_dir): Ditto.
3941 * mount.h: Declare new functions.
3942 * site.cc (get_root_dir_now): Renamed from get_root_dir.
3943 (save_site_url): Use new function name.
3944 (get_initial_list_idx): Ditto.
3946 Sat May 26 21:23:59 2001 Christopher Faylor <cgf@cygnus.com>
3948 * choose.cc: Use a constant throughout to deal with chooser icon
3950 * res.rc (IDD_CHOOSE): Increase size of chooser box.
3952 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
3954 * choose.cc (do_choose): Fix incorrect assignment of trust setting to
3955 use when Redownload or Sources Only selected.
3957 Thu May 10 22:35:59 2001 Christopher Faylor <cgf@cygnus.com>
3959 Reformat file after botched patch formatting.
3960 * choose.cc (which_trust): Eliminate variable.
3961 (default_trust): Don't set which_trust.
3962 (do_choose): Use selected trust when reinstalling or installing source.
3964 Thu May 10 21:04:18 2001 Christopher Faylor <cgf@cygnus.com>
3966 Change concat to cygpath throughout.
3967 Change map_filename to cygpath throughout.
3968 * concat.cc (vconcat): New function.
3969 (concat): Use vconcat.
3970 * concat.h: Reflect above.
3971 * install.cc (map_filename): Eliminate.
3972 (install_one): Free dest_file.
3973 * mount.cc (find2): Expect input key to be pointing to mount record.
3974 (in_table): New function.
3975 (is_admin): Move from root.cc.
3976 (read_mounts): New function.
3977 (path_prefix_p): New function.
3978 (cygpath): New function.
3979 * mount.h: Define new functions and structure.
3980 * root.cc (in_table): Move to mount.cc.
3981 (do_root): Call read_mounts to initialize root stuff and mount table.
3982 * site.cc (get_root_dir): Ditto.
3984 2001-05-09 Matt Hargett <matt@use.net>
3986 * Makefile.in: Remove *.rc from clean.
3988 Tue May 8 23:33:38 2001 Christopher Faylor <cgf@cygnus.com>
3990 * choose.cc (scan2): Fix incorrect setting of TRUST_CURR rather than
3991 TRUST_PREV which produced "0" versions.
3993 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
3995 * resource.h: Add new field IDC_CHOOSE_INST_TEXT. Modify
3996 _APS_NEXT_CONTROL_VALUE to account for addition of
3997 IDC_CHOOSE_INST_TEXT.
3998 * res.rc (IDD_CHOOSE): Modify choose dialog to use new field
3999 IDC_CHOOSE_INST_TEXT for screen text. Modify choose Dialog to allow
4000 hot keys to select Prev, Curr, Exp.
4001 * ini.h: Add new actions for ACTION_REDO and ACTION_SRC_ONLY. Modify
4002 define for LOOP_PACKAGES to include new actions ACTION_REDO and
4004 * choose.cc: Add new Trusts for TRUST_REDO and TRUST_SRC_ONLY.
4005 (paint): Modify to check TRUST_SRC_ONLY when determining Bitmap for
4006 source Checkbox to use.
4007 (build_labels): Add logic to allow for selection of Source only
4008 Download/ReDownload/Install/Reinstall and also to Redownload/Reinstall
4009 current version binary.
4010 (dialog_proc): Add conditional display for file selection prompt based
4011 on download vs install using IDC_CHOOSE_INST_TEXT.
4012 (do_choose): Add new logic for TRUST_REDO and TRUST_SRC_ONLY selection
4013 and modify logic for TRUST_UNINSTALL, TRUST_KEEP, and TRUST_NONE to
4014 handle the instance where Source Download/Install was selected. Modify
4015 log file to store appropriate information regarding Action selected and
4016 the new actions that were added (I.E.: ACTION_REDO and
4018 * download.cc: Add include for <unistd.h> and "port.h".
4019 (download_one): Modify parameter list to include the selected action
4020 for the file to be downloaded. Modify size check against expected size
4021 to include check for ACTION_REDO and ACTION_SRC_ONLY. Modify rename of
4022 .tmp file to also remove the destination file if exists due to ability
4023 to redownload source and binary now.
4024 (do_download): Modify to also use ACTION_REDO and ACTION_SRC_ONLY in
4025 calculation of Download Bytes. Modify to also use ACTION_REDO and
4026 ACTION_SRC_ONLY in determining files selected for download.
4027 * install.cc (uninstall_one): Add check to treat a Reinstall like an
4028 upgrade so current version will be uninstalled prior to reinstall.
4029 (do_install): Add logic to handle ACTION_REDO and ACTION_SRC_ONLY for
4030 uninstalling and installing binary and source packages.
4031 * desktop.cc (make_passwd_group): Modify logic to account for a Source
4032 only cygwin install when checking for cygwin to determine need for
4033 mkpasswd and mkgroup.
4035 Mon May 7 23:33:30 2001 Matt Hargett <matt@use.net>
4037 * winsup/cinstall/res.rc: Added accelerators and improved focus order.
4038 Removed WS_DISABLED from "OK" buttons to accomodate default focus
4039 changes in net.cc and source.cc.
4040 * winsup/cinstall/net.cc (dialog_proc): If no radio button is selected,
4041 a default is selected.
4042 * winsup/cinstall/source.cc (dialog_proc): Ditto.
4043 (check_if_enable_next): Removed. No longer needed since a radio button
4044 will always be selected.
4045 (load_dialog): Removed call to check_if_enable_next.
4046 (dialog_cmd): Ditto. Also added default to switch.
4048 Tue Apr 24 23:42:02 2001 Christopher Faylor <cgf@cygnus.com>
4050 * res.rc: Resize affected text.
4052 Tue Apr 24 23:35:31 2001 Christopher Faylor <cgf@cygnus.com>
4054 * net.cc (do_net): Default to direct download.
4055 * res.rc: Move default selections to the top.
4057 2001-04-18 Earnie Boyd <earnie@users.sourceforge.net>
4059 * win32.h: Remove the definitions for _UNION_NAME and _STRUCT_NAME.
4060 Must now include <windows.h> and not the pieces.
4061 * choose.cc (create_listview): Clean up type mismatch problems.
4062 * dialog.h (NEXT(id)): Ditto.
4063 * geturl.cc (dialog): Ditto.
4064 * install.cc (dialog): Ditto.
4065 * splash.cc (load_dialog): Ditto.
4067 Wed Apr 18 18:59:21 2001 Christopher Faylor <cgf@cygnus.com>
4069 * tar.cc (class gzbz): Define dummy virtual functions.
4071 Wed Apr 18 16:01:21 2001 Christopher Faylor <cgf@cygnus.com>
4073 * Makefile.in: Add bz2 include/library support.
4074 * filemanip.h: New file.
4075 * choose.cc (find_tar_ext): New function. Returns TRUE if .tar.gz or
4077 (scan2): Reorganize to use find_tar_ext, accomodating .bz2 extension.
4078 (read_installed_db): Ditto.
4080 * fromcwd.cc (found_file): Ditto.
4081 (do_fromcwd): Ditto.
4082 * tar.cc (class gzbz): New super class for uncompression support.
4083 (gz): New class for gzip support.
4084 (bz): New class for bzip2 support.
4085 (tar_open): Use gzbz class to control file opening.
4086 (tar_ftell): Ditto for returning position in file.
4087 (skip_file): Ditto for reading file.
4088 (tar_next_file): Ditto.
4089 (tar_read_file): Ditto.
4090 (tar_close): Ditto for close.
4092 * zlib/configure.in: Force NM substitution.
4094 * source.cc (do_source): Default to "Install from Internet".
4096 2001-03-16 Brian Keener <bkeener@thesoftwaresource.com>
4098 * nio-file.cc (NetIO_File::NetIO_File): Use `get_file_size' instead of
4100 * choose.cc (list_click): Correct inability to select source code for
4102 (scan2): Modify to skip source tarballs when scanning disk for
4103 installable packages.
4105 2001-03-10 Chris Abbey <chris_abbey@yahoo.com>
4107 * install.cc: install sources into /usr/src instead
4108 of /, also include the sizes of source tarballs
4110 * download.cc: include sizes of source tarballs in
4111 total_download_bytes.
4113 Tue Mar 6 19:31:00 2000 Corinna Vinschen <corinna@vinschen.com>
4115 * download.cc (get_file_size): Remove `static'.
4117 Tue Mar 6 19:11:00 2000 Corinna Vinschen <corinna@vinschen.com>
4119 * tar.cc (tar_open): Use `get_file_size' instead of `stat'.
4121 2001-03-06 Brian Keener <bkeener@thesoftwaresource.com>
4123 * choose.cc (paint): Modify message for nothing to download vs
4124 nothing to install/update based on installation method.
4125 (list_click): Modify to skip versions in selection process if
4126 installing from local directory and installation file does not exist.
4127 Also leaves Source Action set to N/A if the source file does not exist
4128 and installing from local directory.
4129 (check_existence): New method to check current existence of installation
4130 files based on selected installation method.
4131 (set_existence): New method to set the current existence of installation
4132 files based on selected installation method.
4133 (best_trust): Modify decision process for best trust to base decision on
4134 current trust selected (IE: Prev, Curr, or Test), existence of file and
4135 installation method selected.
4136 (default_trust): Add logic to capture the current trust level and the
4137 trust selected for the given package.
4138 (set_full_list): Expand decision criteria for displaying a package in
4139 the selection list to include file existence/non-existence and selected
4140 installation method.
4141 (build_labels): Modify criteria for label addition to include
4142 installation method and file existence/non-existence.
4143 (create_listview): Modify to establish package trust level for each
4144 package before setting up the display list. Also modification to set
4145 current trust button as the default.
4146 (dialog_cmd): Set response for Prev, Curr, Test button push to perform
4147 a reset of the selection list in addition to setting the default trust.
4148 (get_package_version): New method to provide reusable code for
4149 determining the package version from the file name for a specified
4151 (scan2): Modify to use new method get_package_version and
4152 also enhance handling of the build for the structures package and
4154 (read_installed_db): Modify to use the new method
4155 get_package_version and also enhance handling of the build for the
4156 structures package and extra.
4157 (do_choose): Add additional initialization of package and extra
4158 structures. Modify to use read_installed_db all the time despite
4159 install method. Modify output to setup.log.full log file to increase
4160 readability by adding additional spacing, expanded code and available
4162 * ini.h: Add new fields install_exists, source_exists and
4163 partial_list_display to the structure definition for package.
4164 * res.rc (IDD_CHOOSE): Modify choose dialog Prev, Curr, and Test
4165 pushbuttons by replacing with Radio Buttons thus allowing the
4166 operator to better determine which is selected.
4168 2001-02-20 Brian Keener <bkeener@thesoftwaresource.com>
4170 * download.cc (do_download): Add new variables total_download_bytes and
4171 total_download_bytes_sofar for download progress meter. Add loop
4172 to accumulate the total bytes to download from the selected packages.
4173 * geturl.cc: Add state.h and diskfull.h to include list. Add new
4174 variables gw_iprogress, gw_pprogress, gw_progress_text,
4175 gw_pprogress_text, and gw_iprogress_text to allow for addition of
4176 total packages download progress meter and disk full percent
4177 progress meter. Add variables total_download_bytes and
4178 total_download_bytes_sofar for use by progress meters.
4179 (dialog_proc): Add new variables gw_iprogress, gw_pprogress,
4180 gw_progress_text, gw_pprogress_text, and gw_iprogress_text to
4181 allow for addition of total packages download progress meter and disk
4182 full percent progress meter.
4183 (init_dialog): Ditto.
4185 (get_url_to_file): Ditto.
4186 * geturl.h: Add external definition for total_download_bytes and
4187 total_download_bytes_sofar.
4188 * res.rc: Add two additional progress meters (IDC_DLS_IPROGRESS)
4189 and (IDC_DLS_PPROGRESS) and three text objects (IDC_DLS_PROGRESS_TEXT)
4190 and (IDC_DLS_IPROGRESS_TEXT, IDC_DLS_PPROGRESS_TEXT) for use in the
4192 * resource.h: Add new fields for progress meters and text and update
4193 _APS_NEXT_CONTROL_VALUE.
4195 Wed Feb 21 13:05:00 2000 Corinna Vinschen <vinschen@redhat.com>
4197 * download.cc (get_file_size): Check for INVALID_HANDLE_VALUE instead
4200 Wed Feb 21 11:21:00 2000 Corinna Vinschen <vinschen@redhat.com>
4202 * download.cc (download_one): Add missing parenthesis.
4204 Mon Feb 19 18:59:00 2000 Corinna Vinschen <vinschen@redhat.com>
4206 * download.cc (get_file_size): New function. Eliminates the need
4208 (download_one): Call `get_file_size' instead of `stat'. This
4209 workarounds a problem with mingw's `stat' call.
4211 2001-02-07 Earnie Boyd <earnie@users.sourceforge.net>
4213 * Makefile.in: (%.o: %.rc): Specify --include-dir $(w32api_include).
4214 This is to allow cinstall to build with 2.95.2-7 and to make the
4215 use of headers consistent.
4217 2000-12-26 Earnie Boyd <earnie_boyd@yahoo.com>
4219 * Makefile.in (autoload.o): Add target to specify -fno-inline-functions
4221 Tue Dec 26 03:46:00 2000 Matt Hargett <matt@use.net>
4223 * winsup/cinstall/res.rc: Added accelerators and improved focus
4226 2000-12-10 Egor Duda <deo@logos-m.ru>
4228 * choose.cc (paint): Use system background color for text output.
4230 Sun Dec 10 19:05:25 2000 Christopher Faylor <cgf@cygnus.com>
4232 * Makefile.in: Use CXX for linking and for compiling .cc files.
4233 * configure.in: Find correct c++ compiler.
4234 * configure: Regenerate.
4236 2000-11-17 DJ Delorie <dj@redhat.com>
4238 * splash.cc (load_dialog): Make message more obvious.
4241 Fri Nov 17 17:15:21 2000 Christopher Faylor <cgf@cygnus.com>
4243 * Makefile.in: Use g++ to link so that libstdc++.a gets used. This is
4244 necessary for newer compilers.
4246 Wed Nov 9 2:19:00 2000 Corinna Vinschen <vinschen@redhat.com>
4248 * desktop.cc: Include "ini.h" and "version.h".
4249 (make_passwd_group): Skip the function on 9x/ME boxes when an
4250 older version of Cygwin has been installed which doesn't
4251 support mkpasswd/mkgroup on 9x/ME.
4252 * install.cc: Move the `LOOP_PACKAGES' and `pi' macros to...
4255 Wed Nov 8 17:10:00 2000 Corinna Vinschen <vinschen@redhat.com>
4257 * desktop.cc (make_passwd_group): Don't exit when started
4258 on 9x/ME since mkpasswd/mkgroup are usable on 9x/ME now.
4260 Sun Nov 5 12:51:42 2000 Jason Tishler <jt@dothill.com>
4262 * install.cc (do_install): Add call to set_cygdrive_flags to sync
4264 * mount.cc (set_cygdrive_flags): New function.
4265 (get_cygdrive_flags): Ditto.
4266 (default_cygdrive): Ditto.
4267 (set_cygdrive_flags): Ditto.
4268 * mount.h: Add prototype for set_cygdrive_flags.
4270 2000-10-23 DJ Delorie <dj@redhat.com>
4272 * ini.h: add source actions
4273 * fromcwd.cc: check for available sources
4274 * res.rc: add checkbox bitmaps
4277 * choose.cc: add source column
4278 * download.cc: download sources if called for
4279 * install.cc: [un]install sources too
4281 2000-10-22 DJ Delorie <dj@redhat.com>
4283 * choose.cc (build_labels): Don't skip TRUST_PREV completely; only
4284 ignore it wrt full_list if there's already a version installed.
4285 (do_choose): Sort the list.
4286 (package_sort): New.
4288 2000-10-12 DJ Delorie <dj@redhat.com>
4290 * res.rc: Add more error strings.
4291 * resource.h: Ditto.
4292 * iniparse.y (new_package): re-initialize if needed.
4293 * download.cc (do_download): Keep track of errors; notify and
4295 * install.cc (do_install): Ditto.
4297 2000-10-05 DJ Delorie <dj@redhat.com>
4299 * Makefile.in: fix %.cc rule
4301 2000-10-04 DJ Delorie <dj@redhat.com>
4303 * desktop.cc: quote HOME and USER, don't . ./.profile
4305 * choose.cc (build_labels): don't include in partial list just
4306 because there's a *previous* version available.
4308 * install.cc (do_install): if installing from local directory with
4309 setup.ini and the file isn't found, look in "." also. Note errors.
4311 2000-10-02 DJ Delorie <dj@redhat.com>
4313 * ini.cc (do_ini): save setup.ini locally
4315 2000-10-02 Chris Abbey <cabbey@bresnanlink.net>
4317 * desktop.cc: quote escapes in prompt
4319 2000-10-02 Jason Tishler <jt@dothill.com>
4321 * root.cc (is_admin): New function.
4322 (read_mount_table): Check for administrative priviledges and set
4323 installation scope as appropriate.
4325 2000-09-28 DJ Delorie <dj@redhat.com>
4327 * nio-ftp.cc (ftp_line): handle continuations more robustly
4329 2000-09-14 Brian Keener <bkeener@thesoftwaresource.com>
4331 * res.rc: increased the size of the site dialog (IDD_SITE) & the
4332 corresponding list box to provide for more URL's to be listed.
4333 Modified the position of the Back, Next and Cancel buttons to
4334 correspond to the new size of the dialog.
4336 2000-09-13 DJ Delorie <dj@redhat.com>
4338 * install.cc (do_install): update disk fullness once per package
4339 to improve performance
4341 * choose.cc (create_listview): call ReleaseDC
4343 Mon Sep 11 22:40 2000 Harold L Hunt II <harold@compasstechnologies.com>
4345 * mkdir.cc: Create directories when ERROR_FILE_NOT_FOUND is
4346 returned, as it seems Samba 2.0.6+ returns this instead of
4347 ERROR_PATH_NOT_FOUND
4349 Mon Sep 11 19:35:24 2000 Christopher Faylor <cgf@cygnus.com>
4351 * site.cc (get_initial_list_idx): Don't default to saved URL if it
4354 2000-09-07 DJ Delorie <dj@redhat.com>
4356 * splash.cc: use version.h, not local decl
4357 * res.rc: add "old version" message
4360 * fromcwd.cc (canonicalize_version): make global
4361 * iniparse.y: add setup-version support, fix bug in blank line
4364 * inilex.l: add [exp] as alias for [test], add setup-version
4365 * Makefile.in (version.c): add setup-version tag
4367 * desktop.cc (do_desktop): remove 1.1 version number
4368 (do_desktop_setup): ditto
4370 * ini.cc (do_ini): zero out package list just in case we redo it.
4372 2000-09-07 Jeffrey Juliano <juliano@cs.unc.edu>
4374 * choose.cc (list_click): Check for nindexes==0; if so, return.
4376 2000-09-06 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
4378 * localdir.cc: new, local package directory selection dialog; cd
4379 into selected directory
4380 * Makefile.in (OBJS): add localdir.o
4381 * dialog.h: add prototype for do_local_dir
4382 * main.cc (WinMain): initialize local_dir to cwd; add call to
4384 * net.cc (dialog_cmd): make DO_LOCAL_DIR next dialog
4385 * source.cc (dialog_cmd): ditto
4386 * res.rc: add DO_LOCAL_DIR dialog; remove "current directory" from
4387 presented choices in IDD_SOURCE; add IDS_ERR_CHDIR error string
4388 * resource.h: defines for DO_LOCAL_DIR dialog; define IDS_ERR_CHDIR
4389 * root.cc (dialog_cmd): make DO_LOCAL_DIR previous dialog
4390 * state.h: add local_dir variable
4392 2000-09-06 Brian Keener <bkeener@thesoftwaresource.com>
4394 * desktop.cc: added logic to handle to the new dialog and to
4395 default the setting for the new checkboxes based on whether the
4396 desktop icon or start menu link already exist.
4397 (desktop_icon): correction to desktop directories for desktop icon
4398 creation. Additional logic added for Win95 which does not appear
4399 to have Common Directories so if Common selected and null uses
4401 (start_menu): Additional logic added for Win95 which does not
4402 appear to have Common Directories so if Common selected and null
4403 uses normal directory.
4404 (do_desktop_setup): moved the saving of the icon, creation of the
4405 bat file, profile, passwd, Start Menu link and desktop shortcut to
4406 this method from do_desktop. Made the creation of the desktop
4407 icon and start menu link conditional on settings of new dialog
4408 created for desktop.
4409 * install.cc (do_install): changed next from IDD_S_DESKTOP to
4411 * main.cc (WinMain): changed case IDD_S_DESKTOP to IDD_DESKTOP.
4412 * res.rc: added new resource to create a desktop dialog with 2
4413 checkboxes for creating the desktop icon and start menu link.
4414 * resource.h: changed IDD_S_DESKTOP to IDD_DESKTOP and added two
4415 new controls: IDC_ROOT_MENU and IDC_ROOT_DESKTOP for new dialog.
4416 * state.h: added root_menu and root_desktop for use in dialog.
4418 2000-08-29 DJ Delorie <dj@redhat.com>
4420 * choose.cc (scan_downloaded_files): scan for existing files, so
4421 that the user only sees new downloads.
4423 * nio-ie5.cc (NetIO_IE5): pre-check for wininet.dll, enable dial-up
4424 * site.cc (do_site): if we can't download the mirror list, go back
4425 to the net setup box to choose another transport.
4426 * autoload.c: add more functions
4427 * Makefile.in (ALL_DEP_LDLIBS): remove wininet.a
4428 * resource.h: add WININET message
4430 * net.cc (do_net): no longer default to IE5
4431 * simpsock.h (class SimpleSocket): new, simplify socket operations
4432 * simpsock.cc: ditto
4433 * nio-http.h: new, for direct http protocol
4434 * nio-http.cc: ditto
4435 * nio-ftp.h: new, for direct http protocol
4437 * netio.cc (set_url): move initialization here to handle redirections
4438 (open): add direct http/ftp
4439 * netio.h (NetIO::set_url): new
4441 * log.cc (log_save): create directory for log if needed
4443 * hash.cc, hash.h: new
4444 * Makefile: add hash.o
4445 * choose.cc: enable "uninstall" option
4446 * download.cc: invert action test to accomodate uninstalling
4447 * ini.h: add ACTION_UNINSTALL
4448 * install.cc: add uninstall functionality
4449 * res.rc: make install tag changeable
4450 * resource.h: add uninstall resources
4452 * res.rc: update mirror list URL
4454 2000-08-24 DJ Delorie <dj@redhat.com>
4456 * log.cc, log.h: new files
4457 * Makefile.in (OBJS): add log.o
4458 * tar.cc: use exit_setup instead of exit
4459 * dialog.cc (fatal): use exit_setup instead of ExitProcess
4460 * msg.cc (fatal): ditto
4461 * install.cc (dialog_cmd): ditto
4462 * ini.cc (do_ini): ditto
4463 * main.cc (main): add logging
4464 * source.cc (do_source): ditto
4465 * root.cc (do_source): ditto
4466 * site.cc (do_site): ditto
4467 * other.cc (do_other): ditto
4468 * net.cc (do_net): ditto
4469 * choose.cc (do_choose): ditto
4470 * download.cc (do_download): ditto
4471 * install.cc (do_install): ditto
4472 * msg.cc (fatal): ditto
4474 * res.rc: mark password boxes as *being* password boxes.
4476 * fromcwd.cc (canonicalize_version): use multiple buffers so that multiple
4477 calls won't use the same buffer.
4478 * choose.cc (create_listview): don't default to full list if no changes
4479 (base): return computed value, not temporary :-(
4480 (do_choose): don't use installed.db if we're only downloading.
4482 2000-08-23 DJ Delorie <dj@redhat.com>
4484 * nio-ie5.cc (NetIO_IE5): Fix authentication logic
4485 * nio-ie5.h (flush_io): new
4486 * netio.cc (load_dialog): note when we're initializing the dialog
4487 box, and ignore changes to the edit fields then.
4489 2000-08-21 DJ Delorie <dj@redhat.com>
4493 * fromcwd.cc (found_file): don't remember the canonicalized version
4495 * choose.cc (paint): print "nothing to do" message when list is empty.
4496 (build_labels): Use version "0.0" if no version is available.
4497 (create_listview): default to full list if nothing to install/update.
4498 (base): new, returns basename of file
4499 (read_installed_db): compare base names, not full paths
4501 2000-08-11 DJ Delorie <dj@redhat.com>
4503 * choose.cc: add new chooser dialog
4504 * fromcwd.cc: use IDD_CHOOSE
4505 * ini.cc: use IDD_CHOOSE
4506 * main.cc: use IDD_CHOOSE
4507 * ini.h: cosmetic changes
4508 * res.rc: add choose dialog, bitmaps
4509 * choose-spin.bmp: new
4510 * choose-rtarrow.bmp: new
4511 * resource.h: add choose dialog controls
4513 * mount.cc: remove debug statement
4515 2000-08-08 DJ Delorie <dj@redhat.com>
4517 * Makefile.in (version.c): make version checking more robust
4518 * splash.cc (load_dialog): handle case where there's no version
4520 2000-08-07 DJ Delorie <dj@redhat.com>
4522 * (all): add cvsid tags
4523 * Makefile.in: generate version.c from ChangeLog, add splash.o
4525 * res.rc: add splash screen
4527 2000-08-02 DJ Delorie <dj@redhat.com>
4529 * net.cc: remove proxy password code
4530 * res.rc: remove proxy user/pass from net, add auth dialogs
4531 * netio.cc,h: add sys/proxy auth methods
4532 * nio-ie5: use them, check for http status codes
4533 * state.h: add system authorization
4535 * concat.cc (concat): canonicalize x:// to x:/ (exception to ://
4538 2000-08-02 Norman Vine <nhv@yahoo,com>
4540 * msg.cc (mbox): added MB_TOPMOST to MessageBox type flags
4542 2000-08-01 DJ Delorie <dj@redhat.com>
4544 * postinstall.cc (each): don't rename files we ignore
4545 (do_postinstall): set CYGWINROOT to root_dir, chdir there
4547 * desktop.cc: have /etc/profile call ~/.profile and ~/.bashrc
4549 2000-07-31 DJ Delorie <dj@redhat.com>
4551 * desktop.cc: reverse PATH so /usr/bin precedes /bin
4553 2000-07-18 DJ Delorie <dj@redhat.com>
4555 * autoload.c: new, autoload dlls that might not be available.
4556 * Makefile.in (OBJS): add autoload.o
4558 * res.rc: rewrite root options (text/binary, system/user) to be
4561 * site.cc (get_site_list): trim displayed URL, sort by domain
4563 * net.cc (do_net): make IE5 default to checked, for now
4565 * choose.cc (do_choose): sort packages correctly
4566 * ini.cc (do_ini): handle parse errors more gracefully
4568 (fprintf): line buffer output
4569 (do_ini): if we can't load setup.ini, go back to the site list.
4570 * ini.h: add "unknown" trust level
4571 * inilex.l: absorb unknown trust levels and key/value pairs,
4572 add line number logic
4573 * iniparse.y: handle parse errors more gracefully.
4574 * install.cc: skip packages with no valid install entry
4576 2000-07-17 DJ Delorie <dj@cygnus.com>
4578 * coding standards fixups, many files
4579 * mkdir.cc: warn about deletions *before* deleting them
4581 2000-07-17 Jeff Juliano <juliano@cs.unc.edu>
4583 * res.rc (IDD_OTHER_URL): reorder to give default focus to entry
4585 * other.cc (dialog_cmd): save download site URL
4586 * site.cc (get_root_dir): new
4587 (save_mirror_site): new
4588 (dialog_cmd): save download site URL
4589 (get_site_list): make list big enough to add prev site
4590 (get_initial_list_idx): new, read last-used URL from file and
4591 append it to site_list
4592 (do_site): call get_initial_list_idx
4594 * concat.cc (concat): avoid segfault when first parm is null
4596 2000-07-13 DJ Delorie <dj@cygnus.com>
4598 * postinstall.cc: new
4599 * Makefile.in: add postinstall.o
4600 * concat.h: add backslash ()
4602 * desktop.cc (etc_profile): don't do postinstall
4603 (backslash): moved to concat.cc
4605 (make_postinstall_script): run directly
4606 (do_desktop): chain to do_postinstall
4607 * dialog.h: add exit_msg, do_postinstall
4608 * download.cc: use exit_msg
4610 * main.cc: add postinstall, exit_msg
4611 * resource.h: add postinstall
4612 * README: add more to-do items
4614 2000-07-12 DJ Delorie <dj@cygnus.com>
4616 * desktop.cc: add /etc/postinstall/ support
4617 * install.cc: add more "standard" directories
4619 2000-07-11 DJ Delorie <dj@cygnus.com>
4621 * desktop.cc: create /etc/profile
4622 * desktop.cc: fix include syntax
4623 * Makefile.in: add auto-dependencies
4624 * root.cc: support system vs user
4632 * desktop.cc: make sure we use backslashes, not slashes.
4633 * desktop.cc: don't set PATH in cygwin.bat, create /etc/passwd
4634 * geturl.cc: change math for percentage to avoid overflow
4636 * download.cc: post "download complete" message.
4637 * root.cc: pre-fill in defaults if needed, don't start
4638 browse at root_dir unless it's set.
4639 * desktop.cc: quote $PATH in case it has spaces in it
4641 2000-07-10 DJ Delorie <dj@cygnus.com>
4643 * Makefile.in: add desktop.o and mklink2.o
4644 * dialog.h: add do_desktop
4645 * install.cc: create standard directories, call do_desktop
4646 * res.rc: add cygwin.ico as a file also
4647 * desktop.cc: new, do shortcuts, batch files, and icons
4648 * mklink2.c: new, for COM
4649 * README: update to-do list
4651 2000-07-10 DJ Delorie <dj@cygnus.com>
4653 * ini.cc (do_ini): don't worry about timestamps if we're not
4654 actually installing.
4656 2000-07-09 DJ Delorie <dj@cygnus.com>
4658 * Makefile.in: add -I$(srcdir) for ini.h
4660 2000-07-06 DJ Delorie <dj@cygnus.com>
4662 * Replace everything with a new GUI version
4663 * zlib/gzio.c: add gzctell() for progress displays
4665 2000-06-22 DJ Delorie <dj@cygnus.com>
4667 * setup.c (tarx): re-add call to write_pkg()
4669 2000-06-07 DJ Delorie <dj@cygnus.com>
4671 * cygcalls.c: new, call cygwin1.dll functions directly
4672 * cygcalls.h: header for same
4673 * Makefile.in: add cygcalls.[ch], remove mount/cygpath/umount
4674 exes, fix cinstall.rc dependencies.
4675 * path.c: remove unneeded code
4676 * setup.c: use cygcalls instead of xcreate_process.
4677 uncompress embedded files with zlib
4678 add "-d" for "download only"
4680 postpone mount changes until very end
4681 add download progress indicators
4682 pack multi-column listings more
4683 auto-delete temp files
4684 customize banner message according to options
4685 prompt user for text/binary mounts
4686 add warnings about empty setup directory, root installs, etc
4688 2000-05-24 DJ Delorie <dj@cygnus.com>
4690 * tar.c: New file; built-in tar using zlib.
4691 * tar.h: New file; header for same.
4692 * ctar.c: New file; test program for same.
4693 * Makefile.in: add built-in tar, remove tar.exe and gzip.exe
4694 * path.c (pathcat): convert slashes and canonicalize, instead of aborting
4695 * setup.c (tarx): add support for built-in tar
4696 (main): accept unix-style slashes, check root dir for drive letters,
4697 warn about installing in /, make sure cwd is empty for internet installs,
4698 defer mounts to end of install, support built-in tar.
4700 Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
4702 Fix compiler warnings throughout.
4703 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
4705 * setup.c: Make 'root' global.
4706 (istargz): Return pointer to "stem" of matched .tar.gz file.
4707 (tarx): Special case cygwin-20000301 to == cygwin-1.1.0.tar.gz. Remove
4708 bogus check_for_installed check.
4709 (recurse_dirs): Add preliminary support for .bat file execution.
4710 (create_uninstall): Eliminate unneeded parameter.
4711 (do_start_menu): Ditto.
4713 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
4714 scanning for the version number. Eliminate unneeded argument to
4716 (getdownloadsource): Add 'name' to list of names rather than url.
4717 (main): Eliminate unneeded argument in get_pkg_stuff. Eliminate
4718 unneeded argument in mkmount and do_start_menu.
4720 2000-05-18 DJ Delorie <dj@cygnus.com>
4722 * setup.c (optionprompt): allow multi-column, clean up message
4723 about more options, be more robust about user input.
4724 (getdownloadsource): make the mirror URL a macro.
4725 (main): do mounts after done prompting user.
4727 Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
4729 * setup.c (cleanup): Inverse order of deletion stands a better chance
4730 of deleting cygpath.exe. Still seems to suffer from occasional races,
4732 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
4734 (output_file): Defend against an unlikely handle leak.
4735 (main): Don't set up signal handling until we have something special to
4738 Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
4740 * path.c (kill_cygpath): Delete function.
4741 (exit_cygpath): Make more defensive so that it can be called at any
4743 (cygpath_pipe): Don't set up signal here. Do it in main().
4744 * setup.c (istargz): New function.
4745 (recurse_dirs): Look for *.gz pattern rather than *tar.gz since *tar.gz
4746 inexplicably fails on samba mounted partitions. Use istargz to match
4748 (processdirlisting) Use istargz to match tar.gz tail.
4749 (cleanup): Renamed from filedel.
4750 (cleanup_on_signal): New function. Called on CTRL-C.
4751 (main): Record handle of main thread so that it can be suspended when
4752 CTRL-C occurs. Set up cleanup_on_signal signal handler.
4754 Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
4756 * setup.c (do_start_menu): Don't concatenate paths to already built
4759 Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
4761 * path.c (exit_cygpath): Wait for subprocess to exit before returning.
4762 (cygpath_pipe): Don't call exit_cygpath. Let main atexit routine do
4764 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
4766 * setup.c (filedel): Call exit_cygpath here so that we can be assured
4767 that cygpath subprocess has died. This allows us to delete cygpath.exe
4769 (optionprompt): Initialize response to -1 so that second screen of
4770 mirrors will appear.
4771 (get_pkg_stuff): Don't attempt to use HKCLU. Pass root to init_pkgs.
4772 * setup.h: Reflect init_pkgs prototype change.
4774 Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
4776 * pkg.c (init_pkgs): Accept an argument to control what root registry
4778 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
4779 * setup.h: Reflect init_pkgs prototype change.
4781 Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
4783 * error.c (winerror): Respond to gcc warning.
4784 * path.c (cygpath_pipe): Ditto.
4785 * setup.c (filedel): Call sa_cleanup on deleteme.
4786 (create_shortcut): Coerce argument to eliminate compiler warning.
4787 (tarx): Use installed version of cygwin1.dll, overriding tar file name.
4788 (refmatches): New function. Tests if ref is contained in a list of
4789 packages to install.
4790 (filematches): New function. Tests if filename matches one of a list
4791 of packages to install.
4792 (recurse_dirs): Accept list of packages to install. Generalize tar.gz
4793 test to accomodate _tar.gz.
4794 (prompt): Ensure that stdout is flushed prior to asking for input.
4795 (findhref): Initialize variables to quiet a compiler warning.
4796 (processdirlisting): Accept list of packages to install. Special case
4797 cygwin tar file version number.
4798 (downloaddir): Accept list of packages to install.
4799 (downloadfrom): Ditto.
4800 (create_uninstall): Eliminate unneeded variables. Quote arguments to
4802 (do_start_menu): Don't create uninstall bat file if updating or user
4803 specified a list of packages.
4804 (mkmount): Eliminate unneeded variables.
4805 (get_pkg_stuff): New function. Checks for previous unversioned
4807 (main): Accept -u and -f options and package names on the command line.
4808 Use get_pkg_stuff to initialize package information. Umount /etc.
4809 Call recurse_dirs and downloadfrom with list of package to install.
4810 Ensure that all /usr/local directories are created. Output
4811 installation time to setup.log.
4812 * setup.h: Add some prototypes.
4813 * xsystem.c (xcreate_process): Eliminate unneeded variable.
4815 Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
4817 * setup.c (optionprompt): Don't overlap display of already seen options
4819 (geturl): Print name of site which we're connecting to rather than "ftp
4821 (processdirlisting): Avoid URLs that contain a /. or ./ . Is this
4822 test too simplistic?
4823 (do_start_menu): Use pathcat to build path to <root>\bin to avoid
4824 problems when user chooses x:\ as their root.
4825 (main): For now, default to "non-update" mode. Allow -u option to
4828 Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
4831 * setup.c (tarx): Skip already installed or older packages. Report
4832 when a package has been updated.
4833 (processdirlisting): Skip already installed or older packages.
4834 (main): Detect -f option for forced installation. Initialize pkg stuff
4836 * setup.h: Add pkg definitions.
4838 Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
4840 * setup.c (findhref): Return NULL on empty string. Eat any trailing
4842 (processdirlisting): Attempt to limit recursively processing the same
4845 Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
4847 * setup.c (filedel): New function.
4848 (output_file): Keep track of files extracted from setup.exe for
4849 subsequent deletion.
4850 (tarx): Close process handle of child tar process or suffer handle
4852 (getdownloadsource): Close mirror file so that it can be unlinked.
4853 (processdirlisting): Return total number of files extracted.
4854 (main): Initialize array of files to delete. Ensure that files are
4855 closed on exit. Make the directory that setup.exe is started from ==
4856 the directory where temporary files are placed. Issue an error if no
4857 files were found to download.
4858 * xsystem.c (xcreate_process): Close the thread handle. Close the
4859 process handle if we waited for it to exit.
4861 Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
4863 * setup.c (main): Change version number output.
4865 Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
4867 * setup.c (tarx): Use full path name to tar executable.
4868 (main): Build full pathname to tar executable. Create /usr/local/etc
4871 Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
4873 * setup.c (findhref): Change method for scanning for href= to choose
4874 the last one on the line. This is still not foolproof and probably
4875 will need to be changed eventually. Don't abort if no "size" field is
4877 (processdirlisting): Fix boolean algebra.
4879 Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
4881 * main.c (tarx): Add some code for future task of unmounting
4882 directories encountered in tar file.
4884 Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
4886 * setup.c (findhref): Decode file size, when appropriate.
4887 (needfile): New function. Returns 1 when file should be
4889 (processdirlisting): Always download if file size does not
4890 match. Prompt when download fails for some reason.
4891 (getdownloadsource): Accomodate findhref argument changes.
4893 Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
4895 Throughout, use global session handle rather than reinitializing for
4896 each connect. Don't pass session as an argument to setup.c functions.
4897 * setup.c (geturl): Only issue "Connecting to.." message when using
4898 http or first time for ftp since subsequent connections will be fast.
4899 (processdirlisting): Allocate space for "N" when user has specified
4900 "N"ever option so that it can be subsequently freed.
4901 (main): Abort if we can't get the list of mirrors.
4903 Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
4905 * setup.c (main): Umount /bin and /lib.
4907 Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
4909 * setup.c (main): Create an empty /var/run/utmp.
4911 Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
4913 * Makefile.in: Add umount to list of files to include in setup.exe.
4914 * setup.c (xumount): New function for unmounting directories.
4915 (main): Unmount /usr.
4916 (mkmount): Unmount "unix directory" before trying to figure out where
4917 to create the directory.
4919 Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
4921 * setup.c (mkmount): Use xcreate_process to start mount process,
4923 (main): Don't do buffering on stdout or prompts won't be displayed
4924 correctly if running in a cygwin shell with CYGWIN=tty.
4926 Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
4928 * setup.c (main): Remove the CYGWIN environment variable before
4929 starting any cygwin programs.
4931 Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
4933 * setup.c (geturl): Use alternative method for finding filename part of
4935 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
4936 (downloaddir): Unlink file containing dir listing.
4937 (downloadfrom): Ditto.
4939 Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
4941 * setup.c (main): Disallow running setup.exe from the "root".
4943 Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
4945 Use "warning" function, where appropriate, to output warnings.
4946 * setup.c (warning): New function -- outputs warning to console and log
4948 (tarx): Fix index used to reset file protection.
4949 (main): Open the log file earlier so that more stuff can be sent to it.
4951 Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
4953 * setup.c (processdirlisting): Make "N" option a little less aggressive.
4955 Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
4957 * setup.c (tarx): Wait to after tar has completed to reset protections
4958 or suffer races with tar process.
4960 Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
4962 * Makefile.in: Eliminate duplicate -nostdinc from CFLAGS.
4963 * setup.c (create_uninstall): Create the uninstall .bat file in the
4964 "root" so that we can remove the /bin directory. Add bin\cygwin.bat to
4965 list of files to be deleted. Fix directory detection for determining
4966 when to use 'rmdir'.
4967 (do_start_menu): Add /usr/local/bin to the path.
4968 (main): Add slop to files.array allocation so that we don't have to
4969 worry about reallocating the array when it grows too large when doing
4970 some trivial "pushes". Add /tmp and /usr/local/{bin,lib} to list of
4973 Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
4975 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
4978 Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
4980 * path.c (kill_cygpath): New cleanup function.
4981 (exit_cygpath): New cleanup function.
4982 (cygpath_pipe): New function. Sets up cygpath in the background for
4983 translating filenames.
4984 (pathcvt): Use background cygpath for file translation.
4985 * setup.c (tarx): New function. Called to extract tar files, capture
4986 logging output, and translate it to Windows format.
4987 (recurse_dirs): Use 'tarx' function to extract files.
4988 (create_uninstall): Use file list built up by tarx rather than reading
4990 (mkmount): Add ability to mount root.
4991 (main): Track elapsed install time. Mount root.
4992 * starry.h: Add index field to strarry for tracking of tarx's usage of
4994 * xsystem.c (xcreate_process): Return proces handle when not waiting.
4996 Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
4999 (pathfp): New function. Preliminary work for new -f cygpath
5001 * Makefile.in: Add new file.
5002 (pathcvt): Move to new file.
5006 * setup.c (processdirlisting): Always open file in text mode.
5007 (create_uninstall): Ditto.
5008 (getdownloadsource): Ditto.
5011 Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
5013 * xsystem.c: New file.
5014 * Makefile.in: Accomodate new file.
5015 * setup.c (xsystem): Move to new file.
5016 (recurse_dirs): Accept handle to output log file. Don't use ">"
5017 redirection to trap tar output. Use supplied handle instead.
5018 (create_uninstall): Accept FILE pointer to opened log file. Don't
5019 unlink log file here.
5020 (do_start_menu): Accept FILE pointer to pass to create_uninstall.
5021 (main): Open log file here and pass it to various functions. Unlink
5024 Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
5026 Change occurrences of .usr.bin to .bin throughout.
5027 * setup.c (geturl): Increase number of retries to 20. Let user know
5028 what's going on during long connects.
5029 (processdirlisting): Accept "A"lways and "N"ever as update options.
5030 (create_uninstall): Load cygwin1.dll from the current directory rather
5032 (main): Add some expository text.
5034 Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
5036 * Makefile.in: Change method for compressing cygwin1.dll to avoid
5037 creating a cygwin1.dll in the current directory. Ensure the addition
5038 of -nostdinc to MINGW_CFLAGS.
5040 Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
5042 * Makefile.in: Augment clean target.
5044 Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
5046 * README: Added info about non-working mingw implementation
5047 * gzip.exe.gz: Replace with a version from the same build as the other
5049 * tar.exe.gz: Replace with a version from the same build as the other
5051 * mount.exe.gz: Add to repository until, mingw can build setup.
5052 * cygpath.exe.gz: ditto
5053 * cygwin1.dll.gz: ditto
5054 * setup.c: Overwrite /bin and /lib mounts. Generate working shortcut
5055 for Win9x. Display only a screenfull of options at a time. Call all
5056 tools with an absolute path.
5057 * setup.dsp: Restore the carriage returns, MS Developer Studio needs
5062 Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
5064 * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab
5065 cygwin1.dll from ../cygwin subdirectory.
5066 * gzip.exe.gz: Update.
5067 * tar.exe.gz: Update.
5069 Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
5071 * Makefile.in: Use ZLIB variable as a target.
5073 Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
5075 * Makefile.in: Eliminate traces of cygwinisms. Don't link with
5076 libmsvcrt.a. It's unneeded. Build .rc file on the fly from various
5078 * configure.in: Locate correct objcopy.
5079 * configure: Regenerate.
5081 Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
5083 * Makefile.in: New file.
5084 * configure.in: New file.
5085 * configure: New file.
5086 * zlib/Makefile.am: New file.
5087 * zlib/configure.in: New file.
5088 * zlib/aclocal.m4: New file.
5089 * zlib/acinclude.m4: New file.
5090 * zlib/configure: Regenerate from configure.in.
5091 * zlib/Makefile.in: Regenerate from Makefile.am