1 2002-09-22 Max Bowsher <maxb@ukf.net>
3 * IniDBBuilderPackage.cc: Update DEBUG code to current class
6 2002-09-21 Robert Collins <rbtcollins@hotmail.com>
8 * choose.h: Add OnUnattended method.
9 * desktop.cc (DesktopSetupPage::OnInit): Allow fine grained
10 control via command line options.
11 (DesktopSetupPage::OnUnattended): Implement.
12 (DesktopSetupPage::OnMessageApp): Implement.
13 * desktop.h (DesktopSetupPage::OnUnattended): declare.
14 (DesktopSetupPage::OnMessageApp): Ditto.
15 * download.cc (do_download_thread): Support unattended mode.
16 * install.cc (do_install_thread): Ditto.
18 * main.cc (main): Ditto.
19 * net.cc (NetPage::OnUnattended): Ditto.
20 * net.h (NetPage::OnUnattended): Declare.
21 * proppage.cc (PropertyPage::DialogProc): Support unattended mode.
22 * proppage.h (PropertyPage::OnUnattended): Declare.
23 * root.cc (RootPage::OnInit): Support unattended mode.
24 (RootPage::OnUnattended): Implement.
25 * root.h (RootPage::OnUnattended): Declare.
26 * site.cc (register_saved_site): Extract Method from get_saved_sites.
27 (get_saved_sites): Remove common code for adding a site.
28 (SitePage::OnInit): Support unattended mode.
29 (SitePage::OnUnattended): Implement.
30 * site.h (SitePage::OnUnattended): Declare.
31 * source.cc (SourcePage::OnActivate): Support unattended mode.
32 (SourcePage::OnUnattended): Implement.
33 * source.h (SourcePage::OnUnattended): Declare.
34 * splash.h (SplashPage::OnUnattended): Declare.
35 * state.cc (unattended_mode): Declare.
36 * state.h (unattended_mode): Declare.
37 * threebar.h (ThreeBarProgressPage::OnUnattended): New method.
39 2002-09-21 Robert Collins <rbtcollins@hotmail.com>
41 * res.rc: Commit Harry Johnston's dialog caption patch. From July.
43 2002-07-15 Robert Collins <rbtcollins@hotmail.com>
45 * package_version.cc (packageversion::sources): Implement this.
46 * download.cc (do_download_thread): Support multiple files per package.
48 2002-07-15 Robert Collins <rbtcollins@hotmail.com>
50 * package_version.h (packageversion::sources): Support multiple files in
51 a single package version.
52 * package_version.cc (_packageversion::accessible): Ditto.
53 (packageversion::source): Ditto.
55 2002-07-15 Robert Collins <rbtcollins@hotmail.com>
57 * iniparse.y: Implement support for multiple source files for a source
59 * IniDBBuilder.h (IniDBBuilder::buildSourceFile): Ditto.
60 * IniDBBuilderPackage.h (IniDBBuilder::buildSourceFile): Ditto.
61 * IniDBBuilder.cc (IniDBBuilder::buildSourceFile): Ditto.
62 * IniDBBuilderPackage.cc (IniDBBuilder::buildSourceFile): Implement a
65 2002-07-13 Robert Collins <rbtcollins@hotmail.com>
67 * PickPackageLine.cc (PickPackageLine::click): Set requirements for
68 packages under all circumstances - slightly higher overheader, simpler
70 * download.cc (do_download_thread): Correctly download source
72 * package_meta.cc (checkForInstalled): Remove.
73 (checkForUpgradeable): Ditto.
74 (checkForSatisfiable): Ditto.
75 (processOneDependency): Ditto.
76 (packagemeta::set_requirements): Move guts to packageversion.
77 * package_version.cc (checkForInstalled): Copied from package_meta.cc.
78 (checkForUpgradeable): Ditto.
79 (checkForSatisfiable): Ditto.
80 (processOneDependency): Ditto.
81 (packageversion::set_requirements): Ditto.
82 * package_version.h (packageversion::set_requirements): Declare.
84 2002-07-13 Robert Collins <rbtcollins@hotmail.com>
86 * IniDBBuilder.cc (IniDBBuilder::buildBeginBuildDepends): Implement.
87 (IniDBBuilder::buildBeginBinary): Implement.
88 * IniDBBuilder.h (IniDBBuilder::buildBeginBuildDepends): Declare.
89 (IniDBBuilder::buildBeginBinary): Ditto.
90 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildBeginBuildDepends):
92 (IniDBBuilderPackage::buildBeginBinary): Ditto.
93 * IniDBBuilderPackage.h (IniDBBuilderPackage::buildBeginBuildDepends):
95 (IniDBBuilderPackage::buildBeginBinary): Ditto.
96 * inilex.l: Recognise Build-Depends-Indep, [,], >, < and remove
98 * iniparse.y: Full support for parsing a debian Sources file in-line in
100 * package_version.cc (packageversion::binaries): Implement.
101 * package_version.h (packageversion::binaries): Declare list of what
102 packages are created from a given source package.
103 (_packageversion::binaries): Ditto.
105 2002-07-10 Robert Collins <rbtcollins@hotmail.com>
107 * iniparse.y: Add basis for support for parsing a debian Sources file.
110 2002-07-09 Robert Collins <rbtcollins@hotmail.com>
112 Change custom container code for packagedb::packages to STL containers
114 * IniDBBuilderPackage.cc: Ditto.
115 * PickView.cc: Ditto.
118 * download.cc: Ditto.
120 * package_db.cc: Ditto.
121 * package_db.h: Ditto.
122 * Makefile.am: Remove list.h references.
125 2002-07-08 Max Bowsher <maxb@ukf.net>
127 * PickView.cc (PickView::PickView): Set font of package list header to
128 the same as used in the rest of the package list.
130 2002-07-08 Robert Collins <rbtcollins@hotmail.com>
132 * install.cc (NoReplaceOnReboot): New command line option to prevent
133 replacing in use files.
134 (install_one_source): Check the option and use it.
135 * README: Update TODO lists.
137 2002-07-08 Robert Collins <rbtcollins@hotmail.com>
139 * PickCategoryLine.cc: Change bucket to use STL container syntax
141 (PickCategoryLine::paint): Use new Category type syntax.
142 * PickCategoryLine.h: Use STL vectors rather than custom containers
144 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageCategory):
145 Use new add_category syntax.
146 * PickView.cc (PickView::insert_pkg): Use new Category type syntax.
147 (PickView::insert_category): Ditto.
148 (PickView::init_headers): Ditto.
149 * category.cc: Trim obsolete code.
150 * category.h: Replace interconnecting class with a typedef to
151 facilitate leveraging STL maps.
152 * choose.cc (fill_missing_category): Use updated pkg.add_category
154 (default_trust): Use new Category type syntax.
155 (set_view_mode): Ditto.
156 (create_listview): Ditto.
157 * package_db.cc (categories): Ditto.
158 * package_db.h: Update headers list to include needed headers.
159 (packagedb::categories): Replace custom list with STL map.
160 * package_meta.cc: Use new Category type syntax throughout.
161 (packagemeta::add_category): Implement new syntax.
162 * package_meta.h: Remove commented out source.
163 (packagemeta::add_category): Update syntax to decouple interface from
166 2002-07-06 Christopher Faylor <cgf@redhat.com>
168 * site.cc (do_download_site_info_thread): Correct spelling error.
170 2002-07-06 Robert Collins <rbtcollins@hotmail.com>
172 * PickCategoryLine.h: Include required header list.h.
173 * PickPackageLine.cc (PickPackageLine::paint): Adjust to use STL
174 containers for listing of packages per category and vice verca.
175 * PickView.cc (PickView::insert_pkg): Ditto.
176 (PickView::insert_category): Ditto.
177 * String++.h (String::caseless): STL helper to allow trivial containers
178 of Strings with case insensitive comparisons.
179 * category.h: Adjust to use STL containers for listing of packages per
180 category and vice verca.
181 * choose.cc (fill_missing_category): Ditto.
182 (default_trust): Ditto.
183 (ChooserPage::OnNext): Ditto.
184 * package_meta.cc (CategoryPackage::~CategoryPackage): Remove.
185 (packagemeta::packagemeta): Adjust for new category list name.
186 (packagemeta::~packagemeta): Adjust to use STL containers for listing
187 of packages per category and vice verca.
188 (packagemeta::set_action): Ditto.
189 * package_meta.h (CategoryPackage): Remove.
190 (packagemeta): Adjust to use STL containers for listing of packages per
191 category and vice verca.
193 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
195 * io_stream.cc: Use STL containers rather than custom ones.
196 (io_stream::registerProvider): Ditto.
197 (findProvider): Ditto.
199 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
201 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
202 Use STL collections for download site collections.
203 (IniDBBuilderPackage::add_correct_version): Ditto.
204 (IniDBBuilderPackage::process_src): Ditto.
205 * PickPackageLine.cc (PickPackageLine::click): Use the packageversion
206 accessible() call to abstract package availability.
207 * choose.cc (scanAVersion): Use STL collections for download site
209 * download.cc (check_for_cached): Ditto.
210 (download_one): Ditto.
211 * package_meta.cc (packagemeta::set_action): Use the packageversion
212 accessible() call to abstract package availability.
213 * package_source.h: Use STL containers rather than custom containers.
214 (site): Create a == operator to allow STL container use.
215 (packagesource::sites): Use STL containers rather than custom
217 * package_version.cc (_packageversion::accessible): Use STL containers
218 for download site containers.
220 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
222 * LogFile.cc: Use STL containers rather than custom containers.
223 (filedef): Create == and < operators for STL use.
224 (files): Convert to an STL set.
225 (LogFile::setFile): Use STL operations on files.
226 (LogFile::exit): Ditto.
228 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
230 * ini.cc (do_remote_ini): Use STL collection for site collection.
231 * site.cc: Include site.h first to ensure it's parsable standalone.
233 (site_list): Convert to an STL container.
234 (all_site_list): Ditto.
235 (site_list_type::site_list_type): Implement copy constructor.
236 (site_list_type::operator=): Implement assignment operator.
237 (site_list_type::operator ==): Implement.
238 (site_list_type::operator <): Ditto.
239 (save_dialog): Use STL collection calls for site collection.
240 (save_site_url): Ditto.
241 (get_site_list): Ditto.
242 (get_saved_sites): Ditto.
243 (do_download_site_info_thread): Ditto.
244 (SitePage::OnNext): Ditto.
245 (SitePage::PopulateListBox): Ditto.
246 (SitePage::OnMessageCmd): Ditto.
247 * site.h: Use STL vectors instead of custom code.
248 (site_list_type::site_list_type): Declare.
249 (site_list_type::operator=): Ditto.
250 (site_list_type::operator ==): Ditto.
251 (site_list_type::operator !=): Ditto.
252 (site_list_type::operator <): Ditto.
253 (site_list_type::operator <=): Ditto.
254 (site_list_type::operator >): Ditto.
255 (site_list_type::operator >=): Ditto.
256 (site_list): Convert to an STL container.
257 (all_site_list): Ditto.
259 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
261 * choose.cc (default_trust): Check package accessibility before
262 triggering an install. (Suggested by Pavel).
264 2002-07-03 Pavel Tsekov <ptsekov@gmx.net>
266 * compress_gz.cc (compress_gz::construct): Always initialize key members
267 to ensure the destructor does the right thing.
269 2002-07-03 Pavel Tsekov <ptsekov@gmx.net>
271 * filemanip.cc (parse_filename): Do not try to parse empty
273 * package_db.cc (packagedb::packagedb): For each line check if sscanf()
274 extracted good package name and filename.
276 2002-07-03 Robert Collins <rbtcollins@hotmail.com>
278 * package_meta.cc (packagemeta::set_requirements): Automatically select
279 version of dependent packages that satisfies the requirements.
280 Use processOneDependency to trigger the install of those packages.
281 (checkForInstalled): Check that the package remains installed.
282 (processOneDependency): Helper function for dependent packages.
283 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackage): Add more
285 Clear out all current state on new packages.
286 (IniDBBuilderPackage::add_correct_version): Copy the dependency list
289 2002-07-02 Robert Collins <rbtcollins@hotmail.com>
291 * Makefile.am (inilint_SOURCES): Add PackageSpecification sources.
292 nb: inilint is still incomplete, as the packageversion code is not
293 ready for database-less linking.
294 * site.cc (get_site_list): When the same site is reentered by the user
295 replace the old one. (Suggested by John Marshall).
297 2002-07-02 Robert Collins <rbtcollins@hotmail.com>
299 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
300 Clear out package selections when generating implicit source packages.
301 * PackageSpecification.cc (PackageSpecification::satisfies): Implement.
302 (PackageSpecification::_operators::satisfies): Implement.
303 * PackageSpecification.h (PackageSpecification::_operators::satisfies):
304 Worker function for testing versions.
306 2002-07-01 Robert Collins <rbtcollins@hotmail.com>
308 * IniDBBuilder.cc (IniDBBuilder::buildPackageRequirement): Remove.
309 * IniDBBuilder.h (IniDBBuilder::buildPackageRequirement): Ditto.
310 * IniDBBuilderPackage.cc: Use the STL algorithms.
311 Change cpv to cbpv throughout. Adjust -> to ., and use the new accessor
312 functions for the same variable throughout.
313 (IniDBBuilderPackage::IniDBBuilderPackage): Initialise new members.
314 (IniDBBuilderPackage::buildPackage): Use new cygpackage syntax,
315 and set an empty source package.
316 (IniDBBuilderPackage::buildPackageInstall): Use the new source member
317 to record an install package.
318 (IniDBBuilderPackage::buildPackageSource): Move source package logic
319 out from process_src, as it now occurs at separate times.
320 (IniDBBuilderPackage::buildPackageRequirement): Remove.
321 (IniDBBuilderPackage::buildSourceName): Use renamed package
322 specifiation accessor for clarity.
323 (IniDBBuilderPackage::buildSourceNameVersion): Ditto.
324 (IniDBBuilderPackage::add_correct_version): Use STL iterators rather
326 Remove source package references.
327 (IniDBBuilderPackage::process_src): Remove source package code as it's
328 now handled separately.
329 Set Path information before merging versions, to prevent dangling
331 * IniDBBuilderPackage.h (IniDBBuilderPackage::buildPackageRequirement):
333 (IniDBBuilderPackage::cpv): Remove.
334 (IniDBBuilderPackage::cbpv): New generic binary working variable.
335 (IniDBBuilderPackage::cspv): Ditto, but for source packages.
336 (IniDBBuilderPackage::csp): Source package variable for disjoint
338 * Makefile.am (AM_CFLAGS): Remove -Winline to allow stl set code
339 to compile. If it compiles cleanly in gcc 3.1, then reinstate.
340 * PickPackageLine.cc: Adjust packageversion accessors to the new
341 reference calls. (i.e. -> to .) throughout.
342 (PickPackageLine::paint): Use accessible() for clarity.
343 Use new split out source package logic.
344 (PickPackageLine::click): Ditto.
345 * PickView.cc (PickView::init_headers): Adjust packageversion accessors
346 to the new reference calls. (i.e. -> to .) throughout.
347 Use new split out source package logic.
348 * choose.cc: Don't depend on a specific package type.
349 Adjust packageversion accessors to the new reference calls. (i.e. -> to
351 (set_existence): Use accessible () for clarity.
352 (default_trust): Simplify a little.
353 (scanAVersion): Factored out code from scan_downloaded_files for
355 (scan_downloaded_files): Factor out inner loop for clarity.
356 (ChooserPage::OnNext): Don't dump the dependency list,
357 it's parsing is robust now!.
358 * cygpackage.cc (createInstance): Use a factory method to create new
360 (cygpackage::cygpackage): Make this private for use by the factory.
361 (cygpackage::setCanonicalVersion): Renamed from set_canonical_version.
362 Remove key usage as it's obsolete.
363 * cygpackage.h (cygpackage): Inherit from _packageversion, not
365 (cygpackage::createInstance): New factory.
366 (cygpackage::cygpackage): Make private.
367 * desktop.cc (make_passwd_group): Use new packageversion reference.
368 * download.cc (do_download_thread): Use changeRequested() for clarity.
369 Use new packageversion reference calls.
370 * iniparse.y (REQUIRES): Reuse the packageList code and dump the one-off
372 * install.cc: Adjust -> to ., and use the new accessor functions for
373 packageversion throughout.
374 * package_db.cc: Adjust -> to ., and use the new accessor functions for
375 packageversion throughout.
376 (packagedb::packagedb): Use the new cygpackage factory.
377 (packagedb::flush): Leverage String to remove buffer overflow chance in
379 (packagedb::findBinary): Find a binary meta package that has a version
380 matching a given specification.
381 (packagedb::findSource): Ditto, but for source.
382 * package_db.h (packagedb::findBinary): Declare.
383 (packagedb::findSource): Ditto.
384 * package_meta.cc: Adjust packageversion accessors to the new
385 reference calls. (i.e. -> to .) throughout.
386 Include the package_meta header first to ensure it parses standalone.
387 Use the STL algorithms.
388 (packagemeta::packagemeta): Create a copy constructor to allowing
389 cloning binary package metadata to source package metadata.
390 (packagemeta::~packagemeta): Use the STL coleltion code rather than
391 custom collection code.
392 (packagemeta::add_version): Ditto.
393 (packagemeta::set_installed): Ditto.
394 (packagemeta::SDesc): Ditto.
395 (hasSDesc): Helper function for find_if.
396 (checkForInstalled): Ditto.
397 (checkForUpgradeable): Ditto.
398 (checkForSatisfiable): Ditto.
399 (packagemeta::action_caption): Update for split out source packages.
400 (packagemeta::set_action): Ditto.
401 (packagemeta::set_requirements): Support multi-valued dependency
402 lists - a|b & c|d - with versioned package specifications.
403 (packagemeta::accessible): Helper member to improve abstraction.
404 (packagemeta::sourceAccessible): Ditto.
405 * package_meta.h: Adjust packageversion accessors to the new
406 reference calls. (i.e. "->" to "." and"*" to "" ) throughout.
407 (packagemeta::packagemeta): Declare copy constructor.
408 Remove self initialising members.
409 (packagemeta::set_action): Update parameters for new packageversion.
410 (packagemeta::trustp): Ditto.
411 (packagemeta::versions): Becomes an STL set.
412 * package_source.h (packagesource::Cached): Const correctness change.
413 * package_version.cc: Rewrite the packageversion interface to remove
414 the cygpackage nonvirtual members, and provide a copy by value,
415 pointer semantics reference counting wrapper class to ease use and
416 comparison of packageversions.
417 Change existing packageversion class to _packageversion throughout.
418 (_defaultversion): A trivial concrete class to prevent specialcasing
419 the default constructor for packageversion;
420 (packageversion::packageversion): Implement.
421 (packageversion::~packageversion): Ditto.
422 (packageversion::operator=): Ditto.
423 (packageversion::operator !): Ditto.
424 (packageversion::operator bool): Ditto.
425 (packageversion::operator ==): Ditto.
426 (packageversion::operator !=): Ditto.
427 (packageversion::operator <): Ditto.
428 (packageversion::Name): Ditto.
429 (packageversion::Canonical_version): Ditto.
430 (packageversion::setCanonicalVersion): Ditto.
431 (packageversion::getfirstfile): Ditto.
432 (packageversion::getnextfile): Ditto.
433 (packageversion::SDesc): Ditto.
434 (packageversion::set_sdesc): Ditto.
435 (packageversion::LDesc): Ditto.
436 (packageversion::set_ldesc): Ditto.
437 (packageversion::sourcePackage): Ditto.
438 (packageversion::sourcePackageSpecification): Ditto.
439 (packageversion::setSourcePackageSpecification): Ditto.
440 (packageversion::depends): Ditto.
441 (packageversion::predepends): Ditto.
442 (packageversion::recommends): Ditto.
443 (packageversion::suggests): Ditto.
444 (packageversion::replaces): Ditto.
445 (packageversion::conflicts): Ditto.
446 (packageversion::provides): Ditto.
447 (packageversion::picked): Ditto.
448 (packageversion::pick): Ditto.
449 (packageversion::changeRequested): Ditto.
450 (packageversion::uninstall): Ditto.
451 (packageversion::source): Ditto.
452 (packageversion::accessible): Ditto.
453 (_packageversion::sourcePackage): Ditto.
454 (_packageversion::accessible): Ditto.
455 (_packageversion::changeRequested): Ditto.
456 * package_version.h: Rewrite the packageversion interface to remove
457 the cygpackage nonvirtual members, and provide a copy by value,
458 pointer semantics reference counting wrapper class to ease use and
459 comparison of packageversions.
460 Change existing packageversion class to _packageversion throughout.
461 (Dependency): Remove.
462 (packageversion): New wrapper class.
463 (_packageversion): Renamed from packageversion.
464 (_packageversion::setCanonicalVersion): New method.
465 (_packageversion::sourcePackage): Ditto.
466 (_packageversion::sourcePackageSpecification): Ditto.
467 (_packageversion::setSourcePackageSpecification): Ditto.
468 (_packageversion::changeRequested): Ditto.
469 (_packageversion::bin): Rename to source.
470 (_packageversion::src): Remove.
471 (_packageversion::accessible): New method.
472 (_packageversion::references): Allow reference counting.
473 (_packageversion::sourceVersion): Cached the best-match source
476 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
478 * compress_bz.h (compress_bz::position): Track how much has been read.
479 * compress_bz.cc (compress_bz::compress_bz): And initialise it.
480 (compress_bz::read): Track amount read by the client.
481 (compress_bz::tell): And report it when asked.
483 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
485 * Makefile.am (snapshot): Automate snapshot creation some more.
487 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
489 * msg.cc (msg): Use vsnprintf to avoid buffer overflows.
491 * ini.cc (fprintf): Ditto.
492 * log.cc (log): Ditto.
493 * package_db.cc (packagedb::sourcePackages): Split out source packages
494 from binary packages.
495 * package_db.h: Ditto.
497 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
499 * PackageSpecification.h: New file. Abstracts the ability to refer
500 to another package, by name, or name and version.
501 * PackageSpecification.cc: Ditto.
502 * IniDBBuilder.cc (IniDBBuilder::buildPackageInstall): Simplify.
503 (IniDBBuilder::buildPackageSource): Ditto.
504 (IniDBBuilder::buildBeginDepends): New method for versioned
506 (IniDBBuilder::buildBeginPreDepends): Likewise, for dependencies to be
507 satisfied before pre-install.
508 (IniDBBuilder::buildPriority): New method, for getting the package
510 (IniDBBuilder::buildInstalledSize): How much disk space does it need?
511 (IniDBBuilder::buildMaintainer): Who maintains the package?
512 (IniDBBuilder::buildArchitecture): What platform is it for?
513 (IniDBBuilder::buildInstallSize): How big is the binary download?
514 (IniDBBuilder::buildInstallMD5): Whats the MD5 on the binary?
515 (IniDBBuilder::buildSourceMD5): Whats the MD5 on the source package?
516 (IniDBBuilder::buildBeginRecommends): What other packages are
517 recommended with this one?
518 (IniDBBuilder::buildBeginSuggests): And suggested?
519 (IniDBBuilder::buildBeginReplaces): What packages does this replace?
520 (IniDBBuilder::buildBeginConflicts): And collide with?
521 (IniDBBuilder::buildBeginProvides): What virtual packages (or obsolete
522 package names) does this provide?
523 (IniDBBuilder::buildDescription): Grab a multi line description one
525 (IniDBBuilder::buildSourceName): What source package should be used to
526 install the source for this binary package?
527 (IniDBBuilder::buildSourceNameVersion): Is a specific version needed?
528 (IniDBBuilder::buildPackageListAndNode): Add another AND clause to a
529 list of package specifications.
530 (IniDBBuilder::buildPackageListOrNode): Add another OR clause.
531 (IniDBBuilder::buildPackageListOperator): Add a versioning operator
532 to the current specification.
533 (IniDBBuilder::buildPackageListOperatorVersion): What version does the
535 * IniDBBuilder.h: Declare all the IniDBBuilder.cc changes.
536 * IniDBBuilderPackage.cc: As for IniDBBuilder.cc.
537 (IniDBBuilderPackage::IniDBBuilderPackage): Iniitialize new members.
538 (IniDBBuilderPackage::process_src): Streamline and split out
540 (IniDBBuilderPackage::setSourceSize): From process_src.
541 * IniDBBuilderPackage.h: Declare the IniDBBuilderPackage.cc changes.
542 (IniDBBuilderPackage::currentSpec): Track the in-progress specifiation.
543 (IniDBBuilderPackage::currentOrList): Track the current Or list.
544 (IniDBBuilderPackage::currentAndList): Track the current And list.
545 * IniParseFeedback.cc (IniParseFeedback::progress): Provide completion
547 (IniParseFeedback::iniName): Tell what ini filename we are currently
549 * IniParseFeedback.h: Declare IniParseFeedback.cc changes.
550 * IniParseFindVisitor.cc (IniParseFindVisitor::IniParseFindVisitor):
551 Make the feedback object non-const to allow mutating methods which are
552 needed when the object has state.
553 (IniParseFindVisitor::visitFile): Tell the caller the name of each
555 Initialise the parser with the feedback object to allow it to tell of
557 * IniParseFindVisitor.h: Declare IniParseFindVisitor.cc changes.
558 * Makefile.am (inilinst_SOURCES): Add more requisite classes.
559 (setup_SOURCES): Add the new PackageSpecification sources.
560 * ScanFindVisitor.cc (ScanFindVisitor::visitFile): Use the new
561 builder syntax to setup binary package details.
562 * choose.cc: Use the LogSingleton calls throughout.
563 * configure.in: Create the INILINT substitution correctly for recent
564 autotool configurations.
565 * cygpackage.cc (cygpackage::getfirstfile): Return an empty String
566 rather than a string built from an int. Thanks to Pavel Tsekov for
568 (cygpackage::getnextfile): Ditto.
569 * download.cc: Use LogSIngletion calls throughout.
570 (validateCachedPackage): A refactoring of the
571 check_for_cached code to eliminate duplciation.
572 (check_for_cached): Use validateCachedPackage to check packages.
573 * ini.cc (GuiParseFeedback): Provide gui feedback on ini name and
575 (do_remote_ini): Ditto.
576 * ini.h (ini_init): Pass a IniParseFeedback to the parser, to allow
578 * inilex.l: Identify new symbols - operators, and multi line plain text.
580 * inilintmain.cc (show_help): Provide basic infomation on inilint.
581 * iniparse.y: Adjust for the new builder syntax, and process debian
583 * io_stream_file.cc: Always include mkdir.h.
584 * list.h: Factor index location into a private routine.
585 (list::findindex): Implement this.
586 * mkdir.cc (mkdir_p): Make the use of WIN32 code conditional on mingw
587 builds. NB: This breaks cygwin build functionality still.
588 * package_meta.cc: Use the LogSingleton calls throughout.
589 (packagemeta::set_requirements): Adjust for object changes in
591 * package_meta.h (packagemeta::packagemeta): Initialise new members.
592 (packagemeta::architecture): What platform does this package run on?
593 This may need to move in the future to a per packagefile object.
594 (packagemeta::priority): What priority does this package have?
595 * package_source.h (packagesource::packagesource): Initialise new
597 (packagesource::installedSize): How much space does the package need?
598 (packagesource::setInstalledSize): Tell the amount.
599 (packagesource::_installedSize): And store it.
600 * package_version.cc (packageversion::sourcePackage): return the
602 (packageversion::setSourcePackage): And set it.
603 * package_version.h: Declare the package_version.cc changes.
604 (packageversion::depends): New package specification AND list.
605 (packageversion::predepends): Ditto.
606 (packageversion::recommends): Ditto.
607 (packageversion::suggests): Ditto.
608 (packageversion::replaces): Ditto.
609 (packageversion::conflicts): Ditto.
610 (packageversion::provides): Ditto.
611 (packageversion::sourcePackage): What source package is needed?
612 * threebar.cc (ThreeBarProgressPage::SetText4): Set the label beside
614 * threebar.h: Declare the threebar.cc change.
616 2002-06-27 John Marshall <johnm@falch.net>
618 * res.rc (SETUPINI_MISSING): Make trailing spaces visible.
619 * site.cc (SitePage::OnMessageCmd): Ditto
621 2002-06-15 Robert Collins <rbtcollins@hotmail.com>
623 * nio-ie5.cc (NetIO_IE5::NetIO_IE): Allow cached data.
625 2002-06-15 Robert Collins <rbtcollins@hotmail.com>
627 * package_meta.cc (packagemeta::set_action): When installing packages
628 with no binaries, choose the source package.
630 2002-06-10 Robert Collins <rbtcollins@hotmail.com>
632 * IniParseFindVisitor (IniParseFindVisitor::visitFile): Apply Max
633 Bowshers fix for the crash with a root level setup.ini.
634 * README: Update todos.
636 2002-05-26 Ralf Habacker <ralf.habacker@freenet.de>
638 * archive_tar.cc (archive_tar::next_file_name()): fixed broken
639 GNU long name extension support.
641 2002-05-27 Robert Collins <rbtcollins@hotmail.com>
643 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Don't
644 unescape 0 length strings.
646 2002-05-20 Robert Collins <rbtcollins@hotmail.com>
648 * package_meta.cc (packagemeta::set_action): Don't allow reinstall
649 when local with no cached file, and install the default source if the
650 default version has no binary.
652 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
654 * IniDBBuilderPackage.cc (IniDBBuilderPackage::IniDBBuilderPackage): New
656 (IniDBBuilderPackage::buildVersion): Provide a warning when a newer
657 setup version created the ini file.
658 * IniDBBuilderPackage.h (IniDBBuilderPackage::IniDBBuilderPackage): New
660 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Use the new
662 * IniParseFindVisitor.h (IniParseFindVisitor::IniParseFindVisitor):
663 Require a feedback strategy.
664 * Makefile.am (setup_SOURCES): Add IniParseFeedback sources.
665 * Makefile.in: Regenerate.
667 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
669 * io_stream_file.cc (io_stream_file::remove): Use the SetFileAttributes
670 trick to delete read only files.
671 * io_stream_cygfile.cc (io_stream_cygfile::remove): Use file:// to
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 * Makefile.am (release): Tweak to be more helpful.
684 * Makefile.in: Regenerate.
686 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
688 * choose.cc (scan_downloaded_files): When a non-installed version
689 has neither bin nor src cached files for local installs,
690 remove the version from availability.
692 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
694 * ini.cc (do_remote_ini): Save uncompressed ini's correctly.
696 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
698 * rsync: New support library, contains librsync. This is not (yet)
700 * configure.in: --with-rsync to enable rsync support. (Not complete).
701 * Makefile.am: Enable building with rsync.
702 * Makefile.in: Regenerate.
704 * IniDBBuilder.cc (IniDBBuilder::buildPackageInstall): Pass the md5 as
706 (IniDBBuilder::buildPackageSource): Ditto.
707 * IniDBBuilder.h: Ditto.
708 * IniDBBuilderPackage.cc: Ditto.
709 * IniDBBuilderPackage.h: Ditto.
710 * FindVisitor.cc: New file.
711 * FindVisitor.h: New file, interface for visiting a file system
713 * IniParseFindVisitor.cc: New file.
714 * IniParseFindVisitor.h: New file, concrete FindVisitor that parses
716 * README: Update TODO's.
717 * String++.cc (String::String): New constructor for <string> inter-
719 (String::substr): New method.
721 * choose.cc (scan2): Remove.
722 (scan_downloaded_files): Simplify.
723 * dialog.h: Include parsing pre-requirements.
724 * download.cc (check_for_cached): Fullname was used incorrectly - fix.
725 * filemanip.cc (parse_filename): -src packages where incorrectly parsed.
726 * find.cc: Rewrite. Now uses a Visitor pattern and is re-entrant.
728 * fromcwd.cc: Remove unneeded includes.
729 (is_test_version): Remove.
730 (found_file): Remove.
731 (SetupFindVisitor): Trivial visitor to detect setup.ini's.
733 (do_fromcwd): Remove commented code that has be replaced elsewhere.
734 * ini.cc (local_ini): Remove.
735 (findBuilder): Remove.
736 (find_routine): Remove.
737 (do_local_ini): Use new IniParseFindVisitor.
738 * iniparse.y: Typecase MD5 arrays, as we know they are allocated as
740 * postinstall.cc: Remove non-core includes.
741 (run_script_in_postinstall): Remove.
742 (RunFindVisitor): Trivial Visitor, runs each found script.
743 (do_postinstall): Use new find syntax.
745 2002-05-14 Christopher Faylor <cgf@redhat.com>
747 * ini.cc (find_routine): Don't clear buffer it it's NULL.
749 2002-05-14 Christopher Faylor <cgf@redhat.com>
751 * filemanip.h (trail): Declare.
752 * filemanip.cc (trail): New function.
753 (find_tar_ext): Use trail() instead of strstr().
754 * fromcwd.cc (check_ini): Ditto.
755 * ini.cc (find_routine): Ditto. Don't tack local_dir to path since it
756 should now be fully qualified. Set ini_filename. Reset error_buf and
757 error_count for any subsequent ini file parsing.
758 (ini_filename): New static variable for parse error reporting.
759 (yyerror): Use full path of setup.ini in error message. Subtract one
760 from line number if at bol.
761 * find.cc (found_part): Eliminate.
762 (find_sub): Call for_each with full path found rather than just file
764 (find): Don't calculate found_part.
765 * inilex.l (ini_init): Flush input buffer and reset line number.
766 (yybol): New function. Exports YY_AT_BOL.
767 * iniparse.y: Increase stack depth to allow more tokens to be processed.
768 (yyparse): Remove newline from error condition to allow subsequent
769 per-line error processing to proceed normally.
771 2002-05-14 Christopher Faylor <cgf@redhat.com>
773 * find.cc (find_sub): Be more defensive in preserving trailing parts of
774 components when doing recursive directory searches or calling user
776 * ini.cc (find_routine): Don't assume that any path name with
777 "setup.ini" in it is actually a setup.ini file. Only honor trailing
778 components. Copy path argument to temporary storage when unescaping
779 to prevent nuking of argument.
781 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
783 * CONTRIBUTORS: New file.
785 2002-04-02 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
787 * choose.cc: Run indent.
788 (nextbutton): Remove static variable.
789 (default_trust): Remove use of nextbutton.
790 (set_view_mode): Ditto.
791 (create_listview): Add IDC_CHOOSE_PREV and IDC_CHOOSE_NEXT to ta[] so
792 rbset() sets the prev/next/curr radio buttons properly.
793 (dialog_cmd): Delete function.
794 (dialog_proc): Delete function. Move WM_INITDIALOG functionality to
796 (do_choose): Delete function. Move pre-DialogBox() code to
797 ChooserPage::OnInit(), post-DialogBox() code to ChooserPage::OnNext.
798 (WM_APP_START_CHOOSE): Remove define.
799 (WM_APP_CHOOSE_IS_FINISHED): Remove define.
800 (do_choose_thread): Delete function.
801 (ChooserPage::OnActivate): Delete method.
802 (ChooserPage::OnMessageApp): Delete method.
803 (ChooserPage::OnInit): New method.
804 (ChooserPage::OnNext): New method.
805 (ChooserPage::OnBack): New method.
806 (ChooserPage::OnMessageCmd): New method.
807 * choose.h: Run indent.
808 (ChooserPage::OnMessageApp): Delete declaration.
809 (ChooserPage::OnActivate): Ditto.
810 (ChooserPage::OnMessageCmd): New declaration.
811 (ChooserPage::OnInit): Ditto.
812 (ChooserPage::OnNext): Ditto.
813 (ChooserPage::OnBack): Ditto.
814 * desktop.cc (DesktopSetupPage::OnBack): Replace use of IDD_CHOOSER
816 * fromcwd.cc (do_fromcwd): Replace use of IDD_CHOOSER with IDD_CHOOSE.
817 * ini.cc (do_ini_thread): Replace use of IDD_CHOOSER with IDD_CHOOSE.
818 * res.rc (IDD_CHOOSE): Remove dialog template.
819 (IDD_CHOOSER): Alter dialog template to fit wizard size and format.
821 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
823 * LogFile.cc (endLog): Work around an apparent libg++-3 bug causing
824 corrupt log file entries.
825 * geturl.cc: Convert to the new LogSingleton logging.
827 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
829 * ini.cc (do_remote_ini): Use setup.bz2 if it exists in preference to
832 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
834 * geturl.h: Declare getUrlToStream.
835 * geturl.cc (getUrlToStream): New function.
836 (get_url_to_membuf): Refactor to use getUrlToStream.
838 2002-05-11 Robert Collins <rbtcollins@hotmail.com>
840 * Makefile.am: Add a release target to automate some of the routine
842 * Makefile.in: Regenerate.
844 2002-05-11 Robert Collins <rbtcollins@hotmail.com>
846 * choose.cc (scan_downloaded_files): On local installs remove all
847 mirror sites if no cached copy of a package is found.
849 2002-05-10 Robert Collins <rbtcollins@hotmail.com>
851 * Makefile.in: Regenerate.
852 * iniparse.y: Use left recursion, not right in the lines rule to
853 avoid stack overflows.
854 * README: Update TODO's.
855 * io_stream_file.cc: Native builds need to include sys/stat.h
857 2002-05-06 John Marshall <jmarshall@acm.org>
859 * site.cc (SitePage::OnMessageCmd): recalculate navigation
860 button activation when "Add" is pressed.
861 (SitePage::CheckControlsAndDisableAccordingly): tweak comment.
863 2002-05-07 Robert Collins <rbtcollins@hotmail.com>
865 * Makefile.am (inlint_SOURCES): Add conditional objects to inilint
866 depending on platform.
868 * configure.in: Set conditional MINGWTARGET if compiling against mingw
870 * Makefile.in: Regenerate.
872 * io_stream_file.cc: Only use win32 calls when building for mingw.
874 2002-05-05 Robert Collins <rbtcollins@hotmail.com>
876 * Makefile.am (noinst_PROGRAMS): Make inilint configurable.
877 * configure.in: Ditto.
878 Fix incorrect header checking syntax.
879 * aclocal.m4: Regenerate.
880 * configure: Regenerate.
881 * Makefile.in: Regenerate.
882 * io_stream.cc: Remove platform specific and provider specific code.
883 (io_stream::registerProvider): New method, registers a Url provider with
885 Make all methods consistently throw invalid_argument exceptions when
886 a provider that is requested is not present.
887 (findProvider): New private function, finds a provider.
888 * io_stream.h: Declare io_stream::registerProvider.
889 * io_stream_cygfile.cc: Create a Provider class to register with
891 * io_stream_file.cc: Ditto.
892 * archive.cc: Remove unneeded includes.
893 * archive_tar.cc: Remove unneeded includes.
894 * archive_tar.h: Add required include.
895 * archive_tar_file.cc: Remove unneded includes.
896 * choose.cc: Remove unneeded includes:
898 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
900 * io_stream.cc: Use the new log interface thruout.
902 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
904 * log.cc (log): Reimplement via LogSingleton.
906 (exit_setup): Remove.
907 * log.h (log_save): Remove.
908 (exit_setup): Remove.
909 * LogSingleton.cc: New file.
910 * LogSingleton.h: New file.
911 * LogFile.cc: New file.
912 * LogFile.h: New file.
913 * Makefile.am (inilint_SOURCES): Add the new log interface.
914 (setup_SOURCES): Add the new log interface and the concrete File
916 * Makefile.in: Regenerate.
917 * archive.cc: Use the new log interface thruout.
918 * archive_tar.cc: Ditto.
920 * dialog.cc (fatal): Use the new log interface.
921 * ini.cc (do_ini_thread): Use the log interface to exit.
922 * isntall.cc (do_install_thread): Ditto.
923 * netio.cc (auth_cmd): Ditto.
924 * msg.cc (fatal): Ditto.
925 * localdir.cc (save_local_dir): Save to different files depending on
926 the mode, and if a root dir exists.
928 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
930 * IniDBBuilder.cc: New file.
931 * IniDBBuilder.h: New file.
932 * IniDBBuilderPackage.cc: New file.
933 * IniDBBuilderPackage.h: New file.
934 * PackageTrust.h: New file.
935 * IniState.h: Remove, wasn't thought out well enough.
936 * Makefile.am (inilint_SOURCES): Add more requirements.
937 (setup_SOURCES): Add new Builder base and concrete classes.
938 * Makefile.in: Regenerate.
939 * String++.cc (String::String): Implement int contructor.
940 * String++.h (String): Declare int constructor.
941 * archive_tar.cc (archive_tar::next_file_name): Return String() when
943 * archive_tar.h (archive_tar_file): Remove get_next_filename method,
945 * ini.cc: Replace IniState wuth IniDBBuilderPacakge.
946 (find_routine): Use new IniDBBuilder to configure the parser.
947 (do_local_ini): Ditto.
948 (do_remote_ini): Ditto.
949 * ini.h: Use IniDBBuilder to initialise parsing.
950 * inilex.l (MD5): Parse the MD5 string correctly, we had the nibbles
952 (ini_init): Use an IniDBBuilder rather than static variables.
953 * iniparse.y: Hand off all the object creation to a builder, rather
954 than hardcoding the behaviour. This allows run-time configured
956 * io_stream_cygfile.h (io_stream_cygfile): Remove get_next_filename
957 method, it's not needed.
958 * io_stream_file.h (io_stream_file): Ditto.
959 * mount.cc (cygpath): Return String() for missing mounts.
960 * package_meta.cc (packagemeta::SDesc): Return String() for blank
962 * package_meta.h (trusts): Remove - replaced by PackageTrust.h.
963 (packagemeta::packagemeta): Fix incorrect syntax in String constructor
965 * cygpackage.cc (cygpackage::cygpackage): Fix incorrect syntax in
966 String constructor usage.
967 * site.h (site_list_type): Ditto.
969 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
971 * String++.h: Declare a << operator that accepts String objects.
972 * String++.cc: We need iostream for..
973 (operator <<): this. Provide a << operator that accepts String objects.
974 * ini.cc (yyerror): Remove the "C" classifier - it's not needed.
975 Change from vargs to a String parameter.
976 * inilintmail.cc: Remove the gui related headers.
977 (yyerror): Implement this for parsing.
978 * iniparse.y: Use the new yyerror syntax.
980 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
982 * Makefile.am: Add IniState.h.
983 * Makefile.in: Regenerate.
984 * IniState.h: New file.
985 * choose.cc: Don't include ini.h - it's not needed.
986 * configure: Regenerate.
987 * desktop.cc: Don't include ini.h - it's not needed.
988 * download.cc: Ditto.
990 * ini.cc: Use IniState.h to track each parsing calling.
991 (find_routine): Ditto.
992 (do_remote_ini): Ditto.
993 (do_ini_thread): Ditto.
994 * ini.h (ini_init): Adjust parameters to include state object.
995 * inilex.l: Declare parser state variable.
996 (ini_init): Adjust parameters to include state object.
997 * iniparse.y: Remove obsolete setup_timestamp and setup_version
999 (setup_header): Use new state variable to track time and version.
1000 (add_correct_version): Ditto.
1001 * install.cc: Don't include ini.h - it's not needed.
1003 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
1005 * nio-files.cc (NetIO): Use io_stream syntax for get_file_size.
1006 * io_stream_file.cc: Don't include filemanip.h.
1007 (io_stream_file::get_size): Implement here to remove filemanip
1009 * io_stream_cygfile.cc: Don't include filemanip.h.
1010 (io_stream_cygfile::get_size): Implement here to remove filemanip
1012 Implement a stat based version for when win32 is not available.
1013 * filemanip.h (get_file_size): Return size_t - it's more appropriate.
1014 * filemanip.cc: Don't include win32.h - be platform independent.
1015 Include strings.h and io_stream.h as part of that.
1016 (get_file_size): Leverage io_streams and remove win32 implementation.
1017 * download.cc (check_for_cached): Use io_stream syntax for
1019 (download_one): Ditto.
1021 2002-05-02 Robert Collins <rbtcollins@hotmail.com>
1023 * configure.in: Correct a typo in last change.
1024 * configure: Regenerate.
1025 * Makefile.in: Regenerate.
1027 2002-05-02 Robert Collins <rbtcollins@hotmail.com>
1029 * configure.in: Check for string.h and string.
1030 * configure: Regenerate.
1031 * Makefile.in: Regenerate.
1033 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
1035 * res.rc (IDD_SPLASH): Remove white box.
1037 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
1039 Oops! forgot to list these in the last checkin.
1040 * inilintmain.cc: New file.
1041 * md5.h: New file - imported md5 source, BSD style licence.
1042 * md5.cc: New file - imported md5 source, BSD style licence.
1043 * Exception.cc: New file.
1044 * Exception.h: New file.
1045 * MD5++.cc: New file.
1046 * MD5++.h: New file.
1048 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
1050 * Makefile.am (AM_CFLAGS): Remove -mwindows, it's a linker flag.
1051 Remove -fno-rtti, we need it for exceptions.
1052 (AM_CXXFLAGS): Ditto.
1053 (WARNONLY_CFLAGS): Ditto.
1054 (EXTRA_PROGRAMS): Add with initial linter sources - not functional yet.
1055 (setup_LDFLAGS): Add and set to -mwindows.
1056 (setup_SOURCES): Add new sources.
1057 * Makefile.in: Regenerate.
1058 * README: Update TODO.
1059 * choose.cc (scan_downloaded_files): Use ini information if it's
1061 * configure: Regenerate.
1062 * download.cc (check_for_cached): Make reusable from elsewhere.
1063 Throw exceptions on errors (as opposed to failures).
1064 Check MD5 sum when it's known.
1065 (download_one): Never force a download.
1066 Handle corrupt package exceptions.
1067 * ini.cc (find_routine): Reverse escape the URL to correctly identify
1069 * inilex.l (MD5): Provide a parsing rule (note: lowercase is required).
1070 * iniparse.y: Allow calculation of MD5 sums, and allow src only
1072 (process_src): New helper function.
1073 * isntall.cc (install_one_source): Check MD5 sums when possible.
1074 Throw exceptions on errors.
1075 (do_install_thread): Handle exceptions for installation calls.
1076 * package_source.h: Store MD5 information.
1077 * propsheet.cc (PropSheet::Create): Add a useful comment.
1078 * res.rc (IDS_INSTALL_ERROR): Define.
1079 (IDS_CORRUPT_PACKAGE): Define.
1080 * resource.h (IDS_INSTALL_ERROR): Define.
1081 (IDS_CORRUPT_PACKAGE): Define.
1082 * rfc1738.cc (rfc1738_unescape_part): Implement.
1083 * rfc1738.h (rfc1738_unescape_part): Declare.
1085 2002-04-29 Robert Collins <rbtcollins@hotmail.com>
1087 * Makefile.am: Remove dependecy rules that automake emits.
1088 Correct badly copied dependency info for manually compiled files.
1089 (setup_SOURCES): Add all used headers.
1090 (EXTRA_DIST): Include non compilate but required sources.
1091 (setup_LDADD): Remove mingw32, it is autodetected.
1092 * Makefile.in: Regenerate.
1093 * String++.h: sys/types is a system header.
1094 * choose.cc (do_choose_thread): Make into a Win32 thread routine.
1096 (ChooserPage::OnMessageApp): Use Win32 threads. (_beginthread is not
1098 * configure: Regenerate.
1099 * configure.in: Check for mingw32/cygwin specific headers and libraries.
1100 * cygpackage.h: Include the win32.h header to get correct macro
1101 definitions in all situations.
1102 * download.cc (do_download_reflector): Make into a Win32 thread routine.
1104 (do_download): Use Win32 threads.
1106 * install.cc: Ditto.
1107 * (WinMain): Adjust to build valid command line using application
1108 under both mingw32 and cygwin.
1109 * mount.cc (set)cygdrive_flags): Create new system flags if the
1110 user requests system and the value does not exist.
1111 * nio-http.cc: Define a _strnicmp for cygwin.
1112 * package_db.cc: Include <errno.h> if it exists.
1113 * site.cc (do_download_site_info_thread): Make into a Win32 thread
1116 (do_download_site-Info): Use Win32 threads.
1117 * state.cc: Explicity declare variables to avoid header conflicts
1118 caused by '#define extern" on cygwin.
1119 * win32.h: Include <alloca.h> if it exists.
1120 (_MAX_PATH): Define as MAX_PATH when not defined by windows.h.
1121 (_access): Define as access if not defined by windows.h.
1123 2002-04-27 Robert Collins <rbtcollins@hotmail.com>
1125 * compress_gz.cc (compress_gz::error): EOF is not an error condition.
1127 2002-04-27 Robert Collins <rbtcollins@hotmail.com>
1129 * Makefile.am: Add libgetopt++ to the subdirs list.
1130 Search the libgetopt++ header directory.
1131 Link against libgetopt++.la.
1132 (setup_SOURCES): Remove GetOption.cc and getopt.c and Option.cc.
1133 (setup_LDADD): Explicitly include res.o.
1134 * Makefile.in: Regenerate.
1135 * aclocal.m4: Regenerate.
1136 * bootstrap.sh: Call libtoolize.
1137 * configure: Regenerate.
1138 * configure.in: Add libtool support and configure libgetopt++.
1139 * desktop.cc (NoShortcutsOption): Turn into a BoolOption.
1140 (DesktopSetupPage::OnInit): Use the simpler syntax.
1141 * desktop.h: Remove dependency on Option.h, and remove NoShortcustOption
1143 * main.cc: Include getopt++/GetOption.h.
1144 (main): Use simpler syntax.
1148 * GetOption.h: Remove.
1149 * GetOption.cc: Remove.
1151 * Option.cc: Remove.
1153 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
1155 * Makefile.am: Add zlib and bz2lib to SUBDIRS.
1157 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
1159 * aclocal.m4: New file, cached macros.
1160 * bootstrap.sh: New file, calls required autotools in appropriate
1162 * Makefile.am: New file, input Makefile for automake.
1163 * Makefile,in: Now a generated file - regenerate.
1164 * configure: Regenerate.
1165 * configure.in: Add automake support.
1166 * inilex.l: Change VERSION to PACKAGEVERSION to avoid a collision with
1167 automake's VERSION define.
1168 * iniparse.y: Ditto.
1170 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
1172 * cdefs.h: New file, imported to allow getopt.c to build without
1174 * getopt.h: New file, imported to allow building without cygwin headers.
1176 * bz2lib: New directory, contains copy of bz2lib.
1177 * cfgaux: New directory, contains autotool helper scripts.
1178 * Makefile,in: Adjust library and target definitions for building
1179 outside the sourceware tree.
1180 * compress_bz.h: Use new bz2lib header location.
1181 * mount.cc: Import key defines and enums to be independent of cygwin
1183 * configure.in: Update to autoconf 2.53, and to be sourceware
1185 * configure: Regenerate.
1187 2002-04-12 Robert Collins <rbtcollins@hotmail.com>
1189 * mklink2.cc (make_link_2): Tweak to work with current w32api
1192 2002-04-10 Pavel Tsekov <ptsekov@gmx.net>
1194 * version.cc (canonicalize_version): Fix a call delete[]
1195 to delete the allocated address.
1197 2002-03-29 Robert Collins <rbtcollins@hotmail.com>
1199 * PickView.cc (PickView::set_headers): Set last_col correctly. Thanks
1200 to Ton van Overbeek for locating the bug area.
1202 2003-03-27 Robert Collins <rbtcollins@hotmail.com>
1204 * PickView.cc (PickView::insert_pkg): Be more generic with
1206 (PickView::insert_category): Ditto.
1207 (PickView::~PickView): Create.
1208 * PickView.h (PickView::~PickView): Declare.
1210 2003-03-27 Robert Collins <rbtcollins@hotmail.com>
1212 * Makefile.in (OBJS): Add new commandline objects.
1213 * desktop.cc (NoShortCutsOption): New option code.
1214 (DesktopSetupPage::OnInit): Check whether to skip shortcuts.
1215 * desktop.h (NoShortCutsOption): New concrete command line option class.
1216 * main.cc (WinMain): Process command line options.
1217 * GetOption.h: New file, singleton command line class.
1218 * GetOption.cc: New file, implementation of the above.
1219 * Option.h : New file, abstract option for GetOption.
1220 * Option.cc: New file, implement constructor and destructor.
1222 2002-03-26 Pavel Tsekov <ptsekov@gmx.net>
1224 * mkdir.cc (mkdir_p): Stop processing if the path is exhausted.
1226 2002-03-26 Ton van Overbeek <tvoverbe@cistron.nl>
1228 * PickPackageLine.cc (PickPackageline::paint): Adjust clipping rectangle
1229 to textheight, so large fonts work.
1231 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
1233 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Don't translate
1236 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
1238 * io_stream_cygfile.cc (cwd): New static for cwd storage.
1239 (io_stream_cygfile::normalise): New method.
1240 (io_stream_cygfile::io_stream_cygfile): Use it.
1241 (io_stream_cygfile::exists): Ditto.
1242 (io_stream_cygfile::remove): Ditto.
1243 (io_stream_cygfile::mklink): And again.
1244 (cygmkdir_p): Yes, again.
1245 (io_stream_cygfile::move): And once more.
1246 * io_stream_cygfile.h (io_stream_cygfile::normalise): Declare.
1247 (io_stream_cygfile::cwd): Ditto.
1249 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
1251 * package_meta.cc (package_meta::~package_meta): Remove duplicate.
1252 (CategoryPackage::~CategoryPackage): Ditto. (Thanks to Ton van
1253 Overbeek for the report).
1254 * mklink2.cc: Moved from mklink2.c to avoid 'not a prototype error'.
1255 Make g++ compatible.
1256 * mklink2.c: Remove.
1257 * site.cc (site_list_type::init): Delete the correct memory addres.
1258 Thanks to Pavel Tsekov for tracking this down.
1260 2002-03-20 Robert Collins <rbtcollins@hotmail.com>
1262 * win32.h: Only define alloca if it's not already.
1264 2002-03-20 Robert Collins <rbtcollins@hotmail.com>
1266 * package_meta.h (packamgemeta::trustp): Make 'test' choice leave installed
1268 * README: Update with latest requests.
1269 * Various: MTC fixes from setup200202 branch.
1271 2002-03-19 Christopher Faylor <cgf@redhat.com>
1273 * Makefile.in (setup_version.c): Add back magic which allows detection
1274 of setup.exe version number.
1276 2002-03-17 Robert Collins <rbtcollins@hotmail.com>
1278 * * PickPackageLine.cc (PickPackageLine::paint): Fix incorrect clip region
1279 calculation on win9x systems.
1281 2002-03-16 Robert Collins <rbtcollins@hotmail.com>
1283 * install.cc (install_one_source): Write the correct length of a string to the
1284 lst file (Thanks to Pavel Tsekov for reporting the bug).
1286 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
1288 * choose.cc (list_click): Always refresh the entire chooser, as our
1289 package state change mechanism is broken with the new improved list classes.
1291 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
1293 * desktop.cc (make_passwd_group): Check for .lnk suffix on /etc/passwd and
1296 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
1298 * PickPackageLine.cc (PickPackageLine::DrawCheck): New method factored out from
1300 (PickPackageLine::paint): Use DrawCheck to draw the src tick box, and the new
1302 (PickPackageLine::click): Handle the new bin tickbox.
1303 * PickPackageLine.h (PickPackageLine::DrawCheck): Declare this.
1304 * PickView.cc (pkg_headers): Add a Bin? column.
1305 (cat_headers): Ditto.
1306 (PickView::set_headers): Ditto.
1307 (PickView::init_headers): Ditto.
1308 * PickView.h (PickView): Ditto.
1309 * choose.cc (list_click): Use the new name for src_col to set the clip rectangle.
1311 2002-02-24 Michael A Chase <mchase@ix.netcom.com>
1313 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Fix up Robert's
1316 2002-02-24 Michael A Chase <mchase@ix.netcom.com>
1318 * desktop.cc (make_link): Add "file://" prefix to io_stream::mkpath_p()
1320 (make_passwd_group): Ditto.
1321 * localdir.cc (save_local_dir): Ditto.
1322 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Wrap long lines.
1323 Add "cygfile://" prefix to io_stream::open() calls.
1325 2002-02-24 Robert Collins <rbtcollins@hotmail.com>
1327 * log.cc (log_save): Fix creating /var/log.
1328 * packate_meta.cc (standard_dirs): Remove duplicate '/''s.
1330 2002-02-24 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1332 * res.rc (STRINGTABLE): Add IDS_CYGWIN_SETUP and
1333 IDS_CYGWIN_SETUP_WITH_PROGRESS strings.
1334 * resource.h: Add IDS_CYGWIN_SETUP and
1335 IDS_CYGWIN_SETUP_WITH_PROGRESS IDs.
1337 * splash.cc (OnInit): Qualify SetWindowText() call with global scope
1338 operator (::SetWindowText()).
1340 * threebar.cc: Run indent.
1341 (cistring.h): Add include.
1342 (SetText1, SetText2, SetText3): Qualify SetWindowText() call with
1343 global scope operator.
1344 (SetBar2): Add logic for writing percent complete into window title.
1346 * window.h: Run indent.
1347 (SetWindowText): New function.
1348 (String): Add forward declaration.
1349 * window.cc: Run indent.
1350 (String++.h): Add include.
1351 (SetWindowText): New function.
1353 2002-02-24 Robert Collins <rbtcollins@hotmail.com>
1355 * README: Update TODO list.
1356 * install.cc (install_one): Fix src package location.
1357 (do_install_thread): Fix creating directories.
1359 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1361 * choose.cc: Include cygpackage.h for scan2 use.
1362 (set_existence): Ignore setup.ini mirrors when installing from cwd.
1363 (scan2): Process any valid file.
1364 Add cache entries when a file matching a setup.ini listed version is found.
1365 * filemanip.cc (parse_filename): Remove pkgtar - not used anywhere else.
1366 * filemanip.h (filemanip::pkgtar): Remove.
1367 * package_meta.cc (CategoryPackage::~CategoryPackage): New method.
1368 (packagemeta::~packagemeta): Move from package_meta.h
1369 Remove and delete all version and category information.
1370 * package_meta.h (CategoryPackage): Create a destructor.
1371 (packagemeta::~packagemeta): Move to .cc file.
1373 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1375 * install.cc (install_one_source): Make NULL cached package names cause
1378 2002-02-18 Michael A Chase <mchase@ix.netcom.com>
1380 * desktop.cc (make_passwd_group): Don't create passwd-grp.bat
1383 2002-02-18 Michael A Chase <mchase@ix.netcom.com>
1385 * log.cc (log_save): Put "\n" at end of log lines instead of "'".
1387 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1389 * mount.cc (create_mount): Avoid a const char*->char* warning.
1390 (read_mounts): Ditto.
1392 2002-02-05 Jason Tishler <jason@tishler.net>
1394 * download.cc (do_download_thread): Fix off-by-one error.
1396 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1398 * configure.in (CXXFLAGS): Substitute at configure time, not runtime.
1399 * configure (CXXFLAGS): Regenerate.
1400 * Makefile.in (iniparse.o): Build via default rules - no errors now.
1401 * README: TODO list updates.
1403 2002-02-19 Michael A Chase <mchase@ix.netcom.com>
1405 * String++.cc (String::concat):: Remove.
1406 (String::vconcat):: Ditto.
1407 * String++.h (String::concat):: Remove.
1408 (String::vconcat):: Ditto.
1409 * archive_tar.cc: Don't include concat.h.
1410 * archive_tar_file.cc: Don't include concat.h.
1411 * compress_bz.cc (compress_bz::peek): Don't log unneeded messages.
1412 (compress_bz::seek): Ditto.
1413 (compress_bz::~compress_bz): Ditto.
1414 * compress_gz.cc (compress_gz::peek): Ditto.
1415 (compress_gz::error): Ditto.
1416 (compress_gz::~compress_gz): Ditto.
1417 * concat.cc (vconcat): Remove.
1419 * concat.h (vconcat): Remove.
1421 * desktop.cc (desktop_icon): Use new cygpath.
1422 (make_etc_profile): Ditto.
1424 (make_passwd_group): Ditto.
1426 (check_desktop): Remove concat use.
1427 (check_start_menu): Ditto.
1428 * download.cc (download_one): Use new mkpath_p correctly.
1430 * fromcwd.cc: Don't include concat.h.
1431 * geturl.cc (get_url_to_membuf): Use String log() call.
1432 (get_url_to_file): Ditto.
1433 * install.cc: Don't include concat.h.
1434 (uninstall_one): Use LOG_PLAIN.
1435 (replace_one): Ditto.
1436 (install_one_source): Ditto.
1437 (install_one): More char to String conversion.
1438 (do_install_thread): Use new cygpath.
1439 Use new create_mount.
1440 * io_stream.cc (io_stream::move): Use new log().
1441 * io_stream_cygfile (io_stream_cygfile::io_stream_cygfile): Use new cygpath.
1442 (io_stream_cygfile::exists): Ditto.
1443 (io_stream_cygfile::remove): Ditto.
1444 (io_stream_cygfile::mklink): Ditto.
1445 (io_stream_cygfile::write): Ditto.
1446 (cygmkdir_p): Ditto.
1447 (io_stream_cygfile::move): Ditto.
1448 * io_stream_file.cc: Don't include log.h.
1449 (io_stream_file::write): Don't log unneeded messages.
1450 * localdir.cc: Don't include concat.h.
1451 (LocalDirPage::OnNext): Use LOG_PLAIN.
1452 * log.cc: Don't include log.h.
1453 (exit_setup): Use new cygpath.
1454 * log.h (log_level): Add new level LOG_PLAIN.
1455 * main.cc (WinMain): Use new log().
1456 * mount.cc (SLASH_P): New macro from concat.h.
1457 (cygpath): Make String version globally visible.
1458 Remove varargs version.
1460 * msg.cc (mbox): Use LOG_PLAIN.
1461 * net.cc (NetPage::OnNext): Ditto.
1462 * nio-ftp.cc (ftp_line): Use new log().
1463 * nio-http.cc: Don't include log.h.
1464 (retry_get): Use alternative url variable.
1465 * package_db.cc: Don't include concat.h.
1466 (packagedb::flush): Don't use concat.
1467 * package_meta.cc: Don't include concat.h.
1468 (packagemeta::uninstall): Use new cygpath.
1469 * postinstall.cc (do_postinstall): Ditto.
1470 * root.cc (RootPage::OnNext): Use LOG_PLAIN.
1471 * script.cc: Don't include concat.h.
1472 (init_run_script): Use new cygpath.
1473 (run_script): More char * to String conversion.
1474 (try_run_script): Ditto.
1475 * site.cc: Don't include concat.h.
1476 (SitePage::OnNext): Use LOG_PLAIN.
1477 (SitePage::OnMessageCmd): Use new log().
1478 * source.cc (SourcePage::OnDeactivate): Use LOG_PLAIN.
1480 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1482 * Makefile.in (OBJS): Add new object.
1483 * PickCategoryLine.cc (PickCategoryLine::paint): Print a "+" before the name.
1484 * PickCategoryLine.h (PickCategoryLine::bucket): Use the String class.
1485 * PickLine.h (Pickline::key): Change to a String to help plug leaks.
1486 (PickLine::Pickline): Accept a String for the key.
1487 * PickPackageLine.cc (PickPackageLine::paint): Convert all char use to Strings.
1488 * PickPackageLine.h (PickPackageLine::PickPackageLine): The key is automatically
1490 * PickView.cc (PickView::note_width): Convert all char * use to Strings.
1491 (PickView::init_header): Move category length checking out of the inner loop for
1493 Convert all char use to Strings.
1494 * PickView.h: Include the String++ header.
1495 (PickView::note_width): Update the prototype.
1496 * String++.cc: New file, implements a reference counting string class.
1497 * String++.h: New file, declares a reference counting string class.
1498 * archive.cc: Include String++ instead of concat.
1499 (archive::extract_file): Convert char * usage to Strings.
1500 * archive.h: Inlude the String++ header.
1501 (archive::extract_file): Update prototype.
1502 (archive::next_file_name): Convert to a String.
1503 (archive::linktarget): Ditto.
1504 * archive_tar.cc (archive_tar::next_file_name): Convert to String usage.
1505 (archive_tar::linktarget): Ditto.
1506 * arhive_tar.h: Update the copyright.
1507 Explicitly include the relevant headers.
1508 (tar_map_result_type): Convert to String usage.
1509 (archive_tar::next_file_name): Update prototype.
1510 (archive_tar::linktarget): Ditto.
1511 * category.cc (Category::Category): Update initialisers.
1512 Convert to String usage.
1513 (Categorycmp): Update to String usage.
1514 * category.h: Include the String++ header.
1515 (Category::Category): Update to String usage.
1516 (Category::name): Ditto.
1517 (Category::key): Ditto.
1518 * choose.cc: Remove concat.h, it's not needed.
1519 (scan2): Update to String usage.
1521 * cygpackage.cc: Update includes for use of String class.
1522 (cygpackage::cygpackage): Update for String usage.
1523 (cygpackage::set_canonical_version): Ditto.
1524 (cygpackage::destroy): Ditto.
1525 (cygpackage::getfirstfile): Ditto.
1526 (cygpackage::getnextfile): Ditto.
1527 (cygpackage::Name): Ditto.
1528 (cygpackage::Vendor_version): Ditto.
1529 (cygpackage::Package_version): Ditto.
1530 (cygpackage::Canonical_version): Ditto.
1531 (cygpackage::set_sdesc): Ditto.
1532 (cygpackage::set_ldesc): Ditto.
1533 * cygpackage.h: Include String++.h for parsing this file.
1534 (cygpackage::cygpackage): Update for String usage.
1535 (cygpackage::set_canonical_version): Ditto.
1536 (cygpackage::destroy): Ditto.
1537 (cygpackage::getfirstfile): Ditto.
1538 (cygpackage::getnextfile): Ditto.
1539 (cygpackage::Name): Ditto.
1540 (cygpackage::Vendor_version): Ditto.
1541 (cygpackage::Package_version): Ditto.
1542 (cygpackage::Canonical_version): Ditto.
1543 (cygpackage::set_sdesc): Ditto.
1544 (cygpackage::set_ldesc): Ditto.
1545 (cygpackage::name): Ditto.
1546 (cygpackage::vendor): Ditto.
1547 (cygpackage::packagev): Ditto.
1548 (cygpackage::canonical): Ditto.
1549 (cygpackage::fn): Ditto.
1550 (cygpackage::sdesc): Ditto.
1551 (cygpackage::ldesc): Ditto.
1552 * desktop.cc: Update includes for use of String class.
1553 (batname): Update for String usage.
1556 (start)menu): Ditto.
1557 (desktop_icon): Ditto.
1558 (make_cygwin_bat): Ditto.
1559 (make_etc_profile): Ditto.
1561 (make_passwd_group): Ditto.
1563 (check_desktop): Ditto.
1564 (check_startmenu): Ditto.
1565 * dialog.cc (eget): Update for String usage.
1566 (egetString): New function.
1567 (eset): New variant for Strings.
1568 * dialog.h: Include String++.h for parsing this file.
1569 (egetString): New function.
1570 (eset): New variant for Strings.
1571 * diskfull.cc (diskfull): Update for String usage.
1572 * diskfull.h: Include String++.h for parsing this file.
1573 (diskfull): Update for String usage.
1574 * download.cc: Update includes for use of String class.
1575 (check_for_cached): Update for String usage.
1576 (download_one): Ditto.
1577 * filemanip.cc (get_file_size): Ditto.
1579 (parse_filename): Ditto.
1581 * filemanip.h: Include String++.h for parsing this file.
1582 (fileparse): Update for String usage.
1584 (parse_filename): Ditto.
1585 Don't consider '_' to be a separator.
1587 * find.cc: Update includes for use of String class.
1588 (find_sub): Make more flexible.
1589 (find): Update for String usage.
1590 * find.h (find): Use Strings.
1591 * fromcwd.cc (found_file): Update for String usage.
1593 (init_dialog): Ditto.
1594 (get_url_to_membuf): Ditto.
1595 (get_url_to_string): Ditto.
1596 (get_url_to_file): Ditto.
1598 (get_url_to_membuf): Ditto.
1599 (get_url_to_string): Ditto.
1600 (get_url_to_file): Ditto.
1602 (add_subdirs): Ditto.
1603 * ini.cc: Update includes for String usage.
1604 (find_routine): Update for String usage.
1605 (do_remote_ini): Ditto.
1606 (do_ini_thread): Ditto.
1607 * ini.h (ini_init): Ditto.
1608 * inilex.l: Update includes for String usage.
1609 (ini_init): Update for String usage.
1610 * iniparse.y: Ditto.
1611 (add_correct_version): Ditto.
1612 * install.cc: Update includes for String usage.
1613 (install_one_source): Update for String usage.
1614 (uninstall_one): Ditto.
1615 (replace_one): Ditto.
1616 (install_one_source): Ditto.
1617 (do_install_thread): Ditto.
1618 * io_stream.cc: Update includes for String usage.
1619 (io_stream::open): Update for String usage.
1620 (io_stream::mkpath_p): Ditto.
1621 (io_stream::remove): Ditto.
1622 (io_stream::mklink): Ditto.
1623 (io_stream::move_copy): Ditto.
1624 (io_stream::move): Ditto.
1625 (io_stream::exists): Ditto.
1626 * io_stream.h: Update includes to allow correct parsing.
1627 (io_stream::open): Update for String usage.
1628 (io_stream::mkpath_p): Ditto.
1629 (io_stream::remove): Ditto.
1630 (io_stream::mklink): Ditto.
1631 (io_stream::move_copy): Ditto.
1632 (io_stream::move): Ditto.
1633 (io_stream::exists): Ditto.
1634 * io_stream_cygfile.cc: Update includes for String usage.
1635 (get_root_dir_now): Update for String usage.
1636 (io_stream_cygfile::io_stream_cygfile): Ditto.
1637 (io_stream_cygfile::~io_stream_cygfile): Ditto.
1638 (io_stream_cygfile::exists): Ditto.
1639 (io_stream_cygfile::remove): Ditto.
1640 (io_stream_cygfile::mklink): Ditto.
1641 (cygmkdir_p): Ditto.
1642 (io_stream_cygfile::set_mtime): Ditto.
1643 (io_stream_cygfile::move): Ditto.
1644 (io_stream_cygfile::get_size): Ditto.
1645 * io_stream_cygfile.h: Update includes for String usage.
1646 (io_stream_cygfile::io_stream_cygfile): Update for String usage.
1647 (io_stream_cygfile::~io_stream_cygfile): Ditto.
1648 (io_stream_cygfile::exists): Ditto.
1649 (io_stream_cygfile::remove): Ditto.
1650 (io_stream_cygfile::mklink): Ditto.
1651 (cygmkdir_p): Ditto.
1652 (io_stream_cygfile::set_mtime): Ditto.
1653 (io_stream_cygfile::move): Ditto.
1654 (io_stream_cygfile::get_size): Ditto.
1655 (io_stream_cygfile::fname): Ditto.
1656 (io_stream_cygfile::lmode): Ditto.
1657 * io_stream_file.cc: Update includes for String usage.
1658 (io_stream_file::io_stream_file): Update for String usage.
1659 (io_stream_file::~io_stream_file): Ditto.
1660 (io_stream_file::exists): Ditto.
1661 (io_stream_file::remove): Ditto.
1662 (io_stream_file::mklink): Ditto.
1663 (io_stream_file::set_mtime): Ditto.
1664 (io_stream_file::move): Ditto.
1665 (io_stream_file::get_size): Ditto.
1666 * io_stream_file.h: Update includes for String usage.
1667 * io_stream_file.cc: Update includes for String usage.
1668 (io_stream_file::io_stream_file): Update for String usage.
1669 (io_stream_file::~io_stream_file): Ditto.
1670 (io_stream_file::exists): Ditto.
1671 (io_stream_file::remove): Ditto.
1672 (io_stream_file::mklink): Ditto.
1673 (io_stream_file::set_mtime): Ditto.
1674 (io_stream_file::move): Ditto.
1675 (io_stream_file::get_size): Ditto.
1676 (io_stream_file::fname): Ditto.
1677 (io_stream_file::lmode): Ditto.
1678 * localdir.cc: Update includes for String usage.
1679 (save_local_dir): Update for String usage.
1680 (check_if_enable_next): Ditto.
1681 (load_dialog): Ditto.
1683 (LocalDirPage::OnInit): Ditto.
1684 (LocalDirPage::OnNext): Ditto.
1685 * log.cc: Update includes for String usage.
1686 (struct LogEnt): Update for String usage.
1689 (exit_setup): Ditto.
1690 * log.h: Update includes for String usage.
1691 (log_level): Update for String usage.
1694 * main.cc (WinMain): Update for String usage.
1695 * mklink2.c (make_link_2): Update for String usage.
1696 * mklink2.h (make_link_2): Update for String usage.
1697 * mount.cc: Update includes for String usage.
1698 (mount_table): Update for String usage.
1700 (create_mount): Ditto.
1702 (remove_mount): Ditto.
1703 (read_mounts): Ditto.
1704 (set_root_dir): Ditto.
1705 (get_root_dir): Ditto.
1706 (path_prefix_p): Ditto.
1708 * mount.h: Update includes for String usage.
1709 (create_mount): Update for String usage.
1710 (remove_mount): Ditto.
1712 (set_root_dir): Ditto.
1713 (get_root_dir): Ditto.
1714 * msg.cc (mbox): Ditto.
1715 * net.cc (NetPage::OnNext): Ditto.
1716 * package_db.cc (packagedb::flush): Ditto.
1717 (packagedb::packages): Ditto.
1718 (packagedb::categories): Ditto.
1719 * package_db.h: Update includes for String usage.
1720 (packagedb::packages): Update for String usage.
1721 (packagedb::categories): Ditto.
1722 * package_meta.cc: Update includes for String usage.
1723 (hash::add_subdirs): Update for String usage.
1724 (packagemeta::uninstall): Ditto.
1725 (packagemeta::SDesc): Ditto.
1726 (packagemeta::action_caption): Ditto.
1727 * package_meta.h: Update includes for String usage.
1728 (packagemeta::packagemeta): Update for String usage.
1729 (packagemeta::~packagemeta): Ditto.
1730 (packagemeta::uninstall): Ditto.
1731 (packagemeta::SDesc): Ditto.
1732 (packagemeta::action_caption): Ditto.
1733 (package_source.cc site::site): Ditto.
1734 (packagesource::set_canonical): Ditto.
1735 (packagesource::set_cached): Ditto.
1736 * package_source.h: Update includes for String usage.
1737 (site::site): Update for String usage.
1738 (packagesource::set_canonical): Ditto.
1739 (packagesource::set_cached): Ditto.
1740 (packagesource::packagesource): Ditto.
1741 (packagesource::sites): Ditto.
1742 (packagesource::cached): Ditto.
1743 * package_version.h: Update includes for String usage.
1744 (Dependency): Update for String usage.
1745 (packageversion): Ditto.
1746 * postinstall.cc: Update includes for String usage.
1747 (do_postinstall): Update for String usage.
1748 * res.rc (IDD_LOCAL_DIR): Fix typo again!
1749 * rfc1738.cc (rfc1738_escape_part): Update for String usage.
1750 * rfc1738.h: Update includes for String usage.
1751 (rfc1738_escape_part): Update for String usage.
1752 * root.cc: Update includes for String usage.
1753 (check_if_enable_next): Update for String usage.
1754 (save_dialog): Ditto.
1756 (directory_is_absolute): Ditto.
1757 (directory_is_rootdir): Ditto.
1758 (directory_has_spaces): Ditto.
1759 (RootPage::OnInit): Ditto.
1760 (RootPage::OnNext): Ditto.
1761 * script.cc: Update includes for String usage.
1762 (init_run_script): Update for String usage.
1764 (run_script): Ditto.
1765 (try_run_script): Ditto.
1766 * script.h: Update includes for String usage.
1767 (run_script): Update for String usage.
1768 (try_run_script): Ditto.
1769 * site.cc site_list): Ditto.
1770 (all_site_list): Ditto.
1771 (other_url): Eliminate.
1772 (site_list_type::init): Update for String usage.
1773 (site_list_type::site_list_type): Ditto.
1774 (get_site_list): Ditto.
1775 (get_saved_sites): Ditto.
1776 (do_download_site_info_thread): Ditto.
1777 (SitePage::OnNext): Ditto.
1778 (SitePage::OnActivate): Ditto.
1779 (SitePage::PopulateListBox): Ditto.
1780 (SitePage::OnMessageCmd): Handle empty url's.
1781 * site.h: Update includes for String usage.
1782 (site_list_type::site_list_type): Update for String usage.
1783 (site_list_type::init): Ditto.
1784 (site_list_type::~site_list_type): Ditto.
1785 (site_list_type::url): Ditto.
1786 (site_list_type::displayed_url): Ditto.
1787 (site_list_type::key): Ditto.
1788 * source.cc (SourcePage::OnDeactivate): Ditto.
1789 * state.h: Update includes for String usage.
1790 (local_dir): Update for String usage.
1791 (trust_level): Remove.
1792 * version.cc: Update includes for String usage.
1793 (canonicalize_version): Update for String usage.
1794 * version.h: Update includes for String usage.
1795 (canonicalize_version): Update for String usage.
1797 2002-02-15 Christopher Faylor <cgf@redhat.com>
1799 * filemanip.c (parse_filename): Revert previous change.
1801 2002-02-14 Christopher Faylor <cgf@redhat.com>
1803 * filemanip.c (parse_filename): Don't treat '_' as a version number
1806 2002-01-29 Christopher Faylor <cgf@redhat.com>
1808 * configure: Regenerate.
1810 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
1812 * res.rc (IDD_LOCAL_DIR): Fix typo reported by Rene
1813 <Hoeck@extern.lrz-muenchen.de>
1815 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
1817 * README: Update Todo's.
1818 * list.h: Run indent.
1819 (list): New methods checksize and insert to reduce code duplication.
1820 (list::registerbykey): Use them.
1821 (list::registerbyobject): Ditto.
1822 (list::removebyindex): Copy each object individually - safe for non
1824 (list::checksize): Implement.
1825 (list::insert): Implement.
1827 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
1829 * Makefile.in: Remove the dlmalloc object by default.
1830 * install.cc (do_install_thread): Remove the mallinfo call for 'working
1831 around' the crashing issue.
1832 * package_db.h: Include <string.h> - it's needed to parse this.
1833 * package_source.cc (site::site): Move here from the header file.
1834 * package_source.h (site): Stop the constructor being inlinable.
1836 2002-01-26 Robert Collins <rbtcollins@hotmail.com>
1838 * filemanip.cc (find_tar_ext): Add a descriptive comment.
1840 2002-01-25 Michael A Chase <mchase@ix.netcom.com>
1842 * filemanip.cc (find_tar_ext): Clean up tests for .tar.gz and .tar.
1843 * fromcwd.cc (do_fromcwd): Expand FIXME comment in source file check.
1844 * install.cc (install_one_source): Add space between words in log()
1847 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1849 * log.cc (exit_setup): When saving to the download dir, explicity
1852 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1854 * archive.cc (extract_file): Separate out the prefix and the URL
1856 * archive.h (archive::extract_file): Ditto.
1857 * install.cc (install_one_source): Ditto. Use the new
1858 archive::extract_file syntax.
1859 (replace_one): Use the new syntax.
1860 (io_stream.cc): Add some log info for links.
1862 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1864 * PickCategoryLine.cc (PickCategoryLine::actiontext): Remove.
1865 (PickCategoryLine::paint): Use the new action method.
1866 (PickCategoryLine::click): Set the action for all children.
1867 (PickCategoryLine::set_action): New method.
1868 * PickCategoryLine.h (PickCategoryLine::-actions): Remove.
1869 (PickCategoryLine::current_default): Use packagemeta _actions class.
1870 * PickLine.h (PickLine::set_action): New abstract method that requires
1871 including package_meta.h.
1872 * PickPackageLine.cc (PickPackageLine::set_action): New method.
1873 * PickPackageLine.h (PickPackageLine::set_action): Declare this.
1874 * list.h (getbykey): A const correctness fix.
1875 * package_meta.cc: Run indent.
1876 (packagemeta::Default_action): New const.
1877 (packagemeta::Install_action): Ditto.
1878 (packagemeta::Reinstall_action): Ditto.
1879 (packagemeta::Uninstall_action): Ditto.
1880 (packagemeta::_actions::caption): New method.
1881 (packagemeta::_actions::operator++): Ditto.
1882 (packagemeta::set_action): New overload.
1883 * package_meta.h (packagemeta::_actions): New class.
1884 (packagemeta::set_action): Declare this.
1886 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1888 * Makefile.in (OBJS): Remove supp.o - it appears accidental.
1889 * choose.cc: Don't define alloca anymore, it's done in win32.h
1891 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1893 * PickPackageLine.cc: New file.
1894 * PickPackageLine.h: New file.
1895 * PickLine.cc: New file.
1896 * PickLine.h: New file.
1897 * PickCategoryLine.cc: New file.
1898 * PickCategoryLine.h: New file.
1899 * PickView.cc: New file.
1900 * PickView.h: New file.
1901 * Makefile.in: Add new objects to setup.exe.
1902 Backout -fno-exceptions option.
1903 * choose.cc: Include PickView.h.
1904 Remove view related defines and static variables.
1905 (_pkg_headers): Moved to PickView.cc.
1906 (_cat_headers): Ditto.
1907 (view::views::Unknown): Ditto.
1908 (view::views::PackageFull):
1909 (view::views::Package):
1910 (view::views::Category):
1911 (pkgtrustp): Moved to package_meta.cc.
1912 (add_required): Moved to package_meta.cc.
1913 (pick_category_line::empty): Moved to PickCategoryLine.cc
1914 (paint): Adjust for moved static variables.
1915 (view::scroll): Moved to PickView.cc.
1916 (list_vscroll): Adjust for moved static variables.
1917 (list_hscroll): Ditto.
1918 (list_click): Ditto.
1919 (note_width): Moved to PickView.cc.
1920 (view::view): Ditto.
1921 (view::set_view_mode): Ditto.
1922 (view::mode_caption): Ditto.
1923 (view::views::caption): Ditto.
1924 (view::set_headers): Ditto.
1925 (DoInsertItem): Ditto.
1926 (view::init_headers): Ditto.
1927 (view::insert_pkg): Ditto.
1928 (view::insert_category): Ditto.
1929 (view::clear_view): Ditto.
1930 (view::views::operator++): Ditto.
1931 (view::click): Ditto.
1932 (default_trust): Adjust for moved statics.
1933 (pick_pkg_line::paint): Moved to PickPackageLine.cc.
1934 (pick_pkg_line::click): Ditto.
1935 (pick_category_line::actiontext): Moved to PickCategoryLine.cc
1936 (pick_category_line::paint): Ditto.
1937 (pick_category_line::click): Ditto.
1938 (set_view_mode): Adjust for moved statics.
1939 (create_listview): Ditto.
1940 * choose.h: Remove Category and packagemeta forward defines - not needed.
1941 Don't include unneeded headers list and package_meta.
1942 (_header): Move to PickView.h.
1943 (pick_line): Move to PickLine.h.
1944 (pick_pkg_line): Move to PickPackageLine.h.
1945 (pick_category_line): Move to PickCategoryLine.h.
1946 (view): Move to PickView.h.
1947 * ini.h (trusts): Move to package_meta.h.
1948 * package_meta.h (trusts): New enum.
1949 (packagemeta::set_requirements): New helper method.
1950 (packagemeta::trustp): Ditto.
1952 2002-01-21 Christopher Faylor <cgf@redhat.com>
1954 * choose.h (view): Move forward declaration of views into public area
1955 or g++ v3 will complain.
1957 2002-01-21 Christopher Faylor <cgf@redhat.com>
1959 * Makefile.in (CXXFLAGS): Add -fno-exceptions.
1960 * win32.h (alloca): Define as __builtin_alloca.
1961 * io_stream_memory.cc: Add include file.
1963 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
1965 * archive_tar.cc (archive_tar::~archive_tar): Mark the stream as destroyed.
1966 * archive_tar_file.cc (archive_tar_file::~archive_tar_file): Ditto.
1967 * compress.cc (compress::~compress): Be less verbose.
1968 * compress_bz.cc (compress_bz::~compress_bz): Ditto.
1969 Mark the stream as destroyed.
1970 * compress_gz.cc (compress_gz::~compress_gz): Mark the stream as destroyed.
1971 * io_stream.cc (io_stream::~io_stream): Only warn when the stream is not marked
1973 * io_stream_cygfile.cc (io_stream_cygfile::~io_stream_cygfile): Mark the
1974 stream as destroyed.
1975 * io_stream_file.cc (io_stream_file::~io_stream_file): Ditto.
1976 * io_stream_memory.cc (io_stream_memory::~io_stream_memory): Ditto.
1978 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
1980 * Makefile.in (CFLAGS): Allow customisable malloc debug flags.
1981 (OBJS): Link in malloc objects.
1982 * category.cc (category): Use new char, not strdup.
1983 * choose.cc (pick_pkg_line::paint): Allow for the regionsize to shrink.
1984 (do_choose): Use new char, not malloc.
1985 * concat.cc (vconcat): Ditto.
1986 * cygpackage.cc (cygpackage): Use new char, not strdup.
1987 (set_canonical_version): Ditto.
1988 (cygpackage::destroy): Use delete[], not free.
1989 * desktop.cc (uexists): Ditto.
1990 * dialog.cc (egest): Use new char, not strdup.
1991 * dlmalloc.c: New file - Doug Lea's malloc 2.7.0
1992 * hash.cc (hash::hash): Use delete instead of free.
1993 (hash::add): Use new char, not strdup.
1994 * ini.cc (do_remote_ini): Use delete[] not free.
1995 * inilex.l: Use new char, not strdup.
1997 * iniparse.y: Ditto.
1998 Use a local package_db rather than a static one.
1999 * install.cc (struct mallinfo): Workaround an apparent dlmalloc bug.
2000 (do_install_thread): Call mallinfo to force a consistency check. Appears
2001 to fix a 'inuse' error in -DDEBUG builds.
2002 Use delete[] for strings.
2003 * io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile): Use new char,
2005 (io_stream_cygfile::~io_stream_cygfile): Use delete[], not free.
2006 (io_stream_cygfile::remove): Use new char, not strdup.
2007 * io_stream_file.cc (io_stream_file::io_stream_file): Use new char, not strdup.
2008 (io_stream_file::io_stream_file): Use delete[], not free.
2009 (io_stream_file::remove): Use new char, not strdup.
2010 * io_stream_memory.cc (memblock::~memblock): Use delete[], not free.
2011 * io_stream_memory.h (memblock): Use new char, not malloc.
2012 * localdir.cc (LocalDirPage::OnInit): Use new char, not strdup.
2013 * main.cc (WinMain): Use new char, not strdup.
2014 * mount.cc (find2): Use new char, not malloc.
2015 (read_mounts): Ditto.
2016 (cygpath): Use new char, not strdup.
2017 * netio.cc (NetIO::~NetIO): Use delete[], not free.
2018 (NetIO::set_url): Use new char, not strdup.
2019 (NetIO::get_ftp_auth): Use delete[], not free.
2020 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
2021 Use new char instead of strdup.
2022 * nio-http.cc (base64_encode): Use new char, not malloc.
2023 * package_meta.cc (hash::add_subdirs): Use new char instead of strdup.
2024 * package_source.h (~ packagesource): Use delete[] instead of delete.
2025 * port.h (strdup): Deprecate the use of strdup.
2026 * rfc1738.cc (rfc1738_do_escape): Use new char, not calloc.
2027 * script.cc (init_run_script): Us delete[], not free.
2028 (run_script): Ditto.
2029 * simpsock.cc (SimpleSocket::fill): Use new char, not malloc.
2030 (SimpleSocket::invalidate): Use delete[], not free.
2031 * site.cc (site_list_type::init): Use new char instead of strdup.
2032 * site.h (~site_list_type): Use delete[], not free.
2034 2002-01-20 Robert Collins <rbtcollins@hotmail.com>
2036 * Makefile.in (OBJS): Add win32.o - win32 support functions.
2037 * README: Update todos.
2038 * archive.cc (extract_file): Support a suffix for appending to extracted files.
2040 * choose.cc (set_view_mode): Use the new view::views class.
2041 (view::views::Unknown): New static for defaulting view::views variables.
2042 (view::views::PackageFull): New static for the current view.
2043 (view::views::Package): Ditto.
2044 (view::views::Category): Ditto.
2045 (topbucket::paint): Remove.
2046 (topbucket::empty): Rename to pick_category_line::empty.
2047 (topbucket::~topbucket): Remove.
2048 (paint): Use the new view::views class.
2049 Don't paint 'all' as a category when showing package categoies.
2050 (pick_category_line::actiontext): New method.
2051 (pick_category_line::paint): Make showing the category optional, and show the
2053 (pick_category_line::click): Make showing the category optional, and
2054 differentiate between the name being clicked, and the action description.
2055 (view::view): Use the new view::views class.
2056 (view::set_view_mode): Ditto.
2057 (view::mode_caption): Ditto.
2058 (view::views::caption): New method.
2059 (view::set_headers): Use the new view::views class.
2060 (view::clear_view): Ditto.
2061 (viewsplusplus): Replaced by
2062 (view::views::operator++): New operator.
2063 (set_view_mode): Use the new view::views class.
2064 (create_listview): Ditto.
2065 (dialog_cmd): Ditto.
2066 * choose.h (actions): Remove.
2068 (pick_line): Add a new convenience constructor.
2069 (top_bucket): Remove.
2070 (pick_category_line): Reparent under pick_line, and adsorb top_bucket.
2071 (view::views): New class.
2072 * ini.h: Don't include choose.h
2073 (is_download_action): Remove.
2074 (is_upgrade_action): Remove.
2075 (is_uninstall_action): Remove.
2076 (is_full_action): Remove.
2077 * install.cc (num_replacements): New static.
2078 (rebootneeded): Ditto.
2079 (replace_one): Handle upgrades separate from removal or new installs.
2080 (install_one_source): Handle in use files.
2081 (install_one): Don't repeat upgrades.
2082 (do_install_thread): Initialize new statics.
2083 Order actions as uninstall, replace, install.
2084 Warn about rebooting if needed.
2085 * res.rc (IDS_REBOOT_REQUIRED): New string.
2086 * resource.h (IDS_REBOOT_REQUIRED): Give value.
2087 * win32.h: Declare class Win32, and update copyright and intent message.
2088 * win32.cc: New file.
2090 2002-01-15 Corinna Vinschen <corinna@vinschen.de>
2092 * io_stream.cc (io_stream::gets): Eliminate trailing new line chars.
2093 * package_meta.cc (packagemeta::uninstall): Check for additional
2094 Windows shortcut. Unset R/O file attribute before trying to delete
2097 2002-01-09 Robert Collins <rbtcollins@hotmail.com>
2099 * choose.cc (pkgtrustp): Fall back to installed if a package is not present in
2100 the current trust level. For prev, fall back via curr.
2101 (set_existence): Allow sources with no sites, but cached files to be
2103 (pick_category_line::paint): Start drawing clickable categories.
2104 * fromcwd.cc (found_file): Reinstate local file scanning.
2106 2002-01-07 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2108 * fromcwd.cc: Run indent.
2109 (do_fromcwd): Reverse sense of comment. Set next_dialog
2110 to IDD_CHOOSER instead of IDD_CHOOSE.
2111 * ini.cc (find_routine): Remove "/" from "/setup.ini".
2113 2001-01-07 Robert Collins <rbtcollins@hotmail.com>
2115 * category.cc (Categorycmp): Add a const safe version.
2116 * category.h (Categorycmp): Add a const safe version.
2117 (Category): Add operator ==.
2118 * choose.cc (fill_missing_category): Add every package to "All".
2119 (pick_category_line::paint): Add support for hidden labels, and a tree depth.
2120 (pick_category_line::click): Ditto.
2121 (view::view): Pass in a top level category to use.
2122 (view::insert_pkg): Special case - skip category "All".
2123 (view::insert_category): Ditto.
2124 (view::clear_view): Set the contents label state.
2125 (create_listview): Pass in a top level category to view().
2126 * choose.h (topbucket): Make bucket available to derived classes.
2127 (pick_category_line): Add support for hidden labels, and a tree depth.
2128 Remove our second copy of bucket.
2129 (view): Pass in a top level category to the constructor.
2130 Use pick_category_line to allow three level display.
2132 2001-01-06 Robert Collins <rbtcollins@hotmail.com>
2134 * cygpackage.h (cygpackage): Make set_[s|l]desc virtual.
2135 * iniparse.y (add_correct_version): Copy descriptions across.
2136 * package_meta.cc (SDesc): Iterate through versions, return the first with a
2138 * package_version.h (packageversion): Add new virtuals set_[l|s]desc.
2140 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
2142 * script.cc (run_script): Change cygpath:// to cygfile://.
2143 * install.cc (do_install_thread): Fix off-by-one errors.
2145 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
2147 * package_db.cc (packagedb::flush): Fix an off-by-one error.
2149 2002-01-04 Jan Nieuwenhuizen <janneke@gnu.org>
2151 * Makefile.in (realclean): more clean.
2152 (OBJS): Add script.o.
2153 * postinstall.cc (run_script_in_etc_postinstall): New function.
2154 (do_postinstall): Split off new funtion init_run_script ().
2157 (run_script): Move to script.cc. Replace some deprecated remove
2160 * script.cc: New file.
2161 * Forward port cygwin-20010707.jcn3.patch.
2162 * package_meta.cc (uninstall): Run pre- and postremove scripts.
2163 * install.cc: Typo fix.
2164 (do_install): Run script initialisation.
2166 2001-01-04 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2168 * cistring.cc: Run d2u.
2169 * cistring.h: Run d2u.
2171 * desktop.cc (etc_profile): Remove "test -f ./.bashrc && . ./.bashrc"
2172 from the generated /etc/profile. Bash will source this file
2173 automatically, and having this here merely results in .bashrc being
2174 executed twice. Run d2u.
2175 * desktop.h: Run d2u.
2177 * propsheet.cc: Run d2u.
2178 (PropSheetProc): New function. Add minimize box here instead of in
2179 PropertyPage::DialogProc.
2180 (PropSheet::Create): Change to use creation callback PropSheetProc.
2181 (DLGTEMPLATEEX): Add 'hidden' Windows struct definition.
2183 * propsheet.h: Run indent, d2u.
2184 * proppage.h: Run indent, d2u.
2186 * proppage.cc: Run d2u.
2187 (PropertyPage::DialogProc): Remove minimize-box-adding
2188 functionality. Remove commented-out "PropSheet_SetWizButtons" calls.
2189 Add support for calling virtual OnMessageCmd. Add setting of fonts in
2190 WM_INITDIALOG handler.
2191 (resource.h): New include for resource IDs.
2193 * res.rc: Resize and rearrange property page dialog templates
2194 to bring them in line with "Microsoft's Backward Compatible Wizard 97"
2195 specification. Run d2u.
2196 (IDD_SITE): Add an edit control and an "Add" button in order to
2197 combine the IDD_SITE and IDD_OTHER_URL functionality onto one page.
2198 (IDD_OTHER_URL): Remove dialog template.
2199 (IDD_DLSTATUS): Remove dialog template.
2202 (SitePage::OnBack): Remove NEXT() macro invocation.
2203 (SitePage::OnActivate): New member function.
2204 (load_dialog): Remove. Functionality subsumed into
2205 SitePage::OnActivate.
2206 (save_dialog): Change to support both list and user URLs. Remove
2207 OTHER_IDX and mirror_idx logic.
2208 (SitePage::PopulateListBox): New member function.
2209 (SitePage::CheckControlsAndDisableAccordingly): New member function.
2210 (SitePage::OnMessageCmd): New override.
2211 (check_if_enable_next): Remove.
2212 (dialog_cmd): Remove.
2213 (do_download_site_info_thread): Remove calls to NEXT() macro.
2214 (SitePage::Create): Call the single-param PropertyPage::Create
2216 (other_url): New static taken from other.cc.
2217 (SitePage::OnNext): Remove mirror_idx logic.
2218 (SitePage::OnInit): Remove "Other URL" entry from list box. Remove
2219 list box populating code, now handled in SitePage::PopulateListBox.
2220 (mirror_idx, NO_IDX, OTHER_IDX): Remove.
2221 (save_site_url): Fix potential buffer overflow problem. Switched to
2222 TCHAR in grossly premature preparation for multilingual support.
2224 (SitePage::OnActivate): New member function.
2225 (SitePage::CheckControlsAndDisableAccordingly) New member.
2226 (SitePage::OnMessageCmd): New override.
2227 (do_download_site_info_thread): Add MessageBox call on failure to
2230 * splash.cc: Run d2u.
2231 (SplashPage::OnInit): Set the font for the title.
2232 * splash.h: Run d2u.
2234 * threebar.cc: Run d2u.
2235 * threebar.h: Run d2u.
2237 * window.h: Run d2u.
2238 (Window::IsButtonChecked): New member function declaration.
2239 (Window::OnMessageCmd): New member function.
2240 (Window::SetDlgItemFont): New member function declaration.
2241 (Window::MAXFONTS, Window::Fonts, Window::FontCounter): New data
2243 * window.cc: Run d2u.
2244 (Window::IsButtonChecked): New member function definition.
2245 (Window::SetDlgItemFont): New member function definition.
2246 (Window::Window): Add initialization for FontCounter.
2247 (Window::~Window): Delete any fonts we created.
2249 * geturl.cc: Run d2u.
2250 (progress): Remove the "3" field width from the "%3d"
2251 percent-complete format indicator. Causes line to not start at
2252 beginning of text box, and does little to help with "jumping", since
2253 the "bytes downloaded so far" field is variable-width anyway. Change
2254 kb/s format field to "%03.1" to 0-pad the kb/s number in the event of
2255 painfully slow connections, or temporary slowdowns in faster
2256 connections should such more-instantaneous functionality become
2260 (NetPage::OnMessageCmd): New member function declaration.
2261 (NetPage::CheckIfEnableNext): New member function declaration.
2263 (NetPage::OnMessageCmd): New member function definition.
2264 (dialog_cmd): Remove, subsumed into NetPage::OnMessageCmd.
2265 (check_if_enable_next): Remove.
2266 (NetPage::CheckIfEnableNext): New member function, subsumes
2267 check_if_enable_next.
2268 (propsheet.h): Add include.
2269 (NetPage::Init): Add call to CheckIfEnableNext.
2270 (load_dialog): Remove call to check_if_enable_next.
2271 (NetPage::Create): Call single-template-ID-parameter overload of
2272 PropertyPage::Create instead of three-parameter one.
2274 * Makefile.in (OBJS): Remove other.o.
2275 * other.cc: Remove file.
2277 2002-01-01 Robert Collins <rbtcollins@hotmail.com>
2279 * README: Update TODO's.
2280 * choose.cc (set_existence): Delete non installed packages with no
2282 (fill_missing_category): Fix an off-by-one error.
2283 (default_trust): Ditto. Also delete any unused categories.
2284 (view::init_headers): Fix an off-by-one error.
2285 (set_view_mode): Ditto.
2286 (set_view_mode): Ditto.
2287 (create_listview): Ditto.
2288 (dialog_cmd): Ditto.
2290 * io_stream.cc: Indent.
2291 * io_stream.h: Ditto.
2292 * package_db.cc: Ditto.
2293 * package_meta.h: Const correctness for SDesc ();
2294 * proppage.cc: Run d2u and indent.
2295 * propsheet.cc: Run d2u and indent.
2296 * window.cc: Run d2u and indent.
2297 * window.h: Run d2u and indent.
2299 2001-12-28 Christopher Faylor <cgf@redhat.com>
2301 * Makefile.in (iniparse.o): Accommodate newer bisons.
2303 2001-12-23 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2305 * window.h (Window): New file, new class.
2306 * window.cc (Window): New file, new class.
2308 * threebar.h (ThreeBarProgressPage): New file, new class.
2309 * threebar.cc (ThreeBarProgressPage): New file, new class.
2311 * splash.h (SplashPage): New file, new class.
2312 * splash.cc (SplashPage): Replace file with implementation of new
2315 * source.h (SourcePage): New file, new class.
2316 * source.cc: Run indent.
2317 (SourcePage): Add class implementation to this file.
2318 (do_source): Remove, functionality subsumed by SourcePage::Create()
2319 and SourcePage::OnDeactivate().
2320 (dialog_proc): Remove, functionality subsumed by
2321 SourcePage::OnActivate().
2323 * site.h: Run indent.
2324 (SitePage): Add class declaration.
2325 * site.cc: Run indent.
2326 (SitePage): Add class implementation.
2327 (do_download_site_info_thread): New function.
2328 (context): New var. Context info for do_download_site_info_thread().
2329 (do_download_site_info): New function.
2330 (SitePage::Create, SitePage::OnInit SitePage::OnNext)
2331 (SitePage::OnBack): SitePage class implementation..
2332 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers, now handled
2333 by SitePage members.
2334 (dialog_proc): Remove, now handled by SitePage::OnInit and base class
2336 (do_site): Remove, now handled by do_download_site_info_thread() and
2337 SitePage::OnNext functionality.
2338 (get_site_list): Remove dismiss_url_status_dialog() call.
2340 * root.h (RootPage): New file, new class.
2341 * root.cc: Run indent.
2342 (dialog_cmd): Pass parent HWND parameter to note(), yesno().
2343 (dialog_proc): Remove.
2345 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL clauses from switch.
2346 (RootPage::OnInit): New member function. Move get_root_dir() logic to
2347 here from do_root().
2348 (RootPage::Create): New member function.
2349 (RootPage::OnNext): New member function. Move IDOK logic from
2350 dialog_cmd() to here.
2351 (RootPage::OnBack): New member function.
2353 * propsheet.h (PropSheet): New file, new class.
2354 * propsheet.cc (PropSheet): New file, new class.
2356 * proppage.h (PropertyPage): New file, new class.
2357 * proppage.cc (PropertyPage): New file, new class.
2359 * postinstall.cc (do_postinstall): Add owner parameter.
2361 * other.cc (do_other): Add owner parameter.
2363 * nio-file.cc (NetIO::Purl): Pass NULL parent param to note().
2364 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Pass NULL parent param to
2366 * nio-http.cc (retry_get): Pass NULL parent param to get_auth(),
2369 * nio-ie5.cc (NetIO::_url): Pass NULL parent param to note(),
2370 get_auth(), get_proxy_auth().
2372 * netio.h (get_auth, get_proxy_auth, get_ftp_auth): Add owner param.
2373 * netio.cc (auth_common, NetIO::get_auth, NetIO::get_proxy_auth,
2374 NetIO::get_ftp_auth)
2375 (auth_common): Add owner param. Pass owner param to DialogBox.
2376 (NetIO::get_auth, NetIO::get_proxy_auth, NetIO::get_ftp_auth): Pass
2377 owner param to auth_common().
2379 * net.h (NetPage): New file, new class.
2380 * net.cc: Run indent.
2381 (net.h, threebar.h): Add includes.
2382 (Progress): Add extern.
2383 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, now handled by
2384 property sheet logic. Saved temporarily for reference.
2385 (NetPage::Create, NetPage::OnInit, NetPage::OnDeactivate,
2386 NetPage::OnNext, NetPage::OnBack):
2387 New implementation of NetPage class members.
2389 (dialog_proc): Remove.
2391 * msg.h (fatal, note, yesno): Add owner param.
2392 * msg.c (fatal, note, yesno, mbox): Add owner param.
2393 (mbox): Remove MB_TOPMOST from MessageBox call. Unnecessary and wrong
2394 now that we have a parent.
2396 * main.cc: Run indent.
2397 (commctrl.h, proppage.h, propsheet.h, splash.h, source.h)
2398 (localdir.h, net.h, site.h, choose.h, threebar.h, desktop.h): Include
2400 (root_dialog_proc): extern into this file.
2401 (Progress): Progress dialog defined here, used in several other files.
2402 (WinMain): Instantiate and create Splash, Source, Root, LocalDir, Net,
2403 Site, Chooser, Desktop pages and MainWindow sheet. Call
2404 InitCommonControls() to make sure Windows is set up for our use of
2405 property sheets. Add pages to sheet.
2406 Call MainWindow.Create() to "DoModal". Remove main loop, that logic is
2407 now handled by the PropSheet class.
2408 (root.h): Add include.
2410 * log.cc (log_save): Pass NULL parent to fatal().
2411 (exit_setup): Pass NULL parent to note().
2413 * localdir.h (LocalDirPage): New file, new class.
2414 * localdir.cc: Run indent.
2415 (localdir.h): New include.
2416 (threebar.h): New include.
2417 (Progress): extern into this file.
2418 (LocalDirPage::Create, LocalDirPage::OnInit, LocalDirPage::OnActivate)
2419 (LocalDirPage::OnNext, LocalDirPage::OnBack): Implementation of
2421 (LocalDirPage::OnNext): Move log() call from do_local_dir() to here.
2422 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers.
2423 (do_local_dir): Remove.
2424 (dialog_proc): Remove.
2425 (cwd): Remove, not used by anything.
2427 * install.cc: Run indent.
2428 (process.h, threebar.h): New includes.
2429 (Progress): extern into this file.
2430 (ins_dialog, ins_action, ins_pkgname, ins_filename, ins_pprogress)
2431 (ins_iprogress, ins_diskfull, init_event): Remove, now handled by
2432 ThreeBarProgressPage.
2433 (dialog_cmd, dialog_proc, dialog): Removed, handled in
2434 ThreeBarProgressPage.
2435 (init_dialog): Remove all mention of the above ins_* handles. Now
2436 handled in ThreeBarProgressPage. Altered SetWindowText()s to call
2437 ThreeBarProgressPage instance Progress directly.
2438 (progress): Alter bar update logic to call ThreeBarProgressPage
2439 instance Progress directly.
2440 (uninstall_one): Alter SetWindowText()s to call ThreeBarProgressPage
2441 instance Progress directly.
2442 (install_one_source): Alter SetWindowText()s to call
2443 ThreeBarProgressPage
2444 instance Progress directly. Pass NULL parent to note().
2445 (do_install_thread): Rename from do_install(), added owner param.
2446 Alter SetWindowText()s to call ThreeBarProgressPage instance Progress
2448 Remove dismiss_url_status_dialog() call, no longer necessary. Remove
2449 ShowWindow(<hide>) call, also unnecessary now. Pass owner handle to
2451 (do_install_reflector): New function.
2452 (do_install): New function.
2454 * ini.cc (process.h, threebar.h): New includes.
2455 (Progress): externed into this file.
2456 (find_routine): Pass NULL parent to note().
2457 (do_local_ini): Add owner param.
2458 (do_remote_ini): Add owner param. Pass owner to get_url_to_membuf()
2459 and note(). Remove call to dismiss_url_status_dialog().
2460 (do_ini_thread): Rename from do_ini(). Add owner param. Pass owner to
2461 do_local_ini(), do_remote_ini(), yesno(), and note(). Set next_dialog
2462 to IDD_CHOOSER on exit.
2463 (do_ini_thread_reflector): New function.
2464 (context): New var. Context for do_ini_thread.
2465 (do_ini): New function.
2467 * geturl.h (get_url_to_membuf, get_url_to_string, get_url_to_file): Add
2469 * geturl.cc (gw_dialog, gw_url, gw_rate, gw_progress, gw_pprogress,
2471 (gw_progress_text, gw_pprogress_text, gw_iprogress_text, init_event):
2473 (threebar.h): New include.
2474 (Progress): externed into this file.
2475 (dialog_cmd, dialog_proc, dialog): Removed, handled by
2476 ThreeBarProgressPage now.
2477 (init_dialog): Remove "if (gw_dialog == 0)" clause. Alter
2479 and bar setting SendMessage()s to call ThreeBarProgressPage instance
2480 Progress directly. Remove "one bar only" logic, this is now handled
2481 explicitly in the ThreeBarProgressPage class.
2482 (progress): Altered bar and text update logic to call
2483 ThreeBarProgressPage instance Progress directly. Changed kbps
2484 calculation to floating point and now print out a single decimal
2486 (get_url_to_membuf): Add owner param. Pass it to init_dialog.
2487 (get_url_to_string): Add owner param. Pass it to get_url_to_membuf.
2488 (get_url_to_file): Add owner param. Pass it to init_dialog. Alter bar
2489 update logic to call ThreeBarProgressPage instance Progress directly.
2490 (dismiss_url_status_dialog): Remove.
2492 * fromcwd.cc (do_fromcwd): Add owner param. Initialize found_ini to
2495 * download.cc: Run indent.
2496 (process.h, threebar.h): New includes.
2497 (Progress): externed into this file.
2498 (download_one): Add owner param. Pass it to get_url_to_file().
2499 (do_download_thread): Renamed from do_download. Add owner param. When
2500 calculating total_download_bytes, take binpicked and srcpicked into
2501 account. Remove call to dismiss_url_status_dialog(), no longer needed.
2502 Pass owner handle to download_one() and yesno().
2503 (do_download_reflector, do_download): New functions.
2504 (context): New var. Context for do_download_thread().
2506 * dialog.h (D(x)): Add owner param.
2508 * desktop.h (DesktopSetupPage): New file, new class.
2509 * desktop.cc: Run indent.
2510 (desktop.h): Add include.
2511 (dialog_proc, do_desktop): Remove, now handled in
2512 DesktopSetupPage::OnInit().
2513 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, handled in
2514 DesktopSetupPage::OnFinish(), DesktopSetupPage::OnBack(), and PropSheet
2516 (DesktopSetupPage::Create, DesktopSetupPage::OnInit)
2517 (DesktopSetupPage::OnBack, DesktopSetupPage::OnFinish): Implementation
2518 of DesktopSetupPage.
2520 * cistring.h: New file, new class.
2521 * cistring.cc: New file, new class.
2523 * choose.h: Run indent.
2524 (Chooser): New class declaration.
2525 * choose.cc: Run indent.
2526 (do_choose): Add owner param. Pass it to DialogBox() and
2528 (Chooser): New class implementation.
2530 * res.rc (IDS_VERSION_INFO): New string.
2531 (IDD_SOURCE, IDD_LOCAL_DIR, IDD_ROOT, IDD_SITE, IDD_OTHER_URL)
2532 (IDD_DLSTATUS, IDD_INSTATUS, IDD_SPLASH, IDD_CHOOSE, IDD_DESKTOP):
2533 Change WS_POPUP to WS_CHILD. Numerous positioning/size changes
2535 (IDD_CHOOSE): Give template the WS_EX_CONTROLPARENT style to enable
2536 TAB control navigation etc. Give the controls a reasonable tab order.
2537 Grouped radio buttons. Something's still not right, can't tab away
2538 from back/next/cancel group reliably.
2539 * resource.h (IDD_CHOOSER): New dialog ID.
2541 * Makefile.in (OBJS): Add cistring.o, proppage.o, propsheet.o,
2542 threebar.o, and window.o.
2544 2001-12-21 Robert Collins <rbtcollins@hotmail.com>
2546 * choose.cc (listview_proc): Update the scrollbar when the headers are dragged.
2547 (pick_pkg_line::paint): Clip columns to prevent overlap.
2549 2001-12-20 Robert Collins <rbtcollins@hotmail.com>
2551 * Makefile.in: Add libcomctl32.a for setup.exe.
2552 * archive.h (archive): Prevent non-child direct creation of the class.
2553 * archive_tar.h (archive_tar): Prevent inaccurate synthetic copy and assignment.
2554 * choose.cc: Include commctrl for the choose header.
2555 (NEW_COL_SIZE_SLOP): Define without magic numbers.
2556 (pkgtrustp): Convert to function.
2557 (set_action): Remove.
2558 (add_required, fill_missing_category,default_trust): Use list syntax for
2561 (choose_caption): Remove.
2562 (topbucket::paint): New method.
2563 (topbucket::empty): Ditto.
2564 (topbucket::click): Ditto.
2565 (topbucket::~topbucket): Ditto.
2566 (paint): Remove i,ii and p as they are obsolete.
2567 Remove header drawing code.
2568 Use new chooser method to paint the chooser.
2569 Use new chooser itemcount method.
2570 (scroll_common): Rename to view::scroll.
2571 Scroll the header window separately.
2572 (list_vscroll, list_hscroll, list_click): Update for new chooser methods.
2573 (listview_proc): Look for header messages.
2574 (note_width): Accept stringless calls.
2575 (pick_line::set_line): Remove.
2576 (pick_line::paint): Remove.
2577 (pick_pkg_line::paint): Paint this one line, using the header column widths.
2578 (pick_category_line::paint): Paint this category, and anything in the bucket.
2579 (pick_line::click): Remove.
2580 (pick_pkg_line::click): Handle a click.
2581 (pick_category_line::click): Handle a click.
2582 (_view): Rename all to view.
2583 (view::view): Initialise the control contents.
2584 (view::set_headers): Work with the header control.
2585 (view::init_headers): Use list syntax for package list.
2586 Rearrange the width logic a little.
2587 (view::insert_pkg): Update to use the hierarchy.
2588 (view::insert_category): Ditto.
2589 (view::insert_at, view::insert_under): Remove.
2590 (view::clear_view): Update to use the hierarchy.
2591 (view::click): Update to use the hierarchy.
2592 (set_view_mode): Use list syntax for package list.
2593 Update for new chooser methods.
2594 (DoInsertItem): New helper function. (Needs a home somewhere).
2595 (create_listview): Remove choose control code and use the constructor instead.
2596 (dialog_cmd,scan2,do_choose): Use list syntax for package list.
2597 * choose.h: Include newly required headers list and package_meta.
2598 (_voew): Rename to view.
2599 (pick_line): Convert to an ABC.
2600 (pick_pkg_line): New class.
2601 (pick_catgory_line): New class.
2602 (topbucket): New class.
2603 (view::scroll): New method created from listview_scroll function.
2604 * desktop.cc (make_passwd_group): Use list syntax for package list.
2605 * download.cc (do_download): Use list syntax for package list.
2606 * fromcwd.cc (found_file): Use list syntax for package list.
2607 * iniparse.y (pacakges): Use list syntax for package list.
2608 * install.cc (uninstall_one): Use list syntax for package list.
2609 (do_install): Use list syntax for package list.
2610 * io_stream.h (io_stream): Prevent non-child direct creation of the class.
2611 Prevent inaccurate synthetic copy and assignment.
2612 * list.h: Include required header stdlib.
2613 Work on const correctness.
2614 * package_db.cc (packagedb::getpackagebyname): Remove.
2615 (packagedb::packagedb): Remove custom list code, and make db a local.
2616 (packagedb::getfirstpackage): Remove.
2617 (packagedb::getnextpackage): Remove.
2618 (packagedb::addpackage): Remove.
2619 (flush): Remove custom list code.
2620 (packagedb::registerpackage): Remove.
2621 (packagedb::packages): New static member.
2622 (packagedb::task): New static member.
2623 * package_db.h (PackageDBActions): New enum.
2624 (packagedb): Remove getfirstpackage, getnextpackage, getpackagebyname,
2625 addpackage, registerpackage, packages, packagecount, curr_package, db.
2627 * pacakge_meta.cc: Include package_db.h.
2628 (packagemeta::action_caption): New method.
2629 (packagemeta::set_action): New method.
2630 * package_meta.h (CategoryPackage): Initialise key.
2631 (packagemeta): Initialise key.
2632 Add set_action and action_caption methods.
2633 Prevent inaccurate synthetic copy and assignment.
2634 * resource.h (IDC_CHOOSE_LISTHEADER): New ID.
2635 * source.cc: Include package_db for db manipulation.
2636 (save_dialog): Set the db task.
2637 * win32.h: Tell the w32 include headers what IE version to expect/require.
2639 2001-12-06 Robert Collins <rbtcollins@hotmail.com>
2641 * README: Wishlist updates.
2643 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
2645 * package_db.cc (getnextpackage): Don't overrun the array.
2647 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
2649 * Makefile.in (OBJS): Add setup_version.o.
2650 (version.c): Rename to setup_version.
2651 * choose.cc (set_action): Prevent NULL pointer dereference.
2652 (package_sort): Remove.
2653 * fromcwd.cc (canonicalize_version): Moved to version.cc.
2654 (check_ini): New function for use with find to see if there is a cached setup.ini.
2655 (do_fromcwd): Check for a cached setup.ini from any mirror site.
2656 * ini.cc (find_routine): New function, for finding cached setup.ini's.
2657 (do_local_ini): New function, drives parsing of local ini's.
2658 (do_remote_ini): New function, drives parsing and caching of remote ini's.
2659 (do_ini): Move guts to do_remote_ini and do_local_ini.
2660 * list.h (removebyindex): New method.
2661 * other.cc (save_dialog): Use new site_list and all_site_list to add the
2662 new site to the site picklist.
2663 (dialog_cmd): Only save the dialog when exiting the dialog.
2664 * res.rc (IDD_SITE): Make IDC_URL_LIST a multiple-selection control.
2665 * site.cc (site_list_type): Move to site.h
2666 (site_list): New global, sites chosen by the user.
2667 (all_site_list): New global, all potential sites.
2668 (site_list_type::init): New method, parses a mirror.lst URL string into a
2669 site_list_type object.
2670 (site_list_type::site_list_type): New method.
2671 (check_if_enable_next): Examine the control, not a local variable.
2672 (load_dialog): Select all the user chosen sites by default.
2673 (save_dialog): Adjust for multiple selection semantics.
2674 (save_site_url): Save all user chosen sites.
2675 (dialog_cmd): Don't save the dialog when the listbox recieves a message -
2677 Remove obsolete other_url reference.
2678 (dialog_proc): Use all_site_list instead of site_list.
2679 (site_sort): Remove.
2680 (get_site_list): Remove malloc use - use list template instead.
2681 Move site_list_type initialisation to site_list_type::init().
2682 (get_initial_list_idx): Renamed to ...
2683 (get_saved_sites): this. Also read in multiple sites to the site_list.
2684 (do_site): Use all_site_list not site_list.
2685 Log all chosen sites.
2686 * site.h: New file, defines site related class, functions and variables.
2687 * state.h: Add comment about use of state.h
2688 (mirror_site): Remove.
2689 (other_url): Remove.
2690 (MIRROR_SITE): Remove.
2691 * version.cc: New file, for version-handling and related functions.
2693 2001-12-02 Robert Collins <rbtcollins@hotmail.com>
2695 * Makefile.in: Add filemanip.o to setup.
2696 * archive.cc (archive::extract_file): Use new io_stream method 'copy'.
2697 * archive_tar.h (archive_tar_file): Implement get_size virtual.
2698 (archive_tar): Ditto.
2699 * choose.cc (set_action): Use [] operator instead of getnth - its more readable.
2701 (_view::init_headers): Ditto.
2702 (_view::insert_pkg): Ditto.
2703 (set_view_mode): Ditto.
2706 (base): Moved to filemanip.cc.
2707 (find_tar_ext): Ditto.
2708 (parse_filename): Ditto.
2709 (_Info::_Info): Remove.
2710 * compress_bz.h (compress_bz): Implement get_size virtual.
2711 * compress_gz.h (compress_gz): Implement get_size virtual.
2712 * cygpackage.cc (cygpackage::destroy): Use array delete for char * objects.
2713 * download.cc (get_file_size): Move to filemanip.cc.
2714 (check_for_cached): Use [] operator instead of getnth - its more readable.
2715 (download_one): Ditto.
2716 * filemanip.cc: New file.
2717 * geturl.cc (init_dialog): Make url a pointer to const as it is not modified.
2718 (get_url_to_membuf): New function - contains get_url_to_string worker code.
2719 (get_url_to_string): Becomes a trivial wrapper to get_url_to_membuf.
2720 * geturl.h: Declare new prototype.
2721 * ini.cc (do_ini): Use get_url_to_membuf and pass ini_init an io_stream.
2722 Tidy up the error code a little.
2723 * ini.h: Remove __cplusplus protection for ini_init.
2725 * inilex.l: Remove old globals.
2726 (ini_init): Use an io_stream for getting the characters.
2727 (ini_getchar): Ditto.
2728 * iniparse.y: Declare yylex as a C++ function.
2729 (add_correct_version): Use [] operator instead of getnth - its more readable.
2730 * io_stream.cc (io_stream::move_copy): Use the copy method.
2731 (io_stream::copy): New method to simply copy from one stream to another.
2732 * io_stream.h (io_stream): New static method copy, and virtual method get_size.
2733 * io_stream_cygfile.cc (io_stream_cygfile::get_size): Implement this.
2734 * io_stream_cygfile.h (io_stream_cygfile::get_size): Declare this.
2735 * io_stream_file.cc (io_stream_file::get_size): Implement this.
2736 * io_stream_file.h (io_stream_file::get_size): Declare this.
2737 * io_stream_memory.h: Include errno as it's neded to parse the header.
2738 (io_stream_memory::get_size): Implement this.
2739 (io_stream_memory::st_size): Delete this.
2740 * list.h: Change getnth into the [] operator.
2741 * netio.cc (NetIO::NetIO): Change prototype to reflect Purl not being modified.
2742 (NetIO::set_url): Ditto.
2743 (NetIO::open): Ditto.
2744 * netio.h: As for netio.cc.
2745 * nio-file.cc (NetIO_File::NetIO_File): Change prototype to reflect Purl not
2747 * nio-file.h: Ditto.
2748 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
2749 * nio-ftp.h (NetIO_FTP::NetIO_FTP): Ditto.
2750 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Ditto.
2751 * nio-http.h (NetIO_HTTP::NetIO_HTTP): Ditto.
2752 * nio-i5.cc (NetIO_IE5::NetIO_IE5): Ditto.
2753 * nio-i5.h (NetIO_IE5::NetIO_IE5): Ditto.
2754 * package_meta.cc (packagemeta::~packagemeta): Bugfix: use array delete.
2755 * package_source.cc (packagesource::set_canonical): Ditto.
2756 (packagesource::set_cached): Ditto.
2757 * package_source.h (site::~site): Ditto.
2758 * site.cc: Change site_list_type to a class, and search and replace sort_key to
2761 2001-12-01 Robert Collins <rbtcollins@hotmail.com>
2763 * package_source.cc (packagesource::set_canonical): Filename was out by one.
2765 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
2767 * Makefile.in (OBJS): Remove category_list - it's not needed.
2768 * README: More wishlist updates.
2769 * category.cc (Category::Category): Initialise new members.
2770 (Categorycmp): New function.
2771 * category.h (Category): New member key for template use.
2772 * category_list.cc: Remove.
2773 * category_list.h: Remove.
2774 (Categorycmp): New function prototype.
2775 * choose.cc: Remove category_list - not needed.
2776 (set_action): Only show the 'source' option when the source is actually
2778 (add_required): Fix recursion limiter to 5.
2779 (fill_missing_category): Use list access.
2780 (default_trust): Ditto.
2781 (pick_line::paint): Ditto.
2782 (_view::init_headers): Ditto.
2783 (_view::insert_pkg): Ditto.
2784 (_view::insert_category): Ditto.
2785 (_view::click): Ditto.
2786 (set_view_mode): Ditto.
2788 * cygpackage.h: Remove category_list - not needed.
2789 * geturl.cc (get_url_to_string): Fix null byte insertion.
2790 * inipatse.y: Remove category_list - not needed.
2791 (categories): Use list access.
2792 * package_db.cc: Ditto.
2793 * package_db.h: Remove category_list - not needed.
2794 (packagedb): Use the list template for categories.
2795 * package_meta.cc (add_category): Ditto.
2796 * package_meta.h (CategoryPackage): Link to the category as well.
2797 (packagemeta): Use a list of CategoryPackages instead of Categories
2798 for more memory efficient cross-referencing.
2800 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
2802 * package_db.cc (packagedb::flush): Write a canonical version for all packages
2803 irrespective of the media they were installed from.
2805 2001-11-29 Robert Collins <rbtcollins@hotmail.com>
2807 * Makefile.in (OBJS): Add package_source and rfc1738.
2808 * README: Wishlist update.
2809 * category_list.cc (register_category): Use references.
2810 * category_list.h (CategoryList): Ditto.
2811 * choose.cc (isinstalled): Remove.
2812 (pkgtrustp): New macro.
2813 (set_action): Use packagemeta.
2814 (add_required): Ditto.
2815 (choose_caption): Example package to choose caption, rather than state flags.
2816 (check_existence): Remove.
2817 (set_existence): Remove old code.
2818 (fill_missing_category): Use packagemeta.
2819 (keep_or_skip): Remove.
2820 (default_trust): Use packagemeta and set trust values directly.
2821 (pick_line::set_line): Use packagemeta.
2822 (_view::insert_pkg): Ditto.
2823 (_view::insert_category): Ditto.
2824 (_view::click): Ditto.
2825 (set_view_mode): Ditto. Also remove "exclude" code.
2826 (create_listview): Use packagemeta.
2827 (dialog_cmd): Ditto.
2828 (getpkgbyname): Remove
2829 (scan2): Use packagemeta. Temporarily comment out the holefinding code.
2830 (read_installed_db): Remove.
2831 (package_sort): Use packagemeta.
2832 (do_choose): Use packagemeta. Don't sort the packages - the db does that.
2833 * choose.h: Use packagemeta.
2834 * cygpackage.cc (cygpackage::cygpackage): Initialise all variables.
2835 (cygpackage::cygpackage): Ditto.
2836 (cygpackage::set_canonical_version): Copy the passed string.
2837 (cygpackage::~cygpackage): Move cleanup code to destroy().
2838 (cygpackage::destroy): New function.
2839 (cygpackage::getfirstfile): Use a separate buffer.
2840 (cygpackage::getnextfile): Ditto.
2841 (cygpackage::Canonical_version): New function.
2842 (cygpackage::set_sdesc): Ditto.
2843 (cygpackage::set_ldesc): Ditto.
2844 * cygpackage.h (cygpackage::Canonical_version): New method.
2845 (cygpackage::set_sdesc): New method.
2846 (cygpackage::set_ldesc): New method.
2847 (cygpackage::SDesc): New method.
2848 (cygpackage::LDesc): New method.
2849 (cygpackage::set_canonical_version): New method.
2850 * desktop.cc: Include packagedb headers.
2851 (make_password_group): Use packagemeta.
2852 * download.cc: Include packagedb headers.
2853 (check_for_cached): New method to find any cached file and fill out the database
2855 (download_one): Take a packagesource, support multiple mirrors.
2856 (do_download): Use packagemeta.
2857 * from cwd.cc: Include packagedb headers.
2858 (found_file): Use packagemeta.
2859 * ini.cc (do_ini): Beginning of multiple-mirror support.
2860 * ini.h (CategoryPackage): Remove.
2861 (Dependency): Remove.
2863 (new_package,getpkgbyname,getpackagecategorybyname,add_category): Remove.
2864 * inilex.l: Support multiple mirrors.
2865 * iniparse.y: Include packagedb headers.
2866 (parser): Use packagemeta.
2867 (new_package): Remove.
2868 (add_correct_version): New function.
2869 (new_requirement): Remove.
2870 (add_category): Remove.
2871 * install.cc (uninstall_one): Use packagemeta.
2872 (install_one_source): New function.
2873 (install_one): Use packagemeta.
2874 (do_install): Use packagemeta.
2875 * io_stream.cc (io_stream::move): Bugfix on move/copy case.
2876 * io_stream_cygfile.cc (io-stream_cygfile::set_mtime): Do not reopen the file
2877 after setting the mtime, it makes no sense, and results in 0 length files.
2878 * io_stream_file.cc (io-stream_file::set_mtime): Ditto.
2879 * list.h: New file, template class for a form of list.
2880 * package_db.cc (packagedb::registerpackage): New function.
2881 * package_db.h (packagedb::npackages ()): New method.
2882 * package_meta.cc (packagemeta::add_version): Use list template.
2883 (packagemeta::set_installed): Ditto.
2884 (packagemeta::add_category): New method.
2885 * package_meta.h: Include necessary headers to parse the class.
2886 (CategoryPackage): New class.
2887 (packagemeta): Initialise all members.
2888 (packagemeta::SDesc): New method.
2889 (packagemeta::Categories): New method.
2890 (packagemeta::add_category): Ditto.
2891 (packagemeta::versions): Change to be a list instance.
2892 * package_source.cc (packagesource::set_canonical): New method.
2893 (packagesource::set_cached): New method.
2894 * package_source.h: Include necessary headers to parse the class.
2896 (packagesource::packagesource): Initialize all members.
2897 (packagesource): Make this class non-abstract.
2898 * package_version.cc (packageversion::packageversion): New method.
2899 * package_version.h (Dependency): New class.
2900 (packageversion::Canonical_vesion): New method.
2901 (packageversion::SDesc): New method.
2902 (packageversion::LDesc): New method.
2903 (packageversion::new_requirement): Ditto.
2904 (packageversion::srcpicked, binpicked): What to install.
2905 (packageversion::src, bin): Installation source data.
2906 * rfc1738.cc: New file. Escapes special characters in URL's.
2909 2001-11-26 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2911 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Stop header parsing when
2912 SimpleSocket::gets() returns a zero-length string, so that we
2913 don't end up eating the entire stream thinking it's all header info.
2915 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
2917 * install.cc (badrename): Remove.
2918 (do_install): Use packagedb flush method to write /etc/setup/installed.db.
2919 * io_stream.cc (io_stream::move_copy): New method.
2920 (io_stream::move): New method.
2921 * io_stream.h (io_stream): New methods move and move_copy.
2922 * io_stream_cygfile.cc (io_stream_cygfile::move): New method.
2923 * io_stream_cygfile.h (io_stream_cygfile): New method move.
2924 * io_stream_file.cc (io_stream_file::move): New method.
2925 * io_stream_file.h (io_stream_file): New method move.
2926 * package_db.cc (packagedb::flush): New method.
2927 * package_db.h (packagedb): New method flush.
2929 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
2931 * Makefile.in (OBJS): Add package_version.
2932 * ategory.cc (Category::Category): Update constructors.
2933 * category_list.cc (CategoryList::register_category): Insert correctly.
2934 * choose.cc: Include package_version.h, not package.h.
2935 * cygpackage.cc: Ditto.
2936 (cygpackage::uninstall): New method.
2937 * cygpackage.h (cygpackage): Rename genericpackage to packageversion.
2938 New method uninstall.
2939 * hash.cc (add, has, enumerate): Change prototype to be accurate.
2940 * hash.h (hash): Change prototypes to be accurate.
2941 * ini.h (_Info): New parameterless constructor.
2942 (CategoryPackage): New constructor.
2944 * install.cc: Don't include unneeded headers.
2945 Include package database headers.
2946 (hash::add_subdirs): Remove.
2947 (uninstall_one): Use packagemeta->uninstall to perform the uninstallation.
2948 Don't uninstall source packages.
2949 (do_install): Just can uninstall_one once as we ignore source packages now.
2950 Don't copy the installed.old database accross, instead iterate through the
2951 packagedb packages list and write the isntalled packages out.
2952 * package_db.cc: Include package_version.h, not package.h.
2953 (packagedb::packagedb): Never let db be undefined.
2954 Record the installation filename, so we can reconstruct installed.db.
2955 (packagedb::addpackage): Insert packages in alpha sorted order.
2956 (packagedb::categories): Initialise correctly.
2957 * package_meta.cc: Include win32 and mount headers as a workaround to
2958 current io_stream limitations. Include a TODO about that.
2959 (standard_dirs): New, from install.cc.
2960 (hash::add_subdirs): New, from install.cc.
2961 (packagemeta::set_installed): Rename genericpackage to packageversion.
2962 (packagemeta::uninstall): New method.
2963 * package_meta.h: Rename genericpackage to packageversion.
2964 (packagemeta): Update constructor.
2965 (add_version, set_installed): Rename genericpackage to packageversion.
2966 (uninstall): New method.
2967 (installed_from): New member.
2968 * package_source.cc: New file.
2969 * package_source.h: New file.
2970 * package_version.cc: New file.
2971 * package_version.h: New file.
2972 * package.cc: Removed.
2973 * package.h: Removed.
2975 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
2977 * Makefile.in (OBJS): Add category.o and category_list.o.
2978 * category.h: New file.
2979 * category.cc: New file.
2980 * category_list.h: New file.
2981 * category_list.cc: New file.
2982 * choose.cc: Include category headers.
2983 (fill_missing_category): Use package_db to access global categories.
2984 (_view::insert_pkg): Ditto.
2985 (_view::insert_category): Ditto.
2986 (set_view_mode): Ditto.
2987 (getcategorybyname): Remove.
2988 * cygpackage.h: Include category_list.h to parse this correctly.
2989 (cygpackage): New virtual &Categories.
2990 * ini.h (_CategoryPackage): More C to C++ conversion.
2992 (getcategorybyname): Remove.
2993 (register_category): Remove.
2994 * iniparse.y: Include package db and category headers.
2995 (categories): Use package_db to access global categories.
2997 (ncategories): Remove.
2998 (register_category): Remove.
2999 * package.h: New virtual &Categories.
3000 * package_db.cc (packagedb::packagedb): Don't read the installed db twice.
3001 (packagedb::categories): Declare.
3002 * package_db.h (packagedb): New member categories for global categories list.
3004 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
3006 * choose.h: Don't include ini.h
3007 * ini.h: Allow pure c++ in the header file.
3009 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
3011 * install.cc (do_install): Write a version 2 installed.db file.
3012 * package_db.cc (packagedb::packagedb): Read version 1 and 2 installed.db files.
3014 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
3016 * Makefile.in (OBJS): Add package abstraction objects.
3017 * choose.cc: Include package abstraction headers.
3018 (read_installed_db): Use packagedb class and ignore installed sources.
3019 * cygpackage.cc: New file.
3020 * cygpackage.h: New file.
3021 * filemanip.h (get_file_size): Use unixy types.
3022 * package.h: New file.
3023 * package.cc: New file.
3024 * package_db.cc: New file.
3025 * package_db.h: New file.
3026 * package_meta.cc: New file.
3027 * package_meta.h: New file.
3029 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
3031 * REAME: Updates to wishlist.
3033 2001-11-16 Robert Collins <rbtcollins@hotmail.com>
3035 * README: Updated and added my list of wishlist and todo items.
3037 2001-11-14 Robert Collins <rbtcollins@hotmail.com>
3039 * Makefile.in (OBJS): Include io_stream_memory in setup.exe.
3040 * archive_tar.cc (archive_tar::write): New prototype.
3041 (archive_tar::seek): New method.
3042 * archive.h (archive_tar_file): Update write() and add seek().
3043 (archive_tar): Ditto.
3044 * archive_tar_file.cc (archive_tar_file::write): New prototype.
3045 (archive_tar_file::seek): New method.
3046 * compress_bz.cc (compress_bz::write): New prototype.
3047 (compress_bz::seek): New function.
3048 * compress_bz.h (compress_bz): Update write() and add seek().
3049 * compress_gz.cc (compress_gz::write): New prototype.
3050 (compress_gz::seek): New function.
3051 * compress_gz.h (compress_gz): Update write() and add seek().
3052 * geturl.cc: Include io_stream headers.
3054 (get_url_to_string): Use a io_stream_memory buffer instead of GUBuf.
3055 * io_stream.h (io_stream_seek_t): New enum.
3056 (io_stream): Update write() and add seek().
3057 * io_stream_cygfile.cc (io_stream_cygfile::write): New prototype.
3058 (io_stream_cygfile::seek): New function.
3059 * io_stream_cygfile.h (io_stream_cygfile): Update write() and add seek().
3060 * io_stream_file.cc (io_stream_file::write): New prototype.
3061 (io_stream_file::seek): New function.
3062 * io_stream_file.h (io_stream_file): Update write() and add seek().
3064 2001-11-13 Brian Keener <bkeener@thesoftwaresource.com>
3066 * localdir.cc: Add headers unistd.h and port.h.
3067 (save_local_dir): Expand search logic to include local directory for
3068 location of file last-cache.
3069 (dialog_cmd): Skip IDD_ROOT when downloading and use Back button.
3070 (do_local_dir): Expand search logic to include local directory for file
3072 * res.rc (IDD_CHOOSE_DIALOG): Add hotkey to View button.
3073 * Source.cc (dialog_cmd): Skip IDD_ROOT if select Download from
3075 (do_source): Default to Install from Internet on first entry or
3076 previous selection if backing up from IDD_ROOT or IDD_LOCAL_DIR.
3078 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
3080 * choose.cc (find_tar_ext): Only match at the end of the string.
3081 (getpkgbyname): Prevent NULL pointer dereference.
3083 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
3085 * Makefile.in (CFLAGS): Add warnings and -Werr.
3086 (WARNONLY_FLAGS): For sources that produce (harmless) errors no matter what.
3087 (OBJS): Add io_stream class' objects.
3088 (autoload.o): Use WARNONLY_FLAGS.
3090 (iniparse.o): Ditto.
3091 * archive.cc: New file.
3092 * archive.h: New file.
3093 * archive_tar.cc: New file.
3094 * archive_tar.h: New file.
3095 * archive_tar_file.cc: New file.
3096 * autoload.c: Fix compiler warnings (unused, deprecated conversion).
3097 * choose.cc: Use io_stream.h, not mount.h.
3099 (find_tar_ext): Rewritten to use strstr, and to accept .tar as an extension.
3100 (read_installed_db): Use io_streams.
3101 * choose.h: Run indent.
3102 * compress.cc: New file.
3103 * compress.h: New file.
3104 * compress_bz.cc: New file.
3105 * compress_bz.h: New file.
3106 * compress_gz.cc: New file.
3107 * compress_gz.h: New file.
3108 * concat.cc: Run indent.
3109 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3110 * concat.h: Run indent.
3111 * desktop.cc: Run indent.
3112 Include mklink2.h rather than redefining by hand.
3113 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3114 (etc_profile): Fix compiler warning (deprecated conversion).
3115 (make_link): Fix compiler warning (deprecated conversion).
3116 Tidy up use of args variable - consolidate into argbuf.
3117 (start_menu): Fix compiler warning (deprecated conversion).
3118 (desktop_icon): Fix compiler warning (deprecated conversion).
3119 (make_etc_profile): Fix compiler warning (deprecated conversion).
3120 (uexists): Fix compiler warning (deprecated conversion).
3121 (check_desktop): Fix compiler warning (deprecated conversion).
3122 (check_startmenu): Fix compiler warning (deprecated conversion).
3123 * dialog.cc: Run indent.
3124 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3125 (fatal): Fix compiler warning (deprecated conversion).
3126 * dialog.h: Run indent.
3127 * diskfull.cc: Run indent.
3128 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3129 * download.cc: Run indent.
3130 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3131 (download_one): Fix compiler warning (signed vs unsigned comparison).
3132 * filemanip.h: Run indent.
3133 * find.cc: Run indent.
3134 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3135 (find): Fix compiler warning (deprecated conversion).
3136 * find.h: Run indent.
3137 * fromcwd.cc: Run indent.
3138 * geturl.cc: Run indent.
3139 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3140 (dialog_cmd): Return a value.
3141 (dialog_proc): Remove unused variables.
3143 (get_url_to_file): Fix compiler warning (deprecated conversion).
3144 * geturl.h: Run indent.
3145 * hash.cc: Run indent.
3146 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3147 * hash.h: Run indent.
3148 * ini.cc: Run indent.
3150 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3151 (do_ini): Use io_streams for local io.
3152 * ini.h: Run indent.
3153 * inilex.l (ignore_line): Fix compiler warning (is not a prototype).
3154 Fix compiler warning (brackets for truth assignment).
3155 * install.cc: Run indent.
3156 Fix compiler warning (/* in comment).
3158 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3159 (dialog_cmd): Return a value.
3160 (dialog_proc): Return a value.
3161 (start_tics): Deleted - was unused.
3162 (badrename): Fix compiler warnings (unused, deprecated conversion).
3163 (standard_dirs): Fix compiler warning (deprecated conversion).
3165 (uninstall_one): Convert to io_streams.
3166 (install_one): Convert to io_streams.
3167 (do_install): Convert to io_streans.
3168 Fix compiler warning (deprecated conversion).
3169 * io_stream.cc: New file.
3170 * io_stream.h: New file.
3171 * io_stream_cygfile.cc: New file.
3172 * io_stream_cygfile.h: New file.
3173 * io_stream_file.cc: New file.
3174 * io_stream_file.h: New file.
3175 * localdir.cc: Run indent.
3177 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3178 (get_root_dir_now): Remove.
3179 (save_local_dir): Convert to io_streams.
3180 (dialog_cmd): Return a value.
3181 (do_local_dir): Convert to io_streams.
3182 (log.cc): Run indent.
3183 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3184 (log): Fix compiler warning (deprecated conversion).
3185 (log_save): Fix compiler warning (deprecated conversion).
3186 * log.h: Run indent.
3187 (log): Fix compiler warning (deprecated conversion).
3188 (log_save): Fix compiler warning (deprecated conversion).
3189 * main.cc: Run indent.
3190 Don't include "netio.h".
3191 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3192 (netio_test): Remove.
3193 (sid_auth): Fix compiler warning (partially bracketed initialiser).
3194 (WinMain): Return a value.
3195 * mkdir.cc: Run indent.
3196 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3197 * mklink2.c: Run indent.
3198 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3199 (mkcygsymlink): New function.
3200 * mklink2.h: New file.
3201 * mount.cc: Run indent.
3202 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3203 (create_mount): Remove unused variables.
3204 (cygpath): Fix compiler warning (signed vs unsigned comparison).
3205 * mount.h: Run indent.
3206 * msg.cc: Run indent.
3207 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3208 (msg): Fix compiler warning (deprecated conversion).
3209 (mbox): Fix compiler warning (deprecated conversion).
3210 * msg.h: Run indent.
3211 (msg): Fix compiler warning (deprecated conversion).
3212 * net.cc: Run indent.
3213 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3214 (dialog_cmd): Return a value.
3215 * netio.cc: Run indent.
3216 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3217 (auth_cmd): Return a value.
3218 * netio.h: Run indent.
3219 * nio-file.cc: Run indent.
3220 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3221 (NetIO_File::NetIO_File): Fix compiler warning (deprecated conversion).
3222 * nio-file.h: Run indent.
3223 * nio-ftp.cc: Run indent.
3224 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3225 * nio-ftp.h: Run indent.
3226 * nio-http.cc: Run indent.
3227 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3228 * nio-http.h: Run indent.
3229 * nio-ie5.cc: Run indent.
3230 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3231 * nio-ie5.h: Run indent.
3232 * other.cc: Run indent.
3233 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3234 (dialog_cmd): Return a value.
3235 * port.h: Run indent.
3236 * postinstall.cc: Run indent.
3237 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3238 (cmd): Fix compiler warning (deprecated conversion).
3239 (eun): Fix compiler warning (deprecated conversion).
3240 * root.cc: Run indent.
3241 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3242 * simpsock.cc: Run indent.
3243 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3244 * simpsock.h: Run indent.
3245 * site.cc: Run indent.
3247 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3248 (get_root_dir_now): Remove.
3249 (save_site_url): Convert to io_streams.
3250 (dialog_cmd): Return 0.
3251 (get_initial_list_idx): Convert to io_streans.
3252 * source.cc: Run indent.
3253 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3254 (check_if_enable_next): Remove.
3255 (load_dialog): Remove unused variables.
3256 (save_dialog): Ditto.
3257 (dialog_cmd): Return a value.
3258 * splash.cc: Return a value.
3259 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3260 (dialog_cmd): Return a value.
3261 * state.cc: Run indent.
3262 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3263 * state.h: Run indent.
3267 2001-11-12 Christopher Faylor <cgf@redhat.com>
3269 * desktop.cc (start_menu): Change start menu name to "Cygwin".
3270 (check_startmenu): Ditto.
3272 2001-11-11 Christopher Faylor <cgf@redhat.com>
3274 * choose.cc (parse_filename): Finish reorganization by correctly
3275 decrementing p in memmove.
3277 2001-11-11 Christopher Faylor <cgf@redhat.com>
3279 * choose.cc (parse_filename): Reorganize code to work around gcc
3280 optimization problem.
3282 2001-11-09 Gareth Pearce <tilps@hotmail.com>
3284 * choose.cc (set_action): Allow skip as an option for installed
3285 packages that have version number not listed in setup.ini.
3287 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
3289 * choose.cc (set_cation): Backout last change.
3290 (choose_caption): Ditto.
3292 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
3294 * ini.h (actions): Remove - transferred to choose.h.
3296 * choose.h: Protect class's from "C" compilers.
3297 (actions): New enum, from ini.h. This may not be the 'right' place
3298 but that place doesn't exist yet.
3299 (_views): New enum, from ini.h.
3300 * choose.cc (set_action): Handle installed packages with a version not in
3302 (choose_caption): Ditto.
3303 * iniparse.y: Rearrange header order to handle new ini.h.
3305 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
3307 * ini.h (_Info): Fix compiler warnings (signed vs unsigned comparison).
3308 (registry_category): Fix compiler warning (deprecated conversion).
3309 * iniparse.y (registry_category): Ditto.
3310 * choose.cc (cvsid): Fix compiler warnings (unused, deprecated conversion).
3311 (add_requried): Remove unused variable.
3312 (choose_caption): Handle all enumeration values via a default.
3313 (paint): Fix compiler warnings (unused, deprecated conversion).
3314 (scroll_common): Fix compiler warnings (unused, signed vs unsigned comparison).
3315 (list_clicK): Fix compiler warnings (signed vs unsigned comparison).
3316 (note_width): Fix compiler warnings (deprecated conversion).
3317 (keep_or_skip): Fix compiler warnings (unused).
3318 (_view::mode_caption): Fix compiler warnings (deprecated conversion).
3319 (set_view_mode): Fix compiler warnings (unused).
3320 (create_listview): Fix compiler warnings (unused, incorrect format, reaches
3322 (dialog_proc): Fix compiler warnings (unused).
3323 (read_installed_db): Fix compiler warnings (unused, deprecated conversion).
3324 * choose.h (_header): Fix compiler warnings (deprecated conversion).
3327 2001-11-08 Pavel Tsekov <ptsekov@syntrex.com>
3329 * simpsock.h (SimpleSocket::invalidate): Declare new method.
3330 * simpsock.cc (SimpleSocket::invalidate): Implement new method.
3331 (SimpleSocket::SimpleSocket): Initialize buf to zero. Do not allocate
3332 memory for buf in the constructor.
3333 (SimpleSocket::~SimpleSocket): Use SimpleSocket::invalidate().
3334 (SimpleSocket::printf): Use SimpleSocket::write() instead of send().
3335 (SimpleSocket::write): Check object consistency - return -1 on error.
3336 invalidate() the object on socket write error.
3337 (SimpleSocket::fill): Check object consistency - return -1 on error.
3338 invalidate() the object if socket read error is encountered and there
3339 is no more data available in the internal read buffer.
3340 Allocate memory for the internal read buffer.
3341 (SimpleSocket::gets): Return zero (NULL pointer) if error is encountered
3342 during fill() and no more data is available in the internal read buffer.
3343 (SimpleSocket::read): Check object consistency - return -1 on error.
3344 invalidate() the object if socket read error is encountered.
3345 * nio-ftp.cc (NetIO_FTP:NetIO_FTP): Allow 125 as valid response code to
3346 the RETR command (fix for MS IIS ftp server 5 - possibly others too).
3347 (NetIO_FTP::ok): Check if the SimpleSocket object is ok().
3348 (NetIO_FTP::read): Use NetIO_FTP::ok().
3349 * nio-http.cc: Check for valid return value of SimpleSocket::gets().
3350 (NetIO_HTTP::ok): Check if the SimpleSocket object is ok().
3352 2001-11-09 Robert Collins <rbtcollins@hotmail.com>
3354 * simpsock.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3355 (SimpleSocket::SimpleSocket): Avoid compiler warnings (deprecated conversion).
3356 (SimpleSocket::printf): Ditto.
3357 (SimpleSocket::write): Ditto.
3358 * simpsock.h (SimpleSocket): Avoid compiler warnings for constructor,
3360 * nio-ftp.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3361 (NetIO_FTP::NetIO_FTP): Remove unused variable done.
3362 * nio-http.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3364 2001-11-07 Charles Wilson <cwilson@ece.gatech.edu>
3366 * geturl.cc (get_url_to_string): clean up memory leak
3367 (get_url_to_file): ditto
3369 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
3371 * localdir.cc (dialog_cmd): Go back to IDD_ROOT in every case.
3372 * source.cc (dialog_cmd): Go forward to IDD_ROOT in every case.
3374 2001-11-06 Pavel Tsekov <ptsekov@syntrex.com>
3376 * fromcwd.cc (found_file): Free() memory containing the version and
3377 filepath information for a given package, before replacing the pointers which
3378 reference this memory.
3380 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
3382 * fromcwd: Fix compiler warnings for cvsid.
3383 (canonicalize_version): Fix compilter warnings.
3384 (do_fromcwd): Ditto.
3385 * version.h: Fix compiler warnings for canonicalize_version.
3387 2001-11-03 Robert Collins <rbtcollins@hotmail.com>
3389 * res.rc (IDD_CHOOSE): Move the view caption to the right hand side.
3391 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3393 * res.rc (IDD_CHOOSE): Tweak for use on a 640x480 screen.
3395 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3397 * choose.cc (set_action): Correctly allow skip for any uninstalled package.
3399 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3401 * choose.cc (default_trust): Change the "Required" forced install category to
3404 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3406 * choose.cc: Ran indent.
3407 (set_action): When the requested trust level is missing and the level was not
3408 user requested, set the action to ACTION_SAME_CURR.
3410 2001-11-01 Christopher Faylor <cgf@redhat.com>
3412 * Makefile.in (mingw_getopt.o): Fix typo in non-verbose compilation.
3414 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3416 * choose.cc (_view::init_headers): Resync with the paint logic.
3418 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3420 * choose.cc (add_required): Allow SKIP and SRC_ONLY for currently installed
3423 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3425 * choose.cc (default_trust): Autoset currently installed packages per the user's
3426 selection of prev/curr/exp.
3428 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3430 * splash.cc (dialog_proc): Return TRUE as specified in the WIN32 API.
3432 2001-11-02 Pavel Tsekov <ptsekov@syntrex.com>
3434 * geturl.cc (is_showing): Remove.
3435 (is_local_install): New static variable. Controls whether the
3436 progress dialog and the supporting thread will be created.
3437 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the WIN32 API.
3438 (init_dialog): Remove usage of SetForegroundWindow and is_showing.
3439 This prevents the progress dialog to gain control over the
3440 application and fixes the "setup.exe going to background" problem.
3441 (progress): Use is_local_install.
3442 (get_url_to_string): Set is_local_install.
3443 (dismiss_url_status_dialog): Use is_local_install.
3444 * install.cc (dialog_proc): Return TRUE as specified in WIN32 API.
3445 (init_dialog): Remove usage of SetForegroundWindow.
3446 This prevents the progress dialog to gain control over the
3447 application and fixes the "setup.exe going to background" problem.
3449 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3451 * choose.cc (list_click): Change r to row for clarity.
3452 When we shrink the list below 1 page, scroll to the top of the list.
3453 (_view::click): Return the actual change for contractions.
3454 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the Win32 API.
3456 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3458 * choose.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
3459 * localdir.cc: Ran indent.
3460 (get_root_dir_now): New function.
3461 (save_local_dir): New function.
3462 (dialog_cmd): Use it and swap cygwin root selection and local dir selection order.
3463 (do_local_dir): If there is a saved local dir, read it in.
3464 * net.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
3465 * root.cc (dialog_cmd): Ditto.
3466 * source.cc (dialog_cmd): Ditto.
3468 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
3470 * choose.cc(list_vscroll): Return 0 as required by win32.
3471 (list_hscroll): Ditto.
3472 (list_click): Ditto.
3474 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
3478 * main.cc(WinMain): Use __argv to retrieve command line parameters.
3479 * Makefile,in: Remove argv.o.
3481 2001-11-01 Matt Hargett <matt@use.net>
3483 * geturl.cc (progress): Change int to unsigned int to eliminate
3485 * (get_url_to_string): Check for NULL pointer.
3486 * mount.cc (find2): Use free instead of delete for malloc'd
3488 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Fix memory leak.
3490 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
3492 * choose.cc(_view::insert_under): Handle linen > nlines and lines[linen] with neither
3493 a package nor a category. The lines[linen] bug was reported by Matt (matt@usa.net).
3494 (read_installed_db): Bugfix for testing whether a package has a source tarball.
3495 Reported by Matt (matt@usa.net).
3496 * geturl.cc(dialog): Rename gw_dialog to local_gw_dialog to avoid programmer
3497 confusion and lint errors. Reported by Matt (matt@usa.net).
3499 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
3501 * argv.cc: New file, converts arguments for -mwindows programs. (Simplified derivation
3504 * Makefile,in: Add argv.o and mingw_getopt.o to setup.exe object list.
3505 Add mingw_getopt.o build rule.
3506 * main.cc(WinMain): Initialise argv and argc for use by getopt.
3508 2001-10-27 Christopher Faylor <cgf@redhat.com>
3510 * res.rc: Rearrange info on top line slightly.
3512 2001-10-27 Christopher Faylor <cgf@redhat.com>
3514 * desktop.cc (make_passwd_group): Move file creation earlier in the
3515 process to ensure that passwd-grp.bat reflects desired operation.
3517 2001-27-10 Trevor Forbes <t4bs@hotmail.com>
3519 * postinstall.cc (each): Remove "*.done" file else rename will fail.
3521 2001-10-16 Christopher Faylor <cgf@redhat.com>
3523 * res.rc: Oops. Take 640x480 screen size into account.
3525 2001-10-16 Christopher Faylor <cgf@redhat.com>
3527 * res.rc: Enlarge chooser screen.
3529 2001-10-12 Christopher Faylor <cgf@redhat.com>
3531 * Makefile.in: Accomodate changes to w32api_include macro.
3533 2001-10-12 Christopher Faylor <cgf@redhat.com>
3535 * Makefile.in: Use correct flags for windres.
3537 2001-10-12 Christopher Faylor <cgf@redhat.com>
3539 * Makefile.in (CFLAGS): Remove -nostdinc from CFLAGS.
3541 2001-10-12 Christopher Faylor <cgf@redhat.com>
3543 * choose.cc (pick_line::paint): Reorganize after botched patch.
3545 2001-10-12 Christopher Faylor <cgf@redhat.com>
3547 * choose.cc (pick_line::paint): Add missing declaration.
3549 2001-10-10 Ralf Habacker <Ralf.Habacker@freenet.de>
3551 * choose.cc (pick_line::paint): Add package name to sdesc for display.
3553 Wed Sep 26 21:39:00 Robert Collins rbtcollins@hotmail.com
3555 * choose.cc (_view::insert_pkg): Correctly exit loop.
3556 * iniparse.y (register_category): Always insert new categories.
3558 Fri Sep 21 13:56:32 2001 Christopher Faylor <cgf@cygnus.com>
3560 * inilex.l (yylex): For comments, eat all characters up to, but not
3563 Sun Aug 26 12:50:01 2001 John Marshall <jmarshall@acm.org>
3565 * fromcwd.cc (found_file): Use correct package name when adding an
3566 unknown package rather than random stack garbage.
3568 Sun Aug 12 14:25:21 2001 Christopher Faylor <cgf@cygnus.com>
3570 * desktop.cc (make_passwd_group): .bat files need \r\n endings.
3572 Wed Aug 8 13:53:47 2001 Christopher Faylor <cgf@cygnus.com>
3574 * desktop.cc (etc_profile): Leave environment variables untouched.
3576 2001-08-07 Corinna Vinschen <corinna@vinschen.de>
3578 * autoload.c: Add dynamic load statements for NT/W2K
3579 advapi32 functions not available in 9x/ME.
3580 * main.cc (set_default_dacl): New function.
3581 (WinMain): Call `set_default_dacl' if running on NT/W2K.
3583 Sat Aug 4 21:35:53 2001 Christopher Faylor <cgf@cygnus.com>
3585 * ini.h (_CategoryPackage): Change pkg field to pkgname for
3587 * choose.cc: Use pkgname field when referencing _CategoryPackage
3589 (fill_missing_category): Don't add excluded packages.
3590 (default_trust): Ditto.
3591 (_view::insert_pkg): Ditto.
3592 * iniparse.y (register_category): Use consistent variable name.
3594 2001-07-09 Egor Duda <deo@logos-m.ru>
3596 * choose.cc: Use system foreground color for text output.
3598 Sat Jul 7 00:40:28 2001 Christopher Faylor <cgf@cygnus.com>
3600 * choose.cc (set_action): Use default trust for determining reinstall
3602 (default_trust): Set default trust.
3603 (pick_line::paint): Allow source selection when reinstalling or
3606 Fri Jul 6 18:08:49 2001 Christopher Faylor <cgf@cygnus.com>
3608 * choose.cc (isinstalled): Modify to properly accomodate special case
3610 (set_action): Check downloaded components, not installed components if
3612 (set_existence): Always include full list of files when "download
3615 Fri Jul 6 00:37:05 2001 Christopher Faylor <cgf@cygnus.com>
3617 * choose.cc (pick_line::paint): Properly display "na" field when no
3620 Thu Jul 5 00:34:23 2001 Christopher Faylor <cgf@cygnus.com>
3622 * choose.cc (scan2): Ensure that older versions do not show up in
3625 Mon Jul 2 15:47:59 2001 Christopher Faylor <cgf@cygnus.com>
3627 * choose.cc (set_action): Allow "Skip" action if trust != installed.
3628 * res.rc: Fix copyright.
3630 Sat Jun 30 14:05:21 2001 Michael A Chase <mchase@ix.netcom.com>
3632 * res.rc (IDD_LOCAL_DIR): Change caption to match the other dialog
3634 (IDD_CHOOSE): Adjust horizontal size so package names are visible.
3636 * choose.cc: Restore some more changes from 2001-06-25, throughout.
3637 (paint): Wrap some excessively long lines.
3638 (pick_line::paint): Ditto. Move the arrow in the "Current" column
3639 right to where it belongs. Move the source checkbox slightly to the
3641 (do_choose): List categories and required packages in setup.log.full.
3643 Sat Jun 30 23:04:59 2001 Christopher Faylor <cgf@cygnus.com>
3645 * choose.cc (scan2): Restore source scanning eliminated by previous checkin.
3647 Sat Jun 30 15:18:33 2001 Christopher Faylor <cgf@cygnus.com>
3649 * ini.h (struct _Info): Add "derived" element.
3650 * choose.cc (scan2): Try to place unknown tar files into proper slot
3651 when package exists in setup.ini but tar file does not.
3653 Sat Jun 30 13:39:00 2001 Robert Collins <rbtcollins@hotmail.com>
3655 * choose.cc (create_listview): Call set_view_mode with VIEW_CATEGORY.
3656 (do_choose): Log the first category name.
3658 Fri Jun 29 23:07:44 2001 Christopher Faylor <cgf@cygnus.com>
3660 *ini.h: Reapply 2001-06-25 changes.
3661 * choose.cc (add_required): Ditto. Default to "Keep" state if
3662 UNINSTALL and product is installed. Default to curr state if SKIP,
3664 (keep_or_skip): New function. Returns skip or keep state depending on
3665 installed state of package.
3666 (default_trust): Use keep_or_skip to set state.
3667 (_view::insert_pkg): Use calloc to allocate lines.
3668 (set_view_mode): Adapt 2001-06-25 change to set_full_list here.
3670 Sat Jun 30 11:01:00 2001 Robert Collins <rbtcollins@hotmail.com>
3672 * choose.cc: Remove globals full_list, headers, package_indexes and
3674 Add globals cat_headers, pkg_headers and chooser.
3675 (add_required): New function.
3676 (paint): Use the chooser for header details.
3677 Call into the chooser to paint each line.
3678 (list_click): Use new global variables.
3679 Call into the chooser to handle the click.
3680 Repaint the entire view if packages have been added or removed.
3681 (note_width): Get passed a headers struct rather than using a global
3683 (fill_missing_category): New function.
3684 (default_trust): Skip non-"Required" or "Misc" packages.
3685 (pick_line::set_line (Package *)): New function.
3686 (pick_line::set_line (Category *)): New function.
3687 (pick_line::paint): New function.
3688 (pick_line::click): New function.
3689 (_view::_view): New function.
3690 (_view::set_view_mode): New function.
3691 (_view::mode_caption): New function.
3692 (_view::set_headers): New function.
3693 (_view::init_header): New function.
3694 (_view::insert_pkg): New function.
3695 (_view::insert_category): New function.
3696 (_view::insert_at): New function.
3697 (_view::insert_under): New function.
3698 (_view::clear_view): New function.
3699 (viewsplusplus): New function.
3700 (_view::client): New function.
3701 (set_view_mode): Use new chooser functionality.
3702 (set_full_list): Use new global variables.
3703 (create_listview): Instantiate chooser.
3704 Remove all hardcoded headers[] code.
3705 (dialog_cmd): On trust changes, check dependencies.
3706 (getcategorybyname): New function.
3707 (getpackagecategorybyname): New function.
3708 (scan2): Use case-insensitive package comparison.
3709 (do_choose): Use fill_missing_category ().
3710 Show some category data.
3711 * ini.h: Protect against multiple inclusion.
3713 (_CategoryPackage): New struct.
3714 (_Category): New struct.
3715 (_Package): Change category to Category * from char *.
3716 (extern Category category): New global variable.
3717 (extern in ncategories): Ditto.
3718 (getcategorybyname): New prototype.
3719 (catpackagecategorybyname): New prototype.
3720 (register_category): New prototype.
3721 (add_category): New prototype.
3722 * iniparse.y: Parse multiple categories per package.
3723 (category): New global variable.
3724 (ncategories): New global variable.
3725 (new_package): Compare package against NULL, not 0.
3726 (new_requirement): Source formatting fix.
3727 (register_category): New function.
3728 (add_category): New function.
3729 * res.rc: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
3730 IDC_CHOOSE_VIEWCAPTION: New control.
3731 * resource.h: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
3732 IDC_CHOOSE_VIEWCAPTION: New control.
3733 Increment _APS_NEXT_CONTROL_VALUE.
3735 Mon Jun 25 00:56:37 2001 Michael A Chase <mchase@ix.netcom.com>
3737 * choose.cc (paint): Wrap excessively long lines.
3738 (list_click): Ditto.
3739 (create_listview): Ditto.
3740 (do_choose): Ditto. Replace TABs and remove CRs in lines written to
3741 setup.log.full. Allow "Yes" for source exists in setup.log.full when
3742 installing from local directories.
3744 Mon Jun 25 00:56:37 2001 Christopher Faylor <cgf@cygnus.com>
3746 * choose.cc (set_action): Only clear srcpicked when moving to next
3747 state. Allow source installation if it exists in the current "trust"
3748 state. Don't move to skip state when package is installed.
3749 (list_click): Don't allow source clicking when no source is available.
3750 (set_full_list): Display package when not is_full_action.
3751 * ini.h (is_full_action): Define.
3753 Sun Jun 17 12:06:14 2001 Christopher Faylor <cgf@cygnus.com>
3755 * install.cc (check_for_old_cygwin): New function. First stab at
3756 checking for old cygwin versions.
3757 (do_install): Call check_for_old_cygwin if there were no errors during
3760 Sat Jun 16 11:33:51 2001 Michael A Chase <mchase@ix.netcom.com>
3762 * choose.cc (_Info::_Info): Test _source paramenter for non-NULL rather
3763 than zeroed "source" element.
3765 Fri Jun 15 20:54:43 2001 Christopher Faylor <cgf@cygnus.com>
3767 * choose.cc (scan2): Insert unknown tar archives, found on disk, into
3768 the highest available "hole" in the trust array.
3770 Fri Jun 15 00:20:48 2001 Christopher Faylor <cgf@cygnus.com>
3772 * choose.cc (set_existence): Use pointer method for indexing in trust
3774 (create_listview): Ditto.
3775 (scan2): Ditto. Also, use consistent variable name for indexing into
3777 * ini.h (Package): Reorganize info array for easier scanning.
3779 Fri Jun 15 00:01:51 2001 Christopher Faylor <cgf@cygnus.com>
3781 * choose.cc (isinstalled): Eliminate special download only test.
3782 (set_action): Don't move to next state if in ACTION_SAME range and not
3784 (choose_caption): Display "Retrieve" rather than "Reinstall" when just
3786 (do_choose): Sort packages after all packages have been read.
3787 Accomodate the fact that first element in trust array is empty so that
3788 log files don't report the wrong trust value.
3789 * iniparse.y (new_package): Malloc space for package name or suffer
3792 Thu Jun 14 22:43:59 2001 Robert Collins <rbtcollins@hotmail.com>
3794 * ini.h (Dependency): New structure. Declare new function.
3795 * inilex.l (yylex): Detect new setup.ini options - category and requires.
3796 * iniparse.y: Declare new setup.ini token values.
3797 (yyparse): Parse new token values.
3798 (new_requirement): New function.
3800 Thu Jun 14 22:43:26 2001 Christopher Faylor <cgf@cygnus.com>
3802 * choose.cc (read_installed_db): Eliminate obsolete code.
3804 Thu Jun 14 22:11:53 2001 Christopher Faylor <cgf@cygnus.com>
3806 * choose.cc (set_action): Set trust on "redo".
3807 (_Info::_Info): New constructor.
3808 (read_installed_db): Use new constructor. Use trusts type for
3810 * ini.h (struct _Info): Label struct, add constructor.
3811 (Package): Make installed_ix a type 'trusts.'
3812 * install.cc (uninstall_one): Unset any installed info for current
3814 (install_one): Allocate new Info struct for installed reflecting new
3816 (do_install): Don't output line to installed.db if package is being
3819 Thu Jun 14 20:33:01 2001 Robert Collins <rbtcollins@hotmail.com>
3821 * choose.cc (getpkgbyname): Use consistent method for scanning package
3824 Wed Jun 13 23:33:08 2001 Christopher Faylor <cgf@cygnus.com>
3826 * choose.cc: Add some comments.
3827 (getpkgbyname): Use strcasecmp for comparisons.
3829 Wed Jun 13 16:07:00 2001 Christopher Faylor <cgf@cygnus.com>
3831 * install.cc (do_install): Avoid checking for download action if
3832 package wasn't currently retrieved.
3834 Wed Jun 13 11:27:22 2001 Christopher Faylor <cgf@cygnus.com>
3836 * choose.cc: Eliminate extra array throughout. Use element in package
3837 structure instead. Use pointers rather than array indexes where
3839 (set_action): New function to set next action based on current.
3840 (choose_caption): New function. Returns display caption.
3841 (check_existence): Change arguments. Use pointer to 'info' structure.
3842 (set_existence): Use pointer rather than array index.
3843 (default_trust): Use trusts enum for second argument.
3844 (set_full_list): Honor exclude element in package structure.
3845 (build_labels): Eliminate.
3846 (base): Make global. Use const char * argument.
3847 (get_package_version): Eliminate.
3848 (getpkgbyname): New function.
3849 (read_installed_db): Use parse_filename to get version info.
3850 * desktop.cc (make_passwd_group): Use getpkgbyname function.
3851 * download.cc (get_file_size): const argument.
3852 (do_download): Use is_download_action to determine when something
3853 should be downloaded.
3854 * filemanip.h: Add some functions.
3855 * ini.cc (do_ini): Use NULL rather than 0 for pointer assignment.
3856 * ini.h: Use enums for actions and trusts.
3857 (is_download_action): New macro.
3858 (is_upgrade_action): Ditto.
3859 (is_uninstall_action): Ditto.
3860 (struct Package): Add new fields.
3861 * inilex.l (yylex): Detect new setup.ini options.
3862 * iniparse.y: Declare new tokens.
3863 (yyparse): Detect exclude keyword. Fill out version field even if
3865 (new_package): Use greater granularity when allocating package array to
3866 avoid repeated calls to realloc.
3867 * install.cc (exists): const argument.
3868 (uninstall_one): Take pkg argument.
3869 (install_one): Ditto. Eliminate unneeded arguments which can be
3870 derived from package info.
3871 (do_install): Iterate over package array using a pointer. Use
3872 is_download_action to control when package should be downloaded.
3873 * tar.cc (tar_open): const argument.
3874 * tar.h: Refloect const argument.
3876 2001-05-31 Michael Chase mchase@ix.netcom.com
3878 * main.cc (WinMain): Add setup version to starting setup.log entry
3880 Tue May 29 21:37:58 2001 Yukihiko Sohda <sohda@is.titech.ac.jp>
3882 * inilex.l: Add + to list of valid string characters.
3884 Mon May 28 20:54:50 2001 Christopher Faylor <cgf@cygnus.com>
3886 * Makefile.in: Remove more stuff in the clean target.
3888 Mon May 28 18:24:59 2001 Christopher Faylor <cgf@cygnus.com>
3890 * Makefile.in: Correctly generate iniparse.h.
3892 Tue Mar 6 19:14:00 2001 Corinna Vinschen <corinna@vinschen.de>
3894 * geturl.cc (get_url_to_file): Add parameter `allow_ftp_auth'.
3895 * geturl.h: Change declaration of `get_url_to_file' accordingly.
3896 * netio.cc (NetIO::NetIO): Add parameter `allow_ftp_auth'.
3897 Set member `ftp_auth'.
3898 (NetIO::open): Add parameter `allow_ftp_auth'. Use it in calls
3899 to constructors of derived classes.
3900 (NetIO::get_ftp_auth): New method.
3901 * netio.h: Change class definition accordingly.
3902 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Add parameter `allow_ftp_auth'.
3903 Take global variables `net_ftp_user' and `net_ftp_passwd' into account.
3904 Add code for ftp authentication retry.
3905 * nio-ftp.h: Change class definition accordingly.
3906 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Add parameter `allow_ftp_auth'.
3907 Add code for ftp authentication retry in case of proxy connection.
3908 * nio-http.h: Change class definition accordingly.
3909 * res.rc: Add FTP authentication dialog.
3910 * resource.h: Add new constants used in res.rc.
3911 * state.h: Add variables `net_ftp_user' and `net_ftp_passwd'.
3913 Sun May 27 17:12:23 2001 Christopher Faylor <cgf@cygnus.com>
3915 * res.rc (IDD_SPLASH): Add a copyright year.
3917 Sun May 27 15:42:18 2001 Christopher Faylor <cgf@cygnus.com>
3919 * Makefile.in: Make iniparse.y produce a c++ file.
3920 * choose.cc (set_existence): Revert 2001-05-27 change.
3921 * ini.cc: Remove "C" from declaration of yyparse.
3922 * iniparse.y (yyparse): Fill out version field by default when a binary
3923 install is detected and no version has been set yet.
3924 * install.cc (do_install): Mount things earlier so that we can use
3925 proper mount table settings. Don't remove mounts since they are now
3927 * mount.cc (create_mount): Reread the mount table after establishing a
3929 (read_mounts): Explicitly clear root_here to allow multiple uses of
3930 this function. Ensure that there is no garbage in the table when we've
3931 exhausted all of the mounts in the registry.
3932 (cygpath): Accomodate ./ in path.
3934 Sun May 27 02:59:07 2001 Christopher Faylor <cgf@cygnus.com>
3936 Use parse_filename method to parse filenames throughout. Use
3937 get_root_dir to retrieve the current root directory throughout. Set
3938 const in argument list, where appropriate, throughout.
3939 * choose.cc (set_existence): Detect case of uninstalled package with no
3941 (parse_filename): New function.
3942 * filemanip.h (fileparse): New structure.
3943 * mount.cc (read_mounts): Remember where we found the root mount.
3944 (set_root_dir): New function.
3945 (get_root_dir): Ditto.
3946 * mount.h: Declare new functions.
3947 * site.cc (get_root_dir_now): Renamed from get_root_dir.
3948 (save_site_url): Use new function name.
3949 (get_initial_list_idx): Ditto.
3951 Sat May 26 21:23:59 2001 Christopher Faylor <cgf@cygnus.com>
3953 * choose.cc: Use a constant throughout to deal with chooser icon
3955 * res.rc (IDD_CHOOSE): Increase size of chooser box.
3957 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
3959 * choose.cc (do_choose): Fix incorrect assignment of trust setting to
3960 use when Redownload or Sources Only selected.
3962 Thu May 10 22:35:59 2001 Christopher Faylor <cgf@cygnus.com>
3964 Reformat file after botched patch formatting.
3965 * choose.cc (which_trust): Eliminate variable.
3966 (default_trust): Don't set which_trust.
3967 (do_choose): Use selected trust when reinstalling or installing source.
3969 Thu May 10 21:04:18 2001 Christopher Faylor <cgf@cygnus.com>
3971 Change concat to cygpath throughout.
3972 Change map_filename to cygpath throughout.
3973 * concat.cc (vconcat): New function.
3974 (concat): Use vconcat.
3975 * concat.h: Reflect above.
3976 * install.cc (map_filename): Eliminate.
3977 (install_one): Free dest_file.
3978 * mount.cc (find2): Expect input key to be pointing to mount record.
3979 (in_table): New function.
3980 (is_admin): Move from root.cc.
3981 (read_mounts): New function.
3982 (path_prefix_p): New function.
3983 (cygpath): New function.
3984 * mount.h: Define new functions and structure.
3985 * root.cc (in_table): Move to mount.cc.
3986 (do_root): Call read_mounts to initialize root stuff and mount table.
3987 * site.cc (get_root_dir): Ditto.
3989 2001-05-09 Matt Hargett <matt@use.net>
3991 * Makefile.in: Remove *.rc from clean.
3993 Tue May 8 23:33:38 2001 Christopher Faylor <cgf@cygnus.com>
3995 * choose.cc (scan2): Fix incorrect setting of TRUST_CURR rather than
3996 TRUST_PREV which produced "0" versions.
3998 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
4000 * resource.h: Add new field IDC_CHOOSE_INST_TEXT. Modify
4001 _APS_NEXT_CONTROL_VALUE to account for addition of
4002 IDC_CHOOSE_INST_TEXT.
4003 * res.rc (IDD_CHOOSE): Modify choose dialog to use new field
4004 IDC_CHOOSE_INST_TEXT for screen text. Modify choose Dialog to allow
4005 hot keys to select Prev, Curr, Exp.
4006 * ini.h: Add new actions for ACTION_REDO and ACTION_SRC_ONLY. Modify
4007 define for LOOP_PACKAGES to include new actions ACTION_REDO and
4009 * choose.cc: Add new Trusts for TRUST_REDO and TRUST_SRC_ONLY.
4010 (paint): Modify to check TRUST_SRC_ONLY when determining Bitmap for
4011 source Checkbox to use.
4012 (build_labels): Add logic to allow for selection of Source only
4013 Download/ReDownload/Install/Reinstall and also to Redownload/Reinstall
4014 current version binary.
4015 (dialog_proc): Add conditional display for file selection prompt based
4016 on download vs install using IDC_CHOOSE_INST_TEXT.
4017 (do_choose): Add new logic for TRUST_REDO and TRUST_SRC_ONLY selection
4018 and modify logic for TRUST_UNINSTALL, TRUST_KEEP, and TRUST_NONE to
4019 handle the instance where Source Download/Install was selected. Modify
4020 log file to store appropriate information regarding Action selected and
4021 the new actions that were added (I.E.: ACTION_REDO and
4023 * download.cc: Add include for <unistd.h> and "port.h".
4024 (download_one): Modify parameter list to include the selected action
4025 for the file to be downloaded. Modify size check against expected size
4026 to include check for ACTION_REDO and ACTION_SRC_ONLY. Modify rename of
4027 .tmp file to also remove the destination file if exists due to ability
4028 to redownload source and binary now.
4029 (do_download): Modify to also use ACTION_REDO and ACTION_SRC_ONLY in
4030 calculation of Download Bytes. Modify to also use ACTION_REDO and
4031 ACTION_SRC_ONLY in determining files selected for download.
4032 * install.cc (uninstall_one): Add check to treat a Reinstall like an
4033 upgrade so current version will be uninstalled prior to reinstall.
4034 (do_install): Add logic to handle ACTION_REDO and ACTION_SRC_ONLY for
4035 uninstalling and installing binary and source packages.
4036 * desktop.cc (make_passwd_group): Modify logic to account for a Source
4037 only cygwin install when checking for cygwin to determine need for
4038 mkpasswd and mkgroup.
4040 Mon May 7 23:33:30 2001 Matt Hargett <matt@use.net>
4042 * winsup/cinstall/res.rc: Added accelerators and improved focus order.
4043 Removed WS_DISABLED from "OK" buttons to accomodate default focus
4044 changes in net.cc and source.cc.
4045 * winsup/cinstall/net.cc (dialog_proc): If no radio button is selected,
4046 a default is selected.
4047 * winsup/cinstall/source.cc (dialog_proc): Ditto.
4048 (check_if_enable_next): Removed. No longer needed since a radio button
4049 will always be selected.
4050 (load_dialog): Removed call to check_if_enable_next.
4051 (dialog_cmd): Ditto. Also added default to switch.
4053 Tue Apr 24 23:42:02 2001 Christopher Faylor <cgf@cygnus.com>
4055 * res.rc: Resize affected text.
4057 Tue Apr 24 23:35:31 2001 Christopher Faylor <cgf@cygnus.com>
4059 * net.cc (do_net): Default to direct download.
4060 * res.rc: Move default selections to the top.
4062 2001-04-18 Earnie Boyd <earnie@users.sourceforge.net>
4064 * win32.h: Remove the definitions for _UNION_NAME and _STRUCT_NAME.
4065 Must now include <windows.h> and not the pieces.
4066 * choose.cc (create_listview): Clean up type mismatch problems.
4067 * dialog.h (NEXT(id)): Ditto.
4068 * geturl.cc (dialog): Ditto.
4069 * install.cc (dialog): Ditto.
4070 * splash.cc (load_dialog): Ditto.
4072 Wed Apr 18 18:59:21 2001 Christopher Faylor <cgf@cygnus.com>
4074 * tar.cc (class gzbz): Define dummy virtual functions.
4076 Wed Apr 18 16:01:21 2001 Christopher Faylor <cgf@cygnus.com>
4078 * Makefile.in: Add bz2 include/library support.
4079 * filemanip.h: New file.
4080 * choose.cc (find_tar_ext): New function. Returns TRUE if .tar.gz or
4082 (scan2): Reorganize to use find_tar_ext, accomodating .bz2 extension.
4083 (read_installed_db): Ditto.
4085 * fromcwd.cc (found_file): Ditto.
4086 (do_fromcwd): Ditto.
4087 * tar.cc (class gzbz): New super class for uncompression support.
4088 (gz): New class for gzip support.
4089 (bz): New class for bzip2 support.
4090 (tar_open): Use gzbz class to control file opening.
4091 (tar_ftell): Ditto for returning position in file.
4092 (skip_file): Ditto for reading file.
4093 (tar_next_file): Ditto.
4094 (tar_read_file): Ditto.
4095 (tar_close): Ditto for close.
4097 * zlib/configure.in: Force NM substitution.
4099 * source.cc (do_source): Default to "Install from Internet".
4101 2001-03-16 Brian Keener <bkeener@thesoftwaresource.com>
4103 * nio-file.cc (NetIO_File::NetIO_File): Use `get_file_size' instead of
4105 * choose.cc (list_click): Correct inability to select source code for
4107 (scan2): Modify to skip source tarballs when scanning disk for
4108 installable packages.
4110 2001-03-10 Chris Abbey <chris_abbey@yahoo.com>
4112 * install.cc: install sources into /usr/src instead
4113 of /, also include the sizes of source tarballs
4115 * download.cc: include sizes of source tarballs in
4116 total_download_bytes.
4118 Tue Mar 6 19:31:00 2000 Corinna Vinschen <corinna@vinschen.com>
4120 * download.cc (get_file_size): Remove `static'.
4122 Tue Mar 6 19:11:00 2000 Corinna Vinschen <corinna@vinschen.com>
4124 * tar.cc (tar_open): Use `get_file_size' instead of `stat'.
4126 2001-03-06 Brian Keener <bkeener@thesoftwaresource.com>
4128 * choose.cc (paint): Modify message for nothing to download vs
4129 nothing to install/update based on installation method.
4130 (list_click): Modify to skip versions in selection process if
4131 installing from local directory and installation file does not exist.
4132 Also leaves Source Action set to N/A if the source file does not exist
4133 and installing from local directory.
4134 (check_existence): New method to check current existence of installation
4135 files based on selected installation method.
4136 (set_existence): New method to set the current existence of installation
4137 files based on selected installation method.
4138 (best_trust): Modify decision process for best trust to base decision on
4139 current trust selected (IE: Prev, Curr, or Test), existence of file and
4140 installation method selected.
4141 (default_trust): Add logic to capture the current trust level and the
4142 trust selected for the given package.
4143 (set_full_list): Expand decision criteria for displaying a package in
4144 the selection list to include file existence/non-existence and selected
4145 installation method.
4146 (build_labels): Modify criteria for label addition to include
4147 installation method and file existence/non-existence.
4148 (create_listview): Modify to establish package trust level for each
4149 package before setting up the display list. Also modification to set
4150 current trust button as the default.
4151 (dialog_cmd): Set response for Prev, Curr, Test button push to perform
4152 a reset of the selection list in addition to setting the default trust.
4153 (get_package_version): New method to provide reusable code for
4154 determining the package version from the file name for a specified
4156 (scan2): Modify to use new method get_package_version and
4157 also enhance handling of the build for the structures package and
4159 (read_installed_db): Modify to use the new method
4160 get_package_version and also enhance handling of the build for the
4161 structures package and extra.
4162 (do_choose): Add additional initialization of package and extra
4163 structures. Modify to use read_installed_db all the time despite
4164 install method. Modify output to setup.log.full log file to increase
4165 readability by adding additional spacing, expanded code and available
4167 * ini.h: Add new fields install_exists, source_exists and
4168 partial_list_display to the structure definition for package.
4169 * res.rc (IDD_CHOOSE): Modify choose dialog Prev, Curr, and Test
4170 pushbuttons by replacing with Radio Buttons thus allowing the
4171 operator to better determine which is selected.
4173 2001-02-20 Brian Keener <bkeener@thesoftwaresource.com>
4175 * download.cc (do_download): Add new variables total_download_bytes and
4176 total_download_bytes_sofar for download progress meter. Add loop
4177 to accumulate the total bytes to download from the selected packages.
4178 * geturl.cc: Add state.h and diskfull.h to include list. Add new
4179 variables gw_iprogress, gw_pprogress, gw_progress_text,
4180 gw_pprogress_text, and gw_iprogress_text to allow for addition of
4181 total packages download progress meter and disk full percent
4182 progress meter. Add variables total_download_bytes and
4183 total_download_bytes_sofar for use by progress meters.
4184 (dialog_proc): Add new variables gw_iprogress, gw_pprogress,
4185 gw_progress_text, gw_pprogress_text, and gw_iprogress_text to
4186 allow for addition of total packages download progress meter and disk
4187 full percent progress meter.
4188 (init_dialog): Ditto.
4190 (get_url_to_file): Ditto.
4191 * geturl.h: Add external definition for total_download_bytes and
4192 total_download_bytes_sofar.
4193 * res.rc: Add two additional progress meters (IDC_DLS_IPROGRESS)
4194 and (IDC_DLS_PPROGRESS) and three text objects (IDC_DLS_PROGRESS_TEXT)
4195 and (IDC_DLS_IPROGRESS_TEXT, IDC_DLS_PPROGRESS_TEXT) for use in the
4197 * resource.h: Add new fields for progress meters and text and update
4198 _APS_NEXT_CONTROL_VALUE.
4200 Wed Feb 21 13:05:00 2000 Corinna Vinschen <vinschen@redhat.com>
4202 * download.cc (get_file_size): Check for INVALID_HANDLE_VALUE instead
4205 Wed Feb 21 11:21:00 2000 Corinna Vinschen <vinschen@redhat.com>
4207 * download.cc (download_one): Add missing parenthesis.
4209 Mon Feb 19 18:59:00 2000 Corinna Vinschen <vinschen@redhat.com>
4211 * download.cc (get_file_size): New function. Eliminates the need
4213 (download_one): Call `get_file_size' instead of `stat'. This
4214 workarounds a problem with mingw's `stat' call.
4216 2001-02-07 Earnie Boyd <earnie@users.sourceforge.net>
4218 * Makefile.in: (%.o: %.rc): Specify --include-dir $(w32api_include).
4219 This is to allow cinstall to build with 2.95.2-7 and to make the
4220 use of headers consistent.
4222 2000-12-26 Earnie Boyd <earnie_boyd@yahoo.com>
4224 * Makefile.in (autoload.o): Add target to specify -fno-inline-functions
4226 Tue Dec 26 03:46:00 2000 Matt Hargett <matt@use.net>
4228 * winsup/cinstall/res.rc: Added accelerators and improved focus
4231 2000-12-10 Egor Duda <deo@logos-m.ru>
4233 * choose.cc (paint): Use system background color for text output.
4235 Sun Dec 10 19:05:25 2000 Christopher Faylor <cgf@cygnus.com>
4237 * Makefile.in: Use CXX for linking and for compiling .cc files.
4238 * configure.in: Find correct c++ compiler.
4239 * configure: Regenerate.
4241 2000-11-17 DJ Delorie <dj@redhat.com>
4243 * splash.cc (load_dialog): Make message more obvious.
4246 Fri Nov 17 17:15:21 2000 Christopher Faylor <cgf@cygnus.com>
4248 * Makefile.in: Use g++ to link so that libstdc++.a gets used. This is
4249 necessary for newer compilers.
4251 Wed Nov 9 2:19:00 2000 Corinna Vinschen <vinschen@redhat.com>
4253 * desktop.cc: Include "ini.h" and "version.h".
4254 (make_passwd_group): Skip the function on 9x/ME boxes when an
4255 older version of Cygwin has been installed which doesn't
4256 support mkpasswd/mkgroup on 9x/ME.
4257 * install.cc: Move the `LOOP_PACKAGES' and `pi' macros to...
4260 Wed Nov 8 17:10:00 2000 Corinna Vinschen <vinschen@redhat.com>
4262 * desktop.cc (make_passwd_group): Don't exit when started
4263 on 9x/ME since mkpasswd/mkgroup are usable on 9x/ME now.
4265 Sun Nov 5 12:51:42 2000 Jason Tishler <jt@dothill.com>
4267 * install.cc (do_install): Add call to set_cygdrive_flags to sync
4269 * mount.cc (set_cygdrive_flags): New function.
4270 (get_cygdrive_flags): Ditto.
4271 (default_cygdrive): Ditto.
4272 (set_cygdrive_flags): Ditto.
4273 * mount.h: Add prototype for set_cygdrive_flags.
4275 2000-10-23 DJ Delorie <dj@redhat.com>
4277 * ini.h: add source actions
4278 * fromcwd.cc: check for available sources
4279 * res.rc: add checkbox bitmaps
4282 * choose.cc: add source column
4283 * download.cc: download sources if called for
4284 * install.cc: [un]install sources too
4286 2000-10-22 DJ Delorie <dj@redhat.com>
4288 * choose.cc (build_labels): Don't skip TRUST_PREV completely; only
4289 ignore it wrt full_list if there's already a version installed.
4290 (do_choose): Sort the list.
4291 (package_sort): New.
4293 2000-10-12 DJ Delorie <dj@redhat.com>
4295 * res.rc: Add more error strings.
4296 * resource.h: Ditto.
4297 * iniparse.y (new_package): re-initialize if needed.
4298 * download.cc (do_download): Keep track of errors; notify and
4300 * install.cc (do_install): Ditto.
4302 2000-10-05 DJ Delorie <dj@redhat.com>
4304 * Makefile.in: fix %.cc rule
4306 2000-10-04 DJ Delorie <dj@redhat.com>
4308 * desktop.cc: quote HOME and USER, don't . ./.profile
4310 * choose.cc (build_labels): don't include in partial list just
4311 because there's a *previous* version available.
4313 * install.cc (do_install): if installing from local directory with
4314 setup.ini and the file isn't found, look in "." also. Note errors.
4316 2000-10-02 DJ Delorie <dj@redhat.com>
4318 * ini.cc (do_ini): save setup.ini locally
4320 2000-10-02 Chris Abbey <cabbey@bresnanlink.net>
4322 * desktop.cc: quote escapes in prompt
4324 2000-10-02 Jason Tishler <jt@dothill.com>
4326 * root.cc (is_admin): New function.
4327 (read_mount_table): Check for administrative priviledges and set
4328 installation scope as appropriate.
4330 2000-09-28 DJ Delorie <dj@redhat.com>
4332 * nio-ftp.cc (ftp_line): handle continuations more robustly
4334 2000-09-14 Brian Keener <bkeener@thesoftwaresource.com>
4336 * res.rc: increased the size of the site dialog (IDD_SITE) & the
4337 corresponding list box to provide for more URL's to be listed.
4338 Modified the position of the Back, Next and Cancel buttons to
4339 correspond to the new size of the dialog.
4341 2000-09-13 DJ Delorie <dj@redhat.com>
4343 * install.cc (do_install): update disk fullness once per package
4344 to improve performance
4346 * choose.cc (create_listview): call ReleaseDC
4348 Mon Sep 11 22:40 2000 Harold L Hunt II <harold@compasstechnologies.com>
4350 * mkdir.cc: Create directories when ERROR_FILE_NOT_FOUND is
4351 returned, as it seems Samba 2.0.6+ returns this instead of
4352 ERROR_PATH_NOT_FOUND
4354 Mon Sep 11 19:35:24 2000 Christopher Faylor <cgf@cygnus.com>
4356 * site.cc (get_initial_list_idx): Don't default to saved URL if it
4359 2000-09-07 DJ Delorie <dj@redhat.com>
4361 * splash.cc: use version.h, not local decl
4362 * res.rc: add "old version" message
4365 * fromcwd.cc (canonicalize_version): make global
4366 * iniparse.y: add setup-version support, fix bug in blank line
4369 * inilex.l: add [exp] as alias for [test], add setup-version
4370 * Makefile.in (version.c): add setup-version tag
4372 * desktop.cc (do_desktop): remove 1.1 version number
4373 (do_desktop_setup): ditto
4375 * ini.cc (do_ini): zero out package list just in case we redo it.
4377 2000-09-07 Jeffrey Juliano <juliano@cs.unc.edu>
4379 * choose.cc (list_click): Check for nindexes==0; if so, return.
4381 2000-09-06 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
4383 * localdir.cc: new, local package directory selection dialog; cd
4384 into selected directory
4385 * Makefile.in (OBJS): add localdir.o
4386 * dialog.h: add prototype for do_local_dir
4387 * main.cc (WinMain): initialize local_dir to cwd; add call to
4389 * net.cc (dialog_cmd): make DO_LOCAL_DIR next dialog
4390 * source.cc (dialog_cmd): ditto
4391 * res.rc: add DO_LOCAL_DIR dialog; remove "current directory" from
4392 presented choices in IDD_SOURCE; add IDS_ERR_CHDIR error string
4393 * resource.h: defines for DO_LOCAL_DIR dialog; define IDS_ERR_CHDIR
4394 * root.cc (dialog_cmd): make DO_LOCAL_DIR previous dialog
4395 * state.h: add local_dir variable
4397 2000-09-06 Brian Keener <bkeener@thesoftwaresource.com>
4399 * desktop.cc: added logic to handle to the new dialog and to
4400 default the setting for the new checkboxes based on whether the
4401 desktop icon or start menu link already exist.
4402 (desktop_icon): correction to desktop directories for desktop icon
4403 creation. Additional logic added for Win95 which does not appear
4404 to have Common Directories so if Common selected and null uses
4406 (start_menu): Additional logic added for Win95 which does not
4407 appear to have Common Directories so if Common selected and null
4408 uses normal directory.
4409 (do_desktop_setup): moved the saving of the icon, creation of the
4410 bat file, profile, passwd, Start Menu link and desktop shortcut to
4411 this method from do_desktop. Made the creation of the desktop
4412 icon and start menu link conditional on settings of new dialog
4413 created for desktop.
4414 * install.cc (do_install): changed next from IDD_S_DESKTOP to
4416 * main.cc (WinMain): changed case IDD_S_DESKTOP to IDD_DESKTOP.
4417 * res.rc: added new resource to create a desktop dialog with 2
4418 checkboxes for creating the desktop icon and start menu link.
4419 * resource.h: changed IDD_S_DESKTOP to IDD_DESKTOP and added two
4420 new controls: IDC_ROOT_MENU and IDC_ROOT_DESKTOP for new dialog.
4421 * state.h: added root_menu and root_desktop for use in dialog.
4423 2000-08-29 DJ Delorie <dj@redhat.com>
4425 * choose.cc (scan_downloaded_files): scan for existing files, so
4426 that the user only sees new downloads.
4428 * nio-ie5.cc (NetIO_IE5): pre-check for wininet.dll, enable dial-up
4429 * site.cc (do_site): if we can't download the mirror list, go back
4430 to the net setup box to choose another transport.
4431 * autoload.c: add more functions
4432 * Makefile.in (ALL_DEP_LDLIBS): remove wininet.a
4433 * resource.h: add WININET message
4435 * net.cc (do_net): no longer default to IE5
4436 * simpsock.h (class SimpleSocket): new, simplify socket operations
4437 * simpsock.cc: ditto
4438 * nio-http.h: new, for direct http protocol
4439 * nio-http.cc: ditto
4440 * nio-ftp.h: new, for direct http protocol
4442 * netio.cc (set_url): move initialization here to handle redirections
4443 (open): add direct http/ftp
4444 * netio.h (NetIO::set_url): new
4446 * log.cc (log_save): create directory for log if needed
4448 * hash.cc, hash.h: new
4449 * Makefile: add hash.o
4450 * choose.cc: enable "uninstall" option
4451 * download.cc: invert action test to accomodate uninstalling
4452 * ini.h: add ACTION_UNINSTALL
4453 * install.cc: add uninstall functionality
4454 * res.rc: make install tag changeable
4455 * resource.h: add uninstall resources
4457 * res.rc: update mirror list URL
4459 2000-08-24 DJ Delorie <dj@redhat.com>
4461 * log.cc, log.h: new files
4462 * Makefile.in (OBJS): add log.o
4463 * tar.cc: use exit_setup instead of exit
4464 * dialog.cc (fatal): use exit_setup instead of ExitProcess
4465 * msg.cc (fatal): ditto
4466 * install.cc (dialog_cmd): ditto
4467 * ini.cc (do_ini): ditto
4468 * main.cc (main): add logging
4469 * source.cc (do_source): ditto
4470 * root.cc (do_source): ditto
4471 * site.cc (do_site): ditto
4472 * other.cc (do_other): ditto
4473 * net.cc (do_net): ditto
4474 * choose.cc (do_choose): ditto
4475 * download.cc (do_download): ditto
4476 * install.cc (do_install): ditto
4477 * msg.cc (fatal): ditto
4479 * res.rc: mark password boxes as *being* password boxes.
4481 * fromcwd.cc (canonicalize_version): use multiple buffers so that multiple
4482 calls won't use the same buffer.
4483 * choose.cc (create_listview): don't default to full list if no changes
4484 (base): return computed value, not temporary :-(
4485 (do_choose): don't use installed.db if we're only downloading.
4487 2000-08-23 DJ Delorie <dj@redhat.com>
4489 * nio-ie5.cc (NetIO_IE5): Fix authentication logic
4490 * nio-ie5.h (flush_io): new
4491 * netio.cc (load_dialog): note when we're initializing the dialog
4492 box, and ignore changes to the edit fields then.
4494 2000-08-21 DJ Delorie <dj@redhat.com>
4498 * fromcwd.cc (found_file): don't remember the canonicalized version
4500 * choose.cc (paint): print "nothing to do" message when list is empty.
4501 (build_labels): Use version "0.0" if no version is available.
4502 (create_listview): default to full list if nothing to install/update.
4503 (base): new, returns basename of file
4504 (read_installed_db): compare base names, not full paths
4506 2000-08-11 DJ Delorie <dj@redhat.com>
4508 * choose.cc: add new chooser dialog
4509 * fromcwd.cc: use IDD_CHOOSE
4510 * ini.cc: use IDD_CHOOSE
4511 * main.cc: use IDD_CHOOSE
4512 * ini.h: cosmetic changes
4513 * res.rc: add choose dialog, bitmaps
4514 * choose-spin.bmp: new
4515 * choose-rtarrow.bmp: new
4516 * resource.h: add choose dialog controls
4518 * mount.cc: remove debug statement
4520 2000-08-08 DJ Delorie <dj@redhat.com>
4522 * Makefile.in (version.c): make version checking more robust
4523 * splash.cc (load_dialog): handle case where there's no version
4525 2000-08-07 DJ Delorie <dj@redhat.com>
4527 * (all): add cvsid tags
4528 * Makefile.in: generate version.c from ChangeLog, add splash.o
4530 * res.rc: add splash screen
4532 2000-08-02 DJ Delorie <dj@redhat.com>
4534 * net.cc: remove proxy password code
4535 * res.rc: remove proxy user/pass from net, add auth dialogs
4536 * netio.cc,h: add sys/proxy auth methods
4537 * nio-ie5: use them, check for http status codes
4538 * state.h: add system authorization
4540 * concat.cc (concat): canonicalize x:// to x:/ (exception to ://
4543 2000-08-02 Norman Vine <nhv@yahoo,com>
4545 * msg.cc (mbox): added MB_TOPMOST to MessageBox type flags
4547 2000-08-01 DJ Delorie <dj@redhat.com>
4549 * postinstall.cc (each): don't rename files we ignore
4550 (do_postinstall): set CYGWINROOT to root_dir, chdir there
4552 * desktop.cc: have /etc/profile call ~/.profile and ~/.bashrc
4554 2000-07-31 DJ Delorie <dj@redhat.com>
4556 * desktop.cc: reverse PATH so /usr/bin precedes /bin
4558 2000-07-18 DJ Delorie <dj@redhat.com>
4560 * autoload.c: new, autoload dlls that might not be available.
4561 * Makefile.in (OBJS): add autoload.o
4563 * res.rc: rewrite root options (text/binary, system/user) to be
4566 * site.cc (get_site_list): trim displayed URL, sort by domain
4568 * net.cc (do_net): make IE5 default to checked, for now
4570 * choose.cc (do_choose): sort packages correctly
4571 * ini.cc (do_ini): handle parse errors more gracefully
4573 (fprintf): line buffer output
4574 (do_ini): if we can't load setup.ini, go back to the site list.
4575 * ini.h: add "unknown" trust level
4576 * inilex.l: absorb unknown trust levels and key/value pairs,
4577 add line number logic
4578 * iniparse.y: handle parse errors more gracefully.
4579 * install.cc: skip packages with no valid install entry
4581 2000-07-17 DJ Delorie <dj@cygnus.com>
4583 * coding standards fixups, many files
4584 * mkdir.cc: warn about deletions *before* deleting them
4586 2000-07-17 Jeff Juliano <juliano@cs.unc.edu>
4588 * res.rc (IDD_OTHER_URL): reorder to give default focus to entry
4590 * other.cc (dialog_cmd): save download site URL
4591 * site.cc (get_root_dir): new
4592 (save_mirror_site): new
4593 (dialog_cmd): save download site URL
4594 (get_site_list): make list big enough to add prev site
4595 (get_initial_list_idx): new, read last-used URL from file and
4596 append it to site_list
4597 (do_site): call get_initial_list_idx
4599 * concat.cc (concat): avoid segfault when first parm is null
4601 2000-07-13 DJ Delorie <dj@cygnus.com>
4603 * postinstall.cc: new
4604 * Makefile.in: add postinstall.o
4605 * concat.h: add backslash ()
4607 * desktop.cc (etc_profile): don't do postinstall
4608 (backslash): moved to concat.cc
4610 (make_postinstall_script): run directly
4611 (do_desktop): chain to do_postinstall
4612 * dialog.h: add exit_msg, do_postinstall
4613 * download.cc: use exit_msg
4615 * main.cc: add postinstall, exit_msg
4616 * resource.h: add postinstall
4617 * README: add more to-do items
4619 2000-07-12 DJ Delorie <dj@cygnus.com>
4621 * desktop.cc: add /etc/postinstall/ support
4622 * install.cc: add more "standard" directories
4624 2000-07-11 DJ Delorie <dj@cygnus.com>
4626 * desktop.cc: create /etc/profile
4627 * desktop.cc: fix include syntax
4628 * Makefile.in: add auto-dependencies
4629 * root.cc: support system vs user
4637 * desktop.cc: make sure we use backslashes, not slashes.
4638 * desktop.cc: don't set PATH in cygwin.bat, create /etc/passwd
4639 * geturl.cc: change math for percentage to avoid overflow
4641 * download.cc: post "download complete" message.
4642 * root.cc: pre-fill in defaults if needed, don't start
4643 browse at root_dir unless it's set.
4644 * desktop.cc: quote $PATH in case it has spaces in it
4646 2000-07-10 DJ Delorie <dj@cygnus.com>
4648 * Makefile.in: add desktop.o and mklink2.o
4649 * dialog.h: add do_desktop
4650 * install.cc: create standard directories, call do_desktop
4651 * res.rc: add cygwin.ico as a file also
4652 * desktop.cc: new, do shortcuts, batch files, and icons
4653 * mklink2.c: new, for COM
4654 * README: update to-do list
4656 2000-07-10 DJ Delorie <dj@cygnus.com>
4658 * ini.cc (do_ini): don't worry about timestamps if we're not
4659 actually installing.
4661 2000-07-09 DJ Delorie <dj@cygnus.com>
4663 * Makefile.in: add -I$(srcdir) for ini.h
4665 2000-07-06 DJ Delorie <dj@cygnus.com>
4667 * Replace everything with a new GUI version
4668 * zlib/gzio.c: add gzctell() for progress displays
4670 2000-06-22 DJ Delorie <dj@cygnus.com>
4672 * setup.c (tarx): re-add call to write_pkg()
4674 2000-06-07 DJ Delorie <dj@cygnus.com>
4676 * cygcalls.c: new, call cygwin1.dll functions directly
4677 * cygcalls.h: header for same
4678 * Makefile.in: add cygcalls.[ch], remove mount/cygpath/umount
4679 exes, fix cinstall.rc dependencies.
4680 * path.c: remove unneeded code
4681 * setup.c: use cygcalls instead of xcreate_process.
4682 uncompress embedded files with zlib
4683 add "-d" for "download only"
4685 postpone mount changes until very end
4686 add download progress indicators
4687 pack multi-column listings more
4688 auto-delete temp files
4689 customize banner message according to options
4690 prompt user for text/binary mounts
4691 add warnings about empty setup directory, root installs, etc
4693 2000-05-24 DJ Delorie <dj@cygnus.com>
4695 * tar.c: New file; built-in tar using zlib.
4696 * tar.h: New file; header for same.
4697 * ctar.c: New file; test program for same.
4698 * Makefile.in: add built-in tar, remove tar.exe and gzip.exe
4699 * path.c (pathcat): convert slashes and canonicalize, instead of aborting
4700 * setup.c (tarx): add support for built-in tar
4701 (main): accept unix-style slashes, check root dir for drive letters,
4702 warn about installing in /, make sure cwd is empty for internet installs,
4703 defer mounts to end of install, support built-in tar.
4705 Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
4707 Fix compiler warnings throughout.
4708 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
4710 * setup.c: Make 'root' global.
4711 (istargz): Return pointer to "stem" of matched .tar.gz file.
4712 (tarx): Special case cygwin-20000301 to == cygwin-1.1.0.tar.gz. Remove
4713 bogus check_for_installed check.
4714 (recurse_dirs): Add preliminary support for .bat file execution.
4715 (create_uninstall): Eliminate unneeded parameter.
4716 (do_start_menu): Ditto.
4718 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
4719 scanning for the version number. Eliminate unneeded argument to
4721 (getdownloadsource): Add 'name' to list of names rather than url.
4722 (main): Eliminate unneeded argument in get_pkg_stuff. Eliminate
4723 unneeded argument in mkmount and do_start_menu.
4725 2000-05-18 DJ Delorie <dj@cygnus.com>
4727 * setup.c (optionprompt): allow multi-column, clean up message
4728 about more options, be more robust about user input.
4729 (getdownloadsource): make the mirror URL a macro.
4730 (main): do mounts after done prompting user.
4732 Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
4734 * setup.c (cleanup): Inverse order of deletion stands a better chance
4735 of deleting cygpath.exe. Still seems to suffer from occasional races,
4737 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
4739 (output_file): Defend against an unlikely handle leak.
4740 (main): Don't set up signal handling until we have something special to
4743 Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
4745 * path.c (kill_cygpath): Delete function.
4746 (exit_cygpath): Make more defensive so that it can be called at any
4748 (cygpath_pipe): Don't set up signal here. Do it in main().
4749 * setup.c (istargz): New function.
4750 (recurse_dirs): Look for *.gz pattern rather than *tar.gz since *tar.gz
4751 inexplicably fails on samba mounted partitions. Use istargz to match
4753 (processdirlisting) Use istargz to match tar.gz tail.
4754 (cleanup): Renamed from filedel.
4755 (cleanup_on_signal): New function. Called on CTRL-C.
4756 (main): Record handle of main thread so that it can be suspended when
4757 CTRL-C occurs. Set up cleanup_on_signal signal handler.
4759 Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
4761 * setup.c (do_start_menu): Don't concatenate paths to already built
4764 Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
4766 * path.c (exit_cygpath): Wait for subprocess to exit before returning.
4767 (cygpath_pipe): Don't call exit_cygpath. Let main atexit routine do
4769 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
4771 * setup.c (filedel): Call exit_cygpath here so that we can be assured
4772 that cygpath subprocess has died. This allows us to delete cygpath.exe
4774 (optionprompt): Initialize response to -1 so that second screen of
4775 mirrors will appear.
4776 (get_pkg_stuff): Don't attempt to use HKCLU. Pass root to init_pkgs.
4777 * setup.h: Reflect init_pkgs prototype change.
4779 Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
4781 * pkg.c (init_pkgs): Accept an argument to control what root registry
4783 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
4784 * setup.h: Reflect init_pkgs prototype change.
4786 Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
4788 * error.c (winerror): Respond to gcc warning.
4789 * path.c (cygpath_pipe): Ditto.
4790 * setup.c (filedel): Call sa_cleanup on deleteme.
4791 (create_shortcut): Coerce argument to eliminate compiler warning.
4792 (tarx): Use installed version of cygwin1.dll, overriding tar file name.
4793 (refmatches): New function. Tests if ref is contained in a list of
4794 packages to install.
4795 (filematches): New function. Tests if filename matches one of a list
4796 of packages to install.
4797 (recurse_dirs): Accept list of packages to install. Generalize tar.gz
4798 test to accomodate _tar.gz.
4799 (prompt): Ensure that stdout is flushed prior to asking for input.
4800 (findhref): Initialize variables to quiet a compiler warning.
4801 (processdirlisting): Accept list of packages to install. Special case
4802 cygwin tar file version number.
4803 (downloaddir): Accept list of packages to install.
4804 (downloadfrom): Ditto.
4805 (create_uninstall): Eliminate unneeded variables. Quote arguments to
4807 (do_start_menu): Don't create uninstall bat file if updating or user
4808 specified a list of packages.
4809 (mkmount): Eliminate unneeded variables.
4810 (get_pkg_stuff): New function. Checks for previous unversioned
4812 (main): Accept -u and -f options and package names on the command line.
4813 Use get_pkg_stuff to initialize package information. Umount /etc.
4814 Call recurse_dirs and downloadfrom with list of package to install.
4815 Ensure that all /usr/local directories are created. Output
4816 installation time to setup.log.
4817 * setup.h: Add some prototypes.
4818 * xsystem.c (xcreate_process): Eliminate unneeded variable.
4820 Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
4822 * setup.c (optionprompt): Don't overlap display of already seen options
4824 (geturl): Print name of site which we're connecting to rather than "ftp
4826 (processdirlisting): Avoid URLs that contain a /. or ./ . Is this
4827 test too simplistic?
4828 (do_start_menu): Use pathcat to build path to <root>\bin to avoid
4829 problems when user chooses x:\ as their root.
4830 (main): For now, default to "non-update" mode. Allow -u option to
4833 Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
4836 * setup.c (tarx): Skip already installed or older packages. Report
4837 when a package has been updated.
4838 (processdirlisting): Skip already installed or older packages.
4839 (main): Detect -f option for forced installation. Initialize pkg stuff
4841 * setup.h: Add pkg definitions.
4843 Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
4845 * setup.c (findhref): Return NULL on empty string. Eat any trailing
4847 (processdirlisting): Attempt to limit recursively processing the same
4850 Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
4852 * setup.c (filedel): New function.
4853 (output_file): Keep track of files extracted from setup.exe for
4854 subsequent deletion.
4855 (tarx): Close process handle of child tar process or suffer handle
4857 (getdownloadsource): Close mirror file so that it can be unlinked.
4858 (processdirlisting): Return total number of files extracted.
4859 (main): Initialize array of files to delete. Ensure that files are
4860 closed on exit. Make the directory that setup.exe is started from ==
4861 the directory where temporary files are placed. Issue an error if no
4862 files were found to download.
4863 * xsystem.c (xcreate_process): Close the thread handle. Close the
4864 process handle if we waited for it to exit.
4866 Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
4868 * setup.c (main): Change version number output.
4870 Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
4872 * setup.c (tarx): Use full path name to tar executable.
4873 (main): Build full pathname to tar executable. Create /usr/local/etc
4876 Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
4878 * setup.c (findhref): Change method for scanning for href= to choose
4879 the last one on the line. This is still not foolproof and probably
4880 will need to be changed eventually. Don't abort if no "size" field is
4882 (processdirlisting): Fix boolean algebra.
4884 Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
4886 * main.c (tarx): Add some code for future task of unmounting
4887 directories encountered in tar file.
4889 Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
4891 * setup.c (findhref): Decode file size, when appropriate.
4892 (needfile): New function. Returns 1 when file should be
4894 (processdirlisting): Always download if file size does not
4895 match. Prompt when download fails for some reason.
4896 (getdownloadsource): Accomodate findhref argument changes.
4898 Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
4900 Throughout, use global session handle rather than reinitializing for
4901 each connect. Don't pass session as an argument to setup.c functions.
4902 * setup.c (geturl): Only issue "Connecting to.." message when using
4903 http or first time for ftp since subsequent connections will be fast.
4904 (processdirlisting): Allocate space for "N" when user has specified
4905 "N"ever option so that it can be subsequently freed.
4906 (main): Abort if we can't get the list of mirrors.
4908 Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
4910 * setup.c (main): Umount /bin and /lib.
4912 Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
4914 * setup.c (main): Create an empty /var/run/utmp.
4916 Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
4918 * Makefile.in: Add umount to list of files to include in setup.exe.
4919 * setup.c (xumount): New function for unmounting directories.
4920 (main): Unmount /usr.
4921 (mkmount): Unmount "unix directory" before trying to figure out where
4922 to create the directory.
4924 Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
4926 * setup.c (mkmount): Use xcreate_process to start mount process,
4928 (main): Don't do buffering on stdout or prompts won't be displayed
4929 correctly if running in a cygwin shell with CYGWIN=tty.
4931 Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
4933 * setup.c (main): Remove the CYGWIN environment variable before
4934 starting any cygwin programs.
4936 Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
4938 * setup.c (geturl): Use alternative method for finding filename part of
4940 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
4941 (downloaddir): Unlink file containing dir listing.
4942 (downloadfrom): Ditto.
4944 Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
4946 * setup.c (main): Disallow running setup.exe from the "root".
4948 Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
4950 Use "warning" function, where appropriate, to output warnings.
4951 * setup.c (warning): New function -- outputs warning to console and log
4953 (tarx): Fix index used to reset file protection.
4954 (main): Open the log file earlier so that more stuff can be sent to it.
4956 Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
4958 * setup.c (processdirlisting): Make "N" option a little less aggressive.
4960 Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
4962 * setup.c (tarx): Wait to after tar has completed to reset protections
4963 or suffer races with tar process.
4965 Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
4967 * Makefile.in: Eliminate duplicate -nostdinc from CFLAGS.
4968 * setup.c (create_uninstall): Create the uninstall .bat file in the
4969 "root" so that we can remove the /bin directory. Add bin\cygwin.bat to
4970 list of files to be deleted. Fix directory detection for determining
4971 when to use 'rmdir'.
4972 (do_start_menu): Add /usr/local/bin to the path.
4973 (main): Add slop to files.array allocation so that we don't have to
4974 worry about reallocating the array when it grows too large when doing
4975 some trivial "pushes". Add /tmp and /usr/local/{bin,lib} to list of
4978 Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
4980 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
4983 Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
4985 * path.c (kill_cygpath): New cleanup function.
4986 (exit_cygpath): New cleanup function.
4987 (cygpath_pipe): New function. Sets up cygpath in the background for
4988 translating filenames.
4989 (pathcvt): Use background cygpath for file translation.
4990 * setup.c (tarx): New function. Called to extract tar files, capture
4991 logging output, and translate it to Windows format.
4992 (recurse_dirs): Use 'tarx' function to extract files.
4993 (create_uninstall): Use file list built up by tarx rather than reading
4995 (mkmount): Add ability to mount root.
4996 (main): Track elapsed install time. Mount root.
4997 * starry.h: Add index field to strarry for tracking of tarx's usage of
4999 * xsystem.c (xcreate_process): Return proces handle when not waiting.
5001 Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
5004 (pathfp): New function. Preliminary work for new -f cygpath
5006 * Makefile.in: Add new file.
5007 (pathcvt): Move to new file.
5011 * setup.c (processdirlisting): Always open file in text mode.
5012 (create_uninstall): Ditto.
5013 (getdownloadsource): Ditto.
5016 Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
5018 * xsystem.c: New file.
5019 * Makefile.in: Accomodate new file.
5020 * setup.c (xsystem): Move to new file.
5021 (recurse_dirs): Accept handle to output log file. Don't use ">"
5022 redirection to trap tar output. Use supplied handle instead.
5023 (create_uninstall): Accept FILE pointer to opened log file. Don't
5024 unlink log file here.
5025 (do_start_menu): Accept FILE pointer to pass to create_uninstall.
5026 (main): Open log file here and pass it to various functions. Unlink
5029 Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
5031 Change occurrences of .usr.bin to .bin throughout.
5032 * setup.c (geturl): Increase number of retries to 20. Let user know
5033 what's going on during long connects.
5034 (processdirlisting): Accept "A"lways and "N"ever as update options.
5035 (create_uninstall): Load cygwin1.dll from the current directory rather
5037 (main): Add some expository text.
5039 Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
5041 * Makefile.in: Change method for compressing cygwin1.dll to avoid
5042 creating a cygwin1.dll in the current directory. Ensure the addition
5043 of -nostdinc to MINGW_CFLAGS.
5045 Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
5047 * Makefile.in: Augment clean target.
5049 Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
5051 * README: Added info about non-working mingw implementation
5052 * gzip.exe.gz: Replace with a version from the same build as the other
5054 * tar.exe.gz: Replace with a version from the same build as the other
5056 * mount.exe.gz: Add to repository until, mingw can build setup.
5057 * cygpath.exe.gz: ditto
5058 * cygwin1.dll.gz: ditto
5059 * setup.c: Overwrite /bin and /lib mounts. Generate working shortcut
5060 for Win9x. Display only a screenfull of options at a time. Call all
5061 tools with an absolute path.
5062 * setup.dsp: Restore the carriage returns, MS Developer Studio needs
5067 Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
5069 * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab
5070 cygwin1.dll from ../cygwin subdirectory.
5071 * gzip.exe.gz: Update.
5072 * tar.exe.gz: Update.
5074 Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
5076 * Makefile.in: Use ZLIB variable as a target.
5078 Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
5080 * Makefile.in: Eliminate traces of cygwinisms. Don't link with
5081 libmsvcrt.a. It's unneeded. Build .rc file on the fly from various
5083 * configure.in: Locate correct objcopy.
5084 * configure: Regenerate.
5086 Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
5088 * Makefile.in: New file.
5089 * configure.in: New file.
5090 * configure: New file.
5091 * zlib/Makefile.am: New file.
5092 * zlib/configure.in: New file.
5093 * zlib/aclocal.m4: New file.
5094 * zlib/acinclude.m4: New file.
5095 * zlib/configure: Regenerate from configure.in.
5096 * zlib/Makefile.in: Regenerate from Makefile.am