1 2002-11-25 Robert Collins <rbtcollins@hotmail.com>
3 * AntiVirus.cc: New file.
5 * LogFile.cc: Include AntiVirus.h for class definition.
6 (LogFile::exit): Trigger AntiVirus::AtExit().
7 * MakeFile.am(setup_SOURCES): Add AntiVirus files.
8 * autoload.c: Declare Service Control Manager related API's.
9 * main.cc: Include AntiVirus.h for class definition.
10 (main): Add the AntiVirus page in.
11 * res.rc: Define IDD_VIRUS.
12 * resource.h: Define IDD_VIRUS related control ID's.
13 * splash.h: Override OnNext.
14 * splash.cc: Only show AntiVirus page when one has been detected.
17 2002-11-25 Robert Collins <rbtcollins@hotmail.com>
19 * package_version.cc (DependencyProcessor): Create convenience class.
20 (select): Extract version selection method.
21 (processOneDependency): Check for a satisfactory trusted version
24 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
26 * main.cc (main): Use the factory for LogFile.
27 * String++.cc: Update to use sstream.
28 (String::String): Use a ostringstream for libC++ 3.2.
29 * LogFile.h (LogFile): Make createLogFile static.
31 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
33 * main.cc (main): Oops, pass LogSingleton a reference, not a pointer.
35 2002-11-04 Max Bowsher <maxb@ukf.net>
37 * Exception.h (Exception::what): Add throw() specification,
38 to agree with libstdc++-v3.
39 * Exception.cc (Exception::what): Ditto.
40 * IniDBBuilderPackage.h: Add 'std::' where needed.
41 * PickCategoryLine.h: Ditto.
43 * package_db.h: Ditto.
44 * package_meta.h: Ditto.
45 * package_source.h: Ditto.
46 * package_version.h: Ditto.
48 * win32.h: Define NOMINMAX before including <windows.h>.
49 * package_meta.cc: Add 'using namespace std;'.
50 (packagemeta::set_requirements): Remove default parameter values
51 from definition (gcc3 likes them only in declaration).
52 * package_version.cc: Add 'using namespace std;'.
53 (packageversion::set_requirements): Remove default parameter
54 values from definition (gcc3 likes them only in declaration).
56 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
58 * compress_bz.cc: Don't include bzlib.h directly, the compress_bz.h
61 2002-11-04 Max Bowsher <maxb@ukf.net>
63 * compress_bz.h: #undef small before including bzlib.h - if we are
64 going to hide the fact that we are _WIN32 from bzlib, then we need
65 to #undef small for it as well (bad windows.h clash).
67 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
69 * localdir.cc: Update the extern LogFile to be a pointer.
70 (save_local_dir): Change . to -> for the above.
71 * main.cc (theFile): Change from an instance to a pointer.
72 (main): Change . to -> for the above.
74 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
76 * LogFile.cc: use 'std::' where needed throughout.
77 (LogFile::createLogFile): Implement a factory for LogFile.
78 (LogFile::LogFile): Update for use with the factory, and to
79 handle the latest g++ library changes.
80 (LogFile::operator()): Ditto.
81 (LogFile::endEntry()): Ditto.
83 * LogSingleton.cc: Ditto.
84 * LogSingleton.h: Ditto.
86 2002-11-04 Max Bowsher <maxb@ukf.net>
88 * String++.h: Add 'std::' where needed.
90 2002-11-04 Max Bowsher <maxb@ukf.net>
92 * IniDBBuilderPackage.cc: Add 'using namespace std;'.
93 * IniParseFindVisitor.cc: Ditto.
95 * LogSingleton.cc: Ditto.
102 * io_stream.cc: Ditto.
103 * io_stream_file.cc: Ditto.
104 * package_db.cc: Ditto.
108 2002-11-04 Max Bowsher <maxb@ukf.net>
110 * LogSingleton.h: Add 'std::' where needed.
112 2002-11-04 Max Bowsher <maxb@ukf.net>
114 * archive_tar_file.cc: Include <algorithm>.
115 Change min(a,b) to std::min(a,b)
116 * compress_bz.cc: Ditto.
117 * compress_gz.cc: Ditto.
119 2002-11-04 Max Bowsher <maxb@ukf.net>
121 * res.rc: Change a #-comment (invalid) to a //-comment.
123 2002-11-04 Max Bowsher <maxb@ukf.net>
125 * Makefile.am (%.o: %.rc): Make windres use $(CC) not hardcoded gcc.
126 (inilint_LDADD): Remove -lstd++.
127 (setup_LDADD): Ditto.
129 2002-09-22 Max Bowsher <maxb@ukf.net>
131 * IniDBBuilderPackage.cc: Update DEBUG code to current class
134 2002-09-21 Robert Collins <rbtcollins@hotmail.com>
136 * choose.h: Add OnUnattended method.
137 * desktop.cc (DesktopSetupPage::OnInit): Allow fine grained
138 control via command line options.
139 (DesktopSetupPage::OnUnattended): Implement.
140 (DesktopSetupPage::OnMessageApp): Implement.
141 * desktop.h (DesktopSetupPage::OnUnattended): declare.
142 (DesktopSetupPage::OnMessageApp): Ditto.
143 * download.cc (do_download_thread): Support unattended mode.
144 * install.cc (do_install_thread): Ditto.
146 * main.cc (main): Ditto.
147 * net.cc (NetPage::OnUnattended): Ditto.
148 * net.h (NetPage::OnUnattended): Declare.
149 * proppage.cc (PropertyPage::DialogProc): Support unattended mode.
150 * proppage.h (PropertyPage::OnUnattended): Declare.
151 * root.cc (RootPage::OnInit): Support unattended mode.
152 (RootPage::OnUnattended): Implement.
153 * root.h (RootPage::OnUnattended): Declare.
154 * site.cc (register_saved_site): Extract Method from get_saved_sites.
155 (get_saved_sites): Remove common code for adding a site.
156 (SitePage::OnInit): Support unattended mode.
157 (SitePage::OnUnattended): Implement.
158 * site.h (SitePage::OnUnattended): Declare.
159 * source.cc (SourcePage::OnActivate): Support unattended mode.
160 (SourcePage::OnUnattended): Implement.
161 * source.h (SourcePage::OnUnattended): Declare.
162 * splash.h (SplashPage::OnUnattended): Declare.
163 * state.cc (unattended_mode): Declare.
164 * state.h (unattended_mode): Declare.
165 * threebar.h (ThreeBarProgressPage::OnUnattended): New method.
167 2002-09-21 Robert Collins <rbtcollins@hotmail.com>
169 * res.rc: Commit Harry Johnston's dialog caption patch. From July.
171 2002-07-15 Robert Collins <rbtcollins@hotmail.com>
173 * package_version.cc (packageversion::sources): Implement this.
174 * download.cc (do_download_thread): Support multiple files per package.
176 2002-07-15 Robert Collins <rbtcollins@hotmail.com>
178 * package_version.h (packageversion::sources): Support multiple files in
179 a single package version.
180 * package_version.cc (_packageversion::accessible): Ditto.
181 (packageversion::source): Ditto.
183 2002-07-15 Robert Collins <rbtcollins@hotmail.com>
185 * iniparse.y: Implement support for multiple source files for a source
187 * IniDBBuilder.h (IniDBBuilder::buildSourceFile): Ditto.
188 * IniDBBuilderPackage.h (IniDBBuilder::buildSourceFile): Ditto.
189 * IniDBBuilder.cc (IniDBBuilder::buildSourceFile): Ditto.
190 * IniDBBuilderPackage.cc (IniDBBuilder::buildSourceFile): Implement a
193 2002-07-13 Robert Collins <rbtcollins@hotmail.com>
195 * PickPackageLine.cc (PickPackageLine::click): Set requirements for
196 packages under all circumstances - slightly higher overheader, simpler
198 * download.cc (do_download_thread): Correctly download source
200 * package_meta.cc (checkForInstalled): Remove.
201 (checkForUpgradeable): Ditto.
202 (checkForSatisfiable): Ditto.
203 (processOneDependency): Ditto.
204 (packagemeta::set_requirements): Move guts to packageversion.
205 * package_version.cc (checkForInstalled): Copied from package_meta.cc.
206 (checkForUpgradeable): Ditto.
207 (checkForSatisfiable): Ditto.
208 (processOneDependency): Ditto.
209 (packageversion::set_requirements): Ditto.
210 * package_version.h (packageversion::set_requirements): Declare.
212 2002-07-13 Robert Collins <rbtcollins@hotmail.com>
214 * IniDBBuilder.cc (IniDBBuilder::buildBeginBuildDepends): Implement.
215 (IniDBBuilder::buildBeginBinary): Implement.
216 * IniDBBuilder.h (IniDBBuilder::buildBeginBuildDepends): Declare.
217 (IniDBBuilder::buildBeginBinary): Ditto.
218 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildBeginBuildDepends):
220 (IniDBBuilderPackage::buildBeginBinary): Ditto.
221 * IniDBBuilderPackage.h (IniDBBuilderPackage::buildBeginBuildDepends):
223 (IniDBBuilderPackage::buildBeginBinary): Ditto.
224 * inilex.l: Recognise Build-Depends-Indep, [,], >, < and remove
226 * iniparse.y: Full support for parsing a debian Sources file in-line in
228 * package_version.cc (packageversion::binaries): Implement.
229 * package_version.h (packageversion::binaries): Declare list of what
230 packages are created from a given source package.
231 (_packageversion::binaries): Ditto.
233 2002-07-10 Robert Collins <rbtcollins@hotmail.com>
235 * iniparse.y: Add basis for support for parsing a debian Sources file.
238 2002-07-09 Robert Collins <rbtcollins@hotmail.com>
240 Change custom container code for packagedb::packages to STL containers
242 * IniDBBuilderPackage.cc: Ditto.
243 * PickView.cc: Ditto.
246 * download.cc: Ditto.
248 * package_db.cc: Ditto.
249 * package_db.h: Ditto.
250 * Makefile.am: Remove list.h references.
253 2002-07-08 Max Bowsher <maxb@ukf.net>
255 * PickView.cc (PickView::PickView): Set font of package list header to
256 the same as used in the rest of the package list.
258 2002-07-08 Robert Collins <rbtcollins@hotmail.com>
260 * install.cc (NoReplaceOnReboot): New command line option to prevent
261 replacing in use files.
262 (install_one_source): Check the option and use it.
263 * README: Update TODO lists.
265 2002-07-08 Robert Collins <rbtcollins@hotmail.com>
267 * PickCategoryLine.cc: Change bucket to use STL container syntax
269 (PickCategoryLine::paint): Use new Category type syntax.
270 * PickCategoryLine.h: Use STL vectors rather than custom containers
272 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageCategory):
273 Use new add_category syntax.
274 * PickView.cc (PickView::insert_pkg): Use new Category type syntax.
275 (PickView::insert_category): Ditto.
276 (PickView::init_headers): Ditto.
277 * category.cc: Trim obsolete code.
278 * category.h: Replace interconnecting class with a typedef to
279 facilitate leveraging STL maps.
280 * choose.cc (fill_missing_category): Use updated pkg.add_category
282 (default_trust): Use new Category type syntax.
283 (set_view_mode): Ditto.
284 (create_listview): Ditto.
285 * package_db.cc (categories): Ditto.
286 * package_db.h: Update headers list to include needed headers.
287 (packagedb::categories): Replace custom list with STL map.
288 * package_meta.cc: Use new Category type syntax throughout.
289 (packagemeta::add_category): Implement new syntax.
290 * package_meta.h: Remove commented out source.
291 (packagemeta::add_category): Update syntax to decouple interface from
294 2002-07-06 Christopher Faylor <cgf@redhat.com>
296 * site.cc (do_download_site_info_thread): Correct spelling error.
298 2002-07-06 Robert Collins <rbtcollins@hotmail.com>
300 * PickCategoryLine.h: Include required header list.h.
301 * PickPackageLine.cc (PickPackageLine::paint): Adjust to use STL
302 containers for listing of packages per category and vice verca.
303 * PickView.cc (PickView::insert_pkg): Ditto.
304 (PickView::insert_category): Ditto.
305 * String++.h (String::caseless): STL helper to allow trivial containers
306 of Strings with case insensitive comparisons.
307 * category.h: Adjust to use STL containers for listing of packages per
308 category and vice verca.
309 * choose.cc (fill_missing_category): Ditto.
310 (default_trust): Ditto.
311 (ChooserPage::OnNext): Ditto.
312 * package_meta.cc (CategoryPackage::~CategoryPackage): Remove.
313 (packagemeta::packagemeta): Adjust for new category list name.
314 (packagemeta::~packagemeta): Adjust to use STL containers for listing
315 of packages per category and vice verca.
316 (packagemeta::set_action): Ditto.
317 * package_meta.h (CategoryPackage): Remove.
318 (packagemeta): Adjust to use STL containers for listing of packages per
319 category and vice verca.
321 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
323 * io_stream.cc: Use STL containers rather than custom ones.
324 (io_stream::registerProvider): Ditto.
325 (findProvider): Ditto.
327 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
329 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
330 Use STL collections for download site collections.
331 (IniDBBuilderPackage::add_correct_version): Ditto.
332 (IniDBBuilderPackage::process_src): Ditto.
333 * PickPackageLine.cc (PickPackageLine::click): Use the packageversion
334 accessible() call to abstract package availability.
335 * choose.cc (scanAVersion): Use STL collections for download site
337 * download.cc (check_for_cached): Ditto.
338 (download_one): Ditto.
339 * package_meta.cc (packagemeta::set_action): Use the packageversion
340 accessible() call to abstract package availability.
341 * package_source.h: Use STL containers rather than custom containers.
342 (site): Create a == operator to allow STL container use.
343 (packagesource::sites): Use STL containers rather than custom
345 * package_version.cc (_packageversion::accessible): Use STL containers
346 for download site containers.
348 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
350 * LogFile.cc: Use STL containers rather than custom containers.
351 (filedef): Create == and < operators for STL use.
352 (files): Convert to an STL set.
353 (LogFile::setFile): Use STL operations on files.
354 (LogFile::exit): Ditto.
356 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
358 * ini.cc (do_remote_ini): Use STL collection for site collection.
359 * site.cc: Include site.h first to ensure it's parsable standalone.
361 (site_list): Convert to an STL container.
362 (all_site_list): Ditto.
363 (site_list_type::site_list_type): Implement copy constructor.
364 (site_list_type::operator=): Implement assignment operator.
365 (site_list_type::operator ==): Implement.
366 (site_list_type::operator <): Ditto.
367 (save_dialog): Use STL collection calls for site collection.
368 (save_site_url): Ditto.
369 (get_site_list): Ditto.
370 (get_saved_sites): Ditto.
371 (do_download_site_info_thread): Ditto.
372 (SitePage::OnNext): Ditto.
373 (SitePage::PopulateListBox): Ditto.
374 (SitePage::OnMessageCmd): Ditto.
375 * site.h: Use STL vectors instead of custom code.
376 (site_list_type::site_list_type): Declare.
377 (site_list_type::operator=): Ditto.
378 (site_list_type::operator ==): Ditto.
379 (site_list_type::operator !=): Ditto.
380 (site_list_type::operator <): Ditto.
381 (site_list_type::operator <=): Ditto.
382 (site_list_type::operator >): Ditto.
383 (site_list_type::operator >=): Ditto.
384 (site_list): Convert to an STL container.
385 (all_site_list): Ditto.
387 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
389 * choose.cc (default_trust): Check package accessibility before
390 triggering an install. (Suggested by Pavel).
392 2002-07-03 Pavel Tsekov <ptsekov@gmx.net>
394 * compress_gz.cc (compress_gz::construct): Always initialize key members
395 to ensure the destructor does the right thing.
397 2002-07-03 Pavel Tsekov <ptsekov@gmx.net>
399 * filemanip.cc (parse_filename): Do not try to parse empty
401 * package_db.cc (packagedb::packagedb): For each line check if sscanf()
402 extracted good package name and filename.
404 2002-07-03 Robert Collins <rbtcollins@hotmail.com>
406 * package_meta.cc (packagemeta::set_requirements): Automatically select
407 version of dependent packages that satisfies the requirements.
408 Use processOneDependency to trigger the install of those packages.
409 (checkForInstalled): Check that the package remains installed.
410 (processOneDependency): Helper function for dependent packages.
411 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackage): Add more
413 Clear out all current state on new packages.
414 (IniDBBuilderPackage::add_correct_version): Copy the dependency list
417 2002-07-02 Robert Collins <rbtcollins@hotmail.com>
419 * Makefile.am (inilint_SOURCES): Add PackageSpecification sources.
420 nb: inilint is still incomplete, as the packageversion code is not
421 ready for database-less linking.
422 * site.cc (get_site_list): When the same site is reentered by the user
423 replace the old one. (Suggested by John Marshall).
425 2002-07-02 Robert Collins <rbtcollins@hotmail.com>
427 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
428 Clear out package selections when generating implicit source packages.
429 * PackageSpecification.cc (PackageSpecification::satisfies): Implement.
430 (PackageSpecification::_operators::satisfies): Implement.
431 * PackageSpecification.h (PackageSpecification::_operators::satisfies):
432 Worker function for testing versions.
434 2002-07-01 Robert Collins <rbtcollins@hotmail.com>
436 * IniDBBuilder.cc (IniDBBuilder::buildPackageRequirement): Remove.
437 * IniDBBuilder.h (IniDBBuilder::buildPackageRequirement): Ditto.
438 * IniDBBuilderPackage.cc: Use the STL algorithms.
439 Change cpv to cbpv throughout. Adjust -> to ., and use the new accessor
440 functions for the same variable throughout.
441 (IniDBBuilderPackage::IniDBBuilderPackage): Initialise new members.
442 (IniDBBuilderPackage::buildPackage): Use new cygpackage syntax,
443 and set an empty source package.
444 (IniDBBuilderPackage::buildPackageInstall): Use the new source member
445 to record an install package.
446 (IniDBBuilderPackage::buildPackageSource): Move source package logic
447 out from process_src, as it now occurs at separate times.
448 (IniDBBuilderPackage::buildPackageRequirement): Remove.
449 (IniDBBuilderPackage::buildSourceName): Use renamed package
450 specifiation accessor for clarity.
451 (IniDBBuilderPackage::buildSourceNameVersion): Ditto.
452 (IniDBBuilderPackage::add_correct_version): Use STL iterators rather
454 Remove source package references.
455 (IniDBBuilderPackage::process_src): Remove source package code as it's
456 now handled separately.
457 Set Path information before merging versions, to prevent dangling
459 * IniDBBuilderPackage.h (IniDBBuilderPackage::buildPackageRequirement):
461 (IniDBBuilderPackage::cpv): Remove.
462 (IniDBBuilderPackage::cbpv): New generic binary working variable.
463 (IniDBBuilderPackage::cspv): Ditto, but for source packages.
464 (IniDBBuilderPackage::csp): Source package variable for disjoint
466 * Makefile.am (AM_CFLAGS): Remove -Winline to allow stl set code
467 to compile. If it compiles cleanly in gcc 3.1, then reinstate.
468 * PickPackageLine.cc: Adjust packageversion accessors to the new
469 reference calls. (i.e. -> to .) throughout.
470 (PickPackageLine::paint): Use accessible() for clarity.
471 Use new split out source package logic.
472 (PickPackageLine::click): Ditto.
473 * PickView.cc (PickView::init_headers): Adjust packageversion accessors
474 to the new reference calls. (i.e. -> to .) throughout.
475 Use new split out source package logic.
476 * choose.cc: Don't depend on a specific package type.
477 Adjust packageversion accessors to the new reference calls. (i.e. -> to
479 (set_existence): Use accessible () for clarity.
480 (default_trust): Simplify a little.
481 (scanAVersion): Factored out code from scan_downloaded_files for
483 (scan_downloaded_files): Factor out inner loop for clarity.
484 (ChooserPage::OnNext): Don't dump the dependency list,
485 it's parsing is robust now!.
486 * cygpackage.cc (createInstance): Use a factory method to create new
488 (cygpackage::cygpackage): Make this private for use by the factory.
489 (cygpackage::setCanonicalVersion): Renamed from set_canonical_version.
490 Remove key usage as it's obsolete.
491 * cygpackage.h (cygpackage): Inherit from _packageversion, not
493 (cygpackage::createInstance): New factory.
494 (cygpackage::cygpackage): Make private.
495 * desktop.cc (make_passwd_group): Use new packageversion reference.
496 * download.cc (do_download_thread): Use changeRequested() for clarity.
497 Use new packageversion reference calls.
498 * iniparse.y (REQUIRES): Reuse the packageList code and dump the one-off
500 * install.cc: Adjust -> to ., and use the new accessor functions for
501 packageversion throughout.
502 * package_db.cc: Adjust -> to ., and use the new accessor functions for
503 packageversion throughout.
504 (packagedb::packagedb): Use the new cygpackage factory.
505 (packagedb::flush): Leverage String to remove buffer overflow chance in
507 (packagedb::findBinary): Find a binary meta package that has a version
508 matching a given specification.
509 (packagedb::findSource): Ditto, but for source.
510 * package_db.h (packagedb::findBinary): Declare.
511 (packagedb::findSource): Ditto.
512 * package_meta.cc: Adjust packageversion accessors to the new
513 reference calls. (i.e. -> to .) throughout.
514 Include the package_meta header first to ensure it parses standalone.
515 Use the STL algorithms.
516 (packagemeta::packagemeta): Create a copy constructor to allowing
517 cloning binary package metadata to source package metadata.
518 (packagemeta::~packagemeta): Use the STL coleltion code rather than
519 custom collection code.
520 (packagemeta::add_version): Ditto.
521 (packagemeta::set_installed): Ditto.
522 (packagemeta::SDesc): Ditto.
523 (hasSDesc): Helper function for find_if.
524 (checkForInstalled): Ditto.
525 (checkForUpgradeable): Ditto.
526 (checkForSatisfiable): Ditto.
527 (packagemeta::action_caption): Update for split out source packages.
528 (packagemeta::set_action): Ditto.
529 (packagemeta::set_requirements): Support multi-valued dependency
530 lists - a|b & c|d - with versioned package specifications.
531 (packagemeta::accessible): Helper member to improve abstraction.
532 (packagemeta::sourceAccessible): Ditto.
533 * package_meta.h: Adjust packageversion accessors to the new
534 reference calls. (i.e. "->" to "." and"*" to "" ) throughout.
535 (packagemeta::packagemeta): Declare copy constructor.
536 Remove self initialising members.
537 (packagemeta::set_action): Update parameters for new packageversion.
538 (packagemeta::trustp): Ditto.
539 (packagemeta::versions): Becomes an STL set.
540 * package_source.h (packagesource::Cached): Const correctness change.
541 * package_version.cc: Rewrite the packageversion interface to remove
542 the cygpackage nonvirtual members, and provide a copy by value,
543 pointer semantics reference counting wrapper class to ease use and
544 comparison of packageversions.
545 Change existing packageversion class to _packageversion throughout.
546 (_defaultversion): A trivial concrete class to prevent specialcasing
547 the default constructor for packageversion;
548 (packageversion::packageversion): Implement.
549 (packageversion::~packageversion): Ditto.
550 (packageversion::operator=): Ditto.
551 (packageversion::operator !): Ditto.
552 (packageversion::operator bool): Ditto.
553 (packageversion::operator ==): Ditto.
554 (packageversion::operator !=): Ditto.
555 (packageversion::operator <): Ditto.
556 (packageversion::Name): Ditto.
557 (packageversion::Canonical_version): Ditto.
558 (packageversion::setCanonicalVersion): Ditto.
559 (packageversion::getfirstfile): Ditto.
560 (packageversion::getnextfile): Ditto.
561 (packageversion::SDesc): Ditto.
562 (packageversion::set_sdesc): Ditto.
563 (packageversion::LDesc): Ditto.
564 (packageversion::set_ldesc): Ditto.
565 (packageversion::sourcePackage): Ditto.
566 (packageversion::sourcePackageSpecification): Ditto.
567 (packageversion::setSourcePackageSpecification): Ditto.
568 (packageversion::depends): Ditto.
569 (packageversion::predepends): Ditto.
570 (packageversion::recommends): Ditto.
571 (packageversion::suggests): Ditto.
572 (packageversion::replaces): Ditto.
573 (packageversion::conflicts): Ditto.
574 (packageversion::provides): Ditto.
575 (packageversion::picked): Ditto.
576 (packageversion::pick): Ditto.
577 (packageversion::changeRequested): Ditto.
578 (packageversion::uninstall): Ditto.
579 (packageversion::source): Ditto.
580 (packageversion::accessible): Ditto.
581 (_packageversion::sourcePackage): Ditto.
582 (_packageversion::accessible): Ditto.
583 (_packageversion::changeRequested): Ditto.
584 * package_version.h: Rewrite the packageversion interface to remove
585 the cygpackage nonvirtual members, and provide a copy by value,
586 pointer semantics reference counting wrapper class to ease use and
587 comparison of packageversions.
588 Change existing packageversion class to _packageversion throughout.
589 (Dependency): Remove.
590 (packageversion): New wrapper class.
591 (_packageversion): Renamed from packageversion.
592 (_packageversion::setCanonicalVersion): New method.
593 (_packageversion::sourcePackage): Ditto.
594 (_packageversion::sourcePackageSpecification): Ditto.
595 (_packageversion::setSourcePackageSpecification): Ditto.
596 (_packageversion::changeRequested): Ditto.
597 (_packageversion::bin): Rename to source.
598 (_packageversion::src): Remove.
599 (_packageversion::accessible): New method.
600 (_packageversion::references): Allow reference counting.
601 (_packageversion::sourceVersion): Cached the best-match source
604 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
606 * compress_bz.h (compress_bz::position): Track how much has been read.
607 * compress_bz.cc (compress_bz::compress_bz): And initialise it.
608 (compress_bz::read): Track amount read by the client.
609 (compress_bz::tell): And report it when asked.
611 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
613 * Makefile.am (snapshot): Automate snapshot creation some more.
615 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
617 * msg.cc (msg): Use vsnprintf to avoid buffer overflows.
619 * ini.cc (fprintf): Ditto.
620 * log.cc (log): Ditto.
621 * package_db.cc (packagedb::sourcePackages): Split out source packages
622 from binary packages.
623 * package_db.h: Ditto.
625 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
627 * PackageSpecification.h: New file. Abstracts the ability to refer
628 to another package, by name, or name and version.
629 * PackageSpecification.cc: Ditto.
630 * IniDBBuilder.cc (IniDBBuilder::buildPackageInstall): Simplify.
631 (IniDBBuilder::buildPackageSource): Ditto.
632 (IniDBBuilder::buildBeginDepends): New method for versioned
634 (IniDBBuilder::buildBeginPreDepends): Likewise, for dependencies to be
635 satisfied before pre-install.
636 (IniDBBuilder::buildPriority): New method, for getting the package
638 (IniDBBuilder::buildInstalledSize): How much disk space does it need?
639 (IniDBBuilder::buildMaintainer): Who maintains the package?
640 (IniDBBuilder::buildArchitecture): What platform is it for?
641 (IniDBBuilder::buildInstallSize): How big is the binary download?
642 (IniDBBuilder::buildInstallMD5): Whats the MD5 on the binary?
643 (IniDBBuilder::buildSourceMD5): Whats the MD5 on the source package?
644 (IniDBBuilder::buildBeginRecommends): What other packages are
645 recommended with this one?
646 (IniDBBuilder::buildBeginSuggests): And suggested?
647 (IniDBBuilder::buildBeginReplaces): What packages does this replace?
648 (IniDBBuilder::buildBeginConflicts): And collide with?
649 (IniDBBuilder::buildBeginProvides): What virtual packages (or obsolete
650 package names) does this provide?
651 (IniDBBuilder::buildDescription): Grab a multi line description one
653 (IniDBBuilder::buildSourceName): What source package should be used to
654 install the source for this binary package?
655 (IniDBBuilder::buildSourceNameVersion): Is a specific version needed?
656 (IniDBBuilder::buildPackageListAndNode): Add another AND clause to a
657 list of package specifications.
658 (IniDBBuilder::buildPackageListOrNode): Add another OR clause.
659 (IniDBBuilder::buildPackageListOperator): Add a versioning operator
660 to the current specification.
661 (IniDBBuilder::buildPackageListOperatorVersion): What version does the
663 * IniDBBuilder.h: Declare all the IniDBBuilder.cc changes.
664 * IniDBBuilderPackage.cc: As for IniDBBuilder.cc.
665 (IniDBBuilderPackage::IniDBBuilderPackage): Iniitialize new members.
666 (IniDBBuilderPackage::process_src): Streamline and split out
668 (IniDBBuilderPackage::setSourceSize): From process_src.
669 * IniDBBuilderPackage.h: Declare the IniDBBuilderPackage.cc changes.
670 (IniDBBuilderPackage::currentSpec): Track the in-progress specifiation.
671 (IniDBBuilderPackage::currentOrList): Track the current Or list.
672 (IniDBBuilderPackage::currentAndList): Track the current And list.
673 * IniParseFeedback.cc (IniParseFeedback::progress): Provide completion
675 (IniParseFeedback::iniName): Tell what ini filename we are currently
677 * IniParseFeedback.h: Declare IniParseFeedback.cc changes.
678 * IniParseFindVisitor.cc (IniParseFindVisitor::IniParseFindVisitor):
679 Make the feedback object non-const to allow mutating methods which are
680 needed when the object has state.
681 (IniParseFindVisitor::visitFile): Tell the caller the name of each
683 Initialise the parser with the feedback object to allow it to tell of
685 * IniParseFindVisitor.h: Declare IniParseFindVisitor.cc changes.
686 * Makefile.am (inilinst_SOURCES): Add more requisite classes.
687 (setup_SOURCES): Add the new PackageSpecification sources.
688 * ScanFindVisitor.cc (ScanFindVisitor::visitFile): Use the new
689 builder syntax to setup binary package details.
690 * choose.cc: Use the LogSingleton calls throughout.
691 * configure.in: Create the INILINT substitution correctly for recent
692 autotool configurations.
693 * cygpackage.cc (cygpackage::getfirstfile): Return an empty String
694 rather than a string built from an int. Thanks to Pavel Tsekov for
696 (cygpackage::getnextfile): Ditto.
697 * download.cc: Use LogSIngletion calls throughout.
698 (validateCachedPackage): A refactoring of the
699 check_for_cached code to eliminate duplciation.
700 (check_for_cached): Use validateCachedPackage to check packages.
701 * ini.cc (GuiParseFeedback): Provide gui feedback on ini name and
703 (do_remote_ini): Ditto.
704 * ini.h (ini_init): Pass a IniParseFeedback to the parser, to allow
706 * inilex.l: Identify new symbols - operators, and multi line plain text.
708 * inilintmain.cc (show_help): Provide basic infomation on inilint.
709 * iniparse.y: Adjust for the new builder syntax, and process debian
711 * io_stream_file.cc: Always include mkdir.h.
712 * list.h: Factor index location into a private routine.
713 (list::findindex): Implement this.
714 * mkdir.cc (mkdir_p): Make the use of WIN32 code conditional on mingw
715 builds. NB: This breaks cygwin build functionality still.
716 * package_meta.cc: Use the LogSingleton calls throughout.
717 (packagemeta::set_requirements): Adjust for object changes in
719 * package_meta.h (packagemeta::packagemeta): Initialise new members.
720 (packagemeta::architecture): What platform does this package run on?
721 This may need to move in the future to a per packagefile object.
722 (packagemeta::priority): What priority does this package have?
723 * package_source.h (packagesource::packagesource): Initialise new
725 (packagesource::installedSize): How much space does the package need?
726 (packagesource::setInstalledSize): Tell the amount.
727 (packagesource::_installedSize): And store it.
728 * package_version.cc (packageversion::sourcePackage): return the
730 (packageversion::setSourcePackage): And set it.
731 * package_version.h: Declare the package_version.cc changes.
732 (packageversion::depends): New package specification AND list.
733 (packageversion::predepends): Ditto.
734 (packageversion::recommends): Ditto.
735 (packageversion::suggests): Ditto.
736 (packageversion::replaces): Ditto.
737 (packageversion::conflicts): Ditto.
738 (packageversion::provides): Ditto.
739 (packageversion::sourcePackage): What source package is needed?
740 * threebar.cc (ThreeBarProgressPage::SetText4): Set the label beside
742 * threebar.h: Declare the threebar.cc change.
744 2002-06-27 John Marshall <johnm@falch.net>
746 * res.rc (SETUPINI_MISSING): Make trailing spaces visible.
747 * site.cc (SitePage::OnMessageCmd): Ditto
749 2002-06-15 Robert Collins <rbtcollins@hotmail.com>
751 * nio-ie5.cc (NetIO_IE5::NetIO_IE): Allow cached data.
753 2002-06-15 Robert Collins <rbtcollins@hotmail.com>
755 * package_meta.cc (packagemeta::set_action): When installing packages
756 with no binaries, choose the source package.
758 2002-06-10 Robert Collins <rbtcollins@hotmail.com>
760 * IniParseFindVisitor (IniParseFindVisitor::visitFile): Apply Max
761 Bowshers fix for the crash with a root level setup.ini.
762 * README: Update todos.
764 2002-05-26 Ralf Habacker <ralf.habacker@freenet.de>
766 * archive_tar.cc (archive_tar::next_file_name()): fixed broken
767 GNU long name extension support.
769 2002-05-27 Robert Collins <rbtcollins@hotmail.com>
771 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Don't
772 unescape 0 length strings.
774 2002-05-20 Robert Collins <rbtcollins@hotmail.com>
776 * package_meta.cc (packagemeta::set_action): Don't allow reinstall
777 when local with no cached file, and install the default source if the
778 default version has no binary.
780 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
782 * IniDBBuilderPackage.cc (IniDBBuilderPackage::IniDBBuilderPackage): New
784 (IniDBBuilderPackage::buildVersion): Provide a warning when a newer
785 setup version created the ini file.
786 * IniDBBuilderPackage.h (IniDBBuilderPackage::IniDBBuilderPackage): New
788 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Use the new
790 * IniParseFindVisitor.h (IniParseFindVisitor::IniParseFindVisitor):
791 Require a feedback strategy.
792 * Makefile.am (setup_SOURCES): Add IniParseFeedback sources.
793 * Makefile.in: Regenerate.
795 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
797 * io_stream_file.cc (io_stream_file::remove): Use the SetFileAttributes
798 trick to delete read only files.
799 * io_stream_cygfile.cc (io_stream_cygfile::remove): Use file:// to
801 * Makefile.am (release): Tweak to be more helpful.
802 * Makefile.in: Regenerate.
804 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
806 * Makefile.am (release): Tweak to be more helpful.
807 * Makefile.in: Regenerate.
809 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
811 * Makefile.am (release): Tweak to be more helpful.
812 * Makefile.in: Regenerate.
814 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
816 * choose.cc (scan_downloaded_files): When a non-installed version
817 has neither bin nor src cached files for local installs,
818 remove the version from availability.
820 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
822 * ini.cc (do_remote_ini): Save uncompressed ini's correctly.
824 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
826 * rsync: New support library, contains librsync. This is not (yet)
828 * configure.in: --with-rsync to enable rsync support. (Not complete).
829 * Makefile.am: Enable building with rsync.
830 * Makefile.in: Regenerate.
832 * IniDBBuilder.cc (IniDBBuilder::buildPackageInstall): Pass the md5 as
834 (IniDBBuilder::buildPackageSource): Ditto.
835 * IniDBBuilder.h: Ditto.
836 * IniDBBuilderPackage.cc: Ditto.
837 * IniDBBuilderPackage.h: Ditto.
838 * FindVisitor.cc: New file.
839 * FindVisitor.h: New file, interface for visiting a file system
841 * IniParseFindVisitor.cc: New file.
842 * IniParseFindVisitor.h: New file, concrete FindVisitor that parses
844 * README: Update TODO's.
845 * String++.cc (String::String): New constructor for <string> inter-
847 (String::substr): New method.
849 * choose.cc (scan2): Remove.
850 (scan_downloaded_files): Simplify.
851 * dialog.h: Include parsing pre-requirements.
852 * download.cc (check_for_cached): Fullname was used incorrectly - fix.
853 * filemanip.cc (parse_filename): -src packages where incorrectly parsed.
854 * find.cc: Rewrite. Now uses a Visitor pattern and is re-entrant.
856 * fromcwd.cc: Remove unneeded includes.
857 (is_test_version): Remove.
858 (found_file): Remove.
859 (SetupFindVisitor): Trivial visitor to detect setup.ini's.
861 (do_fromcwd): Remove commented code that has be replaced elsewhere.
862 * ini.cc (local_ini): Remove.
863 (findBuilder): Remove.
864 (find_routine): Remove.
865 (do_local_ini): Use new IniParseFindVisitor.
866 * iniparse.y: Typecase MD5 arrays, as we know they are allocated as
868 * postinstall.cc: Remove non-core includes.
869 (run_script_in_postinstall): Remove.
870 (RunFindVisitor): Trivial Visitor, runs each found script.
871 (do_postinstall): Use new find syntax.
873 2002-05-14 Christopher Faylor <cgf@redhat.com>
875 * ini.cc (find_routine): Don't clear buffer it it's NULL.
877 2002-05-14 Christopher Faylor <cgf@redhat.com>
879 * filemanip.h (trail): Declare.
880 * filemanip.cc (trail): New function.
881 (find_tar_ext): Use trail() instead of strstr().
882 * fromcwd.cc (check_ini): Ditto.
883 * ini.cc (find_routine): Ditto. Don't tack local_dir to path since it
884 should now be fully qualified. Set ini_filename. Reset error_buf and
885 error_count for any subsequent ini file parsing.
886 (ini_filename): New static variable for parse error reporting.
887 (yyerror): Use full path of setup.ini in error message. Subtract one
888 from line number if at bol.
889 * find.cc (found_part): Eliminate.
890 (find_sub): Call for_each with full path found rather than just file
892 (find): Don't calculate found_part.
893 * inilex.l (ini_init): Flush input buffer and reset line number.
894 (yybol): New function. Exports YY_AT_BOL.
895 * iniparse.y: Increase stack depth to allow more tokens to be processed.
896 (yyparse): Remove newline from error condition to allow subsequent
897 per-line error processing to proceed normally.
899 2002-05-14 Christopher Faylor <cgf@redhat.com>
901 * find.cc (find_sub): Be more defensive in preserving trailing parts of
902 components when doing recursive directory searches or calling user
904 * ini.cc (find_routine): Don't assume that any path name with
905 "setup.ini" in it is actually a setup.ini file. Only honor trailing
906 components. Copy path argument to temporary storage when unescaping
907 to prevent nuking of argument.
909 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
911 * CONTRIBUTORS: New file.
913 2002-04-02 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
915 * choose.cc: Run indent.
916 (nextbutton): Remove static variable.
917 (default_trust): Remove use of nextbutton.
918 (set_view_mode): Ditto.
919 (create_listview): Add IDC_CHOOSE_PREV and IDC_CHOOSE_NEXT to ta[] so
920 rbset() sets the prev/next/curr radio buttons properly.
921 (dialog_cmd): Delete function.
922 (dialog_proc): Delete function. Move WM_INITDIALOG functionality to
924 (do_choose): Delete function. Move pre-DialogBox() code to
925 ChooserPage::OnInit(), post-DialogBox() code to ChooserPage::OnNext.
926 (WM_APP_START_CHOOSE): Remove define.
927 (WM_APP_CHOOSE_IS_FINISHED): Remove define.
928 (do_choose_thread): Delete function.
929 (ChooserPage::OnActivate): Delete method.
930 (ChooserPage::OnMessageApp): Delete method.
931 (ChooserPage::OnInit): New method.
932 (ChooserPage::OnNext): New method.
933 (ChooserPage::OnBack): New method.
934 (ChooserPage::OnMessageCmd): New method.
935 * choose.h: Run indent.
936 (ChooserPage::OnMessageApp): Delete declaration.
937 (ChooserPage::OnActivate): Ditto.
938 (ChooserPage::OnMessageCmd): New declaration.
939 (ChooserPage::OnInit): Ditto.
940 (ChooserPage::OnNext): Ditto.
941 (ChooserPage::OnBack): Ditto.
942 * desktop.cc (DesktopSetupPage::OnBack): Replace use of IDD_CHOOSER
944 * fromcwd.cc (do_fromcwd): Replace use of IDD_CHOOSER with IDD_CHOOSE.
945 * ini.cc (do_ini_thread): Replace use of IDD_CHOOSER with IDD_CHOOSE.
946 * res.rc (IDD_CHOOSE): Remove dialog template.
947 (IDD_CHOOSER): Alter dialog template to fit wizard size and format.
949 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
951 * LogFile.cc (endLog): Work around an apparent libg++-3 bug causing
952 corrupt log file entries.
953 * geturl.cc: Convert to the new LogSingleton logging.
955 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
957 * ini.cc (do_remote_ini): Use setup.bz2 if it exists in preference to
960 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
962 * geturl.h: Declare getUrlToStream.
963 * geturl.cc (getUrlToStream): New function.
964 (get_url_to_membuf): Refactor to use getUrlToStream.
966 2002-05-11 Robert Collins <rbtcollins@hotmail.com>
968 * Makefile.am: Add a release target to automate some of the routine
970 * Makefile.in: Regenerate.
972 2002-05-11 Robert Collins <rbtcollins@hotmail.com>
974 * choose.cc (scan_downloaded_files): On local installs remove all
975 mirror sites if no cached copy of a package is found.
977 2002-05-10 Robert Collins <rbtcollins@hotmail.com>
979 * Makefile.in: Regenerate.
980 * iniparse.y: Use left recursion, not right in the lines rule to
981 avoid stack overflows.
982 * README: Update TODO's.
983 * io_stream_file.cc: Native builds need to include sys/stat.h
985 2002-05-06 John Marshall <jmarshall@acm.org>
987 * site.cc (SitePage::OnMessageCmd): recalculate navigation
988 button activation when "Add" is pressed.
989 (SitePage::CheckControlsAndDisableAccordingly): tweak comment.
991 2002-05-07 Robert Collins <rbtcollins@hotmail.com>
993 * Makefile.am (inlint_SOURCES): Add conditional objects to inilint
994 depending on platform.
996 * configure.in: Set conditional MINGWTARGET if compiling against mingw
998 * Makefile.in: Regenerate.
1000 * io_stream_file.cc: Only use win32 calls when building for mingw.
1002 2002-05-05 Robert Collins <rbtcollins@hotmail.com>
1004 * Makefile.am (noinst_PROGRAMS): Make inilint configurable.
1005 * configure.in: Ditto.
1006 Fix incorrect header checking syntax.
1007 * aclocal.m4: Regenerate.
1008 * configure: Regenerate.
1009 * Makefile.in: Regenerate.
1010 * io_stream.cc: Remove platform specific and provider specific code.
1011 (io_stream::registerProvider): New method, registers a Url provider with
1013 Make all methods consistently throw invalid_argument exceptions when
1014 a provider that is requested is not present.
1015 (findProvider): New private function, finds a provider.
1016 * io_stream.h: Declare io_stream::registerProvider.
1017 * io_stream_cygfile.cc: Create a Provider class to register with
1019 * io_stream_file.cc: Ditto.
1020 * archive.cc: Remove unneeded includes.
1021 * archive_tar.cc: Remove unneeded includes.
1022 * archive_tar.h: Add required include.
1023 * archive_tar_file.cc: Remove unneded includes.
1024 * choose.cc: Remove unneeded includes:
1026 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
1028 * io_stream.cc: Use the new log interface thruout.
1030 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
1032 * log.cc (log): Reimplement via LogSingleton.
1034 (exit_setup): Remove.
1035 * log.h (log_save): Remove.
1036 (exit_setup): Remove.
1037 * LogSingleton.cc: New file.
1038 * LogSingleton.h: New file.
1039 * LogFile.cc: New file.
1040 * LogFile.h: New file.
1041 * Makefile.am (inilint_SOURCES): Add the new log interface.
1042 (setup_SOURCES): Add the new log interface and the concrete File
1044 * Makefile.in: Regenerate.
1045 * archive.cc: Use the new log interface thruout.
1046 * archive_tar.cc: Ditto.
1048 * dialog.cc (fatal): Use the new log interface.
1049 * ini.cc (do_ini_thread): Use the log interface to exit.
1050 * isntall.cc (do_install_thread): Ditto.
1051 * netio.cc (auth_cmd): Ditto.
1052 * msg.cc (fatal): Ditto.
1053 * localdir.cc (save_local_dir): Save to different files depending on
1054 the mode, and if a root dir exists.
1056 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
1058 * IniDBBuilder.cc: New file.
1059 * IniDBBuilder.h: New file.
1060 * IniDBBuilderPackage.cc: New file.
1061 * IniDBBuilderPackage.h: New file.
1062 * PackageTrust.h: New file.
1063 * IniState.h: Remove, wasn't thought out well enough.
1064 * Makefile.am (inilint_SOURCES): Add more requirements.
1065 (setup_SOURCES): Add new Builder base and concrete classes.
1066 * Makefile.in: Regenerate.
1067 * String++.cc (String::String): Implement int contructor.
1068 * String++.h (String): Declare int constructor.
1069 * archive_tar.cc (archive_tar::next_file_name): Return String() when
1071 * archive_tar.h (archive_tar_file): Remove get_next_filename method,
1073 * ini.cc: Replace IniState wuth IniDBBuilderPacakge.
1074 (find_routine): Use new IniDBBuilder to configure the parser.
1075 (do_local_ini): Ditto.
1076 (do_remote_ini): Ditto.
1077 * ini.h: Use IniDBBuilder to initialise parsing.
1078 * inilex.l (MD5): Parse the MD5 string correctly, we had the nibbles
1080 (ini_init): Use an IniDBBuilder rather than static variables.
1081 * iniparse.y: Hand off all the object creation to a builder, rather
1082 than hardcoding the behaviour. This allows run-time configured
1084 * io_stream_cygfile.h (io_stream_cygfile): Remove get_next_filename
1085 method, it's not needed.
1086 * io_stream_file.h (io_stream_file): Ditto.
1087 * mount.cc (cygpath): Return String() for missing mounts.
1088 * package_meta.cc (packagemeta::SDesc): Return String() for blank
1090 * package_meta.h (trusts): Remove - replaced by PackageTrust.h.
1091 (packagemeta::packagemeta): Fix incorrect syntax in String constructor
1093 * cygpackage.cc (cygpackage::cygpackage): Fix incorrect syntax in
1094 String constructor usage.
1095 * site.h (site_list_type): Ditto.
1097 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
1099 * String++.h: Declare a << operator that accepts String objects.
1100 * String++.cc: We need iostream for..
1101 (operator <<): this. Provide a << operator that accepts String objects.
1102 * ini.cc (yyerror): Remove the "C" classifier - it's not needed.
1103 Change from vargs to a String parameter.
1104 * inilintmail.cc: Remove the gui related headers.
1105 (yyerror): Implement this for parsing.
1106 * iniparse.y: Use the new yyerror syntax.
1108 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
1110 * Makefile.am: Add IniState.h.
1111 * Makefile.in: Regenerate.
1112 * IniState.h: New file.
1113 * choose.cc: Don't include ini.h - it's not needed.
1114 * configure: Regenerate.
1115 * desktop.cc: Don't include ini.h - it's not needed.
1116 * download.cc: Ditto.
1117 * fromcwd.cc: Ditto.
1118 * ini.cc: Use IniState.h to track each parsing calling.
1119 (find_routine): Ditto.
1120 (do_remote_ini): Ditto.
1121 (do_ini_thread): Ditto.
1122 * ini.h (ini_init): Adjust parameters to include state object.
1123 * inilex.l: Declare parser state variable.
1124 (ini_init): Adjust parameters to include state object.
1125 * iniparse.y: Remove obsolete setup_timestamp and setup_version
1127 (setup_header): Use new state variable to track time and version.
1128 (add_correct_version): Ditto.
1129 * install.cc: Don't include ini.h - it's not needed.
1131 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
1133 * nio-files.cc (NetIO): Use io_stream syntax for get_file_size.
1134 * io_stream_file.cc: Don't include filemanip.h.
1135 (io_stream_file::get_size): Implement here to remove filemanip
1137 * io_stream_cygfile.cc: Don't include filemanip.h.
1138 (io_stream_cygfile::get_size): Implement here to remove filemanip
1140 Implement a stat based version for when win32 is not available.
1141 * filemanip.h (get_file_size): Return size_t - it's more appropriate.
1142 * filemanip.cc: Don't include win32.h - be platform independent.
1143 Include strings.h and io_stream.h as part of that.
1144 (get_file_size): Leverage io_streams and remove win32 implementation.
1145 * download.cc (check_for_cached): Use io_stream syntax for
1147 (download_one): Ditto.
1149 2002-05-02 Robert Collins <rbtcollins@hotmail.com>
1151 * configure.in: Correct a typo in last change.
1152 * configure: Regenerate.
1153 * Makefile.in: Regenerate.
1155 2002-05-02 Robert Collins <rbtcollins@hotmail.com>
1157 * configure.in: Check for string.h and string.
1158 * configure: Regenerate.
1159 * Makefile.in: Regenerate.
1161 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
1163 * res.rc (IDD_SPLASH): Remove white box.
1165 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
1167 Oops! forgot to list these in the last checkin.
1168 * inilintmain.cc: New file.
1169 * md5.h: New file - imported md5 source, BSD style licence.
1170 * md5.cc: New file - imported md5 source, BSD style licence.
1171 * Exception.cc: New file.
1172 * Exception.h: New file.
1173 * MD5++.cc: New file.
1174 * MD5++.h: New file.
1176 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
1178 * Makefile.am (AM_CFLAGS): Remove -mwindows, it's a linker flag.
1179 Remove -fno-rtti, we need it for exceptions.
1180 (AM_CXXFLAGS): Ditto.
1181 (WARNONLY_CFLAGS): Ditto.
1182 (EXTRA_PROGRAMS): Add with initial linter sources - not functional yet.
1183 (setup_LDFLAGS): Add and set to -mwindows.
1184 (setup_SOURCES): Add new sources.
1185 * Makefile.in: Regenerate.
1186 * README: Update TODO.
1187 * choose.cc (scan_downloaded_files): Use ini information if it's
1189 * configure: Regenerate.
1190 * download.cc (check_for_cached): Make reusable from elsewhere.
1191 Throw exceptions on errors (as opposed to failures).
1192 Check MD5 sum when it's known.
1193 (download_one): Never force a download.
1194 Handle corrupt package exceptions.
1195 * ini.cc (find_routine): Reverse escape the URL to correctly identify
1197 * inilex.l (MD5): Provide a parsing rule (note: lowercase is required).
1198 * iniparse.y: Allow calculation of MD5 sums, and allow src only
1200 (process_src): New helper function.
1201 * isntall.cc (install_one_source): Check MD5 sums when possible.
1202 Throw exceptions on errors.
1203 (do_install_thread): Handle exceptions for installation calls.
1204 * package_source.h: Store MD5 information.
1205 * propsheet.cc (PropSheet::Create): Add a useful comment.
1206 * res.rc (IDS_INSTALL_ERROR): Define.
1207 (IDS_CORRUPT_PACKAGE): Define.
1208 * resource.h (IDS_INSTALL_ERROR): Define.
1209 (IDS_CORRUPT_PACKAGE): Define.
1210 * rfc1738.cc (rfc1738_unescape_part): Implement.
1211 * rfc1738.h (rfc1738_unescape_part): Declare.
1213 2002-04-29 Robert Collins <rbtcollins@hotmail.com>
1215 * Makefile.am: Remove dependecy rules that automake emits.
1216 Correct badly copied dependency info for manually compiled files.
1217 (setup_SOURCES): Add all used headers.
1218 (EXTRA_DIST): Include non compilate but required sources.
1219 (setup_LDADD): Remove mingw32, it is autodetected.
1220 * Makefile.in: Regenerate.
1221 * String++.h: sys/types is a system header.
1222 * choose.cc (do_choose_thread): Make into a Win32 thread routine.
1224 (ChooserPage::OnMessageApp): Use Win32 threads. (_beginthread is not
1226 * configure: Regenerate.
1227 * configure.in: Check for mingw32/cygwin specific headers and libraries.
1228 * cygpackage.h: Include the win32.h header to get correct macro
1229 definitions in all situations.
1230 * download.cc (do_download_reflector): Make into a Win32 thread routine.
1232 (do_download): Use Win32 threads.
1234 * install.cc: Ditto.
1235 * (WinMain): Adjust to build valid command line using application
1236 under both mingw32 and cygwin.
1237 * mount.cc (set)cygdrive_flags): Create new system flags if the
1238 user requests system and the value does not exist.
1239 * nio-http.cc: Define a _strnicmp for cygwin.
1240 * package_db.cc: Include <errno.h> if it exists.
1241 * site.cc (do_download_site_info_thread): Make into a Win32 thread
1244 (do_download_site-Info): Use Win32 threads.
1245 * state.cc: Explicity declare variables to avoid header conflicts
1246 caused by '#define extern" on cygwin.
1247 * win32.h: Include <alloca.h> if it exists.
1248 (_MAX_PATH): Define as MAX_PATH when not defined by windows.h.
1249 (_access): Define as access if not defined by windows.h.
1251 2002-04-27 Robert Collins <rbtcollins@hotmail.com>
1253 * compress_gz.cc (compress_gz::error): EOF is not an error condition.
1255 2002-04-27 Robert Collins <rbtcollins@hotmail.com>
1257 * Makefile.am: Add libgetopt++ to the subdirs list.
1258 Search the libgetopt++ header directory.
1259 Link against libgetopt++.la.
1260 (setup_SOURCES): Remove GetOption.cc and getopt.c and Option.cc.
1261 (setup_LDADD): Explicitly include res.o.
1262 * Makefile.in: Regenerate.
1263 * aclocal.m4: Regenerate.
1264 * bootstrap.sh: Call libtoolize.
1265 * configure: Regenerate.
1266 * configure.in: Add libtool support and configure libgetopt++.
1267 * desktop.cc (NoShortcutsOption): Turn into a BoolOption.
1268 (DesktopSetupPage::OnInit): Use the simpler syntax.
1269 * desktop.h: Remove dependency on Option.h, and remove NoShortcustOption
1271 * main.cc: Include getopt++/GetOption.h.
1272 (main): Use simpler syntax.
1276 * GetOption.h: Remove.
1277 * GetOption.cc: Remove.
1279 * Option.cc: Remove.
1281 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
1283 * Makefile.am: Add zlib and bz2lib to SUBDIRS.
1285 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
1287 * aclocal.m4: New file, cached macros.
1288 * bootstrap.sh: New file, calls required autotools in appropriate
1290 * Makefile.am: New file, input Makefile for automake.
1291 * Makefile,in: Now a generated file - regenerate.
1292 * configure: Regenerate.
1293 * configure.in: Add automake support.
1294 * inilex.l: Change VERSION to PACKAGEVERSION to avoid a collision with
1295 automake's VERSION define.
1296 * iniparse.y: Ditto.
1298 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
1300 * cdefs.h: New file, imported to allow getopt.c to build without
1302 * getopt.h: New file, imported to allow building without cygwin headers.
1304 * bz2lib: New directory, contains copy of bz2lib.
1305 * cfgaux: New directory, contains autotool helper scripts.
1306 * Makefile,in: Adjust library and target definitions for building
1307 outside the sourceware tree.
1308 * compress_bz.h: Use new bz2lib header location.
1309 * mount.cc: Import key defines and enums to be independent of cygwin
1311 * configure.in: Update to autoconf 2.53, and to be sourceware
1313 * configure: Regenerate.
1315 2002-04-12 Robert Collins <rbtcollins@hotmail.com>
1317 * mklink2.cc (make_link_2): Tweak to work with current w32api
1320 2002-04-10 Pavel Tsekov <ptsekov@gmx.net>
1322 * version.cc (canonicalize_version): Fix a call delete[]
1323 to delete the allocated address.
1325 2002-03-29 Robert Collins <rbtcollins@hotmail.com>
1327 * PickView.cc (PickView::set_headers): Set last_col correctly. Thanks
1328 to Ton van Overbeek for locating the bug area.
1330 2003-03-27 Robert Collins <rbtcollins@hotmail.com>
1332 * PickView.cc (PickView::insert_pkg): Be more generic with
1334 (PickView::insert_category): Ditto.
1335 (PickView::~PickView): Create.
1336 * PickView.h (PickView::~PickView): Declare.
1338 2003-03-27 Robert Collins <rbtcollins@hotmail.com>
1340 * Makefile.in (OBJS): Add new commandline objects.
1341 * desktop.cc (NoShortCutsOption): New option code.
1342 (DesktopSetupPage::OnInit): Check whether to skip shortcuts.
1343 * desktop.h (NoShortCutsOption): New concrete command line option class.
1344 * main.cc (WinMain): Process command line options.
1345 * GetOption.h: New file, singleton command line class.
1346 * GetOption.cc: New file, implementation of the above.
1347 * Option.h : New file, abstract option for GetOption.
1348 * Option.cc: New file, implement constructor and destructor.
1350 2002-03-26 Pavel Tsekov <ptsekov@gmx.net>
1352 * mkdir.cc (mkdir_p): Stop processing if the path is exhausted.
1354 2002-03-26 Ton van Overbeek <tvoverbe@cistron.nl>
1356 * PickPackageLine.cc (PickPackageline::paint): Adjust clipping rectangle
1357 to textheight, so large fonts work.
1359 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
1361 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Don't translate
1364 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
1366 * io_stream_cygfile.cc (cwd): New static for cwd storage.
1367 (io_stream_cygfile::normalise): New method.
1368 (io_stream_cygfile::io_stream_cygfile): Use it.
1369 (io_stream_cygfile::exists): Ditto.
1370 (io_stream_cygfile::remove): Ditto.
1371 (io_stream_cygfile::mklink): And again.
1372 (cygmkdir_p): Yes, again.
1373 (io_stream_cygfile::move): And once more.
1374 * io_stream_cygfile.h (io_stream_cygfile::normalise): Declare.
1375 (io_stream_cygfile::cwd): Ditto.
1377 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
1379 * package_meta.cc (package_meta::~package_meta): Remove duplicate.
1380 (CategoryPackage::~CategoryPackage): Ditto. (Thanks to Ton van
1381 Overbeek for the report).
1382 * mklink2.cc: Moved from mklink2.c to avoid 'not a prototype error'.
1383 Make g++ compatible.
1384 * mklink2.c: Remove.
1385 * site.cc (site_list_type::init): Delete the correct memory addres.
1386 Thanks to Pavel Tsekov for tracking this down.
1388 2002-03-20 Robert Collins <rbtcollins@hotmail.com>
1390 * win32.h: Only define alloca if it's not already.
1392 2002-03-20 Robert Collins <rbtcollins@hotmail.com>
1394 * package_meta.h (packamgemeta::trustp): Make 'test' choice leave installed
1396 * README: Update with latest requests.
1397 * Various: MTC fixes from setup200202 branch.
1399 2002-03-19 Christopher Faylor <cgf@redhat.com>
1401 * Makefile.in (setup_version.c): Add back magic which allows detection
1402 of setup.exe version number.
1404 2002-03-17 Robert Collins <rbtcollins@hotmail.com>
1406 * * PickPackageLine.cc (PickPackageLine::paint): Fix incorrect clip region
1407 calculation on win9x systems.
1409 2002-03-16 Robert Collins <rbtcollins@hotmail.com>
1411 * install.cc (install_one_source): Write the correct length of a string to the
1412 lst file (Thanks to Pavel Tsekov for reporting the bug).
1414 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
1416 * choose.cc (list_click): Always refresh the entire chooser, as our
1417 package state change mechanism is broken with the new improved list classes.
1419 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
1421 * desktop.cc (make_passwd_group): Check for .lnk suffix on /etc/passwd and
1424 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
1426 * PickPackageLine.cc (PickPackageLine::DrawCheck): New method factored out from
1428 (PickPackageLine::paint): Use DrawCheck to draw the src tick box, and the new
1430 (PickPackageLine::click): Handle the new bin tickbox.
1431 * PickPackageLine.h (PickPackageLine::DrawCheck): Declare this.
1432 * PickView.cc (pkg_headers): Add a Bin? column.
1433 (cat_headers): Ditto.
1434 (PickView::set_headers): Ditto.
1435 (PickView::init_headers): Ditto.
1436 * PickView.h (PickView): Ditto.
1437 * choose.cc (list_click): Use the new name for src_col to set the clip rectangle.
1439 2002-02-24 Michael A Chase <mchase@ix.netcom.com>
1441 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Fix up Robert's
1444 2002-02-24 Michael A Chase <mchase@ix.netcom.com>
1446 * desktop.cc (make_link): Add "file://" prefix to io_stream::mkpath_p()
1448 (make_passwd_group): Ditto.
1449 * localdir.cc (save_local_dir): Ditto.
1450 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Wrap long lines.
1451 Add "cygfile://" prefix to io_stream::open() calls.
1453 2002-02-24 Robert Collins <rbtcollins@hotmail.com>
1455 * log.cc (log_save): Fix creating /var/log.
1456 * packate_meta.cc (standard_dirs): Remove duplicate '/''s.
1458 2002-02-24 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1460 * res.rc (STRINGTABLE): Add IDS_CYGWIN_SETUP and
1461 IDS_CYGWIN_SETUP_WITH_PROGRESS strings.
1462 * resource.h: Add IDS_CYGWIN_SETUP and
1463 IDS_CYGWIN_SETUP_WITH_PROGRESS IDs.
1465 * splash.cc (OnInit): Qualify SetWindowText() call with global scope
1466 operator (::SetWindowText()).
1468 * threebar.cc: Run indent.
1469 (cistring.h): Add include.
1470 (SetText1, SetText2, SetText3): Qualify SetWindowText() call with
1471 global scope operator.
1472 (SetBar2): Add logic for writing percent complete into window title.
1474 * window.h: Run indent.
1475 (SetWindowText): New function.
1476 (String): Add forward declaration.
1477 * window.cc: Run indent.
1478 (String++.h): Add include.
1479 (SetWindowText): New function.
1481 2002-02-24 Robert Collins <rbtcollins@hotmail.com>
1483 * README: Update TODO list.
1484 * install.cc (install_one): Fix src package location.
1485 (do_install_thread): Fix creating directories.
1487 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1489 * choose.cc: Include cygpackage.h for scan2 use.
1490 (set_existence): Ignore setup.ini mirrors when installing from cwd.
1491 (scan2): Process any valid file.
1492 Add cache entries when a file matching a setup.ini listed version is found.
1493 * filemanip.cc (parse_filename): Remove pkgtar - not used anywhere else.
1494 * filemanip.h (filemanip::pkgtar): Remove.
1495 * package_meta.cc (CategoryPackage::~CategoryPackage): New method.
1496 (packagemeta::~packagemeta): Move from package_meta.h
1497 Remove and delete all version and category information.
1498 * package_meta.h (CategoryPackage): Create a destructor.
1499 (packagemeta::~packagemeta): Move to .cc file.
1501 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1503 * install.cc (install_one_source): Make NULL cached package names cause
1506 2002-02-18 Michael A Chase <mchase@ix.netcom.com>
1508 * desktop.cc (make_passwd_group): Don't create passwd-grp.bat
1511 2002-02-18 Michael A Chase <mchase@ix.netcom.com>
1513 * log.cc (log_save): Put "\n" at end of log lines instead of "'".
1515 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1517 * mount.cc (create_mount): Avoid a const char*->char* warning.
1518 (read_mounts): Ditto.
1520 2002-02-05 Jason Tishler <jason@tishler.net>
1522 * download.cc (do_download_thread): Fix off-by-one error.
1524 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1526 * configure.in (CXXFLAGS): Substitute at configure time, not runtime.
1527 * configure (CXXFLAGS): Regenerate.
1528 * Makefile.in (iniparse.o): Build via default rules - no errors now.
1529 * README: TODO list updates.
1531 2002-02-19 Michael A Chase <mchase@ix.netcom.com>
1533 * String++.cc (String::concat):: Remove.
1534 (String::vconcat):: Ditto.
1535 * String++.h (String::concat):: Remove.
1536 (String::vconcat):: Ditto.
1537 * archive_tar.cc: Don't include concat.h.
1538 * archive_tar_file.cc: Don't include concat.h.
1539 * compress_bz.cc (compress_bz::peek): Don't log unneeded messages.
1540 (compress_bz::seek): Ditto.
1541 (compress_bz::~compress_bz): Ditto.
1542 * compress_gz.cc (compress_gz::peek): Ditto.
1543 (compress_gz::error): Ditto.
1544 (compress_gz::~compress_gz): Ditto.
1545 * concat.cc (vconcat): Remove.
1547 * concat.h (vconcat): Remove.
1549 * desktop.cc (desktop_icon): Use new cygpath.
1550 (make_etc_profile): Ditto.
1552 (make_passwd_group): Ditto.
1554 (check_desktop): Remove concat use.
1555 (check_start_menu): Ditto.
1556 * download.cc (download_one): Use new mkpath_p correctly.
1558 * fromcwd.cc: Don't include concat.h.
1559 * geturl.cc (get_url_to_membuf): Use String log() call.
1560 (get_url_to_file): Ditto.
1561 * install.cc: Don't include concat.h.
1562 (uninstall_one): Use LOG_PLAIN.
1563 (replace_one): Ditto.
1564 (install_one_source): Ditto.
1565 (install_one): More char to String conversion.
1566 (do_install_thread): Use new cygpath.
1567 Use new create_mount.
1568 * io_stream.cc (io_stream::move): Use new log().
1569 * io_stream_cygfile (io_stream_cygfile::io_stream_cygfile): Use new cygpath.
1570 (io_stream_cygfile::exists): Ditto.
1571 (io_stream_cygfile::remove): Ditto.
1572 (io_stream_cygfile::mklink): Ditto.
1573 (io_stream_cygfile::write): Ditto.
1574 (cygmkdir_p): Ditto.
1575 (io_stream_cygfile::move): Ditto.
1576 * io_stream_file.cc: Don't include log.h.
1577 (io_stream_file::write): Don't log unneeded messages.
1578 * localdir.cc: Don't include concat.h.
1579 (LocalDirPage::OnNext): Use LOG_PLAIN.
1580 * log.cc: Don't include log.h.
1581 (exit_setup): Use new cygpath.
1582 * log.h (log_level): Add new level LOG_PLAIN.
1583 * main.cc (WinMain): Use new log().
1584 * mount.cc (SLASH_P): New macro from concat.h.
1585 (cygpath): Make String version globally visible.
1586 Remove varargs version.
1588 * msg.cc (mbox): Use LOG_PLAIN.
1589 * net.cc (NetPage::OnNext): Ditto.
1590 * nio-ftp.cc (ftp_line): Use new log().
1591 * nio-http.cc: Don't include log.h.
1592 (retry_get): Use alternative url variable.
1593 * package_db.cc: Don't include concat.h.
1594 (packagedb::flush): Don't use concat.
1595 * package_meta.cc: Don't include concat.h.
1596 (packagemeta::uninstall): Use new cygpath.
1597 * postinstall.cc (do_postinstall): Ditto.
1598 * root.cc (RootPage::OnNext): Use LOG_PLAIN.
1599 * script.cc: Don't include concat.h.
1600 (init_run_script): Use new cygpath.
1601 (run_script): More char * to String conversion.
1602 (try_run_script): Ditto.
1603 * site.cc: Don't include concat.h.
1604 (SitePage::OnNext): Use LOG_PLAIN.
1605 (SitePage::OnMessageCmd): Use new log().
1606 * source.cc (SourcePage::OnDeactivate): Use LOG_PLAIN.
1608 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1610 * Makefile.in (OBJS): Add new object.
1611 * PickCategoryLine.cc (PickCategoryLine::paint): Print a "+" before the name.
1612 * PickCategoryLine.h (PickCategoryLine::bucket): Use the String class.
1613 * PickLine.h (Pickline::key): Change to a String to help plug leaks.
1614 (PickLine::Pickline): Accept a String for the key.
1615 * PickPackageLine.cc (PickPackageLine::paint): Convert all char use to Strings.
1616 * PickPackageLine.h (PickPackageLine::PickPackageLine): The key is automatically
1618 * PickView.cc (PickView::note_width): Convert all char * use to Strings.
1619 (PickView::init_header): Move category length checking out of the inner loop for
1621 Convert all char use to Strings.
1622 * PickView.h: Include the String++ header.
1623 (PickView::note_width): Update the prototype.
1624 * String++.cc: New file, implements a reference counting string class.
1625 * String++.h: New file, declares a reference counting string class.
1626 * archive.cc: Include String++ instead of concat.
1627 (archive::extract_file): Convert char * usage to Strings.
1628 * archive.h: Inlude the String++ header.
1629 (archive::extract_file): Update prototype.
1630 (archive::next_file_name): Convert to a String.
1631 (archive::linktarget): Ditto.
1632 * archive_tar.cc (archive_tar::next_file_name): Convert to String usage.
1633 (archive_tar::linktarget): Ditto.
1634 * arhive_tar.h: Update the copyright.
1635 Explicitly include the relevant headers.
1636 (tar_map_result_type): Convert to String usage.
1637 (archive_tar::next_file_name): Update prototype.
1638 (archive_tar::linktarget): Ditto.
1639 * category.cc (Category::Category): Update initialisers.
1640 Convert to String usage.
1641 (Categorycmp): Update to String usage.
1642 * category.h: Include the String++ header.
1643 (Category::Category): Update to String usage.
1644 (Category::name): Ditto.
1645 (Category::key): Ditto.
1646 * choose.cc: Remove concat.h, it's not needed.
1647 (scan2): Update to String usage.
1649 * cygpackage.cc: Update includes for use of String class.
1650 (cygpackage::cygpackage): Update for String usage.
1651 (cygpackage::set_canonical_version): Ditto.
1652 (cygpackage::destroy): Ditto.
1653 (cygpackage::getfirstfile): Ditto.
1654 (cygpackage::getnextfile): Ditto.
1655 (cygpackage::Name): Ditto.
1656 (cygpackage::Vendor_version): Ditto.
1657 (cygpackage::Package_version): Ditto.
1658 (cygpackage::Canonical_version): Ditto.
1659 (cygpackage::set_sdesc): Ditto.
1660 (cygpackage::set_ldesc): Ditto.
1661 * cygpackage.h: Include String++.h for parsing this file.
1662 (cygpackage::cygpackage): Update for String usage.
1663 (cygpackage::set_canonical_version): Ditto.
1664 (cygpackage::destroy): Ditto.
1665 (cygpackage::getfirstfile): Ditto.
1666 (cygpackage::getnextfile): Ditto.
1667 (cygpackage::Name): Ditto.
1668 (cygpackage::Vendor_version): Ditto.
1669 (cygpackage::Package_version): Ditto.
1670 (cygpackage::Canonical_version): Ditto.
1671 (cygpackage::set_sdesc): Ditto.
1672 (cygpackage::set_ldesc): Ditto.
1673 (cygpackage::name): Ditto.
1674 (cygpackage::vendor): Ditto.
1675 (cygpackage::packagev): Ditto.
1676 (cygpackage::canonical): Ditto.
1677 (cygpackage::fn): Ditto.
1678 (cygpackage::sdesc): Ditto.
1679 (cygpackage::ldesc): Ditto.
1680 * desktop.cc: Update includes for use of String class.
1681 (batname): Update for String usage.
1684 (start)menu): Ditto.
1685 (desktop_icon): Ditto.
1686 (make_cygwin_bat): Ditto.
1687 (make_etc_profile): Ditto.
1689 (make_passwd_group): Ditto.
1691 (check_desktop): Ditto.
1692 (check_startmenu): Ditto.
1693 * dialog.cc (eget): Update for String usage.
1694 (egetString): New function.
1695 (eset): New variant for Strings.
1696 * dialog.h: Include String++.h for parsing this file.
1697 (egetString): New function.
1698 (eset): New variant for Strings.
1699 * diskfull.cc (diskfull): Update for String usage.
1700 * diskfull.h: Include String++.h for parsing this file.
1701 (diskfull): Update for String usage.
1702 * download.cc: Update includes for use of String class.
1703 (check_for_cached): Update for String usage.
1704 (download_one): Ditto.
1705 * filemanip.cc (get_file_size): Ditto.
1707 (parse_filename): Ditto.
1709 * filemanip.h: Include String++.h for parsing this file.
1710 (fileparse): Update for String usage.
1712 (parse_filename): Ditto.
1713 Don't consider '_' to be a separator.
1715 * find.cc: Update includes for use of String class.
1716 (find_sub): Make more flexible.
1717 (find): Update for String usage.
1718 * find.h (find): Use Strings.
1719 * fromcwd.cc (found_file): Update for String usage.
1721 (init_dialog): Ditto.
1722 (get_url_to_membuf): Ditto.
1723 (get_url_to_string): Ditto.
1724 (get_url_to_file): Ditto.
1726 (get_url_to_membuf): Ditto.
1727 (get_url_to_string): Ditto.
1728 (get_url_to_file): Ditto.
1730 (add_subdirs): Ditto.
1731 * ini.cc: Update includes for String usage.
1732 (find_routine): Update for String usage.
1733 (do_remote_ini): Ditto.
1734 (do_ini_thread): Ditto.
1735 * ini.h (ini_init): Ditto.
1736 * inilex.l: Update includes for String usage.
1737 (ini_init): Update for String usage.
1738 * iniparse.y: Ditto.
1739 (add_correct_version): Ditto.
1740 * install.cc: Update includes for String usage.
1741 (install_one_source): Update for String usage.
1742 (uninstall_one): Ditto.
1743 (replace_one): Ditto.
1744 (install_one_source): Ditto.
1745 (do_install_thread): Ditto.
1746 * io_stream.cc: Update includes for String usage.
1747 (io_stream::open): Update for String usage.
1748 (io_stream::mkpath_p): Ditto.
1749 (io_stream::remove): Ditto.
1750 (io_stream::mklink): Ditto.
1751 (io_stream::move_copy): Ditto.
1752 (io_stream::move): Ditto.
1753 (io_stream::exists): Ditto.
1754 * io_stream.h: Update includes to allow correct parsing.
1755 (io_stream::open): Update for String usage.
1756 (io_stream::mkpath_p): Ditto.
1757 (io_stream::remove): Ditto.
1758 (io_stream::mklink): Ditto.
1759 (io_stream::move_copy): Ditto.
1760 (io_stream::move): Ditto.
1761 (io_stream::exists): Ditto.
1762 * io_stream_cygfile.cc: Update includes for String usage.
1763 (get_root_dir_now): Update for String usage.
1764 (io_stream_cygfile::io_stream_cygfile): Ditto.
1765 (io_stream_cygfile::~io_stream_cygfile): Ditto.
1766 (io_stream_cygfile::exists): Ditto.
1767 (io_stream_cygfile::remove): Ditto.
1768 (io_stream_cygfile::mklink): Ditto.
1769 (cygmkdir_p): Ditto.
1770 (io_stream_cygfile::set_mtime): Ditto.
1771 (io_stream_cygfile::move): Ditto.
1772 (io_stream_cygfile::get_size): Ditto.
1773 * io_stream_cygfile.h: Update includes for String usage.
1774 (io_stream_cygfile::io_stream_cygfile): Update for String usage.
1775 (io_stream_cygfile::~io_stream_cygfile): Ditto.
1776 (io_stream_cygfile::exists): Ditto.
1777 (io_stream_cygfile::remove): Ditto.
1778 (io_stream_cygfile::mklink): Ditto.
1779 (cygmkdir_p): Ditto.
1780 (io_stream_cygfile::set_mtime): Ditto.
1781 (io_stream_cygfile::move): Ditto.
1782 (io_stream_cygfile::get_size): Ditto.
1783 (io_stream_cygfile::fname): Ditto.
1784 (io_stream_cygfile::lmode): Ditto.
1785 * io_stream_file.cc: Update includes for String usage.
1786 (io_stream_file::io_stream_file): Update for String usage.
1787 (io_stream_file::~io_stream_file): Ditto.
1788 (io_stream_file::exists): Ditto.
1789 (io_stream_file::remove): Ditto.
1790 (io_stream_file::mklink): Ditto.
1791 (io_stream_file::set_mtime): Ditto.
1792 (io_stream_file::move): Ditto.
1793 (io_stream_file::get_size): Ditto.
1794 * io_stream_file.h: Update includes for String usage.
1795 * io_stream_file.cc: Update includes for String usage.
1796 (io_stream_file::io_stream_file): Update for String usage.
1797 (io_stream_file::~io_stream_file): Ditto.
1798 (io_stream_file::exists): Ditto.
1799 (io_stream_file::remove): Ditto.
1800 (io_stream_file::mklink): Ditto.
1801 (io_stream_file::set_mtime): Ditto.
1802 (io_stream_file::move): Ditto.
1803 (io_stream_file::get_size): Ditto.
1804 (io_stream_file::fname): Ditto.
1805 (io_stream_file::lmode): Ditto.
1806 * localdir.cc: Update includes for String usage.
1807 (save_local_dir): Update for String usage.
1808 (check_if_enable_next): Ditto.
1809 (load_dialog): Ditto.
1811 (LocalDirPage::OnInit): Ditto.
1812 (LocalDirPage::OnNext): Ditto.
1813 * log.cc: Update includes for String usage.
1814 (struct LogEnt): Update for String usage.
1817 (exit_setup): Ditto.
1818 * log.h: Update includes for String usage.
1819 (log_level): Update for String usage.
1822 * main.cc (WinMain): Update for String usage.
1823 * mklink2.c (make_link_2): Update for String usage.
1824 * mklink2.h (make_link_2): Update for String usage.
1825 * mount.cc: Update includes for String usage.
1826 (mount_table): Update for String usage.
1828 (create_mount): Ditto.
1830 (remove_mount): Ditto.
1831 (read_mounts): Ditto.
1832 (set_root_dir): Ditto.
1833 (get_root_dir): Ditto.
1834 (path_prefix_p): Ditto.
1836 * mount.h: Update includes for String usage.
1837 (create_mount): Update for String usage.
1838 (remove_mount): Ditto.
1840 (set_root_dir): Ditto.
1841 (get_root_dir): Ditto.
1842 * msg.cc (mbox): Ditto.
1843 * net.cc (NetPage::OnNext): Ditto.
1844 * package_db.cc (packagedb::flush): Ditto.
1845 (packagedb::packages): Ditto.
1846 (packagedb::categories): Ditto.
1847 * package_db.h: Update includes for String usage.
1848 (packagedb::packages): Update for String usage.
1849 (packagedb::categories): Ditto.
1850 * package_meta.cc: Update includes for String usage.
1851 (hash::add_subdirs): Update for String usage.
1852 (packagemeta::uninstall): Ditto.
1853 (packagemeta::SDesc): Ditto.
1854 (packagemeta::action_caption): Ditto.
1855 * package_meta.h: Update includes for String usage.
1856 (packagemeta::packagemeta): Update for String usage.
1857 (packagemeta::~packagemeta): Ditto.
1858 (packagemeta::uninstall): Ditto.
1859 (packagemeta::SDesc): Ditto.
1860 (packagemeta::action_caption): Ditto.
1861 (package_source.cc site::site): Ditto.
1862 (packagesource::set_canonical): Ditto.
1863 (packagesource::set_cached): Ditto.
1864 * package_source.h: Update includes for String usage.
1865 (site::site): Update for String usage.
1866 (packagesource::set_canonical): Ditto.
1867 (packagesource::set_cached): Ditto.
1868 (packagesource::packagesource): Ditto.
1869 (packagesource::sites): Ditto.
1870 (packagesource::cached): Ditto.
1871 * package_version.h: Update includes for String usage.
1872 (Dependency): Update for String usage.
1873 (packageversion): Ditto.
1874 * postinstall.cc: Update includes for String usage.
1875 (do_postinstall): Update for String usage.
1876 * res.rc (IDD_LOCAL_DIR): Fix typo again!
1877 * rfc1738.cc (rfc1738_escape_part): Update for String usage.
1878 * rfc1738.h: Update includes for String usage.
1879 (rfc1738_escape_part): Update for String usage.
1880 * root.cc: Update includes for String usage.
1881 (check_if_enable_next): Update for String usage.
1882 (save_dialog): Ditto.
1884 (directory_is_absolute): Ditto.
1885 (directory_is_rootdir): Ditto.
1886 (directory_has_spaces): Ditto.
1887 (RootPage::OnInit): Ditto.
1888 (RootPage::OnNext): Ditto.
1889 * script.cc: Update includes for String usage.
1890 (init_run_script): Update for String usage.
1892 (run_script): Ditto.
1893 (try_run_script): Ditto.
1894 * script.h: Update includes for String usage.
1895 (run_script): Update for String usage.
1896 (try_run_script): Ditto.
1897 * site.cc site_list): Ditto.
1898 (all_site_list): Ditto.
1899 (other_url): Eliminate.
1900 (site_list_type::init): Update for String usage.
1901 (site_list_type::site_list_type): Ditto.
1902 (get_site_list): Ditto.
1903 (get_saved_sites): Ditto.
1904 (do_download_site_info_thread): Ditto.
1905 (SitePage::OnNext): Ditto.
1906 (SitePage::OnActivate): Ditto.
1907 (SitePage::PopulateListBox): Ditto.
1908 (SitePage::OnMessageCmd): Handle empty url's.
1909 * site.h: Update includes for String usage.
1910 (site_list_type::site_list_type): Update for String usage.
1911 (site_list_type::init): Ditto.
1912 (site_list_type::~site_list_type): Ditto.
1913 (site_list_type::url): Ditto.
1914 (site_list_type::displayed_url): Ditto.
1915 (site_list_type::key): Ditto.
1916 * source.cc (SourcePage::OnDeactivate): Ditto.
1917 * state.h: Update includes for String usage.
1918 (local_dir): Update for String usage.
1919 (trust_level): Remove.
1920 * version.cc: Update includes for String usage.
1921 (canonicalize_version): Update for String usage.
1922 * version.h: Update includes for String usage.
1923 (canonicalize_version): Update for String usage.
1925 2002-02-15 Christopher Faylor <cgf@redhat.com>
1927 * filemanip.c (parse_filename): Revert previous change.
1929 2002-02-14 Christopher Faylor <cgf@redhat.com>
1931 * filemanip.c (parse_filename): Don't treat '_' as a version number
1934 2002-01-29 Christopher Faylor <cgf@redhat.com>
1936 * configure: Regenerate.
1938 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
1940 * res.rc (IDD_LOCAL_DIR): Fix typo reported by Rene
1941 <Hoeck@extern.lrz-muenchen.de>
1943 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
1945 * README: Update Todo's.
1946 * list.h: Run indent.
1947 (list): New methods checksize and insert to reduce code duplication.
1948 (list::registerbykey): Use them.
1949 (list::registerbyobject): Ditto.
1950 (list::removebyindex): Copy each object individually - safe for non
1952 (list::checksize): Implement.
1953 (list::insert): Implement.
1955 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
1957 * Makefile.in: Remove the dlmalloc object by default.
1958 * install.cc (do_install_thread): Remove the mallinfo call for 'working
1959 around' the crashing issue.
1960 * package_db.h: Include <string.h> - it's needed to parse this.
1961 * package_source.cc (site::site): Move here from the header file.
1962 * package_source.h (site): Stop the constructor being inlinable.
1964 2002-01-26 Robert Collins <rbtcollins@hotmail.com>
1966 * filemanip.cc (find_tar_ext): Add a descriptive comment.
1968 2002-01-25 Michael A Chase <mchase@ix.netcom.com>
1970 * filemanip.cc (find_tar_ext): Clean up tests for .tar.gz and .tar.
1971 * fromcwd.cc (do_fromcwd): Expand FIXME comment in source file check.
1972 * install.cc (install_one_source): Add space between words in log()
1975 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1977 * log.cc (exit_setup): When saving to the download dir, explicity
1980 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1982 * archive.cc (extract_file): Separate out the prefix and the URL
1984 * archive.h (archive::extract_file): Ditto.
1985 * install.cc (install_one_source): Ditto. Use the new
1986 archive::extract_file syntax.
1987 (replace_one): Use the new syntax.
1988 (io_stream.cc): Add some log info for links.
1990 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
1992 * PickCategoryLine.cc (PickCategoryLine::actiontext): Remove.
1993 (PickCategoryLine::paint): Use the new action method.
1994 (PickCategoryLine::click): Set the action for all children.
1995 (PickCategoryLine::set_action): New method.
1996 * PickCategoryLine.h (PickCategoryLine::-actions): Remove.
1997 (PickCategoryLine::current_default): Use packagemeta _actions class.
1998 * PickLine.h (PickLine::set_action): New abstract method that requires
1999 including package_meta.h.
2000 * PickPackageLine.cc (PickPackageLine::set_action): New method.
2001 * PickPackageLine.h (PickPackageLine::set_action): Declare this.
2002 * list.h (getbykey): A const correctness fix.
2003 * package_meta.cc: Run indent.
2004 (packagemeta::Default_action): New const.
2005 (packagemeta::Install_action): Ditto.
2006 (packagemeta::Reinstall_action): Ditto.
2007 (packagemeta::Uninstall_action): Ditto.
2008 (packagemeta::_actions::caption): New method.
2009 (packagemeta::_actions::operator++): Ditto.
2010 (packagemeta::set_action): New overload.
2011 * package_meta.h (packagemeta::_actions): New class.
2012 (packagemeta::set_action): Declare this.
2014 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
2016 * Makefile.in (OBJS): Remove supp.o - it appears accidental.
2017 * choose.cc: Don't define alloca anymore, it's done in win32.h
2019 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
2021 * PickPackageLine.cc: New file.
2022 * PickPackageLine.h: New file.
2023 * PickLine.cc: New file.
2024 * PickLine.h: New file.
2025 * PickCategoryLine.cc: New file.
2026 * PickCategoryLine.h: New file.
2027 * PickView.cc: New file.
2028 * PickView.h: New file.
2029 * Makefile.in: Add new objects to setup.exe.
2030 Backout -fno-exceptions option.
2031 * choose.cc: Include PickView.h.
2032 Remove view related defines and static variables.
2033 (_pkg_headers): Moved to PickView.cc.
2034 (_cat_headers): Ditto.
2035 (view::views::Unknown): Ditto.
2036 (view::views::PackageFull):
2037 (view::views::Package):
2038 (view::views::Category):
2039 (pkgtrustp): Moved to package_meta.cc.
2040 (add_required): Moved to package_meta.cc.
2041 (pick_category_line::empty): Moved to PickCategoryLine.cc
2042 (paint): Adjust for moved static variables.
2043 (view::scroll): Moved to PickView.cc.
2044 (list_vscroll): Adjust for moved static variables.
2045 (list_hscroll): Ditto.
2046 (list_click): Ditto.
2047 (note_width): Moved to PickView.cc.
2048 (view::view): Ditto.
2049 (view::set_view_mode): Ditto.
2050 (view::mode_caption): Ditto.
2051 (view::views::caption): Ditto.
2052 (view::set_headers): Ditto.
2053 (DoInsertItem): Ditto.
2054 (view::init_headers): Ditto.
2055 (view::insert_pkg): Ditto.
2056 (view::insert_category): Ditto.
2057 (view::clear_view): Ditto.
2058 (view::views::operator++): Ditto.
2059 (view::click): Ditto.
2060 (default_trust): Adjust for moved statics.
2061 (pick_pkg_line::paint): Moved to PickPackageLine.cc.
2062 (pick_pkg_line::click): Ditto.
2063 (pick_category_line::actiontext): Moved to PickCategoryLine.cc
2064 (pick_category_line::paint): Ditto.
2065 (pick_category_line::click): Ditto.
2066 (set_view_mode): Adjust for moved statics.
2067 (create_listview): Ditto.
2068 * choose.h: Remove Category and packagemeta forward defines - not needed.
2069 Don't include unneeded headers list and package_meta.
2070 (_header): Move to PickView.h.
2071 (pick_line): Move to PickLine.h.
2072 (pick_pkg_line): Move to PickPackageLine.h.
2073 (pick_category_line): Move to PickCategoryLine.h.
2074 (view): Move to PickView.h.
2075 * ini.h (trusts): Move to package_meta.h.
2076 * package_meta.h (trusts): New enum.
2077 (packagemeta::set_requirements): New helper method.
2078 (packagemeta::trustp): Ditto.
2080 2002-01-21 Christopher Faylor <cgf@redhat.com>
2082 * choose.h (view): Move forward declaration of views into public area
2083 or g++ v3 will complain.
2085 2002-01-21 Christopher Faylor <cgf@redhat.com>
2087 * Makefile.in (CXXFLAGS): Add -fno-exceptions.
2088 * win32.h (alloca): Define as __builtin_alloca.
2089 * io_stream_memory.cc: Add include file.
2091 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
2093 * archive_tar.cc (archive_tar::~archive_tar): Mark the stream as destroyed.
2094 * archive_tar_file.cc (archive_tar_file::~archive_tar_file): Ditto.
2095 * compress.cc (compress::~compress): Be less verbose.
2096 * compress_bz.cc (compress_bz::~compress_bz): Ditto.
2097 Mark the stream as destroyed.
2098 * compress_gz.cc (compress_gz::~compress_gz): Mark the stream as destroyed.
2099 * io_stream.cc (io_stream::~io_stream): Only warn when the stream is not marked
2101 * io_stream_cygfile.cc (io_stream_cygfile::~io_stream_cygfile): Mark the
2102 stream as destroyed.
2103 * io_stream_file.cc (io_stream_file::~io_stream_file): Ditto.
2104 * io_stream_memory.cc (io_stream_memory::~io_stream_memory): Ditto.
2106 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
2108 * Makefile.in (CFLAGS): Allow customisable malloc debug flags.
2109 (OBJS): Link in malloc objects.
2110 * category.cc (category): Use new char, not strdup.
2111 * choose.cc (pick_pkg_line::paint): Allow for the regionsize to shrink.
2112 (do_choose): Use new char, not malloc.
2113 * concat.cc (vconcat): Ditto.
2114 * cygpackage.cc (cygpackage): Use new char, not strdup.
2115 (set_canonical_version): Ditto.
2116 (cygpackage::destroy): Use delete[], not free.
2117 * desktop.cc (uexists): Ditto.
2118 * dialog.cc (egest): Use new char, not strdup.
2119 * dlmalloc.c: New file - Doug Lea's malloc 2.7.0
2120 * hash.cc (hash::hash): Use delete instead of free.
2121 (hash::add): Use new char, not strdup.
2122 * ini.cc (do_remote_ini): Use delete[] not free.
2123 * inilex.l: Use new char, not strdup.
2125 * iniparse.y: Ditto.
2126 Use a local package_db rather than a static one.
2127 * install.cc (struct mallinfo): Workaround an apparent dlmalloc bug.
2128 (do_install_thread): Call mallinfo to force a consistency check. Appears
2129 to fix a 'inuse' error in -DDEBUG builds.
2130 Use delete[] for strings.
2131 * io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile): Use new char,
2133 (io_stream_cygfile::~io_stream_cygfile): Use delete[], not free.
2134 (io_stream_cygfile::remove): Use new char, not strdup.
2135 * io_stream_file.cc (io_stream_file::io_stream_file): Use new char, not strdup.
2136 (io_stream_file::io_stream_file): Use delete[], not free.
2137 (io_stream_file::remove): Use new char, not strdup.
2138 * io_stream_memory.cc (memblock::~memblock): Use delete[], not free.
2139 * io_stream_memory.h (memblock): Use new char, not malloc.
2140 * localdir.cc (LocalDirPage::OnInit): Use new char, not strdup.
2141 * main.cc (WinMain): Use new char, not strdup.
2142 * mount.cc (find2): Use new char, not malloc.
2143 (read_mounts): Ditto.
2144 (cygpath): Use new char, not strdup.
2145 * netio.cc (NetIO::~NetIO): Use delete[], not free.
2146 (NetIO::set_url): Use new char, not strdup.
2147 (NetIO::get_ftp_auth): Use delete[], not free.
2148 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
2149 Use new char instead of strdup.
2150 * nio-http.cc (base64_encode): Use new char, not malloc.
2151 * package_meta.cc (hash::add_subdirs): Use new char instead of strdup.
2152 * package_source.h (~ packagesource): Use delete[] instead of delete.
2153 * port.h (strdup): Deprecate the use of strdup.
2154 * rfc1738.cc (rfc1738_do_escape): Use new char, not calloc.
2155 * script.cc (init_run_script): Us delete[], not free.
2156 (run_script): Ditto.
2157 * simpsock.cc (SimpleSocket::fill): Use new char, not malloc.
2158 (SimpleSocket::invalidate): Use delete[], not free.
2159 * site.cc (site_list_type::init): Use new char instead of strdup.
2160 * site.h (~site_list_type): Use delete[], not free.
2162 2002-01-20 Robert Collins <rbtcollins@hotmail.com>
2164 * Makefile.in (OBJS): Add win32.o - win32 support functions.
2165 * README: Update todos.
2166 * archive.cc (extract_file): Support a suffix for appending to extracted files.
2168 * choose.cc (set_view_mode): Use the new view::views class.
2169 (view::views::Unknown): New static for defaulting view::views variables.
2170 (view::views::PackageFull): New static for the current view.
2171 (view::views::Package): Ditto.
2172 (view::views::Category): Ditto.
2173 (topbucket::paint): Remove.
2174 (topbucket::empty): Rename to pick_category_line::empty.
2175 (topbucket::~topbucket): Remove.
2176 (paint): Use the new view::views class.
2177 Don't paint 'all' as a category when showing package categoies.
2178 (pick_category_line::actiontext): New method.
2179 (pick_category_line::paint): Make showing the category optional, and show the
2181 (pick_category_line::click): Make showing the category optional, and
2182 differentiate between the name being clicked, and the action description.
2183 (view::view): Use the new view::views class.
2184 (view::set_view_mode): Ditto.
2185 (view::mode_caption): Ditto.
2186 (view::views::caption): New method.
2187 (view::set_headers): Use the new view::views class.
2188 (view::clear_view): Ditto.
2189 (viewsplusplus): Replaced by
2190 (view::views::operator++): New operator.
2191 (set_view_mode): Use the new view::views class.
2192 (create_listview): Ditto.
2193 (dialog_cmd): Ditto.
2194 * choose.h (actions): Remove.
2196 (pick_line): Add a new convenience constructor.
2197 (top_bucket): Remove.
2198 (pick_category_line): Reparent under pick_line, and adsorb top_bucket.
2199 (view::views): New class.
2200 * ini.h: Don't include choose.h
2201 (is_download_action): Remove.
2202 (is_upgrade_action): Remove.
2203 (is_uninstall_action): Remove.
2204 (is_full_action): Remove.
2205 * install.cc (num_replacements): New static.
2206 (rebootneeded): Ditto.
2207 (replace_one): Handle upgrades separate from removal or new installs.
2208 (install_one_source): Handle in use files.
2209 (install_one): Don't repeat upgrades.
2210 (do_install_thread): Initialize new statics.
2211 Order actions as uninstall, replace, install.
2212 Warn about rebooting if needed.
2213 * res.rc (IDS_REBOOT_REQUIRED): New string.
2214 * resource.h (IDS_REBOOT_REQUIRED): Give value.
2215 * win32.h: Declare class Win32, and update copyright and intent message.
2216 * win32.cc: New file.
2218 2002-01-15 Corinna Vinschen <corinna@vinschen.de>
2220 * io_stream.cc (io_stream::gets): Eliminate trailing new line chars.
2221 * package_meta.cc (packagemeta::uninstall): Check for additional
2222 Windows shortcut. Unset R/O file attribute before trying to delete
2225 2002-01-09 Robert Collins <rbtcollins@hotmail.com>
2227 * choose.cc (pkgtrustp): Fall back to installed if a package is not present in
2228 the current trust level. For prev, fall back via curr.
2229 (set_existence): Allow sources with no sites, but cached files to be
2231 (pick_category_line::paint): Start drawing clickable categories.
2232 * fromcwd.cc (found_file): Reinstate local file scanning.
2234 2002-01-07 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2236 * fromcwd.cc: Run indent.
2237 (do_fromcwd): Reverse sense of comment. Set next_dialog
2238 to IDD_CHOOSER instead of IDD_CHOOSE.
2239 * ini.cc (find_routine): Remove "/" from "/setup.ini".
2241 2001-01-07 Robert Collins <rbtcollins@hotmail.com>
2243 * category.cc (Categorycmp): Add a const safe version.
2244 * category.h (Categorycmp): Add a const safe version.
2245 (Category): Add operator ==.
2246 * choose.cc (fill_missing_category): Add every package to "All".
2247 (pick_category_line::paint): Add support for hidden labels, and a tree depth.
2248 (pick_category_line::click): Ditto.
2249 (view::view): Pass in a top level category to use.
2250 (view::insert_pkg): Special case - skip category "All".
2251 (view::insert_category): Ditto.
2252 (view::clear_view): Set the contents label state.
2253 (create_listview): Pass in a top level category to view().
2254 * choose.h (topbucket): Make bucket available to derived classes.
2255 (pick_category_line): Add support for hidden labels, and a tree depth.
2256 Remove our second copy of bucket.
2257 (view): Pass in a top level category to the constructor.
2258 Use pick_category_line to allow three level display.
2260 2001-01-06 Robert Collins <rbtcollins@hotmail.com>
2262 * cygpackage.h (cygpackage): Make set_[s|l]desc virtual.
2263 * iniparse.y (add_correct_version): Copy descriptions across.
2264 * package_meta.cc (SDesc): Iterate through versions, return the first with a
2266 * package_version.h (packageversion): Add new virtuals set_[l|s]desc.
2268 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
2270 * script.cc (run_script): Change cygpath:// to cygfile://.
2271 * install.cc (do_install_thread): Fix off-by-one errors.
2273 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
2275 * package_db.cc (packagedb::flush): Fix an off-by-one error.
2277 2002-01-04 Jan Nieuwenhuizen <janneke@gnu.org>
2279 * Makefile.in (realclean): more clean.
2280 (OBJS): Add script.o.
2281 * postinstall.cc (run_script_in_etc_postinstall): New function.
2282 (do_postinstall): Split off new funtion init_run_script ().
2285 (run_script): Move to script.cc. Replace some deprecated remove
2288 * script.cc: New file.
2289 * Forward port cygwin-20010707.jcn3.patch.
2290 * package_meta.cc (uninstall): Run pre- and postremove scripts.
2291 * install.cc: Typo fix.
2292 (do_install): Run script initialisation.
2294 2001-01-04 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2296 * cistring.cc: Run d2u.
2297 * cistring.h: Run d2u.
2299 * desktop.cc (etc_profile): Remove "test -f ./.bashrc && . ./.bashrc"
2300 from the generated /etc/profile. Bash will source this file
2301 automatically, and having this here merely results in .bashrc being
2302 executed twice. Run d2u.
2303 * desktop.h: Run d2u.
2305 * propsheet.cc: Run d2u.
2306 (PropSheetProc): New function. Add minimize box here instead of in
2307 PropertyPage::DialogProc.
2308 (PropSheet::Create): Change to use creation callback PropSheetProc.
2309 (DLGTEMPLATEEX): Add 'hidden' Windows struct definition.
2311 * propsheet.h: Run indent, d2u.
2312 * proppage.h: Run indent, d2u.
2314 * proppage.cc: Run d2u.
2315 (PropertyPage::DialogProc): Remove minimize-box-adding
2316 functionality. Remove commented-out "PropSheet_SetWizButtons" calls.
2317 Add support for calling virtual OnMessageCmd. Add setting of fonts in
2318 WM_INITDIALOG handler.
2319 (resource.h): New include for resource IDs.
2321 * res.rc: Resize and rearrange property page dialog templates
2322 to bring them in line with "Microsoft's Backward Compatible Wizard 97"
2323 specification. Run d2u.
2324 (IDD_SITE): Add an edit control and an "Add" button in order to
2325 combine the IDD_SITE and IDD_OTHER_URL functionality onto one page.
2326 (IDD_OTHER_URL): Remove dialog template.
2327 (IDD_DLSTATUS): Remove dialog template.
2330 (SitePage::OnBack): Remove NEXT() macro invocation.
2331 (SitePage::OnActivate): New member function.
2332 (load_dialog): Remove. Functionality subsumed into
2333 SitePage::OnActivate.
2334 (save_dialog): Change to support both list and user URLs. Remove
2335 OTHER_IDX and mirror_idx logic.
2336 (SitePage::PopulateListBox): New member function.
2337 (SitePage::CheckControlsAndDisableAccordingly): New member function.
2338 (SitePage::OnMessageCmd): New override.
2339 (check_if_enable_next): Remove.
2340 (dialog_cmd): Remove.
2341 (do_download_site_info_thread): Remove calls to NEXT() macro.
2342 (SitePage::Create): Call the single-param PropertyPage::Create
2344 (other_url): New static taken from other.cc.
2345 (SitePage::OnNext): Remove mirror_idx logic.
2346 (SitePage::OnInit): Remove "Other URL" entry from list box. Remove
2347 list box populating code, now handled in SitePage::PopulateListBox.
2348 (mirror_idx, NO_IDX, OTHER_IDX): Remove.
2349 (save_site_url): Fix potential buffer overflow problem. Switched to
2350 TCHAR in grossly premature preparation for multilingual support.
2352 (SitePage::OnActivate): New member function.
2353 (SitePage::CheckControlsAndDisableAccordingly) New member.
2354 (SitePage::OnMessageCmd): New override.
2355 (do_download_site_info_thread): Add MessageBox call on failure to
2358 * splash.cc: Run d2u.
2359 (SplashPage::OnInit): Set the font for the title.
2360 * splash.h: Run d2u.
2362 * threebar.cc: Run d2u.
2363 * threebar.h: Run d2u.
2365 * window.h: Run d2u.
2366 (Window::IsButtonChecked): New member function declaration.
2367 (Window::OnMessageCmd): New member function.
2368 (Window::SetDlgItemFont): New member function declaration.
2369 (Window::MAXFONTS, Window::Fonts, Window::FontCounter): New data
2371 * window.cc: Run d2u.
2372 (Window::IsButtonChecked): New member function definition.
2373 (Window::SetDlgItemFont): New member function definition.
2374 (Window::Window): Add initialization for FontCounter.
2375 (Window::~Window): Delete any fonts we created.
2377 * geturl.cc: Run d2u.
2378 (progress): Remove the "3" field width from the "%3d"
2379 percent-complete format indicator. Causes line to not start at
2380 beginning of text box, and does little to help with "jumping", since
2381 the "bytes downloaded so far" field is variable-width anyway. Change
2382 kb/s format field to "%03.1" to 0-pad the kb/s number in the event of
2383 painfully slow connections, or temporary slowdowns in faster
2384 connections should such more-instantaneous functionality become
2388 (NetPage::OnMessageCmd): New member function declaration.
2389 (NetPage::CheckIfEnableNext): New member function declaration.
2391 (NetPage::OnMessageCmd): New member function definition.
2392 (dialog_cmd): Remove, subsumed into NetPage::OnMessageCmd.
2393 (check_if_enable_next): Remove.
2394 (NetPage::CheckIfEnableNext): New member function, subsumes
2395 check_if_enable_next.
2396 (propsheet.h): Add include.
2397 (NetPage::Init): Add call to CheckIfEnableNext.
2398 (load_dialog): Remove call to check_if_enable_next.
2399 (NetPage::Create): Call single-template-ID-parameter overload of
2400 PropertyPage::Create instead of three-parameter one.
2402 * Makefile.in (OBJS): Remove other.o.
2403 * other.cc: Remove file.
2405 2002-01-01 Robert Collins <rbtcollins@hotmail.com>
2407 * README: Update TODO's.
2408 * choose.cc (set_existence): Delete non installed packages with no
2410 (fill_missing_category): Fix an off-by-one error.
2411 (default_trust): Ditto. Also delete any unused categories.
2412 (view::init_headers): Fix an off-by-one error.
2413 (set_view_mode): Ditto.
2414 (set_view_mode): Ditto.
2415 (create_listview): Ditto.
2416 (dialog_cmd): Ditto.
2418 * io_stream.cc: Indent.
2419 * io_stream.h: Ditto.
2420 * package_db.cc: Ditto.
2421 * package_meta.h: Const correctness for SDesc ();
2422 * proppage.cc: Run d2u and indent.
2423 * propsheet.cc: Run d2u and indent.
2424 * window.cc: Run d2u and indent.
2425 * window.h: Run d2u and indent.
2427 2001-12-28 Christopher Faylor <cgf@redhat.com>
2429 * Makefile.in (iniparse.o): Accommodate newer bisons.
2431 2001-12-23 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2433 * window.h (Window): New file, new class.
2434 * window.cc (Window): New file, new class.
2436 * threebar.h (ThreeBarProgressPage): New file, new class.
2437 * threebar.cc (ThreeBarProgressPage): New file, new class.
2439 * splash.h (SplashPage): New file, new class.
2440 * splash.cc (SplashPage): Replace file with implementation of new
2443 * source.h (SourcePage): New file, new class.
2444 * source.cc: Run indent.
2445 (SourcePage): Add class implementation to this file.
2446 (do_source): Remove, functionality subsumed by SourcePage::Create()
2447 and SourcePage::OnDeactivate().
2448 (dialog_proc): Remove, functionality subsumed by
2449 SourcePage::OnActivate().
2451 * site.h: Run indent.
2452 (SitePage): Add class declaration.
2453 * site.cc: Run indent.
2454 (SitePage): Add class implementation.
2455 (do_download_site_info_thread): New function.
2456 (context): New var. Context info for do_download_site_info_thread().
2457 (do_download_site_info): New function.
2458 (SitePage::Create, SitePage::OnInit SitePage::OnNext)
2459 (SitePage::OnBack): SitePage class implementation..
2460 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers, now handled
2461 by SitePage members.
2462 (dialog_proc): Remove, now handled by SitePage::OnInit and base class
2464 (do_site): Remove, now handled by do_download_site_info_thread() and
2465 SitePage::OnNext functionality.
2466 (get_site_list): Remove dismiss_url_status_dialog() call.
2468 * root.h (RootPage): New file, new class.
2469 * root.cc: Run indent.
2470 (dialog_cmd): Pass parent HWND parameter to note(), yesno().
2471 (dialog_proc): Remove.
2473 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL clauses from switch.
2474 (RootPage::OnInit): New member function. Move get_root_dir() logic to
2475 here from do_root().
2476 (RootPage::Create): New member function.
2477 (RootPage::OnNext): New member function. Move IDOK logic from
2478 dialog_cmd() to here.
2479 (RootPage::OnBack): New member function.
2481 * propsheet.h (PropSheet): New file, new class.
2482 * propsheet.cc (PropSheet): New file, new class.
2484 * proppage.h (PropertyPage): New file, new class.
2485 * proppage.cc (PropertyPage): New file, new class.
2487 * postinstall.cc (do_postinstall): Add owner parameter.
2489 * other.cc (do_other): Add owner parameter.
2491 * nio-file.cc (NetIO::Purl): Pass NULL parent param to note().
2492 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Pass NULL parent param to
2494 * nio-http.cc (retry_get): Pass NULL parent param to get_auth(),
2497 * nio-ie5.cc (NetIO::_url): Pass NULL parent param to note(),
2498 get_auth(), get_proxy_auth().
2500 * netio.h (get_auth, get_proxy_auth, get_ftp_auth): Add owner param.
2501 * netio.cc (auth_common, NetIO::get_auth, NetIO::get_proxy_auth,
2502 NetIO::get_ftp_auth)
2503 (auth_common): Add owner param. Pass owner param to DialogBox.
2504 (NetIO::get_auth, NetIO::get_proxy_auth, NetIO::get_ftp_auth): Pass
2505 owner param to auth_common().
2507 * net.h (NetPage): New file, new class.
2508 * net.cc: Run indent.
2509 (net.h, threebar.h): Add includes.
2510 (Progress): Add extern.
2511 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, now handled by
2512 property sheet logic. Saved temporarily for reference.
2513 (NetPage::Create, NetPage::OnInit, NetPage::OnDeactivate,
2514 NetPage::OnNext, NetPage::OnBack):
2515 New implementation of NetPage class members.
2517 (dialog_proc): Remove.
2519 * msg.h (fatal, note, yesno): Add owner param.
2520 * msg.c (fatal, note, yesno, mbox): Add owner param.
2521 (mbox): Remove MB_TOPMOST from MessageBox call. Unnecessary and wrong
2522 now that we have a parent.
2524 * main.cc: Run indent.
2525 (commctrl.h, proppage.h, propsheet.h, splash.h, source.h)
2526 (localdir.h, net.h, site.h, choose.h, threebar.h, desktop.h): Include
2528 (root_dialog_proc): extern into this file.
2529 (Progress): Progress dialog defined here, used in several other files.
2530 (WinMain): Instantiate and create Splash, Source, Root, LocalDir, Net,
2531 Site, Chooser, Desktop pages and MainWindow sheet. Call
2532 InitCommonControls() to make sure Windows is set up for our use of
2533 property sheets. Add pages to sheet.
2534 Call MainWindow.Create() to "DoModal". Remove main loop, that logic is
2535 now handled by the PropSheet class.
2536 (root.h): Add include.
2538 * log.cc (log_save): Pass NULL parent to fatal().
2539 (exit_setup): Pass NULL parent to note().
2541 * localdir.h (LocalDirPage): New file, new class.
2542 * localdir.cc: Run indent.
2543 (localdir.h): New include.
2544 (threebar.h): New include.
2545 (Progress): extern into this file.
2546 (LocalDirPage::Create, LocalDirPage::OnInit, LocalDirPage::OnActivate)
2547 (LocalDirPage::OnNext, LocalDirPage::OnBack): Implementation of
2549 (LocalDirPage::OnNext): Move log() call from do_local_dir() to here.
2550 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers.
2551 (do_local_dir): Remove.
2552 (dialog_proc): Remove.
2553 (cwd): Remove, not used by anything.
2555 * install.cc: Run indent.
2556 (process.h, threebar.h): New includes.
2557 (Progress): extern into this file.
2558 (ins_dialog, ins_action, ins_pkgname, ins_filename, ins_pprogress)
2559 (ins_iprogress, ins_diskfull, init_event): Remove, now handled by
2560 ThreeBarProgressPage.
2561 (dialog_cmd, dialog_proc, dialog): Removed, handled in
2562 ThreeBarProgressPage.
2563 (init_dialog): Remove all mention of the above ins_* handles. Now
2564 handled in ThreeBarProgressPage. Altered SetWindowText()s to call
2565 ThreeBarProgressPage instance Progress directly.
2566 (progress): Alter bar update logic to call ThreeBarProgressPage
2567 instance Progress directly.
2568 (uninstall_one): Alter SetWindowText()s to call ThreeBarProgressPage
2569 instance Progress directly.
2570 (install_one_source): Alter SetWindowText()s to call
2571 ThreeBarProgressPage
2572 instance Progress directly. Pass NULL parent to note().
2573 (do_install_thread): Rename from do_install(), added owner param.
2574 Alter SetWindowText()s to call ThreeBarProgressPage instance Progress
2576 Remove dismiss_url_status_dialog() call, no longer necessary. Remove
2577 ShowWindow(<hide>) call, also unnecessary now. Pass owner handle to
2579 (do_install_reflector): New function.
2580 (do_install): New function.
2582 * ini.cc (process.h, threebar.h): New includes.
2583 (Progress): externed into this file.
2584 (find_routine): Pass NULL parent to note().
2585 (do_local_ini): Add owner param.
2586 (do_remote_ini): Add owner param. Pass owner to get_url_to_membuf()
2587 and note(). Remove call to dismiss_url_status_dialog().
2588 (do_ini_thread): Rename from do_ini(). Add owner param. Pass owner to
2589 do_local_ini(), do_remote_ini(), yesno(), and note(). Set next_dialog
2590 to IDD_CHOOSER on exit.
2591 (do_ini_thread_reflector): New function.
2592 (context): New var. Context for do_ini_thread.
2593 (do_ini): New function.
2595 * geturl.h (get_url_to_membuf, get_url_to_string, get_url_to_file): Add
2597 * geturl.cc (gw_dialog, gw_url, gw_rate, gw_progress, gw_pprogress,
2599 (gw_progress_text, gw_pprogress_text, gw_iprogress_text, init_event):
2601 (threebar.h): New include.
2602 (Progress): externed into this file.
2603 (dialog_cmd, dialog_proc, dialog): Removed, handled by
2604 ThreeBarProgressPage now.
2605 (init_dialog): Remove "if (gw_dialog == 0)" clause. Alter
2607 and bar setting SendMessage()s to call ThreeBarProgressPage instance
2608 Progress directly. Remove "one bar only" logic, this is now handled
2609 explicitly in the ThreeBarProgressPage class.
2610 (progress): Altered bar and text update logic to call
2611 ThreeBarProgressPage instance Progress directly. Changed kbps
2612 calculation to floating point and now print out a single decimal
2614 (get_url_to_membuf): Add owner param. Pass it to init_dialog.
2615 (get_url_to_string): Add owner param. Pass it to get_url_to_membuf.
2616 (get_url_to_file): Add owner param. Pass it to init_dialog. Alter bar
2617 update logic to call ThreeBarProgressPage instance Progress directly.
2618 (dismiss_url_status_dialog): Remove.
2620 * fromcwd.cc (do_fromcwd): Add owner param. Initialize found_ini to
2623 * download.cc: Run indent.
2624 (process.h, threebar.h): New includes.
2625 (Progress): externed into this file.
2626 (download_one): Add owner param. Pass it to get_url_to_file().
2627 (do_download_thread): Renamed from do_download. Add owner param. When
2628 calculating total_download_bytes, take binpicked and srcpicked into
2629 account. Remove call to dismiss_url_status_dialog(), no longer needed.
2630 Pass owner handle to download_one() and yesno().
2631 (do_download_reflector, do_download): New functions.
2632 (context): New var. Context for do_download_thread().
2634 * dialog.h (D(x)): Add owner param.
2636 * desktop.h (DesktopSetupPage): New file, new class.
2637 * desktop.cc: Run indent.
2638 (desktop.h): Add include.
2639 (dialog_proc, do_desktop): Remove, now handled in
2640 DesktopSetupPage::OnInit().
2641 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, handled in
2642 DesktopSetupPage::OnFinish(), DesktopSetupPage::OnBack(), and PropSheet
2644 (DesktopSetupPage::Create, DesktopSetupPage::OnInit)
2645 (DesktopSetupPage::OnBack, DesktopSetupPage::OnFinish): Implementation
2646 of DesktopSetupPage.
2648 * cistring.h: New file, new class.
2649 * cistring.cc: New file, new class.
2651 * choose.h: Run indent.
2652 (Chooser): New class declaration.
2653 * choose.cc: Run indent.
2654 (do_choose): Add owner param. Pass it to DialogBox() and
2656 (Chooser): New class implementation.
2658 * res.rc (IDS_VERSION_INFO): New string.
2659 (IDD_SOURCE, IDD_LOCAL_DIR, IDD_ROOT, IDD_SITE, IDD_OTHER_URL)
2660 (IDD_DLSTATUS, IDD_INSTATUS, IDD_SPLASH, IDD_CHOOSE, IDD_DESKTOP):
2661 Change WS_POPUP to WS_CHILD. Numerous positioning/size changes
2663 (IDD_CHOOSE): Give template the WS_EX_CONTROLPARENT style to enable
2664 TAB control navigation etc. Give the controls a reasonable tab order.
2665 Grouped radio buttons. Something's still not right, can't tab away
2666 from back/next/cancel group reliably.
2667 * resource.h (IDD_CHOOSER): New dialog ID.
2669 * Makefile.in (OBJS): Add cistring.o, proppage.o, propsheet.o,
2670 threebar.o, and window.o.
2672 2001-12-21 Robert Collins <rbtcollins@hotmail.com>
2674 * choose.cc (listview_proc): Update the scrollbar when the headers are dragged.
2675 (pick_pkg_line::paint): Clip columns to prevent overlap.
2677 2001-12-20 Robert Collins <rbtcollins@hotmail.com>
2679 * Makefile.in: Add libcomctl32.a for setup.exe.
2680 * archive.h (archive): Prevent non-child direct creation of the class.
2681 * archive_tar.h (archive_tar): Prevent inaccurate synthetic copy and assignment.
2682 * choose.cc: Include commctrl for the choose header.
2683 (NEW_COL_SIZE_SLOP): Define without magic numbers.
2684 (pkgtrustp): Convert to function.
2685 (set_action): Remove.
2686 (add_required, fill_missing_category,default_trust): Use list syntax for
2689 (choose_caption): Remove.
2690 (topbucket::paint): New method.
2691 (topbucket::empty): Ditto.
2692 (topbucket::click): Ditto.
2693 (topbucket::~topbucket): Ditto.
2694 (paint): Remove i,ii and p as they are obsolete.
2695 Remove header drawing code.
2696 Use new chooser method to paint the chooser.
2697 Use new chooser itemcount method.
2698 (scroll_common): Rename to view::scroll.
2699 Scroll the header window separately.
2700 (list_vscroll, list_hscroll, list_click): Update for new chooser methods.
2701 (listview_proc): Look for header messages.
2702 (note_width): Accept stringless calls.
2703 (pick_line::set_line): Remove.
2704 (pick_line::paint): Remove.
2705 (pick_pkg_line::paint): Paint this one line, using the header column widths.
2706 (pick_category_line::paint): Paint this category, and anything in the bucket.
2707 (pick_line::click): Remove.
2708 (pick_pkg_line::click): Handle a click.
2709 (pick_category_line::click): Handle a click.
2710 (_view): Rename all to view.
2711 (view::view): Initialise the control contents.
2712 (view::set_headers): Work with the header control.
2713 (view::init_headers): Use list syntax for package list.
2714 Rearrange the width logic a little.
2715 (view::insert_pkg): Update to use the hierarchy.
2716 (view::insert_category): Ditto.
2717 (view::insert_at, view::insert_under): Remove.
2718 (view::clear_view): Update to use the hierarchy.
2719 (view::click): Update to use the hierarchy.
2720 (set_view_mode): Use list syntax for package list.
2721 Update for new chooser methods.
2722 (DoInsertItem): New helper function. (Needs a home somewhere).
2723 (create_listview): Remove choose control code and use the constructor instead.
2724 (dialog_cmd,scan2,do_choose): Use list syntax for package list.
2725 * choose.h: Include newly required headers list and package_meta.
2726 (_voew): Rename to view.
2727 (pick_line): Convert to an ABC.
2728 (pick_pkg_line): New class.
2729 (pick_catgory_line): New class.
2730 (topbucket): New class.
2731 (view::scroll): New method created from listview_scroll function.
2732 * desktop.cc (make_passwd_group): Use list syntax for package list.
2733 * download.cc (do_download): Use list syntax for package list.
2734 * fromcwd.cc (found_file): Use list syntax for package list.
2735 * iniparse.y (pacakges): Use list syntax for package list.
2736 * install.cc (uninstall_one): Use list syntax for package list.
2737 (do_install): Use list syntax for package list.
2738 * io_stream.h (io_stream): Prevent non-child direct creation of the class.
2739 Prevent inaccurate synthetic copy and assignment.
2740 * list.h: Include required header stdlib.
2741 Work on const correctness.
2742 * package_db.cc (packagedb::getpackagebyname): Remove.
2743 (packagedb::packagedb): Remove custom list code, and make db a local.
2744 (packagedb::getfirstpackage): Remove.
2745 (packagedb::getnextpackage): Remove.
2746 (packagedb::addpackage): Remove.
2747 (flush): Remove custom list code.
2748 (packagedb::registerpackage): Remove.
2749 (packagedb::packages): New static member.
2750 (packagedb::task): New static member.
2751 * package_db.h (PackageDBActions): New enum.
2752 (packagedb): Remove getfirstpackage, getnextpackage, getpackagebyname,
2753 addpackage, registerpackage, packages, packagecount, curr_package, db.
2755 * pacakge_meta.cc: Include package_db.h.
2756 (packagemeta::action_caption): New method.
2757 (packagemeta::set_action): New method.
2758 * package_meta.h (CategoryPackage): Initialise key.
2759 (packagemeta): Initialise key.
2760 Add set_action and action_caption methods.
2761 Prevent inaccurate synthetic copy and assignment.
2762 * resource.h (IDC_CHOOSE_LISTHEADER): New ID.
2763 * source.cc: Include package_db for db manipulation.
2764 (save_dialog): Set the db task.
2765 * win32.h: Tell the w32 include headers what IE version to expect/require.
2767 2001-12-06 Robert Collins <rbtcollins@hotmail.com>
2769 * README: Wishlist updates.
2771 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
2773 * package_db.cc (getnextpackage): Don't overrun the array.
2775 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
2777 * Makefile.in (OBJS): Add setup_version.o.
2778 (version.c): Rename to setup_version.
2779 * choose.cc (set_action): Prevent NULL pointer dereference.
2780 (package_sort): Remove.
2781 * fromcwd.cc (canonicalize_version): Moved to version.cc.
2782 (check_ini): New function for use with find to see if there is a cached setup.ini.
2783 (do_fromcwd): Check for a cached setup.ini from any mirror site.
2784 * ini.cc (find_routine): New function, for finding cached setup.ini's.
2785 (do_local_ini): New function, drives parsing of local ini's.
2786 (do_remote_ini): New function, drives parsing and caching of remote ini's.
2787 (do_ini): Move guts to do_remote_ini and do_local_ini.
2788 * list.h (removebyindex): New method.
2789 * other.cc (save_dialog): Use new site_list and all_site_list to add the
2790 new site to the site picklist.
2791 (dialog_cmd): Only save the dialog when exiting the dialog.
2792 * res.rc (IDD_SITE): Make IDC_URL_LIST a multiple-selection control.
2793 * site.cc (site_list_type): Move to site.h
2794 (site_list): New global, sites chosen by the user.
2795 (all_site_list): New global, all potential sites.
2796 (site_list_type::init): New method, parses a mirror.lst URL string into a
2797 site_list_type object.
2798 (site_list_type::site_list_type): New method.
2799 (check_if_enable_next): Examine the control, not a local variable.
2800 (load_dialog): Select all the user chosen sites by default.
2801 (save_dialog): Adjust for multiple selection semantics.
2802 (save_site_url): Save all user chosen sites.
2803 (dialog_cmd): Don't save the dialog when the listbox recieves a message -
2805 Remove obsolete other_url reference.
2806 (dialog_proc): Use all_site_list instead of site_list.
2807 (site_sort): Remove.
2808 (get_site_list): Remove malloc use - use list template instead.
2809 Move site_list_type initialisation to site_list_type::init().
2810 (get_initial_list_idx): Renamed to ...
2811 (get_saved_sites): this. Also read in multiple sites to the site_list.
2812 (do_site): Use all_site_list not site_list.
2813 Log all chosen sites.
2814 * site.h: New file, defines site related class, functions and variables.
2815 * state.h: Add comment about use of state.h
2816 (mirror_site): Remove.
2817 (other_url): Remove.
2818 (MIRROR_SITE): Remove.
2819 * version.cc: New file, for version-handling and related functions.
2821 2001-12-02 Robert Collins <rbtcollins@hotmail.com>
2823 * Makefile.in: Add filemanip.o to setup.
2824 * archive.cc (archive::extract_file): Use new io_stream method 'copy'.
2825 * archive_tar.h (archive_tar_file): Implement get_size virtual.
2826 (archive_tar): Ditto.
2827 * choose.cc (set_action): Use [] operator instead of getnth - its more readable.
2829 (_view::init_headers): Ditto.
2830 (_view::insert_pkg): Ditto.
2831 (set_view_mode): Ditto.
2834 (base): Moved to filemanip.cc.
2835 (find_tar_ext): Ditto.
2836 (parse_filename): Ditto.
2837 (_Info::_Info): Remove.
2838 * compress_bz.h (compress_bz): Implement get_size virtual.
2839 * compress_gz.h (compress_gz): Implement get_size virtual.
2840 * cygpackage.cc (cygpackage::destroy): Use array delete for char * objects.
2841 * download.cc (get_file_size): Move to filemanip.cc.
2842 (check_for_cached): Use [] operator instead of getnth - its more readable.
2843 (download_one): Ditto.
2844 * filemanip.cc: New file.
2845 * geturl.cc (init_dialog): Make url a pointer to const as it is not modified.
2846 (get_url_to_membuf): New function - contains get_url_to_string worker code.
2847 (get_url_to_string): Becomes a trivial wrapper to get_url_to_membuf.
2848 * geturl.h: Declare new prototype.
2849 * ini.cc (do_ini): Use get_url_to_membuf and pass ini_init an io_stream.
2850 Tidy up the error code a little.
2851 * ini.h: Remove __cplusplus protection for ini_init.
2853 * inilex.l: Remove old globals.
2854 (ini_init): Use an io_stream for getting the characters.
2855 (ini_getchar): Ditto.
2856 * iniparse.y: Declare yylex as a C++ function.
2857 (add_correct_version): Use [] operator instead of getnth - its more readable.
2858 * io_stream.cc (io_stream::move_copy): Use the copy method.
2859 (io_stream::copy): New method to simply copy from one stream to another.
2860 * io_stream.h (io_stream): New static method copy, and virtual method get_size.
2861 * io_stream_cygfile.cc (io_stream_cygfile::get_size): Implement this.
2862 * io_stream_cygfile.h (io_stream_cygfile::get_size): Declare this.
2863 * io_stream_file.cc (io_stream_file::get_size): Implement this.
2864 * io_stream_file.h (io_stream_file::get_size): Declare this.
2865 * io_stream_memory.h: Include errno as it's neded to parse the header.
2866 (io_stream_memory::get_size): Implement this.
2867 (io_stream_memory::st_size): Delete this.
2868 * list.h: Change getnth into the [] operator.
2869 * netio.cc (NetIO::NetIO): Change prototype to reflect Purl not being modified.
2870 (NetIO::set_url): Ditto.
2871 (NetIO::open): Ditto.
2872 * netio.h: As for netio.cc.
2873 * nio-file.cc (NetIO_File::NetIO_File): Change prototype to reflect Purl not
2875 * nio-file.h: Ditto.
2876 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
2877 * nio-ftp.h (NetIO_FTP::NetIO_FTP): Ditto.
2878 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Ditto.
2879 * nio-http.h (NetIO_HTTP::NetIO_HTTP): Ditto.
2880 * nio-i5.cc (NetIO_IE5::NetIO_IE5): Ditto.
2881 * nio-i5.h (NetIO_IE5::NetIO_IE5): Ditto.
2882 * package_meta.cc (packagemeta::~packagemeta): Bugfix: use array delete.
2883 * package_source.cc (packagesource::set_canonical): Ditto.
2884 (packagesource::set_cached): Ditto.
2885 * package_source.h (site::~site): Ditto.
2886 * site.cc: Change site_list_type to a class, and search and replace sort_key to
2889 2001-12-01 Robert Collins <rbtcollins@hotmail.com>
2891 * package_source.cc (packagesource::set_canonical): Filename was out by one.
2893 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
2895 * Makefile.in (OBJS): Remove category_list - it's not needed.
2896 * README: More wishlist updates.
2897 * category.cc (Category::Category): Initialise new members.
2898 (Categorycmp): New function.
2899 * category.h (Category): New member key for template use.
2900 * category_list.cc: Remove.
2901 * category_list.h: Remove.
2902 (Categorycmp): New function prototype.
2903 * choose.cc: Remove category_list - not needed.
2904 (set_action): Only show the 'source' option when the source is actually
2906 (add_required): Fix recursion limiter to 5.
2907 (fill_missing_category): Use list access.
2908 (default_trust): Ditto.
2909 (pick_line::paint): Ditto.
2910 (_view::init_headers): Ditto.
2911 (_view::insert_pkg): Ditto.
2912 (_view::insert_category): Ditto.
2913 (_view::click): Ditto.
2914 (set_view_mode): Ditto.
2916 * cygpackage.h: Remove category_list - not needed.
2917 * geturl.cc (get_url_to_string): Fix null byte insertion.
2918 * inipatse.y: Remove category_list - not needed.
2919 (categories): Use list access.
2920 * package_db.cc: Ditto.
2921 * package_db.h: Remove category_list - not needed.
2922 (packagedb): Use the list template for categories.
2923 * package_meta.cc (add_category): Ditto.
2924 * package_meta.h (CategoryPackage): Link to the category as well.
2925 (packagemeta): Use a list of CategoryPackages instead of Categories
2926 for more memory efficient cross-referencing.
2928 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
2930 * package_db.cc (packagedb::flush): Write a canonical version for all packages
2931 irrespective of the media they were installed from.
2933 2001-11-29 Robert Collins <rbtcollins@hotmail.com>
2935 * Makefile.in (OBJS): Add package_source and rfc1738.
2936 * README: Wishlist update.
2937 * category_list.cc (register_category): Use references.
2938 * category_list.h (CategoryList): Ditto.
2939 * choose.cc (isinstalled): Remove.
2940 (pkgtrustp): New macro.
2941 (set_action): Use packagemeta.
2942 (add_required): Ditto.
2943 (choose_caption): Example package to choose caption, rather than state flags.
2944 (check_existence): Remove.
2945 (set_existence): Remove old code.
2946 (fill_missing_category): Use packagemeta.
2947 (keep_or_skip): Remove.
2948 (default_trust): Use packagemeta and set trust values directly.
2949 (pick_line::set_line): Use packagemeta.
2950 (_view::insert_pkg): Ditto.
2951 (_view::insert_category): Ditto.
2952 (_view::click): Ditto.
2953 (set_view_mode): Ditto. Also remove "exclude" code.
2954 (create_listview): Use packagemeta.
2955 (dialog_cmd): Ditto.
2956 (getpkgbyname): Remove
2957 (scan2): Use packagemeta. Temporarily comment out the holefinding code.
2958 (read_installed_db): Remove.
2959 (package_sort): Use packagemeta.
2960 (do_choose): Use packagemeta. Don't sort the packages - the db does that.
2961 * choose.h: Use packagemeta.
2962 * cygpackage.cc (cygpackage::cygpackage): Initialise all variables.
2963 (cygpackage::cygpackage): Ditto.
2964 (cygpackage::set_canonical_version): Copy the passed string.
2965 (cygpackage::~cygpackage): Move cleanup code to destroy().
2966 (cygpackage::destroy): New function.
2967 (cygpackage::getfirstfile): Use a separate buffer.
2968 (cygpackage::getnextfile): Ditto.
2969 (cygpackage::Canonical_version): New function.
2970 (cygpackage::set_sdesc): Ditto.
2971 (cygpackage::set_ldesc): Ditto.
2972 * cygpackage.h (cygpackage::Canonical_version): New method.
2973 (cygpackage::set_sdesc): New method.
2974 (cygpackage::set_ldesc): New method.
2975 (cygpackage::SDesc): New method.
2976 (cygpackage::LDesc): New method.
2977 (cygpackage::set_canonical_version): New method.
2978 * desktop.cc: Include packagedb headers.
2979 (make_password_group): Use packagemeta.
2980 * download.cc: Include packagedb headers.
2981 (check_for_cached): New method to find any cached file and fill out the database
2983 (download_one): Take a packagesource, support multiple mirrors.
2984 (do_download): Use packagemeta.
2985 * from cwd.cc: Include packagedb headers.
2986 (found_file): Use packagemeta.
2987 * ini.cc (do_ini): Beginning of multiple-mirror support.
2988 * ini.h (CategoryPackage): Remove.
2989 (Dependency): Remove.
2991 (new_package,getpkgbyname,getpackagecategorybyname,add_category): Remove.
2992 * inilex.l: Support multiple mirrors.
2993 * iniparse.y: Include packagedb headers.
2994 (parser): Use packagemeta.
2995 (new_package): Remove.
2996 (add_correct_version): New function.
2997 (new_requirement): Remove.
2998 (add_category): Remove.
2999 * install.cc (uninstall_one): Use packagemeta.
3000 (install_one_source): New function.
3001 (install_one): Use packagemeta.
3002 (do_install): Use packagemeta.
3003 * io_stream.cc (io_stream::move): Bugfix on move/copy case.
3004 * io_stream_cygfile.cc (io-stream_cygfile::set_mtime): Do not reopen the file
3005 after setting the mtime, it makes no sense, and results in 0 length files.
3006 * io_stream_file.cc (io-stream_file::set_mtime): Ditto.
3007 * list.h: New file, template class for a form of list.
3008 * package_db.cc (packagedb::registerpackage): New function.
3009 * package_db.h (packagedb::npackages ()): New method.
3010 * package_meta.cc (packagemeta::add_version): Use list template.
3011 (packagemeta::set_installed): Ditto.
3012 (packagemeta::add_category): New method.
3013 * package_meta.h: Include necessary headers to parse the class.
3014 (CategoryPackage): New class.
3015 (packagemeta): Initialise all members.
3016 (packagemeta::SDesc): New method.
3017 (packagemeta::Categories): New method.
3018 (packagemeta::add_category): Ditto.
3019 (packagemeta::versions): Change to be a list instance.
3020 * package_source.cc (packagesource::set_canonical): New method.
3021 (packagesource::set_cached): New method.
3022 * package_source.h: Include necessary headers to parse the class.
3024 (packagesource::packagesource): Initialize all members.
3025 (packagesource): Make this class non-abstract.
3026 * package_version.cc (packageversion::packageversion): New method.
3027 * package_version.h (Dependency): New class.
3028 (packageversion::Canonical_vesion): New method.
3029 (packageversion::SDesc): New method.
3030 (packageversion::LDesc): New method.
3031 (packageversion::new_requirement): Ditto.
3032 (packageversion::srcpicked, binpicked): What to install.
3033 (packageversion::src, bin): Installation source data.
3034 * rfc1738.cc: New file. Escapes special characters in URL's.
3037 2001-11-26 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3039 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Stop header parsing when
3040 SimpleSocket::gets() returns a zero-length string, so that we
3041 don't end up eating the entire stream thinking it's all header info.
3043 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
3045 * install.cc (badrename): Remove.
3046 (do_install): Use packagedb flush method to write /etc/setup/installed.db.
3047 * io_stream.cc (io_stream::move_copy): New method.
3048 (io_stream::move): New method.
3049 * io_stream.h (io_stream): New methods move and move_copy.
3050 * io_stream_cygfile.cc (io_stream_cygfile::move): New method.
3051 * io_stream_cygfile.h (io_stream_cygfile): New method move.
3052 * io_stream_file.cc (io_stream_file::move): New method.
3053 * io_stream_file.h (io_stream_file): New method move.
3054 * package_db.cc (packagedb::flush): New method.
3055 * package_db.h (packagedb): New method flush.
3057 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
3059 * Makefile.in (OBJS): Add package_version.
3060 * ategory.cc (Category::Category): Update constructors.
3061 * category_list.cc (CategoryList::register_category): Insert correctly.
3062 * choose.cc: Include package_version.h, not package.h.
3063 * cygpackage.cc: Ditto.
3064 (cygpackage::uninstall): New method.
3065 * cygpackage.h (cygpackage): Rename genericpackage to packageversion.
3066 New method uninstall.
3067 * hash.cc (add, has, enumerate): Change prototype to be accurate.
3068 * hash.h (hash): Change prototypes to be accurate.
3069 * ini.h (_Info): New parameterless constructor.
3070 (CategoryPackage): New constructor.
3072 * install.cc: Don't include unneeded headers.
3073 Include package database headers.
3074 (hash::add_subdirs): Remove.
3075 (uninstall_one): Use packagemeta->uninstall to perform the uninstallation.
3076 Don't uninstall source packages.
3077 (do_install): Just can uninstall_one once as we ignore source packages now.
3078 Don't copy the installed.old database accross, instead iterate through the
3079 packagedb packages list and write the isntalled packages out.
3080 * package_db.cc: Include package_version.h, not package.h.
3081 (packagedb::packagedb): Never let db be undefined.
3082 Record the installation filename, so we can reconstruct installed.db.
3083 (packagedb::addpackage): Insert packages in alpha sorted order.
3084 (packagedb::categories): Initialise correctly.
3085 * package_meta.cc: Include win32 and mount headers as a workaround to
3086 current io_stream limitations. Include a TODO about that.
3087 (standard_dirs): New, from install.cc.
3088 (hash::add_subdirs): New, from install.cc.
3089 (packagemeta::set_installed): Rename genericpackage to packageversion.
3090 (packagemeta::uninstall): New method.
3091 * package_meta.h: Rename genericpackage to packageversion.
3092 (packagemeta): Update constructor.
3093 (add_version, set_installed): Rename genericpackage to packageversion.
3094 (uninstall): New method.
3095 (installed_from): New member.
3096 * package_source.cc: New file.
3097 * package_source.h: New file.
3098 * package_version.cc: New file.
3099 * package_version.h: New file.
3100 * package.cc: Removed.
3101 * package.h: Removed.
3103 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
3105 * Makefile.in (OBJS): Add category.o and category_list.o.
3106 * category.h: New file.
3107 * category.cc: New file.
3108 * category_list.h: New file.
3109 * category_list.cc: New file.
3110 * choose.cc: Include category headers.
3111 (fill_missing_category): Use package_db to access global categories.
3112 (_view::insert_pkg): Ditto.
3113 (_view::insert_category): Ditto.
3114 (set_view_mode): Ditto.
3115 (getcategorybyname): Remove.
3116 * cygpackage.h: Include category_list.h to parse this correctly.
3117 (cygpackage): New virtual &Categories.
3118 * ini.h (_CategoryPackage): More C to C++ conversion.
3120 (getcategorybyname): Remove.
3121 (register_category): Remove.
3122 * iniparse.y: Include package db and category headers.
3123 (categories): Use package_db to access global categories.
3125 (ncategories): Remove.
3126 (register_category): Remove.
3127 * package.h: New virtual &Categories.
3128 * package_db.cc (packagedb::packagedb): Don't read the installed db twice.
3129 (packagedb::categories): Declare.
3130 * package_db.h (packagedb): New member categories for global categories list.
3132 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
3134 * choose.h: Don't include ini.h
3135 * ini.h: Allow pure c++ in the header file.
3137 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
3139 * install.cc (do_install): Write a version 2 installed.db file.
3140 * package_db.cc (packagedb::packagedb): Read version 1 and 2 installed.db files.
3142 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
3144 * Makefile.in (OBJS): Add package abstraction objects.
3145 * choose.cc: Include package abstraction headers.
3146 (read_installed_db): Use packagedb class and ignore installed sources.
3147 * cygpackage.cc: New file.
3148 * cygpackage.h: New file.
3149 * filemanip.h (get_file_size): Use unixy types.
3150 * package.h: New file.
3151 * package.cc: New file.
3152 * package_db.cc: New file.
3153 * package_db.h: New file.
3154 * package_meta.cc: New file.
3155 * package_meta.h: New file.
3157 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
3159 * REAME: Updates to wishlist.
3161 2001-11-16 Robert Collins <rbtcollins@hotmail.com>
3163 * README: Updated and added my list of wishlist and todo items.
3165 2001-11-14 Robert Collins <rbtcollins@hotmail.com>
3167 * Makefile.in (OBJS): Include io_stream_memory in setup.exe.
3168 * archive_tar.cc (archive_tar::write): New prototype.
3169 (archive_tar::seek): New method.
3170 * archive.h (archive_tar_file): Update write() and add seek().
3171 (archive_tar): Ditto.
3172 * archive_tar_file.cc (archive_tar_file::write): New prototype.
3173 (archive_tar_file::seek): New method.
3174 * compress_bz.cc (compress_bz::write): New prototype.
3175 (compress_bz::seek): New function.
3176 * compress_bz.h (compress_bz): Update write() and add seek().
3177 * compress_gz.cc (compress_gz::write): New prototype.
3178 (compress_gz::seek): New function.
3179 * compress_gz.h (compress_gz): Update write() and add seek().
3180 * geturl.cc: Include io_stream headers.
3182 (get_url_to_string): Use a io_stream_memory buffer instead of GUBuf.
3183 * io_stream.h (io_stream_seek_t): New enum.
3184 (io_stream): Update write() and add seek().
3185 * io_stream_cygfile.cc (io_stream_cygfile::write): New prototype.
3186 (io_stream_cygfile::seek): New function.
3187 * io_stream_cygfile.h (io_stream_cygfile): Update write() and add seek().
3188 * io_stream_file.cc (io_stream_file::write): New prototype.
3189 (io_stream_file::seek): New function.
3190 * io_stream_file.h (io_stream_file): Update write() and add seek().
3192 2001-11-13 Brian Keener <bkeener@thesoftwaresource.com>
3194 * localdir.cc: Add headers unistd.h and port.h.
3195 (save_local_dir): Expand search logic to include local directory for
3196 location of file last-cache.
3197 (dialog_cmd): Skip IDD_ROOT when downloading and use Back button.
3198 (do_local_dir): Expand search logic to include local directory for file
3200 * res.rc (IDD_CHOOSE_DIALOG): Add hotkey to View button.
3201 * Source.cc (dialog_cmd): Skip IDD_ROOT if select Download from
3203 (do_source): Default to Install from Internet on first entry or
3204 previous selection if backing up from IDD_ROOT or IDD_LOCAL_DIR.
3206 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
3208 * choose.cc (find_tar_ext): Only match at the end of the string.
3209 (getpkgbyname): Prevent NULL pointer dereference.
3211 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
3213 * Makefile.in (CFLAGS): Add warnings and -Werr.
3214 (WARNONLY_FLAGS): For sources that produce (harmless) errors no matter what.
3215 (OBJS): Add io_stream class' objects.
3216 (autoload.o): Use WARNONLY_FLAGS.
3218 (iniparse.o): Ditto.
3219 * archive.cc: New file.
3220 * archive.h: New file.
3221 * archive_tar.cc: New file.
3222 * archive_tar.h: New file.
3223 * archive_tar_file.cc: New file.
3224 * autoload.c: Fix compiler warnings (unused, deprecated conversion).
3225 * choose.cc: Use io_stream.h, not mount.h.
3227 (find_tar_ext): Rewritten to use strstr, and to accept .tar as an extension.
3228 (read_installed_db): Use io_streams.
3229 * choose.h: Run indent.
3230 * compress.cc: New file.
3231 * compress.h: New file.
3232 * compress_bz.cc: New file.
3233 * compress_bz.h: New file.
3234 * compress_gz.cc: New file.
3235 * compress_gz.h: New file.
3236 * concat.cc: Run indent.
3237 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3238 * concat.h: Run indent.
3239 * desktop.cc: Run indent.
3240 Include mklink2.h rather than redefining by hand.
3241 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3242 (etc_profile): Fix compiler warning (deprecated conversion).
3243 (make_link): Fix compiler warning (deprecated conversion).
3244 Tidy up use of args variable - consolidate into argbuf.
3245 (start_menu): Fix compiler warning (deprecated conversion).
3246 (desktop_icon): Fix compiler warning (deprecated conversion).
3247 (make_etc_profile): Fix compiler warning (deprecated conversion).
3248 (uexists): Fix compiler warning (deprecated conversion).
3249 (check_desktop): Fix compiler warning (deprecated conversion).
3250 (check_startmenu): Fix compiler warning (deprecated conversion).
3251 * dialog.cc: Run indent.
3252 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3253 (fatal): Fix compiler warning (deprecated conversion).
3254 * dialog.h: Run indent.
3255 * diskfull.cc: Run indent.
3256 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3257 * download.cc: Run indent.
3258 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3259 (download_one): Fix compiler warning (signed vs unsigned comparison).
3260 * filemanip.h: Run indent.
3261 * find.cc: Run indent.
3262 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3263 (find): Fix compiler warning (deprecated conversion).
3264 * find.h: Run indent.
3265 * fromcwd.cc: Run indent.
3266 * geturl.cc: Run indent.
3267 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3268 (dialog_cmd): Return a value.
3269 (dialog_proc): Remove unused variables.
3271 (get_url_to_file): Fix compiler warning (deprecated conversion).
3272 * geturl.h: Run indent.
3273 * hash.cc: Run indent.
3274 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3275 * hash.h: Run indent.
3276 * ini.cc: Run indent.
3278 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3279 (do_ini): Use io_streams for local io.
3280 * ini.h: Run indent.
3281 * inilex.l (ignore_line): Fix compiler warning (is not a prototype).
3282 Fix compiler warning (brackets for truth assignment).
3283 * install.cc: Run indent.
3284 Fix compiler warning (/* in comment).
3286 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3287 (dialog_cmd): Return a value.
3288 (dialog_proc): Return a value.
3289 (start_tics): Deleted - was unused.
3290 (badrename): Fix compiler warnings (unused, deprecated conversion).
3291 (standard_dirs): Fix compiler warning (deprecated conversion).
3293 (uninstall_one): Convert to io_streams.
3294 (install_one): Convert to io_streams.
3295 (do_install): Convert to io_streans.
3296 Fix compiler warning (deprecated conversion).
3297 * io_stream.cc: New file.
3298 * io_stream.h: New file.
3299 * io_stream_cygfile.cc: New file.
3300 * io_stream_cygfile.h: New file.
3301 * io_stream_file.cc: New file.
3302 * io_stream_file.h: New file.
3303 * localdir.cc: Run indent.
3305 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3306 (get_root_dir_now): Remove.
3307 (save_local_dir): Convert to io_streams.
3308 (dialog_cmd): Return a value.
3309 (do_local_dir): Convert to io_streams.
3310 (log.cc): Run indent.
3311 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3312 (log): Fix compiler warning (deprecated conversion).
3313 (log_save): Fix compiler warning (deprecated conversion).
3314 * log.h: Run indent.
3315 (log): Fix compiler warning (deprecated conversion).
3316 (log_save): Fix compiler warning (deprecated conversion).
3317 * main.cc: Run indent.
3318 Don't include "netio.h".
3319 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3320 (netio_test): Remove.
3321 (sid_auth): Fix compiler warning (partially bracketed initialiser).
3322 (WinMain): Return a value.
3323 * mkdir.cc: Run indent.
3324 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3325 * mklink2.c: Run indent.
3326 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3327 (mkcygsymlink): New function.
3328 * mklink2.h: New file.
3329 * mount.cc: Run indent.
3330 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3331 (create_mount): Remove unused variables.
3332 (cygpath): Fix compiler warning (signed vs unsigned comparison).
3333 * mount.h: Run indent.
3334 * msg.cc: Run indent.
3335 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3336 (msg): Fix compiler warning (deprecated conversion).
3337 (mbox): Fix compiler warning (deprecated conversion).
3338 * msg.h: Run indent.
3339 (msg): Fix compiler warning (deprecated conversion).
3340 * net.cc: Run indent.
3341 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3342 (dialog_cmd): Return a value.
3343 * netio.cc: Run indent.
3344 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3345 (auth_cmd): Return a value.
3346 * netio.h: Run indent.
3347 * nio-file.cc: Run indent.
3348 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3349 (NetIO_File::NetIO_File): Fix compiler warning (deprecated conversion).
3350 * nio-file.h: Run indent.
3351 * nio-ftp.cc: Run indent.
3352 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3353 * nio-ftp.h: Run indent.
3354 * nio-http.cc: Run indent.
3355 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3356 * nio-http.h: Run indent.
3357 * nio-ie5.cc: Run indent.
3358 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3359 * nio-ie5.h: Run indent.
3360 * other.cc: Run indent.
3361 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3362 (dialog_cmd): Return a value.
3363 * port.h: Run indent.
3364 * postinstall.cc: Run indent.
3365 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3366 (cmd): Fix compiler warning (deprecated conversion).
3367 (eun): Fix compiler warning (deprecated conversion).
3368 * root.cc: Run indent.
3369 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3370 * simpsock.cc: Run indent.
3371 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3372 * simpsock.h: Run indent.
3373 * site.cc: Run indent.
3375 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3376 (get_root_dir_now): Remove.
3377 (save_site_url): Convert to io_streams.
3378 (dialog_cmd): Return 0.
3379 (get_initial_list_idx): Convert to io_streans.
3380 * source.cc: Run indent.
3381 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3382 (check_if_enable_next): Remove.
3383 (load_dialog): Remove unused variables.
3384 (save_dialog): Ditto.
3385 (dialog_cmd): Return a value.
3386 * splash.cc: Return a value.
3387 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3388 (dialog_cmd): Return a value.
3389 * state.cc: Run indent.
3390 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3391 * state.h: Run indent.
3395 2001-11-12 Christopher Faylor <cgf@redhat.com>
3397 * desktop.cc (start_menu): Change start menu name to "Cygwin".
3398 (check_startmenu): Ditto.
3400 2001-11-11 Christopher Faylor <cgf@redhat.com>
3402 * choose.cc (parse_filename): Finish reorganization by correctly
3403 decrementing p in memmove.
3405 2001-11-11 Christopher Faylor <cgf@redhat.com>
3407 * choose.cc (parse_filename): Reorganize code to work around gcc
3408 optimization problem.
3410 2001-11-09 Gareth Pearce <tilps@hotmail.com>
3412 * choose.cc (set_action): Allow skip as an option for installed
3413 packages that have version number not listed in setup.ini.
3415 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
3417 * choose.cc (set_cation): Backout last change.
3418 (choose_caption): Ditto.
3420 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
3422 * ini.h (actions): Remove - transferred to choose.h.
3424 * choose.h: Protect class's from "C" compilers.
3425 (actions): New enum, from ini.h. This may not be the 'right' place
3426 but that place doesn't exist yet.
3427 (_views): New enum, from ini.h.
3428 * choose.cc (set_action): Handle installed packages with a version not in
3430 (choose_caption): Ditto.
3431 * iniparse.y: Rearrange header order to handle new ini.h.
3433 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
3435 * ini.h (_Info): Fix compiler warnings (signed vs unsigned comparison).
3436 (registry_category): Fix compiler warning (deprecated conversion).
3437 * iniparse.y (registry_category): Ditto.
3438 * choose.cc (cvsid): Fix compiler warnings (unused, deprecated conversion).
3439 (add_requried): Remove unused variable.
3440 (choose_caption): Handle all enumeration values via a default.
3441 (paint): Fix compiler warnings (unused, deprecated conversion).
3442 (scroll_common): Fix compiler warnings (unused, signed vs unsigned comparison).
3443 (list_clicK): Fix compiler warnings (signed vs unsigned comparison).
3444 (note_width): Fix compiler warnings (deprecated conversion).
3445 (keep_or_skip): Fix compiler warnings (unused).
3446 (_view::mode_caption): Fix compiler warnings (deprecated conversion).
3447 (set_view_mode): Fix compiler warnings (unused).
3448 (create_listview): Fix compiler warnings (unused, incorrect format, reaches
3450 (dialog_proc): Fix compiler warnings (unused).
3451 (read_installed_db): Fix compiler warnings (unused, deprecated conversion).
3452 * choose.h (_header): Fix compiler warnings (deprecated conversion).
3455 2001-11-08 Pavel Tsekov <ptsekov@syntrex.com>
3457 * simpsock.h (SimpleSocket::invalidate): Declare new method.
3458 * simpsock.cc (SimpleSocket::invalidate): Implement new method.
3459 (SimpleSocket::SimpleSocket): Initialize buf to zero. Do not allocate
3460 memory for buf in the constructor.
3461 (SimpleSocket::~SimpleSocket): Use SimpleSocket::invalidate().
3462 (SimpleSocket::printf): Use SimpleSocket::write() instead of send().
3463 (SimpleSocket::write): Check object consistency - return -1 on error.
3464 invalidate() the object on socket write error.
3465 (SimpleSocket::fill): Check object consistency - return -1 on error.
3466 invalidate() the object if socket read error is encountered and there
3467 is no more data available in the internal read buffer.
3468 Allocate memory for the internal read buffer.
3469 (SimpleSocket::gets): Return zero (NULL pointer) if error is encountered
3470 during fill() and no more data is available in the internal read buffer.
3471 (SimpleSocket::read): Check object consistency - return -1 on error.
3472 invalidate() the object if socket read error is encountered.
3473 * nio-ftp.cc (NetIO_FTP:NetIO_FTP): Allow 125 as valid response code to
3474 the RETR command (fix for MS IIS ftp server 5 - possibly others too).
3475 (NetIO_FTP::ok): Check if the SimpleSocket object is ok().
3476 (NetIO_FTP::read): Use NetIO_FTP::ok().
3477 * nio-http.cc: Check for valid return value of SimpleSocket::gets().
3478 (NetIO_HTTP::ok): Check if the SimpleSocket object is ok().
3480 2001-11-09 Robert Collins <rbtcollins@hotmail.com>
3482 * simpsock.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3483 (SimpleSocket::SimpleSocket): Avoid compiler warnings (deprecated conversion).
3484 (SimpleSocket::printf): Ditto.
3485 (SimpleSocket::write): Ditto.
3486 * simpsock.h (SimpleSocket): Avoid compiler warnings for constructor,
3488 * nio-ftp.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3489 (NetIO_FTP::NetIO_FTP): Remove unused variable done.
3490 * nio-http.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3492 2001-11-07 Charles Wilson <cwilson@ece.gatech.edu>
3494 * geturl.cc (get_url_to_string): clean up memory leak
3495 (get_url_to_file): ditto
3497 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
3499 * localdir.cc (dialog_cmd): Go back to IDD_ROOT in every case.
3500 * source.cc (dialog_cmd): Go forward to IDD_ROOT in every case.
3502 2001-11-06 Pavel Tsekov <ptsekov@syntrex.com>
3504 * fromcwd.cc (found_file): Free() memory containing the version and
3505 filepath information for a given package, before replacing the pointers which
3506 reference this memory.
3508 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
3510 * fromcwd: Fix compiler warnings for cvsid.
3511 (canonicalize_version): Fix compilter warnings.
3512 (do_fromcwd): Ditto.
3513 * version.h: Fix compiler warnings for canonicalize_version.
3515 2001-11-03 Robert Collins <rbtcollins@hotmail.com>
3517 * res.rc (IDD_CHOOSE): Move the view caption to the right hand side.
3519 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3521 * res.rc (IDD_CHOOSE): Tweak for use on a 640x480 screen.
3523 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3525 * choose.cc (set_action): Correctly allow skip for any uninstalled package.
3527 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3529 * choose.cc (default_trust): Change the "Required" forced install category to
3532 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3534 * choose.cc: Ran indent.
3535 (set_action): When the requested trust level is missing and the level was not
3536 user requested, set the action to ACTION_SAME_CURR.
3538 2001-11-01 Christopher Faylor <cgf@redhat.com>
3540 * Makefile.in (mingw_getopt.o): Fix typo in non-verbose compilation.
3542 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3544 * choose.cc (_view::init_headers): Resync with the paint logic.
3546 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3548 * choose.cc (add_required): Allow SKIP and SRC_ONLY for currently installed
3551 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3553 * choose.cc (default_trust): Autoset currently installed packages per the user's
3554 selection of prev/curr/exp.
3556 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3558 * splash.cc (dialog_proc): Return TRUE as specified in the WIN32 API.
3560 2001-11-02 Pavel Tsekov <ptsekov@syntrex.com>
3562 * geturl.cc (is_showing): Remove.
3563 (is_local_install): New static variable. Controls whether the
3564 progress dialog and the supporting thread will be created.
3565 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the WIN32 API.
3566 (init_dialog): Remove usage of SetForegroundWindow and is_showing.
3567 This prevents the progress dialog to gain control over the
3568 application and fixes the "setup.exe going to background" problem.
3569 (progress): Use is_local_install.
3570 (get_url_to_string): Set is_local_install.
3571 (dismiss_url_status_dialog): Use is_local_install.
3572 * install.cc (dialog_proc): Return TRUE as specified in WIN32 API.
3573 (init_dialog): Remove usage of SetForegroundWindow.
3574 This prevents the progress dialog to gain control over the
3575 application and fixes the "setup.exe going to background" problem.
3577 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3579 * choose.cc (list_click): Change r to row for clarity.
3580 When we shrink the list below 1 page, scroll to the top of the list.
3581 (_view::click): Return the actual change for contractions.
3582 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the Win32 API.
3584 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3586 * choose.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
3587 * localdir.cc: Ran indent.
3588 (get_root_dir_now): New function.
3589 (save_local_dir): New function.
3590 (dialog_cmd): Use it and swap cygwin root selection and local dir selection order.
3591 (do_local_dir): If there is a saved local dir, read it in.
3592 * net.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
3593 * root.cc (dialog_cmd): Ditto.
3594 * source.cc (dialog_cmd): Ditto.
3596 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
3598 * choose.cc(list_vscroll): Return 0 as required by win32.
3599 (list_hscroll): Ditto.
3600 (list_click): Ditto.
3602 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
3606 * main.cc(WinMain): Use __argv to retrieve command line parameters.
3607 * Makefile,in: Remove argv.o.
3609 2001-11-01 Matt Hargett <matt@use.net>
3611 * geturl.cc (progress): Change int to unsigned int to eliminate
3613 * (get_url_to_string): Check for NULL pointer.
3614 * mount.cc (find2): Use free instead of delete for malloc'd
3616 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Fix memory leak.
3618 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
3620 * choose.cc(_view::insert_under): Handle linen > nlines and lines[linen] with neither
3621 a package nor a category. The lines[linen] bug was reported by Matt (matt@usa.net).
3622 (read_installed_db): Bugfix for testing whether a package has a source tarball.
3623 Reported by Matt (matt@usa.net).
3624 * geturl.cc(dialog): Rename gw_dialog to local_gw_dialog to avoid programmer
3625 confusion and lint errors. Reported by Matt (matt@usa.net).
3627 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
3629 * argv.cc: New file, converts arguments for -mwindows programs. (Simplified derivation
3632 * Makefile,in: Add argv.o and mingw_getopt.o to setup.exe object list.
3633 Add mingw_getopt.o build rule.
3634 * main.cc(WinMain): Initialise argv and argc for use by getopt.
3636 2001-10-27 Christopher Faylor <cgf@redhat.com>
3638 * res.rc: Rearrange info on top line slightly.
3640 2001-10-27 Christopher Faylor <cgf@redhat.com>
3642 * desktop.cc (make_passwd_group): Move file creation earlier in the
3643 process to ensure that passwd-grp.bat reflects desired operation.
3645 2001-27-10 Trevor Forbes <t4bs@hotmail.com>
3647 * postinstall.cc (each): Remove "*.done" file else rename will fail.
3649 2001-10-16 Christopher Faylor <cgf@redhat.com>
3651 * res.rc: Oops. Take 640x480 screen size into account.
3653 2001-10-16 Christopher Faylor <cgf@redhat.com>
3655 * res.rc: Enlarge chooser screen.
3657 2001-10-12 Christopher Faylor <cgf@redhat.com>
3659 * Makefile.in: Accomodate changes to w32api_include macro.
3661 2001-10-12 Christopher Faylor <cgf@redhat.com>
3663 * Makefile.in: Use correct flags for windres.
3665 2001-10-12 Christopher Faylor <cgf@redhat.com>
3667 * Makefile.in (CFLAGS): Remove -nostdinc from CFLAGS.
3669 2001-10-12 Christopher Faylor <cgf@redhat.com>
3671 * choose.cc (pick_line::paint): Reorganize after botched patch.
3673 2001-10-12 Christopher Faylor <cgf@redhat.com>
3675 * choose.cc (pick_line::paint): Add missing declaration.
3677 2001-10-10 Ralf Habacker <Ralf.Habacker@freenet.de>
3679 * choose.cc (pick_line::paint): Add package name to sdesc for display.
3681 Wed Sep 26 21:39:00 Robert Collins rbtcollins@hotmail.com
3683 * choose.cc (_view::insert_pkg): Correctly exit loop.
3684 * iniparse.y (register_category): Always insert new categories.
3686 Fri Sep 21 13:56:32 2001 Christopher Faylor <cgf@cygnus.com>
3688 * inilex.l (yylex): For comments, eat all characters up to, but not
3691 Sun Aug 26 12:50:01 2001 John Marshall <jmarshall@acm.org>
3693 * fromcwd.cc (found_file): Use correct package name when adding an
3694 unknown package rather than random stack garbage.
3696 Sun Aug 12 14:25:21 2001 Christopher Faylor <cgf@cygnus.com>
3698 * desktop.cc (make_passwd_group): .bat files need \r\n endings.
3700 Wed Aug 8 13:53:47 2001 Christopher Faylor <cgf@cygnus.com>
3702 * desktop.cc (etc_profile): Leave environment variables untouched.
3704 2001-08-07 Corinna Vinschen <corinna@vinschen.de>
3706 * autoload.c: Add dynamic load statements for NT/W2K
3707 advapi32 functions not available in 9x/ME.
3708 * main.cc (set_default_dacl): New function.
3709 (WinMain): Call `set_default_dacl' if running on NT/W2K.
3711 Sat Aug 4 21:35:53 2001 Christopher Faylor <cgf@cygnus.com>
3713 * ini.h (_CategoryPackage): Change pkg field to pkgname for
3715 * choose.cc: Use pkgname field when referencing _CategoryPackage
3717 (fill_missing_category): Don't add excluded packages.
3718 (default_trust): Ditto.
3719 (_view::insert_pkg): Ditto.
3720 * iniparse.y (register_category): Use consistent variable name.
3722 2001-07-09 Egor Duda <deo@logos-m.ru>
3724 * choose.cc: Use system foreground color for text output.
3726 Sat Jul 7 00:40:28 2001 Christopher Faylor <cgf@cygnus.com>
3728 * choose.cc (set_action): Use default trust for determining reinstall
3730 (default_trust): Set default trust.
3731 (pick_line::paint): Allow source selection when reinstalling or
3734 Fri Jul 6 18:08:49 2001 Christopher Faylor <cgf@cygnus.com>
3736 * choose.cc (isinstalled): Modify to properly accomodate special case
3738 (set_action): Check downloaded components, not installed components if
3740 (set_existence): Always include full list of files when "download
3743 Fri Jul 6 00:37:05 2001 Christopher Faylor <cgf@cygnus.com>
3745 * choose.cc (pick_line::paint): Properly display "na" field when no
3748 Thu Jul 5 00:34:23 2001 Christopher Faylor <cgf@cygnus.com>
3750 * choose.cc (scan2): Ensure that older versions do not show up in
3753 Mon Jul 2 15:47:59 2001 Christopher Faylor <cgf@cygnus.com>
3755 * choose.cc (set_action): Allow "Skip" action if trust != installed.
3756 * res.rc: Fix copyright.
3758 Sat Jun 30 14:05:21 2001 Michael A Chase <mchase@ix.netcom.com>
3760 * res.rc (IDD_LOCAL_DIR): Change caption to match the other dialog
3762 (IDD_CHOOSE): Adjust horizontal size so package names are visible.
3764 * choose.cc: Restore some more changes from 2001-06-25, throughout.
3765 (paint): Wrap some excessively long lines.
3766 (pick_line::paint): Ditto. Move the arrow in the "Current" column
3767 right to where it belongs. Move the source checkbox slightly to the
3769 (do_choose): List categories and required packages in setup.log.full.
3771 Sat Jun 30 23:04:59 2001 Christopher Faylor <cgf@cygnus.com>
3773 * choose.cc (scan2): Restore source scanning eliminated by previous checkin.
3775 Sat Jun 30 15:18:33 2001 Christopher Faylor <cgf@cygnus.com>
3777 * ini.h (struct _Info): Add "derived" element.
3778 * choose.cc (scan2): Try to place unknown tar files into proper slot
3779 when package exists in setup.ini but tar file does not.
3781 Sat Jun 30 13:39:00 2001 Robert Collins <rbtcollins@hotmail.com>
3783 * choose.cc (create_listview): Call set_view_mode with VIEW_CATEGORY.
3784 (do_choose): Log the first category name.
3786 Fri Jun 29 23:07:44 2001 Christopher Faylor <cgf@cygnus.com>
3788 *ini.h: Reapply 2001-06-25 changes.
3789 * choose.cc (add_required): Ditto. Default to "Keep" state if
3790 UNINSTALL and product is installed. Default to curr state if SKIP,
3792 (keep_or_skip): New function. Returns skip or keep state depending on
3793 installed state of package.
3794 (default_trust): Use keep_or_skip to set state.
3795 (_view::insert_pkg): Use calloc to allocate lines.
3796 (set_view_mode): Adapt 2001-06-25 change to set_full_list here.
3798 Sat Jun 30 11:01:00 2001 Robert Collins <rbtcollins@hotmail.com>
3800 * choose.cc: Remove globals full_list, headers, package_indexes and
3802 Add globals cat_headers, pkg_headers and chooser.
3803 (add_required): New function.
3804 (paint): Use the chooser for header details.
3805 Call into the chooser to paint each line.
3806 (list_click): Use new global variables.
3807 Call into the chooser to handle the click.
3808 Repaint the entire view if packages have been added or removed.
3809 (note_width): Get passed a headers struct rather than using a global
3811 (fill_missing_category): New function.
3812 (default_trust): Skip non-"Required" or "Misc" packages.
3813 (pick_line::set_line (Package *)): New function.
3814 (pick_line::set_line (Category *)): New function.
3815 (pick_line::paint): New function.
3816 (pick_line::click): New function.
3817 (_view::_view): New function.
3818 (_view::set_view_mode): New function.
3819 (_view::mode_caption): New function.
3820 (_view::set_headers): New function.
3821 (_view::init_header): New function.
3822 (_view::insert_pkg): New function.
3823 (_view::insert_category): New function.
3824 (_view::insert_at): New function.
3825 (_view::insert_under): New function.
3826 (_view::clear_view): New function.
3827 (viewsplusplus): New function.
3828 (_view::client): New function.
3829 (set_view_mode): Use new chooser functionality.
3830 (set_full_list): Use new global variables.
3831 (create_listview): Instantiate chooser.
3832 Remove all hardcoded headers[] code.
3833 (dialog_cmd): On trust changes, check dependencies.
3834 (getcategorybyname): New function.
3835 (getpackagecategorybyname): New function.
3836 (scan2): Use case-insensitive package comparison.
3837 (do_choose): Use fill_missing_category ().
3838 Show some category data.
3839 * ini.h: Protect against multiple inclusion.
3841 (_CategoryPackage): New struct.
3842 (_Category): New struct.
3843 (_Package): Change category to Category * from char *.
3844 (extern Category category): New global variable.
3845 (extern in ncategories): Ditto.
3846 (getcategorybyname): New prototype.
3847 (catpackagecategorybyname): New prototype.
3848 (register_category): New prototype.
3849 (add_category): New prototype.
3850 * iniparse.y: Parse multiple categories per package.
3851 (category): New global variable.
3852 (ncategories): New global variable.
3853 (new_package): Compare package against NULL, not 0.
3854 (new_requirement): Source formatting fix.
3855 (register_category): New function.
3856 (add_category): New function.
3857 * res.rc: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
3858 IDC_CHOOSE_VIEWCAPTION: New control.
3859 * resource.h: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
3860 IDC_CHOOSE_VIEWCAPTION: New control.
3861 Increment _APS_NEXT_CONTROL_VALUE.
3863 Mon Jun 25 00:56:37 2001 Michael A Chase <mchase@ix.netcom.com>
3865 * choose.cc (paint): Wrap excessively long lines.
3866 (list_click): Ditto.
3867 (create_listview): Ditto.
3868 (do_choose): Ditto. Replace TABs and remove CRs in lines written to
3869 setup.log.full. Allow "Yes" for source exists in setup.log.full when
3870 installing from local directories.
3872 Mon Jun 25 00:56:37 2001 Christopher Faylor <cgf@cygnus.com>
3874 * choose.cc (set_action): Only clear srcpicked when moving to next
3875 state. Allow source installation if it exists in the current "trust"
3876 state. Don't move to skip state when package is installed.
3877 (list_click): Don't allow source clicking when no source is available.
3878 (set_full_list): Display package when not is_full_action.
3879 * ini.h (is_full_action): Define.
3881 Sun Jun 17 12:06:14 2001 Christopher Faylor <cgf@cygnus.com>
3883 * install.cc (check_for_old_cygwin): New function. First stab at
3884 checking for old cygwin versions.
3885 (do_install): Call check_for_old_cygwin if there were no errors during
3888 Sat Jun 16 11:33:51 2001 Michael A Chase <mchase@ix.netcom.com>
3890 * choose.cc (_Info::_Info): Test _source paramenter for non-NULL rather
3891 than zeroed "source" element.
3893 Fri Jun 15 20:54:43 2001 Christopher Faylor <cgf@cygnus.com>
3895 * choose.cc (scan2): Insert unknown tar archives, found on disk, into
3896 the highest available "hole" in the trust array.
3898 Fri Jun 15 00:20:48 2001 Christopher Faylor <cgf@cygnus.com>
3900 * choose.cc (set_existence): Use pointer method for indexing in trust
3902 (create_listview): Ditto.
3903 (scan2): Ditto. Also, use consistent variable name for indexing into
3905 * ini.h (Package): Reorganize info array for easier scanning.
3907 Fri Jun 15 00:01:51 2001 Christopher Faylor <cgf@cygnus.com>
3909 * choose.cc (isinstalled): Eliminate special download only test.
3910 (set_action): Don't move to next state if in ACTION_SAME range and not
3912 (choose_caption): Display "Retrieve" rather than "Reinstall" when just
3914 (do_choose): Sort packages after all packages have been read.
3915 Accomodate the fact that first element in trust array is empty so that
3916 log files don't report the wrong trust value.
3917 * iniparse.y (new_package): Malloc space for package name or suffer
3920 Thu Jun 14 22:43:59 2001 Robert Collins <rbtcollins@hotmail.com>
3922 * ini.h (Dependency): New structure. Declare new function.
3923 * inilex.l (yylex): Detect new setup.ini options - category and requires.
3924 * iniparse.y: Declare new setup.ini token values.
3925 (yyparse): Parse new token values.
3926 (new_requirement): New function.
3928 Thu Jun 14 22:43:26 2001 Christopher Faylor <cgf@cygnus.com>
3930 * choose.cc (read_installed_db): Eliminate obsolete code.
3932 Thu Jun 14 22:11:53 2001 Christopher Faylor <cgf@cygnus.com>
3934 * choose.cc (set_action): Set trust on "redo".
3935 (_Info::_Info): New constructor.
3936 (read_installed_db): Use new constructor. Use trusts type for
3938 * ini.h (struct _Info): Label struct, add constructor.
3939 (Package): Make installed_ix a type 'trusts.'
3940 * install.cc (uninstall_one): Unset any installed info for current
3942 (install_one): Allocate new Info struct for installed reflecting new
3944 (do_install): Don't output line to installed.db if package is being
3947 Thu Jun 14 20:33:01 2001 Robert Collins <rbtcollins@hotmail.com>
3949 * choose.cc (getpkgbyname): Use consistent method for scanning package
3952 Wed Jun 13 23:33:08 2001 Christopher Faylor <cgf@cygnus.com>
3954 * choose.cc: Add some comments.
3955 (getpkgbyname): Use strcasecmp for comparisons.
3957 Wed Jun 13 16:07:00 2001 Christopher Faylor <cgf@cygnus.com>
3959 * install.cc (do_install): Avoid checking for download action if
3960 package wasn't currently retrieved.
3962 Wed Jun 13 11:27:22 2001 Christopher Faylor <cgf@cygnus.com>
3964 * choose.cc: Eliminate extra array throughout. Use element in package
3965 structure instead. Use pointers rather than array indexes where
3967 (set_action): New function to set next action based on current.
3968 (choose_caption): New function. Returns display caption.
3969 (check_existence): Change arguments. Use pointer to 'info' structure.
3970 (set_existence): Use pointer rather than array index.
3971 (default_trust): Use trusts enum for second argument.
3972 (set_full_list): Honor exclude element in package structure.
3973 (build_labels): Eliminate.
3974 (base): Make global. Use const char * argument.
3975 (get_package_version): Eliminate.
3976 (getpkgbyname): New function.
3977 (read_installed_db): Use parse_filename to get version info.
3978 * desktop.cc (make_passwd_group): Use getpkgbyname function.
3979 * download.cc (get_file_size): const argument.
3980 (do_download): Use is_download_action to determine when something
3981 should be downloaded.
3982 * filemanip.h: Add some functions.
3983 * ini.cc (do_ini): Use NULL rather than 0 for pointer assignment.
3984 * ini.h: Use enums for actions and trusts.
3985 (is_download_action): New macro.
3986 (is_upgrade_action): Ditto.
3987 (is_uninstall_action): Ditto.
3988 (struct Package): Add new fields.
3989 * inilex.l (yylex): Detect new setup.ini options.
3990 * iniparse.y: Declare new tokens.
3991 (yyparse): Detect exclude keyword. Fill out version field even if
3993 (new_package): Use greater granularity when allocating package array to
3994 avoid repeated calls to realloc.
3995 * install.cc (exists): const argument.
3996 (uninstall_one): Take pkg argument.
3997 (install_one): Ditto. Eliminate unneeded arguments which can be
3998 derived from package info.
3999 (do_install): Iterate over package array using a pointer. Use
4000 is_download_action to control when package should be downloaded.
4001 * tar.cc (tar_open): const argument.
4002 * tar.h: Refloect const argument.
4004 2001-05-31 Michael Chase mchase@ix.netcom.com
4006 * main.cc (WinMain): Add setup version to starting setup.log entry
4008 Tue May 29 21:37:58 2001 Yukihiko Sohda <sohda@is.titech.ac.jp>
4010 * inilex.l: Add + to list of valid string characters.
4012 Mon May 28 20:54:50 2001 Christopher Faylor <cgf@cygnus.com>
4014 * Makefile.in: Remove more stuff in the clean target.
4016 Mon May 28 18:24:59 2001 Christopher Faylor <cgf@cygnus.com>
4018 * Makefile.in: Correctly generate iniparse.h.
4020 Tue Mar 6 19:14:00 2001 Corinna Vinschen <corinna@vinschen.de>
4022 * geturl.cc (get_url_to_file): Add parameter `allow_ftp_auth'.
4023 * geturl.h: Change declaration of `get_url_to_file' accordingly.
4024 * netio.cc (NetIO::NetIO): Add parameter `allow_ftp_auth'.
4025 Set member `ftp_auth'.
4026 (NetIO::open): Add parameter `allow_ftp_auth'. Use it in calls
4027 to constructors of derived classes.
4028 (NetIO::get_ftp_auth): New method.
4029 * netio.h: Change class definition accordingly.
4030 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Add parameter `allow_ftp_auth'.
4031 Take global variables `net_ftp_user' and `net_ftp_passwd' into account.
4032 Add code for ftp authentication retry.
4033 * nio-ftp.h: Change class definition accordingly.
4034 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Add parameter `allow_ftp_auth'.
4035 Add code for ftp authentication retry in case of proxy connection.
4036 * nio-http.h: Change class definition accordingly.
4037 * res.rc: Add FTP authentication dialog.
4038 * resource.h: Add new constants used in res.rc.
4039 * state.h: Add variables `net_ftp_user' and `net_ftp_passwd'.
4041 Sun May 27 17:12:23 2001 Christopher Faylor <cgf@cygnus.com>
4043 * res.rc (IDD_SPLASH): Add a copyright year.
4045 Sun May 27 15:42:18 2001 Christopher Faylor <cgf@cygnus.com>
4047 * Makefile.in: Make iniparse.y produce a c++ file.
4048 * choose.cc (set_existence): Revert 2001-05-27 change.
4049 * ini.cc: Remove "C" from declaration of yyparse.
4050 * iniparse.y (yyparse): Fill out version field by default when a binary
4051 install is detected and no version has been set yet.
4052 * install.cc (do_install): Mount things earlier so that we can use
4053 proper mount table settings. Don't remove mounts since they are now
4055 * mount.cc (create_mount): Reread the mount table after establishing a
4057 (read_mounts): Explicitly clear root_here to allow multiple uses of
4058 this function. Ensure that there is no garbage in the table when we've
4059 exhausted all of the mounts in the registry.
4060 (cygpath): Accomodate ./ in path.
4062 Sun May 27 02:59:07 2001 Christopher Faylor <cgf@cygnus.com>
4064 Use parse_filename method to parse filenames throughout. Use
4065 get_root_dir to retrieve the current root directory throughout. Set
4066 const in argument list, where appropriate, throughout.
4067 * choose.cc (set_existence): Detect case of uninstalled package with no
4069 (parse_filename): New function.
4070 * filemanip.h (fileparse): New structure.
4071 * mount.cc (read_mounts): Remember where we found the root mount.
4072 (set_root_dir): New function.
4073 (get_root_dir): Ditto.
4074 * mount.h: Declare new functions.
4075 * site.cc (get_root_dir_now): Renamed from get_root_dir.
4076 (save_site_url): Use new function name.
4077 (get_initial_list_idx): Ditto.
4079 Sat May 26 21:23:59 2001 Christopher Faylor <cgf@cygnus.com>
4081 * choose.cc: Use a constant throughout to deal with chooser icon
4083 * res.rc (IDD_CHOOSE): Increase size of chooser box.
4085 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
4087 * choose.cc (do_choose): Fix incorrect assignment of trust setting to
4088 use when Redownload or Sources Only selected.
4090 Thu May 10 22:35:59 2001 Christopher Faylor <cgf@cygnus.com>
4092 Reformat file after botched patch formatting.
4093 * choose.cc (which_trust): Eliminate variable.
4094 (default_trust): Don't set which_trust.
4095 (do_choose): Use selected trust when reinstalling or installing source.
4097 Thu May 10 21:04:18 2001 Christopher Faylor <cgf@cygnus.com>
4099 Change concat to cygpath throughout.
4100 Change map_filename to cygpath throughout.
4101 * concat.cc (vconcat): New function.
4102 (concat): Use vconcat.
4103 * concat.h: Reflect above.
4104 * install.cc (map_filename): Eliminate.
4105 (install_one): Free dest_file.
4106 * mount.cc (find2): Expect input key to be pointing to mount record.
4107 (in_table): New function.
4108 (is_admin): Move from root.cc.
4109 (read_mounts): New function.
4110 (path_prefix_p): New function.
4111 (cygpath): New function.
4112 * mount.h: Define new functions and structure.
4113 * root.cc (in_table): Move to mount.cc.
4114 (do_root): Call read_mounts to initialize root stuff and mount table.
4115 * site.cc (get_root_dir): Ditto.
4117 2001-05-09 Matt Hargett <matt@use.net>
4119 * Makefile.in: Remove *.rc from clean.
4121 Tue May 8 23:33:38 2001 Christopher Faylor <cgf@cygnus.com>
4123 * choose.cc (scan2): Fix incorrect setting of TRUST_CURR rather than
4124 TRUST_PREV which produced "0" versions.
4126 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
4128 * resource.h: Add new field IDC_CHOOSE_INST_TEXT. Modify
4129 _APS_NEXT_CONTROL_VALUE to account for addition of
4130 IDC_CHOOSE_INST_TEXT.
4131 * res.rc (IDD_CHOOSE): Modify choose dialog to use new field
4132 IDC_CHOOSE_INST_TEXT for screen text. Modify choose Dialog to allow
4133 hot keys to select Prev, Curr, Exp.
4134 * ini.h: Add new actions for ACTION_REDO and ACTION_SRC_ONLY. Modify
4135 define for LOOP_PACKAGES to include new actions ACTION_REDO and
4137 * choose.cc: Add new Trusts for TRUST_REDO and TRUST_SRC_ONLY.
4138 (paint): Modify to check TRUST_SRC_ONLY when determining Bitmap for
4139 source Checkbox to use.
4140 (build_labels): Add logic to allow for selection of Source only
4141 Download/ReDownload/Install/Reinstall and also to Redownload/Reinstall
4142 current version binary.
4143 (dialog_proc): Add conditional display for file selection prompt based
4144 on download vs install using IDC_CHOOSE_INST_TEXT.
4145 (do_choose): Add new logic for TRUST_REDO and TRUST_SRC_ONLY selection
4146 and modify logic for TRUST_UNINSTALL, TRUST_KEEP, and TRUST_NONE to
4147 handle the instance where Source Download/Install was selected. Modify
4148 log file to store appropriate information regarding Action selected and
4149 the new actions that were added (I.E.: ACTION_REDO and
4151 * download.cc: Add include for <unistd.h> and "port.h".
4152 (download_one): Modify parameter list to include the selected action
4153 for the file to be downloaded. Modify size check against expected size
4154 to include check for ACTION_REDO and ACTION_SRC_ONLY. Modify rename of
4155 .tmp file to also remove the destination file if exists due to ability
4156 to redownload source and binary now.
4157 (do_download): Modify to also use ACTION_REDO and ACTION_SRC_ONLY in
4158 calculation of Download Bytes. Modify to also use ACTION_REDO and
4159 ACTION_SRC_ONLY in determining files selected for download.
4160 * install.cc (uninstall_one): Add check to treat a Reinstall like an
4161 upgrade so current version will be uninstalled prior to reinstall.
4162 (do_install): Add logic to handle ACTION_REDO and ACTION_SRC_ONLY for
4163 uninstalling and installing binary and source packages.
4164 * desktop.cc (make_passwd_group): Modify logic to account for a Source
4165 only cygwin install when checking for cygwin to determine need for
4166 mkpasswd and mkgroup.
4168 Mon May 7 23:33:30 2001 Matt Hargett <matt@use.net>
4170 * winsup/cinstall/res.rc: Added accelerators and improved focus order.
4171 Removed WS_DISABLED from "OK" buttons to accomodate default focus
4172 changes in net.cc and source.cc.
4173 * winsup/cinstall/net.cc (dialog_proc): If no radio button is selected,
4174 a default is selected.
4175 * winsup/cinstall/source.cc (dialog_proc): Ditto.
4176 (check_if_enable_next): Removed. No longer needed since a radio button
4177 will always be selected.
4178 (load_dialog): Removed call to check_if_enable_next.
4179 (dialog_cmd): Ditto. Also added default to switch.
4181 Tue Apr 24 23:42:02 2001 Christopher Faylor <cgf@cygnus.com>
4183 * res.rc: Resize affected text.
4185 Tue Apr 24 23:35:31 2001 Christopher Faylor <cgf@cygnus.com>
4187 * net.cc (do_net): Default to direct download.
4188 * res.rc: Move default selections to the top.
4190 2001-04-18 Earnie Boyd <earnie@users.sourceforge.net>
4192 * win32.h: Remove the definitions for _UNION_NAME and _STRUCT_NAME.
4193 Must now include <windows.h> and not the pieces.
4194 * choose.cc (create_listview): Clean up type mismatch problems.
4195 * dialog.h (NEXT(id)): Ditto.
4196 * geturl.cc (dialog): Ditto.
4197 * install.cc (dialog): Ditto.
4198 * splash.cc (load_dialog): Ditto.
4200 Wed Apr 18 18:59:21 2001 Christopher Faylor <cgf@cygnus.com>
4202 * tar.cc (class gzbz): Define dummy virtual functions.
4204 Wed Apr 18 16:01:21 2001 Christopher Faylor <cgf@cygnus.com>
4206 * Makefile.in: Add bz2 include/library support.
4207 * filemanip.h: New file.
4208 * choose.cc (find_tar_ext): New function. Returns TRUE if .tar.gz or
4210 (scan2): Reorganize to use find_tar_ext, accomodating .bz2 extension.
4211 (read_installed_db): Ditto.
4213 * fromcwd.cc (found_file): Ditto.
4214 (do_fromcwd): Ditto.
4215 * tar.cc (class gzbz): New super class for uncompression support.
4216 (gz): New class for gzip support.
4217 (bz): New class for bzip2 support.
4218 (tar_open): Use gzbz class to control file opening.
4219 (tar_ftell): Ditto for returning position in file.
4220 (skip_file): Ditto for reading file.
4221 (tar_next_file): Ditto.
4222 (tar_read_file): Ditto.
4223 (tar_close): Ditto for close.
4225 * zlib/configure.in: Force NM substitution.
4227 * source.cc (do_source): Default to "Install from Internet".
4229 2001-03-16 Brian Keener <bkeener@thesoftwaresource.com>
4231 * nio-file.cc (NetIO_File::NetIO_File): Use `get_file_size' instead of
4233 * choose.cc (list_click): Correct inability to select source code for
4235 (scan2): Modify to skip source tarballs when scanning disk for
4236 installable packages.
4238 2001-03-10 Chris Abbey <chris_abbey@yahoo.com>
4240 * install.cc: install sources into /usr/src instead
4241 of /, also include the sizes of source tarballs
4243 * download.cc: include sizes of source tarballs in
4244 total_download_bytes.
4246 Tue Mar 6 19:31:00 2000 Corinna Vinschen <corinna@vinschen.com>
4248 * download.cc (get_file_size): Remove `static'.
4250 Tue Mar 6 19:11:00 2000 Corinna Vinschen <corinna@vinschen.com>
4252 * tar.cc (tar_open): Use `get_file_size' instead of `stat'.
4254 2001-03-06 Brian Keener <bkeener@thesoftwaresource.com>
4256 * choose.cc (paint): Modify message for nothing to download vs
4257 nothing to install/update based on installation method.
4258 (list_click): Modify to skip versions in selection process if
4259 installing from local directory and installation file does not exist.
4260 Also leaves Source Action set to N/A if the source file does not exist
4261 and installing from local directory.
4262 (check_existence): New method to check current existence of installation
4263 files based on selected installation method.
4264 (set_existence): New method to set the current existence of installation
4265 files based on selected installation method.
4266 (best_trust): Modify decision process for best trust to base decision on
4267 current trust selected (IE: Prev, Curr, or Test), existence of file and
4268 installation method selected.
4269 (default_trust): Add logic to capture the current trust level and the
4270 trust selected for the given package.
4271 (set_full_list): Expand decision criteria for displaying a package in
4272 the selection list to include file existence/non-existence and selected
4273 installation method.
4274 (build_labels): Modify criteria for label addition to include
4275 installation method and file existence/non-existence.
4276 (create_listview): Modify to establish package trust level for each
4277 package before setting up the display list. Also modification to set
4278 current trust button as the default.
4279 (dialog_cmd): Set response for Prev, Curr, Test button push to perform
4280 a reset of the selection list in addition to setting the default trust.
4281 (get_package_version): New method to provide reusable code for
4282 determining the package version from the file name for a specified
4284 (scan2): Modify to use new method get_package_version and
4285 also enhance handling of the build for the structures package and
4287 (read_installed_db): Modify to use the new method
4288 get_package_version and also enhance handling of the build for the
4289 structures package and extra.
4290 (do_choose): Add additional initialization of package and extra
4291 structures. Modify to use read_installed_db all the time despite
4292 install method. Modify output to setup.log.full log file to increase
4293 readability by adding additional spacing, expanded code and available
4295 * ini.h: Add new fields install_exists, source_exists and
4296 partial_list_display to the structure definition for package.
4297 * res.rc (IDD_CHOOSE): Modify choose dialog Prev, Curr, and Test
4298 pushbuttons by replacing with Radio Buttons thus allowing the
4299 operator to better determine which is selected.
4301 2001-02-20 Brian Keener <bkeener@thesoftwaresource.com>
4303 * download.cc (do_download): Add new variables total_download_bytes and
4304 total_download_bytes_sofar for download progress meter. Add loop
4305 to accumulate the total bytes to download from the selected packages.
4306 * geturl.cc: Add state.h and diskfull.h to include list. Add new
4307 variables gw_iprogress, gw_pprogress, gw_progress_text,
4308 gw_pprogress_text, and gw_iprogress_text to allow for addition of
4309 total packages download progress meter and disk full percent
4310 progress meter. Add variables total_download_bytes and
4311 total_download_bytes_sofar for use by progress meters.
4312 (dialog_proc): Add new variables gw_iprogress, gw_pprogress,
4313 gw_progress_text, gw_pprogress_text, and gw_iprogress_text to
4314 allow for addition of total packages download progress meter and disk
4315 full percent progress meter.
4316 (init_dialog): Ditto.
4318 (get_url_to_file): Ditto.
4319 * geturl.h: Add external definition for total_download_bytes and
4320 total_download_bytes_sofar.
4321 * res.rc: Add two additional progress meters (IDC_DLS_IPROGRESS)
4322 and (IDC_DLS_PPROGRESS) and three text objects (IDC_DLS_PROGRESS_TEXT)
4323 and (IDC_DLS_IPROGRESS_TEXT, IDC_DLS_PPROGRESS_TEXT) for use in the
4325 * resource.h: Add new fields for progress meters and text and update
4326 _APS_NEXT_CONTROL_VALUE.
4328 Wed Feb 21 13:05:00 2000 Corinna Vinschen <vinschen@redhat.com>
4330 * download.cc (get_file_size): Check for INVALID_HANDLE_VALUE instead
4333 Wed Feb 21 11:21:00 2000 Corinna Vinschen <vinschen@redhat.com>
4335 * download.cc (download_one): Add missing parenthesis.
4337 Mon Feb 19 18:59:00 2000 Corinna Vinschen <vinschen@redhat.com>
4339 * download.cc (get_file_size): New function. Eliminates the need
4341 (download_one): Call `get_file_size' instead of `stat'. This
4342 workarounds a problem with mingw's `stat' call.
4344 2001-02-07 Earnie Boyd <earnie@users.sourceforge.net>
4346 * Makefile.in: (%.o: %.rc): Specify --include-dir $(w32api_include).
4347 This is to allow cinstall to build with 2.95.2-7 and to make the
4348 use of headers consistent.
4350 2000-12-26 Earnie Boyd <earnie_boyd@yahoo.com>
4352 * Makefile.in (autoload.o): Add target to specify -fno-inline-functions
4354 Tue Dec 26 03:46:00 2000 Matt Hargett <matt@use.net>
4356 * winsup/cinstall/res.rc: Added accelerators and improved focus
4359 2000-12-10 Egor Duda <deo@logos-m.ru>
4361 * choose.cc (paint): Use system background color for text output.
4363 Sun Dec 10 19:05:25 2000 Christopher Faylor <cgf@cygnus.com>
4365 * Makefile.in: Use CXX for linking and for compiling .cc files.
4366 * configure.in: Find correct c++ compiler.
4367 * configure: Regenerate.
4369 2000-11-17 DJ Delorie <dj@redhat.com>
4371 * splash.cc (load_dialog): Make message more obvious.
4374 Fri Nov 17 17:15:21 2000 Christopher Faylor <cgf@cygnus.com>
4376 * Makefile.in: Use g++ to link so that libstdc++.a gets used. This is
4377 necessary for newer compilers.
4379 Wed Nov 9 2:19:00 2000 Corinna Vinschen <vinschen@redhat.com>
4381 * desktop.cc: Include "ini.h" and "version.h".
4382 (make_passwd_group): Skip the function on 9x/ME boxes when an
4383 older version of Cygwin has been installed which doesn't
4384 support mkpasswd/mkgroup on 9x/ME.
4385 * install.cc: Move the `LOOP_PACKAGES' and `pi' macros to...
4388 Wed Nov 8 17:10:00 2000 Corinna Vinschen <vinschen@redhat.com>
4390 * desktop.cc (make_passwd_group): Don't exit when started
4391 on 9x/ME since mkpasswd/mkgroup are usable on 9x/ME now.
4393 Sun Nov 5 12:51:42 2000 Jason Tishler <jt@dothill.com>
4395 * install.cc (do_install): Add call to set_cygdrive_flags to sync
4397 * mount.cc (set_cygdrive_flags): New function.
4398 (get_cygdrive_flags): Ditto.
4399 (default_cygdrive): Ditto.
4400 (set_cygdrive_flags): Ditto.
4401 * mount.h: Add prototype for set_cygdrive_flags.
4403 2000-10-23 DJ Delorie <dj@redhat.com>
4405 * ini.h: add source actions
4406 * fromcwd.cc: check for available sources
4407 * res.rc: add checkbox bitmaps
4410 * choose.cc: add source column
4411 * download.cc: download sources if called for
4412 * install.cc: [un]install sources too
4414 2000-10-22 DJ Delorie <dj@redhat.com>
4416 * choose.cc (build_labels): Don't skip TRUST_PREV completely; only
4417 ignore it wrt full_list if there's already a version installed.
4418 (do_choose): Sort the list.
4419 (package_sort): New.
4421 2000-10-12 DJ Delorie <dj@redhat.com>
4423 * res.rc: Add more error strings.
4424 * resource.h: Ditto.
4425 * iniparse.y (new_package): re-initialize if needed.
4426 * download.cc (do_download): Keep track of errors; notify and
4428 * install.cc (do_install): Ditto.
4430 2000-10-05 DJ Delorie <dj@redhat.com>
4432 * Makefile.in: fix %.cc rule
4434 2000-10-04 DJ Delorie <dj@redhat.com>
4436 * desktop.cc: quote HOME and USER, don't . ./.profile
4438 * choose.cc (build_labels): don't include in partial list just
4439 because there's a *previous* version available.
4441 * install.cc (do_install): if installing from local directory with
4442 setup.ini and the file isn't found, look in "." also. Note errors.
4444 2000-10-02 DJ Delorie <dj@redhat.com>
4446 * ini.cc (do_ini): save setup.ini locally
4448 2000-10-02 Chris Abbey <cabbey@bresnanlink.net>
4450 * desktop.cc: quote escapes in prompt
4452 2000-10-02 Jason Tishler <jt@dothill.com>
4454 * root.cc (is_admin): New function.
4455 (read_mount_table): Check for administrative priviledges and set
4456 installation scope as appropriate.
4458 2000-09-28 DJ Delorie <dj@redhat.com>
4460 * nio-ftp.cc (ftp_line): handle continuations more robustly
4462 2000-09-14 Brian Keener <bkeener@thesoftwaresource.com>
4464 * res.rc: increased the size of the site dialog (IDD_SITE) & the
4465 corresponding list box to provide for more URL's to be listed.
4466 Modified the position of the Back, Next and Cancel buttons to
4467 correspond to the new size of the dialog.
4469 2000-09-13 DJ Delorie <dj@redhat.com>
4471 * install.cc (do_install): update disk fullness once per package
4472 to improve performance
4474 * choose.cc (create_listview): call ReleaseDC
4476 Mon Sep 11 22:40 2000 Harold L Hunt II <harold@compasstechnologies.com>
4478 * mkdir.cc: Create directories when ERROR_FILE_NOT_FOUND is
4479 returned, as it seems Samba 2.0.6+ returns this instead of
4480 ERROR_PATH_NOT_FOUND
4482 Mon Sep 11 19:35:24 2000 Christopher Faylor <cgf@cygnus.com>
4484 * site.cc (get_initial_list_idx): Don't default to saved URL if it
4487 2000-09-07 DJ Delorie <dj@redhat.com>
4489 * splash.cc: use version.h, not local decl
4490 * res.rc: add "old version" message
4493 * fromcwd.cc (canonicalize_version): make global
4494 * iniparse.y: add setup-version support, fix bug in blank line
4497 * inilex.l: add [exp] as alias for [test], add setup-version
4498 * Makefile.in (version.c): add setup-version tag
4500 * desktop.cc (do_desktop): remove 1.1 version number
4501 (do_desktop_setup): ditto
4503 * ini.cc (do_ini): zero out package list just in case we redo it.
4505 2000-09-07 Jeffrey Juliano <juliano@cs.unc.edu>
4507 * choose.cc (list_click): Check for nindexes==0; if so, return.
4509 2000-09-06 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
4511 * localdir.cc: new, local package directory selection dialog; cd
4512 into selected directory
4513 * Makefile.in (OBJS): add localdir.o
4514 * dialog.h: add prototype for do_local_dir
4515 * main.cc (WinMain): initialize local_dir to cwd; add call to
4517 * net.cc (dialog_cmd): make DO_LOCAL_DIR next dialog
4518 * source.cc (dialog_cmd): ditto
4519 * res.rc: add DO_LOCAL_DIR dialog; remove "current directory" from
4520 presented choices in IDD_SOURCE; add IDS_ERR_CHDIR error string
4521 * resource.h: defines for DO_LOCAL_DIR dialog; define IDS_ERR_CHDIR
4522 * root.cc (dialog_cmd): make DO_LOCAL_DIR previous dialog
4523 * state.h: add local_dir variable
4525 2000-09-06 Brian Keener <bkeener@thesoftwaresource.com>
4527 * desktop.cc: added logic to handle to the new dialog and to
4528 default the setting for the new checkboxes based on whether the
4529 desktop icon or start menu link already exist.
4530 (desktop_icon): correction to desktop directories for desktop icon
4531 creation. Additional logic added for Win95 which does not appear
4532 to have Common Directories so if Common selected and null uses
4534 (start_menu): Additional logic added for Win95 which does not
4535 appear to have Common Directories so if Common selected and null
4536 uses normal directory.
4537 (do_desktop_setup): moved the saving of the icon, creation of the
4538 bat file, profile, passwd, Start Menu link and desktop shortcut to
4539 this method from do_desktop. Made the creation of the desktop
4540 icon and start menu link conditional on settings of new dialog
4541 created for desktop.
4542 * install.cc (do_install): changed next from IDD_S_DESKTOP to
4544 * main.cc (WinMain): changed case IDD_S_DESKTOP to IDD_DESKTOP.
4545 * res.rc: added new resource to create a desktop dialog with 2
4546 checkboxes for creating the desktop icon and start menu link.
4547 * resource.h: changed IDD_S_DESKTOP to IDD_DESKTOP and added two
4548 new controls: IDC_ROOT_MENU and IDC_ROOT_DESKTOP for new dialog.
4549 * state.h: added root_menu and root_desktop for use in dialog.
4551 2000-08-29 DJ Delorie <dj@redhat.com>
4553 * choose.cc (scan_downloaded_files): scan for existing files, so
4554 that the user only sees new downloads.
4556 * nio-ie5.cc (NetIO_IE5): pre-check for wininet.dll, enable dial-up
4557 * site.cc (do_site): if we can't download the mirror list, go back
4558 to the net setup box to choose another transport.
4559 * autoload.c: add more functions
4560 * Makefile.in (ALL_DEP_LDLIBS): remove wininet.a
4561 * resource.h: add WININET message
4563 * net.cc (do_net): no longer default to IE5
4564 * simpsock.h (class SimpleSocket): new, simplify socket operations
4565 * simpsock.cc: ditto
4566 * nio-http.h: new, for direct http protocol
4567 * nio-http.cc: ditto
4568 * nio-ftp.h: new, for direct http protocol
4570 * netio.cc (set_url): move initialization here to handle redirections
4571 (open): add direct http/ftp
4572 * netio.h (NetIO::set_url): new
4574 * log.cc (log_save): create directory for log if needed
4576 * hash.cc, hash.h: new
4577 * Makefile: add hash.o
4578 * choose.cc: enable "uninstall" option
4579 * download.cc: invert action test to accomodate uninstalling
4580 * ini.h: add ACTION_UNINSTALL
4581 * install.cc: add uninstall functionality
4582 * res.rc: make install tag changeable
4583 * resource.h: add uninstall resources
4585 * res.rc: update mirror list URL
4587 2000-08-24 DJ Delorie <dj@redhat.com>
4589 * log.cc, log.h: new files
4590 * Makefile.in (OBJS): add log.o
4591 * tar.cc: use exit_setup instead of exit
4592 * dialog.cc (fatal): use exit_setup instead of ExitProcess
4593 * msg.cc (fatal): ditto
4594 * install.cc (dialog_cmd): ditto
4595 * ini.cc (do_ini): ditto
4596 * main.cc (main): add logging
4597 * source.cc (do_source): ditto
4598 * root.cc (do_source): ditto
4599 * site.cc (do_site): ditto
4600 * other.cc (do_other): ditto
4601 * net.cc (do_net): ditto
4602 * choose.cc (do_choose): ditto
4603 * download.cc (do_download): ditto
4604 * install.cc (do_install): ditto
4605 * msg.cc (fatal): ditto
4607 * res.rc: mark password boxes as *being* password boxes.
4609 * fromcwd.cc (canonicalize_version): use multiple buffers so that multiple
4610 calls won't use the same buffer.
4611 * choose.cc (create_listview): don't default to full list if no changes
4612 (base): return computed value, not temporary :-(
4613 (do_choose): don't use installed.db if we're only downloading.
4615 2000-08-23 DJ Delorie <dj@redhat.com>
4617 * nio-ie5.cc (NetIO_IE5): Fix authentication logic
4618 * nio-ie5.h (flush_io): new
4619 * netio.cc (load_dialog): note when we're initializing the dialog
4620 box, and ignore changes to the edit fields then.
4622 2000-08-21 DJ Delorie <dj@redhat.com>
4626 * fromcwd.cc (found_file): don't remember the canonicalized version
4628 * choose.cc (paint): print "nothing to do" message when list is empty.
4629 (build_labels): Use version "0.0" if no version is available.
4630 (create_listview): default to full list if nothing to install/update.
4631 (base): new, returns basename of file
4632 (read_installed_db): compare base names, not full paths
4634 2000-08-11 DJ Delorie <dj@redhat.com>
4636 * choose.cc: add new chooser dialog
4637 * fromcwd.cc: use IDD_CHOOSE
4638 * ini.cc: use IDD_CHOOSE
4639 * main.cc: use IDD_CHOOSE
4640 * ini.h: cosmetic changes
4641 * res.rc: add choose dialog, bitmaps
4642 * choose-spin.bmp: new
4643 * choose-rtarrow.bmp: new
4644 * resource.h: add choose dialog controls
4646 * mount.cc: remove debug statement
4648 2000-08-08 DJ Delorie <dj@redhat.com>
4650 * Makefile.in (version.c): make version checking more robust
4651 * splash.cc (load_dialog): handle case where there's no version
4653 2000-08-07 DJ Delorie <dj@redhat.com>
4655 * (all): add cvsid tags
4656 * Makefile.in: generate version.c from ChangeLog, add splash.o
4658 * res.rc: add splash screen
4660 2000-08-02 DJ Delorie <dj@redhat.com>
4662 * net.cc: remove proxy password code
4663 * res.rc: remove proxy user/pass from net, add auth dialogs
4664 * netio.cc,h: add sys/proxy auth methods
4665 * nio-ie5: use them, check for http status codes
4666 * state.h: add system authorization
4668 * concat.cc (concat): canonicalize x:// to x:/ (exception to ://
4671 2000-08-02 Norman Vine <nhv@yahoo,com>
4673 * msg.cc (mbox): added MB_TOPMOST to MessageBox type flags
4675 2000-08-01 DJ Delorie <dj@redhat.com>
4677 * postinstall.cc (each): don't rename files we ignore
4678 (do_postinstall): set CYGWINROOT to root_dir, chdir there
4680 * desktop.cc: have /etc/profile call ~/.profile and ~/.bashrc
4682 2000-07-31 DJ Delorie <dj@redhat.com>
4684 * desktop.cc: reverse PATH so /usr/bin precedes /bin
4686 2000-07-18 DJ Delorie <dj@redhat.com>
4688 * autoload.c: new, autoload dlls that might not be available.
4689 * Makefile.in (OBJS): add autoload.o
4691 * res.rc: rewrite root options (text/binary, system/user) to be
4694 * site.cc (get_site_list): trim displayed URL, sort by domain
4696 * net.cc (do_net): make IE5 default to checked, for now
4698 * choose.cc (do_choose): sort packages correctly
4699 * ini.cc (do_ini): handle parse errors more gracefully
4701 (fprintf): line buffer output
4702 (do_ini): if we can't load setup.ini, go back to the site list.
4703 * ini.h: add "unknown" trust level
4704 * inilex.l: absorb unknown trust levels and key/value pairs,
4705 add line number logic
4706 * iniparse.y: handle parse errors more gracefully.
4707 * install.cc: skip packages with no valid install entry
4709 2000-07-17 DJ Delorie <dj@cygnus.com>
4711 * coding standards fixups, many files
4712 * mkdir.cc: warn about deletions *before* deleting them
4714 2000-07-17 Jeff Juliano <juliano@cs.unc.edu>
4716 * res.rc (IDD_OTHER_URL): reorder to give default focus to entry
4718 * other.cc (dialog_cmd): save download site URL
4719 * site.cc (get_root_dir): new
4720 (save_mirror_site): new
4721 (dialog_cmd): save download site URL
4722 (get_site_list): make list big enough to add prev site
4723 (get_initial_list_idx): new, read last-used URL from file and
4724 append it to site_list
4725 (do_site): call get_initial_list_idx
4727 * concat.cc (concat): avoid segfault when first parm is null
4729 2000-07-13 DJ Delorie <dj@cygnus.com>
4731 * postinstall.cc: new
4732 * Makefile.in: add postinstall.o
4733 * concat.h: add backslash ()
4735 * desktop.cc (etc_profile): don't do postinstall
4736 (backslash): moved to concat.cc
4738 (make_postinstall_script): run directly
4739 (do_desktop): chain to do_postinstall
4740 * dialog.h: add exit_msg, do_postinstall
4741 * download.cc: use exit_msg
4743 * main.cc: add postinstall, exit_msg
4744 * resource.h: add postinstall
4745 * README: add more to-do items
4747 2000-07-12 DJ Delorie <dj@cygnus.com>
4749 * desktop.cc: add /etc/postinstall/ support
4750 * install.cc: add more "standard" directories
4752 2000-07-11 DJ Delorie <dj@cygnus.com>
4754 * desktop.cc: create /etc/profile
4755 * desktop.cc: fix include syntax
4756 * Makefile.in: add auto-dependencies
4757 * root.cc: support system vs user
4765 * desktop.cc: make sure we use backslashes, not slashes.
4766 * desktop.cc: don't set PATH in cygwin.bat, create /etc/passwd
4767 * geturl.cc: change math for percentage to avoid overflow
4769 * download.cc: post "download complete" message.
4770 * root.cc: pre-fill in defaults if needed, don't start
4771 browse at root_dir unless it's set.
4772 * desktop.cc: quote $PATH in case it has spaces in it
4774 2000-07-10 DJ Delorie <dj@cygnus.com>
4776 * Makefile.in: add desktop.o and mklink2.o
4777 * dialog.h: add do_desktop
4778 * install.cc: create standard directories, call do_desktop
4779 * res.rc: add cygwin.ico as a file also
4780 * desktop.cc: new, do shortcuts, batch files, and icons
4781 * mklink2.c: new, for COM
4782 * README: update to-do list
4784 2000-07-10 DJ Delorie <dj@cygnus.com>
4786 * ini.cc (do_ini): don't worry about timestamps if we're not
4787 actually installing.
4789 2000-07-09 DJ Delorie <dj@cygnus.com>
4791 * Makefile.in: add -I$(srcdir) for ini.h
4793 2000-07-06 DJ Delorie <dj@cygnus.com>
4795 * Replace everything with a new GUI version
4796 * zlib/gzio.c: add gzctell() for progress displays
4798 2000-06-22 DJ Delorie <dj@cygnus.com>
4800 * setup.c (tarx): re-add call to write_pkg()
4802 2000-06-07 DJ Delorie <dj@cygnus.com>
4804 * cygcalls.c: new, call cygwin1.dll functions directly
4805 * cygcalls.h: header for same
4806 * Makefile.in: add cygcalls.[ch], remove mount/cygpath/umount
4807 exes, fix cinstall.rc dependencies.
4808 * path.c: remove unneeded code
4809 * setup.c: use cygcalls instead of xcreate_process.
4810 uncompress embedded files with zlib
4811 add "-d" for "download only"
4813 postpone mount changes until very end
4814 add download progress indicators
4815 pack multi-column listings more
4816 auto-delete temp files
4817 customize banner message according to options
4818 prompt user for text/binary mounts
4819 add warnings about empty setup directory, root installs, etc
4821 2000-05-24 DJ Delorie <dj@cygnus.com>
4823 * tar.c: New file; built-in tar using zlib.
4824 * tar.h: New file; header for same.
4825 * ctar.c: New file; test program for same.
4826 * Makefile.in: add built-in tar, remove tar.exe and gzip.exe
4827 * path.c (pathcat): convert slashes and canonicalize, instead of aborting
4828 * setup.c (tarx): add support for built-in tar
4829 (main): accept unix-style slashes, check root dir for drive letters,
4830 warn about installing in /, make sure cwd is empty for internet installs,
4831 defer mounts to end of install, support built-in tar.
4833 Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
4835 Fix compiler warnings throughout.
4836 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
4838 * setup.c: Make 'root' global.
4839 (istargz): Return pointer to "stem" of matched .tar.gz file.
4840 (tarx): Special case cygwin-20000301 to == cygwin-1.1.0.tar.gz. Remove
4841 bogus check_for_installed check.
4842 (recurse_dirs): Add preliminary support for .bat file execution.
4843 (create_uninstall): Eliminate unneeded parameter.
4844 (do_start_menu): Ditto.
4846 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
4847 scanning for the version number. Eliminate unneeded argument to
4849 (getdownloadsource): Add 'name' to list of names rather than url.
4850 (main): Eliminate unneeded argument in get_pkg_stuff. Eliminate
4851 unneeded argument in mkmount and do_start_menu.
4853 2000-05-18 DJ Delorie <dj@cygnus.com>
4855 * setup.c (optionprompt): allow multi-column, clean up message
4856 about more options, be more robust about user input.
4857 (getdownloadsource): make the mirror URL a macro.
4858 (main): do mounts after done prompting user.
4860 Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
4862 * setup.c (cleanup): Inverse order of deletion stands a better chance
4863 of deleting cygpath.exe. Still seems to suffer from occasional races,
4865 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
4867 (output_file): Defend against an unlikely handle leak.
4868 (main): Don't set up signal handling until we have something special to
4871 Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
4873 * path.c (kill_cygpath): Delete function.
4874 (exit_cygpath): Make more defensive so that it can be called at any
4876 (cygpath_pipe): Don't set up signal here. Do it in main().
4877 * setup.c (istargz): New function.
4878 (recurse_dirs): Look for *.gz pattern rather than *tar.gz since *tar.gz
4879 inexplicably fails on samba mounted partitions. Use istargz to match
4881 (processdirlisting) Use istargz to match tar.gz tail.
4882 (cleanup): Renamed from filedel.
4883 (cleanup_on_signal): New function. Called on CTRL-C.
4884 (main): Record handle of main thread so that it can be suspended when
4885 CTRL-C occurs. Set up cleanup_on_signal signal handler.
4887 Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
4889 * setup.c (do_start_menu): Don't concatenate paths to already built
4892 Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
4894 * path.c (exit_cygpath): Wait for subprocess to exit before returning.
4895 (cygpath_pipe): Don't call exit_cygpath. Let main atexit routine do
4897 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
4899 * setup.c (filedel): Call exit_cygpath here so that we can be assured
4900 that cygpath subprocess has died. This allows us to delete cygpath.exe
4902 (optionprompt): Initialize response to -1 so that second screen of
4903 mirrors will appear.
4904 (get_pkg_stuff): Don't attempt to use HKCLU. Pass root to init_pkgs.
4905 * setup.h: Reflect init_pkgs prototype change.
4907 Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
4909 * pkg.c (init_pkgs): Accept an argument to control what root registry
4911 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
4912 * setup.h: Reflect init_pkgs prototype change.
4914 Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
4916 * error.c (winerror): Respond to gcc warning.
4917 * path.c (cygpath_pipe): Ditto.
4918 * setup.c (filedel): Call sa_cleanup on deleteme.
4919 (create_shortcut): Coerce argument to eliminate compiler warning.
4920 (tarx): Use installed version of cygwin1.dll, overriding tar file name.
4921 (refmatches): New function. Tests if ref is contained in a list of
4922 packages to install.
4923 (filematches): New function. Tests if filename matches one of a list
4924 of packages to install.
4925 (recurse_dirs): Accept list of packages to install. Generalize tar.gz
4926 test to accomodate _tar.gz.
4927 (prompt): Ensure that stdout is flushed prior to asking for input.
4928 (findhref): Initialize variables to quiet a compiler warning.
4929 (processdirlisting): Accept list of packages to install. Special case
4930 cygwin tar file version number.
4931 (downloaddir): Accept list of packages to install.
4932 (downloadfrom): Ditto.
4933 (create_uninstall): Eliminate unneeded variables. Quote arguments to
4935 (do_start_menu): Don't create uninstall bat file if updating or user
4936 specified a list of packages.
4937 (mkmount): Eliminate unneeded variables.
4938 (get_pkg_stuff): New function. Checks for previous unversioned
4940 (main): Accept -u and -f options and package names on the command line.
4941 Use get_pkg_stuff to initialize package information. Umount /etc.
4942 Call recurse_dirs and downloadfrom with list of package to install.
4943 Ensure that all /usr/local directories are created. Output
4944 installation time to setup.log.
4945 * setup.h: Add some prototypes.
4946 * xsystem.c (xcreate_process): Eliminate unneeded variable.
4948 Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
4950 * setup.c (optionprompt): Don't overlap display of already seen options
4952 (geturl): Print name of site which we're connecting to rather than "ftp
4954 (processdirlisting): Avoid URLs that contain a /. or ./ . Is this
4955 test too simplistic?
4956 (do_start_menu): Use pathcat to build path to <root>\bin to avoid
4957 problems when user chooses x:\ as their root.
4958 (main): For now, default to "non-update" mode. Allow -u option to
4961 Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
4964 * setup.c (tarx): Skip already installed or older packages. Report
4965 when a package has been updated.
4966 (processdirlisting): Skip already installed or older packages.
4967 (main): Detect -f option for forced installation. Initialize pkg stuff
4969 * setup.h: Add pkg definitions.
4971 Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
4973 * setup.c (findhref): Return NULL on empty string. Eat any trailing
4975 (processdirlisting): Attempt to limit recursively processing the same
4978 Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
4980 * setup.c (filedel): New function.
4981 (output_file): Keep track of files extracted from setup.exe for
4982 subsequent deletion.
4983 (tarx): Close process handle of child tar process or suffer handle
4985 (getdownloadsource): Close mirror file so that it can be unlinked.
4986 (processdirlisting): Return total number of files extracted.
4987 (main): Initialize array of files to delete. Ensure that files are
4988 closed on exit. Make the directory that setup.exe is started from ==
4989 the directory where temporary files are placed. Issue an error if no
4990 files were found to download.
4991 * xsystem.c (xcreate_process): Close the thread handle. Close the
4992 process handle if we waited for it to exit.
4994 Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
4996 * setup.c (main): Change version number output.
4998 Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
5000 * setup.c (tarx): Use full path name to tar executable.
5001 (main): Build full pathname to tar executable. Create /usr/local/etc
5004 Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
5006 * setup.c (findhref): Change method for scanning for href= to choose
5007 the last one on the line. This is still not foolproof and probably
5008 will need to be changed eventually. Don't abort if no "size" field is
5010 (processdirlisting): Fix boolean algebra.
5012 Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
5014 * main.c (tarx): Add some code for future task of unmounting
5015 directories encountered in tar file.
5017 Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
5019 * setup.c (findhref): Decode file size, when appropriate.
5020 (needfile): New function. Returns 1 when file should be
5022 (processdirlisting): Always download if file size does not
5023 match. Prompt when download fails for some reason.
5024 (getdownloadsource): Accomodate findhref argument changes.
5026 Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
5028 Throughout, use global session handle rather than reinitializing for
5029 each connect. Don't pass session as an argument to setup.c functions.
5030 * setup.c (geturl): Only issue "Connecting to.." message when using
5031 http or first time for ftp since subsequent connections will be fast.
5032 (processdirlisting): Allocate space for "N" when user has specified
5033 "N"ever option so that it can be subsequently freed.
5034 (main): Abort if we can't get the list of mirrors.
5036 Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
5038 * setup.c (main): Umount /bin and /lib.
5040 Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
5042 * setup.c (main): Create an empty /var/run/utmp.
5044 Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
5046 * Makefile.in: Add umount to list of files to include in setup.exe.
5047 * setup.c (xumount): New function for unmounting directories.
5048 (main): Unmount /usr.
5049 (mkmount): Unmount "unix directory" before trying to figure out where
5050 to create the directory.
5052 Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
5054 * setup.c (mkmount): Use xcreate_process to start mount process,
5056 (main): Don't do buffering on stdout or prompts won't be displayed
5057 correctly if running in a cygwin shell with CYGWIN=tty.
5059 Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
5061 * setup.c (main): Remove the CYGWIN environment variable before
5062 starting any cygwin programs.
5064 Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
5066 * setup.c (geturl): Use alternative method for finding filename part of
5068 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
5069 (downloaddir): Unlink file containing dir listing.
5070 (downloadfrom): Ditto.
5072 Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
5074 * setup.c (main): Disallow running setup.exe from the "root".
5076 Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
5078 Use "warning" function, where appropriate, to output warnings.
5079 * setup.c (warning): New function -- outputs warning to console and log
5081 (tarx): Fix index used to reset file protection.
5082 (main): Open the log file earlier so that more stuff can be sent to it.
5084 Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
5086 * setup.c (processdirlisting): Make "N" option a little less aggressive.
5088 Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
5090 * setup.c (tarx): Wait to after tar has completed to reset protections
5091 or suffer races with tar process.
5093 Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
5095 * Makefile.in: Eliminate duplicate -nostdinc from CFLAGS.
5096 * setup.c (create_uninstall): Create the uninstall .bat file in the
5097 "root" so that we can remove the /bin directory. Add bin\cygwin.bat to
5098 list of files to be deleted. Fix directory detection for determining
5099 when to use 'rmdir'.
5100 (do_start_menu): Add /usr/local/bin to the path.
5101 (main): Add slop to files.array allocation so that we don't have to
5102 worry about reallocating the array when it grows too large when doing
5103 some trivial "pushes". Add /tmp and /usr/local/{bin,lib} to list of
5106 Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
5108 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
5111 Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
5113 * path.c (kill_cygpath): New cleanup function.
5114 (exit_cygpath): New cleanup function.
5115 (cygpath_pipe): New function. Sets up cygpath in the background for
5116 translating filenames.
5117 (pathcvt): Use background cygpath for file translation.
5118 * setup.c (tarx): New function. Called to extract tar files, capture
5119 logging output, and translate it to Windows format.
5120 (recurse_dirs): Use 'tarx' function to extract files.
5121 (create_uninstall): Use file list built up by tarx rather than reading
5123 (mkmount): Add ability to mount root.
5124 (main): Track elapsed install time. Mount root.
5125 * starry.h: Add index field to strarry for tracking of tarx's usage of
5127 * xsystem.c (xcreate_process): Return proces handle when not waiting.
5129 Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
5132 (pathfp): New function. Preliminary work for new -f cygpath
5134 * Makefile.in: Add new file.
5135 (pathcvt): Move to new file.
5139 * setup.c (processdirlisting): Always open file in text mode.
5140 (create_uninstall): Ditto.
5141 (getdownloadsource): Ditto.
5144 Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
5146 * xsystem.c: New file.
5147 * Makefile.in: Accomodate new file.
5148 * setup.c (xsystem): Move to new file.
5149 (recurse_dirs): Accept handle to output log file. Don't use ">"
5150 redirection to trap tar output. Use supplied handle instead.
5151 (create_uninstall): Accept FILE pointer to opened log file. Don't
5152 unlink log file here.
5153 (do_start_menu): Accept FILE pointer to pass to create_uninstall.
5154 (main): Open log file here and pass it to various functions. Unlink
5157 Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
5159 Change occurrences of .usr.bin to .bin throughout.
5160 * setup.c (geturl): Increase number of retries to 20. Let user know
5161 what's going on during long connects.
5162 (processdirlisting): Accept "A"lways and "N"ever as update options.
5163 (create_uninstall): Load cygwin1.dll from the current directory rather
5165 (main): Add some expository text.
5167 Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
5169 * Makefile.in: Change method for compressing cygwin1.dll to avoid
5170 creating a cygwin1.dll in the current directory. Ensure the addition
5171 of -nostdinc to MINGW_CFLAGS.
5173 Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
5175 * Makefile.in: Augment clean target.
5177 Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
5179 * README: Added info about non-working mingw implementation
5180 * gzip.exe.gz: Replace with a version from the same build as the other
5182 * tar.exe.gz: Replace with a version from the same build as the other
5184 * mount.exe.gz: Add to repository until, mingw can build setup.
5185 * cygpath.exe.gz: ditto
5186 * cygwin1.dll.gz: ditto
5187 * setup.c: Overwrite /bin and /lib mounts. Generate working shortcut
5188 for Win9x. Display only a screenfull of options at a time. Call all
5189 tools with an absolute path.
5190 * setup.dsp: Restore the carriage returns, MS Developer Studio needs
5195 Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
5197 * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab
5198 cygwin1.dll from ../cygwin subdirectory.
5199 * gzip.exe.gz: Update.
5200 * tar.exe.gz: Update.
5202 Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
5204 * Makefile.in: Use ZLIB variable as a target.
5206 Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
5208 * Makefile.in: Eliminate traces of cygwinisms. Don't link with
5209 libmsvcrt.a. It's unneeded. Build .rc file on the fly from various
5211 * configure.in: Locate correct objcopy.
5212 * configure: Regenerate.
5214 Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
5216 * Makefile.in: New file.
5217 * configure.in: New file.
5218 * configure: New file.
5219 * zlib/Makefile.am: New file.
5220 * zlib/configure.in: New file.
5221 * zlib/aclocal.m4: New file.
5222 * zlib/acinclude.m4: New file.
5223 * zlib/configure: Regenerate from configure.in.
5224 * zlib/Makefile.in: Regenerate from Makefile.am