1 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
3 * main.cc (main): Oops, pass LogSingleton a reference, not a pointer.
5 2002-11-04 Max Bowsher <maxb@ukf.net>
7 * Exception.h (Exception::what): Add throw() specification,
8 to agree with libstdc++-v3.
9 * Exception.cc (Exception::what): Ditto.
10 * IniDBBuilderPackage.h: Add 'std::' where needed.
11 * PickCategoryLine.h: Ditto.
13 * package_db.h: Ditto.
14 * package_meta.h: Ditto.
15 * package_source.h: Ditto.
16 * package_version.h: Ditto.
18 * win32.h: Define NOMINMAX before including <windows.h>.
19 * package_meta.cc: Add 'using namespace std;'.
20 (packagemeta::set_requirements): Remove default parameter values
21 from definition (gcc3 likes them only in declaration).
22 * package_version.cc: Add 'using namespace std;'.
23 (packageversion::set_requirements): Remove default parameter
24 values from definition (gcc3 likes them only in declaration).
26 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
28 * compress_bz.cc: Don't include bzlib.h directly, the compress_bz.h
31 2002-11-04 Max Bowsher <maxb@ukf.net>
33 * compress_bz.h: #undef small before including bzlib.h - if we are
34 going to hide the fact that we are _WIN32 from bzlib, then we need
35 to #undef small for it as well (bad windows.h clash).
37 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
39 * localdir.cc: Update the extern LogFile to be a pointer.
40 (save_local_dir): Change . to -> for the above.
41 * main.cc (theFile): Change from an instance to a pointer.
42 (main): Change . to -> for the above.
44 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
46 * LogFile.cc: use 'std::' where needed throughout.
47 (LogFile::createLogFile): Implement a factory for LogFile.
48 (LogFile::LogFile): Update for use with the factory, and to
49 handle the latest g++ library changes.
50 (LogFile::operator()): Ditto.
51 (LogFile::endEntry()): Ditto.
53 * LogSingleton.cc: Ditto.
54 * LogSingleton.h: Ditto.
56 2002-11-04 Max Bowsher <maxb@ukf.net>
58 * String++.h: Add 'std::' where needed.
60 2002-11-04 Max Bowsher <maxb@ukf.net>
62 * IniDBBuilderPackage.cc: Add 'using namespace std;'.
63 * IniParseFindVisitor.cc: Ditto.
65 * LogSingleton.cc: Ditto.
72 * io_stream.cc: Ditto.
73 * io_stream_file.cc: Ditto.
74 * package_db.cc: Ditto.
78 2002-11-04 Max Bowsher <maxb@ukf.net>
80 * LogSingleton.h: Add 'std::' where needed.
82 2002-11-04 Max Bowsher <maxb@ukf.net>
84 * archive_tar_file.cc: Include <algorithm>.
85 Change min(a,b) to std::min(a,b)
86 * compress_bz.cc: Ditto.
87 * compress_gz.cc: Ditto.
89 2002-11-04 Max Bowsher <maxb@ukf.net>
91 * res.rc: Change a #-comment (invalid) to a //-comment.
93 2002-11-04 Max Bowsher <maxb@ukf.net>
95 * Makefile.am (%.o: %.rc): Make windres use $(CC) not hardcoded gcc.
96 (inilint_LDADD): Remove -lstd++.
99 2002-09-22 Max Bowsher <maxb@ukf.net>
101 * IniDBBuilderPackage.cc: Update DEBUG code to current class
104 2002-09-21 Robert Collins <rbtcollins@hotmail.com>
106 * choose.h: Add OnUnattended method.
107 * desktop.cc (DesktopSetupPage::OnInit): Allow fine grained
108 control via command line options.
109 (DesktopSetupPage::OnUnattended): Implement.
110 (DesktopSetupPage::OnMessageApp): Implement.
111 * desktop.h (DesktopSetupPage::OnUnattended): declare.
112 (DesktopSetupPage::OnMessageApp): Ditto.
113 * download.cc (do_download_thread): Support unattended mode.
114 * install.cc (do_install_thread): Ditto.
116 * main.cc (main): Ditto.
117 * net.cc (NetPage::OnUnattended): Ditto.
118 * net.h (NetPage::OnUnattended): Declare.
119 * proppage.cc (PropertyPage::DialogProc): Support unattended mode.
120 * proppage.h (PropertyPage::OnUnattended): Declare.
121 * root.cc (RootPage::OnInit): Support unattended mode.
122 (RootPage::OnUnattended): Implement.
123 * root.h (RootPage::OnUnattended): Declare.
124 * site.cc (register_saved_site): Extract Method from get_saved_sites.
125 (get_saved_sites): Remove common code for adding a site.
126 (SitePage::OnInit): Support unattended mode.
127 (SitePage::OnUnattended): Implement.
128 * site.h (SitePage::OnUnattended): Declare.
129 * source.cc (SourcePage::OnActivate): Support unattended mode.
130 (SourcePage::OnUnattended): Implement.
131 * source.h (SourcePage::OnUnattended): Declare.
132 * splash.h (SplashPage::OnUnattended): Declare.
133 * state.cc (unattended_mode): Declare.
134 * state.h (unattended_mode): Declare.
135 * threebar.h (ThreeBarProgressPage::OnUnattended): New method.
137 2002-09-21 Robert Collins <rbtcollins@hotmail.com>
139 * res.rc: Commit Harry Johnston's dialog caption patch. From July.
141 2002-07-15 Robert Collins <rbtcollins@hotmail.com>
143 * package_version.cc (packageversion::sources): Implement this.
144 * download.cc (do_download_thread): Support multiple files per package.
146 2002-07-15 Robert Collins <rbtcollins@hotmail.com>
148 * package_version.h (packageversion::sources): Support multiple files in
149 a single package version.
150 * package_version.cc (_packageversion::accessible): Ditto.
151 (packageversion::source): Ditto.
153 2002-07-15 Robert Collins <rbtcollins@hotmail.com>
155 * iniparse.y: Implement support for multiple source files for a source
157 * IniDBBuilder.h (IniDBBuilder::buildSourceFile): Ditto.
158 * IniDBBuilderPackage.h (IniDBBuilder::buildSourceFile): Ditto.
159 * IniDBBuilder.cc (IniDBBuilder::buildSourceFile): Ditto.
160 * IniDBBuilderPackage.cc (IniDBBuilder::buildSourceFile): Implement a
163 2002-07-13 Robert Collins <rbtcollins@hotmail.com>
165 * PickPackageLine.cc (PickPackageLine::click): Set requirements for
166 packages under all circumstances - slightly higher overheader, simpler
168 * download.cc (do_download_thread): Correctly download source
170 * package_meta.cc (checkForInstalled): Remove.
171 (checkForUpgradeable): Ditto.
172 (checkForSatisfiable): Ditto.
173 (processOneDependency): Ditto.
174 (packagemeta::set_requirements): Move guts to packageversion.
175 * package_version.cc (checkForInstalled): Copied from package_meta.cc.
176 (checkForUpgradeable): Ditto.
177 (checkForSatisfiable): Ditto.
178 (processOneDependency): Ditto.
179 (packageversion::set_requirements): Ditto.
180 * package_version.h (packageversion::set_requirements): Declare.
182 2002-07-13 Robert Collins <rbtcollins@hotmail.com>
184 * IniDBBuilder.cc (IniDBBuilder::buildBeginBuildDepends): Implement.
185 (IniDBBuilder::buildBeginBinary): Implement.
186 * IniDBBuilder.h (IniDBBuilder::buildBeginBuildDepends): Declare.
187 (IniDBBuilder::buildBeginBinary): Ditto.
188 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildBeginBuildDepends):
190 (IniDBBuilderPackage::buildBeginBinary): Ditto.
191 * IniDBBuilderPackage.h (IniDBBuilderPackage::buildBeginBuildDepends):
193 (IniDBBuilderPackage::buildBeginBinary): Ditto.
194 * inilex.l: Recognise Build-Depends-Indep, [,], >, < and remove
196 * iniparse.y: Full support for parsing a debian Sources file in-line in
198 * package_version.cc (packageversion::binaries): Implement.
199 * package_version.h (packageversion::binaries): Declare list of what
200 packages are created from a given source package.
201 (_packageversion::binaries): Ditto.
203 2002-07-10 Robert Collins <rbtcollins@hotmail.com>
205 * iniparse.y: Add basis for support for parsing a debian Sources file.
208 2002-07-09 Robert Collins <rbtcollins@hotmail.com>
210 Change custom container code for packagedb::packages to STL containers
212 * IniDBBuilderPackage.cc: Ditto.
213 * PickView.cc: Ditto.
216 * download.cc: Ditto.
218 * package_db.cc: Ditto.
219 * package_db.h: Ditto.
220 * Makefile.am: Remove list.h references.
223 2002-07-08 Max Bowsher <maxb@ukf.net>
225 * PickView.cc (PickView::PickView): Set font of package list header to
226 the same as used in the rest of the package list.
228 2002-07-08 Robert Collins <rbtcollins@hotmail.com>
230 * install.cc (NoReplaceOnReboot): New command line option to prevent
231 replacing in use files.
232 (install_one_source): Check the option and use it.
233 * README: Update TODO lists.
235 2002-07-08 Robert Collins <rbtcollins@hotmail.com>
237 * PickCategoryLine.cc: Change bucket to use STL container syntax
239 (PickCategoryLine::paint): Use new Category type syntax.
240 * PickCategoryLine.h: Use STL vectors rather than custom containers
242 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageCategory):
243 Use new add_category syntax.
244 * PickView.cc (PickView::insert_pkg): Use new Category type syntax.
245 (PickView::insert_category): Ditto.
246 (PickView::init_headers): Ditto.
247 * category.cc: Trim obsolete code.
248 * category.h: Replace interconnecting class with a typedef to
249 facilitate leveraging STL maps.
250 * choose.cc (fill_missing_category): Use updated pkg.add_category
252 (default_trust): Use new Category type syntax.
253 (set_view_mode): Ditto.
254 (create_listview): Ditto.
255 * package_db.cc (categories): Ditto.
256 * package_db.h: Update headers list to include needed headers.
257 (packagedb::categories): Replace custom list with STL map.
258 * package_meta.cc: Use new Category type syntax throughout.
259 (packagemeta::add_category): Implement new syntax.
260 * package_meta.h: Remove commented out source.
261 (packagemeta::add_category): Update syntax to decouple interface from
264 2002-07-06 Christopher Faylor <cgf@redhat.com>
266 * site.cc (do_download_site_info_thread): Correct spelling error.
268 2002-07-06 Robert Collins <rbtcollins@hotmail.com>
270 * PickCategoryLine.h: Include required header list.h.
271 * PickPackageLine.cc (PickPackageLine::paint): Adjust to use STL
272 containers for listing of packages per category and vice verca.
273 * PickView.cc (PickView::insert_pkg): Ditto.
274 (PickView::insert_category): Ditto.
275 * String++.h (String::caseless): STL helper to allow trivial containers
276 of Strings with case insensitive comparisons.
277 * category.h: Adjust to use STL containers for listing of packages per
278 category and vice verca.
279 * choose.cc (fill_missing_category): Ditto.
280 (default_trust): Ditto.
281 (ChooserPage::OnNext): Ditto.
282 * package_meta.cc (CategoryPackage::~CategoryPackage): Remove.
283 (packagemeta::packagemeta): Adjust for new category list name.
284 (packagemeta::~packagemeta): Adjust to use STL containers for listing
285 of packages per category and vice verca.
286 (packagemeta::set_action): Ditto.
287 * package_meta.h (CategoryPackage): Remove.
288 (packagemeta): Adjust to use STL containers for listing of packages per
289 category and vice verca.
291 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
293 * io_stream.cc: Use STL containers rather than custom ones.
294 (io_stream::registerProvider): Ditto.
295 (findProvider): Ditto.
297 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
299 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
300 Use STL collections for download site collections.
301 (IniDBBuilderPackage::add_correct_version): Ditto.
302 (IniDBBuilderPackage::process_src): Ditto.
303 * PickPackageLine.cc (PickPackageLine::click): Use the packageversion
304 accessible() call to abstract package availability.
305 * choose.cc (scanAVersion): Use STL collections for download site
307 * download.cc (check_for_cached): Ditto.
308 (download_one): Ditto.
309 * package_meta.cc (packagemeta::set_action): Use the packageversion
310 accessible() call to abstract package availability.
311 * package_source.h: Use STL containers rather than custom containers.
312 (site): Create a == operator to allow STL container use.
313 (packagesource::sites): Use STL containers rather than custom
315 * package_version.cc (_packageversion::accessible): Use STL containers
316 for download site containers.
318 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
320 * LogFile.cc: Use STL containers rather than custom containers.
321 (filedef): Create == and < operators for STL use.
322 (files): Convert to an STL set.
323 (LogFile::setFile): Use STL operations on files.
324 (LogFile::exit): Ditto.
326 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
328 * ini.cc (do_remote_ini): Use STL collection for site collection.
329 * site.cc: Include site.h first to ensure it's parsable standalone.
331 (site_list): Convert to an STL container.
332 (all_site_list): Ditto.
333 (site_list_type::site_list_type): Implement copy constructor.
334 (site_list_type::operator=): Implement assignment operator.
335 (site_list_type::operator ==): Implement.
336 (site_list_type::operator <): Ditto.
337 (save_dialog): Use STL collection calls for site collection.
338 (save_site_url): Ditto.
339 (get_site_list): Ditto.
340 (get_saved_sites): Ditto.
341 (do_download_site_info_thread): Ditto.
342 (SitePage::OnNext): Ditto.
343 (SitePage::PopulateListBox): Ditto.
344 (SitePage::OnMessageCmd): Ditto.
345 * site.h: Use STL vectors instead of custom code.
346 (site_list_type::site_list_type): Declare.
347 (site_list_type::operator=): Ditto.
348 (site_list_type::operator ==): Ditto.
349 (site_list_type::operator !=): Ditto.
350 (site_list_type::operator <): Ditto.
351 (site_list_type::operator <=): Ditto.
352 (site_list_type::operator >): Ditto.
353 (site_list_type::operator >=): Ditto.
354 (site_list): Convert to an STL container.
355 (all_site_list): Ditto.
357 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
359 * choose.cc (default_trust): Check package accessibility before
360 triggering an install. (Suggested by Pavel).
362 2002-07-03 Pavel Tsekov <ptsekov@gmx.net>
364 * compress_gz.cc (compress_gz::construct): Always initialize key members
365 to ensure the destructor does the right thing.
367 2002-07-03 Pavel Tsekov <ptsekov@gmx.net>
369 * filemanip.cc (parse_filename): Do not try to parse empty
371 * package_db.cc (packagedb::packagedb): For each line check if sscanf()
372 extracted good package name and filename.
374 2002-07-03 Robert Collins <rbtcollins@hotmail.com>
376 * package_meta.cc (packagemeta::set_requirements): Automatically select
377 version of dependent packages that satisfies the requirements.
378 Use processOneDependency to trigger the install of those packages.
379 (checkForInstalled): Check that the package remains installed.
380 (processOneDependency): Helper function for dependent packages.
381 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackage): Add more
383 Clear out all current state on new packages.
384 (IniDBBuilderPackage::add_correct_version): Copy the dependency list
387 2002-07-02 Robert Collins <rbtcollins@hotmail.com>
389 * Makefile.am (inilint_SOURCES): Add PackageSpecification sources.
390 nb: inilint is still incomplete, as the packageversion code is not
391 ready for database-less linking.
392 * site.cc (get_site_list): When the same site is reentered by the user
393 replace the old one. (Suggested by John Marshall).
395 2002-07-02 Robert Collins <rbtcollins@hotmail.com>
397 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
398 Clear out package selections when generating implicit source packages.
399 * PackageSpecification.cc (PackageSpecification::satisfies): Implement.
400 (PackageSpecification::_operators::satisfies): Implement.
401 * PackageSpecification.h (PackageSpecification::_operators::satisfies):
402 Worker function for testing versions.
404 2002-07-01 Robert Collins <rbtcollins@hotmail.com>
406 * IniDBBuilder.cc (IniDBBuilder::buildPackageRequirement): Remove.
407 * IniDBBuilder.h (IniDBBuilder::buildPackageRequirement): Ditto.
408 * IniDBBuilderPackage.cc: Use the STL algorithms.
409 Change cpv to cbpv throughout. Adjust -> to ., and use the new accessor
410 functions for the same variable throughout.
411 (IniDBBuilderPackage::IniDBBuilderPackage): Initialise new members.
412 (IniDBBuilderPackage::buildPackage): Use new cygpackage syntax,
413 and set an empty source package.
414 (IniDBBuilderPackage::buildPackageInstall): Use the new source member
415 to record an install package.
416 (IniDBBuilderPackage::buildPackageSource): Move source package logic
417 out from process_src, as it now occurs at separate times.
418 (IniDBBuilderPackage::buildPackageRequirement): Remove.
419 (IniDBBuilderPackage::buildSourceName): Use renamed package
420 specifiation accessor for clarity.
421 (IniDBBuilderPackage::buildSourceNameVersion): Ditto.
422 (IniDBBuilderPackage::add_correct_version): Use STL iterators rather
424 Remove source package references.
425 (IniDBBuilderPackage::process_src): Remove source package code as it's
426 now handled separately.
427 Set Path information before merging versions, to prevent dangling
429 * IniDBBuilderPackage.h (IniDBBuilderPackage::buildPackageRequirement):
431 (IniDBBuilderPackage::cpv): Remove.
432 (IniDBBuilderPackage::cbpv): New generic binary working variable.
433 (IniDBBuilderPackage::cspv): Ditto, but for source packages.
434 (IniDBBuilderPackage::csp): Source package variable for disjoint
436 * Makefile.am (AM_CFLAGS): Remove -Winline to allow stl set code
437 to compile. If it compiles cleanly in gcc 3.1, then reinstate.
438 * PickPackageLine.cc: Adjust packageversion accessors to the new
439 reference calls. (i.e. -> to .) throughout.
440 (PickPackageLine::paint): Use accessible() for clarity.
441 Use new split out source package logic.
442 (PickPackageLine::click): Ditto.
443 * PickView.cc (PickView::init_headers): Adjust packageversion accessors
444 to the new reference calls. (i.e. -> to .) throughout.
445 Use new split out source package logic.
446 * choose.cc: Don't depend on a specific package type.
447 Adjust packageversion accessors to the new reference calls. (i.e. -> to
449 (set_existence): Use accessible () for clarity.
450 (default_trust): Simplify a little.
451 (scanAVersion): Factored out code from scan_downloaded_files for
453 (scan_downloaded_files): Factor out inner loop for clarity.
454 (ChooserPage::OnNext): Don't dump the dependency list,
455 it's parsing is robust now!.
456 * cygpackage.cc (createInstance): Use a factory method to create new
458 (cygpackage::cygpackage): Make this private for use by the factory.
459 (cygpackage::setCanonicalVersion): Renamed from set_canonical_version.
460 Remove key usage as it's obsolete.
461 * cygpackage.h (cygpackage): Inherit from _packageversion, not
463 (cygpackage::createInstance): New factory.
464 (cygpackage::cygpackage): Make private.
465 * desktop.cc (make_passwd_group): Use new packageversion reference.
466 * download.cc (do_download_thread): Use changeRequested() for clarity.
467 Use new packageversion reference calls.
468 * iniparse.y (REQUIRES): Reuse the packageList code and dump the one-off
470 * install.cc: Adjust -> to ., and use the new accessor functions for
471 packageversion throughout.
472 * package_db.cc: Adjust -> to ., and use the new accessor functions for
473 packageversion throughout.
474 (packagedb::packagedb): Use the new cygpackage factory.
475 (packagedb::flush): Leverage String to remove buffer overflow chance in
477 (packagedb::findBinary): Find a binary meta package that has a version
478 matching a given specification.
479 (packagedb::findSource): Ditto, but for source.
480 * package_db.h (packagedb::findBinary): Declare.
481 (packagedb::findSource): Ditto.
482 * package_meta.cc: Adjust packageversion accessors to the new
483 reference calls. (i.e. -> to .) throughout.
484 Include the package_meta header first to ensure it parses standalone.
485 Use the STL algorithms.
486 (packagemeta::packagemeta): Create a copy constructor to allowing
487 cloning binary package metadata to source package metadata.
488 (packagemeta::~packagemeta): Use the STL coleltion code rather than
489 custom collection code.
490 (packagemeta::add_version): Ditto.
491 (packagemeta::set_installed): Ditto.
492 (packagemeta::SDesc): Ditto.
493 (hasSDesc): Helper function for find_if.
494 (checkForInstalled): Ditto.
495 (checkForUpgradeable): Ditto.
496 (checkForSatisfiable): Ditto.
497 (packagemeta::action_caption): Update for split out source packages.
498 (packagemeta::set_action): Ditto.
499 (packagemeta::set_requirements): Support multi-valued dependency
500 lists - a|b & c|d - with versioned package specifications.
501 (packagemeta::accessible): Helper member to improve abstraction.
502 (packagemeta::sourceAccessible): Ditto.
503 * package_meta.h: Adjust packageversion accessors to the new
504 reference calls. (i.e. "->" to "." and"*" to "" ) throughout.
505 (packagemeta::packagemeta): Declare copy constructor.
506 Remove self initialising members.
507 (packagemeta::set_action): Update parameters for new packageversion.
508 (packagemeta::trustp): Ditto.
509 (packagemeta::versions): Becomes an STL set.
510 * package_source.h (packagesource::Cached): Const correctness change.
511 * package_version.cc: Rewrite the packageversion interface to remove
512 the cygpackage nonvirtual members, and provide a copy by value,
513 pointer semantics reference counting wrapper class to ease use and
514 comparison of packageversions.
515 Change existing packageversion class to _packageversion throughout.
516 (_defaultversion): A trivial concrete class to prevent specialcasing
517 the default constructor for packageversion;
518 (packageversion::packageversion): Implement.
519 (packageversion::~packageversion): Ditto.
520 (packageversion::operator=): Ditto.
521 (packageversion::operator !): Ditto.
522 (packageversion::operator bool): Ditto.
523 (packageversion::operator ==): Ditto.
524 (packageversion::operator !=): Ditto.
525 (packageversion::operator <): Ditto.
526 (packageversion::Name): Ditto.
527 (packageversion::Canonical_version): Ditto.
528 (packageversion::setCanonicalVersion): Ditto.
529 (packageversion::getfirstfile): Ditto.
530 (packageversion::getnextfile): Ditto.
531 (packageversion::SDesc): Ditto.
532 (packageversion::set_sdesc): Ditto.
533 (packageversion::LDesc): Ditto.
534 (packageversion::set_ldesc): Ditto.
535 (packageversion::sourcePackage): Ditto.
536 (packageversion::sourcePackageSpecification): Ditto.
537 (packageversion::setSourcePackageSpecification): Ditto.
538 (packageversion::depends): Ditto.
539 (packageversion::predepends): Ditto.
540 (packageversion::recommends): Ditto.
541 (packageversion::suggests): Ditto.
542 (packageversion::replaces): Ditto.
543 (packageversion::conflicts): Ditto.
544 (packageversion::provides): Ditto.
545 (packageversion::picked): Ditto.
546 (packageversion::pick): Ditto.
547 (packageversion::changeRequested): Ditto.
548 (packageversion::uninstall): Ditto.
549 (packageversion::source): Ditto.
550 (packageversion::accessible): Ditto.
551 (_packageversion::sourcePackage): Ditto.
552 (_packageversion::accessible): Ditto.
553 (_packageversion::changeRequested): Ditto.
554 * package_version.h: Rewrite the packageversion interface to remove
555 the cygpackage nonvirtual members, and provide a copy by value,
556 pointer semantics reference counting wrapper class to ease use and
557 comparison of packageversions.
558 Change existing packageversion class to _packageversion throughout.
559 (Dependency): Remove.
560 (packageversion): New wrapper class.
561 (_packageversion): Renamed from packageversion.
562 (_packageversion::setCanonicalVersion): New method.
563 (_packageversion::sourcePackage): Ditto.
564 (_packageversion::sourcePackageSpecification): Ditto.
565 (_packageversion::setSourcePackageSpecification): Ditto.
566 (_packageversion::changeRequested): Ditto.
567 (_packageversion::bin): Rename to source.
568 (_packageversion::src): Remove.
569 (_packageversion::accessible): New method.
570 (_packageversion::references): Allow reference counting.
571 (_packageversion::sourceVersion): Cached the best-match source
574 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
576 * compress_bz.h (compress_bz::position): Track how much has been read.
577 * compress_bz.cc (compress_bz::compress_bz): And initialise it.
578 (compress_bz::read): Track amount read by the client.
579 (compress_bz::tell): And report it when asked.
581 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
583 * Makefile.am (snapshot): Automate snapshot creation some more.
585 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
587 * msg.cc (msg): Use vsnprintf to avoid buffer overflows.
589 * ini.cc (fprintf): Ditto.
590 * log.cc (log): Ditto.
591 * package_db.cc (packagedb::sourcePackages): Split out source packages
592 from binary packages.
593 * package_db.h: Ditto.
595 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
597 * PackageSpecification.h: New file. Abstracts the ability to refer
598 to another package, by name, or name and version.
599 * PackageSpecification.cc: Ditto.
600 * IniDBBuilder.cc (IniDBBuilder::buildPackageInstall): Simplify.
601 (IniDBBuilder::buildPackageSource): Ditto.
602 (IniDBBuilder::buildBeginDepends): New method for versioned
604 (IniDBBuilder::buildBeginPreDepends): Likewise, for dependencies to be
605 satisfied before pre-install.
606 (IniDBBuilder::buildPriority): New method, for getting the package
608 (IniDBBuilder::buildInstalledSize): How much disk space does it need?
609 (IniDBBuilder::buildMaintainer): Who maintains the package?
610 (IniDBBuilder::buildArchitecture): What platform is it for?
611 (IniDBBuilder::buildInstallSize): How big is the binary download?
612 (IniDBBuilder::buildInstallMD5): Whats the MD5 on the binary?
613 (IniDBBuilder::buildSourceMD5): Whats the MD5 on the source package?
614 (IniDBBuilder::buildBeginRecommends): What other packages are
615 recommended with this one?
616 (IniDBBuilder::buildBeginSuggests): And suggested?
617 (IniDBBuilder::buildBeginReplaces): What packages does this replace?
618 (IniDBBuilder::buildBeginConflicts): And collide with?
619 (IniDBBuilder::buildBeginProvides): What virtual packages (or obsolete
620 package names) does this provide?
621 (IniDBBuilder::buildDescription): Grab a multi line description one
623 (IniDBBuilder::buildSourceName): What source package should be used to
624 install the source for this binary package?
625 (IniDBBuilder::buildSourceNameVersion): Is a specific version needed?
626 (IniDBBuilder::buildPackageListAndNode): Add another AND clause to a
627 list of package specifications.
628 (IniDBBuilder::buildPackageListOrNode): Add another OR clause.
629 (IniDBBuilder::buildPackageListOperator): Add a versioning operator
630 to the current specification.
631 (IniDBBuilder::buildPackageListOperatorVersion): What version does the
633 * IniDBBuilder.h: Declare all the IniDBBuilder.cc changes.
634 * IniDBBuilderPackage.cc: As for IniDBBuilder.cc.
635 (IniDBBuilderPackage::IniDBBuilderPackage): Iniitialize new members.
636 (IniDBBuilderPackage::process_src): Streamline and split out
638 (IniDBBuilderPackage::setSourceSize): From process_src.
639 * IniDBBuilderPackage.h: Declare the IniDBBuilderPackage.cc changes.
640 (IniDBBuilderPackage::currentSpec): Track the in-progress specifiation.
641 (IniDBBuilderPackage::currentOrList): Track the current Or list.
642 (IniDBBuilderPackage::currentAndList): Track the current And list.
643 * IniParseFeedback.cc (IniParseFeedback::progress): Provide completion
645 (IniParseFeedback::iniName): Tell what ini filename we are currently
647 * IniParseFeedback.h: Declare IniParseFeedback.cc changes.
648 * IniParseFindVisitor.cc (IniParseFindVisitor::IniParseFindVisitor):
649 Make the feedback object non-const to allow mutating methods which are
650 needed when the object has state.
651 (IniParseFindVisitor::visitFile): Tell the caller the name of each
653 Initialise the parser with the feedback object to allow it to tell of
655 * IniParseFindVisitor.h: Declare IniParseFindVisitor.cc changes.
656 * Makefile.am (inilinst_SOURCES): Add more requisite classes.
657 (setup_SOURCES): Add the new PackageSpecification sources.
658 * ScanFindVisitor.cc (ScanFindVisitor::visitFile): Use the new
659 builder syntax to setup binary package details.
660 * choose.cc: Use the LogSingleton calls throughout.
661 * configure.in: Create the INILINT substitution correctly for recent
662 autotool configurations.
663 * cygpackage.cc (cygpackage::getfirstfile): Return an empty String
664 rather than a string built from an int. Thanks to Pavel Tsekov for
666 (cygpackage::getnextfile): Ditto.
667 * download.cc: Use LogSIngletion calls throughout.
668 (validateCachedPackage): A refactoring of the
669 check_for_cached code to eliminate duplciation.
670 (check_for_cached): Use validateCachedPackage to check packages.
671 * ini.cc (GuiParseFeedback): Provide gui feedback on ini name and
673 (do_remote_ini): Ditto.
674 * ini.h (ini_init): Pass a IniParseFeedback to the parser, to allow
676 * inilex.l: Identify new symbols - operators, and multi line plain text.
678 * inilintmain.cc (show_help): Provide basic infomation on inilint.
679 * iniparse.y: Adjust for the new builder syntax, and process debian
681 * io_stream_file.cc: Always include mkdir.h.
682 * list.h: Factor index location into a private routine.
683 (list::findindex): Implement this.
684 * mkdir.cc (mkdir_p): Make the use of WIN32 code conditional on mingw
685 builds. NB: This breaks cygwin build functionality still.
686 * package_meta.cc: Use the LogSingleton calls throughout.
687 (packagemeta::set_requirements): Adjust for object changes in
689 * package_meta.h (packagemeta::packagemeta): Initialise new members.
690 (packagemeta::architecture): What platform does this package run on?
691 This may need to move in the future to a per packagefile object.
692 (packagemeta::priority): What priority does this package have?
693 * package_source.h (packagesource::packagesource): Initialise new
695 (packagesource::installedSize): How much space does the package need?
696 (packagesource::setInstalledSize): Tell the amount.
697 (packagesource::_installedSize): And store it.
698 * package_version.cc (packageversion::sourcePackage): return the
700 (packageversion::setSourcePackage): And set it.
701 * package_version.h: Declare the package_version.cc changes.
702 (packageversion::depends): New package specification AND list.
703 (packageversion::predepends): Ditto.
704 (packageversion::recommends): Ditto.
705 (packageversion::suggests): Ditto.
706 (packageversion::replaces): Ditto.
707 (packageversion::conflicts): Ditto.
708 (packageversion::provides): Ditto.
709 (packageversion::sourcePackage): What source package is needed?
710 * threebar.cc (ThreeBarProgressPage::SetText4): Set the label beside
712 * threebar.h: Declare the threebar.cc change.
714 2002-06-27 John Marshall <johnm@falch.net>
716 * res.rc (SETUPINI_MISSING): Make trailing spaces visible.
717 * site.cc (SitePage::OnMessageCmd): Ditto
719 2002-06-15 Robert Collins <rbtcollins@hotmail.com>
721 * nio-ie5.cc (NetIO_IE5::NetIO_IE): Allow cached data.
723 2002-06-15 Robert Collins <rbtcollins@hotmail.com>
725 * package_meta.cc (packagemeta::set_action): When installing packages
726 with no binaries, choose the source package.
728 2002-06-10 Robert Collins <rbtcollins@hotmail.com>
730 * IniParseFindVisitor (IniParseFindVisitor::visitFile): Apply Max
731 Bowshers fix for the crash with a root level setup.ini.
732 * README: Update todos.
734 2002-05-26 Ralf Habacker <ralf.habacker@freenet.de>
736 * archive_tar.cc (archive_tar::next_file_name()): fixed broken
737 GNU long name extension support.
739 2002-05-27 Robert Collins <rbtcollins@hotmail.com>
741 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Don't
742 unescape 0 length strings.
744 2002-05-20 Robert Collins <rbtcollins@hotmail.com>
746 * package_meta.cc (packagemeta::set_action): Don't allow reinstall
747 when local with no cached file, and install the default source if the
748 default version has no binary.
750 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
752 * IniDBBuilderPackage.cc (IniDBBuilderPackage::IniDBBuilderPackage): New
754 (IniDBBuilderPackage::buildVersion): Provide a warning when a newer
755 setup version created the ini file.
756 * IniDBBuilderPackage.h (IniDBBuilderPackage::IniDBBuilderPackage): New
758 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Use the new
760 * IniParseFindVisitor.h (IniParseFindVisitor::IniParseFindVisitor):
761 Require a feedback strategy.
762 * Makefile.am (setup_SOURCES): Add IniParseFeedback sources.
763 * Makefile.in: Regenerate.
765 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
767 * io_stream_file.cc (io_stream_file::remove): Use the SetFileAttributes
768 trick to delete read only files.
769 * io_stream_cygfile.cc (io_stream_cygfile::remove): Use file:// to
771 * Makefile.am (release): Tweak to be more helpful.
772 * Makefile.in: Regenerate.
774 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
776 * Makefile.am (release): Tweak to be more helpful.
777 * Makefile.in: Regenerate.
779 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
781 * Makefile.am (release): Tweak to be more helpful.
782 * Makefile.in: Regenerate.
784 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
786 * choose.cc (scan_downloaded_files): When a non-installed version
787 has neither bin nor src cached files for local installs,
788 remove the version from availability.
790 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
792 * ini.cc (do_remote_ini): Save uncompressed ini's correctly.
794 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
796 * rsync: New support library, contains librsync. This is not (yet)
798 * configure.in: --with-rsync to enable rsync support. (Not complete).
799 * Makefile.am: Enable building with rsync.
800 * Makefile.in: Regenerate.
802 * IniDBBuilder.cc (IniDBBuilder::buildPackageInstall): Pass the md5 as
804 (IniDBBuilder::buildPackageSource): Ditto.
805 * IniDBBuilder.h: Ditto.
806 * IniDBBuilderPackage.cc: Ditto.
807 * IniDBBuilderPackage.h: Ditto.
808 * FindVisitor.cc: New file.
809 * FindVisitor.h: New file, interface for visiting a file system
811 * IniParseFindVisitor.cc: New file.
812 * IniParseFindVisitor.h: New file, concrete FindVisitor that parses
814 * README: Update TODO's.
815 * String++.cc (String::String): New constructor for <string> inter-
817 (String::substr): New method.
819 * choose.cc (scan2): Remove.
820 (scan_downloaded_files): Simplify.
821 * dialog.h: Include parsing pre-requirements.
822 * download.cc (check_for_cached): Fullname was used incorrectly - fix.
823 * filemanip.cc (parse_filename): -src packages where incorrectly parsed.
824 * find.cc: Rewrite. Now uses a Visitor pattern and is re-entrant.
826 * fromcwd.cc: Remove unneeded includes.
827 (is_test_version): Remove.
828 (found_file): Remove.
829 (SetupFindVisitor): Trivial visitor to detect setup.ini's.
831 (do_fromcwd): Remove commented code that has be replaced elsewhere.
832 * ini.cc (local_ini): Remove.
833 (findBuilder): Remove.
834 (find_routine): Remove.
835 (do_local_ini): Use new IniParseFindVisitor.
836 * iniparse.y: Typecase MD5 arrays, as we know they are allocated as
838 * postinstall.cc: Remove non-core includes.
839 (run_script_in_postinstall): Remove.
840 (RunFindVisitor): Trivial Visitor, runs each found script.
841 (do_postinstall): Use new find syntax.
843 2002-05-14 Christopher Faylor <cgf@redhat.com>
845 * ini.cc (find_routine): Don't clear buffer it it's NULL.
847 2002-05-14 Christopher Faylor <cgf@redhat.com>
849 * filemanip.h (trail): Declare.
850 * filemanip.cc (trail): New function.
851 (find_tar_ext): Use trail() instead of strstr().
852 * fromcwd.cc (check_ini): Ditto.
853 * ini.cc (find_routine): Ditto. Don't tack local_dir to path since it
854 should now be fully qualified. Set ini_filename. Reset error_buf and
855 error_count for any subsequent ini file parsing.
856 (ini_filename): New static variable for parse error reporting.
857 (yyerror): Use full path of setup.ini in error message. Subtract one
858 from line number if at bol.
859 * find.cc (found_part): Eliminate.
860 (find_sub): Call for_each with full path found rather than just file
862 (find): Don't calculate found_part.
863 * inilex.l (ini_init): Flush input buffer and reset line number.
864 (yybol): New function. Exports YY_AT_BOL.
865 * iniparse.y: Increase stack depth to allow more tokens to be processed.
866 (yyparse): Remove newline from error condition to allow subsequent
867 per-line error processing to proceed normally.
869 2002-05-14 Christopher Faylor <cgf@redhat.com>
871 * find.cc (find_sub): Be more defensive in preserving trailing parts of
872 components when doing recursive directory searches or calling user
874 * ini.cc (find_routine): Don't assume that any path name with
875 "setup.ini" in it is actually a setup.ini file. Only honor trailing
876 components. Copy path argument to temporary storage when unescaping
877 to prevent nuking of argument.
879 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
881 * CONTRIBUTORS: New file.
883 2002-04-02 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
885 * choose.cc: Run indent.
886 (nextbutton): Remove static variable.
887 (default_trust): Remove use of nextbutton.
888 (set_view_mode): Ditto.
889 (create_listview): Add IDC_CHOOSE_PREV and IDC_CHOOSE_NEXT to ta[] so
890 rbset() sets the prev/next/curr radio buttons properly.
891 (dialog_cmd): Delete function.
892 (dialog_proc): Delete function. Move WM_INITDIALOG functionality to
894 (do_choose): Delete function. Move pre-DialogBox() code to
895 ChooserPage::OnInit(), post-DialogBox() code to ChooserPage::OnNext.
896 (WM_APP_START_CHOOSE): Remove define.
897 (WM_APP_CHOOSE_IS_FINISHED): Remove define.
898 (do_choose_thread): Delete function.
899 (ChooserPage::OnActivate): Delete method.
900 (ChooserPage::OnMessageApp): Delete method.
901 (ChooserPage::OnInit): New method.
902 (ChooserPage::OnNext): New method.
903 (ChooserPage::OnBack): New method.
904 (ChooserPage::OnMessageCmd): New method.
905 * choose.h: Run indent.
906 (ChooserPage::OnMessageApp): Delete declaration.
907 (ChooserPage::OnActivate): Ditto.
908 (ChooserPage::OnMessageCmd): New declaration.
909 (ChooserPage::OnInit): Ditto.
910 (ChooserPage::OnNext): Ditto.
911 (ChooserPage::OnBack): Ditto.
912 * desktop.cc (DesktopSetupPage::OnBack): Replace use of IDD_CHOOSER
914 * fromcwd.cc (do_fromcwd): Replace use of IDD_CHOOSER with IDD_CHOOSE.
915 * ini.cc (do_ini_thread): Replace use of IDD_CHOOSER with IDD_CHOOSE.
916 * res.rc (IDD_CHOOSE): Remove dialog template.
917 (IDD_CHOOSER): Alter dialog template to fit wizard size and format.
919 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
921 * LogFile.cc (endLog): Work around an apparent libg++-3 bug causing
922 corrupt log file entries.
923 * geturl.cc: Convert to the new LogSingleton logging.
925 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
927 * ini.cc (do_remote_ini): Use setup.bz2 if it exists in preference to
930 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
932 * geturl.h: Declare getUrlToStream.
933 * geturl.cc (getUrlToStream): New function.
934 (get_url_to_membuf): Refactor to use getUrlToStream.
936 2002-05-11 Robert Collins <rbtcollins@hotmail.com>
938 * Makefile.am: Add a release target to automate some of the routine
940 * Makefile.in: Regenerate.
942 2002-05-11 Robert Collins <rbtcollins@hotmail.com>
944 * choose.cc (scan_downloaded_files): On local installs remove all
945 mirror sites if no cached copy of a package is found.
947 2002-05-10 Robert Collins <rbtcollins@hotmail.com>
949 * Makefile.in: Regenerate.
950 * iniparse.y: Use left recursion, not right in the lines rule to
951 avoid stack overflows.
952 * README: Update TODO's.
953 * io_stream_file.cc: Native builds need to include sys/stat.h
955 2002-05-06 John Marshall <jmarshall@acm.org>
957 * site.cc (SitePage::OnMessageCmd): recalculate navigation
958 button activation when "Add" is pressed.
959 (SitePage::CheckControlsAndDisableAccordingly): tweak comment.
961 2002-05-07 Robert Collins <rbtcollins@hotmail.com>
963 * Makefile.am (inlint_SOURCES): Add conditional objects to inilint
964 depending on platform.
966 * configure.in: Set conditional MINGWTARGET if compiling against mingw
968 * Makefile.in: Regenerate.
970 * io_stream_file.cc: Only use win32 calls when building for mingw.
972 2002-05-05 Robert Collins <rbtcollins@hotmail.com>
974 * Makefile.am (noinst_PROGRAMS): Make inilint configurable.
975 * configure.in: Ditto.
976 Fix incorrect header checking syntax.
977 * aclocal.m4: Regenerate.
978 * configure: Regenerate.
979 * Makefile.in: Regenerate.
980 * io_stream.cc: Remove platform specific and provider specific code.
981 (io_stream::registerProvider): New method, registers a Url provider with
983 Make all methods consistently throw invalid_argument exceptions when
984 a provider that is requested is not present.
985 (findProvider): New private function, finds a provider.
986 * io_stream.h: Declare io_stream::registerProvider.
987 * io_stream_cygfile.cc: Create a Provider class to register with
989 * io_stream_file.cc: Ditto.
990 * archive.cc: Remove unneeded includes.
991 * archive_tar.cc: Remove unneeded includes.
992 * archive_tar.h: Add required include.
993 * archive_tar_file.cc: Remove unneded includes.
994 * choose.cc: Remove unneeded includes:
996 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
998 * io_stream.cc: Use the new log interface thruout.
1000 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
1002 * log.cc (log): Reimplement via LogSingleton.
1004 (exit_setup): Remove.
1005 * log.h (log_save): Remove.
1006 (exit_setup): Remove.
1007 * LogSingleton.cc: New file.
1008 * LogSingleton.h: New file.
1009 * LogFile.cc: New file.
1010 * LogFile.h: New file.
1011 * Makefile.am (inilint_SOURCES): Add the new log interface.
1012 (setup_SOURCES): Add the new log interface and the concrete File
1014 * Makefile.in: Regenerate.
1015 * archive.cc: Use the new log interface thruout.
1016 * archive_tar.cc: Ditto.
1018 * dialog.cc (fatal): Use the new log interface.
1019 * ini.cc (do_ini_thread): Use the log interface to exit.
1020 * isntall.cc (do_install_thread): Ditto.
1021 * netio.cc (auth_cmd): Ditto.
1022 * msg.cc (fatal): Ditto.
1023 * localdir.cc (save_local_dir): Save to different files depending on
1024 the mode, and if a root dir exists.
1026 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
1028 * IniDBBuilder.cc: New file.
1029 * IniDBBuilder.h: New file.
1030 * IniDBBuilderPackage.cc: New file.
1031 * IniDBBuilderPackage.h: New file.
1032 * PackageTrust.h: New file.
1033 * IniState.h: Remove, wasn't thought out well enough.
1034 * Makefile.am (inilint_SOURCES): Add more requirements.
1035 (setup_SOURCES): Add new Builder base and concrete classes.
1036 * Makefile.in: Regenerate.
1037 * String++.cc (String::String): Implement int contructor.
1038 * String++.h (String): Declare int constructor.
1039 * archive_tar.cc (archive_tar::next_file_name): Return String() when
1041 * archive_tar.h (archive_tar_file): Remove get_next_filename method,
1043 * ini.cc: Replace IniState wuth IniDBBuilderPacakge.
1044 (find_routine): Use new IniDBBuilder to configure the parser.
1045 (do_local_ini): Ditto.
1046 (do_remote_ini): Ditto.
1047 * ini.h: Use IniDBBuilder to initialise parsing.
1048 * inilex.l (MD5): Parse the MD5 string correctly, we had the nibbles
1050 (ini_init): Use an IniDBBuilder rather than static variables.
1051 * iniparse.y: Hand off all the object creation to a builder, rather
1052 than hardcoding the behaviour. This allows run-time configured
1054 * io_stream_cygfile.h (io_stream_cygfile): Remove get_next_filename
1055 method, it's not needed.
1056 * io_stream_file.h (io_stream_file): Ditto.
1057 * mount.cc (cygpath): Return String() for missing mounts.
1058 * package_meta.cc (packagemeta::SDesc): Return String() for blank
1060 * package_meta.h (trusts): Remove - replaced by PackageTrust.h.
1061 (packagemeta::packagemeta): Fix incorrect syntax in String constructor
1063 * cygpackage.cc (cygpackage::cygpackage): Fix incorrect syntax in
1064 String constructor usage.
1065 * site.h (site_list_type): Ditto.
1067 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
1069 * String++.h: Declare a << operator that accepts String objects.
1070 * String++.cc: We need iostream for..
1071 (operator <<): this. Provide a << operator that accepts String objects.
1072 * ini.cc (yyerror): Remove the "C" classifier - it's not needed.
1073 Change from vargs to a String parameter.
1074 * inilintmail.cc: Remove the gui related headers.
1075 (yyerror): Implement this for parsing.
1076 * iniparse.y: Use the new yyerror syntax.
1078 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
1080 * Makefile.am: Add IniState.h.
1081 * Makefile.in: Regenerate.
1082 * IniState.h: New file.
1083 * choose.cc: Don't include ini.h - it's not needed.
1084 * configure: Regenerate.
1085 * desktop.cc: Don't include ini.h - it's not needed.
1086 * download.cc: Ditto.
1087 * fromcwd.cc: Ditto.
1088 * ini.cc: Use IniState.h to track each parsing calling.
1089 (find_routine): Ditto.
1090 (do_remote_ini): Ditto.
1091 (do_ini_thread): Ditto.
1092 * ini.h (ini_init): Adjust parameters to include state object.
1093 * inilex.l: Declare parser state variable.
1094 (ini_init): Adjust parameters to include state object.
1095 * iniparse.y: Remove obsolete setup_timestamp and setup_version
1097 (setup_header): Use new state variable to track time and version.
1098 (add_correct_version): Ditto.
1099 * install.cc: Don't include ini.h - it's not needed.
1101 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
1103 * nio-files.cc (NetIO): Use io_stream syntax for get_file_size.
1104 * io_stream_file.cc: Don't include filemanip.h.
1105 (io_stream_file::get_size): Implement here to remove filemanip
1107 * io_stream_cygfile.cc: Don't include filemanip.h.
1108 (io_stream_cygfile::get_size): Implement here to remove filemanip
1110 Implement a stat based version for when win32 is not available.
1111 * filemanip.h (get_file_size): Return size_t - it's more appropriate.
1112 * filemanip.cc: Don't include win32.h - be platform independent.
1113 Include strings.h and io_stream.h as part of that.
1114 (get_file_size): Leverage io_streams and remove win32 implementation.
1115 * download.cc (check_for_cached): Use io_stream syntax for
1117 (download_one): Ditto.
1119 2002-05-02 Robert Collins <rbtcollins@hotmail.com>
1121 * configure.in: Correct a typo in last change.
1122 * configure: Regenerate.
1123 * Makefile.in: Regenerate.
1125 2002-05-02 Robert Collins <rbtcollins@hotmail.com>
1127 * configure.in: Check for string.h and string.
1128 * configure: Regenerate.
1129 * Makefile.in: Regenerate.
1131 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
1133 * res.rc (IDD_SPLASH): Remove white box.
1135 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
1137 Oops! forgot to list these in the last checkin.
1138 * inilintmain.cc: New file.
1139 * md5.h: New file - imported md5 source, BSD style licence.
1140 * md5.cc: New file - imported md5 source, BSD style licence.
1141 * Exception.cc: New file.
1142 * Exception.h: New file.
1143 * MD5++.cc: New file.
1144 * MD5++.h: New file.
1146 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
1148 * Makefile.am (AM_CFLAGS): Remove -mwindows, it's a linker flag.
1149 Remove -fno-rtti, we need it for exceptions.
1150 (AM_CXXFLAGS): Ditto.
1151 (WARNONLY_CFLAGS): Ditto.
1152 (EXTRA_PROGRAMS): Add with initial linter sources - not functional yet.
1153 (setup_LDFLAGS): Add and set to -mwindows.
1154 (setup_SOURCES): Add new sources.
1155 * Makefile.in: Regenerate.
1156 * README: Update TODO.
1157 * choose.cc (scan_downloaded_files): Use ini information if it's
1159 * configure: Regenerate.
1160 * download.cc (check_for_cached): Make reusable from elsewhere.
1161 Throw exceptions on errors (as opposed to failures).
1162 Check MD5 sum when it's known.
1163 (download_one): Never force a download.
1164 Handle corrupt package exceptions.
1165 * ini.cc (find_routine): Reverse escape the URL to correctly identify
1167 * inilex.l (MD5): Provide a parsing rule (note: lowercase is required).
1168 * iniparse.y: Allow calculation of MD5 sums, and allow src only
1170 (process_src): New helper function.
1171 * isntall.cc (install_one_source): Check MD5 sums when possible.
1172 Throw exceptions on errors.
1173 (do_install_thread): Handle exceptions for installation calls.
1174 * package_source.h: Store MD5 information.
1175 * propsheet.cc (PropSheet::Create): Add a useful comment.
1176 * res.rc (IDS_INSTALL_ERROR): Define.
1177 (IDS_CORRUPT_PACKAGE): Define.
1178 * resource.h (IDS_INSTALL_ERROR): Define.
1179 (IDS_CORRUPT_PACKAGE): Define.
1180 * rfc1738.cc (rfc1738_unescape_part): Implement.
1181 * rfc1738.h (rfc1738_unescape_part): Declare.
1183 2002-04-29 Robert Collins <rbtcollins@hotmail.com>
1185 * Makefile.am: Remove dependecy rules that automake emits.
1186 Correct badly copied dependency info for manually compiled files.
1187 (setup_SOURCES): Add all used headers.
1188 (EXTRA_DIST): Include non compilate but required sources.
1189 (setup_LDADD): Remove mingw32, it is autodetected.
1190 * Makefile.in: Regenerate.
1191 * String++.h: sys/types is a system header.
1192 * choose.cc (do_choose_thread): Make into a Win32 thread routine.
1194 (ChooserPage::OnMessageApp): Use Win32 threads. (_beginthread is not
1196 * configure: Regenerate.
1197 * configure.in: Check for mingw32/cygwin specific headers and libraries.
1198 * cygpackage.h: Include the win32.h header to get correct macro
1199 definitions in all situations.
1200 * download.cc (do_download_reflector): Make into a Win32 thread routine.
1202 (do_download): Use Win32 threads.
1204 * install.cc: Ditto.
1205 * (WinMain): Adjust to build valid command line using application
1206 under both mingw32 and cygwin.
1207 * mount.cc (set)cygdrive_flags): Create new system flags if the
1208 user requests system and the value does not exist.
1209 * nio-http.cc: Define a _strnicmp for cygwin.
1210 * package_db.cc: Include <errno.h> if it exists.
1211 * site.cc (do_download_site_info_thread): Make into a Win32 thread
1214 (do_download_site-Info): Use Win32 threads.
1215 * state.cc: Explicity declare variables to avoid header conflicts
1216 caused by '#define extern" on cygwin.
1217 * win32.h: Include <alloca.h> if it exists.
1218 (_MAX_PATH): Define as MAX_PATH when not defined by windows.h.
1219 (_access): Define as access if not defined by windows.h.
1221 2002-04-27 Robert Collins <rbtcollins@hotmail.com>
1223 * compress_gz.cc (compress_gz::error): EOF is not an error condition.
1225 2002-04-27 Robert Collins <rbtcollins@hotmail.com>
1227 * Makefile.am: Add libgetopt++ to the subdirs list.
1228 Search the libgetopt++ header directory.
1229 Link against libgetopt++.la.
1230 (setup_SOURCES): Remove GetOption.cc and getopt.c and Option.cc.
1231 (setup_LDADD): Explicitly include res.o.
1232 * Makefile.in: Regenerate.
1233 * aclocal.m4: Regenerate.
1234 * bootstrap.sh: Call libtoolize.
1235 * configure: Regenerate.
1236 * configure.in: Add libtool support and configure libgetopt++.
1237 * desktop.cc (NoShortcutsOption): Turn into a BoolOption.
1238 (DesktopSetupPage::OnInit): Use the simpler syntax.
1239 * desktop.h: Remove dependency on Option.h, and remove NoShortcustOption
1241 * main.cc: Include getopt++/GetOption.h.
1242 (main): Use simpler syntax.
1246 * GetOption.h: Remove.
1247 * GetOption.cc: Remove.
1249 * Option.cc: Remove.
1251 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
1253 * Makefile.am: Add zlib and bz2lib to SUBDIRS.
1255 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
1257 * aclocal.m4: New file, cached macros.
1258 * bootstrap.sh: New file, calls required autotools in appropriate
1260 * Makefile.am: New file, input Makefile for automake.
1261 * Makefile,in: Now a generated file - regenerate.
1262 * configure: Regenerate.
1263 * configure.in: Add automake support.
1264 * inilex.l: Change VERSION to PACKAGEVERSION to avoid a collision with
1265 automake's VERSION define.
1266 * iniparse.y: Ditto.
1268 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
1270 * cdefs.h: New file, imported to allow getopt.c to build without
1272 * getopt.h: New file, imported to allow building without cygwin headers.
1274 * bz2lib: New directory, contains copy of bz2lib.
1275 * cfgaux: New directory, contains autotool helper scripts.
1276 * Makefile,in: Adjust library and target definitions for building
1277 outside the sourceware tree.
1278 * compress_bz.h: Use new bz2lib header location.
1279 * mount.cc: Import key defines and enums to be independent of cygwin
1281 * configure.in: Update to autoconf 2.53, and to be sourceware
1283 * configure: Regenerate.
1285 2002-04-12 Robert Collins <rbtcollins@hotmail.com>
1287 * mklink2.cc (make_link_2): Tweak to work with current w32api
1290 2002-04-10 Pavel Tsekov <ptsekov@gmx.net>
1292 * version.cc (canonicalize_version): Fix a call delete[]
1293 to delete the allocated address.
1295 2002-03-29 Robert Collins <rbtcollins@hotmail.com>
1297 * PickView.cc (PickView::set_headers): Set last_col correctly. Thanks
1298 to Ton van Overbeek for locating the bug area.
1300 2003-03-27 Robert Collins <rbtcollins@hotmail.com>
1302 * PickView.cc (PickView::insert_pkg): Be more generic with
1304 (PickView::insert_category): Ditto.
1305 (PickView::~PickView): Create.
1306 * PickView.h (PickView::~PickView): Declare.
1308 2003-03-27 Robert Collins <rbtcollins@hotmail.com>
1310 * Makefile.in (OBJS): Add new commandline objects.
1311 * desktop.cc (NoShortCutsOption): New option code.
1312 (DesktopSetupPage::OnInit): Check whether to skip shortcuts.
1313 * desktop.h (NoShortCutsOption): New concrete command line option class.
1314 * main.cc (WinMain): Process command line options.
1315 * GetOption.h: New file, singleton command line class.
1316 * GetOption.cc: New file, implementation of the above.
1317 * Option.h : New file, abstract option for GetOption.
1318 * Option.cc: New file, implement constructor and destructor.
1320 2002-03-26 Pavel Tsekov <ptsekov@gmx.net>
1322 * mkdir.cc (mkdir_p): Stop processing if the path is exhausted.
1324 2002-03-26 Ton van Overbeek <tvoverbe@cistron.nl>
1326 * PickPackageLine.cc (PickPackageline::paint): Adjust clipping rectangle
1327 to textheight, so large fonts work.
1329 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
1331 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Don't translate
1334 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
1336 * io_stream_cygfile.cc (cwd): New static for cwd storage.
1337 (io_stream_cygfile::normalise): New method.
1338 (io_stream_cygfile::io_stream_cygfile): Use it.
1339 (io_stream_cygfile::exists): Ditto.
1340 (io_stream_cygfile::remove): Ditto.
1341 (io_stream_cygfile::mklink): And again.
1342 (cygmkdir_p): Yes, again.
1343 (io_stream_cygfile::move): And once more.
1344 * io_stream_cygfile.h (io_stream_cygfile::normalise): Declare.
1345 (io_stream_cygfile::cwd): Ditto.
1347 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
1349 * package_meta.cc (package_meta::~package_meta): Remove duplicate.
1350 (CategoryPackage::~CategoryPackage): Ditto. (Thanks to Ton van
1351 Overbeek for the report).
1352 * mklink2.cc: Moved from mklink2.c to avoid 'not a prototype error'.
1353 Make g++ compatible.
1354 * mklink2.c: Remove.
1355 * site.cc (site_list_type::init): Delete the correct memory addres.
1356 Thanks to Pavel Tsekov for tracking this down.
1358 2002-03-20 Robert Collins <rbtcollins@hotmail.com>
1360 * win32.h: Only define alloca if it's not already.
1362 2002-03-20 Robert Collins <rbtcollins@hotmail.com>
1364 * package_meta.h (packamgemeta::trustp): Make 'test' choice leave installed
1366 * README: Update with latest requests.
1367 * Various: MTC fixes from setup200202 branch.
1369 2002-03-19 Christopher Faylor <cgf@redhat.com>
1371 * Makefile.in (setup_version.c): Add back magic which allows detection
1372 of setup.exe version number.
1374 2002-03-17 Robert Collins <rbtcollins@hotmail.com>
1376 * * PickPackageLine.cc (PickPackageLine::paint): Fix incorrect clip region
1377 calculation on win9x systems.
1379 2002-03-16 Robert Collins <rbtcollins@hotmail.com>
1381 * install.cc (install_one_source): Write the correct length of a string to the
1382 lst file (Thanks to Pavel Tsekov for reporting the bug).
1384 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
1386 * choose.cc (list_click): Always refresh the entire chooser, as our
1387 package state change mechanism is broken with the new improved list classes.
1389 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
1391 * desktop.cc (make_passwd_group): Check for .lnk suffix on /etc/passwd and
1394 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
1396 * PickPackageLine.cc (PickPackageLine::DrawCheck): New method factored out from
1398 (PickPackageLine::paint): Use DrawCheck to draw the src tick box, and the new
1400 (PickPackageLine::click): Handle the new bin tickbox.
1401 * PickPackageLine.h (PickPackageLine::DrawCheck): Declare this.
1402 * PickView.cc (pkg_headers): Add a Bin? column.
1403 (cat_headers): Ditto.
1404 (PickView::set_headers): Ditto.
1405 (PickView::init_headers): Ditto.
1406 * PickView.h (PickView): Ditto.
1407 * choose.cc (list_click): Use the new name for src_col to set the clip rectangle.
1409 2002-02-24 Michael A Chase <mchase@ix.netcom.com>
1411 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Fix up Robert's
1414 2002-02-24 Michael A Chase <mchase@ix.netcom.com>
1416 * desktop.cc (make_link): Add "file://" prefix to io_stream::mkpath_p()
1418 (make_passwd_group): Ditto.
1419 * localdir.cc (save_local_dir): Ditto.
1420 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Wrap long lines.
1421 Add "cygfile://" prefix to io_stream::open() calls.
1423 2002-02-24 Robert Collins <rbtcollins@hotmail.com>
1425 * log.cc (log_save): Fix creating /var/log.
1426 * packate_meta.cc (standard_dirs): Remove duplicate '/''s.
1428 2002-02-24 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1430 * res.rc (STRINGTABLE): Add IDS_CYGWIN_SETUP and
1431 IDS_CYGWIN_SETUP_WITH_PROGRESS strings.
1432 * resource.h: Add IDS_CYGWIN_SETUP and
1433 IDS_CYGWIN_SETUP_WITH_PROGRESS IDs.
1435 * splash.cc (OnInit): Qualify SetWindowText() call with global scope
1436 operator (::SetWindowText()).
1438 * threebar.cc: Run indent.
1439 (cistring.h): Add include.
1440 (SetText1, SetText2, SetText3): Qualify SetWindowText() call with
1441 global scope operator.
1442 (SetBar2): Add logic for writing percent complete into window title.
1444 * window.h: Run indent.
1445 (SetWindowText): New function.
1446 (String): Add forward declaration.
1447 * window.cc: Run indent.
1448 (String++.h): Add include.
1449 (SetWindowText): New function.
1451 2002-02-24 Robert Collins <rbtcollins@hotmail.com>
1453 * README: Update TODO list.
1454 * install.cc (install_one): Fix src package location.
1455 (do_install_thread): Fix creating directories.
1457 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1459 * choose.cc: Include cygpackage.h for scan2 use.
1460 (set_existence): Ignore setup.ini mirrors when installing from cwd.
1461 (scan2): Process any valid file.
1462 Add cache entries when a file matching a setup.ini listed version is found.
1463 * filemanip.cc (parse_filename): Remove pkgtar - not used anywhere else.
1464 * filemanip.h (filemanip::pkgtar): Remove.
1465 * package_meta.cc (CategoryPackage::~CategoryPackage): New method.
1466 (packagemeta::~packagemeta): Move from package_meta.h
1467 Remove and delete all version and category information.
1468 * package_meta.h (CategoryPackage): Create a destructor.
1469 (packagemeta::~packagemeta): Move to .cc file.
1471 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1473 * install.cc (install_one_source): Make NULL cached package names cause
1476 2002-02-18 Michael A Chase <mchase@ix.netcom.com>
1478 * desktop.cc (make_passwd_group): Don't create passwd-grp.bat
1481 2002-02-18 Michael A Chase <mchase@ix.netcom.com>
1483 * log.cc (log_save): Put "\n" at end of log lines instead of "'".
1485 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1487 * mount.cc (create_mount): Avoid a const char*->char* warning.
1488 (read_mounts): Ditto.
1490 2002-02-05 Jason Tishler <jason@tishler.net>
1492 * download.cc (do_download_thread): Fix off-by-one error.
1494 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1496 * configure.in (CXXFLAGS): Substitute at configure time, not runtime.
1497 * configure (CXXFLAGS): Regenerate.
1498 * Makefile.in (iniparse.o): Build via default rules - no errors now.
1499 * README: TODO list updates.
1501 2002-02-19 Michael A Chase <mchase@ix.netcom.com>
1503 * String++.cc (String::concat):: Remove.
1504 (String::vconcat):: Ditto.
1505 * String++.h (String::concat):: Remove.
1506 (String::vconcat):: Ditto.
1507 * archive_tar.cc: Don't include concat.h.
1508 * archive_tar_file.cc: Don't include concat.h.
1509 * compress_bz.cc (compress_bz::peek): Don't log unneeded messages.
1510 (compress_bz::seek): Ditto.
1511 (compress_bz::~compress_bz): Ditto.
1512 * compress_gz.cc (compress_gz::peek): Ditto.
1513 (compress_gz::error): Ditto.
1514 (compress_gz::~compress_gz): Ditto.
1515 * concat.cc (vconcat): Remove.
1517 * concat.h (vconcat): Remove.
1519 * desktop.cc (desktop_icon): Use new cygpath.
1520 (make_etc_profile): Ditto.
1522 (make_passwd_group): Ditto.
1524 (check_desktop): Remove concat use.
1525 (check_start_menu): Ditto.
1526 * download.cc (download_one): Use new mkpath_p correctly.
1528 * fromcwd.cc: Don't include concat.h.
1529 * geturl.cc (get_url_to_membuf): Use String log() call.
1530 (get_url_to_file): Ditto.
1531 * install.cc: Don't include concat.h.
1532 (uninstall_one): Use LOG_PLAIN.
1533 (replace_one): Ditto.
1534 (install_one_source): Ditto.
1535 (install_one): More char to String conversion.
1536 (do_install_thread): Use new cygpath.
1537 Use new create_mount.
1538 * io_stream.cc (io_stream::move): Use new log().
1539 * io_stream_cygfile (io_stream_cygfile::io_stream_cygfile): Use new cygpath.
1540 (io_stream_cygfile::exists): Ditto.
1541 (io_stream_cygfile::remove): Ditto.
1542 (io_stream_cygfile::mklink): Ditto.
1543 (io_stream_cygfile::write): Ditto.
1544 (cygmkdir_p): Ditto.
1545 (io_stream_cygfile::move): Ditto.
1546 * io_stream_file.cc: Don't include log.h.
1547 (io_stream_file::write): Don't log unneeded messages.
1548 * localdir.cc: Don't include concat.h.
1549 (LocalDirPage::OnNext): Use LOG_PLAIN.
1550 * log.cc: Don't include log.h.
1551 (exit_setup): Use new cygpath.
1552 * log.h (log_level): Add new level LOG_PLAIN.
1553 * main.cc (WinMain): Use new log().
1554 * mount.cc (SLASH_P): New macro from concat.h.
1555 (cygpath): Make String version globally visible.
1556 Remove varargs version.
1558 * msg.cc (mbox): Use LOG_PLAIN.
1559 * net.cc (NetPage::OnNext): Ditto.
1560 * nio-ftp.cc (ftp_line): Use new log().
1561 * nio-http.cc: Don't include log.h.
1562 (retry_get): Use alternative url variable.
1563 * package_db.cc: Don't include concat.h.
1564 (packagedb::flush): Don't use concat.
1565 * package_meta.cc: Don't include concat.h.
1566 (packagemeta::uninstall): Use new cygpath.
1567 * postinstall.cc (do_postinstall): Ditto.
1568 * root.cc (RootPage::OnNext): Use LOG_PLAIN.
1569 * script.cc: Don't include concat.h.
1570 (init_run_script): Use new cygpath.
1571 (run_script): More char * to String conversion.
1572 (try_run_script): Ditto.
1573 * site.cc: Don't include concat.h.
1574 (SitePage::OnNext): Use LOG_PLAIN.
1575 (SitePage::OnMessageCmd): Use new log().
1576 * source.cc (SourcePage::OnDeactivate): Use LOG_PLAIN.
1578 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1580 * Makefile.in (OBJS): Add new object.
1581 * PickCategoryLine.cc (PickCategoryLine::paint): Print a "+" before the name.
1582 * PickCategoryLine.h (PickCategoryLine::bucket): Use the String class.
1583 * PickLine.h (Pickline::key): Change to a String to help plug leaks.
1584 (PickLine::Pickline): Accept a String for the key.
1585 * PickPackageLine.cc (PickPackageLine::paint): Convert all char use to Strings.
1586 * PickPackageLine.h (PickPackageLine::PickPackageLine): The key is automatically
1588 * PickView.cc (PickView::note_width): Convert all char * use to Strings.
1589 (PickView::init_header): Move category length checking out of the inner loop for
1591 Convert all char use to Strings.
1592 * PickView.h: Include the String++ header.
1593 (PickView::note_width): Update the prototype.
1594 * String++.cc: New file, implements a reference counting string class.
1595 * String++.h: New file, declares a reference counting string class.
1596 * archive.cc: Include String++ instead of concat.
1597 (archive::extract_file): Convert char * usage to Strings.
1598 * archive.h: Inlude the String++ header.
1599 (archive::extract_file): Update prototype.
1600 (archive::next_file_name): Convert to a String.
1601 (archive::linktarget): Ditto.
1602 * archive_tar.cc (archive_tar::next_file_name): Convert to String usage.
1603 (archive_tar::linktarget): Ditto.
1604 * arhive_tar.h: Update the copyright.
1605 Explicitly include the relevant headers.
1606 (tar_map_result_type): Convert to String usage.
1607 (archive_tar::next_file_name): Update prototype.
1608 (archive_tar::linktarget): Ditto.
1609 * category.cc (Category::Category): Update initialisers.
1610 Convert to String usage.
1611 (Categorycmp): Update to String usage.
1612 * category.h: Include the String++ header.
1613 (Category::Category): Update to String usage.
1614 (Category::name): Ditto.
1615 (Category::key): Ditto.
1616 * choose.cc: Remove concat.h, it's not needed.
1617 (scan2): Update to String usage.
1619 * cygpackage.cc: Update includes for use of String class.
1620 (cygpackage::cygpackage): Update for String usage.
1621 (cygpackage::set_canonical_version): Ditto.
1622 (cygpackage::destroy): Ditto.
1623 (cygpackage::getfirstfile): Ditto.
1624 (cygpackage::getnextfile): Ditto.
1625 (cygpackage::Name): Ditto.
1626 (cygpackage::Vendor_version): Ditto.
1627 (cygpackage::Package_version): Ditto.
1628 (cygpackage::Canonical_version): Ditto.
1629 (cygpackage::set_sdesc): Ditto.
1630 (cygpackage::set_ldesc): Ditto.
1631 * cygpackage.h: Include String++.h for parsing this file.
1632 (cygpackage::cygpackage): Update for String usage.
1633 (cygpackage::set_canonical_version): Ditto.
1634 (cygpackage::destroy): Ditto.
1635 (cygpackage::getfirstfile): Ditto.
1636 (cygpackage::getnextfile): Ditto.
1637 (cygpackage::Name): Ditto.
1638 (cygpackage::Vendor_version): Ditto.
1639 (cygpackage::Package_version): Ditto.
1640 (cygpackage::Canonical_version): Ditto.
1641 (cygpackage::set_sdesc): Ditto.
1642 (cygpackage::set_ldesc): Ditto.
1643 (cygpackage::name): Ditto.
1644 (cygpackage::vendor): Ditto.
1645 (cygpackage::packagev): Ditto.
1646 (cygpackage::canonical): Ditto.
1647 (cygpackage::fn): Ditto.
1648 (cygpackage::sdesc): Ditto.
1649 (cygpackage::ldesc): Ditto.
1650 * desktop.cc: Update includes for use of String class.
1651 (batname): Update for String usage.
1654 (start)menu): Ditto.
1655 (desktop_icon): Ditto.
1656 (make_cygwin_bat): Ditto.
1657 (make_etc_profile): Ditto.
1659 (make_passwd_group): Ditto.
1661 (check_desktop): Ditto.
1662 (check_startmenu): Ditto.
1663 * dialog.cc (eget): Update for String usage.
1664 (egetString): New function.
1665 (eset): New variant for Strings.
1666 * dialog.h: Include String++.h for parsing this file.
1667 (egetString): New function.
1668 (eset): New variant for Strings.
1669 * diskfull.cc (diskfull): Update for String usage.
1670 * diskfull.h: Include String++.h for parsing this file.
1671 (diskfull): Update for String usage.
1672 * download.cc: Update includes for use of String class.
1673 (check_for_cached): Update for String usage.
1674 (download_one): Ditto.
1675 * filemanip.cc (get_file_size): Ditto.
1677 (parse_filename): Ditto.
1679 * filemanip.h: Include String++.h for parsing this file.
1680 (fileparse): Update for String usage.
1682 (parse_filename): Ditto.
1683 Don't consider '_' to be a separator.
1685 * find.cc: Update includes for use of String class.
1686 (find_sub): Make more flexible.
1687 (find): Update for String usage.
1688 * find.h (find): Use Strings.
1689 * fromcwd.cc (found_file): Update for String usage.
1691 (init_dialog): Ditto.
1692 (get_url_to_membuf): Ditto.
1693 (get_url_to_string): Ditto.
1694 (get_url_to_file): Ditto.
1696 (get_url_to_membuf): Ditto.
1697 (get_url_to_string): Ditto.
1698 (get_url_to_file): Ditto.
1700 (add_subdirs): Ditto.
1701 * ini.cc: Update includes for String usage.
1702 (find_routine): Update for String usage.
1703 (do_remote_ini): Ditto.
1704 (do_ini_thread): Ditto.
1705 * ini.h (ini_init): Ditto.
1706 * inilex.l: Update includes for String usage.
1707 (ini_init): Update for String usage.
1708 * iniparse.y: Ditto.
1709 (add_correct_version): Ditto.
1710 * install.cc: Update includes for String usage.
1711 (install_one_source): Update for String usage.
1712 (uninstall_one): Ditto.
1713 (replace_one): Ditto.
1714 (install_one_source): Ditto.
1715 (do_install_thread): Ditto.
1716 * io_stream.cc: Update includes for String usage.
1717 (io_stream::open): Update for String usage.
1718 (io_stream::mkpath_p): Ditto.
1719 (io_stream::remove): Ditto.
1720 (io_stream::mklink): Ditto.
1721 (io_stream::move_copy): Ditto.
1722 (io_stream::move): Ditto.
1723 (io_stream::exists): Ditto.
1724 * io_stream.h: Update includes to allow correct parsing.
1725 (io_stream::open): Update for String usage.
1726 (io_stream::mkpath_p): Ditto.
1727 (io_stream::remove): Ditto.
1728 (io_stream::mklink): Ditto.
1729 (io_stream::move_copy): Ditto.
1730 (io_stream::move): Ditto.
1731 (io_stream::exists): Ditto.
1732 * io_stream_cygfile.cc: Update includes for String usage.
1733 (get_root_dir_now): Update for String usage.
1734 (io_stream_cygfile::io_stream_cygfile): Ditto.
1735 (io_stream_cygfile::~io_stream_cygfile): Ditto.
1736 (io_stream_cygfile::exists): Ditto.
1737 (io_stream_cygfile::remove): Ditto.
1738 (io_stream_cygfile::mklink): Ditto.
1739 (cygmkdir_p): Ditto.
1740 (io_stream_cygfile::set_mtime): Ditto.
1741 (io_stream_cygfile::move): Ditto.
1742 (io_stream_cygfile::get_size): Ditto.
1743 * io_stream_cygfile.h: Update includes for String usage.
1744 (io_stream_cygfile::io_stream_cygfile): Update for String usage.
1745 (io_stream_cygfile::~io_stream_cygfile): Ditto.
1746 (io_stream_cygfile::exists): Ditto.
1747 (io_stream_cygfile::remove): Ditto.
1748 (io_stream_cygfile::mklink): Ditto.
1749 (cygmkdir_p): Ditto.
1750 (io_stream_cygfile::set_mtime): Ditto.
1751 (io_stream_cygfile::move): Ditto.
1752 (io_stream_cygfile::get_size): Ditto.
1753 (io_stream_cygfile::fname): Ditto.
1754 (io_stream_cygfile::lmode): Ditto.
1755 * io_stream_file.cc: Update includes for String usage.
1756 (io_stream_file::io_stream_file): Update for String usage.
1757 (io_stream_file::~io_stream_file): Ditto.
1758 (io_stream_file::exists): Ditto.
1759 (io_stream_file::remove): Ditto.
1760 (io_stream_file::mklink): Ditto.
1761 (io_stream_file::set_mtime): Ditto.
1762 (io_stream_file::move): Ditto.
1763 (io_stream_file::get_size): Ditto.
1764 * io_stream_file.h: Update includes for String usage.
1765 * io_stream_file.cc: Update includes for String usage.
1766 (io_stream_file::io_stream_file): Update for String usage.
1767 (io_stream_file::~io_stream_file): Ditto.
1768 (io_stream_file::exists): Ditto.
1769 (io_stream_file::remove): Ditto.
1770 (io_stream_file::mklink): Ditto.
1771 (io_stream_file::set_mtime): Ditto.
1772 (io_stream_file::move): Ditto.
1773 (io_stream_file::get_size): Ditto.
1774 (io_stream_file::fname): Ditto.
1775 (io_stream_file::lmode): Ditto.
1776 * localdir.cc: Update includes for String usage.
1777 (save_local_dir): Update for String usage.
1778 (check_if_enable_next): Ditto.
1779 (load_dialog): Ditto.
1781 (LocalDirPage::OnInit): Ditto.
1782 (LocalDirPage::OnNext): Ditto.
1783 * log.cc: Update includes for String usage.
1784 (struct LogEnt): Update for String usage.
1787 (exit_setup): Ditto.
1788 * log.h: Update includes for String usage.
1789 (log_level): Update for String usage.
1792 * main.cc (WinMain): Update for String usage.
1793 * mklink2.c (make_link_2): Update for String usage.
1794 * mklink2.h (make_link_2): Update for String usage.
1795 * mount.cc: Update includes for String usage.
1796 (mount_table): Update for String usage.
1798 (create_mount): Ditto.
1800 (remove_mount): Ditto.
1801 (read_mounts): Ditto.
1802 (set_root_dir): Ditto.
1803 (get_root_dir): Ditto.
1804 (path_prefix_p): Ditto.
1806 * mount.h: Update includes for String usage.
1807 (create_mount): Update for String usage.
1808 (remove_mount): Ditto.
1810 (set_root_dir): Ditto.
1811 (get_root_dir): Ditto.
1812 * msg.cc (mbox): Ditto.
1813 * net.cc (NetPage::OnNext): Ditto.
1814 * package_db.cc (packagedb::flush): Ditto.
1815 (packagedb::packages): Ditto.
1816 (packagedb::categories): Ditto.
1817 * package_db.h: Update includes for String usage.
1818 (packagedb::packages): Update for String usage.
1819 (packagedb::categories): Ditto.
1820 * package_meta.cc: Update includes for String usage.
1821 (hash::add_subdirs): Update for String usage.
1822 (packagemeta::uninstall): Ditto.
1823 (packagemeta::SDesc): Ditto.
1824 (packagemeta::action_caption): Ditto.
1825 * package_meta.h: Update includes for String usage.
1826 (packagemeta::packagemeta): Update for String usage.
1827 (packagemeta::~packagemeta): Ditto.
1828 (packagemeta::uninstall): Ditto.
1829 (packagemeta::SDesc): Ditto.
1830 (packagemeta::action_caption): Ditto.
1831 (package_source.cc site::site): Ditto.
1832 (packagesource::set_canonical): Ditto.
1833 (packagesource::set_cached): Ditto.
1834 * package_source.h: Update includes for String usage.
1835 (site::site): Update for String usage.
1836 (packagesource::set_canonical): Ditto.
1837 (packagesource::set_cached): Ditto.
1838 (packagesource::packagesource): Ditto.
1839 (packagesource::sites): Ditto.
1840 (packagesource::cached): Ditto.
1841 * package_version.h: Update includes for String usage.
1842 (Dependency): Update for String usage.
1843 (packageversion): Ditto.
1844 * postinstall.cc: Update includes for String usage.
1845 (do_postinstall): Update for String usage.
1846 * res.rc (IDD_LOCAL_DIR): Fix typo again!
1847 * rfc1738.cc (rfc1738_escape_part): Update for String usage.
1848 * rfc1738.h: Update includes for String usage.
1849 (rfc1738_escape_part): Update for String usage.
1850 * root.cc: Update includes for String usage.
1851 (check_if_enable_next): Update for String usage.
1852 (save_dialog): Ditto.
1854 (directory_is_absolute): Ditto.
1855 (directory_is_rootdir): Ditto.
1856 (directory_has_spaces): Ditto.
1857 (RootPage::OnInit): Ditto.
1858 (RootPage::OnNext): Ditto.
1859 * script.cc: Update includes for String usage.
1860 (init_run_script): Update for String usage.
1862 (run_script): Ditto.
1863 (try_run_script): Ditto.
1864 * script.h: Update includes for String usage.
1865 (run_script): Update for String usage.
1866 (try_run_script): Ditto.
1867 * site.cc site_list): Ditto.
1868 (all_site_list): Ditto.
1869 (other_url): Eliminate.
1870 (site_list_type::init): Update for String usage.
1871 (site_list_type::site_list_type): Ditto.
1872 (get_site_list): Ditto.
1873 (get_saved_sites): Ditto.
1874 (do_download_site_info_thread): Ditto.
1875 (SitePage::OnNext): Ditto.
1876 (SitePage::OnActivate): Ditto.
1877 (SitePage::PopulateListBox): Ditto.
1878 (SitePage::OnMessageCmd): Handle empty url's.
1879 * site.h: Update includes for String usage.
1880 (site_list_type::site_list_type): Update for String usage.
1881 (site_list_type::init): Ditto.
1882 (site_list_type::~site_list_type): Ditto.
1883 (site_list_type::url): Ditto.
1884 (site_list_type::displayed_url): Ditto.
1885 (site_list_type::key): Ditto.
1886 * source.cc (SourcePage::OnDeactivate): Ditto.
1887 * state.h: Update includes for String usage.
1888 (local_dir): Update for String usage.
1889 (trust_level): Remove.
1890 * version.cc: Update includes for String usage.
1891 (canonicalize_version): Update for String usage.
1892 * version.h: Update includes for String usage.
1893 (canonicalize_version): Update for String usage.
1895 2002-02-15 Christopher Faylor <cgf@redhat.com>
1897 * filemanip.c (parse_filename): Revert previous change.
1899 2002-02-14 Christopher Faylor <cgf@redhat.com>
1901 * filemanip.c (parse_filename): Don't treat '_' as a version number
1904 2002-01-29 Christopher Faylor <cgf@redhat.com>
1906 * configure: Regenerate.
1908 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
1910 * res.rc (IDD_LOCAL_DIR): Fix typo reported by Rene
1911 <Hoeck@extern.lrz-muenchen.de>
1913 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
1915 * README: Update Todo's.
1916 * list.h: Run indent.
1917 (list): New methods checksize and insert to reduce code duplication.
1918 (list::registerbykey): Use them.
1919 (list::registerbyobject): Ditto.
1920 (list::removebyindex): Copy each object individually - safe for non
1922 (list::checksize): Implement.
1923 (list::insert): Implement.
1925 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
1927 * Makefile.in: Remove the dlmalloc object by default.
1928 * install.cc (do_install_thread): Remove the mallinfo call for 'working
1929 around' the crashing issue.
1930 * package_db.h: Include <string.h> - it's needed to parse this.
1931 * package_source.cc (site::site): Move here from the header file.
1932 * package_source.h (site): Stop the constructor being inlinable.
1934 2002-01-26 Robert Collins <rbtcollins@hotmail.com>
1936 * filemanip.cc (find_tar_ext): Add a descriptive comment.
1938 2002-01-25 Michael A Chase <mchase@ix.netcom.com>
1940 * filemanip.cc (find_tar_ext): Clean up tests for .tar.gz and .tar.
1941 * fromcwd.cc (do_fromcwd): Expand FIXME comment in source file check.
1942 * install.cc (install_one_source): Add space between words in log()
1945 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1947 * log.cc (exit_setup): When saving to the download dir, explicity
1950 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1952 * archive.cc (extract_file): Separate out the prefix and the URL
1954 * archive.h (archive::extract_file): Ditto.
1955 * install.cc (install_one_source): Ditto. Use the new
1956 archive::extract_file syntax.
1957 (replace_one): Use the new syntax.
1958 (io_stream.cc): Add some log info for links.
1960 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1962 * PickCategoryLine.cc (PickCategoryLine::actiontext): Remove.
1963 (PickCategoryLine::paint): Use the new action method.
1964 (PickCategoryLine::click): Set the action for all children.
1965 (PickCategoryLine::set_action): New method.
1966 * PickCategoryLine.h (PickCategoryLine::-actions): Remove.
1967 (PickCategoryLine::current_default): Use packagemeta _actions class.
1968 * PickLine.h (PickLine::set_action): New abstract method that requires
1969 including package_meta.h.
1970 * PickPackageLine.cc (PickPackageLine::set_action): New method.
1971 * PickPackageLine.h (PickPackageLine::set_action): Declare this.
1972 * list.h (getbykey): A const correctness fix.
1973 * package_meta.cc: Run indent.
1974 (packagemeta::Default_action): New const.
1975 (packagemeta::Install_action): Ditto.
1976 (packagemeta::Reinstall_action): Ditto.
1977 (packagemeta::Uninstall_action): Ditto.
1978 (packagemeta::_actions::caption): New method.
1979 (packagemeta::_actions::operator++): Ditto.
1980 (packagemeta::set_action): New overload.
1981 * package_meta.h (packagemeta::_actions): New class.
1982 (packagemeta::set_action): Declare this.
1984 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1986 * Makefile.in (OBJS): Remove supp.o - it appears accidental.
1987 * choose.cc: Don't define alloca anymore, it's done in win32.h
1989 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1991 * PickPackageLine.cc: New file.
1992 * PickPackageLine.h: New file.
1993 * PickLine.cc: New file.
1994 * PickLine.h: New file.
1995 * PickCategoryLine.cc: New file.
1996 * PickCategoryLine.h: New file.
1997 * PickView.cc: New file.
1998 * PickView.h: New file.
1999 * Makefile.in: Add new objects to setup.exe.
2000 Backout -fno-exceptions option.
2001 * choose.cc: Include PickView.h.
2002 Remove view related defines and static variables.
2003 (_pkg_headers): Moved to PickView.cc.
2004 (_cat_headers): Ditto.
2005 (view::views::Unknown): Ditto.
2006 (view::views::PackageFull):
2007 (view::views::Package):
2008 (view::views::Category):
2009 (pkgtrustp): Moved to package_meta.cc.
2010 (add_required): Moved to package_meta.cc.
2011 (pick_category_line::empty): Moved to PickCategoryLine.cc
2012 (paint): Adjust for moved static variables.
2013 (view::scroll): Moved to PickView.cc.
2014 (list_vscroll): Adjust for moved static variables.
2015 (list_hscroll): Ditto.
2016 (list_click): Ditto.
2017 (note_width): Moved to PickView.cc.
2018 (view::view): Ditto.
2019 (view::set_view_mode): Ditto.
2020 (view::mode_caption): Ditto.
2021 (view::views::caption): Ditto.
2022 (view::set_headers): Ditto.
2023 (DoInsertItem): Ditto.
2024 (view::init_headers): Ditto.
2025 (view::insert_pkg): Ditto.
2026 (view::insert_category): Ditto.
2027 (view::clear_view): Ditto.
2028 (view::views::operator++): Ditto.
2029 (view::click): Ditto.
2030 (default_trust): Adjust for moved statics.
2031 (pick_pkg_line::paint): Moved to PickPackageLine.cc.
2032 (pick_pkg_line::click): Ditto.
2033 (pick_category_line::actiontext): Moved to PickCategoryLine.cc
2034 (pick_category_line::paint): Ditto.
2035 (pick_category_line::click): Ditto.
2036 (set_view_mode): Adjust for moved statics.
2037 (create_listview): Ditto.
2038 * choose.h: Remove Category and packagemeta forward defines - not needed.
2039 Don't include unneeded headers list and package_meta.
2040 (_header): Move to PickView.h.
2041 (pick_line): Move to PickLine.h.
2042 (pick_pkg_line): Move to PickPackageLine.h.
2043 (pick_category_line): Move to PickCategoryLine.h.
2044 (view): Move to PickView.h.
2045 * ini.h (trusts): Move to package_meta.h.
2046 * package_meta.h (trusts): New enum.
2047 (packagemeta::set_requirements): New helper method.
2048 (packagemeta::trustp): Ditto.
2050 2002-01-21 Christopher Faylor <cgf@redhat.com>
2052 * choose.h (view): Move forward declaration of views into public area
2053 or g++ v3 will complain.
2055 2002-01-21 Christopher Faylor <cgf@redhat.com>
2057 * Makefile.in (CXXFLAGS): Add -fno-exceptions.
2058 * win32.h (alloca): Define as __builtin_alloca.
2059 * io_stream_memory.cc: Add include file.
2061 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
2063 * archive_tar.cc (archive_tar::~archive_tar): Mark the stream as destroyed.
2064 * archive_tar_file.cc (archive_tar_file::~archive_tar_file): Ditto.
2065 * compress.cc (compress::~compress): Be less verbose.
2066 * compress_bz.cc (compress_bz::~compress_bz): Ditto.
2067 Mark the stream as destroyed.
2068 * compress_gz.cc (compress_gz::~compress_gz): Mark the stream as destroyed.
2069 * io_stream.cc (io_stream::~io_stream): Only warn when the stream is not marked
2071 * io_stream_cygfile.cc (io_stream_cygfile::~io_stream_cygfile): Mark the
2072 stream as destroyed.
2073 * io_stream_file.cc (io_stream_file::~io_stream_file): Ditto.
2074 * io_stream_memory.cc (io_stream_memory::~io_stream_memory): Ditto.
2076 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
2078 * Makefile.in (CFLAGS): Allow customisable malloc debug flags.
2079 (OBJS): Link in malloc objects.
2080 * category.cc (category): Use new char, not strdup.
2081 * choose.cc (pick_pkg_line::paint): Allow for the regionsize to shrink.
2082 (do_choose): Use new char, not malloc.
2083 * concat.cc (vconcat): Ditto.
2084 * cygpackage.cc (cygpackage): Use new char, not strdup.
2085 (set_canonical_version): Ditto.
2086 (cygpackage::destroy): Use delete[], not free.
2087 * desktop.cc (uexists): Ditto.
2088 * dialog.cc (egest): Use new char, not strdup.
2089 * dlmalloc.c: New file - Doug Lea's malloc 2.7.0
2090 * hash.cc (hash::hash): Use delete instead of free.
2091 (hash::add): Use new char, not strdup.
2092 * ini.cc (do_remote_ini): Use delete[] not free.
2093 * inilex.l: Use new char, not strdup.
2095 * iniparse.y: Ditto.
2096 Use a local package_db rather than a static one.
2097 * install.cc (struct mallinfo): Workaround an apparent dlmalloc bug.
2098 (do_install_thread): Call mallinfo to force a consistency check. Appears
2099 to fix a 'inuse' error in -DDEBUG builds.
2100 Use delete[] for strings.
2101 * io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile): Use new char,
2103 (io_stream_cygfile::~io_stream_cygfile): Use delete[], not free.
2104 (io_stream_cygfile::remove): Use new char, not strdup.
2105 * io_stream_file.cc (io_stream_file::io_stream_file): Use new char, not strdup.
2106 (io_stream_file::io_stream_file): Use delete[], not free.
2107 (io_stream_file::remove): Use new char, not strdup.
2108 * io_stream_memory.cc (memblock::~memblock): Use delete[], not free.
2109 * io_stream_memory.h (memblock): Use new char, not malloc.
2110 * localdir.cc (LocalDirPage::OnInit): Use new char, not strdup.
2111 * main.cc (WinMain): Use new char, not strdup.
2112 * mount.cc (find2): Use new char, not malloc.
2113 (read_mounts): Ditto.
2114 (cygpath): Use new char, not strdup.
2115 * netio.cc (NetIO::~NetIO): Use delete[], not free.
2116 (NetIO::set_url): Use new char, not strdup.
2117 (NetIO::get_ftp_auth): Use delete[], not free.
2118 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
2119 Use new char instead of strdup.
2120 * nio-http.cc (base64_encode): Use new char, not malloc.
2121 * package_meta.cc (hash::add_subdirs): Use new char instead of strdup.
2122 * package_source.h (~ packagesource): Use delete[] instead of delete.
2123 * port.h (strdup): Deprecate the use of strdup.
2124 * rfc1738.cc (rfc1738_do_escape): Use new char, not calloc.
2125 * script.cc (init_run_script): Us delete[], not free.
2126 (run_script): Ditto.
2127 * simpsock.cc (SimpleSocket::fill): Use new char, not malloc.
2128 (SimpleSocket::invalidate): Use delete[], not free.
2129 * site.cc (site_list_type::init): Use new char instead of strdup.
2130 * site.h (~site_list_type): Use delete[], not free.
2132 2002-01-20 Robert Collins <rbtcollins@hotmail.com>
2134 * Makefile.in (OBJS): Add win32.o - win32 support functions.
2135 * README: Update todos.
2136 * archive.cc (extract_file): Support a suffix for appending to extracted files.
2138 * choose.cc (set_view_mode): Use the new view::views class.
2139 (view::views::Unknown): New static for defaulting view::views variables.
2140 (view::views::PackageFull): New static for the current view.
2141 (view::views::Package): Ditto.
2142 (view::views::Category): Ditto.
2143 (topbucket::paint): Remove.
2144 (topbucket::empty): Rename to pick_category_line::empty.
2145 (topbucket::~topbucket): Remove.
2146 (paint): Use the new view::views class.
2147 Don't paint 'all' as a category when showing package categoies.
2148 (pick_category_line::actiontext): New method.
2149 (pick_category_line::paint): Make showing the category optional, and show the
2151 (pick_category_line::click): Make showing the category optional, and
2152 differentiate between the name being clicked, and the action description.
2153 (view::view): Use the new view::views class.
2154 (view::set_view_mode): Ditto.
2155 (view::mode_caption): Ditto.
2156 (view::views::caption): New method.
2157 (view::set_headers): Use the new view::views class.
2158 (view::clear_view): Ditto.
2159 (viewsplusplus): Replaced by
2160 (view::views::operator++): New operator.
2161 (set_view_mode): Use the new view::views class.
2162 (create_listview): Ditto.
2163 (dialog_cmd): Ditto.
2164 * choose.h (actions): Remove.
2166 (pick_line): Add a new convenience constructor.
2167 (top_bucket): Remove.
2168 (pick_category_line): Reparent under pick_line, and adsorb top_bucket.
2169 (view::views): New class.
2170 * ini.h: Don't include choose.h
2171 (is_download_action): Remove.
2172 (is_upgrade_action): Remove.
2173 (is_uninstall_action): Remove.
2174 (is_full_action): Remove.
2175 * install.cc (num_replacements): New static.
2176 (rebootneeded): Ditto.
2177 (replace_one): Handle upgrades separate from removal or new installs.
2178 (install_one_source): Handle in use files.
2179 (install_one): Don't repeat upgrades.
2180 (do_install_thread): Initialize new statics.
2181 Order actions as uninstall, replace, install.
2182 Warn about rebooting if needed.
2183 * res.rc (IDS_REBOOT_REQUIRED): New string.
2184 * resource.h (IDS_REBOOT_REQUIRED): Give value.
2185 * win32.h: Declare class Win32, and update copyright and intent message.
2186 * win32.cc: New file.
2188 2002-01-15 Corinna Vinschen <corinna@vinschen.de>
2190 * io_stream.cc (io_stream::gets): Eliminate trailing new line chars.
2191 * package_meta.cc (packagemeta::uninstall): Check for additional
2192 Windows shortcut. Unset R/O file attribute before trying to delete
2195 2002-01-09 Robert Collins <rbtcollins@hotmail.com>
2197 * choose.cc (pkgtrustp): Fall back to installed if a package is not present in
2198 the current trust level. For prev, fall back via curr.
2199 (set_existence): Allow sources with no sites, but cached files to be
2201 (pick_category_line::paint): Start drawing clickable categories.
2202 * fromcwd.cc (found_file): Reinstate local file scanning.
2204 2002-01-07 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2206 * fromcwd.cc: Run indent.
2207 (do_fromcwd): Reverse sense of comment. Set next_dialog
2208 to IDD_CHOOSER instead of IDD_CHOOSE.
2209 * ini.cc (find_routine): Remove "/" from "/setup.ini".
2211 2001-01-07 Robert Collins <rbtcollins@hotmail.com>
2213 * category.cc (Categorycmp): Add a const safe version.
2214 * category.h (Categorycmp): Add a const safe version.
2215 (Category): Add operator ==.
2216 * choose.cc (fill_missing_category): Add every package to "All".
2217 (pick_category_line::paint): Add support for hidden labels, and a tree depth.
2218 (pick_category_line::click): Ditto.
2219 (view::view): Pass in a top level category to use.
2220 (view::insert_pkg): Special case - skip category "All".
2221 (view::insert_category): Ditto.
2222 (view::clear_view): Set the contents label state.
2223 (create_listview): Pass in a top level category to view().
2224 * choose.h (topbucket): Make bucket available to derived classes.
2225 (pick_category_line): Add support for hidden labels, and a tree depth.
2226 Remove our second copy of bucket.
2227 (view): Pass in a top level category to the constructor.
2228 Use pick_category_line to allow three level display.
2230 2001-01-06 Robert Collins <rbtcollins@hotmail.com>
2232 * cygpackage.h (cygpackage): Make set_[s|l]desc virtual.
2233 * iniparse.y (add_correct_version): Copy descriptions across.
2234 * package_meta.cc (SDesc): Iterate through versions, return the first with a
2236 * package_version.h (packageversion): Add new virtuals set_[l|s]desc.
2238 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
2240 * script.cc (run_script): Change cygpath:// to cygfile://.
2241 * install.cc (do_install_thread): Fix off-by-one errors.
2243 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
2245 * package_db.cc (packagedb::flush): Fix an off-by-one error.
2247 2002-01-04 Jan Nieuwenhuizen <janneke@gnu.org>
2249 * Makefile.in (realclean): more clean.
2250 (OBJS): Add script.o.
2251 * postinstall.cc (run_script_in_etc_postinstall): New function.
2252 (do_postinstall): Split off new funtion init_run_script ().
2255 (run_script): Move to script.cc. Replace some deprecated remove
2258 * script.cc: New file.
2259 * Forward port cygwin-20010707.jcn3.patch.
2260 * package_meta.cc (uninstall): Run pre- and postremove scripts.
2261 * install.cc: Typo fix.
2262 (do_install): Run script initialisation.
2264 2001-01-04 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2266 * cistring.cc: Run d2u.
2267 * cistring.h: Run d2u.
2269 * desktop.cc (etc_profile): Remove "test -f ./.bashrc && . ./.bashrc"
2270 from the generated /etc/profile. Bash will source this file
2271 automatically, and having this here merely results in .bashrc being
2272 executed twice. Run d2u.
2273 * desktop.h: Run d2u.
2275 * propsheet.cc: Run d2u.
2276 (PropSheetProc): New function. Add minimize box here instead of in
2277 PropertyPage::DialogProc.
2278 (PropSheet::Create): Change to use creation callback PropSheetProc.
2279 (DLGTEMPLATEEX): Add 'hidden' Windows struct definition.
2281 * propsheet.h: Run indent, d2u.
2282 * proppage.h: Run indent, d2u.
2284 * proppage.cc: Run d2u.
2285 (PropertyPage::DialogProc): Remove minimize-box-adding
2286 functionality. Remove commented-out "PropSheet_SetWizButtons" calls.
2287 Add support for calling virtual OnMessageCmd. Add setting of fonts in
2288 WM_INITDIALOG handler.
2289 (resource.h): New include for resource IDs.
2291 * res.rc: Resize and rearrange property page dialog templates
2292 to bring them in line with "Microsoft's Backward Compatible Wizard 97"
2293 specification. Run d2u.
2294 (IDD_SITE): Add an edit control and an "Add" button in order to
2295 combine the IDD_SITE and IDD_OTHER_URL functionality onto one page.
2296 (IDD_OTHER_URL): Remove dialog template.
2297 (IDD_DLSTATUS): Remove dialog template.
2300 (SitePage::OnBack): Remove NEXT() macro invocation.
2301 (SitePage::OnActivate): New member function.
2302 (load_dialog): Remove. Functionality subsumed into
2303 SitePage::OnActivate.
2304 (save_dialog): Change to support both list and user URLs. Remove
2305 OTHER_IDX and mirror_idx logic.
2306 (SitePage::PopulateListBox): New member function.
2307 (SitePage::CheckControlsAndDisableAccordingly): New member function.
2308 (SitePage::OnMessageCmd): New override.
2309 (check_if_enable_next): Remove.
2310 (dialog_cmd): Remove.
2311 (do_download_site_info_thread): Remove calls to NEXT() macro.
2312 (SitePage::Create): Call the single-param PropertyPage::Create
2314 (other_url): New static taken from other.cc.
2315 (SitePage::OnNext): Remove mirror_idx logic.
2316 (SitePage::OnInit): Remove "Other URL" entry from list box. Remove
2317 list box populating code, now handled in SitePage::PopulateListBox.
2318 (mirror_idx, NO_IDX, OTHER_IDX): Remove.
2319 (save_site_url): Fix potential buffer overflow problem. Switched to
2320 TCHAR in grossly premature preparation for multilingual support.
2322 (SitePage::OnActivate): New member function.
2323 (SitePage::CheckControlsAndDisableAccordingly) New member.
2324 (SitePage::OnMessageCmd): New override.
2325 (do_download_site_info_thread): Add MessageBox call on failure to
2328 * splash.cc: Run d2u.
2329 (SplashPage::OnInit): Set the font for the title.
2330 * splash.h: Run d2u.
2332 * threebar.cc: Run d2u.
2333 * threebar.h: Run d2u.
2335 * window.h: Run d2u.
2336 (Window::IsButtonChecked): New member function declaration.
2337 (Window::OnMessageCmd): New member function.
2338 (Window::SetDlgItemFont): New member function declaration.
2339 (Window::MAXFONTS, Window::Fonts, Window::FontCounter): New data
2341 * window.cc: Run d2u.
2342 (Window::IsButtonChecked): New member function definition.
2343 (Window::SetDlgItemFont): New member function definition.
2344 (Window::Window): Add initialization for FontCounter.
2345 (Window::~Window): Delete any fonts we created.
2347 * geturl.cc: Run d2u.
2348 (progress): Remove the "3" field width from the "%3d"
2349 percent-complete format indicator. Causes line to not start at
2350 beginning of text box, and does little to help with "jumping", since
2351 the "bytes downloaded so far" field is variable-width anyway. Change
2352 kb/s format field to "%03.1" to 0-pad the kb/s number in the event of
2353 painfully slow connections, or temporary slowdowns in faster
2354 connections should such more-instantaneous functionality become
2358 (NetPage::OnMessageCmd): New member function declaration.
2359 (NetPage::CheckIfEnableNext): New member function declaration.
2361 (NetPage::OnMessageCmd): New member function definition.
2362 (dialog_cmd): Remove, subsumed into NetPage::OnMessageCmd.
2363 (check_if_enable_next): Remove.
2364 (NetPage::CheckIfEnableNext): New member function, subsumes
2365 check_if_enable_next.
2366 (propsheet.h): Add include.
2367 (NetPage::Init): Add call to CheckIfEnableNext.
2368 (load_dialog): Remove call to check_if_enable_next.
2369 (NetPage::Create): Call single-template-ID-parameter overload of
2370 PropertyPage::Create instead of three-parameter one.
2372 * Makefile.in (OBJS): Remove other.o.
2373 * other.cc: Remove file.
2375 2002-01-01 Robert Collins <rbtcollins@hotmail.com>
2377 * README: Update TODO's.
2378 * choose.cc (set_existence): Delete non installed packages with no
2380 (fill_missing_category): Fix an off-by-one error.
2381 (default_trust): Ditto. Also delete any unused categories.
2382 (view::init_headers): Fix an off-by-one error.
2383 (set_view_mode): Ditto.
2384 (set_view_mode): Ditto.
2385 (create_listview): Ditto.
2386 (dialog_cmd): Ditto.
2388 * io_stream.cc: Indent.
2389 * io_stream.h: Ditto.
2390 * package_db.cc: Ditto.
2391 * package_meta.h: Const correctness for SDesc ();
2392 * proppage.cc: Run d2u and indent.
2393 * propsheet.cc: Run d2u and indent.
2394 * window.cc: Run d2u and indent.
2395 * window.h: Run d2u and indent.
2397 2001-12-28 Christopher Faylor <cgf@redhat.com>
2399 * Makefile.in (iniparse.o): Accommodate newer bisons.
2401 2001-12-23 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2403 * window.h (Window): New file, new class.
2404 * window.cc (Window): New file, new class.
2406 * threebar.h (ThreeBarProgressPage): New file, new class.
2407 * threebar.cc (ThreeBarProgressPage): New file, new class.
2409 * splash.h (SplashPage): New file, new class.
2410 * splash.cc (SplashPage): Replace file with implementation of new
2413 * source.h (SourcePage): New file, new class.
2414 * source.cc: Run indent.
2415 (SourcePage): Add class implementation to this file.
2416 (do_source): Remove, functionality subsumed by SourcePage::Create()
2417 and SourcePage::OnDeactivate().
2418 (dialog_proc): Remove, functionality subsumed by
2419 SourcePage::OnActivate().
2421 * site.h: Run indent.
2422 (SitePage): Add class declaration.
2423 * site.cc: Run indent.
2424 (SitePage): Add class implementation.
2425 (do_download_site_info_thread): New function.
2426 (context): New var. Context info for do_download_site_info_thread().
2427 (do_download_site_info): New function.
2428 (SitePage::Create, SitePage::OnInit SitePage::OnNext)
2429 (SitePage::OnBack): SitePage class implementation..
2430 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers, now handled
2431 by SitePage members.
2432 (dialog_proc): Remove, now handled by SitePage::OnInit and base class
2434 (do_site): Remove, now handled by do_download_site_info_thread() and
2435 SitePage::OnNext functionality.
2436 (get_site_list): Remove dismiss_url_status_dialog() call.
2438 * root.h (RootPage): New file, new class.
2439 * root.cc: Run indent.
2440 (dialog_cmd): Pass parent HWND parameter to note(), yesno().
2441 (dialog_proc): Remove.
2443 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL clauses from switch.
2444 (RootPage::OnInit): New member function. Move get_root_dir() logic to
2445 here from do_root().
2446 (RootPage::Create): New member function.
2447 (RootPage::OnNext): New member function. Move IDOK logic from
2448 dialog_cmd() to here.
2449 (RootPage::OnBack): New member function.
2451 * propsheet.h (PropSheet): New file, new class.
2452 * propsheet.cc (PropSheet): New file, new class.
2454 * proppage.h (PropertyPage): New file, new class.
2455 * proppage.cc (PropertyPage): New file, new class.
2457 * postinstall.cc (do_postinstall): Add owner parameter.
2459 * other.cc (do_other): Add owner parameter.
2461 * nio-file.cc (NetIO::Purl): Pass NULL parent param to note().
2462 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Pass NULL parent param to
2464 * nio-http.cc (retry_get): Pass NULL parent param to get_auth(),
2467 * nio-ie5.cc (NetIO::_url): Pass NULL parent param to note(),
2468 get_auth(), get_proxy_auth().
2470 * netio.h (get_auth, get_proxy_auth, get_ftp_auth): Add owner param.
2471 * netio.cc (auth_common, NetIO::get_auth, NetIO::get_proxy_auth,
2472 NetIO::get_ftp_auth)
2473 (auth_common): Add owner param. Pass owner param to DialogBox.
2474 (NetIO::get_auth, NetIO::get_proxy_auth, NetIO::get_ftp_auth): Pass
2475 owner param to auth_common().
2477 * net.h (NetPage): New file, new class.
2478 * net.cc: Run indent.
2479 (net.h, threebar.h): Add includes.
2480 (Progress): Add extern.
2481 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, now handled by
2482 property sheet logic. Saved temporarily for reference.
2483 (NetPage::Create, NetPage::OnInit, NetPage::OnDeactivate,
2484 NetPage::OnNext, NetPage::OnBack):
2485 New implementation of NetPage class members.
2487 (dialog_proc): Remove.
2489 * msg.h (fatal, note, yesno): Add owner param.
2490 * msg.c (fatal, note, yesno, mbox): Add owner param.
2491 (mbox): Remove MB_TOPMOST from MessageBox call. Unnecessary and wrong
2492 now that we have a parent.
2494 * main.cc: Run indent.
2495 (commctrl.h, proppage.h, propsheet.h, splash.h, source.h)
2496 (localdir.h, net.h, site.h, choose.h, threebar.h, desktop.h): Include
2498 (root_dialog_proc): extern into this file.
2499 (Progress): Progress dialog defined here, used in several other files.
2500 (WinMain): Instantiate and create Splash, Source, Root, LocalDir, Net,
2501 Site, Chooser, Desktop pages and MainWindow sheet. Call
2502 InitCommonControls() to make sure Windows is set up for our use of
2503 property sheets. Add pages to sheet.
2504 Call MainWindow.Create() to "DoModal". Remove main loop, that logic is
2505 now handled by the PropSheet class.
2506 (root.h): Add include.
2508 * log.cc (log_save): Pass NULL parent to fatal().
2509 (exit_setup): Pass NULL parent to note().
2511 * localdir.h (LocalDirPage): New file, new class.
2512 * localdir.cc: Run indent.
2513 (localdir.h): New include.
2514 (threebar.h): New include.
2515 (Progress): extern into this file.
2516 (LocalDirPage::Create, LocalDirPage::OnInit, LocalDirPage::OnActivate)
2517 (LocalDirPage::OnNext, LocalDirPage::OnBack): Implementation of
2519 (LocalDirPage::OnNext): Move log() call from do_local_dir() to here.
2520 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers.
2521 (do_local_dir): Remove.
2522 (dialog_proc): Remove.
2523 (cwd): Remove, not used by anything.
2525 * install.cc: Run indent.
2526 (process.h, threebar.h): New includes.
2527 (Progress): extern into this file.
2528 (ins_dialog, ins_action, ins_pkgname, ins_filename, ins_pprogress)
2529 (ins_iprogress, ins_diskfull, init_event): Remove, now handled by
2530 ThreeBarProgressPage.
2531 (dialog_cmd, dialog_proc, dialog): Removed, handled in
2532 ThreeBarProgressPage.
2533 (init_dialog): Remove all mention of the above ins_* handles. Now
2534 handled in ThreeBarProgressPage. Altered SetWindowText()s to call
2535 ThreeBarProgressPage instance Progress directly.
2536 (progress): Alter bar update logic to call ThreeBarProgressPage
2537 instance Progress directly.
2538 (uninstall_one): Alter SetWindowText()s to call ThreeBarProgressPage
2539 instance Progress directly.
2540 (install_one_source): Alter SetWindowText()s to call
2541 ThreeBarProgressPage
2542 instance Progress directly. Pass NULL parent to note().
2543 (do_install_thread): Rename from do_install(), added owner param.
2544 Alter SetWindowText()s to call ThreeBarProgressPage instance Progress
2546 Remove dismiss_url_status_dialog() call, no longer necessary. Remove
2547 ShowWindow(<hide>) call, also unnecessary now. Pass owner handle to
2549 (do_install_reflector): New function.
2550 (do_install): New function.
2552 * ini.cc (process.h, threebar.h): New includes.
2553 (Progress): externed into this file.
2554 (find_routine): Pass NULL parent to note().
2555 (do_local_ini): Add owner param.
2556 (do_remote_ini): Add owner param. Pass owner to get_url_to_membuf()
2557 and note(). Remove call to dismiss_url_status_dialog().
2558 (do_ini_thread): Rename from do_ini(). Add owner param. Pass owner to
2559 do_local_ini(), do_remote_ini(), yesno(), and note(). Set next_dialog
2560 to IDD_CHOOSER on exit.
2561 (do_ini_thread_reflector): New function.
2562 (context): New var. Context for do_ini_thread.
2563 (do_ini): New function.
2565 * geturl.h (get_url_to_membuf, get_url_to_string, get_url_to_file): Add
2567 * geturl.cc (gw_dialog, gw_url, gw_rate, gw_progress, gw_pprogress,
2569 (gw_progress_text, gw_pprogress_text, gw_iprogress_text, init_event):
2571 (threebar.h): New include.
2572 (Progress): externed into this file.
2573 (dialog_cmd, dialog_proc, dialog): Removed, handled by
2574 ThreeBarProgressPage now.
2575 (init_dialog): Remove "if (gw_dialog == 0)" clause. Alter
2577 and bar setting SendMessage()s to call ThreeBarProgressPage instance
2578 Progress directly. Remove "one bar only" logic, this is now handled
2579 explicitly in the ThreeBarProgressPage class.
2580 (progress): Altered bar and text update logic to call
2581 ThreeBarProgressPage instance Progress directly. Changed kbps
2582 calculation to floating point and now print out a single decimal
2584 (get_url_to_membuf): Add owner param. Pass it to init_dialog.
2585 (get_url_to_string): Add owner param. Pass it to get_url_to_membuf.
2586 (get_url_to_file): Add owner param. Pass it to init_dialog. Alter bar
2587 update logic to call ThreeBarProgressPage instance Progress directly.
2588 (dismiss_url_status_dialog): Remove.
2590 * fromcwd.cc (do_fromcwd): Add owner param. Initialize found_ini to
2593 * download.cc: Run indent.
2594 (process.h, threebar.h): New includes.
2595 (Progress): externed into this file.
2596 (download_one): Add owner param. Pass it to get_url_to_file().
2597 (do_download_thread): Renamed from do_download. Add owner param. When
2598 calculating total_download_bytes, take binpicked and srcpicked into
2599 account. Remove call to dismiss_url_status_dialog(), no longer needed.
2600 Pass owner handle to download_one() and yesno().
2601 (do_download_reflector, do_download): New functions.
2602 (context): New var. Context for do_download_thread().
2604 * dialog.h (D(x)): Add owner param.
2606 * desktop.h (DesktopSetupPage): New file, new class.
2607 * desktop.cc: Run indent.
2608 (desktop.h): Add include.
2609 (dialog_proc, do_desktop): Remove, now handled in
2610 DesktopSetupPage::OnInit().
2611 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, handled in
2612 DesktopSetupPage::OnFinish(), DesktopSetupPage::OnBack(), and PropSheet
2614 (DesktopSetupPage::Create, DesktopSetupPage::OnInit)
2615 (DesktopSetupPage::OnBack, DesktopSetupPage::OnFinish): Implementation
2616 of DesktopSetupPage.
2618 * cistring.h: New file, new class.
2619 * cistring.cc: New file, new class.
2621 * choose.h: Run indent.
2622 (Chooser): New class declaration.
2623 * choose.cc: Run indent.
2624 (do_choose): Add owner param. Pass it to DialogBox() and
2626 (Chooser): New class implementation.
2628 * res.rc (IDS_VERSION_INFO): New string.
2629 (IDD_SOURCE, IDD_LOCAL_DIR, IDD_ROOT, IDD_SITE, IDD_OTHER_URL)
2630 (IDD_DLSTATUS, IDD_INSTATUS, IDD_SPLASH, IDD_CHOOSE, IDD_DESKTOP):
2631 Change WS_POPUP to WS_CHILD. Numerous positioning/size changes
2633 (IDD_CHOOSE): Give template the WS_EX_CONTROLPARENT style to enable
2634 TAB control navigation etc. Give the controls a reasonable tab order.
2635 Grouped radio buttons. Something's still not right, can't tab away
2636 from back/next/cancel group reliably.
2637 * resource.h (IDD_CHOOSER): New dialog ID.
2639 * Makefile.in (OBJS): Add cistring.o, proppage.o, propsheet.o,
2640 threebar.o, and window.o.
2642 2001-12-21 Robert Collins <rbtcollins@hotmail.com>
2644 * choose.cc (listview_proc): Update the scrollbar when the headers are dragged.
2645 (pick_pkg_line::paint): Clip columns to prevent overlap.
2647 2001-12-20 Robert Collins <rbtcollins@hotmail.com>
2649 * Makefile.in: Add libcomctl32.a for setup.exe.
2650 * archive.h (archive): Prevent non-child direct creation of the class.
2651 * archive_tar.h (archive_tar): Prevent inaccurate synthetic copy and assignment.
2652 * choose.cc: Include commctrl for the choose header.
2653 (NEW_COL_SIZE_SLOP): Define without magic numbers.
2654 (pkgtrustp): Convert to function.
2655 (set_action): Remove.
2656 (add_required, fill_missing_category,default_trust): Use list syntax for
2659 (choose_caption): Remove.
2660 (topbucket::paint): New method.
2661 (topbucket::empty): Ditto.
2662 (topbucket::click): Ditto.
2663 (topbucket::~topbucket): Ditto.
2664 (paint): Remove i,ii and p as they are obsolete.
2665 Remove header drawing code.
2666 Use new chooser method to paint the chooser.
2667 Use new chooser itemcount method.
2668 (scroll_common): Rename to view::scroll.
2669 Scroll the header window separately.
2670 (list_vscroll, list_hscroll, list_click): Update for new chooser methods.
2671 (listview_proc): Look for header messages.
2672 (note_width): Accept stringless calls.
2673 (pick_line::set_line): Remove.
2674 (pick_line::paint): Remove.
2675 (pick_pkg_line::paint): Paint this one line, using the header column widths.
2676 (pick_category_line::paint): Paint this category, and anything in the bucket.
2677 (pick_line::click): Remove.
2678 (pick_pkg_line::click): Handle a click.
2679 (pick_category_line::click): Handle a click.
2680 (_view): Rename all to view.
2681 (view::view): Initialise the control contents.
2682 (view::set_headers): Work with the header control.
2683 (view::init_headers): Use list syntax for package list.
2684 Rearrange the width logic a little.
2685 (view::insert_pkg): Update to use the hierarchy.
2686 (view::insert_category): Ditto.
2687 (view::insert_at, view::insert_under): Remove.
2688 (view::clear_view): Update to use the hierarchy.
2689 (view::click): Update to use the hierarchy.
2690 (set_view_mode): Use list syntax for package list.
2691 Update for new chooser methods.
2692 (DoInsertItem): New helper function. (Needs a home somewhere).
2693 (create_listview): Remove choose control code and use the constructor instead.
2694 (dialog_cmd,scan2,do_choose): Use list syntax for package list.
2695 * choose.h: Include newly required headers list and package_meta.
2696 (_voew): Rename to view.
2697 (pick_line): Convert to an ABC.
2698 (pick_pkg_line): New class.
2699 (pick_catgory_line): New class.
2700 (topbucket): New class.
2701 (view::scroll): New method created from listview_scroll function.
2702 * desktop.cc (make_passwd_group): Use list syntax for package list.
2703 * download.cc (do_download): Use list syntax for package list.
2704 * fromcwd.cc (found_file): Use list syntax for package list.
2705 * iniparse.y (pacakges): Use list syntax for package list.
2706 * install.cc (uninstall_one): Use list syntax for package list.
2707 (do_install): Use list syntax for package list.
2708 * io_stream.h (io_stream): Prevent non-child direct creation of the class.
2709 Prevent inaccurate synthetic copy and assignment.
2710 * list.h: Include required header stdlib.
2711 Work on const correctness.
2712 * package_db.cc (packagedb::getpackagebyname): Remove.
2713 (packagedb::packagedb): Remove custom list code, and make db a local.
2714 (packagedb::getfirstpackage): Remove.
2715 (packagedb::getnextpackage): Remove.
2716 (packagedb::addpackage): Remove.
2717 (flush): Remove custom list code.
2718 (packagedb::registerpackage): Remove.
2719 (packagedb::packages): New static member.
2720 (packagedb::task): New static member.
2721 * package_db.h (PackageDBActions): New enum.
2722 (packagedb): Remove getfirstpackage, getnextpackage, getpackagebyname,
2723 addpackage, registerpackage, packages, packagecount, curr_package, db.
2725 * pacakge_meta.cc: Include package_db.h.
2726 (packagemeta::action_caption): New method.
2727 (packagemeta::set_action): New method.
2728 * package_meta.h (CategoryPackage): Initialise key.
2729 (packagemeta): Initialise key.
2730 Add set_action and action_caption methods.
2731 Prevent inaccurate synthetic copy and assignment.
2732 * resource.h (IDC_CHOOSE_LISTHEADER): New ID.
2733 * source.cc: Include package_db for db manipulation.
2734 (save_dialog): Set the db task.
2735 * win32.h: Tell the w32 include headers what IE version to expect/require.
2737 2001-12-06 Robert Collins <rbtcollins@hotmail.com>
2739 * README: Wishlist updates.
2741 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
2743 * package_db.cc (getnextpackage): Don't overrun the array.
2745 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
2747 * Makefile.in (OBJS): Add setup_version.o.
2748 (version.c): Rename to setup_version.
2749 * choose.cc (set_action): Prevent NULL pointer dereference.
2750 (package_sort): Remove.
2751 * fromcwd.cc (canonicalize_version): Moved to version.cc.
2752 (check_ini): New function for use with find to see if there is a cached setup.ini.
2753 (do_fromcwd): Check for a cached setup.ini from any mirror site.
2754 * ini.cc (find_routine): New function, for finding cached setup.ini's.
2755 (do_local_ini): New function, drives parsing of local ini's.
2756 (do_remote_ini): New function, drives parsing and caching of remote ini's.
2757 (do_ini): Move guts to do_remote_ini and do_local_ini.
2758 * list.h (removebyindex): New method.
2759 * other.cc (save_dialog): Use new site_list and all_site_list to add the
2760 new site to the site picklist.
2761 (dialog_cmd): Only save the dialog when exiting the dialog.
2762 * res.rc (IDD_SITE): Make IDC_URL_LIST a multiple-selection control.
2763 * site.cc (site_list_type): Move to site.h
2764 (site_list): New global, sites chosen by the user.
2765 (all_site_list): New global, all potential sites.
2766 (site_list_type::init): New method, parses a mirror.lst URL string into a
2767 site_list_type object.
2768 (site_list_type::site_list_type): New method.
2769 (check_if_enable_next): Examine the control, not a local variable.
2770 (load_dialog): Select all the user chosen sites by default.
2771 (save_dialog): Adjust for multiple selection semantics.
2772 (save_site_url): Save all user chosen sites.
2773 (dialog_cmd): Don't save the dialog when the listbox recieves a message -
2775 Remove obsolete other_url reference.
2776 (dialog_proc): Use all_site_list instead of site_list.
2777 (site_sort): Remove.
2778 (get_site_list): Remove malloc use - use list template instead.
2779 Move site_list_type initialisation to site_list_type::init().
2780 (get_initial_list_idx): Renamed to ...
2781 (get_saved_sites): this. Also read in multiple sites to the site_list.
2782 (do_site): Use all_site_list not site_list.
2783 Log all chosen sites.
2784 * site.h: New file, defines site related class, functions and variables.
2785 * state.h: Add comment about use of state.h
2786 (mirror_site): Remove.
2787 (other_url): Remove.
2788 (MIRROR_SITE): Remove.
2789 * version.cc: New file, for version-handling and related functions.
2791 2001-12-02 Robert Collins <rbtcollins@hotmail.com>
2793 * Makefile.in: Add filemanip.o to setup.
2794 * archive.cc (archive::extract_file): Use new io_stream method 'copy'.
2795 * archive_tar.h (archive_tar_file): Implement get_size virtual.
2796 (archive_tar): Ditto.
2797 * choose.cc (set_action): Use [] operator instead of getnth - its more readable.
2799 (_view::init_headers): Ditto.
2800 (_view::insert_pkg): Ditto.
2801 (set_view_mode): Ditto.
2804 (base): Moved to filemanip.cc.
2805 (find_tar_ext): Ditto.
2806 (parse_filename): Ditto.
2807 (_Info::_Info): Remove.
2808 * compress_bz.h (compress_bz): Implement get_size virtual.
2809 * compress_gz.h (compress_gz): Implement get_size virtual.
2810 * cygpackage.cc (cygpackage::destroy): Use array delete for char * objects.
2811 * download.cc (get_file_size): Move to filemanip.cc.
2812 (check_for_cached): Use [] operator instead of getnth - its more readable.
2813 (download_one): Ditto.
2814 * filemanip.cc: New file.
2815 * geturl.cc (init_dialog): Make url a pointer to const as it is not modified.
2816 (get_url_to_membuf): New function - contains get_url_to_string worker code.
2817 (get_url_to_string): Becomes a trivial wrapper to get_url_to_membuf.
2818 * geturl.h: Declare new prototype.
2819 * ini.cc (do_ini): Use get_url_to_membuf and pass ini_init an io_stream.
2820 Tidy up the error code a little.
2821 * ini.h: Remove __cplusplus protection for ini_init.
2823 * inilex.l: Remove old globals.
2824 (ini_init): Use an io_stream for getting the characters.
2825 (ini_getchar): Ditto.
2826 * iniparse.y: Declare yylex as a C++ function.
2827 (add_correct_version): Use [] operator instead of getnth - its more readable.
2828 * io_stream.cc (io_stream::move_copy): Use the copy method.
2829 (io_stream::copy): New method to simply copy from one stream to another.
2830 * io_stream.h (io_stream): New static method copy, and virtual method get_size.
2831 * io_stream_cygfile.cc (io_stream_cygfile::get_size): Implement this.
2832 * io_stream_cygfile.h (io_stream_cygfile::get_size): Declare this.
2833 * io_stream_file.cc (io_stream_file::get_size): Implement this.
2834 * io_stream_file.h (io_stream_file::get_size): Declare this.
2835 * io_stream_memory.h: Include errno as it's neded to parse the header.
2836 (io_stream_memory::get_size): Implement this.
2837 (io_stream_memory::st_size): Delete this.
2838 * list.h: Change getnth into the [] operator.
2839 * netio.cc (NetIO::NetIO): Change prototype to reflect Purl not being modified.
2840 (NetIO::set_url): Ditto.
2841 (NetIO::open): Ditto.
2842 * netio.h: As for netio.cc.
2843 * nio-file.cc (NetIO_File::NetIO_File): Change prototype to reflect Purl not
2845 * nio-file.h: Ditto.
2846 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
2847 * nio-ftp.h (NetIO_FTP::NetIO_FTP): Ditto.
2848 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Ditto.
2849 * nio-http.h (NetIO_HTTP::NetIO_HTTP): Ditto.
2850 * nio-i5.cc (NetIO_IE5::NetIO_IE5): Ditto.
2851 * nio-i5.h (NetIO_IE5::NetIO_IE5): Ditto.
2852 * package_meta.cc (packagemeta::~packagemeta): Bugfix: use array delete.
2853 * package_source.cc (packagesource::set_canonical): Ditto.
2854 (packagesource::set_cached): Ditto.
2855 * package_source.h (site::~site): Ditto.
2856 * site.cc: Change site_list_type to a class, and search and replace sort_key to
2859 2001-12-01 Robert Collins <rbtcollins@hotmail.com>
2861 * package_source.cc (packagesource::set_canonical): Filename was out by one.
2863 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
2865 * Makefile.in (OBJS): Remove category_list - it's not needed.
2866 * README: More wishlist updates.
2867 * category.cc (Category::Category): Initialise new members.
2868 (Categorycmp): New function.
2869 * category.h (Category): New member key for template use.
2870 * category_list.cc: Remove.
2871 * category_list.h: Remove.
2872 (Categorycmp): New function prototype.
2873 * choose.cc: Remove category_list - not needed.
2874 (set_action): Only show the 'source' option when the source is actually
2876 (add_required): Fix recursion limiter to 5.
2877 (fill_missing_category): Use list access.
2878 (default_trust): Ditto.
2879 (pick_line::paint): Ditto.
2880 (_view::init_headers): Ditto.
2881 (_view::insert_pkg): Ditto.
2882 (_view::insert_category): Ditto.
2883 (_view::click): Ditto.
2884 (set_view_mode): Ditto.
2886 * cygpackage.h: Remove category_list - not needed.
2887 * geturl.cc (get_url_to_string): Fix null byte insertion.
2888 * inipatse.y: Remove category_list - not needed.
2889 (categories): Use list access.
2890 * package_db.cc: Ditto.
2891 * package_db.h: Remove category_list - not needed.
2892 (packagedb): Use the list template for categories.
2893 * package_meta.cc (add_category): Ditto.
2894 * package_meta.h (CategoryPackage): Link to the category as well.
2895 (packagemeta): Use a list of CategoryPackages instead of Categories
2896 for more memory efficient cross-referencing.
2898 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
2900 * package_db.cc (packagedb::flush): Write a canonical version for all packages
2901 irrespective of the media they were installed from.
2903 2001-11-29 Robert Collins <rbtcollins@hotmail.com>
2905 * Makefile.in (OBJS): Add package_source and rfc1738.
2906 * README: Wishlist update.
2907 * category_list.cc (register_category): Use references.
2908 * category_list.h (CategoryList): Ditto.
2909 * choose.cc (isinstalled): Remove.
2910 (pkgtrustp): New macro.
2911 (set_action): Use packagemeta.
2912 (add_required): Ditto.
2913 (choose_caption): Example package to choose caption, rather than state flags.
2914 (check_existence): Remove.
2915 (set_existence): Remove old code.
2916 (fill_missing_category): Use packagemeta.
2917 (keep_or_skip): Remove.
2918 (default_trust): Use packagemeta and set trust values directly.
2919 (pick_line::set_line): Use packagemeta.
2920 (_view::insert_pkg): Ditto.
2921 (_view::insert_category): Ditto.
2922 (_view::click): Ditto.
2923 (set_view_mode): Ditto. Also remove "exclude" code.
2924 (create_listview): Use packagemeta.
2925 (dialog_cmd): Ditto.
2926 (getpkgbyname): Remove
2927 (scan2): Use packagemeta. Temporarily comment out the holefinding code.
2928 (read_installed_db): Remove.
2929 (package_sort): Use packagemeta.
2930 (do_choose): Use packagemeta. Don't sort the packages - the db does that.
2931 * choose.h: Use packagemeta.
2932 * cygpackage.cc (cygpackage::cygpackage): Initialise all variables.
2933 (cygpackage::cygpackage): Ditto.
2934 (cygpackage::set_canonical_version): Copy the passed string.
2935 (cygpackage::~cygpackage): Move cleanup code to destroy().
2936 (cygpackage::destroy): New function.
2937 (cygpackage::getfirstfile): Use a separate buffer.
2938 (cygpackage::getnextfile): Ditto.
2939 (cygpackage::Canonical_version): New function.
2940 (cygpackage::set_sdesc): Ditto.
2941 (cygpackage::set_ldesc): Ditto.
2942 * cygpackage.h (cygpackage::Canonical_version): New method.
2943 (cygpackage::set_sdesc): New method.
2944 (cygpackage::set_ldesc): New method.
2945 (cygpackage::SDesc): New method.
2946 (cygpackage::LDesc): New method.
2947 (cygpackage::set_canonical_version): New method.
2948 * desktop.cc: Include packagedb headers.
2949 (make_password_group): Use packagemeta.
2950 * download.cc: Include packagedb headers.
2951 (check_for_cached): New method to find any cached file and fill out the database
2953 (download_one): Take a packagesource, support multiple mirrors.
2954 (do_download): Use packagemeta.
2955 * from cwd.cc: Include packagedb headers.
2956 (found_file): Use packagemeta.
2957 * ini.cc (do_ini): Beginning of multiple-mirror support.
2958 * ini.h (CategoryPackage): Remove.
2959 (Dependency): Remove.
2961 (new_package,getpkgbyname,getpackagecategorybyname,add_category): Remove.
2962 * inilex.l: Support multiple mirrors.
2963 * iniparse.y: Include packagedb headers.
2964 (parser): Use packagemeta.
2965 (new_package): Remove.
2966 (add_correct_version): New function.
2967 (new_requirement): Remove.
2968 (add_category): Remove.
2969 * install.cc (uninstall_one): Use packagemeta.
2970 (install_one_source): New function.
2971 (install_one): Use packagemeta.
2972 (do_install): Use packagemeta.
2973 * io_stream.cc (io_stream::move): Bugfix on move/copy case.
2974 * io_stream_cygfile.cc (io-stream_cygfile::set_mtime): Do not reopen the file
2975 after setting the mtime, it makes no sense, and results in 0 length files.
2976 * io_stream_file.cc (io-stream_file::set_mtime): Ditto.
2977 * list.h: New file, template class for a form of list.
2978 * package_db.cc (packagedb::registerpackage): New function.
2979 * package_db.h (packagedb::npackages ()): New method.
2980 * package_meta.cc (packagemeta::add_version): Use list template.
2981 (packagemeta::set_installed): Ditto.
2982 (packagemeta::add_category): New method.
2983 * package_meta.h: Include necessary headers to parse the class.
2984 (CategoryPackage): New class.
2985 (packagemeta): Initialise all members.
2986 (packagemeta::SDesc): New method.
2987 (packagemeta::Categories): New method.
2988 (packagemeta::add_category): Ditto.
2989 (packagemeta::versions): Change to be a list instance.
2990 * package_source.cc (packagesource::set_canonical): New method.
2991 (packagesource::set_cached): New method.
2992 * package_source.h: Include necessary headers to parse the class.
2994 (packagesource::packagesource): Initialize all members.
2995 (packagesource): Make this class non-abstract.
2996 * package_version.cc (packageversion::packageversion): New method.
2997 * package_version.h (Dependency): New class.
2998 (packageversion::Canonical_vesion): New method.
2999 (packageversion::SDesc): New method.
3000 (packageversion::LDesc): New method.
3001 (packageversion::new_requirement): Ditto.
3002 (packageversion::srcpicked, binpicked): What to install.
3003 (packageversion::src, bin): Installation source data.
3004 * rfc1738.cc: New file. Escapes special characters in URL's.
3007 2001-11-26 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3009 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Stop header parsing when
3010 SimpleSocket::gets() returns a zero-length string, so that we
3011 don't end up eating the entire stream thinking it's all header info.
3013 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
3015 * install.cc (badrename): Remove.
3016 (do_install): Use packagedb flush method to write /etc/setup/installed.db.
3017 * io_stream.cc (io_stream::move_copy): New method.
3018 (io_stream::move): New method.
3019 * io_stream.h (io_stream): New methods move and move_copy.
3020 * io_stream_cygfile.cc (io_stream_cygfile::move): New method.
3021 * io_stream_cygfile.h (io_stream_cygfile): New method move.
3022 * io_stream_file.cc (io_stream_file::move): New method.
3023 * io_stream_file.h (io_stream_file): New method move.
3024 * package_db.cc (packagedb::flush): New method.
3025 * package_db.h (packagedb): New method flush.
3027 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
3029 * Makefile.in (OBJS): Add package_version.
3030 * ategory.cc (Category::Category): Update constructors.
3031 * category_list.cc (CategoryList::register_category): Insert correctly.
3032 * choose.cc: Include package_version.h, not package.h.
3033 * cygpackage.cc: Ditto.
3034 (cygpackage::uninstall): New method.
3035 * cygpackage.h (cygpackage): Rename genericpackage to packageversion.
3036 New method uninstall.
3037 * hash.cc (add, has, enumerate): Change prototype to be accurate.
3038 * hash.h (hash): Change prototypes to be accurate.
3039 * ini.h (_Info): New parameterless constructor.
3040 (CategoryPackage): New constructor.
3042 * install.cc: Don't include unneeded headers.
3043 Include package database headers.
3044 (hash::add_subdirs): Remove.
3045 (uninstall_one): Use packagemeta->uninstall to perform the uninstallation.
3046 Don't uninstall source packages.
3047 (do_install): Just can uninstall_one once as we ignore source packages now.
3048 Don't copy the installed.old database accross, instead iterate through the
3049 packagedb packages list and write the isntalled packages out.
3050 * package_db.cc: Include package_version.h, not package.h.
3051 (packagedb::packagedb): Never let db be undefined.
3052 Record the installation filename, so we can reconstruct installed.db.
3053 (packagedb::addpackage): Insert packages in alpha sorted order.
3054 (packagedb::categories): Initialise correctly.
3055 * package_meta.cc: Include win32 and mount headers as a workaround to
3056 current io_stream limitations. Include a TODO about that.
3057 (standard_dirs): New, from install.cc.
3058 (hash::add_subdirs): New, from install.cc.
3059 (packagemeta::set_installed): Rename genericpackage to packageversion.
3060 (packagemeta::uninstall): New method.
3061 * package_meta.h: Rename genericpackage to packageversion.
3062 (packagemeta): Update constructor.
3063 (add_version, set_installed): Rename genericpackage to packageversion.
3064 (uninstall): New method.
3065 (installed_from): New member.
3066 * package_source.cc: New file.
3067 * package_source.h: New file.
3068 * package_version.cc: New file.
3069 * package_version.h: New file.
3070 * package.cc: Removed.
3071 * package.h: Removed.
3073 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
3075 * Makefile.in (OBJS): Add category.o and category_list.o.
3076 * category.h: New file.
3077 * category.cc: New file.
3078 * category_list.h: New file.
3079 * category_list.cc: New file.
3080 * choose.cc: Include category headers.
3081 (fill_missing_category): Use package_db to access global categories.
3082 (_view::insert_pkg): Ditto.
3083 (_view::insert_category): Ditto.
3084 (set_view_mode): Ditto.
3085 (getcategorybyname): Remove.
3086 * cygpackage.h: Include category_list.h to parse this correctly.
3087 (cygpackage): New virtual &Categories.
3088 * ini.h (_CategoryPackage): More C to C++ conversion.
3090 (getcategorybyname): Remove.
3091 (register_category): Remove.
3092 * iniparse.y: Include package db and category headers.
3093 (categories): Use package_db to access global categories.
3095 (ncategories): Remove.
3096 (register_category): Remove.
3097 * package.h: New virtual &Categories.
3098 * package_db.cc (packagedb::packagedb): Don't read the installed db twice.
3099 (packagedb::categories): Declare.
3100 * package_db.h (packagedb): New member categories for global categories list.
3102 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
3104 * choose.h: Don't include ini.h
3105 * ini.h: Allow pure c++ in the header file.
3107 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
3109 * install.cc (do_install): Write a version 2 installed.db file.
3110 * package_db.cc (packagedb::packagedb): Read version 1 and 2 installed.db files.
3112 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
3114 * Makefile.in (OBJS): Add package abstraction objects.
3115 * choose.cc: Include package abstraction headers.
3116 (read_installed_db): Use packagedb class and ignore installed sources.
3117 * cygpackage.cc: New file.
3118 * cygpackage.h: New file.
3119 * filemanip.h (get_file_size): Use unixy types.
3120 * package.h: New file.
3121 * package.cc: New file.
3122 * package_db.cc: New file.
3123 * package_db.h: New file.
3124 * package_meta.cc: New file.
3125 * package_meta.h: New file.
3127 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
3129 * REAME: Updates to wishlist.
3131 2001-11-16 Robert Collins <rbtcollins@hotmail.com>
3133 * README: Updated and added my list of wishlist and todo items.
3135 2001-11-14 Robert Collins <rbtcollins@hotmail.com>
3137 * Makefile.in (OBJS): Include io_stream_memory in setup.exe.
3138 * archive_tar.cc (archive_tar::write): New prototype.
3139 (archive_tar::seek): New method.
3140 * archive.h (archive_tar_file): Update write() and add seek().
3141 (archive_tar): Ditto.
3142 * archive_tar_file.cc (archive_tar_file::write): New prototype.
3143 (archive_tar_file::seek): New method.
3144 * compress_bz.cc (compress_bz::write): New prototype.
3145 (compress_bz::seek): New function.
3146 * compress_bz.h (compress_bz): Update write() and add seek().
3147 * compress_gz.cc (compress_gz::write): New prototype.
3148 (compress_gz::seek): New function.
3149 * compress_gz.h (compress_gz): Update write() and add seek().
3150 * geturl.cc: Include io_stream headers.
3152 (get_url_to_string): Use a io_stream_memory buffer instead of GUBuf.
3153 * io_stream.h (io_stream_seek_t): New enum.
3154 (io_stream): Update write() and add seek().
3155 * io_stream_cygfile.cc (io_stream_cygfile::write): New prototype.
3156 (io_stream_cygfile::seek): New function.
3157 * io_stream_cygfile.h (io_stream_cygfile): Update write() and add seek().
3158 * io_stream_file.cc (io_stream_file::write): New prototype.
3159 (io_stream_file::seek): New function.
3160 * io_stream_file.h (io_stream_file): Update write() and add seek().
3162 2001-11-13 Brian Keener <bkeener@thesoftwaresource.com>
3164 * localdir.cc: Add headers unistd.h and port.h.
3165 (save_local_dir): Expand search logic to include local directory for
3166 location of file last-cache.
3167 (dialog_cmd): Skip IDD_ROOT when downloading and use Back button.
3168 (do_local_dir): Expand search logic to include local directory for file
3170 * res.rc (IDD_CHOOSE_DIALOG): Add hotkey to View button.
3171 * Source.cc (dialog_cmd): Skip IDD_ROOT if select Download from
3173 (do_source): Default to Install from Internet on first entry or
3174 previous selection if backing up from IDD_ROOT or IDD_LOCAL_DIR.
3176 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
3178 * choose.cc (find_tar_ext): Only match at the end of the string.
3179 (getpkgbyname): Prevent NULL pointer dereference.
3181 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
3183 * Makefile.in (CFLAGS): Add warnings and -Werr.
3184 (WARNONLY_FLAGS): For sources that produce (harmless) errors no matter what.
3185 (OBJS): Add io_stream class' objects.
3186 (autoload.o): Use WARNONLY_FLAGS.
3188 (iniparse.o): Ditto.
3189 * archive.cc: New file.
3190 * archive.h: New file.
3191 * archive_tar.cc: New file.
3192 * archive_tar.h: New file.
3193 * archive_tar_file.cc: New file.
3194 * autoload.c: Fix compiler warnings (unused, deprecated conversion).
3195 * choose.cc: Use io_stream.h, not mount.h.
3197 (find_tar_ext): Rewritten to use strstr, and to accept .tar as an extension.
3198 (read_installed_db): Use io_streams.
3199 * choose.h: Run indent.
3200 * compress.cc: New file.
3201 * compress.h: New file.
3202 * compress_bz.cc: New file.
3203 * compress_bz.h: New file.
3204 * compress_gz.cc: New file.
3205 * compress_gz.h: New file.
3206 * concat.cc: Run indent.
3207 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3208 * concat.h: Run indent.
3209 * desktop.cc: Run indent.
3210 Include mklink2.h rather than redefining by hand.
3211 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3212 (etc_profile): Fix compiler warning (deprecated conversion).
3213 (make_link): Fix compiler warning (deprecated conversion).
3214 Tidy up use of args variable - consolidate into argbuf.
3215 (start_menu): Fix compiler warning (deprecated conversion).
3216 (desktop_icon): Fix compiler warning (deprecated conversion).
3217 (make_etc_profile): Fix compiler warning (deprecated conversion).
3218 (uexists): Fix compiler warning (deprecated conversion).
3219 (check_desktop): Fix compiler warning (deprecated conversion).
3220 (check_startmenu): Fix compiler warning (deprecated conversion).
3221 * dialog.cc: Run indent.
3222 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3223 (fatal): Fix compiler warning (deprecated conversion).
3224 * dialog.h: Run indent.
3225 * diskfull.cc: Run indent.
3226 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3227 * download.cc: Run indent.
3228 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3229 (download_one): Fix compiler warning (signed vs unsigned comparison).
3230 * filemanip.h: Run indent.
3231 * find.cc: Run indent.
3232 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3233 (find): Fix compiler warning (deprecated conversion).
3234 * find.h: Run indent.
3235 * fromcwd.cc: Run indent.
3236 * geturl.cc: Run indent.
3237 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3238 (dialog_cmd): Return a value.
3239 (dialog_proc): Remove unused variables.
3241 (get_url_to_file): Fix compiler warning (deprecated conversion).
3242 * geturl.h: Run indent.
3243 * hash.cc: Run indent.
3244 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3245 * hash.h: Run indent.
3246 * ini.cc: Run indent.
3248 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3249 (do_ini): Use io_streams for local io.
3250 * ini.h: Run indent.
3251 * inilex.l (ignore_line): Fix compiler warning (is not a prototype).
3252 Fix compiler warning (brackets for truth assignment).
3253 * install.cc: Run indent.
3254 Fix compiler warning (/* in comment).
3256 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3257 (dialog_cmd): Return a value.
3258 (dialog_proc): Return a value.
3259 (start_tics): Deleted - was unused.
3260 (badrename): Fix compiler warnings (unused, deprecated conversion).
3261 (standard_dirs): Fix compiler warning (deprecated conversion).
3263 (uninstall_one): Convert to io_streams.
3264 (install_one): Convert to io_streams.
3265 (do_install): Convert to io_streans.
3266 Fix compiler warning (deprecated conversion).
3267 * io_stream.cc: New file.
3268 * io_stream.h: New file.
3269 * io_stream_cygfile.cc: New file.
3270 * io_stream_cygfile.h: New file.
3271 * io_stream_file.cc: New file.
3272 * io_stream_file.h: New file.
3273 * localdir.cc: Run indent.
3275 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3276 (get_root_dir_now): Remove.
3277 (save_local_dir): Convert to io_streams.
3278 (dialog_cmd): Return a value.
3279 (do_local_dir): Convert to io_streams.
3280 (log.cc): Run indent.
3281 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3282 (log): Fix compiler warning (deprecated conversion).
3283 (log_save): Fix compiler warning (deprecated conversion).
3284 * log.h: Run indent.
3285 (log): Fix compiler warning (deprecated conversion).
3286 (log_save): Fix compiler warning (deprecated conversion).
3287 * main.cc: Run indent.
3288 Don't include "netio.h".
3289 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3290 (netio_test): Remove.
3291 (sid_auth): Fix compiler warning (partially bracketed initialiser).
3292 (WinMain): Return a value.
3293 * mkdir.cc: Run indent.
3294 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3295 * mklink2.c: Run indent.
3296 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3297 (mkcygsymlink): New function.
3298 * mklink2.h: New file.
3299 * mount.cc: Run indent.
3300 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3301 (create_mount): Remove unused variables.
3302 (cygpath): Fix compiler warning (signed vs unsigned comparison).
3303 * mount.h: Run indent.
3304 * msg.cc: Run indent.
3305 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3306 (msg): Fix compiler warning (deprecated conversion).
3307 (mbox): Fix compiler warning (deprecated conversion).
3308 * msg.h: Run indent.
3309 (msg): Fix compiler warning (deprecated conversion).
3310 * net.cc: Run indent.
3311 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3312 (dialog_cmd): Return a value.
3313 * netio.cc: Run indent.
3314 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3315 (auth_cmd): Return a value.
3316 * netio.h: Run indent.
3317 * nio-file.cc: Run indent.
3318 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3319 (NetIO_File::NetIO_File): Fix compiler warning (deprecated conversion).
3320 * nio-file.h: Run indent.
3321 * nio-ftp.cc: Run indent.
3322 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3323 * nio-ftp.h: Run indent.
3324 * nio-http.cc: Run indent.
3325 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3326 * nio-http.h: Run indent.
3327 * nio-ie5.cc: Run indent.
3328 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3329 * nio-ie5.h: Run indent.
3330 * other.cc: Run indent.
3331 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3332 (dialog_cmd): Return a value.
3333 * port.h: Run indent.
3334 * postinstall.cc: Run indent.
3335 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3336 (cmd): Fix compiler warning (deprecated conversion).
3337 (eun): Fix compiler warning (deprecated conversion).
3338 * root.cc: Run indent.
3339 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3340 * simpsock.cc: Run indent.
3341 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3342 * simpsock.h: Run indent.
3343 * site.cc: Run indent.
3345 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3346 (get_root_dir_now): Remove.
3347 (save_site_url): Convert to io_streams.
3348 (dialog_cmd): Return 0.
3349 (get_initial_list_idx): Convert to io_streans.
3350 * source.cc: Run indent.
3351 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3352 (check_if_enable_next): Remove.
3353 (load_dialog): Remove unused variables.
3354 (save_dialog): Ditto.
3355 (dialog_cmd): Return a value.
3356 * splash.cc: Return a value.
3357 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3358 (dialog_cmd): Return a value.
3359 * state.cc: Run indent.
3360 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3361 * state.h: Run indent.
3365 2001-11-12 Christopher Faylor <cgf@redhat.com>
3367 * desktop.cc (start_menu): Change start menu name to "Cygwin".
3368 (check_startmenu): Ditto.
3370 2001-11-11 Christopher Faylor <cgf@redhat.com>
3372 * choose.cc (parse_filename): Finish reorganization by correctly
3373 decrementing p in memmove.
3375 2001-11-11 Christopher Faylor <cgf@redhat.com>
3377 * choose.cc (parse_filename): Reorganize code to work around gcc
3378 optimization problem.
3380 2001-11-09 Gareth Pearce <tilps@hotmail.com>
3382 * choose.cc (set_action): Allow skip as an option for installed
3383 packages that have version number not listed in setup.ini.
3385 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
3387 * choose.cc (set_cation): Backout last change.
3388 (choose_caption): Ditto.
3390 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
3392 * ini.h (actions): Remove - transferred to choose.h.
3394 * choose.h: Protect class's from "C" compilers.
3395 (actions): New enum, from ini.h. This may not be the 'right' place
3396 but that place doesn't exist yet.
3397 (_views): New enum, from ini.h.
3398 * choose.cc (set_action): Handle installed packages with a version not in
3400 (choose_caption): Ditto.
3401 * iniparse.y: Rearrange header order to handle new ini.h.
3403 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
3405 * ini.h (_Info): Fix compiler warnings (signed vs unsigned comparison).
3406 (registry_category): Fix compiler warning (deprecated conversion).
3407 * iniparse.y (registry_category): Ditto.
3408 * choose.cc (cvsid): Fix compiler warnings (unused, deprecated conversion).
3409 (add_requried): Remove unused variable.
3410 (choose_caption): Handle all enumeration values via a default.
3411 (paint): Fix compiler warnings (unused, deprecated conversion).
3412 (scroll_common): Fix compiler warnings (unused, signed vs unsigned comparison).
3413 (list_clicK): Fix compiler warnings (signed vs unsigned comparison).
3414 (note_width): Fix compiler warnings (deprecated conversion).
3415 (keep_or_skip): Fix compiler warnings (unused).
3416 (_view::mode_caption): Fix compiler warnings (deprecated conversion).
3417 (set_view_mode): Fix compiler warnings (unused).
3418 (create_listview): Fix compiler warnings (unused, incorrect format, reaches
3420 (dialog_proc): Fix compiler warnings (unused).
3421 (read_installed_db): Fix compiler warnings (unused, deprecated conversion).
3422 * choose.h (_header): Fix compiler warnings (deprecated conversion).
3425 2001-11-08 Pavel Tsekov <ptsekov@syntrex.com>
3427 * simpsock.h (SimpleSocket::invalidate): Declare new method.
3428 * simpsock.cc (SimpleSocket::invalidate): Implement new method.
3429 (SimpleSocket::SimpleSocket): Initialize buf to zero. Do not allocate
3430 memory for buf in the constructor.
3431 (SimpleSocket::~SimpleSocket): Use SimpleSocket::invalidate().
3432 (SimpleSocket::printf): Use SimpleSocket::write() instead of send().
3433 (SimpleSocket::write): Check object consistency - return -1 on error.
3434 invalidate() the object on socket write error.
3435 (SimpleSocket::fill): Check object consistency - return -1 on error.
3436 invalidate() the object if socket read error is encountered and there
3437 is no more data available in the internal read buffer.
3438 Allocate memory for the internal read buffer.
3439 (SimpleSocket::gets): Return zero (NULL pointer) if error is encountered
3440 during fill() and no more data is available in the internal read buffer.
3441 (SimpleSocket::read): Check object consistency - return -1 on error.
3442 invalidate() the object if socket read error is encountered.
3443 * nio-ftp.cc (NetIO_FTP:NetIO_FTP): Allow 125 as valid response code to
3444 the RETR command (fix for MS IIS ftp server 5 - possibly others too).
3445 (NetIO_FTP::ok): Check if the SimpleSocket object is ok().
3446 (NetIO_FTP::read): Use NetIO_FTP::ok().
3447 * nio-http.cc: Check for valid return value of SimpleSocket::gets().
3448 (NetIO_HTTP::ok): Check if the SimpleSocket object is ok().
3450 2001-11-09 Robert Collins <rbtcollins@hotmail.com>
3452 * simpsock.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3453 (SimpleSocket::SimpleSocket): Avoid compiler warnings (deprecated conversion).
3454 (SimpleSocket::printf): Ditto.
3455 (SimpleSocket::write): Ditto.
3456 * simpsock.h (SimpleSocket): Avoid compiler warnings for constructor,
3458 * nio-ftp.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3459 (NetIO_FTP::NetIO_FTP): Remove unused variable done.
3460 * nio-http.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3462 2001-11-07 Charles Wilson <cwilson@ece.gatech.edu>
3464 * geturl.cc (get_url_to_string): clean up memory leak
3465 (get_url_to_file): ditto
3467 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
3469 * localdir.cc (dialog_cmd): Go back to IDD_ROOT in every case.
3470 * source.cc (dialog_cmd): Go forward to IDD_ROOT in every case.
3472 2001-11-06 Pavel Tsekov <ptsekov@syntrex.com>
3474 * fromcwd.cc (found_file): Free() memory containing the version and
3475 filepath information for a given package, before replacing the pointers which
3476 reference this memory.
3478 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
3480 * fromcwd: Fix compiler warnings for cvsid.
3481 (canonicalize_version): Fix compilter warnings.
3482 (do_fromcwd): Ditto.
3483 * version.h: Fix compiler warnings for canonicalize_version.
3485 2001-11-03 Robert Collins <rbtcollins@hotmail.com>
3487 * res.rc (IDD_CHOOSE): Move the view caption to the right hand side.
3489 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3491 * res.rc (IDD_CHOOSE): Tweak for use on a 640x480 screen.
3493 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3495 * choose.cc (set_action): Correctly allow skip for any uninstalled package.
3497 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3499 * choose.cc (default_trust): Change the "Required" forced install category to
3502 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3504 * choose.cc: Ran indent.
3505 (set_action): When the requested trust level is missing and the level was not
3506 user requested, set the action to ACTION_SAME_CURR.
3508 2001-11-01 Christopher Faylor <cgf@redhat.com>
3510 * Makefile.in (mingw_getopt.o): Fix typo in non-verbose compilation.
3512 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3514 * choose.cc (_view::init_headers): Resync with the paint logic.
3516 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3518 * choose.cc (add_required): Allow SKIP and SRC_ONLY for currently installed
3521 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3523 * choose.cc (default_trust): Autoset currently installed packages per the user's
3524 selection of prev/curr/exp.
3526 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3528 * splash.cc (dialog_proc): Return TRUE as specified in the WIN32 API.
3530 2001-11-02 Pavel Tsekov <ptsekov@syntrex.com>
3532 * geturl.cc (is_showing): Remove.
3533 (is_local_install): New static variable. Controls whether the
3534 progress dialog and the supporting thread will be created.
3535 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the WIN32 API.
3536 (init_dialog): Remove usage of SetForegroundWindow and is_showing.
3537 This prevents the progress dialog to gain control over the
3538 application and fixes the "setup.exe going to background" problem.
3539 (progress): Use is_local_install.
3540 (get_url_to_string): Set is_local_install.
3541 (dismiss_url_status_dialog): Use is_local_install.
3542 * install.cc (dialog_proc): Return TRUE as specified in WIN32 API.
3543 (init_dialog): Remove usage of SetForegroundWindow.
3544 This prevents the progress dialog to gain control over the
3545 application and fixes the "setup.exe going to background" problem.
3547 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3549 * choose.cc (list_click): Change r to row for clarity.
3550 When we shrink the list below 1 page, scroll to the top of the list.
3551 (_view::click): Return the actual change for contractions.
3552 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the Win32 API.
3554 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3556 * choose.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
3557 * localdir.cc: Ran indent.
3558 (get_root_dir_now): New function.
3559 (save_local_dir): New function.
3560 (dialog_cmd): Use it and swap cygwin root selection and local dir selection order.
3561 (do_local_dir): If there is a saved local dir, read it in.
3562 * net.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
3563 * root.cc (dialog_cmd): Ditto.
3564 * source.cc (dialog_cmd): Ditto.
3566 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
3568 * choose.cc(list_vscroll): Return 0 as required by win32.
3569 (list_hscroll): Ditto.
3570 (list_click): Ditto.
3572 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
3576 * main.cc(WinMain): Use __argv to retrieve command line parameters.
3577 * Makefile,in: Remove argv.o.
3579 2001-11-01 Matt Hargett <matt@use.net>
3581 * geturl.cc (progress): Change int to unsigned int to eliminate
3583 * (get_url_to_string): Check for NULL pointer.
3584 * mount.cc (find2): Use free instead of delete for malloc'd
3586 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Fix memory leak.
3588 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
3590 * choose.cc(_view::insert_under): Handle linen > nlines and lines[linen] with neither
3591 a package nor a category. The lines[linen] bug was reported by Matt (matt@usa.net).
3592 (read_installed_db): Bugfix for testing whether a package has a source tarball.
3593 Reported by Matt (matt@usa.net).
3594 * geturl.cc(dialog): Rename gw_dialog to local_gw_dialog to avoid programmer
3595 confusion and lint errors. Reported by Matt (matt@usa.net).
3597 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
3599 * argv.cc: New file, converts arguments for -mwindows programs. (Simplified derivation
3602 * Makefile,in: Add argv.o and mingw_getopt.o to setup.exe object list.
3603 Add mingw_getopt.o build rule.
3604 * main.cc(WinMain): Initialise argv and argc for use by getopt.
3606 2001-10-27 Christopher Faylor <cgf@redhat.com>
3608 * res.rc: Rearrange info on top line slightly.
3610 2001-10-27 Christopher Faylor <cgf@redhat.com>
3612 * desktop.cc (make_passwd_group): Move file creation earlier in the
3613 process to ensure that passwd-grp.bat reflects desired operation.
3615 2001-27-10 Trevor Forbes <t4bs@hotmail.com>
3617 * postinstall.cc (each): Remove "*.done" file else rename will fail.
3619 2001-10-16 Christopher Faylor <cgf@redhat.com>
3621 * res.rc: Oops. Take 640x480 screen size into account.
3623 2001-10-16 Christopher Faylor <cgf@redhat.com>
3625 * res.rc: Enlarge chooser screen.
3627 2001-10-12 Christopher Faylor <cgf@redhat.com>
3629 * Makefile.in: Accomodate changes to w32api_include macro.
3631 2001-10-12 Christopher Faylor <cgf@redhat.com>
3633 * Makefile.in: Use correct flags for windres.
3635 2001-10-12 Christopher Faylor <cgf@redhat.com>
3637 * Makefile.in (CFLAGS): Remove -nostdinc from CFLAGS.
3639 2001-10-12 Christopher Faylor <cgf@redhat.com>
3641 * choose.cc (pick_line::paint): Reorganize after botched patch.
3643 2001-10-12 Christopher Faylor <cgf@redhat.com>
3645 * choose.cc (pick_line::paint): Add missing declaration.
3647 2001-10-10 Ralf Habacker <Ralf.Habacker@freenet.de>
3649 * choose.cc (pick_line::paint): Add package name to sdesc for display.
3651 Wed Sep 26 21:39:00 Robert Collins rbtcollins@hotmail.com
3653 * choose.cc (_view::insert_pkg): Correctly exit loop.
3654 * iniparse.y (register_category): Always insert new categories.
3656 Fri Sep 21 13:56:32 2001 Christopher Faylor <cgf@cygnus.com>
3658 * inilex.l (yylex): For comments, eat all characters up to, but not
3661 Sun Aug 26 12:50:01 2001 John Marshall <jmarshall@acm.org>
3663 * fromcwd.cc (found_file): Use correct package name when adding an
3664 unknown package rather than random stack garbage.
3666 Sun Aug 12 14:25:21 2001 Christopher Faylor <cgf@cygnus.com>
3668 * desktop.cc (make_passwd_group): .bat files need \r\n endings.
3670 Wed Aug 8 13:53:47 2001 Christopher Faylor <cgf@cygnus.com>
3672 * desktop.cc (etc_profile): Leave environment variables untouched.
3674 2001-08-07 Corinna Vinschen <corinna@vinschen.de>
3676 * autoload.c: Add dynamic load statements for NT/W2K
3677 advapi32 functions not available in 9x/ME.
3678 * main.cc (set_default_dacl): New function.
3679 (WinMain): Call `set_default_dacl' if running on NT/W2K.
3681 Sat Aug 4 21:35:53 2001 Christopher Faylor <cgf@cygnus.com>
3683 * ini.h (_CategoryPackage): Change pkg field to pkgname for
3685 * choose.cc: Use pkgname field when referencing _CategoryPackage
3687 (fill_missing_category): Don't add excluded packages.
3688 (default_trust): Ditto.
3689 (_view::insert_pkg): Ditto.
3690 * iniparse.y (register_category): Use consistent variable name.
3692 2001-07-09 Egor Duda <deo@logos-m.ru>
3694 * choose.cc: Use system foreground color for text output.
3696 Sat Jul 7 00:40:28 2001 Christopher Faylor <cgf@cygnus.com>
3698 * choose.cc (set_action): Use default trust for determining reinstall
3700 (default_trust): Set default trust.
3701 (pick_line::paint): Allow source selection when reinstalling or
3704 Fri Jul 6 18:08:49 2001 Christopher Faylor <cgf@cygnus.com>
3706 * choose.cc (isinstalled): Modify to properly accomodate special case
3708 (set_action): Check downloaded components, not installed components if
3710 (set_existence): Always include full list of files when "download
3713 Fri Jul 6 00:37:05 2001 Christopher Faylor <cgf@cygnus.com>
3715 * choose.cc (pick_line::paint): Properly display "na" field when no
3718 Thu Jul 5 00:34:23 2001 Christopher Faylor <cgf@cygnus.com>
3720 * choose.cc (scan2): Ensure that older versions do not show up in
3723 Mon Jul 2 15:47:59 2001 Christopher Faylor <cgf@cygnus.com>
3725 * choose.cc (set_action): Allow "Skip" action if trust != installed.
3726 * res.rc: Fix copyright.
3728 Sat Jun 30 14:05:21 2001 Michael A Chase <mchase@ix.netcom.com>
3730 * res.rc (IDD_LOCAL_DIR): Change caption to match the other dialog
3732 (IDD_CHOOSE): Adjust horizontal size so package names are visible.
3734 * choose.cc: Restore some more changes from 2001-06-25, throughout.
3735 (paint): Wrap some excessively long lines.
3736 (pick_line::paint): Ditto. Move the arrow in the "Current" column
3737 right to where it belongs. Move the source checkbox slightly to the
3739 (do_choose): List categories and required packages in setup.log.full.
3741 Sat Jun 30 23:04:59 2001 Christopher Faylor <cgf@cygnus.com>
3743 * choose.cc (scan2): Restore source scanning eliminated by previous checkin.
3745 Sat Jun 30 15:18:33 2001 Christopher Faylor <cgf@cygnus.com>
3747 * ini.h (struct _Info): Add "derived" element.
3748 * choose.cc (scan2): Try to place unknown tar files into proper slot
3749 when package exists in setup.ini but tar file does not.
3751 Sat Jun 30 13:39:00 2001 Robert Collins <rbtcollins@hotmail.com>
3753 * choose.cc (create_listview): Call set_view_mode with VIEW_CATEGORY.
3754 (do_choose): Log the first category name.
3756 Fri Jun 29 23:07:44 2001 Christopher Faylor <cgf@cygnus.com>
3758 *ini.h: Reapply 2001-06-25 changes.
3759 * choose.cc (add_required): Ditto. Default to "Keep" state if
3760 UNINSTALL and product is installed. Default to curr state if SKIP,
3762 (keep_or_skip): New function. Returns skip or keep state depending on
3763 installed state of package.
3764 (default_trust): Use keep_or_skip to set state.
3765 (_view::insert_pkg): Use calloc to allocate lines.
3766 (set_view_mode): Adapt 2001-06-25 change to set_full_list here.
3768 Sat Jun 30 11:01:00 2001 Robert Collins <rbtcollins@hotmail.com>
3770 * choose.cc: Remove globals full_list, headers, package_indexes and
3772 Add globals cat_headers, pkg_headers and chooser.
3773 (add_required): New function.
3774 (paint): Use the chooser for header details.
3775 Call into the chooser to paint each line.
3776 (list_click): Use new global variables.
3777 Call into the chooser to handle the click.
3778 Repaint the entire view if packages have been added or removed.
3779 (note_width): Get passed a headers struct rather than using a global
3781 (fill_missing_category): New function.
3782 (default_trust): Skip non-"Required" or "Misc" packages.
3783 (pick_line::set_line (Package *)): New function.
3784 (pick_line::set_line (Category *)): New function.
3785 (pick_line::paint): New function.
3786 (pick_line::click): New function.
3787 (_view::_view): New function.
3788 (_view::set_view_mode): New function.
3789 (_view::mode_caption): New function.
3790 (_view::set_headers): New function.
3791 (_view::init_header): New function.
3792 (_view::insert_pkg): New function.
3793 (_view::insert_category): New function.
3794 (_view::insert_at): New function.
3795 (_view::insert_under): New function.
3796 (_view::clear_view): New function.
3797 (viewsplusplus): New function.
3798 (_view::client): New function.
3799 (set_view_mode): Use new chooser functionality.
3800 (set_full_list): Use new global variables.
3801 (create_listview): Instantiate chooser.
3802 Remove all hardcoded headers[] code.
3803 (dialog_cmd): On trust changes, check dependencies.
3804 (getcategorybyname): New function.
3805 (getpackagecategorybyname): New function.
3806 (scan2): Use case-insensitive package comparison.
3807 (do_choose): Use fill_missing_category ().
3808 Show some category data.
3809 * ini.h: Protect against multiple inclusion.
3811 (_CategoryPackage): New struct.
3812 (_Category): New struct.
3813 (_Package): Change category to Category * from char *.
3814 (extern Category category): New global variable.
3815 (extern in ncategories): Ditto.
3816 (getcategorybyname): New prototype.
3817 (catpackagecategorybyname): New prototype.
3818 (register_category): New prototype.
3819 (add_category): New prototype.
3820 * iniparse.y: Parse multiple categories per package.
3821 (category): New global variable.
3822 (ncategories): New global variable.
3823 (new_package): Compare package against NULL, not 0.
3824 (new_requirement): Source formatting fix.
3825 (register_category): New function.
3826 (add_category): New function.
3827 * res.rc: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
3828 IDC_CHOOSE_VIEWCAPTION: New control.
3829 * resource.h: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
3830 IDC_CHOOSE_VIEWCAPTION: New control.
3831 Increment _APS_NEXT_CONTROL_VALUE.
3833 Mon Jun 25 00:56:37 2001 Michael A Chase <mchase@ix.netcom.com>
3835 * choose.cc (paint): Wrap excessively long lines.
3836 (list_click): Ditto.
3837 (create_listview): Ditto.
3838 (do_choose): Ditto. Replace TABs and remove CRs in lines written to
3839 setup.log.full. Allow "Yes" for source exists in setup.log.full when
3840 installing from local directories.
3842 Mon Jun 25 00:56:37 2001 Christopher Faylor <cgf@cygnus.com>
3844 * choose.cc (set_action): Only clear srcpicked when moving to next
3845 state. Allow source installation if it exists in the current "trust"
3846 state. Don't move to skip state when package is installed.
3847 (list_click): Don't allow source clicking when no source is available.
3848 (set_full_list): Display package when not is_full_action.
3849 * ini.h (is_full_action): Define.
3851 Sun Jun 17 12:06:14 2001 Christopher Faylor <cgf@cygnus.com>
3853 * install.cc (check_for_old_cygwin): New function. First stab at
3854 checking for old cygwin versions.
3855 (do_install): Call check_for_old_cygwin if there were no errors during
3858 Sat Jun 16 11:33:51 2001 Michael A Chase <mchase@ix.netcom.com>
3860 * choose.cc (_Info::_Info): Test _source paramenter for non-NULL rather
3861 than zeroed "source" element.
3863 Fri Jun 15 20:54:43 2001 Christopher Faylor <cgf@cygnus.com>
3865 * choose.cc (scan2): Insert unknown tar archives, found on disk, into
3866 the highest available "hole" in the trust array.
3868 Fri Jun 15 00:20:48 2001 Christopher Faylor <cgf@cygnus.com>
3870 * choose.cc (set_existence): Use pointer method for indexing in trust
3872 (create_listview): Ditto.
3873 (scan2): Ditto. Also, use consistent variable name for indexing into
3875 * ini.h (Package): Reorganize info array for easier scanning.
3877 Fri Jun 15 00:01:51 2001 Christopher Faylor <cgf@cygnus.com>
3879 * choose.cc (isinstalled): Eliminate special download only test.
3880 (set_action): Don't move to next state if in ACTION_SAME range and not
3882 (choose_caption): Display "Retrieve" rather than "Reinstall" when just
3884 (do_choose): Sort packages after all packages have been read.
3885 Accomodate the fact that first element in trust array is empty so that
3886 log files don't report the wrong trust value.
3887 * iniparse.y (new_package): Malloc space for package name or suffer
3890 Thu Jun 14 22:43:59 2001 Robert Collins <rbtcollins@hotmail.com>
3892 * ini.h (Dependency): New structure. Declare new function.
3893 * inilex.l (yylex): Detect new setup.ini options - category and requires.
3894 * iniparse.y: Declare new setup.ini token values.
3895 (yyparse): Parse new token values.
3896 (new_requirement): New function.
3898 Thu Jun 14 22:43:26 2001 Christopher Faylor <cgf@cygnus.com>
3900 * choose.cc (read_installed_db): Eliminate obsolete code.
3902 Thu Jun 14 22:11:53 2001 Christopher Faylor <cgf@cygnus.com>
3904 * choose.cc (set_action): Set trust on "redo".
3905 (_Info::_Info): New constructor.
3906 (read_installed_db): Use new constructor. Use trusts type for
3908 * ini.h (struct _Info): Label struct, add constructor.
3909 (Package): Make installed_ix a type 'trusts.'
3910 * install.cc (uninstall_one): Unset any installed info for current
3912 (install_one): Allocate new Info struct for installed reflecting new
3914 (do_install): Don't output line to installed.db if package is being
3917 Thu Jun 14 20:33:01 2001 Robert Collins <rbtcollins@hotmail.com>
3919 * choose.cc (getpkgbyname): Use consistent method for scanning package
3922 Wed Jun 13 23:33:08 2001 Christopher Faylor <cgf@cygnus.com>
3924 * choose.cc: Add some comments.
3925 (getpkgbyname): Use strcasecmp for comparisons.
3927 Wed Jun 13 16:07:00 2001 Christopher Faylor <cgf@cygnus.com>
3929 * install.cc (do_install): Avoid checking for download action if
3930 package wasn't currently retrieved.
3932 Wed Jun 13 11:27:22 2001 Christopher Faylor <cgf@cygnus.com>
3934 * choose.cc: Eliminate extra array throughout. Use element in package
3935 structure instead. Use pointers rather than array indexes where
3937 (set_action): New function to set next action based on current.
3938 (choose_caption): New function. Returns display caption.
3939 (check_existence): Change arguments. Use pointer to 'info' structure.
3940 (set_existence): Use pointer rather than array index.
3941 (default_trust): Use trusts enum for second argument.
3942 (set_full_list): Honor exclude element in package structure.
3943 (build_labels): Eliminate.
3944 (base): Make global. Use const char * argument.
3945 (get_package_version): Eliminate.
3946 (getpkgbyname): New function.
3947 (read_installed_db): Use parse_filename to get version info.
3948 * desktop.cc (make_passwd_group): Use getpkgbyname function.
3949 * download.cc (get_file_size): const argument.
3950 (do_download): Use is_download_action to determine when something
3951 should be downloaded.
3952 * filemanip.h: Add some functions.
3953 * ini.cc (do_ini): Use NULL rather than 0 for pointer assignment.
3954 * ini.h: Use enums for actions and trusts.
3955 (is_download_action): New macro.
3956 (is_upgrade_action): Ditto.
3957 (is_uninstall_action): Ditto.
3958 (struct Package): Add new fields.
3959 * inilex.l (yylex): Detect new setup.ini options.
3960 * iniparse.y: Declare new tokens.
3961 (yyparse): Detect exclude keyword. Fill out version field even if
3963 (new_package): Use greater granularity when allocating package array to
3964 avoid repeated calls to realloc.
3965 * install.cc (exists): const argument.
3966 (uninstall_one): Take pkg argument.
3967 (install_one): Ditto. Eliminate unneeded arguments which can be
3968 derived from package info.
3969 (do_install): Iterate over package array using a pointer. Use
3970 is_download_action to control when package should be downloaded.
3971 * tar.cc (tar_open): const argument.
3972 * tar.h: Refloect const argument.
3974 2001-05-31 Michael Chase mchase@ix.netcom.com
3976 * main.cc (WinMain): Add setup version to starting setup.log entry
3978 Tue May 29 21:37:58 2001 Yukihiko Sohda <sohda@is.titech.ac.jp>
3980 * inilex.l: Add + to list of valid string characters.
3982 Mon May 28 20:54:50 2001 Christopher Faylor <cgf@cygnus.com>
3984 * Makefile.in: Remove more stuff in the clean target.
3986 Mon May 28 18:24:59 2001 Christopher Faylor <cgf@cygnus.com>
3988 * Makefile.in: Correctly generate iniparse.h.
3990 Tue Mar 6 19:14:00 2001 Corinna Vinschen <corinna@vinschen.de>
3992 * geturl.cc (get_url_to_file): Add parameter `allow_ftp_auth'.
3993 * geturl.h: Change declaration of `get_url_to_file' accordingly.
3994 * netio.cc (NetIO::NetIO): Add parameter `allow_ftp_auth'.
3995 Set member `ftp_auth'.
3996 (NetIO::open): Add parameter `allow_ftp_auth'. Use it in calls
3997 to constructors of derived classes.
3998 (NetIO::get_ftp_auth): New method.
3999 * netio.h: Change class definition accordingly.
4000 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Add parameter `allow_ftp_auth'.
4001 Take global variables `net_ftp_user' and `net_ftp_passwd' into account.
4002 Add code for ftp authentication retry.
4003 * nio-ftp.h: Change class definition accordingly.
4004 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Add parameter `allow_ftp_auth'.
4005 Add code for ftp authentication retry in case of proxy connection.
4006 * nio-http.h: Change class definition accordingly.
4007 * res.rc: Add FTP authentication dialog.
4008 * resource.h: Add new constants used in res.rc.
4009 * state.h: Add variables `net_ftp_user' and `net_ftp_passwd'.
4011 Sun May 27 17:12:23 2001 Christopher Faylor <cgf@cygnus.com>
4013 * res.rc (IDD_SPLASH): Add a copyright year.
4015 Sun May 27 15:42:18 2001 Christopher Faylor <cgf@cygnus.com>
4017 * Makefile.in: Make iniparse.y produce a c++ file.
4018 * choose.cc (set_existence): Revert 2001-05-27 change.
4019 * ini.cc: Remove "C" from declaration of yyparse.
4020 * iniparse.y (yyparse): Fill out version field by default when a binary
4021 install is detected and no version has been set yet.
4022 * install.cc (do_install): Mount things earlier so that we can use
4023 proper mount table settings. Don't remove mounts since they are now
4025 * mount.cc (create_mount): Reread the mount table after establishing a
4027 (read_mounts): Explicitly clear root_here to allow multiple uses of
4028 this function. Ensure that there is no garbage in the table when we've
4029 exhausted all of the mounts in the registry.
4030 (cygpath): Accomodate ./ in path.
4032 Sun May 27 02:59:07 2001 Christopher Faylor <cgf@cygnus.com>
4034 Use parse_filename method to parse filenames throughout. Use
4035 get_root_dir to retrieve the current root directory throughout. Set
4036 const in argument list, where appropriate, throughout.
4037 * choose.cc (set_existence): Detect case of uninstalled package with no
4039 (parse_filename): New function.
4040 * filemanip.h (fileparse): New structure.
4041 * mount.cc (read_mounts): Remember where we found the root mount.
4042 (set_root_dir): New function.
4043 (get_root_dir): Ditto.
4044 * mount.h: Declare new functions.
4045 * site.cc (get_root_dir_now): Renamed from get_root_dir.
4046 (save_site_url): Use new function name.
4047 (get_initial_list_idx): Ditto.
4049 Sat May 26 21:23:59 2001 Christopher Faylor <cgf@cygnus.com>
4051 * choose.cc: Use a constant throughout to deal with chooser icon
4053 * res.rc (IDD_CHOOSE): Increase size of chooser box.
4055 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
4057 * choose.cc (do_choose): Fix incorrect assignment of trust setting to
4058 use when Redownload or Sources Only selected.
4060 Thu May 10 22:35:59 2001 Christopher Faylor <cgf@cygnus.com>
4062 Reformat file after botched patch formatting.
4063 * choose.cc (which_trust): Eliminate variable.
4064 (default_trust): Don't set which_trust.
4065 (do_choose): Use selected trust when reinstalling or installing source.
4067 Thu May 10 21:04:18 2001 Christopher Faylor <cgf@cygnus.com>
4069 Change concat to cygpath throughout.
4070 Change map_filename to cygpath throughout.
4071 * concat.cc (vconcat): New function.
4072 (concat): Use vconcat.
4073 * concat.h: Reflect above.
4074 * install.cc (map_filename): Eliminate.
4075 (install_one): Free dest_file.
4076 * mount.cc (find2): Expect input key to be pointing to mount record.
4077 (in_table): New function.
4078 (is_admin): Move from root.cc.
4079 (read_mounts): New function.
4080 (path_prefix_p): New function.
4081 (cygpath): New function.
4082 * mount.h: Define new functions and structure.
4083 * root.cc (in_table): Move to mount.cc.
4084 (do_root): Call read_mounts to initialize root stuff and mount table.
4085 * site.cc (get_root_dir): Ditto.
4087 2001-05-09 Matt Hargett <matt@use.net>
4089 * Makefile.in: Remove *.rc from clean.
4091 Tue May 8 23:33:38 2001 Christopher Faylor <cgf@cygnus.com>
4093 * choose.cc (scan2): Fix incorrect setting of TRUST_CURR rather than
4094 TRUST_PREV which produced "0" versions.
4096 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
4098 * resource.h: Add new field IDC_CHOOSE_INST_TEXT. Modify
4099 _APS_NEXT_CONTROL_VALUE to account for addition of
4100 IDC_CHOOSE_INST_TEXT.
4101 * res.rc (IDD_CHOOSE): Modify choose dialog to use new field
4102 IDC_CHOOSE_INST_TEXT for screen text. Modify choose Dialog to allow
4103 hot keys to select Prev, Curr, Exp.
4104 * ini.h: Add new actions for ACTION_REDO and ACTION_SRC_ONLY. Modify
4105 define for LOOP_PACKAGES to include new actions ACTION_REDO and
4107 * choose.cc: Add new Trusts for TRUST_REDO and TRUST_SRC_ONLY.
4108 (paint): Modify to check TRUST_SRC_ONLY when determining Bitmap for
4109 source Checkbox to use.
4110 (build_labels): Add logic to allow for selection of Source only
4111 Download/ReDownload/Install/Reinstall and also to Redownload/Reinstall
4112 current version binary.
4113 (dialog_proc): Add conditional display for file selection prompt based
4114 on download vs install using IDC_CHOOSE_INST_TEXT.
4115 (do_choose): Add new logic for TRUST_REDO and TRUST_SRC_ONLY selection
4116 and modify logic for TRUST_UNINSTALL, TRUST_KEEP, and TRUST_NONE to
4117 handle the instance where Source Download/Install was selected. Modify
4118 log file to store appropriate information regarding Action selected and
4119 the new actions that were added (I.E.: ACTION_REDO and
4121 * download.cc: Add include for <unistd.h> and "port.h".
4122 (download_one): Modify parameter list to include the selected action
4123 for the file to be downloaded. Modify size check against expected size
4124 to include check for ACTION_REDO and ACTION_SRC_ONLY. Modify rename of
4125 .tmp file to also remove the destination file if exists due to ability
4126 to redownload source and binary now.
4127 (do_download): Modify to also use ACTION_REDO and ACTION_SRC_ONLY in
4128 calculation of Download Bytes. Modify to also use ACTION_REDO and
4129 ACTION_SRC_ONLY in determining files selected for download.
4130 * install.cc (uninstall_one): Add check to treat a Reinstall like an
4131 upgrade so current version will be uninstalled prior to reinstall.
4132 (do_install): Add logic to handle ACTION_REDO and ACTION_SRC_ONLY for
4133 uninstalling and installing binary and source packages.
4134 * desktop.cc (make_passwd_group): Modify logic to account for a Source
4135 only cygwin install when checking for cygwin to determine need for
4136 mkpasswd and mkgroup.
4138 Mon May 7 23:33:30 2001 Matt Hargett <matt@use.net>
4140 * winsup/cinstall/res.rc: Added accelerators and improved focus order.
4141 Removed WS_DISABLED from "OK" buttons to accomodate default focus
4142 changes in net.cc and source.cc.
4143 * winsup/cinstall/net.cc (dialog_proc): If no radio button is selected,
4144 a default is selected.
4145 * winsup/cinstall/source.cc (dialog_proc): Ditto.
4146 (check_if_enable_next): Removed. No longer needed since a radio button
4147 will always be selected.
4148 (load_dialog): Removed call to check_if_enable_next.
4149 (dialog_cmd): Ditto. Also added default to switch.
4151 Tue Apr 24 23:42:02 2001 Christopher Faylor <cgf@cygnus.com>
4153 * res.rc: Resize affected text.
4155 Tue Apr 24 23:35:31 2001 Christopher Faylor <cgf@cygnus.com>
4157 * net.cc (do_net): Default to direct download.
4158 * res.rc: Move default selections to the top.
4160 2001-04-18 Earnie Boyd <earnie@users.sourceforge.net>
4162 * win32.h: Remove the definitions for _UNION_NAME and _STRUCT_NAME.
4163 Must now include <windows.h> and not the pieces.
4164 * choose.cc (create_listview): Clean up type mismatch problems.
4165 * dialog.h (NEXT(id)): Ditto.
4166 * geturl.cc (dialog): Ditto.
4167 * install.cc (dialog): Ditto.
4168 * splash.cc (load_dialog): Ditto.
4170 Wed Apr 18 18:59:21 2001 Christopher Faylor <cgf@cygnus.com>
4172 * tar.cc (class gzbz): Define dummy virtual functions.
4174 Wed Apr 18 16:01:21 2001 Christopher Faylor <cgf@cygnus.com>
4176 * Makefile.in: Add bz2 include/library support.
4177 * filemanip.h: New file.
4178 * choose.cc (find_tar_ext): New function. Returns TRUE if .tar.gz or
4180 (scan2): Reorganize to use find_tar_ext, accomodating .bz2 extension.
4181 (read_installed_db): Ditto.
4183 * fromcwd.cc (found_file): Ditto.
4184 (do_fromcwd): Ditto.
4185 * tar.cc (class gzbz): New super class for uncompression support.
4186 (gz): New class for gzip support.
4187 (bz): New class for bzip2 support.
4188 (tar_open): Use gzbz class to control file opening.
4189 (tar_ftell): Ditto for returning position in file.
4190 (skip_file): Ditto for reading file.
4191 (tar_next_file): Ditto.
4192 (tar_read_file): Ditto.
4193 (tar_close): Ditto for close.
4195 * zlib/configure.in: Force NM substitution.
4197 * source.cc (do_source): Default to "Install from Internet".
4199 2001-03-16 Brian Keener <bkeener@thesoftwaresource.com>
4201 * nio-file.cc (NetIO_File::NetIO_File): Use `get_file_size' instead of
4203 * choose.cc (list_click): Correct inability to select source code for
4205 (scan2): Modify to skip source tarballs when scanning disk for
4206 installable packages.
4208 2001-03-10 Chris Abbey <chris_abbey@yahoo.com>
4210 * install.cc: install sources into /usr/src instead
4211 of /, also include the sizes of source tarballs
4213 * download.cc: include sizes of source tarballs in
4214 total_download_bytes.
4216 Tue Mar 6 19:31:00 2000 Corinna Vinschen <corinna@vinschen.com>
4218 * download.cc (get_file_size): Remove `static'.
4220 Tue Mar 6 19:11:00 2000 Corinna Vinschen <corinna@vinschen.com>
4222 * tar.cc (tar_open): Use `get_file_size' instead of `stat'.
4224 2001-03-06 Brian Keener <bkeener@thesoftwaresource.com>
4226 * choose.cc (paint): Modify message for nothing to download vs
4227 nothing to install/update based on installation method.
4228 (list_click): Modify to skip versions in selection process if
4229 installing from local directory and installation file does not exist.
4230 Also leaves Source Action set to N/A if the source file does not exist
4231 and installing from local directory.
4232 (check_existence): New method to check current existence of installation
4233 files based on selected installation method.
4234 (set_existence): New method to set the current existence of installation
4235 files based on selected installation method.
4236 (best_trust): Modify decision process for best trust to base decision on
4237 current trust selected (IE: Prev, Curr, or Test), existence of file and
4238 installation method selected.
4239 (default_trust): Add logic to capture the current trust level and the
4240 trust selected for the given package.
4241 (set_full_list): Expand decision criteria for displaying a package in
4242 the selection list to include file existence/non-existence and selected
4243 installation method.
4244 (build_labels): Modify criteria for label addition to include
4245 installation method and file existence/non-existence.
4246 (create_listview): Modify to establish package trust level for each
4247 package before setting up the display list. Also modification to set
4248 current trust button as the default.
4249 (dialog_cmd): Set response for Prev, Curr, Test button push to perform
4250 a reset of the selection list in addition to setting the default trust.
4251 (get_package_version): New method to provide reusable code for
4252 determining the package version from the file name for a specified
4254 (scan2): Modify to use new method get_package_version and
4255 also enhance handling of the build for the structures package and
4257 (read_installed_db): Modify to use the new method
4258 get_package_version and also enhance handling of the build for the
4259 structures package and extra.
4260 (do_choose): Add additional initialization of package and extra
4261 structures. Modify to use read_installed_db all the time despite
4262 install method. Modify output to setup.log.full log file to increase
4263 readability by adding additional spacing, expanded code and available
4265 * ini.h: Add new fields install_exists, source_exists and
4266 partial_list_display to the structure definition for package.
4267 * res.rc (IDD_CHOOSE): Modify choose dialog Prev, Curr, and Test
4268 pushbuttons by replacing with Radio Buttons thus allowing the
4269 operator to better determine which is selected.
4271 2001-02-20 Brian Keener <bkeener@thesoftwaresource.com>
4273 * download.cc (do_download): Add new variables total_download_bytes and
4274 total_download_bytes_sofar for download progress meter. Add loop
4275 to accumulate the total bytes to download from the selected packages.
4276 * geturl.cc: Add state.h and diskfull.h to include list. Add new
4277 variables gw_iprogress, gw_pprogress, gw_progress_text,
4278 gw_pprogress_text, and gw_iprogress_text to allow for addition of
4279 total packages download progress meter and disk full percent
4280 progress meter. Add variables total_download_bytes and
4281 total_download_bytes_sofar for use by progress meters.
4282 (dialog_proc): Add new variables gw_iprogress, gw_pprogress,
4283 gw_progress_text, gw_pprogress_text, and gw_iprogress_text to
4284 allow for addition of total packages download progress meter and disk
4285 full percent progress meter.
4286 (init_dialog): Ditto.
4288 (get_url_to_file): Ditto.
4289 * geturl.h: Add external definition for total_download_bytes and
4290 total_download_bytes_sofar.
4291 * res.rc: Add two additional progress meters (IDC_DLS_IPROGRESS)
4292 and (IDC_DLS_PPROGRESS) and three text objects (IDC_DLS_PROGRESS_TEXT)
4293 and (IDC_DLS_IPROGRESS_TEXT, IDC_DLS_PPROGRESS_TEXT) for use in the
4295 * resource.h: Add new fields for progress meters and text and update
4296 _APS_NEXT_CONTROL_VALUE.
4298 Wed Feb 21 13:05:00 2000 Corinna Vinschen <vinschen@redhat.com>
4300 * download.cc (get_file_size): Check for INVALID_HANDLE_VALUE instead
4303 Wed Feb 21 11:21:00 2000 Corinna Vinschen <vinschen@redhat.com>
4305 * download.cc (download_one): Add missing parenthesis.
4307 Mon Feb 19 18:59:00 2000 Corinna Vinschen <vinschen@redhat.com>
4309 * download.cc (get_file_size): New function. Eliminates the need
4311 (download_one): Call `get_file_size' instead of `stat'. This
4312 workarounds a problem with mingw's `stat' call.
4314 2001-02-07 Earnie Boyd <earnie@users.sourceforge.net>
4316 * Makefile.in: (%.o: %.rc): Specify --include-dir $(w32api_include).
4317 This is to allow cinstall to build with 2.95.2-7 and to make the
4318 use of headers consistent.
4320 2000-12-26 Earnie Boyd <earnie_boyd@yahoo.com>
4322 * Makefile.in (autoload.o): Add target to specify -fno-inline-functions
4324 Tue Dec 26 03:46:00 2000 Matt Hargett <matt@use.net>
4326 * winsup/cinstall/res.rc: Added accelerators and improved focus
4329 2000-12-10 Egor Duda <deo@logos-m.ru>
4331 * choose.cc (paint): Use system background color for text output.
4333 Sun Dec 10 19:05:25 2000 Christopher Faylor <cgf@cygnus.com>
4335 * Makefile.in: Use CXX for linking and for compiling .cc files.
4336 * configure.in: Find correct c++ compiler.
4337 * configure: Regenerate.
4339 2000-11-17 DJ Delorie <dj@redhat.com>
4341 * splash.cc (load_dialog): Make message more obvious.
4344 Fri Nov 17 17:15:21 2000 Christopher Faylor <cgf@cygnus.com>
4346 * Makefile.in: Use g++ to link so that libstdc++.a gets used. This is
4347 necessary for newer compilers.
4349 Wed Nov 9 2:19:00 2000 Corinna Vinschen <vinschen@redhat.com>
4351 * desktop.cc: Include "ini.h" and "version.h".
4352 (make_passwd_group): Skip the function on 9x/ME boxes when an
4353 older version of Cygwin has been installed which doesn't
4354 support mkpasswd/mkgroup on 9x/ME.
4355 * install.cc: Move the `LOOP_PACKAGES' and `pi' macros to...
4358 Wed Nov 8 17:10:00 2000 Corinna Vinschen <vinschen@redhat.com>
4360 * desktop.cc (make_passwd_group): Don't exit when started
4361 on 9x/ME since mkpasswd/mkgroup are usable on 9x/ME now.
4363 Sun Nov 5 12:51:42 2000 Jason Tishler <jt@dothill.com>
4365 * install.cc (do_install): Add call to set_cygdrive_flags to sync
4367 * mount.cc (set_cygdrive_flags): New function.
4368 (get_cygdrive_flags): Ditto.
4369 (default_cygdrive): Ditto.
4370 (set_cygdrive_flags): Ditto.
4371 * mount.h: Add prototype for set_cygdrive_flags.
4373 2000-10-23 DJ Delorie <dj@redhat.com>
4375 * ini.h: add source actions
4376 * fromcwd.cc: check for available sources
4377 * res.rc: add checkbox bitmaps
4380 * choose.cc: add source column
4381 * download.cc: download sources if called for
4382 * install.cc: [un]install sources too
4384 2000-10-22 DJ Delorie <dj@redhat.com>
4386 * choose.cc (build_labels): Don't skip TRUST_PREV completely; only
4387 ignore it wrt full_list if there's already a version installed.
4388 (do_choose): Sort the list.
4389 (package_sort): New.
4391 2000-10-12 DJ Delorie <dj@redhat.com>
4393 * res.rc: Add more error strings.
4394 * resource.h: Ditto.
4395 * iniparse.y (new_package): re-initialize if needed.
4396 * download.cc (do_download): Keep track of errors; notify and
4398 * install.cc (do_install): Ditto.
4400 2000-10-05 DJ Delorie <dj@redhat.com>
4402 * Makefile.in: fix %.cc rule
4404 2000-10-04 DJ Delorie <dj@redhat.com>
4406 * desktop.cc: quote HOME and USER, don't . ./.profile
4408 * choose.cc (build_labels): don't include in partial list just
4409 because there's a *previous* version available.
4411 * install.cc (do_install): if installing from local directory with
4412 setup.ini and the file isn't found, look in "." also. Note errors.
4414 2000-10-02 DJ Delorie <dj@redhat.com>
4416 * ini.cc (do_ini): save setup.ini locally
4418 2000-10-02 Chris Abbey <cabbey@bresnanlink.net>
4420 * desktop.cc: quote escapes in prompt
4422 2000-10-02 Jason Tishler <jt@dothill.com>
4424 * root.cc (is_admin): New function.
4425 (read_mount_table): Check for administrative priviledges and set
4426 installation scope as appropriate.
4428 2000-09-28 DJ Delorie <dj@redhat.com>
4430 * nio-ftp.cc (ftp_line): handle continuations more robustly
4432 2000-09-14 Brian Keener <bkeener@thesoftwaresource.com>
4434 * res.rc: increased the size of the site dialog (IDD_SITE) & the
4435 corresponding list box to provide for more URL's to be listed.
4436 Modified the position of the Back, Next and Cancel buttons to
4437 correspond to the new size of the dialog.
4439 2000-09-13 DJ Delorie <dj@redhat.com>
4441 * install.cc (do_install): update disk fullness once per package
4442 to improve performance
4444 * choose.cc (create_listview): call ReleaseDC
4446 Mon Sep 11 22:40 2000 Harold L Hunt II <harold@compasstechnologies.com>
4448 * mkdir.cc: Create directories when ERROR_FILE_NOT_FOUND is
4449 returned, as it seems Samba 2.0.6+ returns this instead of
4450 ERROR_PATH_NOT_FOUND
4452 Mon Sep 11 19:35:24 2000 Christopher Faylor <cgf@cygnus.com>
4454 * site.cc (get_initial_list_idx): Don't default to saved URL if it
4457 2000-09-07 DJ Delorie <dj@redhat.com>
4459 * splash.cc: use version.h, not local decl
4460 * res.rc: add "old version" message
4463 * fromcwd.cc (canonicalize_version): make global
4464 * iniparse.y: add setup-version support, fix bug in blank line
4467 * inilex.l: add [exp] as alias for [test], add setup-version
4468 * Makefile.in (version.c): add setup-version tag
4470 * desktop.cc (do_desktop): remove 1.1 version number
4471 (do_desktop_setup): ditto
4473 * ini.cc (do_ini): zero out package list just in case we redo it.
4475 2000-09-07 Jeffrey Juliano <juliano@cs.unc.edu>
4477 * choose.cc (list_click): Check for nindexes==0; if so, return.
4479 2000-09-06 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
4481 * localdir.cc: new, local package directory selection dialog; cd
4482 into selected directory
4483 * Makefile.in (OBJS): add localdir.o
4484 * dialog.h: add prototype for do_local_dir
4485 * main.cc (WinMain): initialize local_dir to cwd; add call to
4487 * net.cc (dialog_cmd): make DO_LOCAL_DIR next dialog
4488 * source.cc (dialog_cmd): ditto
4489 * res.rc: add DO_LOCAL_DIR dialog; remove "current directory" from
4490 presented choices in IDD_SOURCE; add IDS_ERR_CHDIR error string
4491 * resource.h: defines for DO_LOCAL_DIR dialog; define IDS_ERR_CHDIR
4492 * root.cc (dialog_cmd): make DO_LOCAL_DIR previous dialog
4493 * state.h: add local_dir variable
4495 2000-09-06 Brian Keener <bkeener@thesoftwaresource.com>
4497 * desktop.cc: added logic to handle to the new dialog and to
4498 default the setting for the new checkboxes based on whether the
4499 desktop icon or start menu link already exist.
4500 (desktop_icon): correction to desktop directories for desktop icon
4501 creation. Additional logic added for Win95 which does not appear
4502 to have Common Directories so if Common selected and null uses
4504 (start_menu): Additional logic added for Win95 which does not
4505 appear to have Common Directories so if Common selected and null
4506 uses normal directory.
4507 (do_desktop_setup): moved the saving of the icon, creation of the
4508 bat file, profile, passwd, Start Menu link and desktop shortcut to
4509 this method from do_desktop. Made the creation of the desktop
4510 icon and start menu link conditional on settings of new dialog
4511 created for desktop.
4512 * install.cc (do_install): changed next from IDD_S_DESKTOP to
4514 * main.cc (WinMain): changed case IDD_S_DESKTOP to IDD_DESKTOP.
4515 * res.rc: added new resource to create a desktop dialog with 2
4516 checkboxes for creating the desktop icon and start menu link.
4517 * resource.h: changed IDD_S_DESKTOP to IDD_DESKTOP and added two
4518 new controls: IDC_ROOT_MENU and IDC_ROOT_DESKTOP for new dialog.
4519 * state.h: added root_menu and root_desktop for use in dialog.
4521 2000-08-29 DJ Delorie <dj@redhat.com>
4523 * choose.cc (scan_downloaded_files): scan for existing files, so
4524 that the user only sees new downloads.
4526 * nio-ie5.cc (NetIO_IE5): pre-check for wininet.dll, enable dial-up
4527 * site.cc (do_site): if we can't download the mirror list, go back
4528 to the net setup box to choose another transport.
4529 * autoload.c: add more functions
4530 * Makefile.in (ALL_DEP_LDLIBS): remove wininet.a
4531 * resource.h: add WININET message
4533 * net.cc (do_net): no longer default to IE5
4534 * simpsock.h (class SimpleSocket): new, simplify socket operations
4535 * simpsock.cc: ditto
4536 * nio-http.h: new, for direct http protocol
4537 * nio-http.cc: ditto
4538 * nio-ftp.h: new, for direct http protocol
4540 * netio.cc (set_url): move initialization here to handle redirections
4541 (open): add direct http/ftp
4542 * netio.h (NetIO::set_url): new
4544 * log.cc (log_save): create directory for log if needed
4546 * hash.cc, hash.h: new
4547 * Makefile: add hash.o
4548 * choose.cc: enable "uninstall" option
4549 * download.cc: invert action test to accomodate uninstalling
4550 * ini.h: add ACTION_UNINSTALL
4551 * install.cc: add uninstall functionality
4552 * res.rc: make install tag changeable
4553 * resource.h: add uninstall resources
4555 * res.rc: update mirror list URL
4557 2000-08-24 DJ Delorie <dj@redhat.com>
4559 * log.cc, log.h: new files
4560 * Makefile.in (OBJS): add log.o
4561 * tar.cc: use exit_setup instead of exit
4562 * dialog.cc (fatal): use exit_setup instead of ExitProcess
4563 * msg.cc (fatal): ditto
4564 * install.cc (dialog_cmd): ditto
4565 * ini.cc (do_ini): ditto
4566 * main.cc (main): add logging
4567 * source.cc (do_source): ditto
4568 * root.cc (do_source): ditto
4569 * site.cc (do_site): ditto
4570 * other.cc (do_other): ditto
4571 * net.cc (do_net): ditto
4572 * choose.cc (do_choose): ditto
4573 * download.cc (do_download): ditto
4574 * install.cc (do_install): ditto
4575 * msg.cc (fatal): ditto
4577 * res.rc: mark password boxes as *being* password boxes.
4579 * fromcwd.cc (canonicalize_version): use multiple buffers so that multiple
4580 calls won't use the same buffer.
4581 * choose.cc (create_listview): don't default to full list if no changes
4582 (base): return computed value, not temporary :-(
4583 (do_choose): don't use installed.db if we're only downloading.
4585 2000-08-23 DJ Delorie <dj@redhat.com>
4587 * nio-ie5.cc (NetIO_IE5): Fix authentication logic
4588 * nio-ie5.h (flush_io): new
4589 * netio.cc (load_dialog): note when we're initializing the dialog
4590 box, and ignore changes to the edit fields then.
4592 2000-08-21 DJ Delorie <dj@redhat.com>
4596 * fromcwd.cc (found_file): don't remember the canonicalized version
4598 * choose.cc (paint): print "nothing to do" message when list is empty.
4599 (build_labels): Use version "0.0" if no version is available.
4600 (create_listview): default to full list if nothing to install/update.
4601 (base): new, returns basename of file
4602 (read_installed_db): compare base names, not full paths
4604 2000-08-11 DJ Delorie <dj@redhat.com>
4606 * choose.cc: add new chooser dialog
4607 * fromcwd.cc: use IDD_CHOOSE
4608 * ini.cc: use IDD_CHOOSE
4609 * main.cc: use IDD_CHOOSE
4610 * ini.h: cosmetic changes
4611 * res.rc: add choose dialog, bitmaps
4612 * choose-spin.bmp: new
4613 * choose-rtarrow.bmp: new
4614 * resource.h: add choose dialog controls
4616 * mount.cc: remove debug statement
4618 2000-08-08 DJ Delorie <dj@redhat.com>
4620 * Makefile.in (version.c): make version checking more robust
4621 * splash.cc (load_dialog): handle case where there's no version
4623 2000-08-07 DJ Delorie <dj@redhat.com>
4625 * (all): add cvsid tags
4626 * Makefile.in: generate version.c from ChangeLog, add splash.o
4628 * res.rc: add splash screen
4630 2000-08-02 DJ Delorie <dj@redhat.com>
4632 * net.cc: remove proxy password code
4633 * res.rc: remove proxy user/pass from net, add auth dialogs
4634 * netio.cc,h: add sys/proxy auth methods
4635 * nio-ie5: use them, check for http status codes
4636 * state.h: add system authorization
4638 * concat.cc (concat): canonicalize x:// to x:/ (exception to ://
4641 2000-08-02 Norman Vine <nhv@yahoo,com>
4643 * msg.cc (mbox): added MB_TOPMOST to MessageBox type flags
4645 2000-08-01 DJ Delorie <dj@redhat.com>
4647 * postinstall.cc (each): don't rename files we ignore
4648 (do_postinstall): set CYGWINROOT to root_dir, chdir there
4650 * desktop.cc: have /etc/profile call ~/.profile and ~/.bashrc
4652 2000-07-31 DJ Delorie <dj@redhat.com>
4654 * desktop.cc: reverse PATH so /usr/bin precedes /bin
4656 2000-07-18 DJ Delorie <dj@redhat.com>
4658 * autoload.c: new, autoload dlls that might not be available.
4659 * Makefile.in (OBJS): add autoload.o
4661 * res.rc: rewrite root options (text/binary, system/user) to be
4664 * site.cc (get_site_list): trim displayed URL, sort by domain
4666 * net.cc (do_net): make IE5 default to checked, for now
4668 * choose.cc (do_choose): sort packages correctly
4669 * ini.cc (do_ini): handle parse errors more gracefully
4671 (fprintf): line buffer output
4672 (do_ini): if we can't load setup.ini, go back to the site list.
4673 * ini.h: add "unknown" trust level
4674 * inilex.l: absorb unknown trust levels and key/value pairs,
4675 add line number logic
4676 * iniparse.y: handle parse errors more gracefully.
4677 * install.cc: skip packages with no valid install entry
4679 2000-07-17 DJ Delorie <dj@cygnus.com>
4681 * coding standards fixups, many files
4682 * mkdir.cc: warn about deletions *before* deleting them
4684 2000-07-17 Jeff Juliano <juliano@cs.unc.edu>
4686 * res.rc (IDD_OTHER_URL): reorder to give default focus to entry
4688 * other.cc (dialog_cmd): save download site URL
4689 * site.cc (get_root_dir): new
4690 (save_mirror_site): new
4691 (dialog_cmd): save download site URL
4692 (get_site_list): make list big enough to add prev site
4693 (get_initial_list_idx): new, read last-used URL from file and
4694 append it to site_list
4695 (do_site): call get_initial_list_idx
4697 * concat.cc (concat): avoid segfault when first parm is null
4699 2000-07-13 DJ Delorie <dj@cygnus.com>
4701 * postinstall.cc: new
4702 * Makefile.in: add postinstall.o
4703 * concat.h: add backslash ()
4705 * desktop.cc (etc_profile): don't do postinstall
4706 (backslash): moved to concat.cc
4708 (make_postinstall_script): run directly
4709 (do_desktop): chain to do_postinstall
4710 * dialog.h: add exit_msg, do_postinstall
4711 * download.cc: use exit_msg
4713 * main.cc: add postinstall, exit_msg
4714 * resource.h: add postinstall
4715 * README: add more to-do items
4717 2000-07-12 DJ Delorie <dj@cygnus.com>
4719 * desktop.cc: add /etc/postinstall/ support
4720 * install.cc: add more "standard" directories
4722 2000-07-11 DJ Delorie <dj@cygnus.com>
4724 * desktop.cc: create /etc/profile
4725 * desktop.cc: fix include syntax
4726 * Makefile.in: add auto-dependencies
4727 * root.cc: support system vs user
4735 * desktop.cc: make sure we use backslashes, not slashes.
4736 * desktop.cc: don't set PATH in cygwin.bat, create /etc/passwd
4737 * geturl.cc: change math for percentage to avoid overflow
4739 * download.cc: post "download complete" message.
4740 * root.cc: pre-fill in defaults if needed, don't start
4741 browse at root_dir unless it's set.
4742 * desktop.cc: quote $PATH in case it has spaces in it
4744 2000-07-10 DJ Delorie <dj@cygnus.com>
4746 * Makefile.in: add desktop.o and mklink2.o
4747 * dialog.h: add do_desktop
4748 * install.cc: create standard directories, call do_desktop
4749 * res.rc: add cygwin.ico as a file also
4750 * desktop.cc: new, do shortcuts, batch files, and icons
4751 * mklink2.c: new, for COM
4752 * README: update to-do list
4754 2000-07-10 DJ Delorie <dj@cygnus.com>
4756 * ini.cc (do_ini): don't worry about timestamps if we're not
4757 actually installing.
4759 2000-07-09 DJ Delorie <dj@cygnus.com>
4761 * Makefile.in: add -I$(srcdir) for ini.h
4763 2000-07-06 DJ Delorie <dj@cygnus.com>
4765 * Replace everything with a new GUI version
4766 * zlib/gzio.c: add gzctell() for progress displays
4768 2000-06-22 DJ Delorie <dj@cygnus.com>
4770 * setup.c (tarx): re-add call to write_pkg()
4772 2000-06-07 DJ Delorie <dj@cygnus.com>
4774 * cygcalls.c: new, call cygwin1.dll functions directly
4775 * cygcalls.h: header for same
4776 * Makefile.in: add cygcalls.[ch], remove mount/cygpath/umount
4777 exes, fix cinstall.rc dependencies.
4778 * path.c: remove unneeded code
4779 * setup.c: use cygcalls instead of xcreate_process.
4780 uncompress embedded files with zlib
4781 add "-d" for "download only"
4783 postpone mount changes until very end
4784 add download progress indicators
4785 pack multi-column listings more
4786 auto-delete temp files
4787 customize banner message according to options
4788 prompt user for text/binary mounts
4789 add warnings about empty setup directory, root installs, etc
4791 2000-05-24 DJ Delorie <dj@cygnus.com>
4793 * tar.c: New file; built-in tar using zlib.
4794 * tar.h: New file; header for same.
4795 * ctar.c: New file; test program for same.
4796 * Makefile.in: add built-in tar, remove tar.exe and gzip.exe
4797 * path.c (pathcat): convert slashes and canonicalize, instead of aborting
4798 * setup.c (tarx): add support for built-in tar
4799 (main): accept unix-style slashes, check root dir for drive letters,
4800 warn about installing in /, make sure cwd is empty for internet installs,
4801 defer mounts to end of install, support built-in tar.
4803 Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
4805 Fix compiler warnings throughout.
4806 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
4808 * setup.c: Make 'root' global.
4809 (istargz): Return pointer to "stem" of matched .tar.gz file.
4810 (tarx): Special case cygwin-20000301 to == cygwin-1.1.0.tar.gz. Remove
4811 bogus check_for_installed check.
4812 (recurse_dirs): Add preliminary support for .bat file execution.
4813 (create_uninstall): Eliminate unneeded parameter.
4814 (do_start_menu): Ditto.
4816 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
4817 scanning for the version number. Eliminate unneeded argument to
4819 (getdownloadsource): Add 'name' to list of names rather than url.
4820 (main): Eliminate unneeded argument in get_pkg_stuff. Eliminate
4821 unneeded argument in mkmount and do_start_menu.
4823 2000-05-18 DJ Delorie <dj@cygnus.com>
4825 * setup.c (optionprompt): allow multi-column, clean up message
4826 about more options, be more robust about user input.
4827 (getdownloadsource): make the mirror URL a macro.
4828 (main): do mounts after done prompting user.
4830 Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
4832 * setup.c (cleanup): Inverse order of deletion stands a better chance
4833 of deleting cygpath.exe. Still seems to suffer from occasional races,
4835 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
4837 (output_file): Defend against an unlikely handle leak.
4838 (main): Don't set up signal handling until we have something special to
4841 Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
4843 * path.c (kill_cygpath): Delete function.
4844 (exit_cygpath): Make more defensive so that it can be called at any
4846 (cygpath_pipe): Don't set up signal here. Do it in main().
4847 * setup.c (istargz): New function.
4848 (recurse_dirs): Look for *.gz pattern rather than *tar.gz since *tar.gz
4849 inexplicably fails on samba mounted partitions. Use istargz to match
4851 (processdirlisting) Use istargz to match tar.gz tail.
4852 (cleanup): Renamed from filedel.
4853 (cleanup_on_signal): New function. Called on CTRL-C.
4854 (main): Record handle of main thread so that it can be suspended when
4855 CTRL-C occurs. Set up cleanup_on_signal signal handler.
4857 Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
4859 * setup.c (do_start_menu): Don't concatenate paths to already built
4862 Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
4864 * path.c (exit_cygpath): Wait for subprocess to exit before returning.
4865 (cygpath_pipe): Don't call exit_cygpath. Let main atexit routine do
4867 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
4869 * setup.c (filedel): Call exit_cygpath here so that we can be assured
4870 that cygpath subprocess has died. This allows us to delete cygpath.exe
4872 (optionprompt): Initialize response to -1 so that second screen of
4873 mirrors will appear.
4874 (get_pkg_stuff): Don't attempt to use HKCLU. Pass root to init_pkgs.
4875 * setup.h: Reflect init_pkgs prototype change.
4877 Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
4879 * pkg.c (init_pkgs): Accept an argument to control what root registry
4881 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
4882 * setup.h: Reflect init_pkgs prototype change.
4884 Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
4886 * error.c (winerror): Respond to gcc warning.
4887 * path.c (cygpath_pipe): Ditto.
4888 * setup.c (filedel): Call sa_cleanup on deleteme.
4889 (create_shortcut): Coerce argument to eliminate compiler warning.
4890 (tarx): Use installed version of cygwin1.dll, overriding tar file name.
4891 (refmatches): New function. Tests if ref is contained in a list of
4892 packages to install.
4893 (filematches): New function. Tests if filename matches one of a list
4894 of packages to install.
4895 (recurse_dirs): Accept list of packages to install. Generalize tar.gz
4896 test to accomodate _tar.gz.
4897 (prompt): Ensure that stdout is flushed prior to asking for input.
4898 (findhref): Initialize variables to quiet a compiler warning.
4899 (processdirlisting): Accept list of packages to install. Special case
4900 cygwin tar file version number.
4901 (downloaddir): Accept list of packages to install.
4902 (downloadfrom): Ditto.
4903 (create_uninstall): Eliminate unneeded variables. Quote arguments to
4905 (do_start_menu): Don't create uninstall bat file if updating or user
4906 specified a list of packages.
4907 (mkmount): Eliminate unneeded variables.
4908 (get_pkg_stuff): New function. Checks for previous unversioned
4910 (main): Accept -u and -f options and package names on the command line.
4911 Use get_pkg_stuff to initialize package information. Umount /etc.
4912 Call recurse_dirs and downloadfrom with list of package to install.
4913 Ensure that all /usr/local directories are created. Output
4914 installation time to setup.log.
4915 * setup.h: Add some prototypes.
4916 * xsystem.c (xcreate_process): Eliminate unneeded variable.
4918 Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
4920 * setup.c (optionprompt): Don't overlap display of already seen options
4922 (geturl): Print name of site which we're connecting to rather than "ftp
4924 (processdirlisting): Avoid URLs that contain a /. or ./ . Is this
4925 test too simplistic?
4926 (do_start_menu): Use pathcat to build path to <root>\bin to avoid
4927 problems when user chooses x:\ as their root.
4928 (main): For now, default to "non-update" mode. Allow -u option to
4931 Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
4934 * setup.c (tarx): Skip already installed or older packages. Report
4935 when a package has been updated.
4936 (processdirlisting): Skip already installed or older packages.
4937 (main): Detect -f option for forced installation. Initialize pkg stuff
4939 * setup.h: Add pkg definitions.
4941 Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
4943 * setup.c (findhref): Return NULL on empty string. Eat any trailing
4945 (processdirlisting): Attempt to limit recursively processing the same
4948 Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
4950 * setup.c (filedel): New function.
4951 (output_file): Keep track of files extracted from setup.exe for
4952 subsequent deletion.
4953 (tarx): Close process handle of child tar process or suffer handle
4955 (getdownloadsource): Close mirror file so that it can be unlinked.
4956 (processdirlisting): Return total number of files extracted.
4957 (main): Initialize array of files to delete. Ensure that files are
4958 closed on exit. Make the directory that setup.exe is started from ==
4959 the directory where temporary files are placed. Issue an error if no
4960 files were found to download.
4961 * xsystem.c (xcreate_process): Close the thread handle. Close the
4962 process handle if we waited for it to exit.
4964 Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
4966 * setup.c (main): Change version number output.
4968 Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
4970 * setup.c (tarx): Use full path name to tar executable.
4971 (main): Build full pathname to tar executable. Create /usr/local/etc
4974 Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
4976 * setup.c (findhref): Change method for scanning for href= to choose
4977 the last one on the line. This is still not foolproof and probably
4978 will need to be changed eventually. Don't abort if no "size" field is
4980 (processdirlisting): Fix boolean algebra.
4982 Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
4984 * main.c (tarx): Add some code for future task of unmounting
4985 directories encountered in tar file.
4987 Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
4989 * setup.c (findhref): Decode file size, when appropriate.
4990 (needfile): New function. Returns 1 when file should be
4992 (processdirlisting): Always download if file size does not
4993 match. Prompt when download fails for some reason.
4994 (getdownloadsource): Accomodate findhref argument changes.
4996 Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
4998 Throughout, use global session handle rather than reinitializing for
4999 each connect. Don't pass session as an argument to setup.c functions.
5000 * setup.c (geturl): Only issue "Connecting to.." message when using
5001 http or first time for ftp since subsequent connections will be fast.
5002 (processdirlisting): Allocate space for "N" when user has specified
5003 "N"ever option so that it can be subsequently freed.
5004 (main): Abort if we can't get the list of mirrors.
5006 Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
5008 * setup.c (main): Umount /bin and /lib.
5010 Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
5012 * setup.c (main): Create an empty /var/run/utmp.
5014 Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
5016 * Makefile.in: Add umount to list of files to include in setup.exe.
5017 * setup.c (xumount): New function for unmounting directories.
5018 (main): Unmount /usr.
5019 (mkmount): Unmount "unix directory" before trying to figure out where
5020 to create the directory.
5022 Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
5024 * setup.c (mkmount): Use xcreate_process to start mount process,
5026 (main): Don't do buffering on stdout or prompts won't be displayed
5027 correctly if running in a cygwin shell with CYGWIN=tty.
5029 Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
5031 * setup.c (main): Remove the CYGWIN environment variable before
5032 starting any cygwin programs.
5034 Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
5036 * setup.c (geturl): Use alternative method for finding filename part of
5038 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
5039 (downloaddir): Unlink file containing dir listing.
5040 (downloadfrom): Ditto.
5042 Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
5044 * setup.c (main): Disallow running setup.exe from the "root".
5046 Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
5048 Use "warning" function, where appropriate, to output warnings.
5049 * setup.c (warning): New function -- outputs warning to console and log
5051 (tarx): Fix index used to reset file protection.
5052 (main): Open the log file earlier so that more stuff can be sent to it.
5054 Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
5056 * setup.c (processdirlisting): Make "N" option a little less aggressive.
5058 Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
5060 * setup.c (tarx): Wait to after tar has completed to reset protections
5061 or suffer races with tar process.
5063 Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
5065 * Makefile.in: Eliminate duplicate -nostdinc from CFLAGS.
5066 * setup.c (create_uninstall): Create the uninstall .bat file in the
5067 "root" so that we can remove the /bin directory. Add bin\cygwin.bat to
5068 list of files to be deleted. Fix directory detection for determining
5069 when to use 'rmdir'.
5070 (do_start_menu): Add /usr/local/bin to the path.
5071 (main): Add slop to files.array allocation so that we don't have to
5072 worry about reallocating the array when it grows too large when doing
5073 some trivial "pushes". Add /tmp and /usr/local/{bin,lib} to list of
5076 Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
5078 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
5081 Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
5083 * path.c (kill_cygpath): New cleanup function.
5084 (exit_cygpath): New cleanup function.
5085 (cygpath_pipe): New function. Sets up cygpath in the background for
5086 translating filenames.
5087 (pathcvt): Use background cygpath for file translation.
5088 * setup.c (tarx): New function. Called to extract tar files, capture
5089 logging output, and translate it to Windows format.
5090 (recurse_dirs): Use 'tarx' function to extract files.
5091 (create_uninstall): Use file list built up by tarx rather than reading
5093 (mkmount): Add ability to mount root.
5094 (main): Track elapsed install time. Mount root.
5095 * starry.h: Add index field to strarry for tracking of tarx's usage of
5097 * xsystem.c (xcreate_process): Return proces handle when not waiting.
5099 Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
5102 (pathfp): New function. Preliminary work for new -f cygpath
5104 * Makefile.in: Add new file.
5105 (pathcvt): Move to new file.
5109 * setup.c (processdirlisting): Always open file in text mode.
5110 (create_uninstall): Ditto.
5111 (getdownloadsource): Ditto.
5114 Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
5116 * xsystem.c: New file.
5117 * Makefile.in: Accomodate new file.
5118 * setup.c (xsystem): Move to new file.
5119 (recurse_dirs): Accept handle to output log file. Don't use ">"
5120 redirection to trap tar output. Use supplied handle instead.
5121 (create_uninstall): Accept FILE pointer to opened log file. Don't
5122 unlink log file here.
5123 (do_start_menu): Accept FILE pointer to pass to create_uninstall.
5124 (main): Open log file here and pass it to various functions. Unlink
5127 Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
5129 Change occurrences of .usr.bin to .bin throughout.
5130 * setup.c (geturl): Increase number of retries to 20. Let user know
5131 what's going on during long connects.
5132 (processdirlisting): Accept "A"lways and "N"ever as update options.
5133 (create_uninstall): Load cygwin1.dll from the current directory rather
5135 (main): Add some expository text.
5137 Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
5139 * Makefile.in: Change method for compressing cygwin1.dll to avoid
5140 creating a cygwin1.dll in the current directory. Ensure the addition
5141 of -nostdinc to MINGW_CFLAGS.
5143 Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
5145 * Makefile.in: Augment clean target.
5147 Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
5149 * README: Added info about non-working mingw implementation
5150 * gzip.exe.gz: Replace with a version from the same build as the other
5152 * tar.exe.gz: Replace with a version from the same build as the other
5154 * mount.exe.gz: Add to repository until, mingw can build setup.
5155 * cygpath.exe.gz: ditto
5156 * cygwin1.dll.gz: ditto
5157 * setup.c: Overwrite /bin and /lib mounts. Generate working shortcut
5158 for Win9x. Display only a screenfull of options at a time. Call all
5159 tools with an absolute path.
5160 * setup.dsp: Restore the carriage returns, MS Developer Studio needs
5165 Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
5167 * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab
5168 cygwin1.dll from ../cygwin subdirectory.
5169 * gzip.exe.gz: Update.
5170 * tar.exe.gz: Update.
5172 Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
5174 * Makefile.in: Use ZLIB variable as a target.
5176 Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
5178 * Makefile.in: Eliminate traces of cygwinisms. Don't link with
5179 libmsvcrt.a. It's unneeded. Build .rc file on the fly from various
5181 * configure.in: Locate correct objcopy.
5182 * configure: Regenerate.
5184 Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
5186 * Makefile.in: New file.
5187 * configure.in: New file.
5188 * configure: New file.
5189 * zlib/Makefile.am: New file.
5190 * zlib/configure.in: New file.
5191 * zlib/aclocal.m4: New file.
5192 * zlib/acinclude.m4: New file.
5193 * zlib/configure: Regenerate from configure.in.
5194 * zlib/Makefile.in: Regenerate from Makefile.am