1 2002-11-25 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3 * window.h (Window::GetWindowRect): New method declaration.
4 (Window::GetClientRect): Ditto.
5 (Window::MoveWindow): Ditto.
6 (Window::ScreenToClient): Ditto.
7 * window.cc (REFLECTION_INFO): Remove.
8 (ReflectionInfo): Remove.
9 (Window::FirstWindowProcReflector): Use the WM_NCCREATE message instead
10 of the horrid REFLECTION_INFO hack to hook the Window instance to the
12 (Window::WindowProcReflector): Use GetWindowLongPtr() now that it's
14 (Window::Create): Change to use new WM_NCCREATE reflection procedure
16 (Window::GetWindowRect): New method.
17 (Window::GetClientRect): New method.
18 (Window::MoveWindow): New method.
19 (Window::CenterWindow): Use new methods, also specify "::" for some non-
20 member functions with the same names.
21 (Window::ScreenToClient): New method.
23 2002-11-26 Robert Collins <rbtcollins@hotmail.com>
25 * AntiVirus.cc: Change the short option again! It's now 'A'.
26 * desktop.cc (etc_profile): Remove.
27 (make_etc_profile): Remove.
29 (make_passwd_group): Remove.
30 (do_desktop_setup): Don't call removed functions.
32 2002-11-26 Robert Collins <rbtcollins@hotmail.com>
34 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Fix my botched application of
37 2002-07-08 Marcel Telka <marcel@telka.sk>
39 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Fixed decoding of the FTP
40 reply (code 227) to the PASV command.
42 2002-11-26 Robert Collins <rbtcollins@hotmail.com>
44 * IniDBBuilderPackage.cc (IniDBBuilderPackage::~IniDBBuilderPackage):
45 Sort the packages db once all the new packages have been added.
46 * IniDBBuilderPackage.h (IniDBBuilderPackage::~IniDBBuilderPackage):
49 2002-11-26 Robert Collins <rbtcollins@hotmail.com>
51 * choose.cc (ChooserPage::OnNext): Remove extracted comment.
52 * package_version.cc (processOneDependency): Return once selecting
53 a package (bugfix to prevous rework).
54 Log if the default trust fails the package specification.
56 2002-11-26 Robert Collins <rbtcollins@hotmail.com>
58 * package_meta.h (packagemeta::logAllVersions): Declare.
59 (packagemeta::trustLabel): Ditto.
60 * choose.cc (ChooserPage::OnNext): Get each package to log all it's
62 * package_meta.cc (packagemeta::logAllVersions): Implement.
63 (packagemeta::trustLabel): Ditto.
65 2002-11-25 Robert Collins <rbtcollins@hotmail.com>
67 * AntiVirus.cc: Change 'd' to 'D' to fix command line conflict.
69 2002-11-25 Robert Collins <rbtcollins@hotmail.com>
71 * AntiVirus.cc: New file.
73 * LogFile.cc: Include AntiVirus.h for class definition.
74 (LogFile::exit): Trigger AntiVirus::AtExit().
75 * MakeFile.am(setup_SOURCES): Add AntiVirus files.
76 * autoload.c: Declare Service Control Manager related API's.
77 * main.cc: Include AntiVirus.h for class definition.
78 (main): Add the AntiVirus page in.
79 * res.rc: Define IDD_VIRUS.
80 * resource.h: Define IDD_VIRUS related control ID's.
81 * splash.h: Override OnNext.
82 * splash.cc: Only show AntiVirus page when one has been detected.
85 2002-11-25 Robert Collins <rbtcollins@hotmail.com>
87 * package_version.cc (DependencyProcessor): Create convenience class.
88 (select): Extract version selection method.
89 (processOneDependency): Check for a satisfactory trusted version
92 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
94 * main.cc (main): Use the factory for LogFile.
95 * String++.cc: Update to use sstream.
96 (String::String): Use a ostringstream for libC++ 3.2.
97 * LogFile.h (LogFile): Make createLogFile static.
99 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
101 * main.cc (main): Oops, pass LogSingleton a reference, not a pointer.
103 2002-11-04 Max Bowsher <maxb@ukf.net>
105 * Exception.h (Exception::what): Add throw() specification,
106 to agree with libstdc++-v3.
107 * Exception.cc (Exception::what): Ditto.
108 * IniDBBuilderPackage.h: Add 'std::' where needed.
109 * PickCategoryLine.h: Ditto.
111 * package_db.h: Ditto.
112 * package_meta.h: Ditto.
113 * package_source.h: Ditto.
114 * package_version.h: Ditto.
116 * win32.h: Define NOMINMAX before including <windows.h>.
117 * package_meta.cc: Add 'using namespace std;'.
118 (packagemeta::set_requirements): Remove default parameter values
119 from definition (gcc3 likes them only in declaration).
120 * package_version.cc: Add 'using namespace std;'.
121 (packageversion::set_requirements): Remove default parameter
122 values from definition (gcc3 likes them only in declaration).
124 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
126 * compress_bz.cc: Don't include bzlib.h directly, the compress_bz.h
129 2002-11-04 Max Bowsher <maxb@ukf.net>
131 * compress_bz.h: #undef small before including bzlib.h - if we are
132 going to hide the fact that we are _WIN32 from bzlib, then we need
133 to #undef small for it as well (bad windows.h clash).
135 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
137 * localdir.cc: Update the extern LogFile to be a pointer.
138 (save_local_dir): Change . to -> for the above.
139 * main.cc (theFile): Change from an instance to a pointer.
140 (main): Change . to -> for the above.
142 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
144 * LogFile.cc: use 'std::' where needed throughout.
145 (LogFile::createLogFile): Implement a factory for LogFile.
146 (LogFile::LogFile): Update for use with the factory, and to
147 handle the latest g++ library changes.
148 (LogFile::operator()): Ditto.
149 (LogFile::endEntry()): Ditto.
151 * LogSingleton.cc: Ditto.
152 * LogSingleton.h: Ditto.
154 2002-11-04 Max Bowsher <maxb@ukf.net>
156 * String++.h: Add 'std::' where needed.
158 2002-11-04 Max Bowsher <maxb@ukf.net>
160 * IniDBBuilderPackage.cc: Add 'using namespace std;'.
161 * IniParseFindVisitor.cc: Ditto.
163 * LogSingleton.cc: Ditto.
164 * PickView.cc: Ditto.
165 * String++.cc: Ditto.
167 * download.cc: Ditto.
170 * io_stream.cc: Ditto.
171 * io_stream_file.cc: Ditto.
172 * package_db.cc: Ditto.
176 2002-11-04 Max Bowsher <maxb@ukf.net>
178 * LogSingleton.h: Add 'std::' where needed.
180 2002-11-04 Max Bowsher <maxb@ukf.net>
182 * archive_tar_file.cc: Include <algorithm>.
183 Change min(a,b) to std::min(a,b)
184 * compress_bz.cc: Ditto.
185 * compress_gz.cc: Ditto.
187 2002-11-04 Max Bowsher <maxb@ukf.net>
189 * res.rc: Change a #-comment (invalid) to a //-comment.
191 2002-11-04 Max Bowsher <maxb@ukf.net>
193 * Makefile.am (%.o: %.rc): Make windres use $(CC) not hardcoded gcc.
194 (inilint_LDADD): Remove -lstd++.
195 (setup_LDADD): Ditto.
197 2002-09-22 Max Bowsher <maxb@ukf.net>
199 * IniDBBuilderPackage.cc: Update DEBUG code to current class
202 2002-09-21 Robert Collins <rbtcollins@hotmail.com>
204 * choose.h: Add OnUnattended method.
205 * desktop.cc (DesktopSetupPage::OnInit): Allow fine grained
206 control via command line options.
207 (DesktopSetupPage::OnUnattended): Implement.
208 (DesktopSetupPage::OnMessageApp): Implement.
209 * desktop.h (DesktopSetupPage::OnUnattended): declare.
210 (DesktopSetupPage::OnMessageApp): Ditto.
211 * download.cc (do_download_thread): Support unattended mode.
212 * install.cc (do_install_thread): Ditto.
214 * main.cc (main): Ditto.
215 * net.cc (NetPage::OnUnattended): Ditto.
216 * net.h (NetPage::OnUnattended): Declare.
217 * proppage.cc (PropertyPage::DialogProc): Support unattended mode.
218 * proppage.h (PropertyPage::OnUnattended): Declare.
219 * root.cc (RootPage::OnInit): Support unattended mode.
220 (RootPage::OnUnattended): Implement.
221 * root.h (RootPage::OnUnattended): Declare.
222 * site.cc (register_saved_site): Extract Method from get_saved_sites.
223 (get_saved_sites): Remove common code for adding a site.
224 (SitePage::OnInit): Support unattended mode.
225 (SitePage::OnUnattended): Implement.
226 * site.h (SitePage::OnUnattended): Declare.
227 * source.cc (SourcePage::OnActivate): Support unattended mode.
228 (SourcePage::OnUnattended): Implement.
229 * source.h (SourcePage::OnUnattended): Declare.
230 * splash.h (SplashPage::OnUnattended): Declare.
231 * state.cc (unattended_mode): Declare.
232 * state.h (unattended_mode): Declare.
233 * threebar.h (ThreeBarProgressPage::OnUnattended): New method.
235 2002-09-21 Robert Collins <rbtcollins@hotmail.com>
237 * res.rc: Commit Harry Johnston's dialog caption patch. From July.
239 2002-07-15 Robert Collins <rbtcollins@hotmail.com>
241 * package_version.cc (packageversion::sources): Implement this.
242 * download.cc (do_download_thread): Support multiple files per package.
244 2002-07-15 Robert Collins <rbtcollins@hotmail.com>
246 * package_version.h (packageversion::sources): Support multiple files in
247 a single package version.
248 * package_version.cc (_packageversion::accessible): Ditto.
249 (packageversion::source): Ditto.
251 2002-07-15 Robert Collins <rbtcollins@hotmail.com>
253 * iniparse.y: Implement support for multiple source files for a source
255 * IniDBBuilder.h (IniDBBuilder::buildSourceFile): Ditto.
256 * IniDBBuilderPackage.h (IniDBBuilder::buildSourceFile): Ditto.
257 * IniDBBuilder.cc (IniDBBuilder::buildSourceFile): Ditto.
258 * IniDBBuilderPackage.cc (IniDBBuilder::buildSourceFile): Implement a
261 2002-07-13 Robert Collins <rbtcollins@hotmail.com>
263 * PickPackageLine.cc (PickPackageLine::click): Set requirements for
264 packages under all circumstances - slightly higher overheader, simpler
266 * download.cc (do_download_thread): Correctly download source
268 * package_meta.cc (checkForInstalled): Remove.
269 (checkForUpgradeable): Ditto.
270 (checkForSatisfiable): Ditto.
271 (processOneDependency): Ditto.
272 (packagemeta::set_requirements): Move guts to packageversion.
273 * package_version.cc (checkForInstalled): Copied from package_meta.cc.
274 (checkForUpgradeable): Ditto.
275 (checkForSatisfiable): Ditto.
276 (processOneDependency): Ditto.
277 (packageversion::set_requirements): Ditto.
278 * package_version.h (packageversion::set_requirements): Declare.
280 2002-07-13 Robert Collins <rbtcollins@hotmail.com>
282 * IniDBBuilder.cc (IniDBBuilder::buildBeginBuildDepends): Implement.
283 (IniDBBuilder::buildBeginBinary): Implement.
284 * IniDBBuilder.h (IniDBBuilder::buildBeginBuildDepends): Declare.
285 (IniDBBuilder::buildBeginBinary): Ditto.
286 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildBeginBuildDepends):
288 (IniDBBuilderPackage::buildBeginBinary): Ditto.
289 * IniDBBuilderPackage.h (IniDBBuilderPackage::buildBeginBuildDepends):
291 (IniDBBuilderPackage::buildBeginBinary): Ditto.
292 * inilex.l: Recognise Build-Depends-Indep, [,], >, < and remove
294 * iniparse.y: Full support for parsing a debian Sources file in-line in
296 * package_version.cc (packageversion::binaries): Implement.
297 * package_version.h (packageversion::binaries): Declare list of what
298 packages are created from a given source package.
299 (_packageversion::binaries): Ditto.
301 2002-07-10 Robert Collins <rbtcollins@hotmail.com>
303 * iniparse.y: Add basis for support for parsing a debian Sources file.
306 2002-07-09 Robert Collins <rbtcollins@hotmail.com>
308 Change custom container code for packagedb::packages to STL containers
310 * IniDBBuilderPackage.cc: Ditto.
311 * PickView.cc: Ditto.
314 * download.cc: Ditto.
316 * package_db.cc: Ditto.
317 * package_db.h: Ditto.
318 * Makefile.am: Remove list.h references.
321 2002-07-08 Max Bowsher <maxb@ukf.net>
323 * PickView.cc (PickView::PickView): Set font of package list header to
324 the same as used in the rest of the package list.
326 2002-07-08 Robert Collins <rbtcollins@hotmail.com>
328 * install.cc (NoReplaceOnReboot): New command line option to prevent
329 replacing in use files.
330 (install_one_source): Check the option and use it.
331 * README: Update TODO lists.
333 2002-07-08 Robert Collins <rbtcollins@hotmail.com>
335 * PickCategoryLine.cc: Change bucket to use STL container syntax
337 (PickCategoryLine::paint): Use new Category type syntax.
338 * PickCategoryLine.h: Use STL vectors rather than custom containers
340 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageCategory):
341 Use new add_category syntax.
342 * PickView.cc (PickView::insert_pkg): Use new Category type syntax.
343 (PickView::insert_category): Ditto.
344 (PickView::init_headers): Ditto.
345 * category.cc: Trim obsolete code.
346 * category.h: Replace interconnecting class with a typedef to
347 facilitate leveraging STL maps.
348 * choose.cc (fill_missing_category): Use updated pkg.add_category
350 (default_trust): Use new Category type syntax.
351 (set_view_mode): Ditto.
352 (create_listview): Ditto.
353 * package_db.cc (categories): Ditto.
354 * package_db.h: Update headers list to include needed headers.
355 (packagedb::categories): Replace custom list with STL map.
356 * package_meta.cc: Use new Category type syntax throughout.
357 (packagemeta::add_category): Implement new syntax.
358 * package_meta.h: Remove commented out source.
359 (packagemeta::add_category): Update syntax to decouple interface from
362 2002-07-06 Christopher Faylor <cgf@redhat.com>
364 * site.cc (do_download_site_info_thread): Correct spelling error.
366 2002-07-06 Robert Collins <rbtcollins@hotmail.com>
368 * PickCategoryLine.h: Include required header list.h.
369 * PickPackageLine.cc (PickPackageLine::paint): Adjust to use STL
370 containers for listing of packages per category and vice verca.
371 * PickView.cc (PickView::insert_pkg): Ditto.
372 (PickView::insert_category): Ditto.
373 * String++.h (String::caseless): STL helper to allow trivial containers
374 of Strings with case insensitive comparisons.
375 * category.h: Adjust to use STL containers for listing of packages per
376 category and vice verca.
377 * choose.cc (fill_missing_category): Ditto.
378 (default_trust): Ditto.
379 (ChooserPage::OnNext): Ditto.
380 * package_meta.cc (CategoryPackage::~CategoryPackage): Remove.
381 (packagemeta::packagemeta): Adjust for new category list name.
382 (packagemeta::~packagemeta): Adjust to use STL containers for listing
383 of packages per category and vice verca.
384 (packagemeta::set_action): Ditto.
385 * package_meta.h (CategoryPackage): Remove.
386 (packagemeta): Adjust to use STL containers for listing of packages per
387 category and vice verca.
389 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
391 * io_stream.cc: Use STL containers rather than custom ones.
392 (io_stream::registerProvider): Ditto.
393 (findProvider): Ditto.
395 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
397 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
398 Use STL collections for download site collections.
399 (IniDBBuilderPackage::add_correct_version): Ditto.
400 (IniDBBuilderPackage::process_src): Ditto.
401 * PickPackageLine.cc (PickPackageLine::click): Use the packageversion
402 accessible() call to abstract package availability.
403 * choose.cc (scanAVersion): Use STL collections for download site
405 * download.cc (check_for_cached): Ditto.
406 (download_one): Ditto.
407 * package_meta.cc (packagemeta::set_action): Use the packageversion
408 accessible() call to abstract package availability.
409 * package_source.h: Use STL containers rather than custom containers.
410 (site): Create a == operator to allow STL container use.
411 (packagesource::sites): Use STL containers rather than custom
413 * package_version.cc (_packageversion::accessible): Use STL containers
414 for download site containers.
416 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
418 * LogFile.cc: Use STL containers rather than custom containers.
419 (filedef): Create == and < operators for STL use.
420 (files): Convert to an STL set.
421 (LogFile::setFile): Use STL operations on files.
422 (LogFile::exit): Ditto.
424 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
426 * ini.cc (do_remote_ini): Use STL collection for site collection.
427 * site.cc: Include site.h first to ensure it's parsable standalone.
429 (site_list): Convert to an STL container.
430 (all_site_list): Ditto.
431 (site_list_type::site_list_type): Implement copy constructor.
432 (site_list_type::operator=): Implement assignment operator.
433 (site_list_type::operator ==): Implement.
434 (site_list_type::operator <): Ditto.
435 (save_dialog): Use STL collection calls for site collection.
436 (save_site_url): Ditto.
437 (get_site_list): Ditto.
438 (get_saved_sites): Ditto.
439 (do_download_site_info_thread): Ditto.
440 (SitePage::OnNext): Ditto.
441 (SitePage::PopulateListBox): Ditto.
442 (SitePage::OnMessageCmd): Ditto.
443 * site.h: Use STL vectors instead of custom code.
444 (site_list_type::site_list_type): Declare.
445 (site_list_type::operator=): Ditto.
446 (site_list_type::operator ==): Ditto.
447 (site_list_type::operator !=): Ditto.
448 (site_list_type::operator <): Ditto.
449 (site_list_type::operator <=): Ditto.
450 (site_list_type::operator >): Ditto.
451 (site_list_type::operator >=): Ditto.
452 (site_list): Convert to an STL container.
453 (all_site_list): Ditto.
455 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
457 * choose.cc (default_trust): Check package accessibility before
458 triggering an install. (Suggested by Pavel).
460 2002-07-03 Pavel Tsekov <ptsekov@gmx.net>
462 * compress_gz.cc (compress_gz::construct): Always initialize key members
463 to ensure the destructor does the right thing.
465 2002-07-03 Pavel Tsekov <ptsekov@gmx.net>
467 * filemanip.cc (parse_filename): Do not try to parse empty
469 * package_db.cc (packagedb::packagedb): For each line check if sscanf()
470 extracted good package name and filename.
472 2002-07-03 Robert Collins <rbtcollins@hotmail.com>
474 * package_meta.cc (packagemeta::set_requirements): Automatically select
475 version of dependent packages that satisfies the requirements.
476 Use processOneDependency to trigger the install of those packages.
477 (checkForInstalled): Check that the package remains installed.
478 (processOneDependency): Helper function for dependent packages.
479 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackage): Add more
481 Clear out all current state on new packages.
482 (IniDBBuilderPackage::add_correct_version): Copy the dependency list
485 2002-07-02 Robert Collins <rbtcollins@hotmail.com>
487 * Makefile.am (inilint_SOURCES): Add PackageSpecification sources.
488 nb: inilint is still incomplete, as the packageversion code is not
489 ready for database-less linking.
490 * site.cc (get_site_list): When the same site is reentered by the user
491 replace the old one. (Suggested by John Marshall).
493 2002-07-02 Robert Collins <rbtcollins@hotmail.com>
495 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
496 Clear out package selections when generating implicit source packages.
497 * PackageSpecification.cc (PackageSpecification::satisfies): Implement.
498 (PackageSpecification::_operators::satisfies): Implement.
499 * PackageSpecification.h (PackageSpecification::_operators::satisfies):
500 Worker function for testing versions.
502 2002-07-01 Robert Collins <rbtcollins@hotmail.com>
504 * IniDBBuilder.cc (IniDBBuilder::buildPackageRequirement): Remove.
505 * IniDBBuilder.h (IniDBBuilder::buildPackageRequirement): Ditto.
506 * IniDBBuilderPackage.cc: Use the STL algorithms.
507 Change cpv to cbpv throughout. Adjust -> to ., and use the new accessor
508 functions for the same variable throughout.
509 (IniDBBuilderPackage::IniDBBuilderPackage): Initialise new members.
510 (IniDBBuilderPackage::buildPackage): Use new cygpackage syntax,
511 and set an empty source package.
512 (IniDBBuilderPackage::buildPackageInstall): Use the new source member
513 to record an install package.
514 (IniDBBuilderPackage::buildPackageSource): Move source package logic
515 out from process_src, as it now occurs at separate times.
516 (IniDBBuilderPackage::buildPackageRequirement): Remove.
517 (IniDBBuilderPackage::buildSourceName): Use renamed package
518 specifiation accessor for clarity.
519 (IniDBBuilderPackage::buildSourceNameVersion): Ditto.
520 (IniDBBuilderPackage::add_correct_version): Use STL iterators rather
522 Remove source package references.
523 (IniDBBuilderPackage::process_src): Remove source package code as it's
524 now handled separately.
525 Set Path information before merging versions, to prevent dangling
527 * IniDBBuilderPackage.h (IniDBBuilderPackage::buildPackageRequirement):
529 (IniDBBuilderPackage::cpv): Remove.
530 (IniDBBuilderPackage::cbpv): New generic binary working variable.
531 (IniDBBuilderPackage::cspv): Ditto, but for source packages.
532 (IniDBBuilderPackage::csp): Source package variable for disjoint
534 * Makefile.am (AM_CFLAGS): Remove -Winline to allow stl set code
535 to compile. If it compiles cleanly in gcc 3.1, then reinstate.
536 * PickPackageLine.cc: Adjust packageversion accessors to the new
537 reference calls. (i.e. -> to .) throughout.
538 (PickPackageLine::paint): Use accessible() for clarity.
539 Use new split out source package logic.
540 (PickPackageLine::click): Ditto.
541 * PickView.cc (PickView::init_headers): Adjust packageversion accessors
542 to the new reference calls. (i.e. -> to .) throughout.
543 Use new split out source package logic.
544 * choose.cc: Don't depend on a specific package type.
545 Adjust packageversion accessors to the new reference calls. (i.e. -> to
547 (set_existence): Use accessible () for clarity.
548 (default_trust): Simplify a little.
549 (scanAVersion): Factored out code from scan_downloaded_files for
551 (scan_downloaded_files): Factor out inner loop for clarity.
552 (ChooserPage::OnNext): Don't dump the dependency list,
553 it's parsing is robust now!.
554 * cygpackage.cc (createInstance): Use a factory method to create new
556 (cygpackage::cygpackage): Make this private for use by the factory.
557 (cygpackage::setCanonicalVersion): Renamed from set_canonical_version.
558 Remove key usage as it's obsolete.
559 * cygpackage.h (cygpackage): Inherit from _packageversion, not
561 (cygpackage::createInstance): New factory.
562 (cygpackage::cygpackage): Make private.
563 * desktop.cc (make_passwd_group): Use new packageversion reference.
564 * download.cc (do_download_thread): Use changeRequested() for clarity.
565 Use new packageversion reference calls.
566 * iniparse.y (REQUIRES): Reuse the packageList code and dump the one-off
568 * install.cc: Adjust -> to ., and use the new accessor functions for
569 packageversion throughout.
570 * package_db.cc: Adjust -> to ., and use the new accessor functions for
571 packageversion throughout.
572 (packagedb::packagedb): Use the new cygpackage factory.
573 (packagedb::flush): Leverage String to remove buffer overflow chance in
575 (packagedb::findBinary): Find a binary meta package that has a version
576 matching a given specification.
577 (packagedb::findSource): Ditto, but for source.
578 * package_db.h (packagedb::findBinary): Declare.
579 (packagedb::findSource): Ditto.
580 * package_meta.cc: Adjust packageversion accessors to the new
581 reference calls. (i.e. -> to .) throughout.
582 Include the package_meta header first to ensure it parses standalone.
583 Use the STL algorithms.
584 (packagemeta::packagemeta): Create a copy constructor to allowing
585 cloning binary package metadata to source package metadata.
586 (packagemeta::~packagemeta): Use the STL coleltion code rather than
587 custom collection code.
588 (packagemeta::add_version): Ditto.
589 (packagemeta::set_installed): Ditto.
590 (packagemeta::SDesc): Ditto.
591 (hasSDesc): Helper function for find_if.
592 (checkForInstalled): Ditto.
593 (checkForUpgradeable): Ditto.
594 (checkForSatisfiable): Ditto.
595 (packagemeta::action_caption): Update for split out source packages.
596 (packagemeta::set_action): Ditto.
597 (packagemeta::set_requirements): Support multi-valued dependency
598 lists - a|b & c|d - with versioned package specifications.
599 (packagemeta::accessible): Helper member to improve abstraction.
600 (packagemeta::sourceAccessible): Ditto.
601 * package_meta.h: Adjust packageversion accessors to the new
602 reference calls. (i.e. "->" to "." and"*" to "" ) throughout.
603 (packagemeta::packagemeta): Declare copy constructor.
604 Remove self initialising members.
605 (packagemeta::set_action): Update parameters for new packageversion.
606 (packagemeta::trustp): Ditto.
607 (packagemeta::versions): Becomes an STL set.
608 * package_source.h (packagesource::Cached): Const correctness change.
609 * package_version.cc: Rewrite the packageversion interface to remove
610 the cygpackage nonvirtual members, and provide a copy by value,
611 pointer semantics reference counting wrapper class to ease use and
612 comparison of packageversions.
613 Change existing packageversion class to _packageversion throughout.
614 (_defaultversion): A trivial concrete class to prevent specialcasing
615 the default constructor for packageversion;
616 (packageversion::packageversion): Implement.
617 (packageversion::~packageversion): Ditto.
618 (packageversion::operator=): Ditto.
619 (packageversion::operator !): Ditto.
620 (packageversion::operator bool): Ditto.
621 (packageversion::operator ==): Ditto.
622 (packageversion::operator !=): Ditto.
623 (packageversion::operator <): Ditto.
624 (packageversion::Name): Ditto.
625 (packageversion::Canonical_version): Ditto.
626 (packageversion::setCanonicalVersion): Ditto.
627 (packageversion::getfirstfile): Ditto.
628 (packageversion::getnextfile): Ditto.
629 (packageversion::SDesc): Ditto.
630 (packageversion::set_sdesc): Ditto.
631 (packageversion::LDesc): Ditto.
632 (packageversion::set_ldesc): Ditto.
633 (packageversion::sourcePackage): Ditto.
634 (packageversion::sourcePackageSpecification): Ditto.
635 (packageversion::setSourcePackageSpecification): Ditto.
636 (packageversion::depends): Ditto.
637 (packageversion::predepends): Ditto.
638 (packageversion::recommends): Ditto.
639 (packageversion::suggests): Ditto.
640 (packageversion::replaces): Ditto.
641 (packageversion::conflicts): Ditto.
642 (packageversion::provides): Ditto.
643 (packageversion::picked): Ditto.
644 (packageversion::pick): Ditto.
645 (packageversion::changeRequested): Ditto.
646 (packageversion::uninstall): Ditto.
647 (packageversion::source): Ditto.
648 (packageversion::accessible): Ditto.
649 (_packageversion::sourcePackage): Ditto.
650 (_packageversion::accessible): Ditto.
651 (_packageversion::changeRequested): Ditto.
652 * package_version.h: Rewrite the packageversion interface to remove
653 the cygpackage nonvirtual members, and provide a copy by value,
654 pointer semantics reference counting wrapper class to ease use and
655 comparison of packageversions.
656 Change existing packageversion class to _packageversion throughout.
657 (Dependency): Remove.
658 (packageversion): New wrapper class.
659 (_packageversion): Renamed from packageversion.
660 (_packageversion::setCanonicalVersion): New method.
661 (_packageversion::sourcePackage): Ditto.
662 (_packageversion::sourcePackageSpecification): Ditto.
663 (_packageversion::setSourcePackageSpecification): Ditto.
664 (_packageversion::changeRequested): Ditto.
665 (_packageversion::bin): Rename to source.
666 (_packageversion::src): Remove.
667 (_packageversion::accessible): New method.
668 (_packageversion::references): Allow reference counting.
669 (_packageversion::sourceVersion): Cached the best-match source
672 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
674 * compress_bz.h (compress_bz::position): Track how much has been read.
675 * compress_bz.cc (compress_bz::compress_bz): And initialise it.
676 (compress_bz::read): Track amount read by the client.
677 (compress_bz::tell): And report it when asked.
679 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
681 * Makefile.am (snapshot): Automate snapshot creation some more.
683 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
685 * msg.cc (msg): Use vsnprintf to avoid buffer overflows.
687 * ini.cc (fprintf): Ditto.
688 * log.cc (log): Ditto.
689 * package_db.cc (packagedb::sourcePackages): Split out source packages
690 from binary packages.
691 * package_db.h: Ditto.
693 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
695 * PackageSpecification.h: New file. Abstracts the ability to refer
696 to another package, by name, or name and version.
697 * PackageSpecification.cc: Ditto.
698 * IniDBBuilder.cc (IniDBBuilder::buildPackageInstall): Simplify.
699 (IniDBBuilder::buildPackageSource): Ditto.
700 (IniDBBuilder::buildBeginDepends): New method for versioned
702 (IniDBBuilder::buildBeginPreDepends): Likewise, for dependencies to be
703 satisfied before pre-install.
704 (IniDBBuilder::buildPriority): New method, for getting the package
706 (IniDBBuilder::buildInstalledSize): How much disk space does it need?
707 (IniDBBuilder::buildMaintainer): Who maintains the package?
708 (IniDBBuilder::buildArchitecture): What platform is it for?
709 (IniDBBuilder::buildInstallSize): How big is the binary download?
710 (IniDBBuilder::buildInstallMD5): Whats the MD5 on the binary?
711 (IniDBBuilder::buildSourceMD5): Whats the MD5 on the source package?
712 (IniDBBuilder::buildBeginRecommends): What other packages are
713 recommended with this one?
714 (IniDBBuilder::buildBeginSuggests): And suggested?
715 (IniDBBuilder::buildBeginReplaces): What packages does this replace?
716 (IniDBBuilder::buildBeginConflicts): And collide with?
717 (IniDBBuilder::buildBeginProvides): What virtual packages (or obsolete
718 package names) does this provide?
719 (IniDBBuilder::buildDescription): Grab a multi line description one
721 (IniDBBuilder::buildSourceName): What source package should be used to
722 install the source for this binary package?
723 (IniDBBuilder::buildSourceNameVersion): Is a specific version needed?
724 (IniDBBuilder::buildPackageListAndNode): Add another AND clause to a
725 list of package specifications.
726 (IniDBBuilder::buildPackageListOrNode): Add another OR clause.
727 (IniDBBuilder::buildPackageListOperator): Add a versioning operator
728 to the current specification.
729 (IniDBBuilder::buildPackageListOperatorVersion): What version does the
731 * IniDBBuilder.h: Declare all the IniDBBuilder.cc changes.
732 * IniDBBuilderPackage.cc: As for IniDBBuilder.cc.
733 (IniDBBuilderPackage::IniDBBuilderPackage): Iniitialize new members.
734 (IniDBBuilderPackage::process_src): Streamline and split out
736 (IniDBBuilderPackage::setSourceSize): From process_src.
737 * IniDBBuilderPackage.h: Declare the IniDBBuilderPackage.cc changes.
738 (IniDBBuilderPackage::currentSpec): Track the in-progress specifiation.
739 (IniDBBuilderPackage::currentOrList): Track the current Or list.
740 (IniDBBuilderPackage::currentAndList): Track the current And list.
741 * IniParseFeedback.cc (IniParseFeedback::progress): Provide completion
743 (IniParseFeedback::iniName): Tell what ini filename we are currently
745 * IniParseFeedback.h: Declare IniParseFeedback.cc changes.
746 * IniParseFindVisitor.cc (IniParseFindVisitor::IniParseFindVisitor):
747 Make the feedback object non-const to allow mutating methods which are
748 needed when the object has state.
749 (IniParseFindVisitor::visitFile): Tell the caller the name of each
751 Initialise the parser with the feedback object to allow it to tell of
753 * IniParseFindVisitor.h: Declare IniParseFindVisitor.cc changes.
754 * Makefile.am (inilinst_SOURCES): Add more requisite classes.
755 (setup_SOURCES): Add the new PackageSpecification sources.
756 * ScanFindVisitor.cc (ScanFindVisitor::visitFile): Use the new
757 builder syntax to setup binary package details.
758 * choose.cc: Use the LogSingleton calls throughout.
759 * configure.in: Create the INILINT substitution correctly for recent
760 autotool configurations.
761 * cygpackage.cc (cygpackage::getfirstfile): Return an empty String
762 rather than a string built from an int. Thanks to Pavel Tsekov for
764 (cygpackage::getnextfile): Ditto.
765 * download.cc: Use LogSIngletion calls throughout.
766 (validateCachedPackage): A refactoring of the
767 check_for_cached code to eliminate duplciation.
768 (check_for_cached): Use validateCachedPackage to check packages.
769 * ini.cc (GuiParseFeedback): Provide gui feedback on ini name and
771 (do_remote_ini): Ditto.
772 * ini.h (ini_init): Pass a IniParseFeedback to the parser, to allow
774 * inilex.l: Identify new symbols - operators, and multi line plain text.
776 * inilintmain.cc (show_help): Provide basic infomation on inilint.
777 * iniparse.y: Adjust for the new builder syntax, and process debian
779 * io_stream_file.cc: Always include mkdir.h.
780 * list.h: Factor index location into a private routine.
781 (list::findindex): Implement this.
782 * mkdir.cc (mkdir_p): Make the use of WIN32 code conditional on mingw
783 builds. NB: This breaks cygwin build functionality still.
784 * package_meta.cc: Use the LogSingleton calls throughout.
785 (packagemeta::set_requirements): Adjust for object changes in
787 * package_meta.h (packagemeta::packagemeta): Initialise new members.
788 (packagemeta::architecture): What platform does this package run on?
789 This may need to move in the future to a per packagefile object.
790 (packagemeta::priority): What priority does this package have?
791 * package_source.h (packagesource::packagesource): Initialise new
793 (packagesource::installedSize): How much space does the package need?
794 (packagesource::setInstalledSize): Tell the amount.
795 (packagesource::_installedSize): And store it.
796 * package_version.cc (packageversion::sourcePackage): return the
798 (packageversion::setSourcePackage): And set it.
799 * package_version.h: Declare the package_version.cc changes.
800 (packageversion::depends): New package specification AND list.
801 (packageversion::predepends): Ditto.
802 (packageversion::recommends): Ditto.
803 (packageversion::suggests): Ditto.
804 (packageversion::replaces): Ditto.
805 (packageversion::conflicts): Ditto.
806 (packageversion::provides): Ditto.
807 (packageversion::sourcePackage): What source package is needed?
808 * threebar.cc (ThreeBarProgressPage::SetText4): Set the label beside
810 * threebar.h: Declare the threebar.cc change.
812 2002-06-27 John Marshall <johnm@falch.net>
814 * res.rc (SETUPINI_MISSING): Make trailing spaces visible.
815 * site.cc (SitePage::OnMessageCmd): Ditto
817 2002-06-15 Robert Collins <rbtcollins@hotmail.com>
819 * nio-ie5.cc (NetIO_IE5::NetIO_IE): Allow cached data.
821 2002-06-15 Robert Collins <rbtcollins@hotmail.com>
823 * package_meta.cc (packagemeta::set_action): When installing packages
824 with no binaries, choose the source package.
826 2002-06-10 Robert Collins <rbtcollins@hotmail.com>
828 * IniParseFindVisitor (IniParseFindVisitor::visitFile): Apply Max
829 Bowshers fix for the crash with a root level setup.ini.
830 * README: Update todos.
832 2002-05-26 Ralf Habacker <ralf.habacker@freenet.de>
834 * archive_tar.cc (archive_tar::next_file_name()): fixed broken
835 GNU long name extension support.
837 2002-05-27 Robert Collins <rbtcollins@hotmail.com>
839 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Don't
840 unescape 0 length strings.
842 2002-05-20 Robert Collins <rbtcollins@hotmail.com>
844 * package_meta.cc (packagemeta::set_action): Don't allow reinstall
845 when local with no cached file, and install the default source if the
846 default version has no binary.
848 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
850 * IniDBBuilderPackage.cc (IniDBBuilderPackage::IniDBBuilderPackage): New
852 (IniDBBuilderPackage::buildVersion): Provide a warning when a newer
853 setup version created the ini file.
854 * IniDBBuilderPackage.h (IniDBBuilderPackage::IniDBBuilderPackage): New
856 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Use the new
858 * IniParseFindVisitor.h (IniParseFindVisitor::IniParseFindVisitor):
859 Require a feedback strategy.
860 * Makefile.am (setup_SOURCES): Add IniParseFeedback sources.
861 * Makefile.in: Regenerate.
863 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
865 * io_stream_file.cc (io_stream_file::remove): Use the SetFileAttributes
866 trick to delete read only files.
867 * io_stream_cygfile.cc (io_stream_cygfile::remove): Use file:// to
869 * Makefile.am (release): Tweak to be more helpful.
870 * Makefile.in: Regenerate.
872 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
874 * Makefile.am (release): Tweak to be more helpful.
875 * Makefile.in: Regenerate.
877 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
879 * Makefile.am (release): Tweak to be more helpful.
880 * Makefile.in: Regenerate.
882 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
884 * choose.cc (scan_downloaded_files): When a non-installed version
885 has neither bin nor src cached files for local installs,
886 remove the version from availability.
888 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
890 * ini.cc (do_remote_ini): Save uncompressed ini's correctly.
892 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
894 * rsync: New support library, contains librsync. This is not (yet)
896 * configure.in: --with-rsync to enable rsync support. (Not complete).
897 * Makefile.am: Enable building with rsync.
898 * Makefile.in: Regenerate.
900 * IniDBBuilder.cc (IniDBBuilder::buildPackageInstall): Pass the md5 as
902 (IniDBBuilder::buildPackageSource): Ditto.
903 * IniDBBuilder.h: Ditto.
904 * IniDBBuilderPackage.cc: Ditto.
905 * IniDBBuilderPackage.h: Ditto.
906 * FindVisitor.cc: New file.
907 * FindVisitor.h: New file, interface for visiting a file system
909 * IniParseFindVisitor.cc: New file.
910 * IniParseFindVisitor.h: New file, concrete FindVisitor that parses
912 * README: Update TODO's.
913 * String++.cc (String::String): New constructor for <string> inter-
915 (String::substr): New method.
917 * choose.cc (scan2): Remove.
918 (scan_downloaded_files): Simplify.
919 * dialog.h: Include parsing pre-requirements.
920 * download.cc (check_for_cached): Fullname was used incorrectly - fix.
921 * filemanip.cc (parse_filename): -src packages where incorrectly parsed.
922 * find.cc: Rewrite. Now uses a Visitor pattern and is re-entrant.
924 * fromcwd.cc: Remove unneeded includes.
925 (is_test_version): Remove.
926 (found_file): Remove.
927 (SetupFindVisitor): Trivial visitor to detect setup.ini's.
929 (do_fromcwd): Remove commented code that has be replaced elsewhere.
930 * ini.cc (local_ini): Remove.
931 (findBuilder): Remove.
932 (find_routine): Remove.
933 (do_local_ini): Use new IniParseFindVisitor.
934 * iniparse.y: Typecase MD5 arrays, as we know they are allocated as
936 * postinstall.cc: Remove non-core includes.
937 (run_script_in_postinstall): Remove.
938 (RunFindVisitor): Trivial Visitor, runs each found script.
939 (do_postinstall): Use new find syntax.
941 2002-05-14 Christopher Faylor <cgf@redhat.com>
943 * ini.cc (find_routine): Don't clear buffer it it's NULL.
945 2002-05-14 Christopher Faylor <cgf@redhat.com>
947 * filemanip.h (trail): Declare.
948 * filemanip.cc (trail): New function.
949 (find_tar_ext): Use trail() instead of strstr().
950 * fromcwd.cc (check_ini): Ditto.
951 * ini.cc (find_routine): Ditto. Don't tack local_dir to path since it
952 should now be fully qualified. Set ini_filename. Reset error_buf and
953 error_count for any subsequent ini file parsing.
954 (ini_filename): New static variable for parse error reporting.
955 (yyerror): Use full path of setup.ini in error message. Subtract one
956 from line number if at bol.
957 * find.cc (found_part): Eliminate.
958 (find_sub): Call for_each with full path found rather than just file
960 (find): Don't calculate found_part.
961 * inilex.l (ini_init): Flush input buffer and reset line number.
962 (yybol): New function. Exports YY_AT_BOL.
963 * iniparse.y: Increase stack depth to allow more tokens to be processed.
964 (yyparse): Remove newline from error condition to allow subsequent
965 per-line error processing to proceed normally.
967 2002-05-14 Christopher Faylor <cgf@redhat.com>
969 * find.cc (find_sub): Be more defensive in preserving trailing parts of
970 components when doing recursive directory searches or calling user
972 * ini.cc (find_routine): Don't assume that any path name with
973 "setup.ini" in it is actually a setup.ini file. Only honor trailing
974 components. Copy path argument to temporary storage when unescaping
975 to prevent nuking of argument.
977 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
979 * CONTRIBUTORS: New file.
981 2002-04-02 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
983 * choose.cc: Run indent.
984 (nextbutton): Remove static variable.
985 (default_trust): Remove use of nextbutton.
986 (set_view_mode): Ditto.
987 (create_listview): Add IDC_CHOOSE_PREV and IDC_CHOOSE_NEXT to ta[] so
988 rbset() sets the prev/next/curr radio buttons properly.
989 (dialog_cmd): Delete function.
990 (dialog_proc): Delete function. Move WM_INITDIALOG functionality to
992 (do_choose): Delete function. Move pre-DialogBox() code to
993 ChooserPage::OnInit(), post-DialogBox() code to ChooserPage::OnNext.
994 (WM_APP_START_CHOOSE): Remove define.
995 (WM_APP_CHOOSE_IS_FINISHED): Remove define.
996 (do_choose_thread): Delete function.
997 (ChooserPage::OnActivate): Delete method.
998 (ChooserPage::OnMessageApp): Delete method.
999 (ChooserPage::OnInit): New method.
1000 (ChooserPage::OnNext): New method.
1001 (ChooserPage::OnBack): New method.
1002 (ChooserPage::OnMessageCmd): New method.
1003 * choose.h: Run indent.
1004 (ChooserPage::OnMessageApp): Delete declaration.
1005 (ChooserPage::OnActivate): Ditto.
1006 (ChooserPage::OnMessageCmd): New declaration.
1007 (ChooserPage::OnInit): Ditto.
1008 (ChooserPage::OnNext): Ditto.
1009 (ChooserPage::OnBack): Ditto.
1010 * desktop.cc (DesktopSetupPage::OnBack): Replace use of IDD_CHOOSER
1012 * fromcwd.cc (do_fromcwd): Replace use of IDD_CHOOSER with IDD_CHOOSE.
1013 * ini.cc (do_ini_thread): Replace use of IDD_CHOOSER with IDD_CHOOSE.
1014 * res.rc (IDD_CHOOSE): Remove dialog template.
1015 (IDD_CHOOSER): Alter dialog template to fit wizard size and format.
1017 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
1019 * LogFile.cc (endLog): Work around an apparent libg++-3 bug causing
1020 corrupt log file entries.
1021 * geturl.cc: Convert to the new LogSingleton logging.
1023 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
1025 * ini.cc (do_remote_ini): Use setup.bz2 if it exists in preference to
1028 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
1030 * geturl.h: Declare getUrlToStream.
1031 * geturl.cc (getUrlToStream): New function.
1032 (get_url_to_membuf): Refactor to use getUrlToStream.
1034 2002-05-11 Robert Collins <rbtcollins@hotmail.com>
1036 * Makefile.am: Add a release target to automate some of the routine
1038 * Makefile.in: Regenerate.
1040 2002-05-11 Robert Collins <rbtcollins@hotmail.com>
1042 * choose.cc (scan_downloaded_files): On local installs remove all
1043 mirror sites if no cached copy of a package is found.
1045 2002-05-10 Robert Collins <rbtcollins@hotmail.com>
1047 * Makefile.in: Regenerate.
1048 * iniparse.y: Use left recursion, not right in the lines rule to
1049 avoid stack overflows.
1050 * README: Update TODO's.
1051 * io_stream_file.cc: Native builds need to include sys/stat.h
1053 2002-05-06 John Marshall <jmarshall@acm.org>
1055 * site.cc (SitePage::OnMessageCmd): recalculate navigation
1056 button activation when "Add" is pressed.
1057 (SitePage::CheckControlsAndDisableAccordingly): tweak comment.
1059 2002-05-07 Robert Collins <rbtcollins@hotmail.com>
1061 * Makefile.am (inlint_SOURCES): Add conditional objects to inilint
1062 depending on platform.
1063 Add file:// support.
1064 * configure.in: Set conditional MINGWTARGET if compiling against mingw
1066 * Makefile.in: Regenerate.
1068 * io_stream_file.cc: Only use win32 calls when building for mingw.
1070 2002-05-05 Robert Collins <rbtcollins@hotmail.com>
1072 * Makefile.am (noinst_PROGRAMS): Make inilint configurable.
1073 * configure.in: Ditto.
1074 Fix incorrect header checking syntax.
1075 * aclocal.m4: Regenerate.
1076 * configure: Regenerate.
1077 * Makefile.in: Regenerate.
1078 * io_stream.cc: Remove platform specific and provider specific code.
1079 (io_stream::registerProvider): New method, registers a Url provider with
1081 Make all methods consistently throw invalid_argument exceptions when
1082 a provider that is requested is not present.
1083 (findProvider): New private function, finds a provider.
1084 * io_stream.h: Declare io_stream::registerProvider.
1085 * io_stream_cygfile.cc: Create a Provider class to register with
1087 * io_stream_file.cc: Ditto.
1088 * archive.cc: Remove unneeded includes.
1089 * archive_tar.cc: Remove unneeded includes.
1090 * archive_tar.h: Add required include.
1091 * archive_tar_file.cc: Remove unneded includes.
1092 * choose.cc: Remove unneeded includes:
1094 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
1096 * io_stream.cc: Use the new log interface thruout.
1098 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
1100 * log.cc (log): Reimplement via LogSingleton.
1102 (exit_setup): Remove.
1103 * log.h (log_save): Remove.
1104 (exit_setup): Remove.
1105 * LogSingleton.cc: New file.
1106 * LogSingleton.h: New file.
1107 * LogFile.cc: New file.
1108 * LogFile.h: New file.
1109 * Makefile.am (inilint_SOURCES): Add the new log interface.
1110 (setup_SOURCES): Add the new log interface and the concrete File
1112 * Makefile.in: Regenerate.
1113 * archive.cc: Use the new log interface thruout.
1114 * archive_tar.cc: Ditto.
1116 * dialog.cc (fatal): Use the new log interface.
1117 * ini.cc (do_ini_thread): Use the log interface to exit.
1118 * isntall.cc (do_install_thread): Ditto.
1119 * netio.cc (auth_cmd): Ditto.
1120 * msg.cc (fatal): Ditto.
1121 * localdir.cc (save_local_dir): Save to different files depending on
1122 the mode, and if a root dir exists.
1124 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
1126 * IniDBBuilder.cc: New file.
1127 * IniDBBuilder.h: New file.
1128 * IniDBBuilderPackage.cc: New file.
1129 * IniDBBuilderPackage.h: New file.
1130 * PackageTrust.h: New file.
1131 * IniState.h: Remove, wasn't thought out well enough.
1132 * Makefile.am (inilint_SOURCES): Add more requirements.
1133 (setup_SOURCES): Add new Builder base and concrete classes.
1134 * Makefile.in: Regenerate.
1135 * String++.cc (String::String): Implement int contructor.
1136 * String++.h (String): Declare int constructor.
1137 * archive_tar.cc (archive_tar::next_file_name): Return String() when
1139 * archive_tar.h (archive_tar_file): Remove get_next_filename method,
1141 * ini.cc: Replace IniState wuth IniDBBuilderPacakge.
1142 (find_routine): Use new IniDBBuilder to configure the parser.
1143 (do_local_ini): Ditto.
1144 (do_remote_ini): Ditto.
1145 * ini.h: Use IniDBBuilder to initialise parsing.
1146 * inilex.l (MD5): Parse the MD5 string correctly, we had the nibbles
1148 (ini_init): Use an IniDBBuilder rather than static variables.
1149 * iniparse.y: Hand off all the object creation to a builder, rather
1150 than hardcoding the behaviour. This allows run-time configured
1152 * io_stream_cygfile.h (io_stream_cygfile): Remove get_next_filename
1153 method, it's not needed.
1154 * io_stream_file.h (io_stream_file): Ditto.
1155 * mount.cc (cygpath): Return String() for missing mounts.
1156 * package_meta.cc (packagemeta::SDesc): Return String() for blank
1158 * package_meta.h (trusts): Remove - replaced by PackageTrust.h.
1159 (packagemeta::packagemeta): Fix incorrect syntax in String constructor
1161 * cygpackage.cc (cygpackage::cygpackage): Fix incorrect syntax in
1162 String constructor usage.
1163 * site.h (site_list_type): Ditto.
1165 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
1167 * String++.h: Declare a << operator that accepts String objects.
1168 * String++.cc: We need iostream for..
1169 (operator <<): this. Provide a << operator that accepts String objects.
1170 * ini.cc (yyerror): Remove the "C" classifier - it's not needed.
1171 Change from vargs to a String parameter.
1172 * inilintmail.cc: Remove the gui related headers.
1173 (yyerror): Implement this for parsing.
1174 * iniparse.y: Use the new yyerror syntax.
1176 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
1178 * Makefile.am: Add IniState.h.
1179 * Makefile.in: Regenerate.
1180 * IniState.h: New file.
1181 * choose.cc: Don't include ini.h - it's not needed.
1182 * configure: Regenerate.
1183 * desktop.cc: Don't include ini.h - it's not needed.
1184 * download.cc: Ditto.
1185 * fromcwd.cc: Ditto.
1186 * ini.cc: Use IniState.h to track each parsing calling.
1187 (find_routine): Ditto.
1188 (do_remote_ini): Ditto.
1189 (do_ini_thread): Ditto.
1190 * ini.h (ini_init): Adjust parameters to include state object.
1191 * inilex.l: Declare parser state variable.
1192 (ini_init): Adjust parameters to include state object.
1193 * iniparse.y: Remove obsolete setup_timestamp and setup_version
1195 (setup_header): Use new state variable to track time and version.
1196 (add_correct_version): Ditto.
1197 * install.cc: Don't include ini.h - it's not needed.
1199 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
1201 * nio-files.cc (NetIO): Use io_stream syntax for get_file_size.
1202 * io_stream_file.cc: Don't include filemanip.h.
1203 (io_stream_file::get_size): Implement here to remove filemanip
1205 * io_stream_cygfile.cc: Don't include filemanip.h.
1206 (io_stream_cygfile::get_size): Implement here to remove filemanip
1208 Implement a stat based version for when win32 is not available.
1209 * filemanip.h (get_file_size): Return size_t - it's more appropriate.
1210 * filemanip.cc: Don't include win32.h - be platform independent.
1211 Include strings.h and io_stream.h as part of that.
1212 (get_file_size): Leverage io_streams and remove win32 implementation.
1213 * download.cc (check_for_cached): Use io_stream syntax for
1215 (download_one): Ditto.
1217 2002-05-02 Robert Collins <rbtcollins@hotmail.com>
1219 * configure.in: Correct a typo in last change.
1220 * configure: Regenerate.
1221 * Makefile.in: Regenerate.
1223 2002-05-02 Robert Collins <rbtcollins@hotmail.com>
1225 * configure.in: Check for string.h and string.
1226 * configure: Regenerate.
1227 * Makefile.in: Regenerate.
1229 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
1231 * res.rc (IDD_SPLASH): Remove white box.
1233 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
1235 Oops! forgot to list these in the last checkin.
1236 * inilintmain.cc: New file.
1237 * md5.h: New file - imported md5 source, BSD style licence.
1238 * md5.cc: New file - imported md5 source, BSD style licence.
1239 * Exception.cc: New file.
1240 * Exception.h: New file.
1241 * MD5++.cc: New file.
1242 * MD5++.h: New file.
1244 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
1246 * Makefile.am (AM_CFLAGS): Remove -mwindows, it's a linker flag.
1247 Remove -fno-rtti, we need it for exceptions.
1248 (AM_CXXFLAGS): Ditto.
1249 (WARNONLY_CFLAGS): Ditto.
1250 (EXTRA_PROGRAMS): Add with initial linter sources - not functional yet.
1251 (setup_LDFLAGS): Add and set to -mwindows.
1252 (setup_SOURCES): Add new sources.
1253 * Makefile.in: Regenerate.
1254 * README: Update TODO.
1255 * choose.cc (scan_downloaded_files): Use ini information if it's
1257 * configure: Regenerate.
1258 * download.cc (check_for_cached): Make reusable from elsewhere.
1259 Throw exceptions on errors (as opposed to failures).
1260 Check MD5 sum when it's known.
1261 (download_one): Never force a download.
1262 Handle corrupt package exceptions.
1263 * ini.cc (find_routine): Reverse escape the URL to correctly identify
1265 * inilex.l (MD5): Provide a parsing rule (note: lowercase is required).
1266 * iniparse.y: Allow calculation of MD5 sums, and allow src only
1268 (process_src): New helper function.
1269 * isntall.cc (install_one_source): Check MD5 sums when possible.
1270 Throw exceptions on errors.
1271 (do_install_thread): Handle exceptions for installation calls.
1272 * package_source.h: Store MD5 information.
1273 * propsheet.cc (PropSheet::Create): Add a useful comment.
1274 * res.rc (IDS_INSTALL_ERROR): Define.
1275 (IDS_CORRUPT_PACKAGE): Define.
1276 * resource.h (IDS_INSTALL_ERROR): Define.
1277 (IDS_CORRUPT_PACKAGE): Define.
1278 * rfc1738.cc (rfc1738_unescape_part): Implement.
1279 * rfc1738.h (rfc1738_unescape_part): Declare.
1281 2002-04-29 Robert Collins <rbtcollins@hotmail.com>
1283 * Makefile.am: Remove dependecy rules that automake emits.
1284 Correct badly copied dependency info for manually compiled files.
1285 (setup_SOURCES): Add all used headers.
1286 (EXTRA_DIST): Include non compilate but required sources.
1287 (setup_LDADD): Remove mingw32, it is autodetected.
1288 * Makefile.in: Regenerate.
1289 * String++.h: sys/types is a system header.
1290 * choose.cc (do_choose_thread): Make into a Win32 thread routine.
1292 (ChooserPage::OnMessageApp): Use Win32 threads. (_beginthread is not
1294 * configure: Regenerate.
1295 * configure.in: Check for mingw32/cygwin specific headers and libraries.
1296 * cygpackage.h: Include the win32.h header to get correct macro
1297 definitions in all situations.
1298 * download.cc (do_download_reflector): Make into a Win32 thread routine.
1300 (do_download): Use Win32 threads.
1302 * install.cc: Ditto.
1303 * (WinMain): Adjust to build valid command line using application
1304 under both mingw32 and cygwin.
1305 * mount.cc (set)cygdrive_flags): Create new system flags if the
1306 user requests system and the value does not exist.
1307 * nio-http.cc: Define a _strnicmp for cygwin.
1308 * package_db.cc: Include <errno.h> if it exists.
1309 * site.cc (do_download_site_info_thread): Make into a Win32 thread
1312 (do_download_site-Info): Use Win32 threads.
1313 * state.cc: Explicity declare variables to avoid header conflicts
1314 caused by '#define extern" on cygwin.
1315 * win32.h: Include <alloca.h> if it exists.
1316 (_MAX_PATH): Define as MAX_PATH when not defined by windows.h.
1317 (_access): Define as access if not defined by windows.h.
1319 2002-04-27 Robert Collins <rbtcollins@hotmail.com>
1321 * compress_gz.cc (compress_gz::error): EOF is not an error condition.
1323 2002-04-27 Robert Collins <rbtcollins@hotmail.com>
1325 * Makefile.am: Add libgetopt++ to the subdirs list.
1326 Search the libgetopt++ header directory.
1327 Link against libgetopt++.la.
1328 (setup_SOURCES): Remove GetOption.cc and getopt.c and Option.cc.
1329 (setup_LDADD): Explicitly include res.o.
1330 * Makefile.in: Regenerate.
1331 * aclocal.m4: Regenerate.
1332 * bootstrap.sh: Call libtoolize.
1333 * configure: Regenerate.
1334 * configure.in: Add libtool support and configure libgetopt++.
1335 * desktop.cc (NoShortcutsOption): Turn into a BoolOption.
1336 (DesktopSetupPage::OnInit): Use the simpler syntax.
1337 * desktop.h: Remove dependency on Option.h, and remove NoShortcustOption
1339 * main.cc: Include getopt++/GetOption.h.
1340 (main): Use simpler syntax.
1344 * GetOption.h: Remove.
1345 * GetOption.cc: Remove.
1347 * Option.cc: Remove.
1349 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
1351 * Makefile.am: Add zlib and bz2lib to SUBDIRS.
1353 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
1355 * aclocal.m4: New file, cached macros.
1356 * bootstrap.sh: New file, calls required autotools in appropriate
1358 * Makefile.am: New file, input Makefile for automake.
1359 * Makefile,in: Now a generated file - regenerate.
1360 * configure: Regenerate.
1361 * configure.in: Add automake support.
1362 * inilex.l: Change VERSION to PACKAGEVERSION to avoid a collision with
1363 automake's VERSION define.
1364 * iniparse.y: Ditto.
1366 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
1368 * cdefs.h: New file, imported to allow getopt.c to build without
1370 * getopt.h: New file, imported to allow building without cygwin headers.
1372 * bz2lib: New directory, contains copy of bz2lib.
1373 * cfgaux: New directory, contains autotool helper scripts.
1374 * Makefile,in: Adjust library and target definitions for building
1375 outside the sourceware tree.
1376 * compress_bz.h: Use new bz2lib header location.
1377 * mount.cc: Import key defines and enums to be independent of cygwin
1379 * configure.in: Update to autoconf 2.53, and to be sourceware
1381 * configure: Regenerate.
1383 2002-04-12 Robert Collins <rbtcollins@hotmail.com>
1385 * mklink2.cc (make_link_2): Tweak to work with current w32api
1388 2002-04-10 Pavel Tsekov <ptsekov@gmx.net>
1390 * version.cc (canonicalize_version): Fix a call delete[]
1391 to delete the allocated address.
1393 2002-03-29 Robert Collins <rbtcollins@hotmail.com>
1395 * PickView.cc (PickView::set_headers): Set last_col correctly. Thanks
1396 to Ton van Overbeek for locating the bug area.
1398 2003-03-27 Robert Collins <rbtcollins@hotmail.com>
1400 * PickView.cc (PickView::insert_pkg): Be more generic with
1402 (PickView::insert_category): Ditto.
1403 (PickView::~PickView): Create.
1404 * PickView.h (PickView::~PickView): Declare.
1406 2003-03-27 Robert Collins <rbtcollins@hotmail.com>
1408 * Makefile.in (OBJS): Add new commandline objects.
1409 * desktop.cc (NoShortCutsOption): New option code.
1410 (DesktopSetupPage::OnInit): Check whether to skip shortcuts.
1411 * desktop.h (NoShortCutsOption): New concrete command line option class.
1412 * main.cc (WinMain): Process command line options.
1413 * GetOption.h: New file, singleton command line class.
1414 * GetOption.cc: New file, implementation of the above.
1415 * Option.h : New file, abstract option for GetOption.
1416 * Option.cc: New file, implement constructor and destructor.
1418 2002-03-26 Pavel Tsekov <ptsekov@gmx.net>
1420 * mkdir.cc (mkdir_p): Stop processing if the path is exhausted.
1422 2002-03-26 Ton van Overbeek <tvoverbe@cistron.nl>
1424 * PickPackageLine.cc (PickPackageline::paint): Adjust clipping rectangle
1425 to textheight, so large fonts work.
1427 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
1429 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Don't translate
1432 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
1434 * io_stream_cygfile.cc (cwd): New static for cwd storage.
1435 (io_stream_cygfile::normalise): New method.
1436 (io_stream_cygfile::io_stream_cygfile): Use it.
1437 (io_stream_cygfile::exists): Ditto.
1438 (io_stream_cygfile::remove): Ditto.
1439 (io_stream_cygfile::mklink): And again.
1440 (cygmkdir_p): Yes, again.
1441 (io_stream_cygfile::move): And once more.
1442 * io_stream_cygfile.h (io_stream_cygfile::normalise): Declare.
1443 (io_stream_cygfile::cwd): Ditto.
1445 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
1447 * package_meta.cc (package_meta::~package_meta): Remove duplicate.
1448 (CategoryPackage::~CategoryPackage): Ditto. (Thanks to Ton van
1449 Overbeek for the report).
1450 * mklink2.cc: Moved from mklink2.c to avoid 'not a prototype error'.
1451 Make g++ compatible.
1452 * mklink2.c: Remove.
1453 * site.cc (site_list_type::init): Delete the correct memory addres.
1454 Thanks to Pavel Tsekov for tracking this down.
1456 2002-03-20 Robert Collins <rbtcollins@hotmail.com>
1458 * win32.h: Only define alloca if it's not already.
1460 2002-03-20 Robert Collins <rbtcollins@hotmail.com>
1462 * package_meta.h (packamgemeta::trustp): Make 'test' choice leave installed
1464 * README: Update with latest requests.
1465 * Various: MTC fixes from setup200202 branch.
1467 2002-03-19 Christopher Faylor <cgf@redhat.com>
1469 * Makefile.in (setup_version.c): Add back magic which allows detection
1470 of setup.exe version number.
1472 2002-03-17 Robert Collins <rbtcollins@hotmail.com>
1474 * * PickPackageLine.cc (PickPackageLine::paint): Fix incorrect clip region
1475 calculation on win9x systems.
1477 2002-03-16 Robert Collins <rbtcollins@hotmail.com>
1479 * install.cc (install_one_source): Write the correct length of a string to the
1480 lst file (Thanks to Pavel Tsekov for reporting the bug).
1482 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
1484 * choose.cc (list_click): Always refresh the entire chooser, as our
1485 package state change mechanism is broken with the new improved list classes.
1487 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
1489 * desktop.cc (make_passwd_group): Check for .lnk suffix on /etc/passwd and
1492 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
1494 * PickPackageLine.cc (PickPackageLine::DrawCheck): New method factored out from
1496 (PickPackageLine::paint): Use DrawCheck to draw the src tick box, and the new
1498 (PickPackageLine::click): Handle the new bin tickbox.
1499 * PickPackageLine.h (PickPackageLine::DrawCheck): Declare this.
1500 * PickView.cc (pkg_headers): Add a Bin? column.
1501 (cat_headers): Ditto.
1502 (PickView::set_headers): Ditto.
1503 (PickView::init_headers): Ditto.
1504 * PickView.h (PickView): Ditto.
1505 * choose.cc (list_click): Use the new name for src_col to set the clip rectangle.
1507 2002-02-24 Michael A Chase <mchase@ix.netcom.com>
1509 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Fix up Robert's
1512 2002-02-24 Michael A Chase <mchase@ix.netcom.com>
1514 * desktop.cc (make_link): Add "file://" prefix to io_stream::mkpath_p()
1516 (make_passwd_group): Ditto.
1517 * localdir.cc (save_local_dir): Ditto.
1518 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Wrap long lines.
1519 Add "cygfile://" prefix to io_stream::open() calls.
1521 2002-02-24 Robert Collins <rbtcollins@hotmail.com>
1523 * log.cc (log_save): Fix creating /var/log.
1524 * packate_meta.cc (standard_dirs): Remove duplicate '/''s.
1526 2002-02-24 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1528 * res.rc (STRINGTABLE): Add IDS_CYGWIN_SETUP and
1529 IDS_CYGWIN_SETUP_WITH_PROGRESS strings.
1530 * resource.h: Add IDS_CYGWIN_SETUP and
1531 IDS_CYGWIN_SETUP_WITH_PROGRESS IDs.
1533 * splash.cc (OnInit): Qualify SetWindowText() call with global scope
1534 operator (::SetWindowText()).
1536 * threebar.cc: Run indent.
1537 (cistring.h): Add include.
1538 (SetText1, SetText2, SetText3): Qualify SetWindowText() call with
1539 global scope operator.
1540 (SetBar2): Add logic for writing percent complete into window title.
1542 * window.h: Run indent.
1543 (SetWindowText): New function.
1544 (String): Add forward declaration.
1545 * window.cc: Run indent.
1546 (String++.h): Add include.
1547 (SetWindowText): New function.
1549 2002-02-24 Robert Collins <rbtcollins@hotmail.com>
1551 * README: Update TODO list.
1552 * install.cc (install_one): Fix src package location.
1553 (do_install_thread): Fix creating directories.
1555 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1557 * choose.cc: Include cygpackage.h for scan2 use.
1558 (set_existence): Ignore setup.ini mirrors when installing from cwd.
1559 (scan2): Process any valid file.
1560 Add cache entries when a file matching a setup.ini listed version is found.
1561 * filemanip.cc (parse_filename): Remove pkgtar - not used anywhere else.
1562 * filemanip.h (filemanip::pkgtar): Remove.
1563 * package_meta.cc (CategoryPackage::~CategoryPackage): New method.
1564 (packagemeta::~packagemeta): Move from package_meta.h
1565 Remove and delete all version and category information.
1566 * package_meta.h (CategoryPackage): Create a destructor.
1567 (packagemeta::~packagemeta): Move to .cc file.
1569 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1571 * install.cc (install_one_source): Make NULL cached package names cause
1574 2002-02-18 Michael A Chase <mchase@ix.netcom.com>
1576 * desktop.cc (make_passwd_group): Don't create passwd-grp.bat
1579 2002-02-18 Michael A Chase <mchase@ix.netcom.com>
1581 * log.cc (log_save): Put "\n" at end of log lines instead of "'".
1583 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1585 * mount.cc (create_mount): Avoid a const char*->char* warning.
1586 (read_mounts): Ditto.
1588 2002-02-05 Jason Tishler <jason@tishler.net>
1590 * download.cc (do_download_thread): Fix off-by-one error.
1592 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1594 * configure.in (CXXFLAGS): Substitute at configure time, not runtime.
1595 * configure (CXXFLAGS): Regenerate.
1596 * Makefile.in (iniparse.o): Build via default rules - no errors now.
1597 * README: TODO list updates.
1599 2002-02-19 Michael A Chase <mchase@ix.netcom.com>
1601 * String++.cc (String::concat):: Remove.
1602 (String::vconcat):: Ditto.
1603 * String++.h (String::concat):: Remove.
1604 (String::vconcat):: Ditto.
1605 * archive_tar.cc: Don't include concat.h.
1606 * archive_tar_file.cc: Don't include concat.h.
1607 * compress_bz.cc (compress_bz::peek): Don't log unneeded messages.
1608 (compress_bz::seek): Ditto.
1609 (compress_bz::~compress_bz): Ditto.
1610 * compress_gz.cc (compress_gz::peek): Ditto.
1611 (compress_gz::error): Ditto.
1612 (compress_gz::~compress_gz): Ditto.
1613 * concat.cc (vconcat): Remove.
1615 * concat.h (vconcat): Remove.
1617 * desktop.cc (desktop_icon): Use new cygpath.
1618 (make_etc_profile): Ditto.
1620 (make_passwd_group): Ditto.
1622 (check_desktop): Remove concat use.
1623 (check_start_menu): Ditto.
1624 * download.cc (download_one): Use new mkpath_p correctly.
1626 * fromcwd.cc: Don't include concat.h.
1627 * geturl.cc (get_url_to_membuf): Use String log() call.
1628 (get_url_to_file): Ditto.
1629 * install.cc: Don't include concat.h.
1630 (uninstall_one): Use LOG_PLAIN.
1631 (replace_one): Ditto.
1632 (install_one_source): Ditto.
1633 (install_one): More char to String conversion.
1634 (do_install_thread): Use new cygpath.
1635 Use new create_mount.
1636 * io_stream.cc (io_stream::move): Use new log().
1637 * io_stream_cygfile (io_stream_cygfile::io_stream_cygfile): Use new cygpath.
1638 (io_stream_cygfile::exists): Ditto.
1639 (io_stream_cygfile::remove): Ditto.
1640 (io_stream_cygfile::mklink): Ditto.
1641 (io_stream_cygfile::write): Ditto.
1642 (cygmkdir_p): Ditto.
1643 (io_stream_cygfile::move): Ditto.
1644 * io_stream_file.cc: Don't include log.h.
1645 (io_stream_file::write): Don't log unneeded messages.
1646 * localdir.cc: Don't include concat.h.
1647 (LocalDirPage::OnNext): Use LOG_PLAIN.
1648 * log.cc: Don't include log.h.
1649 (exit_setup): Use new cygpath.
1650 * log.h (log_level): Add new level LOG_PLAIN.
1651 * main.cc (WinMain): Use new log().
1652 * mount.cc (SLASH_P): New macro from concat.h.
1653 (cygpath): Make String version globally visible.
1654 Remove varargs version.
1656 * msg.cc (mbox): Use LOG_PLAIN.
1657 * net.cc (NetPage::OnNext): Ditto.
1658 * nio-ftp.cc (ftp_line): Use new log().
1659 * nio-http.cc: Don't include log.h.
1660 (retry_get): Use alternative url variable.
1661 * package_db.cc: Don't include concat.h.
1662 (packagedb::flush): Don't use concat.
1663 * package_meta.cc: Don't include concat.h.
1664 (packagemeta::uninstall): Use new cygpath.
1665 * postinstall.cc (do_postinstall): Ditto.
1666 * root.cc (RootPage::OnNext): Use LOG_PLAIN.
1667 * script.cc: Don't include concat.h.
1668 (init_run_script): Use new cygpath.
1669 (run_script): More char * to String conversion.
1670 (try_run_script): Ditto.
1671 * site.cc: Don't include concat.h.
1672 (SitePage::OnNext): Use LOG_PLAIN.
1673 (SitePage::OnMessageCmd): Use new log().
1674 * source.cc (SourcePage::OnDeactivate): Use LOG_PLAIN.
1676 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1678 * Makefile.in (OBJS): Add new object.
1679 * PickCategoryLine.cc (PickCategoryLine::paint): Print a "+" before the name.
1680 * PickCategoryLine.h (PickCategoryLine::bucket): Use the String class.
1681 * PickLine.h (Pickline::key): Change to a String to help plug leaks.
1682 (PickLine::Pickline): Accept a String for the key.
1683 * PickPackageLine.cc (PickPackageLine::paint): Convert all char use to Strings.
1684 * PickPackageLine.h (PickPackageLine::PickPackageLine): The key is automatically
1686 * PickView.cc (PickView::note_width): Convert all char * use to Strings.
1687 (PickView::init_header): Move category length checking out of the inner loop for
1689 Convert all char use to Strings.
1690 * PickView.h: Include the String++ header.
1691 (PickView::note_width): Update the prototype.
1692 * String++.cc: New file, implements a reference counting string class.
1693 * String++.h: New file, declares a reference counting string class.
1694 * archive.cc: Include String++ instead of concat.
1695 (archive::extract_file): Convert char * usage to Strings.
1696 * archive.h: Inlude the String++ header.
1697 (archive::extract_file): Update prototype.
1698 (archive::next_file_name): Convert to a String.
1699 (archive::linktarget): Ditto.
1700 * archive_tar.cc (archive_tar::next_file_name): Convert to String usage.
1701 (archive_tar::linktarget): Ditto.
1702 * arhive_tar.h: Update the copyright.
1703 Explicitly include the relevant headers.
1704 (tar_map_result_type): Convert to String usage.
1705 (archive_tar::next_file_name): Update prototype.
1706 (archive_tar::linktarget): Ditto.
1707 * category.cc (Category::Category): Update initialisers.
1708 Convert to String usage.
1709 (Categorycmp): Update to String usage.
1710 * category.h: Include the String++ header.
1711 (Category::Category): Update to String usage.
1712 (Category::name): Ditto.
1713 (Category::key): Ditto.
1714 * choose.cc: Remove concat.h, it's not needed.
1715 (scan2): Update to String usage.
1717 * cygpackage.cc: Update includes for use of String class.
1718 (cygpackage::cygpackage): Update for String usage.
1719 (cygpackage::set_canonical_version): Ditto.
1720 (cygpackage::destroy): Ditto.
1721 (cygpackage::getfirstfile): Ditto.
1722 (cygpackage::getnextfile): Ditto.
1723 (cygpackage::Name): Ditto.
1724 (cygpackage::Vendor_version): Ditto.
1725 (cygpackage::Package_version): Ditto.
1726 (cygpackage::Canonical_version): Ditto.
1727 (cygpackage::set_sdesc): Ditto.
1728 (cygpackage::set_ldesc): Ditto.
1729 * cygpackage.h: Include String++.h for parsing this file.
1730 (cygpackage::cygpackage): Update for String usage.
1731 (cygpackage::set_canonical_version): Ditto.
1732 (cygpackage::destroy): Ditto.
1733 (cygpackage::getfirstfile): Ditto.
1734 (cygpackage::getnextfile): Ditto.
1735 (cygpackage::Name): Ditto.
1736 (cygpackage::Vendor_version): Ditto.
1737 (cygpackage::Package_version): Ditto.
1738 (cygpackage::Canonical_version): Ditto.
1739 (cygpackage::set_sdesc): Ditto.
1740 (cygpackage::set_ldesc): Ditto.
1741 (cygpackage::name): Ditto.
1742 (cygpackage::vendor): Ditto.
1743 (cygpackage::packagev): Ditto.
1744 (cygpackage::canonical): Ditto.
1745 (cygpackage::fn): Ditto.
1746 (cygpackage::sdesc): Ditto.
1747 (cygpackage::ldesc): Ditto.
1748 * desktop.cc: Update includes for use of String class.
1749 (batname): Update for String usage.
1752 (start)menu): Ditto.
1753 (desktop_icon): Ditto.
1754 (make_cygwin_bat): Ditto.
1755 (make_etc_profile): Ditto.
1757 (make_passwd_group): Ditto.
1759 (check_desktop): Ditto.
1760 (check_startmenu): Ditto.
1761 * dialog.cc (eget): Update for String usage.
1762 (egetString): New function.
1763 (eset): New variant for Strings.
1764 * dialog.h: Include String++.h for parsing this file.
1765 (egetString): New function.
1766 (eset): New variant for Strings.
1767 * diskfull.cc (diskfull): Update for String usage.
1768 * diskfull.h: Include String++.h for parsing this file.
1769 (diskfull): Update for String usage.
1770 * download.cc: Update includes for use of String class.
1771 (check_for_cached): Update for String usage.
1772 (download_one): Ditto.
1773 * filemanip.cc (get_file_size): Ditto.
1775 (parse_filename): Ditto.
1777 * filemanip.h: Include String++.h for parsing this file.
1778 (fileparse): Update for String usage.
1780 (parse_filename): Ditto.
1781 Don't consider '_' to be a separator.
1783 * find.cc: Update includes for use of String class.
1784 (find_sub): Make more flexible.
1785 (find): Update for String usage.
1786 * find.h (find): Use Strings.
1787 * fromcwd.cc (found_file): Update for String usage.
1789 (init_dialog): Ditto.
1790 (get_url_to_membuf): Ditto.
1791 (get_url_to_string): Ditto.
1792 (get_url_to_file): Ditto.
1794 (get_url_to_membuf): Ditto.
1795 (get_url_to_string): Ditto.
1796 (get_url_to_file): Ditto.
1798 (add_subdirs): Ditto.
1799 * ini.cc: Update includes for String usage.
1800 (find_routine): Update for String usage.
1801 (do_remote_ini): Ditto.
1802 (do_ini_thread): Ditto.
1803 * ini.h (ini_init): Ditto.
1804 * inilex.l: Update includes for String usage.
1805 (ini_init): Update for String usage.
1806 * iniparse.y: Ditto.
1807 (add_correct_version): Ditto.
1808 * install.cc: Update includes for String usage.
1809 (install_one_source): Update for String usage.
1810 (uninstall_one): Ditto.
1811 (replace_one): Ditto.
1812 (install_one_source): Ditto.
1813 (do_install_thread): Ditto.
1814 * io_stream.cc: Update includes for String usage.
1815 (io_stream::open): Update for String usage.
1816 (io_stream::mkpath_p): Ditto.
1817 (io_stream::remove): Ditto.
1818 (io_stream::mklink): Ditto.
1819 (io_stream::move_copy): Ditto.
1820 (io_stream::move): Ditto.
1821 (io_stream::exists): Ditto.
1822 * io_stream.h: Update includes to allow correct parsing.
1823 (io_stream::open): Update for String usage.
1824 (io_stream::mkpath_p): Ditto.
1825 (io_stream::remove): Ditto.
1826 (io_stream::mklink): Ditto.
1827 (io_stream::move_copy): Ditto.
1828 (io_stream::move): Ditto.
1829 (io_stream::exists): Ditto.
1830 * io_stream_cygfile.cc: Update includes for String usage.
1831 (get_root_dir_now): Update for String usage.
1832 (io_stream_cygfile::io_stream_cygfile): Ditto.
1833 (io_stream_cygfile::~io_stream_cygfile): Ditto.
1834 (io_stream_cygfile::exists): Ditto.
1835 (io_stream_cygfile::remove): Ditto.
1836 (io_stream_cygfile::mklink): Ditto.
1837 (cygmkdir_p): Ditto.
1838 (io_stream_cygfile::set_mtime): Ditto.
1839 (io_stream_cygfile::move): Ditto.
1840 (io_stream_cygfile::get_size): Ditto.
1841 * io_stream_cygfile.h: Update includes for String usage.
1842 (io_stream_cygfile::io_stream_cygfile): Update for String usage.
1843 (io_stream_cygfile::~io_stream_cygfile): Ditto.
1844 (io_stream_cygfile::exists): Ditto.
1845 (io_stream_cygfile::remove): Ditto.
1846 (io_stream_cygfile::mklink): Ditto.
1847 (cygmkdir_p): Ditto.
1848 (io_stream_cygfile::set_mtime): Ditto.
1849 (io_stream_cygfile::move): Ditto.
1850 (io_stream_cygfile::get_size): Ditto.
1851 (io_stream_cygfile::fname): Ditto.
1852 (io_stream_cygfile::lmode): Ditto.
1853 * io_stream_file.cc: Update includes for String usage.
1854 (io_stream_file::io_stream_file): Update for String usage.
1855 (io_stream_file::~io_stream_file): Ditto.
1856 (io_stream_file::exists): Ditto.
1857 (io_stream_file::remove): Ditto.
1858 (io_stream_file::mklink): Ditto.
1859 (io_stream_file::set_mtime): Ditto.
1860 (io_stream_file::move): Ditto.
1861 (io_stream_file::get_size): Ditto.
1862 * io_stream_file.h: Update includes for String usage.
1863 * io_stream_file.cc: Update includes for String usage.
1864 (io_stream_file::io_stream_file): Update for String usage.
1865 (io_stream_file::~io_stream_file): Ditto.
1866 (io_stream_file::exists): Ditto.
1867 (io_stream_file::remove): Ditto.
1868 (io_stream_file::mklink): Ditto.
1869 (io_stream_file::set_mtime): Ditto.
1870 (io_stream_file::move): Ditto.
1871 (io_stream_file::get_size): Ditto.
1872 (io_stream_file::fname): Ditto.
1873 (io_stream_file::lmode): Ditto.
1874 * localdir.cc: Update includes for String usage.
1875 (save_local_dir): Update for String usage.
1876 (check_if_enable_next): Ditto.
1877 (load_dialog): Ditto.
1879 (LocalDirPage::OnInit): Ditto.
1880 (LocalDirPage::OnNext): Ditto.
1881 * log.cc: Update includes for String usage.
1882 (struct LogEnt): Update for String usage.
1885 (exit_setup): Ditto.
1886 * log.h: Update includes for String usage.
1887 (log_level): Update for String usage.
1890 * main.cc (WinMain): Update for String usage.
1891 * mklink2.c (make_link_2): Update for String usage.
1892 * mklink2.h (make_link_2): Update for String usage.
1893 * mount.cc: Update includes for String usage.
1894 (mount_table): Update for String usage.
1896 (create_mount): Ditto.
1898 (remove_mount): Ditto.
1899 (read_mounts): Ditto.
1900 (set_root_dir): Ditto.
1901 (get_root_dir): Ditto.
1902 (path_prefix_p): Ditto.
1904 * mount.h: Update includes for String usage.
1905 (create_mount): Update for String usage.
1906 (remove_mount): Ditto.
1908 (set_root_dir): Ditto.
1909 (get_root_dir): Ditto.
1910 * msg.cc (mbox): Ditto.
1911 * net.cc (NetPage::OnNext): Ditto.
1912 * package_db.cc (packagedb::flush): Ditto.
1913 (packagedb::packages): Ditto.
1914 (packagedb::categories): Ditto.
1915 * package_db.h: Update includes for String usage.
1916 (packagedb::packages): Update for String usage.
1917 (packagedb::categories): Ditto.
1918 * package_meta.cc: Update includes for String usage.
1919 (hash::add_subdirs): Update for String usage.
1920 (packagemeta::uninstall): Ditto.
1921 (packagemeta::SDesc): Ditto.
1922 (packagemeta::action_caption): Ditto.
1923 * package_meta.h: Update includes for String usage.
1924 (packagemeta::packagemeta): Update for String usage.
1925 (packagemeta::~packagemeta): Ditto.
1926 (packagemeta::uninstall): Ditto.
1927 (packagemeta::SDesc): Ditto.
1928 (packagemeta::action_caption): Ditto.
1929 (package_source.cc site::site): Ditto.
1930 (packagesource::set_canonical): Ditto.
1931 (packagesource::set_cached): Ditto.
1932 * package_source.h: Update includes for String usage.
1933 (site::site): Update for String usage.
1934 (packagesource::set_canonical): Ditto.
1935 (packagesource::set_cached): Ditto.
1936 (packagesource::packagesource): Ditto.
1937 (packagesource::sites): Ditto.
1938 (packagesource::cached): Ditto.
1939 * package_version.h: Update includes for String usage.
1940 (Dependency): Update for String usage.
1941 (packageversion): Ditto.
1942 * postinstall.cc: Update includes for String usage.
1943 (do_postinstall): Update for String usage.
1944 * res.rc (IDD_LOCAL_DIR): Fix typo again!
1945 * rfc1738.cc (rfc1738_escape_part): Update for String usage.
1946 * rfc1738.h: Update includes for String usage.
1947 (rfc1738_escape_part): Update for String usage.
1948 * root.cc: Update includes for String usage.
1949 (check_if_enable_next): Update for String usage.
1950 (save_dialog): Ditto.
1952 (directory_is_absolute): Ditto.
1953 (directory_is_rootdir): Ditto.
1954 (directory_has_spaces): Ditto.
1955 (RootPage::OnInit): Ditto.
1956 (RootPage::OnNext): Ditto.
1957 * script.cc: Update includes for String usage.
1958 (init_run_script): Update for String usage.
1960 (run_script): Ditto.
1961 (try_run_script): Ditto.
1962 * script.h: Update includes for String usage.
1963 (run_script): Update for String usage.
1964 (try_run_script): Ditto.
1965 * site.cc site_list): Ditto.
1966 (all_site_list): Ditto.
1967 (other_url): Eliminate.
1968 (site_list_type::init): Update for String usage.
1969 (site_list_type::site_list_type): Ditto.
1970 (get_site_list): Ditto.
1971 (get_saved_sites): Ditto.
1972 (do_download_site_info_thread): Ditto.
1973 (SitePage::OnNext): Ditto.
1974 (SitePage::OnActivate): Ditto.
1975 (SitePage::PopulateListBox): Ditto.
1976 (SitePage::OnMessageCmd): Handle empty url's.
1977 * site.h: Update includes for String usage.
1978 (site_list_type::site_list_type): Update for String usage.
1979 (site_list_type::init): Ditto.
1980 (site_list_type::~site_list_type): Ditto.
1981 (site_list_type::url): Ditto.
1982 (site_list_type::displayed_url): Ditto.
1983 (site_list_type::key): Ditto.
1984 * source.cc (SourcePage::OnDeactivate): Ditto.
1985 * state.h: Update includes for String usage.
1986 (local_dir): Update for String usage.
1987 (trust_level): Remove.
1988 * version.cc: Update includes for String usage.
1989 (canonicalize_version): Update for String usage.
1990 * version.h: Update includes for String usage.
1991 (canonicalize_version): Update for String usage.
1993 2002-02-15 Christopher Faylor <cgf@redhat.com>
1995 * filemanip.c (parse_filename): Revert previous change.
1997 2002-02-14 Christopher Faylor <cgf@redhat.com>
1999 * filemanip.c (parse_filename): Don't treat '_' as a version number
2002 2002-01-29 Christopher Faylor <cgf@redhat.com>
2004 * configure: Regenerate.
2006 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
2008 * res.rc (IDD_LOCAL_DIR): Fix typo reported by Rene
2009 <Hoeck@extern.lrz-muenchen.de>
2011 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
2013 * README: Update Todo's.
2014 * list.h: Run indent.
2015 (list): New methods checksize and insert to reduce code duplication.
2016 (list::registerbykey): Use them.
2017 (list::registerbyobject): Ditto.
2018 (list::removebyindex): Copy each object individually - safe for non
2020 (list::checksize): Implement.
2021 (list::insert): Implement.
2023 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
2025 * Makefile.in: Remove the dlmalloc object by default.
2026 * install.cc (do_install_thread): Remove the mallinfo call for 'working
2027 around' the crashing issue.
2028 * package_db.h: Include <string.h> - it's needed to parse this.
2029 * package_source.cc (site::site): Move here from the header file.
2030 * package_source.h (site): Stop the constructor being inlinable.
2032 2002-01-26 Robert Collins <rbtcollins@hotmail.com>
2034 * filemanip.cc (find_tar_ext): Add a descriptive comment.
2036 2002-01-25 Michael A Chase <mchase@ix.netcom.com>
2038 * filemanip.cc (find_tar_ext): Clean up tests for .tar.gz and .tar.
2039 * fromcwd.cc (do_fromcwd): Expand FIXME comment in source file check.
2040 * install.cc (install_one_source): Add space between words in log()
2043 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
2045 * log.cc (exit_setup): When saving to the download dir, explicity
2048 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
2050 * archive.cc (extract_file): Separate out the prefix and the URL
2052 * archive.h (archive::extract_file): Ditto.
2053 * install.cc (install_one_source): Ditto. Use the new
2054 archive::extract_file syntax.
2055 (replace_one): Use the new syntax.
2056 (io_stream.cc): Add some log info for links.
2058 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
2060 * PickCategoryLine.cc (PickCategoryLine::actiontext): Remove.
2061 (PickCategoryLine::paint): Use the new action method.
2062 (PickCategoryLine::click): Set the action for all children.
2063 (PickCategoryLine::set_action): New method.
2064 * PickCategoryLine.h (PickCategoryLine::-actions): Remove.
2065 (PickCategoryLine::current_default): Use packagemeta _actions class.
2066 * PickLine.h (PickLine::set_action): New abstract method that requires
2067 including package_meta.h.
2068 * PickPackageLine.cc (PickPackageLine::set_action): New method.
2069 * PickPackageLine.h (PickPackageLine::set_action): Declare this.
2070 * list.h (getbykey): A const correctness fix.
2071 * package_meta.cc: Run indent.
2072 (packagemeta::Default_action): New const.
2073 (packagemeta::Install_action): Ditto.
2074 (packagemeta::Reinstall_action): Ditto.
2075 (packagemeta::Uninstall_action): Ditto.
2076 (packagemeta::_actions::caption): New method.
2077 (packagemeta::_actions::operator++): Ditto.
2078 (packagemeta::set_action): New overload.
2079 * package_meta.h (packagemeta::_actions): New class.
2080 (packagemeta::set_action): Declare this.
2082 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
2084 * Makefile.in (OBJS): Remove supp.o - it appears accidental.
2085 * choose.cc: Don't define alloca anymore, it's done in win32.h
2087 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
2089 * PickPackageLine.cc: New file.
2090 * PickPackageLine.h: New file.
2091 * PickLine.cc: New file.
2092 * PickLine.h: New file.
2093 * PickCategoryLine.cc: New file.
2094 * PickCategoryLine.h: New file.
2095 * PickView.cc: New file.
2096 * PickView.h: New file.
2097 * Makefile.in: Add new objects to setup.exe.
2098 Backout -fno-exceptions option.
2099 * choose.cc: Include PickView.h.
2100 Remove view related defines and static variables.
2101 (_pkg_headers): Moved to PickView.cc.
2102 (_cat_headers): Ditto.
2103 (view::views::Unknown): Ditto.
2104 (view::views::PackageFull):
2105 (view::views::Package):
2106 (view::views::Category):
2107 (pkgtrustp): Moved to package_meta.cc.
2108 (add_required): Moved to package_meta.cc.
2109 (pick_category_line::empty): Moved to PickCategoryLine.cc
2110 (paint): Adjust for moved static variables.
2111 (view::scroll): Moved to PickView.cc.
2112 (list_vscroll): Adjust for moved static variables.
2113 (list_hscroll): Ditto.
2114 (list_click): Ditto.
2115 (note_width): Moved to PickView.cc.
2116 (view::view): Ditto.
2117 (view::set_view_mode): Ditto.
2118 (view::mode_caption): Ditto.
2119 (view::views::caption): Ditto.
2120 (view::set_headers): Ditto.
2121 (DoInsertItem): Ditto.
2122 (view::init_headers): Ditto.
2123 (view::insert_pkg): Ditto.
2124 (view::insert_category): Ditto.
2125 (view::clear_view): Ditto.
2126 (view::views::operator++): Ditto.
2127 (view::click): Ditto.
2128 (default_trust): Adjust for moved statics.
2129 (pick_pkg_line::paint): Moved to PickPackageLine.cc.
2130 (pick_pkg_line::click): Ditto.
2131 (pick_category_line::actiontext): Moved to PickCategoryLine.cc
2132 (pick_category_line::paint): Ditto.
2133 (pick_category_line::click): Ditto.
2134 (set_view_mode): Adjust for moved statics.
2135 (create_listview): Ditto.
2136 * choose.h: Remove Category and packagemeta forward defines - not needed.
2137 Don't include unneeded headers list and package_meta.
2138 (_header): Move to PickView.h.
2139 (pick_line): Move to PickLine.h.
2140 (pick_pkg_line): Move to PickPackageLine.h.
2141 (pick_category_line): Move to PickCategoryLine.h.
2142 (view): Move to PickView.h.
2143 * ini.h (trusts): Move to package_meta.h.
2144 * package_meta.h (trusts): New enum.
2145 (packagemeta::set_requirements): New helper method.
2146 (packagemeta::trustp): Ditto.
2148 2002-01-21 Christopher Faylor <cgf@redhat.com>
2150 * choose.h (view): Move forward declaration of views into public area
2151 or g++ v3 will complain.
2153 2002-01-21 Christopher Faylor <cgf@redhat.com>
2155 * Makefile.in (CXXFLAGS): Add -fno-exceptions.
2156 * win32.h (alloca): Define as __builtin_alloca.
2157 * io_stream_memory.cc: Add include file.
2159 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
2161 * archive_tar.cc (archive_tar::~archive_tar): Mark the stream as destroyed.
2162 * archive_tar_file.cc (archive_tar_file::~archive_tar_file): Ditto.
2163 * compress.cc (compress::~compress): Be less verbose.
2164 * compress_bz.cc (compress_bz::~compress_bz): Ditto.
2165 Mark the stream as destroyed.
2166 * compress_gz.cc (compress_gz::~compress_gz): Mark the stream as destroyed.
2167 * io_stream.cc (io_stream::~io_stream): Only warn when the stream is not marked
2169 * io_stream_cygfile.cc (io_stream_cygfile::~io_stream_cygfile): Mark the
2170 stream as destroyed.
2171 * io_stream_file.cc (io_stream_file::~io_stream_file): Ditto.
2172 * io_stream_memory.cc (io_stream_memory::~io_stream_memory): Ditto.
2174 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
2176 * Makefile.in (CFLAGS): Allow customisable malloc debug flags.
2177 (OBJS): Link in malloc objects.
2178 * category.cc (category): Use new char, not strdup.
2179 * choose.cc (pick_pkg_line::paint): Allow for the regionsize to shrink.
2180 (do_choose): Use new char, not malloc.
2181 * concat.cc (vconcat): Ditto.
2182 * cygpackage.cc (cygpackage): Use new char, not strdup.
2183 (set_canonical_version): Ditto.
2184 (cygpackage::destroy): Use delete[], not free.
2185 * desktop.cc (uexists): Ditto.
2186 * dialog.cc (egest): Use new char, not strdup.
2187 * dlmalloc.c: New file - Doug Lea's malloc 2.7.0
2188 * hash.cc (hash::hash): Use delete instead of free.
2189 (hash::add): Use new char, not strdup.
2190 * ini.cc (do_remote_ini): Use delete[] not free.
2191 * inilex.l: Use new char, not strdup.
2193 * iniparse.y: Ditto.
2194 Use a local package_db rather than a static one.
2195 * install.cc (struct mallinfo): Workaround an apparent dlmalloc bug.
2196 (do_install_thread): Call mallinfo to force a consistency check. Appears
2197 to fix a 'inuse' error in -DDEBUG builds.
2198 Use delete[] for strings.
2199 * io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile): Use new char,
2201 (io_stream_cygfile::~io_stream_cygfile): Use delete[], not free.
2202 (io_stream_cygfile::remove): Use new char, not strdup.
2203 * io_stream_file.cc (io_stream_file::io_stream_file): Use new char, not strdup.
2204 (io_stream_file::io_stream_file): Use delete[], not free.
2205 (io_stream_file::remove): Use new char, not strdup.
2206 * io_stream_memory.cc (memblock::~memblock): Use delete[], not free.
2207 * io_stream_memory.h (memblock): Use new char, not malloc.
2208 * localdir.cc (LocalDirPage::OnInit): Use new char, not strdup.
2209 * main.cc (WinMain): Use new char, not strdup.
2210 * mount.cc (find2): Use new char, not malloc.
2211 (read_mounts): Ditto.
2212 (cygpath): Use new char, not strdup.
2213 * netio.cc (NetIO::~NetIO): Use delete[], not free.
2214 (NetIO::set_url): Use new char, not strdup.
2215 (NetIO::get_ftp_auth): Use delete[], not free.
2216 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
2217 Use new char instead of strdup.
2218 * nio-http.cc (base64_encode): Use new char, not malloc.
2219 * package_meta.cc (hash::add_subdirs): Use new char instead of strdup.
2220 * package_source.h (~ packagesource): Use delete[] instead of delete.
2221 * port.h (strdup): Deprecate the use of strdup.
2222 * rfc1738.cc (rfc1738_do_escape): Use new char, not calloc.
2223 * script.cc (init_run_script): Us delete[], not free.
2224 (run_script): Ditto.
2225 * simpsock.cc (SimpleSocket::fill): Use new char, not malloc.
2226 (SimpleSocket::invalidate): Use delete[], not free.
2227 * site.cc (site_list_type::init): Use new char instead of strdup.
2228 * site.h (~site_list_type): Use delete[], not free.
2230 2002-01-20 Robert Collins <rbtcollins@hotmail.com>
2232 * Makefile.in (OBJS): Add win32.o - win32 support functions.
2233 * README: Update todos.
2234 * archive.cc (extract_file): Support a suffix for appending to extracted files.
2236 * choose.cc (set_view_mode): Use the new view::views class.
2237 (view::views::Unknown): New static for defaulting view::views variables.
2238 (view::views::PackageFull): New static for the current view.
2239 (view::views::Package): Ditto.
2240 (view::views::Category): Ditto.
2241 (topbucket::paint): Remove.
2242 (topbucket::empty): Rename to pick_category_line::empty.
2243 (topbucket::~topbucket): Remove.
2244 (paint): Use the new view::views class.
2245 Don't paint 'all' as a category when showing package categoies.
2246 (pick_category_line::actiontext): New method.
2247 (pick_category_line::paint): Make showing the category optional, and show the
2249 (pick_category_line::click): Make showing the category optional, and
2250 differentiate between the name being clicked, and the action description.
2251 (view::view): Use the new view::views class.
2252 (view::set_view_mode): Ditto.
2253 (view::mode_caption): Ditto.
2254 (view::views::caption): New method.
2255 (view::set_headers): Use the new view::views class.
2256 (view::clear_view): Ditto.
2257 (viewsplusplus): Replaced by
2258 (view::views::operator++): New operator.
2259 (set_view_mode): Use the new view::views class.
2260 (create_listview): Ditto.
2261 (dialog_cmd): Ditto.
2262 * choose.h (actions): Remove.
2264 (pick_line): Add a new convenience constructor.
2265 (top_bucket): Remove.
2266 (pick_category_line): Reparent under pick_line, and adsorb top_bucket.
2267 (view::views): New class.
2268 * ini.h: Don't include choose.h
2269 (is_download_action): Remove.
2270 (is_upgrade_action): Remove.
2271 (is_uninstall_action): Remove.
2272 (is_full_action): Remove.
2273 * install.cc (num_replacements): New static.
2274 (rebootneeded): Ditto.
2275 (replace_one): Handle upgrades separate from removal or new installs.
2276 (install_one_source): Handle in use files.
2277 (install_one): Don't repeat upgrades.
2278 (do_install_thread): Initialize new statics.
2279 Order actions as uninstall, replace, install.
2280 Warn about rebooting if needed.
2281 * res.rc (IDS_REBOOT_REQUIRED): New string.
2282 * resource.h (IDS_REBOOT_REQUIRED): Give value.
2283 * win32.h: Declare class Win32, and update copyright and intent message.
2284 * win32.cc: New file.
2286 2002-01-15 Corinna Vinschen <corinna@vinschen.de>
2288 * io_stream.cc (io_stream::gets): Eliminate trailing new line chars.
2289 * package_meta.cc (packagemeta::uninstall): Check for additional
2290 Windows shortcut. Unset R/O file attribute before trying to delete
2293 2002-01-09 Robert Collins <rbtcollins@hotmail.com>
2295 * choose.cc (pkgtrustp): Fall back to installed if a package is not present in
2296 the current trust level. For prev, fall back via curr.
2297 (set_existence): Allow sources with no sites, but cached files to be
2299 (pick_category_line::paint): Start drawing clickable categories.
2300 * fromcwd.cc (found_file): Reinstate local file scanning.
2302 2002-01-07 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2304 * fromcwd.cc: Run indent.
2305 (do_fromcwd): Reverse sense of comment. Set next_dialog
2306 to IDD_CHOOSER instead of IDD_CHOOSE.
2307 * ini.cc (find_routine): Remove "/" from "/setup.ini".
2309 2001-01-07 Robert Collins <rbtcollins@hotmail.com>
2311 * category.cc (Categorycmp): Add a const safe version.
2312 * category.h (Categorycmp): Add a const safe version.
2313 (Category): Add operator ==.
2314 * choose.cc (fill_missing_category): Add every package to "All".
2315 (pick_category_line::paint): Add support for hidden labels, and a tree depth.
2316 (pick_category_line::click): Ditto.
2317 (view::view): Pass in a top level category to use.
2318 (view::insert_pkg): Special case - skip category "All".
2319 (view::insert_category): Ditto.
2320 (view::clear_view): Set the contents label state.
2321 (create_listview): Pass in a top level category to view().
2322 * choose.h (topbucket): Make bucket available to derived classes.
2323 (pick_category_line): Add support for hidden labels, and a tree depth.
2324 Remove our second copy of bucket.
2325 (view): Pass in a top level category to the constructor.
2326 Use pick_category_line to allow three level display.
2328 2001-01-06 Robert Collins <rbtcollins@hotmail.com>
2330 * cygpackage.h (cygpackage): Make set_[s|l]desc virtual.
2331 * iniparse.y (add_correct_version): Copy descriptions across.
2332 * package_meta.cc (SDesc): Iterate through versions, return the first with a
2334 * package_version.h (packageversion): Add new virtuals set_[l|s]desc.
2336 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
2338 * script.cc (run_script): Change cygpath:// to cygfile://.
2339 * install.cc (do_install_thread): Fix off-by-one errors.
2341 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
2343 * package_db.cc (packagedb::flush): Fix an off-by-one error.
2345 2002-01-04 Jan Nieuwenhuizen <janneke@gnu.org>
2347 * Makefile.in (realclean): more clean.
2348 (OBJS): Add script.o.
2349 * postinstall.cc (run_script_in_etc_postinstall): New function.
2350 (do_postinstall): Split off new funtion init_run_script ().
2353 (run_script): Move to script.cc. Replace some deprecated remove
2356 * script.cc: New file.
2357 * Forward port cygwin-20010707.jcn3.patch.
2358 * package_meta.cc (uninstall): Run pre- and postremove scripts.
2359 * install.cc: Typo fix.
2360 (do_install): Run script initialisation.
2362 2001-01-04 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2364 * cistring.cc: Run d2u.
2365 * cistring.h: Run d2u.
2367 * desktop.cc (etc_profile): Remove "test -f ./.bashrc && . ./.bashrc"
2368 from the generated /etc/profile. Bash will source this file
2369 automatically, and having this here merely results in .bashrc being
2370 executed twice. Run d2u.
2371 * desktop.h: Run d2u.
2373 * propsheet.cc: Run d2u.
2374 (PropSheetProc): New function. Add minimize box here instead of in
2375 PropertyPage::DialogProc.
2376 (PropSheet::Create): Change to use creation callback PropSheetProc.
2377 (DLGTEMPLATEEX): Add 'hidden' Windows struct definition.
2379 * propsheet.h: Run indent, d2u.
2380 * proppage.h: Run indent, d2u.
2382 * proppage.cc: Run d2u.
2383 (PropertyPage::DialogProc): Remove minimize-box-adding
2384 functionality. Remove commented-out "PropSheet_SetWizButtons" calls.
2385 Add support for calling virtual OnMessageCmd. Add setting of fonts in
2386 WM_INITDIALOG handler.
2387 (resource.h): New include for resource IDs.
2389 * res.rc: Resize and rearrange property page dialog templates
2390 to bring them in line with "Microsoft's Backward Compatible Wizard 97"
2391 specification. Run d2u.
2392 (IDD_SITE): Add an edit control and an "Add" button in order to
2393 combine the IDD_SITE and IDD_OTHER_URL functionality onto one page.
2394 (IDD_OTHER_URL): Remove dialog template.
2395 (IDD_DLSTATUS): Remove dialog template.
2398 (SitePage::OnBack): Remove NEXT() macro invocation.
2399 (SitePage::OnActivate): New member function.
2400 (load_dialog): Remove. Functionality subsumed into
2401 SitePage::OnActivate.
2402 (save_dialog): Change to support both list and user URLs. Remove
2403 OTHER_IDX and mirror_idx logic.
2404 (SitePage::PopulateListBox): New member function.
2405 (SitePage::CheckControlsAndDisableAccordingly): New member function.
2406 (SitePage::OnMessageCmd): New override.
2407 (check_if_enable_next): Remove.
2408 (dialog_cmd): Remove.
2409 (do_download_site_info_thread): Remove calls to NEXT() macro.
2410 (SitePage::Create): Call the single-param PropertyPage::Create
2412 (other_url): New static taken from other.cc.
2413 (SitePage::OnNext): Remove mirror_idx logic.
2414 (SitePage::OnInit): Remove "Other URL" entry from list box. Remove
2415 list box populating code, now handled in SitePage::PopulateListBox.
2416 (mirror_idx, NO_IDX, OTHER_IDX): Remove.
2417 (save_site_url): Fix potential buffer overflow problem. Switched to
2418 TCHAR in grossly premature preparation for multilingual support.
2420 (SitePage::OnActivate): New member function.
2421 (SitePage::CheckControlsAndDisableAccordingly) New member.
2422 (SitePage::OnMessageCmd): New override.
2423 (do_download_site_info_thread): Add MessageBox call on failure to
2426 * splash.cc: Run d2u.
2427 (SplashPage::OnInit): Set the font for the title.
2428 * splash.h: Run d2u.
2430 * threebar.cc: Run d2u.
2431 * threebar.h: Run d2u.
2433 * window.h: Run d2u.
2434 (Window::IsButtonChecked): New member function declaration.
2435 (Window::OnMessageCmd): New member function.
2436 (Window::SetDlgItemFont): New member function declaration.
2437 (Window::MAXFONTS, Window::Fonts, Window::FontCounter): New data
2439 * window.cc: Run d2u.
2440 (Window::IsButtonChecked): New member function definition.
2441 (Window::SetDlgItemFont): New member function definition.
2442 (Window::Window): Add initialization for FontCounter.
2443 (Window::~Window): Delete any fonts we created.
2445 * geturl.cc: Run d2u.
2446 (progress): Remove the "3" field width from the "%3d"
2447 percent-complete format indicator. Causes line to not start at
2448 beginning of text box, and does little to help with "jumping", since
2449 the "bytes downloaded so far" field is variable-width anyway. Change
2450 kb/s format field to "%03.1" to 0-pad the kb/s number in the event of
2451 painfully slow connections, or temporary slowdowns in faster
2452 connections should such more-instantaneous functionality become
2456 (NetPage::OnMessageCmd): New member function declaration.
2457 (NetPage::CheckIfEnableNext): New member function declaration.
2459 (NetPage::OnMessageCmd): New member function definition.
2460 (dialog_cmd): Remove, subsumed into NetPage::OnMessageCmd.
2461 (check_if_enable_next): Remove.
2462 (NetPage::CheckIfEnableNext): New member function, subsumes
2463 check_if_enable_next.
2464 (propsheet.h): Add include.
2465 (NetPage::Init): Add call to CheckIfEnableNext.
2466 (load_dialog): Remove call to check_if_enable_next.
2467 (NetPage::Create): Call single-template-ID-parameter overload of
2468 PropertyPage::Create instead of three-parameter one.
2470 * Makefile.in (OBJS): Remove other.o.
2471 * other.cc: Remove file.
2473 2002-01-01 Robert Collins <rbtcollins@hotmail.com>
2475 * README: Update TODO's.
2476 * choose.cc (set_existence): Delete non installed packages with no
2478 (fill_missing_category): Fix an off-by-one error.
2479 (default_trust): Ditto. Also delete any unused categories.
2480 (view::init_headers): Fix an off-by-one error.
2481 (set_view_mode): Ditto.
2482 (set_view_mode): Ditto.
2483 (create_listview): Ditto.
2484 (dialog_cmd): Ditto.
2486 * io_stream.cc: Indent.
2487 * io_stream.h: Ditto.
2488 * package_db.cc: Ditto.
2489 * package_meta.h: Const correctness for SDesc ();
2490 * proppage.cc: Run d2u and indent.
2491 * propsheet.cc: Run d2u and indent.
2492 * window.cc: Run d2u and indent.
2493 * window.h: Run d2u and indent.
2495 2001-12-28 Christopher Faylor <cgf@redhat.com>
2497 * Makefile.in (iniparse.o): Accommodate newer bisons.
2499 2001-12-23 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2501 * window.h (Window): New file, new class.
2502 * window.cc (Window): New file, new class.
2504 * threebar.h (ThreeBarProgressPage): New file, new class.
2505 * threebar.cc (ThreeBarProgressPage): New file, new class.
2507 * splash.h (SplashPage): New file, new class.
2508 * splash.cc (SplashPage): Replace file with implementation of new
2511 * source.h (SourcePage): New file, new class.
2512 * source.cc: Run indent.
2513 (SourcePage): Add class implementation to this file.
2514 (do_source): Remove, functionality subsumed by SourcePage::Create()
2515 and SourcePage::OnDeactivate().
2516 (dialog_proc): Remove, functionality subsumed by
2517 SourcePage::OnActivate().
2519 * site.h: Run indent.
2520 (SitePage): Add class declaration.
2521 * site.cc: Run indent.
2522 (SitePage): Add class implementation.
2523 (do_download_site_info_thread): New function.
2524 (context): New var. Context info for do_download_site_info_thread().
2525 (do_download_site_info): New function.
2526 (SitePage::Create, SitePage::OnInit SitePage::OnNext)
2527 (SitePage::OnBack): SitePage class implementation..
2528 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers, now handled
2529 by SitePage members.
2530 (dialog_proc): Remove, now handled by SitePage::OnInit and base class
2532 (do_site): Remove, now handled by do_download_site_info_thread() and
2533 SitePage::OnNext functionality.
2534 (get_site_list): Remove dismiss_url_status_dialog() call.
2536 * root.h (RootPage): New file, new class.
2537 * root.cc: Run indent.
2538 (dialog_cmd): Pass parent HWND parameter to note(), yesno().
2539 (dialog_proc): Remove.
2541 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL clauses from switch.
2542 (RootPage::OnInit): New member function. Move get_root_dir() logic to
2543 here from do_root().
2544 (RootPage::Create): New member function.
2545 (RootPage::OnNext): New member function. Move IDOK logic from
2546 dialog_cmd() to here.
2547 (RootPage::OnBack): New member function.
2549 * propsheet.h (PropSheet): New file, new class.
2550 * propsheet.cc (PropSheet): New file, new class.
2552 * proppage.h (PropertyPage): New file, new class.
2553 * proppage.cc (PropertyPage): New file, new class.
2555 * postinstall.cc (do_postinstall): Add owner parameter.
2557 * other.cc (do_other): Add owner parameter.
2559 * nio-file.cc (NetIO::Purl): Pass NULL parent param to note().
2560 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Pass NULL parent param to
2562 * nio-http.cc (retry_get): Pass NULL parent param to get_auth(),
2565 * nio-ie5.cc (NetIO::_url): Pass NULL parent param to note(),
2566 get_auth(), get_proxy_auth().
2568 * netio.h (get_auth, get_proxy_auth, get_ftp_auth): Add owner param.
2569 * netio.cc (auth_common, NetIO::get_auth, NetIO::get_proxy_auth,
2570 NetIO::get_ftp_auth)
2571 (auth_common): Add owner param. Pass owner param to DialogBox.
2572 (NetIO::get_auth, NetIO::get_proxy_auth, NetIO::get_ftp_auth): Pass
2573 owner param to auth_common().
2575 * net.h (NetPage): New file, new class.
2576 * net.cc: Run indent.
2577 (net.h, threebar.h): Add includes.
2578 (Progress): Add extern.
2579 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, now handled by
2580 property sheet logic. Saved temporarily for reference.
2581 (NetPage::Create, NetPage::OnInit, NetPage::OnDeactivate,
2582 NetPage::OnNext, NetPage::OnBack):
2583 New implementation of NetPage class members.
2585 (dialog_proc): Remove.
2587 * msg.h (fatal, note, yesno): Add owner param.
2588 * msg.c (fatal, note, yesno, mbox): Add owner param.
2589 (mbox): Remove MB_TOPMOST from MessageBox call. Unnecessary and wrong
2590 now that we have a parent.
2592 * main.cc: Run indent.
2593 (commctrl.h, proppage.h, propsheet.h, splash.h, source.h)
2594 (localdir.h, net.h, site.h, choose.h, threebar.h, desktop.h): Include
2596 (root_dialog_proc): extern into this file.
2597 (Progress): Progress dialog defined here, used in several other files.
2598 (WinMain): Instantiate and create Splash, Source, Root, LocalDir, Net,
2599 Site, Chooser, Desktop pages and MainWindow sheet. Call
2600 InitCommonControls() to make sure Windows is set up for our use of
2601 property sheets. Add pages to sheet.
2602 Call MainWindow.Create() to "DoModal". Remove main loop, that logic is
2603 now handled by the PropSheet class.
2604 (root.h): Add include.
2606 * log.cc (log_save): Pass NULL parent to fatal().
2607 (exit_setup): Pass NULL parent to note().
2609 * localdir.h (LocalDirPage): New file, new class.
2610 * localdir.cc: Run indent.
2611 (localdir.h): New include.
2612 (threebar.h): New include.
2613 (Progress): extern into this file.
2614 (LocalDirPage::Create, LocalDirPage::OnInit, LocalDirPage::OnActivate)
2615 (LocalDirPage::OnNext, LocalDirPage::OnBack): Implementation of
2617 (LocalDirPage::OnNext): Move log() call from do_local_dir() to here.
2618 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers.
2619 (do_local_dir): Remove.
2620 (dialog_proc): Remove.
2621 (cwd): Remove, not used by anything.
2623 * install.cc: Run indent.
2624 (process.h, threebar.h): New includes.
2625 (Progress): extern into this file.
2626 (ins_dialog, ins_action, ins_pkgname, ins_filename, ins_pprogress)
2627 (ins_iprogress, ins_diskfull, init_event): Remove, now handled by
2628 ThreeBarProgressPage.
2629 (dialog_cmd, dialog_proc, dialog): Removed, handled in
2630 ThreeBarProgressPage.
2631 (init_dialog): Remove all mention of the above ins_* handles. Now
2632 handled in ThreeBarProgressPage. Altered SetWindowText()s to call
2633 ThreeBarProgressPage instance Progress directly.
2634 (progress): Alter bar update logic to call ThreeBarProgressPage
2635 instance Progress directly.
2636 (uninstall_one): Alter SetWindowText()s to call ThreeBarProgressPage
2637 instance Progress directly.
2638 (install_one_source): Alter SetWindowText()s to call
2639 ThreeBarProgressPage
2640 instance Progress directly. Pass NULL parent to note().
2641 (do_install_thread): Rename from do_install(), added owner param.
2642 Alter SetWindowText()s to call ThreeBarProgressPage instance Progress
2644 Remove dismiss_url_status_dialog() call, no longer necessary. Remove
2645 ShowWindow(<hide>) call, also unnecessary now. Pass owner handle to
2647 (do_install_reflector): New function.
2648 (do_install): New function.
2650 * ini.cc (process.h, threebar.h): New includes.
2651 (Progress): externed into this file.
2652 (find_routine): Pass NULL parent to note().
2653 (do_local_ini): Add owner param.
2654 (do_remote_ini): Add owner param. Pass owner to get_url_to_membuf()
2655 and note(). Remove call to dismiss_url_status_dialog().
2656 (do_ini_thread): Rename from do_ini(). Add owner param. Pass owner to
2657 do_local_ini(), do_remote_ini(), yesno(), and note(). Set next_dialog
2658 to IDD_CHOOSER on exit.
2659 (do_ini_thread_reflector): New function.
2660 (context): New var. Context for do_ini_thread.
2661 (do_ini): New function.
2663 * geturl.h (get_url_to_membuf, get_url_to_string, get_url_to_file): Add
2665 * geturl.cc (gw_dialog, gw_url, gw_rate, gw_progress, gw_pprogress,
2667 (gw_progress_text, gw_pprogress_text, gw_iprogress_text, init_event):
2669 (threebar.h): New include.
2670 (Progress): externed into this file.
2671 (dialog_cmd, dialog_proc, dialog): Removed, handled by
2672 ThreeBarProgressPage now.
2673 (init_dialog): Remove "if (gw_dialog == 0)" clause. Alter
2675 and bar setting SendMessage()s to call ThreeBarProgressPage instance
2676 Progress directly. Remove "one bar only" logic, this is now handled
2677 explicitly in the ThreeBarProgressPage class.
2678 (progress): Altered bar and text update logic to call
2679 ThreeBarProgressPage instance Progress directly. Changed kbps
2680 calculation to floating point and now print out a single decimal
2682 (get_url_to_membuf): Add owner param. Pass it to init_dialog.
2683 (get_url_to_string): Add owner param. Pass it to get_url_to_membuf.
2684 (get_url_to_file): Add owner param. Pass it to init_dialog. Alter bar
2685 update logic to call ThreeBarProgressPage instance Progress directly.
2686 (dismiss_url_status_dialog): Remove.
2688 * fromcwd.cc (do_fromcwd): Add owner param. Initialize found_ini to
2691 * download.cc: Run indent.
2692 (process.h, threebar.h): New includes.
2693 (Progress): externed into this file.
2694 (download_one): Add owner param. Pass it to get_url_to_file().
2695 (do_download_thread): Renamed from do_download. Add owner param. When
2696 calculating total_download_bytes, take binpicked and srcpicked into
2697 account. Remove call to dismiss_url_status_dialog(), no longer needed.
2698 Pass owner handle to download_one() and yesno().
2699 (do_download_reflector, do_download): New functions.
2700 (context): New var. Context for do_download_thread().
2702 * dialog.h (D(x)): Add owner param.
2704 * desktop.h (DesktopSetupPage): New file, new class.
2705 * desktop.cc: Run indent.
2706 (desktop.h): Add include.
2707 (dialog_proc, do_desktop): Remove, now handled in
2708 DesktopSetupPage::OnInit().
2709 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, handled in
2710 DesktopSetupPage::OnFinish(), DesktopSetupPage::OnBack(), and PropSheet
2712 (DesktopSetupPage::Create, DesktopSetupPage::OnInit)
2713 (DesktopSetupPage::OnBack, DesktopSetupPage::OnFinish): Implementation
2714 of DesktopSetupPage.
2716 * cistring.h: New file, new class.
2717 * cistring.cc: New file, new class.
2719 * choose.h: Run indent.
2720 (Chooser): New class declaration.
2721 * choose.cc: Run indent.
2722 (do_choose): Add owner param. Pass it to DialogBox() and
2724 (Chooser): New class implementation.
2726 * res.rc (IDS_VERSION_INFO): New string.
2727 (IDD_SOURCE, IDD_LOCAL_DIR, IDD_ROOT, IDD_SITE, IDD_OTHER_URL)
2728 (IDD_DLSTATUS, IDD_INSTATUS, IDD_SPLASH, IDD_CHOOSE, IDD_DESKTOP):
2729 Change WS_POPUP to WS_CHILD. Numerous positioning/size changes
2731 (IDD_CHOOSE): Give template the WS_EX_CONTROLPARENT style to enable
2732 TAB control navigation etc. Give the controls a reasonable tab order.
2733 Grouped radio buttons. Something's still not right, can't tab away
2734 from back/next/cancel group reliably.
2735 * resource.h (IDD_CHOOSER): New dialog ID.
2737 * Makefile.in (OBJS): Add cistring.o, proppage.o, propsheet.o,
2738 threebar.o, and window.o.
2740 2001-12-21 Robert Collins <rbtcollins@hotmail.com>
2742 * choose.cc (listview_proc): Update the scrollbar when the headers are dragged.
2743 (pick_pkg_line::paint): Clip columns to prevent overlap.
2745 2001-12-20 Robert Collins <rbtcollins@hotmail.com>
2747 * Makefile.in: Add libcomctl32.a for setup.exe.
2748 * archive.h (archive): Prevent non-child direct creation of the class.
2749 * archive_tar.h (archive_tar): Prevent inaccurate synthetic copy and assignment.
2750 * choose.cc: Include commctrl for the choose header.
2751 (NEW_COL_SIZE_SLOP): Define without magic numbers.
2752 (pkgtrustp): Convert to function.
2753 (set_action): Remove.
2754 (add_required, fill_missing_category,default_trust): Use list syntax for
2757 (choose_caption): Remove.
2758 (topbucket::paint): New method.
2759 (topbucket::empty): Ditto.
2760 (topbucket::click): Ditto.
2761 (topbucket::~topbucket): Ditto.
2762 (paint): Remove i,ii and p as they are obsolete.
2763 Remove header drawing code.
2764 Use new chooser method to paint the chooser.
2765 Use new chooser itemcount method.
2766 (scroll_common): Rename to view::scroll.
2767 Scroll the header window separately.
2768 (list_vscroll, list_hscroll, list_click): Update for new chooser methods.
2769 (listview_proc): Look for header messages.
2770 (note_width): Accept stringless calls.
2771 (pick_line::set_line): Remove.
2772 (pick_line::paint): Remove.
2773 (pick_pkg_line::paint): Paint this one line, using the header column widths.
2774 (pick_category_line::paint): Paint this category, and anything in the bucket.
2775 (pick_line::click): Remove.
2776 (pick_pkg_line::click): Handle a click.
2777 (pick_category_line::click): Handle a click.
2778 (_view): Rename all to view.
2779 (view::view): Initialise the control contents.
2780 (view::set_headers): Work with the header control.
2781 (view::init_headers): Use list syntax for package list.
2782 Rearrange the width logic a little.
2783 (view::insert_pkg): Update to use the hierarchy.
2784 (view::insert_category): Ditto.
2785 (view::insert_at, view::insert_under): Remove.
2786 (view::clear_view): Update to use the hierarchy.
2787 (view::click): Update to use the hierarchy.
2788 (set_view_mode): Use list syntax for package list.
2789 Update for new chooser methods.
2790 (DoInsertItem): New helper function. (Needs a home somewhere).
2791 (create_listview): Remove choose control code and use the constructor instead.
2792 (dialog_cmd,scan2,do_choose): Use list syntax for package list.
2793 * choose.h: Include newly required headers list and package_meta.
2794 (_voew): Rename to view.
2795 (pick_line): Convert to an ABC.
2796 (pick_pkg_line): New class.
2797 (pick_catgory_line): New class.
2798 (topbucket): New class.
2799 (view::scroll): New method created from listview_scroll function.
2800 * desktop.cc (make_passwd_group): Use list syntax for package list.
2801 * download.cc (do_download): Use list syntax for package list.
2802 * fromcwd.cc (found_file): Use list syntax for package list.
2803 * iniparse.y (pacakges): Use list syntax for package list.
2804 * install.cc (uninstall_one): Use list syntax for package list.
2805 (do_install): Use list syntax for package list.
2806 * io_stream.h (io_stream): Prevent non-child direct creation of the class.
2807 Prevent inaccurate synthetic copy and assignment.
2808 * list.h: Include required header stdlib.
2809 Work on const correctness.
2810 * package_db.cc (packagedb::getpackagebyname): Remove.
2811 (packagedb::packagedb): Remove custom list code, and make db a local.
2812 (packagedb::getfirstpackage): Remove.
2813 (packagedb::getnextpackage): Remove.
2814 (packagedb::addpackage): Remove.
2815 (flush): Remove custom list code.
2816 (packagedb::registerpackage): Remove.
2817 (packagedb::packages): New static member.
2818 (packagedb::task): New static member.
2819 * package_db.h (PackageDBActions): New enum.
2820 (packagedb): Remove getfirstpackage, getnextpackage, getpackagebyname,
2821 addpackage, registerpackage, packages, packagecount, curr_package, db.
2823 * pacakge_meta.cc: Include package_db.h.
2824 (packagemeta::action_caption): New method.
2825 (packagemeta::set_action): New method.
2826 * package_meta.h (CategoryPackage): Initialise key.
2827 (packagemeta): Initialise key.
2828 Add set_action and action_caption methods.
2829 Prevent inaccurate synthetic copy and assignment.
2830 * resource.h (IDC_CHOOSE_LISTHEADER): New ID.
2831 * source.cc: Include package_db for db manipulation.
2832 (save_dialog): Set the db task.
2833 * win32.h: Tell the w32 include headers what IE version to expect/require.
2835 2001-12-06 Robert Collins <rbtcollins@hotmail.com>
2837 * README: Wishlist updates.
2839 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
2841 * package_db.cc (getnextpackage): Don't overrun the array.
2843 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
2845 * Makefile.in (OBJS): Add setup_version.o.
2846 (version.c): Rename to setup_version.
2847 * choose.cc (set_action): Prevent NULL pointer dereference.
2848 (package_sort): Remove.
2849 * fromcwd.cc (canonicalize_version): Moved to version.cc.
2850 (check_ini): New function for use with find to see if there is a cached setup.ini.
2851 (do_fromcwd): Check for a cached setup.ini from any mirror site.
2852 * ini.cc (find_routine): New function, for finding cached setup.ini's.
2853 (do_local_ini): New function, drives parsing of local ini's.
2854 (do_remote_ini): New function, drives parsing and caching of remote ini's.
2855 (do_ini): Move guts to do_remote_ini and do_local_ini.
2856 * list.h (removebyindex): New method.
2857 * other.cc (save_dialog): Use new site_list and all_site_list to add the
2858 new site to the site picklist.
2859 (dialog_cmd): Only save the dialog when exiting the dialog.
2860 * res.rc (IDD_SITE): Make IDC_URL_LIST a multiple-selection control.
2861 * site.cc (site_list_type): Move to site.h
2862 (site_list): New global, sites chosen by the user.
2863 (all_site_list): New global, all potential sites.
2864 (site_list_type::init): New method, parses a mirror.lst URL string into a
2865 site_list_type object.
2866 (site_list_type::site_list_type): New method.
2867 (check_if_enable_next): Examine the control, not a local variable.
2868 (load_dialog): Select all the user chosen sites by default.
2869 (save_dialog): Adjust for multiple selection semantics.
2870 (save_site_url): Save all user chosen sites.
2871 (dialog_cmd): Don't save the dialog when the listbox recieves a message -
2873 Remove obsolete other_url reference.
2874 (dialog_proc): Use all_site_list instead of site_list.
2875 (site_sort): Remove.
2876 (get_site_list): Remove malloc use - use list template instead.
2877 Move site_list_type initialisation to site_list_type::init().
2878 (get_initial_list_idx): Renamed to ...
2879 (get_saved_sites): this. Also read in multiple sites to the site_list.
2880 (do_site): Use all_site_list not site_list.
2881 Log all chosen sites.
2882 * site.h: New file, defines site related class, functions and variables.
2883 * state.h: Add comment about use of state.h
2884 (mirror_site): Remove.
2885 (other_url): Remove.
2886 (MIRROR_SITE): Remove.
2887 * version.cc: New file, for version-handling and related functions.
2889 2001-12-02 Robert Collins <rbtcollins@hotmail.com>
2891 * Makefile.in: Add filemanip.o to setup.
2892 * archive.cc (archive::extract_file): Use new io_stream method 'copy'.
2893 * archive_tar.h (archive_tar_file): Implement get_size virtual.
2894 (archive_tar): Ditto.
2895 * choose.cc (set_action): Use [] operator instead of getnth - its more readable.
2897 (_view::init_headers): Ditto.
2898 (_view::insert_pkg): Ditto.
2899 (set_view_mode): Ditto.
2902 (base): Moved to filemanip.cc.
2903 (find_tar_ext): Ditto.
2904 (parse_filename): Ditto.
2905 (_Info::_Info): Remove.
2906 * compress_bz.h (compress_bz): Implement get_size virtual.
2907 * compress_gz.h (compress_gz): Implement get_size virtual.
2908 * cygpackage.cc (cygpackage::destroy): Use array delete for char * objects.
2909 * download.cc (get_file_size): Move to filemanip.cc.
2910 (check_for_cached): Use [] operator instead of getnth - its more readable.
2911 (download_one): Ditto.
2912 * filemanip.cc: New file.
2913 * geturl.cc (init_dialog): Make url a pointer to const as it is not modified.
2914 (get_url_to_membuf): New function - contains get_url_to_string worker code.
2915 (get_url_to_string): Becomes a trivial wrapper to get_url_to_membuf.
2916 * geturl.h: Declare new prototype.
2917 * ini.cc (do_ini): Use get_url_to_membuf and pass ini_init an io_stream.
2918 Tidy up the error code a little.
2919 * ini.h: Remove __cplusplus protection for ini_init.
2921 * inilex.l: Remove old globals.
2922 (ini_init): Use an io_stream for getting the characters.
2923 (ini_getchar): Ditto.
2924 * iniparse.y: Declare yylex as a C++ function.
2925 (add_correct_version): Use [] operator instead of getnth - its more readable.
2926 * io_stream.cc (io_stream::move_copy): Use the copy method.
2927 (io_stream::copy): New method to simply copy from one stream to another.
2928 * io_stream.h (io_stream): New static method copy, and virtual method get_size.
2929 * io_stream_cygfile.cc (io_stream_cygfile::get_size): Implement this.
2930 * io_stream_cygfile.h (io_stream_cygfile::get_size): Declare this.
2931 * io_stream_file.cc (io_stream_file::get_size): Implement this.
2932 * io_stream_file.h (io_stream_file::get_size): Declare this.
2933 * io_stream_memory.h: Include errno as it's neded to parse the header.
2934 (io_stream_memory::get_size): Implement this.
2935 (io_stream_memory::st_size): Delete this.
2936 * list.h: Change getnth into the [] operator.
2937 * netio.cc (NetIO::NetIO): Change prototype to reflect Purl not being modified.
2938 (NetIO::set_url): Ditto.
2939 (NetIO::open): Ditto.
2940 * netio.h: As for netio.cc.
2941 * nio-file.cc (NetIO_File::NetIO_File): Change prototype to reflect Purl not
2943 * nio-file.h: Ditto.
2944 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
2945 * nio-ftp.h (NetIO_FTP::NetIO_FTP): Ditto.
2946 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Ditto.
2947 * nio-http.h (NetIO_HTTP::NetIO_HTTP): Ditto.
2948 * nio-i5.cc (NetIO_IE5::NetIO_IE5): Ditto.
2949 * nio-i5.h (NetIO_IE5::NetIO_IE5): Ditto.
2950 * package_meta.cc (packagemeta::~packagemeta): Bugfix: use array delete.
2951 * package_source.cc (packagesource::set_canonical): Ditto.
2952 (packagesource::set_cached): Ditto.
2953 * package_source.h (site::~site): Ditto.
2954 * site.cc: Change site_list_type to a class, and search and replace sort_key to
2957 2001-12-01 Robert Collins <rbtcollins@hotmail.com>
2959 * package_source.cc (packagesource::set_canonical): Filename was out by one.
2961 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
2963 * Makefile.in (OBJS): Remove category_list - it's not needed.
2964 * README: More wishlist updates.
2965 * category.cc (Category::Category): Initialise new members.
2966 (Categorycmp): New function.
2967 * category.h (Category): New member key for template use.
2968 * category_list.cc: Remove.
2969 * category_list.h: Remove.
2970 (Categorycmp): New function prototype.
2971 * choose.cc: Remove category_list - not needed.
2972 (set_action): Only show the 'source' option when the source is actually
2974 (add_required): Fix recursion limiter to 5.
2975 (fill_missing_category): Use list access.
2976 (default_trust): Ditto.
2977 (pick_line::paint): Ditto.
2978 (_view::init_headers): Ditto.
2979 (_view::insert_pkg): Ditto.
2980 (_view::insert_category): Ditto.
2981 (_view::click): Ditto.
2982 (set_view_mode): Ditto.
2984 * cygpackage.h: Remove category_list - not needed.
2985 * geturl.cc (get_url_to_string): Fix null byte insertion.
2986 * inipatse.y: Remove category_list - not needed.
2987 (categories): Use list access.
2988 * package_db.cc: Ditto.
2989 * package_db.h: Remove category_list - not needed.
2990 (packagedb): Use the list template for categories.
2991 * package_meta.cc (add_category): Ditto.
2992 * package_meta.h (CategoryPackage): Link to the category as well.
2993 (packagemeta): Use a list of CategoryPackages instead of Categories
2994 for more memory efficient cross-referencing.
2996 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
2998 * package_db.cc (packagedb::flush): Write a canonical version for all packages
2999 irrespective of the media they were installed from.
3001 2001-11-29 Robert Collins <rbtcollins@hotmail.com>
3003 * Makefile.in (OBJS): Add package_source and rfc1738.
3004 * README: Wishlist update.
3005 * category_list.cc (register_category): Use references.
3006 * category_list.h (CategoryList): Ditto.
3007 * choose.cc (isinstalled): Remove.
3008 (pkgtrustp): New macro.
3009 (set_action): Use packagemeta.
3010 (add_required): Ditto.
3011 (choose_caption): Example package to choose caption, rather than state flags.
3012 (check_existence): Remove.
3013 (set_existence): Remove old code.
3014 (fill_missing_category): Use packagemeta.
3015 (keep_or_skip): Remove.
3016 (default_trust): Use packagemeta and set trust values directly.
3017 (pick_line::set_line): Use packagemeta.
3018 (_view::insert_pkg): Ditto.
3019 (_view::insert_category): Ditto.
3020 (_view::click): Ditto.
3021 (set_view_mode): Ditto. Also remove "exclude" code.
3022 (create_listview): Use packagemeta.
3023 (dialog_cmd): Ditto.
3024 (getpkgbyname): Remove
3025 (scan2): Use packagemeta. Temporarily comment out the holefinding code.
3026 (read_installed_db): Remove.
3027 (package_sort): Use packagemeta.
3028 (do_choose): Use packagemeta. Don't sort the packages - the db does that.
3029 * choose.h: Use packagemeta.
3030 * cygpackage.cc (cygpackage::cygpackage): Initialise all variables.
3031 (cygpackage::cygpackage): Ditto.
3032 (cygpackage::set_canonical_version): Copy the passed string.
3033 (cygpackage::~cygpackage): Move cleanup code to destroy().
3034 (cygpackage::destroy): New function.
3035 (cygpackage::getfirstfile): Use a separate buffer.
3036 (cygpackage::getnextfile): Ditto.
3037 (cygpackage::Canonical_version): New function.
3038 (cygpackage::set_sdesc): Ditto.
3039 (cygpackage::set_ldesc): Ditto.
3040 * cygpackage.h (cygpackage::Canonical_version): New method.
3041 (cygpackage::set_sdesc): New method.
3042 (cygpackage::set_ldesc): New method.
3043 (cygpackage::SDesc): New method.
3044 (cygpackage::LDesc): New method.
3045 (cygpackage::set_canonical_version): New method.
3046 * desktop.cc: Include packagedb headers.
3047 (make_password_group): Use packagemeta.
3048 * download.cc: Include packagedb headers.
3049 (check_for_cached): New method to find any cached file and fill out the database
3051 (download_one): Take a packagesource, support multiple mirrors.
3052 (do_download): Use packagemeta.
3053 * from cwd.cc: Include packagedb headers.
3054 (found_file): Use packagemeta.
3055 * ini.cc (do_ini): Beginning of multiple-mirror support.
3056 * ini.h (CategoryPackage): Remove.
3057 (Dependency): Remove.
3059 (new_package,getpkgbyname,getpackagecategorybyname,add_category): Remove.
3060 * inilex.l: Support multiple mirrors.
3061 * iniparse.y: Include packagedb headers.
3062 (parser): Use packagemeta.
3063 (new_package): Remove.
3064 (add_correct_version): New function.
3065 (new_requirement): Remove.
3066 (add_category): Remove.
3067 * install.cc (uninstall_one): Use packagemeta.
3068 (install_one_source): New function.
3069 (install_one): Use packagemeta.
3070 (do_install): Use packagemeta.
3071 * io_stream.cc (io_stream::move): Bugfix on move/copy case.
3072 * io_stream_cygfile.cc (io-stream_cygfile::set_mtime): Do not reopen the file
3073 after setting the mtime, it makes no sense, and results in 0 length files.
3074 * io_stream_file.cc (io-stream_file::set_mtime): Ditto.
3075 * list.h: New file, template class for a form of list.
3076 * package_db.cc (packagedb::registerpackage): New function.
3077 * package_db.h (packagedb::npackages ()): New method.
3078 * package_meta.cc (packagemeta::add_version): Use list template.
3079 (packagemeta::set_installed): Ditto.
3080 (packagemeta::add_category): New method.
3081 * package_meta.h: Include necessary headers to parse the class.
3082 (CategoryPackage): New class.
3083 (packagemeta): Initialise all members.
3084 (packagemeta::SDesc): New method.
3085 (packagemeta::Categories): New method.
3086 (packagemeta::add_category): Ditto.
3087 (packagemeta::versions): Change to be a list instance.
3088 * package_source.cc (packagesource::set_canonical): New method.
3089 (packagesource::set_cached): New method.
3090 * package_source.h: Include necessary headers to parse the class.
3092 (packagesource::packagesource): Initialize all members.
3093 (packagesource): Make this class non-abstract.
3094 * package_version.cc (packageversion::packageversion): New method.
3095 * package_version.h (Dependency): New class.
3096 (packageversion::Canonical_vesion): New method.
3097 (packageversion::SDesc): New method.
3098 (packageversion::LDesc): New method.
3099 (packageversion::new_requirement): Ditto.
3100 (packageversion::srcpicked, binpicked): What to install.
3101 (packageversion::src, bin): Installation source data.
3102 * rfc1738.cc: New file. Escapes special characters in URL's.
3105 2001-11-26 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3107 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Stop header parsing when
3108 SimpleSocket::gets() returns a zero-length string, so that we
3109 don't end up eating the entire stream thinking it's all header info.
3111 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
3113 * install.cc (badrename): Remove.
3114 (do_install): Use packagedb flush method to write /etc/setup/installed.db.
3115 * io_stream.cc (io_stream::move_copy): New method.
3116 (io_stream::move): New method.
3117 * io_stream.h (io_stream): New methods move and move_copy.
3118 * io_stream_cygfile.cc (io_stream_cygfile::move): New method.
3119 * io_stream_cygfile.h (io_stream_cygfile): New method move.
3120 * io_stream_file.cc (io_stream_file::move): New method.
3121 * io_stream_file.h (io_stream_file): New method move.
3122 * package_db.cc (packagedb::flush): New method.
3123 * package_db.h (packagedb): New method flush.
3125 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
3127 * Makefile.in (OBJS): Add package_version.
3128 * ategory.cc (Category::Category): Update constructors.
3129 * category_list.cc (CategoryList::register_category): Insert correctly.
3130 * choose.cc: Include package_version.h, not package.h.
3131 * cygpackage.cc: Ditto.
3132 (cygpackage::uninstall): New method.
3133 * cygpackage.h (cygpackage): Rename genericpackage to packageversion.
3134 New method uninstall.
3135 * hash.cc (add, has, enumerate): Change prototype to be accurate.
3136 * hash.h (hash): Change prototypes to be accurate.
3137 * ini.h (_Info): New parameterless constructor.
3138 (CategoryPackage): New constructor.
3140 * install.cc: Don't include unneeded headers.
3141 Include package database headers.
3142 (hash::add_subdirs): Remove.
3143 (uninstall_one): Use packagemeta->uninstall to perform the uninstallation.
3144 Don't uninstall source packages.
3145 (do_install): Just can uninstall_one once as we ignore source packages now.
3146 Don't copy the installed.old database accross, instead iterate through the
3147 packagedb packages list and write the isntalled packages out.
3148 * package_db.cc: Include package_version.h, not package.h.
3149 (packagedb::packagedb): Never let db be undefined.
3150 Record the installation filename, so we can reconstruct installed.db.
3151 (packagedb::addpackage): Insert packages in alpha sorted order.
3152 (packagedb::categories): Initialise correctly.
3153 * package_meta.cc: Include win32 and mount headers as a workaround to
3154 current io_stream limitations. Include a TODO about that.
3155 (standard_dirs): New, from install.cc.
3156 (hash::add_subdirs): New, from install.cc.
3157 (packagemeta::set_installed): Rename genericpackage to packageversion.
3158 (packagemeta::uninstall): New method.
3159 * package_meta.h: Rename genericpackage to packageversion.
3160 (packagemeta): Update constructor.
3161 (add_version, set_installed): Rename genericpackage to packageversion.
3162 (uninstall): New method.
3163 (installed_from): New member.
3164 * package_source.cc: New file.
3165 * package_source.h: New file.
3166 * package_version.cc: New file.
3167 * package_version.h: New file.
3168 * package.cc: Removed.
3169 * package.h: Removed.
3171 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
3173 * Makefile.in (OBJS): Add category.o and category_list.o.
3174 * category.h: New file.
3175 * category.cc: New file.
3176 * category_list.h: New file.
3177 * category_list.cc: New file.
3178 * choose.cc: Include category headers.
3179 (fill_missing_category): Use package_db to access global categories.
3180 (_view::insert_pkg): Ditto.
3181 (_view::insert_category): Ditto.
3182 (set_view_mode): Ditto.
3183 (getcategorybyname): Remove.
3184 * cygpackage.h: Include category_list.h to parse this correctly.
3185 (cygpackage): New virtual &Categories.
3186 * ini.h (_CategoryPackage): More C to C++ conversion.
3188 (getcategorybyname): Remove.
3189 (register_category): Remove.
3190 * iniparse.y: Include package db and category headers.
3191 (categories): Use package_db to access global categories.
3193 (ncategories): Remove.
3194 (register_category): Remove.
3195 * package.h: New virtual &Categories.
3196 * package_db.cc (packagedb::packagedb): Don't read the installed db twice.
3197 (packagedb::categories): Declare.
3198 * package_db.h (packagedb): New member categories for global categories list.
3200 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
3202 * choose.h: Don't include ini.h
3203 * ini.h: Allow pure c++ in the header file.
3205 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
3207 * install.cc (do_install): Write a version 2 installed.db file.
3208 * package_db.cc (packagedb::packagedb): Read version 1 and 2 installed.db files.
3210 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
3212 * Makefile.in (OBJS): Add package abstraction objects.
3213 * choose.cc: Include package abstraction headers.
3214 (read_installed_db): Use packagedb class and ignore installed sources.
3215 * cygpackage.cc: New file.
3216 * cygpackage.h: New file.
3217 * filemanip.h (get_file_size): Use unixy types.
3218 * package.h: New file.
3219 * package.cc: New file.
3220 * package_db.cc: New file.
3221 * package_db.h: New file.
3222 * package_meta.cc: New file.
3223 * package_meta.h: New file.
3225 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
3227 * REAME: Updates to wishlist.
3229 2001-11-16 Robert Collins <rbtcollins@hotmail.com>
3231 * README: Updated and added my list of wishlist and todo items.
3233 2001-11-14 Robert Collins <rbtcollins@hotmail.com>
3235 * Makefile.in (OBJS): Include io_stream_memory in setup.exe.
3236 * archive_tar.cc (archive_tar::write): New prototype.
3237 (archive_tar::seek): New method.
3238 * archive.h (archive_tar_file): Update write() and add seek().
3239 (archive_tar): Ditto.
3240 * archive_tar_file.cc (archive_tar_file::write): New prototype.
3241 (archive_tar_file::seek): New method.
3242 * compress_bz.cc (compress_bz::write): New prototype.
3243 (compress_bz::seek): New function.
3244 * compress_bz.h (compress_bz): Update write() and add seek().
3245 * compress_gz.cc (compress_gz::write): New prototype.
3246 (compress_gz::seek): New function.
3247 * compress_gz.h (compress_gz): Update write() and add seek().
3248 * geturl.cc: Include io_stream headers.
3250 (get_url_to_string): Use a io_stream_memory buffer instead of GUBuf.
3251 * io_stream.h (io_stream_seek_t): New enum.
3252 (io_stream): Update write() and add seek().
3253 * io_stream_cygfile.cc (io_stream_cygfile::write): New prototype.
3254 (io_stream_cygfile::seek): New function.
3255 * io_stream_cygfile.h (io_stream_cygfile): Update write() and add seek().
3256 * io_stream_file.cc (io_stream_file::write): New prototype.
3257 (io_stream_file::seek): New function.
3258 * io_stream_file.h (io_stream_file): Update write() and add seek().
3260 2001-11-13 Brian Keener <bkeener@thesoftwaresource.com>
3262 * localdir.cc: Add headers unistd.h and port.h.
3263 (save_local_dir): Expand search logic to include local directory for
3264 location of file last-cache.
3265 (dialog_cmd): Skip IDD_ROOT when downloading and use Back button.
3266 (do_local_dir): Expand search logic to include local directory for file
3268 * res.rc (IDD_CHOOSE_DIALOG): Add hotkey to View button.
3269 * Source.cc (dialog_cmd): Skip IDD_ROOT if select Download from
3271 (do_source): Default to Install from Internet on first entry or
3272 previous selection if backing up from IDD_ROOT or IDD_LOCAL_DIR.
3274 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
3276 * choose.cc (find_tar_ext): Only match at the end of the string.
3277 (getpkgbyname): Prevent NULL pointer dereference.
3279 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
3281 * Makefile.in (CFLAGS): Add warnings and -Werr.
3282 (WARNONLY_FLAGS): For sources that produce (harmless) errors no matter what.
3283 (OBJS): Add io_stream class' objects.
3284 (autoload.o): Use WARNONLY_FLAGS.
3286 (iniparse.o): Ditto.
3287 * archive.cc: New file.
3288 * archive.h: New file.
3289 * archive_tar.cc: New file.
3290 * archive_tar.h: New file.
3291 * archive_tar_file.cc: New file.
3292 * autoload.c: Fix compiler warnings (unused, deprecated conversion).
3293 * choose.cc: Use io_stream.h, not mount.h.
3295 (find_tar_ext): Rewritten to use strstr, and to accept .tar as an extension.
3296 (read_installed_db): Use io_streams.
3297 * choose.h: Run indent.
3298 * compress.cc: New file.
3299 * compress.h: New file.
3300 * compress_bz.cc: New file.
3301 * compress_bz.h: New file.
3302 * compress_gz.cc: New file.
3303 * compress_gz.h: New file.
3304 * concat.cc: Run indent.
3305 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3306 * concat.h: Run indent.
3307 * desktop.cc: Run indent.
3308 Include mklink2.h rather than redefining by hand.
3309 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3310 (etc_profile): Fix compiler warning (deprecated conversion).
3311 (make_link): Fix compiler warning (deprecated conversion).
3312 Tidy up use of args variable - consolidate into argbuf.
3313 (start_menu): Fix compiler warning (deprecated conversion).
3314 (desktop_icon): Fix compiler warning (deprecated conversion).
3315 (make_etc_profile): Fix compiler warning (deprecated conversion).
3316 (uexists): Fix compiler warning (deprecated conversion).
3317 (check_desktop): Fix compiler warning (deprecated conversion).
3318 (check_startmenu): Fix compiler warning (deprecated conversion).
3319 * dialog.cc: Run indent.
3320 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3321 (fatal): Fix compiler warning (deprecated conversion).
3322 * dialog.h: Run indent.
3323 * diskfull.cc: Run indent.
3324 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3325 * download.cc: Run indent.
3326 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3327 (download_one): Fix compiler warning (signed vs unsigned comparison).
3328 * filemanip.h: Run indent.
3329 * find.cc: Run indent.
3330 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3331 (find): Fix compiler warning (deprecated conversion).
3332 * find.h: Run indent.
3333 * fromcwd.cc: Run indent.
3334 * geturl.cc: Run indent.
3335 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3336 (dialog_cmd): Return a value.
3337 (dialog_proc): Remove unused variables.
3339 (get_url_to_file): Fix compiler warning (deprecated conversion).
3340 * geturl.h: Run indent.
3341 * hash.cc: Run indent.
3342 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3343 * hash.h: Run indent.
3344 * ini.cc: Run indent.
3346 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3347 (do_ini): Use io_streams for local io.
3348 * ini.h: Run indent.
3349 * inilex.l (ignore_line): Fix compiler warning (is not a prototype).
3350 Fix compiler warning (brackets for truth assignment).
3351 * install.cc: Run indent.
3352 Fix compiler warning (/* in comment).
3354 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3355 (dialog_cmd): Return a value.
3356 (dialog_proc): Return a value.
3357 (start_tics): Deleted - was unused.
3358 (badrename): Fix compiler warnings (unused, deprecated conversion).
3359 (standard_dirs): Fix compiler warning (deprecated conversion).
3361 (uninstall_one): Convert to io_streams.
3362 (install_one): Convert to io_streams.
3363 (do_install): Convert to io_streans.
3364 Fix compiler warning (deprecated conversion).
3365 * io_stream.cc: New file.
3366 * io_stream.h: New file.
3367 * io_stream_cygfile.cc: New file.
3368 * io_stream_cygfile.h: New file.
3369 * io_stream_file.cc: New file.
3370 * io_stream_file.h: New file.
3371 * localdir.cc: Run indent.
3373 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3374 (get_root_dir_now): Remove.
3375 (save_local_dir): Convert to io_streams.
3376 (dialog_cmd): Return a value.
3377 (do_local_dir): Convert to io_streams.
3378 (log.cc): Run indent.
3379 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3380 (log): Fix compiler warning (deprecated conversion).
3381 (log_save): Fix compiler warning (deprecated conversion).
3382 * log.h: Run indent.
3383 (log): Fix compiler warning (deprecated conversion).
3384 (log_save): Fix compiler warning (deprecated conversion).
3385 * main.cc: Run indent.
3386 Don't include "netio.h".
3387 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3388 (netio_test): Remove.
3389 (sid_auth): Fix compiler warning (partially bracketed initialiser).
3390 (WinMain): Return a value.
3391 * mkdir.cc: Run indent.
3392 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3393 * mklink2.c: Run indent.
3394 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3395 (mkcygsymlink): New function.
3396 * mklink2.h: New file.
3397 * mount.cc: Run indent.
3398 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3399 (create_mount): Remove unused variables.
3400 (cygpath): Fix compiler warning (signed vs unsigned comparison).
3401 * mount.h: Run indent.
3402 * msg.cc: Run indent.
3403 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3404 (msg): Fix compiler warning (deprecated conversion).
3405 (mbox): Fix compiler warning (deprecated conversion).
3406 * msg.h: Run indent.
3407 (msg): Fix compiler warning (deprecated conversion).
3408 * net.cc: Run indent.
3409 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3410 (dialog_cmd): Return a value.
3411 * netio.cc: Run indent.
3412 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3413 (auth_cmd): Return a value.
3414 * netio.h: Run indent.
3415 * nio-file.cc: Run indent.
3416 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3417 (NetIO_File::NetIO_File): Fix compiler warning (deprecated conversion).
3418 * nio-file.h: Run indent.
3419 * nio-ftp.cc: Run indent.
3420 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3421 * nio-ftp.h: Run indent.
3422 * nio-http.cc: Run indent.
3423 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3424 * nio-http.h: Run indent.
3425 * nio-ie5.cc: Run indent.
3426 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3427 * nio-ie5.h: Run indent.
3428 * other.cc: Run indent.
3429 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3430 (dialog_cmd): Return a value.
3431 * port.h: Run indent.
3432 * postinstall.cc: Run indent.
3433 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3434 (cmd): Fix compiler warning (deprecated conversion).
3435 (eun): Fix compiler warning (deprecated conversion).
3436 * root.cc: Run indent.
3437 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3438 * simpsock.cc: Run indent.
3439 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3440 * simpsock.h: Run indent.
3441 * site.cc: Run indent.
3443 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3444 (get_root_dir_now): Remove.
3445 (save_site_url): Convert to io_streams.
3446 (dialog_cmd): Return 0.
3447 (get_initial_list_idx): Convert to io_streans.
3448 * source.cc: Run indent.
3449 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3450 (check_if_enable_next): Remove.
3451 (load_dialog): Remove unused variables.
3452 (save_dialog): Ditto.
3453 (dialog_cmd): Return a value.
3454 * splash.cc: Return a value.
3455 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3456 (dialog_cmd): Return a value.
3457 * state.cc: Run indent.
3458 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3459 * state.h: Run indent.
3463 2001-11-12 Christopher Faylor <cgf@redhat.com>
3465 * desktop.cc (start_menu): Change start menu name to "Cygwin".
3466 (check_startmenu): Ditto.
3468 2001-11-11 Christopher Faylor <cgf@redhat.com>
3470 * choose.cc (parse_filename): Finish reorganization by correctly
3471 decrementing p in memmove.
3473 2001-11-11 Christopher Faylor <cgf@redhat.com>
3475 * choose.cc (parse_filename): Reorganize code to work around gcc
3476 optimization problem.
3478 2001-11-09 Gareth Pearce <tilps@hotmail.com>
3480 * choose.cc (set_action): Allow skip as an option for installed
3481 packages that have version number not listed in setup.ini.
3483 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
3485 * choose.cc (set_cation): Backout last change.
3486 (choose_caption): Ditto.
3488 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
3490 * ini.h (actions): Remove - transferred to choose.h.
3492 * choose.h: Protect class's from "C" compilers.
3493 (actions): New enum, from ini.h. This may not be the 'right' place
3494 but that place doesn't exist yet.
3495 (_views): New enum, from ini.h.
3496 * choose.cc (set_action): Handle installed packages with a version not in
3498 (choose_caption): Ditto.
3499 * iniparse.y: Rearrange header order to handle new ini.h.
3501 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
3503 * ini.h (_Info): Fix compiler warnings (signed vs unsigned comparison).
3504 (registry_category): Fix compiler warning (deprecated conversion).
3505 * iniparse.y (registry_category): Ditto.
3506 * choose.cc (cvsid): Fix compiler warnings (unused, deprecated conversion).
3507 (add_requried): Remove unused variable.
3508 (choose_caption): Handle all enumeration values via a default.
3509 (paint): Fix compiler warnings (unused, deprecated conversion).
3510 (scroll_common): Fix compiler warnings (unused, signed vs unsigned comparison).
3511 (list_clicK): Fix compiler warnings (signed vs unsigned comparison).
3512 (note_width): Fix compiler warnings (deprecated conversion).
3513 (keep_or_skip): Fix compiler warnings (unused).
3514 (_view::mode_caption): Fix compiler warnings (deprecated conversion).
3515 (set_view_mode): Fix compiler warnings (unused).
3516 (create_listview): Fix compiler warnings (unused, incorrect format, reaches
3518 (dialog_proc): Fix compiler warnings (unused).
3519 (read_installed_db): Fix compiler warnings (unused, deprecated conversion).
3520 * choose.h (_header): Fix compiler warnings (deprecated conversion).
3523 2001-11-08 Pavel Tsekov <ptsekov@syntrex.com>
3525 * simpsock.h (SimpleSocket::invalidate): Declare new method.
3526 * simpsock.cc (SimpleSocket::invalidate): Implement new method.
3527 (SimpleSocket::SimpleSocket): Initialize buf to zero. Do not allocate
3528 memory for buf in the constructor.
3529 (SimpleSocket::~SimpleSocket): Use SimpleSocket::invalidate().
3530 (SimpleSocket::printf): Use SimpleSocket::write() instead of send().
3531 (SimpleSocket::write): Check object consistency - return -1 on error.
3532 invalidate() the object on socket write error.
3533 (SimpleSocket::fill): Check object consistency - return -1 on error.
3534 invalidate() the object if socket read error is encountered and there
3535 is no more data available in the internal read buffer.
3536 Allocate memory for the internal read buffer.
3537 (SimpleSocket::gets): Return zero (NULL pointer) if error is encountered
3538 during fill() and no more data is available in the internal read buffer.
3539 (SimpleSocket::read): Check object consistency - return -1 on error.
3540 invalidate() the object if socket read error is encountered.
3541 * nio-ftp.cc (NetIO_FTP:NetIO_FTP): Allow 125 as valid response code to
3542 the RETR command (fix for MS IIS ftp server 5 - possibly others too).
3543 (NetIO_FTP::ok): Check if the SimpleSocket object is ok().
3544 (NetIO_FTP::read): Use NetIO_FTP::ok().
3545 * nio-http.cc: Check for valid return value of SimpleSocket::gets().
3546 (NetIO_HTTP::ok): Check if the SimpleSocket object is ok().
3548 2001-11-09 Robert Collins <rbtcollins@hotmail.com>
3550 * simpsock.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3551 (SimpleSocket::SimpleSocket): Avoid compiler warnings (deprecated conversion).
3552 (SimpleSocket::printf): Ditto.
3553 (SimpleSocket::write): Ditto.
3554 * simpsock.h (SimpleSocket): Avoid compiler warnings for constructor,
3556 * nio-ftp.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3557 (NetIO_FTP::NetIO_FTP): Remove unused variable done.
3558 * nio-http.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3560 2001-11-07 Charles Wilson <cwilson@ece.gatech.edu>
3562 * geturl.cc (get_url_to_string): clean up memory leak
3563 (get_url_to_file): ditto
3565 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
3567 * localdir.cc (dialog_cmd): Go back to IDD_ROOT in every case.
3568 * source.cc (dialog_cmd): Go forward to IDD_ROOT in every case.
3570 2001-11-06 Pavel Tsekov <ptsekov@syntrex.com>
3572 * fromcwd.cc (found_file): Free() memory containing the version and
3573 filepath information for a given package, before replacing the pointers which
3574 reference this memory.
3576 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
3578 * fromcwd: Fix compiler warnings for cvsid.
3579 (canonicalize_version): Fix compilter warnings.
3580 (do_fromcwd): Ditto.
3581 * version.h: Fix compiler warnings for canonicalize_version.
3583 2001-11-03 Robert Collins <rbtcollins@hotmail.com>
3585 * res.rc (IDD_CHOOSE): Move the view caption to the right hand side.
3587 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3589 * res.rc (IDD_CHOOSE): Tweak for use on a 640x480 screen.
3591 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3593 * choose.cc (set_action): Correctly allow skip for any uninstalled package.
3595 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3597 * choose.cc (default_trust): Change the "Required" forced install category to
3600 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3602 * choose.cc: Ran indent.
3603 (set_action): When the requested trust level is missing and the level was not
3604 user requested, set the action to ACTION_SAME_CURR.
3606 2001-11-01 Christopher Faylor <cgf@redhat.com>
3608 * Makefile.in (mingw_getopt.o): Fix typo in non-verbose compilation.
3610 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3612 * choose.cc (_view::init_headers): Resync with the paint logic.
3614 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3616 * choose.cc (add_required): Allow SKIP and SRC_ONLY for currently installed
3619 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3621 * choose.cc (default_trust): Autoset currently installed packages per the user's
3622 selection of prev/curr/exp.
3624 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3626 * splash.cc (dialog_proc): Return TRUE as specified in the WIN32 API.
3628 2001-11-02 Pavel Tsekov <ptsekov@syntrex.com>
3630 * geturl.cc (is_showing): Remove.
3631 (is_local_install): New static variable. Controls whether the
3632 progress dialog and the supporting thread will be created.
3633 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the WIN32 API.
3634 (init_dialog): Remove usage of SetForegroundWindow and is_showing.
3635 This prevents the progress dialog to gain control over the
3636 application and fixes the "setup.exe going to background" problem.
3637 (progress): Use is_local_install.
3638 (get_url_to_string): Set is_local_install.
3639 (dismiss_url_status_dialog): Use is_local_install.
3640 * install.cc (dialog_proc): Return TRUE as specified in WIN32 API.
3641 (init_dialog): Remove usage of SetForegroundWindow.
3642 This prevents the progress dialog to gain control over the
3643 application and fixes the "setup.exe going to background" problem.
3645 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3647 * choose.cc (list_click): Change r to row for clarity.
3648 When we shrink the list below 1 page, scroll to the top of the list.
3649 (_view::click): Return the actual change for contractions.
3650 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the Win32 API.
3652 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3654 * choose.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
3655 * localdir.cc: Ran indent.
3656 (get_root_dir_now): New function.
3657 (save_local_dir): New function.
3658 (dialog_cmd): Use it and swap cygwin root selection and local dir selection order.
3659 (do_local_dir): If there is a saved local dir, read it in.
3660 * net.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
3661 * root.cc (dialog_cmd): Ditto.
3662 * source.cc (dialog_cmd): Ditto.
3664 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
3666 * choose.cc(list_vscroll): Return 0 as required by win32.
3667 (list_hscroll): Ditto.
3668 (list_click): Ditto.
3670 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
3674 * main.cc(WinMain): Use __argv to retrieve command line parameters.
3675 * Makefile,in: Remove argv.o.
3677 2001-11-01 Matt Hargett <matt@use.net>
3679 * geturl.cc (progress): Change int to unsigned int to eliminate
3681 * (get_url_to_string): Check for NULL pointer.
3682 * mount.cc (find2): Use free instead of delete for malloc'd
3684 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Fix memory leak.
3686 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
3688 * choose.cc(_view::insert_under): Handle linen > nlines and lines[linen] with neither
3689 a package nor a category. The lines[linen] bug was reported by Matt (matt@usa.net).
3690 (read_installed_db): Bugfix for testing whether a package has a source tarball.
3691 Reported by Matt (matt@usa.net).
3692 * geturl.cc(dialog): Rename gw_dialog to local_gw_dialog to avoid programmer
3693 confusion and lint errors. Reported by Matt (matt@usa.net).
3695 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
3697 * argv.cc: New file, converts arguments for -mwindows programs. (Simplified derivation
3700 * Makefile,in: Add argv.o and mingw_getopt.o to setup.exe object list.
3701 Add mingw_getopt.o build rule.
3702 * main.cc(WinMain): Initialise argv and argc for use by getopt.
3704 2001-10-27 Christopher Faylor <cgf@redhat.com>
3706 * res.rc: Rearrange info on top line slightly.
3708 2001-10-27 Christopher Faylor <cgf@redhat.com>
3710 * desktop.cc (make_passwd_group): Move file creation earlier in the
3711 process to ensure that passwd-grp.bat reflects desired operation.
3713 2001-27-10 Trevor Forbes <t4bs@hotmail.com>
3715 * postinstall.cc (each): Remove "*.done" file else rename will fail.
3717 2001-10-16 Christopher Faylor <cgf@redhat.com>
3719 * res.rc: Oops. Take 640x480 screen size into account.
3721 2001-10-16 Christopher Faylor <cgf@redhat.com>
3723 * res.rc: Enlarge chooser screen.
3725 2001-10-12 Christopher Faylor <cgf@redhat.com>
3727 * Makefile.in: Accomodate changes to w32api_include macro.
3729 2001-10-12 Christopher Faylor <cgf@redhat.com>
3731 * Makefile.in: Use correct flags for windres.
3733 2001-10-12 Christopher Faylor <cgf@redhat.com>
3735 * Makefile.in (CFLAGS): Remove -nostdinc from CFLAGS.
3737 2001-10-12 Christopher Faylor <cgf@redhat.com>
3739 * choose.cc (pick_line::paint): Reorganize after botched patch.
3741 2001-10-12 Christopher Faylor <cgf@redhat.com>
3743 * choose.cc (pick_line::paint): Add missing declaration.
3745 2001-10-10 Ralf Habacker <Ralf.Habacker@freenet.de>
3747 * choose.cc (pick_line::paint): Add package name to sdesc for display.
3749 Wed Sep 26 21:39:00 Robert Collins rbtcollins@hotmail.com
3751 * choose.cc (_view::insert_pkg): Correctly exit loop.
3752 * iniparse.y (register_category): Always insert new categories.
3754 Fri Sep 21 13:56:32 2001 Christopher Faylor <cgf@cygnus.com>
3756 * inilex.l (yylex): For comments, eat all characters up to, but not
3759 Sun Aug 26 12:50:01 2001 John Marshall <jmarshall@acm.org>
3761 * fromcwd.cc (found_file): Use correct package name when adding an
3762 unknown package rather than random stack garbage.
3764 Sun Aug 12 14:25:21 2001 Christopher Faylor <cgf@cygnus.com>
3766 * desktop.cc (make_passwd_group): .bat files need \r\n endings.
3768 Wed Aug 8 13:53:47 2001 Christopher Faylor <cgf@cygnus.com>
3770 * desktop.cc (etc_profile): Leave environment variables untouched.
3772 2001-08-07 Corinna Vinschen <corinna@vinschen.de>
3774 * autoload.c: Add dynamic load statements for NT/W2K
3775 advapi32 functions not available in 9x/ME.
3776 * main.cc (set_default_dacl): New function.
3777 (WinMain): Call `set_default_dacl' if running on NT/W2K.
3779 Sat Aug 4 21:35:53 2001 Christopher Faylor <cgf@cygnus.com>
3781 * ini.h (_CategoryPackage): Change pkg field to pkgname for
3783 * choose.cc: Use pkgname field when referencing _CategoryPackage
3785 (fill_missing_category): Don't add excluded packages.
3786 (default_trust): Ditto.
3787 (_view::insert_pkg): Ditto.
3788 * iniparse.y (register_category): Use consistent variable name.
3790 2001-07-09 Egor Duda <deo@logos-m.ru>
3792 * choose.cc: Use system foreground color for text output.
3794 Sat Jul 7 00:40:28 2001 Christopher Faylor <cgf@cygnus.com>
3796 * choose.cc (set_action): Use default trust for determining reinstall
3798 (default_trust): Set default trust.
3799 (pick_line::paint): Allow source selection when reinstalling or
3802 Fri Jul 6 18:08:49 2001 Christopher Faylor <cgf@cygnus.com>
3804 * choose.cc (isinstalled): Modify to properly accomodate special case
3806 (set_action): Check downloaded components, not installed components if
3808 (set_existence): Always include full list of files when "download
3811 Fri Jul 6 00:37:05 2001 Christopher Faylor <cgf@cygnus.com>
3813 * choose.cc (pick_line::paint): Properly display "na" field when no
3816 Thu Jul 5 00:34:23 2001 Christopher Faylor <cgf@cygnus.com>
3818 * choose.cc (scan2): Ensure that older versions do not show up in
3821 Mon Jul 2 15:47:59 2001 Christopher Faylor <cgf@cygnus.com>
3823 * choose.cc (set_action): Allow "Skip" action if trust != installed.
3824 * res.rc: Fix copyright.
3826 Sat Jun 30 14:05:21 2001 Michael A Chase <mchase@ix.netcom.com>
3828 * res.rc (IDD_LOCAL_DIR): Change caption to match the other dialog
3830 (IDD_CHOOSE): Adjust horizontal size so package names are visible.
3832 * choose.cc: Restore some more changes from 2001-06-25, throughout.
3833 (paint): Wrap some excessively long lines.
3834 (pick_line::paint): Ditto. Move the arrow in the "Current" column
3835 right to where it belongs. Move the source checkbox slightly to the
3837 (do_choose): List categories and required packages in setup.log.full.
3839 Sat Jun 30 23:04:59 2001 Christopher Faylor <cgf@cygnus.com>
3841 * choose.cc (scan2): Restore source scanning eliminated by previous checkin.
3843 Sat Jun 30 15:18:33 2001 Christopher Faylor <cgf@cygnus.com>
3845 * ini.h (struct _Info): Add "derived" element.
3846 * choose.cc (scan2): Try to place unknown tar files into proper slot
3847 when package exists in setup.ini but tar file does not.
3849 Sat Jun 30 13:39:00 2001 Robert Collins <rbtcollins@hotmail.com>
3851 * choose.cc (create_listview): Call set_view_mode with VIEW_CATEGORY.
3852 (do_choose): Log the first category name.
3854 Fri Jun 29 23:07:44 2001 Christopher Faylor <cgf@cygnus.com>
3856 *ini.h: Reapply 2001-06-25 changes.
3857 * choose.cc (add_required): Ditto. Default to "Keep" state if
3858 UNINSTALL and product is installed. Default to curr state if SKIP,
3860 (keep_or_skip): New function. Returns skip or keep state depending on
3861 installed state of package.
3862 (default_trust): Use keep_or_skip to set state.
3863 (_view::insert_pkg): Use calloc to allocate lines.
3864 (set_view_mode): Adapt 2001-06-25 change to set_full_list here.
3866 Sat Jun 30 11:01:00 2001 Robert Collins <rbtcollins@hotmail.com>
3868 * choose.cc: Remove globals full_list, headers, package_indexes and
3870 Add globals cat_headers, pkg_headers and chooser.
3871 (add_required): New function.
3872 (paint): Use the chooser for header details.
3873 Call into the chooser to paint each line.
3874 (list_click): Use new global variables.
3875 Call into the chooser to handle the click.
3876 Repaint the entire view if packages have been added or removed.
3877 (note_width): Get passed a headers struct rather than using a global
3879 (fill_missing_category): New function.
3880 (default_trust): Skip non-"Required" or "Misc" packages.
3881 (pick_line::set_line (Package *)): New function.
3882 (pick_line::set_line (Category *)): New function.
3883 (pick_line::paint): New function.
3884 (pick_line::click): New function.
3885 (_view::_view): New function.
3886 (_view::set_view_mode): New function.
3887 (_view::mode_caption): New function.
3888 (_view::set_headers): New function.
3889 (_view::init_header): New function.
3890 (_view::insert_pkg): New function.
3891 (_view::insert_category): New function.
3892 (_view::insert_at): New function.
3893 (_view::insert_under): New function.
3894 (_view::clear_view): New function.
3895 (viewsplusplus): New function.
3896 (_view::client): New function.
3897 (set_view_mode): Use new chooser functionality.
3898 (set_full_list): Use new global variables.
3899 (create_listview): Instantiate chooser.
3900 Remove all hardcoded headers[] code.
3901 (dialog_cmd): On trust changes, check dependencies.
3902 (getcategorybyname): New function.
3903 (getpackagecategorybyname): New function.
3904 (scan2): Use case-insensitive package comparison.
3905 (do_choose): Use fill_missing_category ().
3906 Show some category data.
3907 * ini.h: Protect against multiple inclusion.
3909 (_CategoryPackage): New struct.
3910 (_Category): New struct.
3911 (_Package): Change category to Category * from char *.
3912 (extern Category category): New global variable.
3913 (extern in ncategories): Ditto.
3914 (getcategorybyname): New prototype.
3915 (catpackagecategorybyname): New prototype.
3916 (register_category): New prototype.
3917 (add_category): New prototype.
3918 * iniparse.y: Parse multiple categories per package.
3919 (category): New global variable.
3920 (ncategories): New global variable.
3921 (new_package): Compare package against NULL, not 0.
3922 (new_requirement): Source formatting fix.
3923 (register_category): New function.
3924 (add_category): New function.
3925 * res.rc: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
3926 IDC_CHOOSE_VIEWCAPTION: New control.
3927 * resource.h: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
3928 IDC_CHOOSE_VIEWCAPTION: New control.
3929 Increment _APS_NEXT_CONTROL_VALUE.
3931 Mon Jun 25 00:56:37 2001 Michael A Chase <mchase@ix.netcom.com>
3933 * choose.cc (paint): Wrap excessively long lines.
3934 (list_click): Ditto.
3935 (create_listview): Ditto.
3936 (do_choose): Ditto. Replace TABs and remove CRs in lines written to
3937 setup.log.full. Allow "Yes" for source exists in setup.log.full when
3938 installing from local directories.
3940 Mon Jun 25 00:56:37 2001 Christopher Faylor <cgf@cygnus.com>
3942 * choose.cc (set_action): Only clear srcpicked when moving to next
3943 state. Allow source installation if it exists in the current "trust"
3944 state. Don't move to skip state when package is installed.
3945 (list_click): Don't allow source clicking when no source is available.
3946 (set_full_list): Display package when not is_full_action.
3947 * ini.h (is_full_action): Define.
3949 Sun Jun 17 12:06:14 2001 Christopher Faylor <cgf@cygnus.com>
3951 * install.cc (check_for_old_cygwin): New function. First stab at
3952 checking for old cygwin versions.
3953 (do_install): Call check_for_old_cygwin if there were no errors during
3956 Sat Jun 16 11:33:51 2001 Michael A Chase <mchase@ix.netcom.com>
3958 * choose.cc (_Info::_Info): Test _source paramenter for non-NULL rather
3959 than zeroed "source" element.
3961 Fri Jun 15 20:54:43 2001 Christopher Faylor <cgf@cygnus.com>
3963 * choose.cc (scan2): Insert unknown tar archives, found on disk, into
3964 the highest available "hole" in the trust array.
3966 Fri Jun 15 00:20:48 2001 Christopher Faylor <cgf@cygnus.com>
3968 * choose.cc (set_existence): Use pointer method for indexing in trust
3970 (create_listview): Ditto.
3971 (scan2): Ditto. Also, use consistent variable name for indexing into
3973 * ini.h (Package): Reorganize info array for easier scanning.
3975 Fri Jun 15 00:01:51 2001 Christopher Faylor <cgf@cygnus.com>
3977 * choose.cc (isinstalled): Eliminate special download only test.
3978 (set_action): Don't move to next state if in ACTION_SAME range and not
3980 (choose_caption): Display "Retrieve" rather than "Reinstall" when just
3982 (do_choose): Sort packages after all packages have been read.
3983 Accomodate the fact that first element in trust array is empty so that
3984 log files don't report the wrong trust value.
3985 * iniparse.y (new_package): Malloc space for package name or suffer
3988 Thu Jun 14 22:43:59 2001 Robert Collins <rbtcollins@hotmail.com>
3990 * ini.h (Dependency): New structure. Declare new function.
3991 * inilex.l (yylex): Detect new setup.ini options - category and requires.
3992 * iniparse.y: Declare new setup.ini token values.
3993 (yyparse): Parse new token values.
3994 (new_requirement): New function.
3996 Thu Jun 14 22:43:26 2001 Christopher Faylor <cgf@cygnus.com>
3998 * choose.cc (read_installed_db): Eliminate obsolete code.
4000 Thu Jun 14 22:11:53 2001 Christopher Faylor <cgf@cygnus.com>
4002 * choose.cc (set_action): Set trust on "redo".
4003 (_Info::_Info): New constructor.
4004 (read_installed_db): Use new constructor. Use trusts type for
4006 * ini.h (struct _Info): Label struct, add constructor.
4007 (Package): Make installed_ix a type 'trusts.'
4008 * install.cc (uninstall_one): Unset any installed info for current
4010 (install_one): Allocate new Info struct for installed reflecting new
4012 (do_install): Don't output line to installed.db if package is being
4015 Thu Jun 14 20:33:01 2001 Robert Collins <rbtcollins@hotmail.com>
4017 * choose.cc (getpkgbyname): Use consistent method for scanning package
4020 Wed Jun 13 23:33:08 2001 Christopher Faylor <cgf@cygnus.com>
4022 * choose.cc: Add some comments.
4023 (getpkgbyname): Use strcasecmp for comparisons.
4025 Wed Jun 13 16:07:00 2001 Christopher Faylor <cgf@cygnus.com>
4027 * install.cc (do_install): Avoid checking for download action if
4028 package wasn't currently retrieved.
4030 Wed Jun 13 11:27:22 2001 Christopher Faylor <cgf@cygnus.com>
4032 * choose.cc: Eliminate extra array throughout. Use element in package
4033 structure instead. Use pointers rather than array indexes where
4035 (set_action): New function to set next action based on current.
4036 (choose_caption): New function. Returns display caption.
4037 (check_existence): Change arguments. Use pointer to 'info' structure.
4038 (set_existence): Use pointer rather than array index.
4039 (default_trust): Use trusts enum for second argument.
4040 (set_full_list): Honor exclude element in package structure.
4041 (build_labels): Eliminate.
4042 (base): Make global. Use const char * argument.
4043 (get_package_version): Eliminate.
4044 (getpkgbyname): New function.
4045 (read_installed_db): Use parse_filename to get version info.
4046 * desktop.cc (make_passwd_group): Use getpkgbyname function.
4047 * download.cc (get_file_size): const argument.
4048 (do_download): Use is_download_action to determine when something
4049 should be downloaded.
4050 * filemanip.h: Add some functions.
4051 * ini.cc (do_ini): Use NULL rather than 0 for pointer assignment.
4052 * ini.h: Use enums for actions and trusts.
4053 (is_download_action): New macro.
4054 (is_upgrade_action): Ditto.
4055 (is_uninstall_action): Ditto.
4056 (struct Package): Add new fields.
4057 * inilex.l (yylex): Detect new setup.ini options.
4058 * iniparse.y: Declare new tokens.
4059 (yyparse): Detect exclude keyword. Fill out version field even if
4061 (new_package): Use greater granularity when allocating package array to
4062 avoid repeated calls to realloc.
4063 * install.cc (exists): const argument.
4064 (uninstall_one): Take pkg argument.
4065 (install_one): Ditto. Eliminate unneeded arguments which can be
4066 derived from package info.
4067 (do_install): Iterate over package array using a pointer. Use
4068 is_download_action to control when package should be downloaded.
4069 * tar.cc (tar_open): const argument.
4070 * tar.h: Refloect const argument.
4072 2001-05-31 Michael Chase mchase@ix.netcom.com
4074 * main.cc (WinMain): Add setup version to starting setup.log entry
4076 Tue May 29 21:37:58 2001 Yukihiko Sohda <sohda@is.titech.ac.jp>
4078 * inilex.l: Add + to list of valid string characters.
4080 Mon May 28 20:54:50 2001 Christopher Faylor <cgf@cygnus.com>
4082 * Makefile.in: Remove more stuff in the clean target.
4084 Mon May 28 18:24:59 2001 Christopher Faylor <cgf@cygnus.com>
4086 * Makefile.in: Correctly generate iniparse.h.
4088 Tue Mar 6 19:14:00 2001 Corinna Vinschen <corinna@vinschen.de>
4090 * geturl.cc (get_url_to_file): Add parameter `allow_ftp_auth'.
4091 * geturl.h: Change declaration of `get_url_to_file' accordingly.
4092 * netio.cc (NetIO::NetIO): Add parameter `allow_ftp_auth'.
4093 Set member `ftp_auth'.
4094 (NetIO::open): Add parameter `allow_ftp_auth'. Use it in calls
4095 to constructors of derived classes.
4096 (NetIO::get_ftp_auth): New method.
4097 * netio.h: Change class definition accordingly.
4098 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Add parameter `allow_ftp_auth'.
4099 Take global variables `net_ftp_user' and `net_ftp_passwd' into account.
4100 Add code for ftp authentication retry.
4101 * nio-ftp.h: Change class definition accordingly.
4102 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Add parameter `allow_ftp_auth'.
4103 Add code for ftp authentication retry in case of proxy connection.
4104 * nio-http.h: Change class definition accordingly.
4105 * res.rc: Add FTP authentication dialog.
4106 * resource.h: Add new constants used in res.rc.
4107 * state.h: Add variables `net_ftp_user' and `net_ftp_passwd'.
4109 Sun May 27 17:12:23 2001 Christopher Faylor <cgf@cygnus.com>
4111 * res.rc (IDD_SPLASH): Add a copyright year.
4113 Sun May 27 15:42:18 2001 Christopher Faylor <cgf@cygnus.com>
4115 * Makefile.in: Make iniparse.y produce a c++ file.
4116 * choose.cc (set_existence): Revert 2001-05-27 change.
4117 * ini.cc: Remove "C" from declaration of yyparse.
4118 * iniparse.y (yyparse): Fill out version field by default when a binary
4119 install is detected and no version has been set yet.
4120 * install.cc (do_install): Mount things earlier so that we can use
4121 proper mount table settings. Don't remove mounts since they are now
4123 * mount.cc (create_mount): Reread the mount table after establishing a
4125 (read_mounts): Explicitly clear root_here to allow multiple uses of
4126 this function. Ensure that there is no garbage in the table when we've
4127 exhausted all of the mounts in the registry.
4128 (cygpath): Accomodate ./ in path.
4130 Sun May 27 02:59:07 2001 Christopher Faylor <cgf@cygnus.com>
4132 Use parse_filename method to parse filenames throughout. Use
4133 get_root_dir to retrieve the current root directory throughout. Set
4134 const in argument list, where appropriate, throughout.
4135 * choose.cc (set_existence): Detect case of uninstalled package with no
4137 (parse_filename): New function.
4138 * filemanip.h (fileparse): New structure.
4139 * mount.cc (read_mounts): Remember where we found the root mount.
4140 (set_root_dir): New function.
4141 (get_root_dir): Ditto.
4142 * mount.h: Declare new functions.
4143 * site.cc (get_root_dir_now): Renamed from get_root_dir.
4144 (save_site_url): Use new function name.
4145 (get_initial_list_idx): Ditto.
4147 Sat May 26 21:23:59 2001 Christopher Faylor <cgf@cygnus.com>
4149 * choose.cc: Use a constant throughout to deal with chooser icon
4151 * res.rc (IDD_CHOOSE): Increase size of chooser box.
4153 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
4155 * choose.cc (do_choose): Fix incorrect assignment of trust setting to
4156 use when Redownload or Sources Only selected.
4158 Thu May 10 22:35:59 2001 Christopher Faylor <cgf@cygnus.com>
4160 Reformat file after botched patch formatting.
4161 * choose.cc (which_trust): Eliminate variable.
4162 (default_trust): Don't set which_trust.
4163 (do_choose): Use selected trust when reinstalling or installing source.
4165 Thu May 10 21:04:18 2001 Christopher Faylor <cgf@cygnus.com>
4167 Change concat to cygpath throughout.
4168 Change map_filename to cygpath throughout.
4169 * concat.cc (vconcat): New function.
4170 (concat): Use vconcat.
4171 * concat.h: Reflect above.
4172 * install.cc (map_filename): Eliminate.
4173 (install_one): Free dest_file.
4174 * mount.cc (find2): Expect input key to be pointing to mount record.
4175 (in_table): New function.
4176 (is_admin): Move from root.cc.
4177 (read_mounts): New function.
4178 (path_prefix_p): New function.
4179 (cygpath): New function.
4180 * mount.h: Define new functions and structure.
4181 * root.cc (in_table): Move to mount.cc.
4182 (do_root): Call read_mounts to initialize root stuff and mount table.
4183 * site.cc (get_root_dir): Ditto.
4185 2001-05-09 Matt Hargett <matt@use.net>
4187 * Makefile.in: Remove *.rc from clean.
4189 Tue May 8 23:33:38 2001 Christopher Faylor <cgf@cygnus.com>
4191 * choose.cc (scan2): Fix incorrect setting of TRUST_CURR rather than
4192 TRUST_PREV which produced "0" versions.
4194 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
4196 * resource.h: Add new field IDC_CHOOSE_INST_TEXT. Modify
4197 _APS_NEXT_CONTROL_VALUE to account for addition of
4198 IDC_CHOOSE_INST_TEXT.
4199 * res.rc (IDD_CHOOSE): Modify choose dialog to use new field
4200 IDC_CHOOSE_INST_TEXT for screen text. Modify choose Dialog to allow
4201 hot keys to select Prev, Curr, Exp.
4202 * ini.h: Add new actions for ACTION_REDO and ACTION_SRC_ONLY. Modify
4203 define for LOOP_PACKAGES to include new actions ACTION_REDO and
4205 * choose.cc: Add new Trusts for TRUST_REDO and TRUST_SRC_ONLY.
4206 (paint): Modify to check TRUST_SRC_ONLY when determining Bitmap for
4207 source Checkbox to use.
4208 (build_labels): Add logic to allow for selection of Source only
4209 Download/ReDownload/Install/Reinstall and also to Redownload/Reinstall
4210 current version binary.
4211 (dialog_proc): Add conditional display for file selection prompt based
4212 on download vs install using IDC_CHOOSE_INST_TEXT.
4213 (do_choose): Add new logic for TRUST_REDO and TRUST_SRC_ONLY selection
4214 and modify logic for TRUST_UNINSTALL, TRUST_KEEP, and TRUST_NONE to
4215 handle the instance where Source Download/Install was selected. Modify
4216 log file to store appropriate information regarding Action selected and
4217 the new actions that were added (I.E.: ACTION_REDO and
4219 * download.cc: Add include for <unistd.h> and "port.h".
4220 (download_one): Modify parameter list to include the selected action
4221 for the file to be downloaded. Modify size check against expected size
4222 to include check for ACTION_REDO and ACTION_SRC_ONLY. Modify rename of
4223 .tmp file to also remove the destination file if exists due to ability
4224 to redownload source and binary now.
4225 (do_download): Modify to also use ACTION_REDO and ACTION_SRC_ONLY in
4226 calculation of Download Bytes. Modify to also use ACTION_REDO and
4227 ACTION_SRC_ONLY in determining files selected for download.
4228 * install.cc (uninstall_one): Add check to treat a Reinstall like an
4229 upgrade so current version will be uninstalled prior to reinstall.
4230 (do_install): Add logic to handle ACTION_REDO and ACTION_SRC_ONLY for
4231 uninstalling and installing binary and source packages.
4232 * desktop.cc (make_passwd_group): Modify logic to account for a Source
4233 only cygwin install when checking for cygwin to determine need for
4234 mkpasswd and mkgroup.
4236 Mon May 7 23:33:30 2001 Matt Hargett <matt@use.net>
4238 * winsup/cinstall/res.rc: Added accelerators and improved focus order.
4239 Removed WS_DISABLED from "OK" buttons to accomodate default focus
4240 changes in net.cc and source.cc.
4241 * winsup/cinstall/net.cc (dialog_proc): If no radio button is selected,
4242 a default is selected.
4243 * winsup/cinstall/source.cc (dialog_proc): Ditto.
4244 (check_if_enable_next): Removed. No longer needed since a radio button
4245 will always be selected.
4246 (load_dialog): Removed call to check_if_enable_next.
4247 (dialog_cmd): Ditto. Also added default to switch.
4249 Tue Apr 24 23:42:02 2001 Christopher Faylor <cgf@cygnus.com>
4251 * res.rc: Resize affected text.
4253 Tue Apr 24 23:35:31 2001 Christopher Faylor <cgf@cygnus.com>
4255 * net.cc (do_net): Default to direct download.
4256 * res.rc: Move default selections to the top.
4258 2001-04-18 Earnie Boyd <earnie@users.sourceforge.net>
4260 * win32.h: Remove the definitions for _UNION_NAME and _STRUCT_NAME.
4261 Must now include <windows.h> and not the pieces.
4262 * choose.cc (create_listview): Clean up type mismatch problems.
4263 * dialog.h (NEXT(id)): Ditto.
4264 * geturl.cc (dialog): Ditto.
4265 * install.cc (dialog): Ditto.
4266 * splash.cc (load_dialog): Ditto.
4268 Wed Apr 18 18:59:21 2001 Christopher Faylor <cgf@cygnus.com>
4270 * tar.cc (class gzbz): Define dummy virtual functions.
4272 Wed Apr 18 16:01:21 2001 Christopher Faylor <cgf@cygnus.com>
4274 * Makefile.in: Add bz2 include/library support.
4275 * filemanip.h: New file.
4276 * choose.cc (find_tar_ext): New function. Returns TRUE if .tar.gz or
4278 (scan2): Reorganize to use find_tar_ext, accomodating .bz2 extension.
4279 (read_installed_db): Ditto.
4281 * fromcwd.cc (found_file): Ditto.
4282 (do_fromcwd): Ditto.
4283 * tar.cc (class gzbz): New super class for uncompression support.
4284 (gz): New class for gzip support.
4285 (bz): New class for bzip2 support.
4286 (tar_open): Use gzbz class to control file opening.
4287 (tar_ftell): Ditto for returning position in file.
4288 (skip_file): Ditto for reading file.
4289 (tar_next_file): Ditto.
4290 (tar_read_file): Ditto.
4291 (tar_close): Ditto for close.
4293 * zlib/configure.in: Force NM substitution.
4295 * source.cc (do_source): Default to "Install from Internet".
4297 2001-03-16 Brian Keener <bkeener@thesoftwaresource.com>
4299 * nio-file.cc (NetIO_File::NetIO_File): Use `get_file_size' instead of
4301 * choose.cc (list_click): Correct inability to select source code for
4303 (scan2): Modify to skip source tarballs when scanning disk for
4304 installable packages.
4306 2001-03-10 Chris Abbey <chris_abbey@yahoo.com>
4308 * install.cc: install sources into /usr/src instead
4309 of /, also include the sizes of source tarballs
4311 * download.cc: include sizes of source tarballs in
4312 total_download_bytes.
4314 Tue Mar 6 19:31:00 2000 Corinna Vinschen <corinna@vinschen.com>
4316 * download.cc (get_file_size): Remove `static'.
4318 Tue Mar 6 19:11:00 2000 Corinna Vinschen <corinna@vinschen.com>
4320 * tar.cc (tar_open): Use `get_file_size' instead of `stat'.
4322 2001-03-06 Brian Keener <bkeener@thesoftwaresource.com>
4324 * choose.cc (paint): Modify message for nothing to download vs
4325 nothing to install/update based on installation method.
4326 (list_click): Modify to skip versions in selection process if
4327 installing from local directory and installation file does not exist.
4328 Also leaves Source Action set to N/A if the source file does not exist
4329 and installing from local directory.
4330 (check_existence): New method to check current existence of installation
4331 files based on selected installation method.
4332 (set_existence): New method to set the current existence of installation
4333 files based on selected installation method.
4334 (best_trust): Modify decision process for best trust to base decision on
4335 current trust selected (IE: Prev, Curr, or Test), existence of file and
4336 installation method selected.
4337 (default_trust): Add logic to capture the current trust level and the
4338 trust selected for the given package.
4339 (set_full_list): Expand decision criteria for displaying a package in
4340 the selection list to include file existence/non-existence and selected
4341 installation method.
4342 (build_labels): Modify criteria for label addition to include
4343 installation method and file existence/non-existence.
4344 (create_listview): Modify to establish package trust level for each
4345 package before setting up the display list. Also modification to set
4346 current trust button as the default.
4347 (dialog_cmd): Set response for Prev, Curr, Test button push to perform
4348 a reset of the selection list in addition to setting the default trust.
4349 (get_package_version): New method to provide reusable code for
4350 determining the package version from the file name for a specified
4352 (scan2): Modify to use new method get_package_version and
4353 also enhance handling of the build for the structures package and
4355 (read_installed_db): Modify to use the new method
4356 get_package_version and also enhance handling of the build for the
4357 structures package and extra.
4358 (do_choose): Add additional initialization of package and extra
4359 structures. Modify to use read_installed_db all the time despite
4360 install method. Modify output to setup.log.full log file to increase
4361 readability by adding additional spacing, expanded code and available
4363 * ini.h: Add new fields install_exists, source_exists and
4364 partial_list_display to the structure definition for package.
4365 * res.rc (IDD_CHOOSE): Modify choose dialog Prev, Curr, and Test
4366 pushbuttons by replacing with Radio Buttons thus allowing the
4367 operator to better determine which is selected.
4369 2001-02-20 Brian Keener <bkeener@thesoftwaresource.com>
4371 * download.cc (do_download): Add new variables total_download_bytes and
4372 total_download_bytes_sofar for download progress meter. Add loop
4373 to accumulate the total bytes to download from the selected packages.
4374 * geturl.cc: Add state.h and diskfull.h to include list. Add new
4375 variables gw_iprogress, gw_pprogress, gw_progress_text,
4376 gw_pprogress_text, and gw_iprogress_text to allow for addition of
4377 total packages download progress meter and disk full percent
4378 progress meter. Add variables total_download_bytes and
4379 total_download_bytes_sofar for use by progress meters.
4380 (dialog_proc): Add new variables gw_iprogress, gw_pprogress,
4381 gw_progress_text, gw_pprogress_text, and gw_iprogress_text to
4382 allow for addition of total packages download progress meter and disk
4383 full percent progress meter.
4384 (init_dialog): Ditto.
4386 (get_url_to_file): Ditto.
4387 * geturl.h: Add external definition for total_download_bytes and
4388 total_download_bytes_sofar.
4389 * res.rc: Add two additional progress meters (IDC_DLS_IPROGRESS)
4390 and (IDC_DLS_PPROGRESS) and three text objects (IDC_DLS_PROGRESS_TEXT)
4391 and (IDC_DLS_IPROGRESS_TEXT, IDC_DLS_PPROGRESS_TEXT) for use in the
4393 * resource.h: Add new fields for progress meters and text and update
4394 _APS_NEXT_CONTROL_VALUE.
4396 Wed Feb 21 13:05:00 2000 Corinna Vinschen <vinschen@redhat.com>
4398 * download.cc (get_file_size): Check for INVALID_HANDLE_VALUE instead
4401 Wed Feb 21 11:21:00 2000 Corinna Vinschen <vinschen@redhat.com>
4403 * download.cc (download_one): Add missing parenthesis.
4405 Mon Feb 19 18:59:00 2000 Corinna Vinschen <vinschen@redhat.com>
4407 * download.cc (get_file_size): New function. Eliminates the need
4409 (download_one): Call `get_file_size' instead of `stat'. This
4410 workarounds a problem with mingw's `stat' call.
4412 2001-02-07 Earnie Boyd <earnie@users.sourceforge.net>
4414 * Makefile.in: (%.o: %.rc): Specify --include-dir $(w32api_include).
4415 This is to allow cinstall to build with 2.95.2-7 and to make the
4416 use of headers consistent.
4418 2000-12-26 Earnie Boyd <earnie_boyd@yahoo.com>
4420 * Makefile.in (autoload.o): Add target to specify -fno-inline-functions
4422 Tue Dec 26 03:46:00 2000 Matt Hargett <matt@use.net>
4424 * winsup/cinstall/res.rc: Added accelerators and improved focus
4427 2000-12-10 Egor Duda <deo@logos-m.ru>
4429 * choose.cc (paint): Use system background color for text output.
4431 Sun Dec 10 19:05:25 2000 Christopher Faylor <cgf@cygnus.com>
4433 * Makefile.in: Use CXX for linking and for compiling .cc files.
4434 * configure.in: Find correct c++ compiler.
4435 * configure: Regenerate.
4437 2000-11-17 DJ Delorie <dj@redhat.com>
4439 * splash.cc (load_dialog): Make message more obvious.
4442 Fri Nov 17 17:15:21 2000 Christopher Faylor <cgf@cygnus.com>
4444 * Makefile.in: Use g++ to link so that libstdc++.a gets used. This is
4445 necessary for newer compilers.
4447 Wed Nov 9 2:19:00 2000 Corinna Vinschen <vinschen@redhat.com>
4449 * desktop.cc: Include "ini.h" and "version.h".
4450 (make_passwd_group): Skip the function on 9x/ME boxes when an
4451 older version of Cygwin has been installed which doesn't
4452 support mkpasswd/mkgroup on 9x/ME.
4453 * install.cc: Move the `LOOP_PACKAGES' and `pi' macros to...
4456 Wed Nov 8 17:10:00 2000 Corinna Vinschen <vinschen@redhat.com>
4458 * desktop.cc (make_passwd_group): Don't exit when started
4459 on 9x/ME since mkpasswd/mkgroup are usable on 9x/ME now.
4461 Sun Nov 5 12:51:42 2000 Jason Tishler <jt@dothill.com>
4463 * install.cc (do_install): Add call to set_cygdrive_flags to sync
4465 * mount.cc (set_cygdrive_flags): New function.
4466 (get_cygdrive_flags): Ditto.
4467 (default_cygdrive): Ditto.
4468 (set_cygdrive_flags): Ditto.
4469 * mount.h: Add prototype for set_cygdrive_flags.
4471 2000-10-23 DJ Delorie <dj@redhat.com>
4473 * ini.h: add source actions
4474 * fromcwd.cc: check for available sources
4475 * res.rc: add checkbox bitmaps
4478 * choose.cc: add source column
4479 * download.cc: download sources if called for
4480 * install.cc: [un]install sources too
4482 2000-10-22 DJ Delorie <dj@redhat.com>
4484 * choose.cc (build_labels): Don't skip TRUST_PREV completely; only
4485 ignore it wrt full_list if there's already a version installed.
4486 (do_choose): Sort the list.
4487 (package_sort): New.
4489 2000-10-12 DJ Delorie <dj@redhat.com>
4491 * res.rc: Add more error strings.
4492 * resource.h: Ditto.
4493 * iniparse.y (new_package): re-initialize if needed.
4494 * download.cc (do_download): Keep track of errors; notify and
4496 * install.cc (do_install): Ditto.
4498 2000-10-05 DJ Delorie <dj@redhat.com>
4500 * Makefile.in: fix %.cc rule
4502 2000-10-04 DJ Delorie <dj@redhat.com>
4504 * desktop.cc: quote HOME and USER, don't . ./.profile
4506 * choose.cc (build_labels): don't include in partial list just
4507 because there's a *previous* version available.
4509 * install.cc (do_install): if installing from local directory with
4510 setup.ini and the file isn't found, look in "." also. Note errors.
4512 2000-10-02 DJ Delorie <dj@redhat.com>
4514 * ini.cc (do_ini): save setup.ini locally
4516 2000-10-02 Chris Abbey <cabbey@bresnanlink.net>
4518 * desktop.cc: quote escapes in prompt
4520 2000-10-02 Jason Tishler <jt@dothill.com>
4522 * root.cc (is_admin): New function.
4523 (read_mount_table): Check for administrative priviledges and set
4524 installation scope as appropriate.
4526 2000-09-28 DJ Delorie <dj@redhat.com>
4528 * nio-ftp.cc (ftp_line): handle continuations more robustly
4530 2000-09-14 Brian Keener <bkeener@thesoftwaresource.com>
4532 * res.rc: increased the size of the site dialog (IDD_SITE) & the
4533 corresponding list box to provide for more URL's to be listed.
4534 Modified the position of the Back, Next and Cancel buttons to
4535 correspond to the new size of the dialog.
4537 2000-09-13 DJ Delorie <dj@redhat.com>
4539 * install.cc (do_install): update disk fullness once per package
4540 to improve performance
4542 * choose.cc (create_listview): call ReleaseDC
4544 Mon Sep 11 22:40 2000 Harold L Hunt II <harold@compasstechnologies.com>
4546 * mkdir.cc: Create directories when ERROR_FILE_NOT_FOUND is
4547 returned, as it seems Samba 2.0.6+ returns this instead of
4548 ERROR_PATH_NOT_FOUND
4550 Mon Sep 11 19:35:24 2000 Christopher Faylor <cgf@cygnus.com>
4552 * site.cc (get_initial_list_idx): Don't default to saved URL if it
4555 2000-09-07 DJ Delorie <dj@redhat.com>
4557 * splash.cc: use version.h, not local decl
4558 * res.rc: add "old version" message
4561 * fromcwd.cc (canonicalize_version): make global
4562 * iniparse.y: add setup-version support, fix bug in blank line
4565 * inilex.l: add [exp] as alias for [test], add setup-version
4566 * Makefile.in (version.c): add setup-version tag
4568 * desktop.cc (do_desktop): remove 1.1 version number
4569 (do_desktop_setup): ditto
4571 * ini.cc (do_ini): zero out package list just in case we redo it.
4573 2000-09-07 Jeffrey Juliano <juliano@cs.unc.edu>
4575 * choose.cc (list_click): Check for nindexes==0; if so, return.
4577 2000-09-06 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
4579 * localdir.cc: new, local package directory selection dialog; cd
4580 into selected directory
4581 * Makefile.in (OBJS): add localdir.o
4582 * dialog.h: add prototype for do_local_dir
4583 * main.cc (WinMain): initialize local_dir to cwd; add call to
4585 * net.cc (dialog_cmd): make DO_LOCAL_DIR next dialog
4586 * source.cc (dialog_cmd): ditto
4587 * res.rc: add DO_LOCAL_DIR dialog; remove "current directory" from
4588 presented choices in IDD_SOURCE; add IDS_ERR_CHDIR error string
4589 * resource.h: defines for DO_LOCAL_DIR dialog; define IDS_ERR_CHDIR
4590 * root.cc (dialog_cmd): make DO_LOCAL_DIR previous dialog
4591 * state.h: add local_dir variable
4593 2000-09-06 Brian Keener <bkeener@thesoftwaresource.com>
4595 * desktop.cc: added logic to handle to the new dialog and to
4596 default the setting for the new checkboxes based on whether the
4597 desktop icon or start menu link already exist.
4598 (desktop_icon): correction to desktop directories for desktop icon
4599 creation. Additional logic added for Win95 which does not appear
4600 to have Common Directories so if Common selected and null uses
4602 (start_menu): Additional logic added for Win95 which does not
4603 appear to have Common Directories so if Common selected and null
4604 uses normal directory.
4605 (do_desktop_setup): moved the saving of the icon, creation of the
4606 bat file, profile, passwd, Start Menu link and desktop shortcut to
4607 this method from do_desktop. Made the creation of the desktop
4608 icon and start menu link conditional on settings of new dialog
4609 created for desktop.
4610 * install.cc (do_install): changed next from IDD_S_DESKTOP to
4612 * main.cc (WinMain): changed case IDD_S_DESKTOP to IDD_DESKTOP.
4613 * res.rc: added new resource to create a desktop dialog with 2
4614 checkboxes for creating the desktop icon and start menu link.
4615 * resource.h: changed IDD_S_DESKTOP to IDD_DESKTOP and added two
4616 new controls: IDC_ROOT_MENU and IDC_ROOT_DESKTOP for new dialog.
4617 * state.h: added root_menu and root_desktop for use in dialog.
4619 2000-08-29 DJ Delorie <dj@redhat.com>
4621 * choose.cc (scan_downloaded_files): scan for existing files, so
4622 that the user only sees new downloads.
4624 * nio-ie5.cc (NetIO_IE5): pre-check for wininet.dll, enable dial-up
4625 * site.cc (do_site): if we can't download the mirror list, go back
4626 to the net setup box to choose another transport.
4627 * autoload.c: add more functions
4628 * Makefile.in (ALL_DEP_LDLIBS): remove wininet.a
4629 * resource.h: add WININET message
4631 * net.cc (do_net): no longer default to IE5
4632 * simpsock.h (class SimpleSocket): new, simplify socket operations
4633 * simpsock.cc: ditto
4634 * nio-http.h: new, for direct http protocol
4635 * nio-http.cc: ditto
4636 * nio-ftp.h: new, for direct http protocol
4638 * netio.cc (set_url): move initialization here to handle redirections
4639 (open): add direct http/ftp
4640 * netio.h (NetIO::set_url): new
4642 * log.cc (log_save): create directory for log if needed
4644 * hash.cc, hash.h: new
4645 * Makefile: add hash.o
4646 * choose.cc: enable "uninstall" option
4647 * download.cc: invert action test to accomodate uninstalling
4648 * ini.h: add ACTION_UNINSTALL
4649 * install.cc: add uninstall functionality
4650 * res.rc: make install tag changeable
4651 * resource.h: add uninstall resources
4653 * res.rc: update mirror list URL
4655 2000-08-24 DJ Delorie <dj@redhat.com>
4657 * log.cc, log.h: new files
4658 * Makefile.in (OBJS): add log.o
4659 * tar.cc: use exit_setup instead of exit
4660 * dialog.cc (fatal): use exit_setup instead of ExitProcess
4661 * msg.cc (fatal): ditto
4662 * install.cc (dialog_cmd): ditto
4663 * ini.cc (do_ini): ditto
4664 * main.cc (main): add logging
4665 * source.cc (do_source): ditto
4666 * root.cc (do_source): ditto
4667 * site.cc (do_site): ditto
4668 * other.cc (do_other): ditto
4669 * net.cc (do_net): ditto
4670 * choose.cc (do_choose): ditto
4671 * download.cc (do_download): ditto
4672 * install.cc (do_install): ditto
4673 * msg.cc (fatal): ditto
4675 * res.rc: mark password boxes as *being* password boxes.
4677 * fromcwd.cc (canonicalize_version): use multiple buffers so that multiple
4678 calls won't use the same buffer.
4679 * choose.cc (create_listview): don't default to full list if no changes
4680 (base): return computed value, not temporary :-(
4681 (do_choose): don't use installed.db if we're only downloading.
4683 2000-08-23 DJ Delorie <dj@redhat.com>
4685 * nio-ie5.cc (NetIO_IE5): Fix authentication logic
4686 * nio-ie5.h (flush_io): new
4687 * netio.cc (load_dialog): note when we're initializing the dialog
4688 box, and ignore changes to the edit fields then.
4690 2000-08-21 DJ Delorie <dj@redhat.com>
4694 * fromcwd.cc (found_file): don't remember the canonicalized version
4696 * choose.cc (paint): print "nothing to do" message when list is empty.
4697 (build_labels): Use version "0.0" if no version is available.
4698 (create_listview): default to full list if nothing to install/update.
4699 (base): new, returns basename of file
4700 (read_installed_db): compare base names, not full paths
4702 2000-08-11 DJ Delorie <dj@redhat.com>
4704 * choose.cc: add new chooser dialog
4705 * fromcwd.cc: use IDD_CHOOSE
4706 * ini.cc: use IDD_CHOOSE
4707 * main.cc: use IDD_CHOOSE
4708 * ini.h: cosmetic changes
4709 * res.rc: add choose dialog, bitmaps
4710 * choose-spin.bmp: new
4711 * choose-rtarrow.bmp: new
4712 * resource.h: add choose dialog controls
4714 * mount.cc: remove debug statement
4716 2000-08-08 DJ Delorie <dj@redhat.com>
4718 * Makefile.in (version.c): make version checking more robust
4719 * splash.cc (load_dialog): handle case where there's no version
4721 2000-08-07 DJ Delorie <dj@redhat.com>
4723 * (all): add cvsid tags
4724 * Makefile.in: generate version.c from ChangeLog, add splash.o
4726 * res.rc: add splash screen
4728 2000-08-02 DJ Delorie <dj@redhat.com>
4730 * net.cc: remove proxy password code
4731 * res.rc: remove proxy user/pass from net, add auth dialogs
4732 * netio.cc,h: add sys/proxy auth methods
4733 * nio-ie5: use them, check for http status codes
4734 * state.h: add system authorization
4736 * concat.cc (concat): canonicalize x:// to x:/ (exception to ://
4739 2000-08-02 Norman Vine <nhv@yahoo,com>
4741 * msg.cc (mbox): added MB_TOPMOST to MessageBox type flags
4743 2000-08-01 DJ Delorie <dj@redhat.com>
4745 * postinstall.cc (each): don't rename files we ignore
4746 (do_postinstall): set CYGWINROOT to root_dir, chdir there
4748 * desktop.cc: have /etc/profile call ~/.profile and ~/.bashrc
4750 2000-07-31 DJ Delorie <dj@redhat.com>
4752 * desktop.cc: reverse PATH so /usr/bin precedes /bin
4754 2000-07-18 DJ Delorie <dj@redhat.com>
4756 * autoload.c: new, autoload dlls that might not be available.
4757 * Makefile.in (OBJS): add autoload.o
4759 * res.rc: rewrite root options (text/binary, system/user) to be
4762 * site.cc (get_site_list): trim displayed URL, sort by domain
4764 * net.cc (do_net): make IE5 default to checked, for now
4766 * choose.cc (do_choose): sort packages correctly
4767 * ini.cc (do_ini): handle parse errors more gracefully
4769 (fprintf): line buffer output
4770 (do_ini): if we can't load setup.ini, go back to the site list.
4771 * ini.h: add "unknown" trust level
4772 * inilex.l: absorb unknown trust levels and key/value pairs,
4773 add line number logic
4774 * iniparse.y: handle parse errors more gracefully.
4775 * install.cc: skip packages with no valid install entry
4777 2000-07-17 DJ Delorie <dj@cygnus.com>
4779 * coding standards fixups, many files
4780 * mkdir.cc: warn about deletions *before* deleting them
4782 2000-07-17 Jeff Juliano <juliano@cs.unc.edu>
4784 * res.rc (IDD_OTHER_URL): reorder to give default focus to entry
4786 * other.cc (dialog_cmd): save download site URL
4787 * site.cc (get_root_dir): new
4788 (save_mirror_site): new
4789 (dialog_cmd): save download site URL
4790 (get_site_list): make list big enough to add prev site
4791 (get_initial_list_idx): new, read last-used URL from file and
4792 append it to site_list
4793 (do_site): call get_initial_list_idx
4795 * concat.cc (concat): avoid segfault when first parm is null
4797 2000-07-13 DJ Delorie <dj@cygnus.com>
4799 * postinstall.cc: new
4800 * Makefile.in: add postinstall.o
4801 * concat.h: add backslash ()
4803 * desktop.cc (etc_profile): don't do postinstall
4804 (backslash): moved to concat.cc
4806 (make_postinstall_script): run directly
4807 (do_desktop): chain to do_postinstall
4808 * dialog.h: add exit_msg, do_postinstall
4809 * download.cc: use exit_msg
4811 * main.cc: add postinstall, exit_msg
4812 * resource.h: add postinstall
4813 * README: add more to-do items
4815 2000-07-12 DJ Delorie <dj@cygnus.com>
4817 * desktop.cc: add /etc/postinstall/ support
4818 * install.cc: add more "standard" directories
4820 2000-07-11 DJ Delorie <dj@cygnus.com>
4822 * desktop.cc: create /etc/profile
4823 * desktop.cc: fix include syntax
4824 * Makefile.in: add auto-dependencies
4825 * root.cc: support system vs user
4833 * desktop.cc: make sure we use backslashes, not slashes.
4834 * desktop.cc: don't set PATH in cygwin.bat, create /etc/passwd
4835 * geturl.cc: change math for percentage to avoid overflow
4837 * download.cc: post "download complete" message.
4838 * root.cc: pre-fill in defaults if needed, don't start
4839 browse at root_dir unless it's set.
4840 * desktop.cc: quote $PATH in case it has spaces in it
4842 2000-07-10 DJ Delorie <dj@cygnus.com>
4844 * Makefile.in: add desktop.o and mklink2.o
4845 * dialog.h: add do_desktop
4846 * install.cc: create standard directories, call do_desktop
4847 * res.rc: add cygwin.ico as a file also
4848 * desktop.cc: new, do shortcuts, batch files, and icons
4849 * mklink2.c: new, for COM
4850 * README: update to-do list
4852 2000-07-10 DJ Delorie <dj@cygnus.com>
4854 * ini.cc (do_ini): don't worry about timestamps if we're not
4855 actually installing.
4857 2000-07-09 DJ Delorie <dj@cygnus.com>
4859 * Makefile.in: add -I$(srcdir) for ini.h
4861 2000-07-06 DJ Delorie <dj@cygnus.com>
4863 * Replace everything with a new GUI version
4864 * zlib/gzio.c: add gzctell() for progress displays
4866 2000-06-22 DJ Delorie <dj@cygnus.com>
4868 * setup.c (tarx): re-add call to write_pkg()
4870 2000-06-07 DJ Delorie <dj@cygnus.com>
4872 * cygcalls.c: new, call cygwin1.dll functions directly
4873 * cygcalls.h: header for same
4874 * Makefile.in: add cygcalls.[ch], remove mount/cygpath/umount
4875 exes, fix cinstall.rc dependencies.
4876 * path.c: remove unneeded code
4877 * setup.c: use cygcalls instead of xcreate_process.
4878 uncompress embedded files with zlib
4879 add "-d" for "download only"
4881 postpone mount changes until very end
4882 add download progress indicators
4883 pack multi-column listings more
4884 auto-delete temp files
4885 customize banner message according to options
4886 prompt user for text/binary mounts
4887 add warnings about empty setup directory, root installs, etc
4889 2000-05-24 DJ Delorie <dj@cygnus.com>
4891 * tar.c: New file; built-in tar using zlib.
4892 * tar.h: New file; header for same.
4893 * ctar.c: New file; test program for same.
4894 * Makefile.in: add built-in tar, remove tar.exe and gzip.exe
4895 * path.c (pathcat): convert slashes and canonicalize, instead of aborting
4896 * setup.c (tarx): add support for built-in tar
4897 (main): accept unix-style slashes, check root dir for drive letters,
4898 warn about installing in /, make sure cwd is empty for internet installs,
4899 defer mounts to end of install, support built-in tar.
4901 Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
4903 Fix compiler warnings throughout.
4904 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
4906 * setup.c: Make 'root' global.
4907 (istargz): Return pointer to "stem" of matched .tar.gz file.
4908 (tarx): Special case cygwin-20000301 to == cygwin-1.1.0.tar.gz. Remove
4909 bogus check_for_installed check.
4910 (recurse_dirs): Add preliminary support for .bat file execution.
4911 (create_uninstall): Eliminate unneeded parameter.
4912 (do_start_menu): Ditto.
4914 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
4915 scanning for the version number. Eliminate unneeded argument to
4917 (getdownloadsource): Add 'name' to list of names rather than url.
4918 (main): Eliminate unneeded argument in get_pkg_stuff. Eliminate
4919 unneeded argument in mkmount and do_start_menu.
4921 2000-05-18 DJ Delorie <dj@cygnus.com>
4923 * setup.c (optionprompt): allow multi-column, clean up message
4924 about more options, be more robust about user input.
4925 (getdownloadsource): make the mirror URL a macro.
4926 (main): do mounts after done prompting user.
4928 Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
4930 * setup.c (cleanup): Inverse order of deletion stands a better chance
4931 of deleting cygpath.exe. Still seems to suffer from occasional races,
4933 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
4935 (output_file): Defend against an unlikely handle leak.
4936 (main): Don't set up signal handling until we have something special to
4939 Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
4941 * path.c (kill_cygpath): Delete function.
4942 (exit_cygpath): Make more defensive so that it can be called at any
4944 (cygpath_pipe): Don't set up signal here. Do it in main().
4945 * setup.c (istargz): New function.
4946 (recurse_dirs): Look for *.gz pattern rather than *tar.gz since *tar.gz
4947 inexplicably fails on samba mounted partitions. Use istargz to match
4949 (processdirlisting) Use istargz to match tar.gz tail.
4950 (cleanup): Renamed from filedel.
4951 (cleanup_on_signal): New function. Called on CTRL-C.
4952 (main): Record handle of main thread so that it can be suspended when
4953 CTRL-C occurs. Set up cleanup_on_signal signal handler.
4955 Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
4957 * setup.c (do_start_menu): Don't concatenate paths to already built
4960 Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
4962 * path.c (exit_cygpath): Wait for subprocess to exit before returning.
4963 (cygpath_pipe): Don't call exit_cygpath. Let main atexit routine do
4965 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
4967 * setup.c (filedel): Call exit_cygpath here so that we can be assured
4968 that cygpath subprocess has died. This allows us to delete cygpath.exe
4970 (optionprompt): Initialize response to -1 so that second screen of
4971 mirrors will appear.
4972 (get_pkg_stuff): Don't attempt to use HKCLU. Pass root to init_pkgs.
4973 * setup.h: Reflect init_pkgs prototype change.
4975 Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
4977 * pkg.c (init_pkgs): Accept an argument to control what root registry
4979 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
4980 * setup.h: Reflect init_pkgs prototype change.
4982 Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
4984 * error.c (winerror): Respond to gcc warning.
4985 * path.c (cygpath_pipe): Ditto.
4986 * setup.c (filedel): Call sa_cleanup on deleteme.
4987 (create_shortcut): Coerce argument to eliminate compiler warning.
4988 (tarx): Use installed version of cygwin1.dll, overriding tar file name.
4989 (refmatches): New function. Tests if ref is contained in a list of
4990 packages to install.
4991 (filematches): New function. Tests if filename matches one of a list
4992 of packages to install.
4993 (recurse_dirs): Accept list of packages to install. Generalize tar.gz
4994 test to accomodate _tar.gz.
4995 (prompt): Ensure that stdout is flushed prior to asking for input.
4996 (findhref): Initialize variables to quiet a compiler warning.
4997 (processdirlisting): Accept list of packages to install. Special case
4998 cygwin tar file version number.
4999 (downloaddir): Accept list of packages to install.
5000 (downloadfrom): Ditto.
5001 (create_uninstall): Eliminate unneeded variables. Quote arguments to
5003 (do_start_menu): Don't create uninstall bat file if updating or user
5004 specified a list of packages.
5005 (mkmount): Eliminate unneeded variables.
5006 (get_pkg_stuff): New function. Checks for previous unversioned
5008 (main): Accept -u and -f options and package names on the command line.
5009 Use get_pkg_stuff to initialize package information. Umount /etc.
5010 Call recurse_dirs and downloadfrom with list of package to install.
5011 Ensure that all /usr/local directories are created. Output
5012 installation time to setup.log.
5013 * setup.h: Add some prototypes.
5014 * xsystem.c (xcreate_process): Eliminate unneeded variable.
5016 Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
5018 * setup.c (optionprompt): Don't overlap display of already seen options
5020 (geturl): Print name of site which we're connecting to rather than "ftp
5022 (processdirlisting): Avoid URLs that contain a /. or ./ . Is this
5023 test too simplistic?
5024 (do_start_menu): Use pathcat to build path to <root>\bin to avoid
5025 problems when user chooses x:\ as their root.
5026 (main): For now, default to "non-update" mode. Allow -u option to
5029 Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
5032 * setup.c (tarx): Skip already installed or older packages. Report
5033 when a package has been updated.
5034 (processdirlisting): Skip already installed or older packages.
5035 (main): Detect -f option for forced installation. Initialize pkg stuff
5037 * setup.h: Add pkg definitions.
5039 Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
5041 * setup.c (findhref): Return NULL on empty string. Eat any trailing
5043 (processdirlisting): Attempt to limit recursively processing the same
5046 Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
5048 * setup.c (filedel): New function.
5049 (output_file): Keep track of files extracted from setup.exe for
5050 subsequent deletion.
5051 (tarx): Close process handle of child tar process or suffer handle
5053 (getdownloadsource): Close mirror file so that it can be unlinked.
5054 (processdirlisting): Return total number of files extracted.
5055 (main): Initialize array of files to delete. Ensure that files are
5056 closed on exit. Make the directory that setup.exe is started from ==
5057 the directory where temporary files are placed. Issue an error if no
5058 files were found to download.
5059 * xsystem.c (xcreate_process): Close the thread handle. Close the
5060 process handle if we waited for it to exit.
5062 Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
5064 * setup.c (main): Change version number output.
5066 Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
5068 * setup.c (tarx): Use full path name to tar executable.
5069 (main): Build full pathname to tar executable. Create /usr/local/etc
5072 Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
5074 * setup.c (findhref): Change method for scanning for href= to choose
5075 the last one on the line. This is still not foolproof and probably
5076 will need to be changed eventually. Don't abort if no "size" field is
5078 (processdirlisting): Fix boolean algebra.
5080 Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
5082 * main.c (tarx): Add some code for future task of unmounting
5083 directories encountered in tar file.
5085 Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
5087 * setup.c (findhref): Decode file size, when appropriate.
5088 (needfile): New function. Returns 1 when file should be
5090 (processdirlisting): Always download if file size does not
5091 match. Prompt when download fails for some reason.
5092 (getdownloadsource): Accomodate findhref argument changes.
5094 Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
5096 Throughout, use global session handle rather than reinitializing for
5097 each connect. Don't pass session as an argument to setup.c functions.
5098 * setup.c (geturl): Only issue "Connecting to.." message when using
5099 http or first time for ftp since subsequent connections will be fast.
5100 (processdirlisting): Allocate space for "N" when user has specified
5101 "N"ever option so that it can be subsequently freed.
5102 (main): Abort if we can't get the list of mirrors.
5104 Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
5106 * setup.c (main): Umount /bin and /lib.
5108 Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
5110 * setup.c (main): Create an empty /var/run/utmp.
5112 Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
5114 * Makefile.in: Add umount to list of files to include in setup.exe.
5115 * setup.c (xumount): New function for unmounting directories.
5116 (main): Unmount /usr.
5117 (mkmount): Unmount "unix directory" before trying to figure out where
5118 to create the directory.
5120 Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
5122 * setup.c (mkmount): Use xcreate_process to start mount process,
5124 (main): Don't do buffering on stdout or prompts won't be displayed
5125 correctly if running in a cygwin shell with CYGWIN=tty.
5127 Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
5129 * setup.c (main): Remove the CYGWIN environment variable before
5130 starting any cygwin programs.
5132 Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
5134 * setup.c (geturl): Use alternative method for finding filename part of
5136 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
5137 (downloaddir): Unlink file containing dir listing.
5138 (downloadfrom): Ditto.
5140 Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
5142 * setup.c (main): Disallow running setup.exe from the "root".
5144 Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
5146 Use "warning" function, where appropriate, to output warnings.
5147 * setup.c (warning): New function -- outputs warning to console and log
5149 (tarx): Fix index used to reset file protection.
5150 (main): Open the log file earlier so that more stuff can be sent to it.
5152 Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
5154 * setup.c (processdirlisting): Make "N" option a little less aggressive.
5156 Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
5158 * setup.c (tarx): Wait to after tar has completed to reset protections
5159 or suffer races with tar process.
5161 Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
5163 * Makefile.in: Eliminate duplicate -nostdinc from CFLAGS.
5164 * setup.c (create_uninstall): Create the uninstall .bat file in the
5165 "root" so that we can remove the /bin directory. Add bin\cygwin.bat to
5166 list of files to be deleted. Fix directory detection for determining
5167 when to use 'rmdir'.
5168 (do_start_menu): Add /usr/local/bin to the path.
5169 (main): Add slop to files.array allocation so that we don't have to
5170 worry about reallocating the array when it grows too large when doing
5171 some trivial "pushes". Add /tmp and /usr/local/{bin,lib} to list of
5174 Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
5176 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
5179 Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
5181 * path.c (kill_cygpath): New cleanup function.
5182 (exit_cygpath): New cleanup function.
5183 (cygpath_pipe): New function. Sets up cygpath in the background for
5184 translating filenames.
5185 (pathcvt): Use background cygpath for file translation.
5186 * setup.c (tarx): New function. Called to extract tar files, capture
5187 logging output, and translate it to Windows format.
5188 (recurse_dirs): Use 'tarx' function to extract files.
5189 (create_uninstall): Use file list built up by tarx rather than reading
5191 (mkmount): Add ability to mount root.
5192 (main): Track elapsed install time. Mount root.
5193 * starry.h: Add index field to strarry for tracking of tarx's usage of
5195 * xsystem.c (xcreate_process): Return proces handle when not waiting.
5197 Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
5200 (pathfp): New function. Preliminary work for new -f cygpath
5202 * Makefile.in: Add new file.
5203 (pathcvt): Move to new file.
5207 * setup.c (processdirlisting): Always open file in text mode.
5208 (create_uninstall): Ditto.
5209 (getdownloadsource): Ditto.
5212 Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
5214 * xsystem.c: New file.
5215 * Makefile.in: Accomodate new file.
5216 * setup.c (xsystem): Move to new file.
5217 (recurse_dirs): Accept handle to output log file. Don't use ">"
5218 redirection to trap tar output. Use supplied handle instead.
5219 (create_uninstall): Accept FILE pointer to opened log file. Don't
5220 unlink log file here.
5221 (do_start_menu): Accept FILE pointer to pass to create_uninstall.
5222 (main): Open log file here and pass it to various functions. Unlink
5225 Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
5227 Change occurrences of .usr.bin to .bin throughout.
5228 * setup.c (geturl): Increase number of retries to 20. Let user know
5229 what's going on during long connects.
5230 (processdirlisting): Accept "A"lways and "N"ever as update options.
5231 (create_uninstall): Load cygwin1.dll from the current directory rather
5233 (main): Add some expository text.
5235 Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
5237 * Makefile.in: Change method for compressing cygwin1.dll to avoid
5238 creating a cygwin1.dll in the current directory. Ensure the addition
5239 of -nostdinc to MINGW_CFLAGS.
5241 Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
5243 * Makefile.in: Augment clean target.
5245 Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
5247 * README: Added info about non-working mingw implementation
5248 * gzip.exe.gz: Replace with a version from the same build as the other
5250 * tar.exe.gz: Replace with a version from the same build as the other
5252 * mount.exe.gz: Add to repository until, mingw can build setup.
5253 * cygpath.exe.gz: ditto
5254 * cygwin1.dll.gz: ditto
5255 * setup.c: Overwrite /bin and /lib mounts. Generate working shortcut
5256 for Win9x. Display only a screenfull of options at a time. Call all
5257 tools with an absolute path.
5258 * setup.dsp: Restore the carriage returns, MS Developer Studio needs
5263 Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
5265 * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab
5266 cygwin1.dll from ../cygwin subdirectory.
5267 * gzip.exe.gz: Update.
5268 * tar.exe.gz: Update.
5270 Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
5272 * Makefile.in: Use ZLIB variable as a target.
5274 Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
5276 * Makefile.in: Eliminate traces of cygwinisms. Don't link with
5277 libmsvcrt.a. It's unneeded. Build .rc file on the fly from various
5279 * configure.in: Locate correct objcopy.
5280 * configure: Regenerate.
5282 Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
5284 * Makefile.in: New file.
5285 * configure.in: New file.
5286 * configure: New file.
5287 * zlib/Makefile.am: New file.
5288 * zlib/configure.in: New file.
5289 * zlib/aclocal.m4: New file.
5290 * zlib/acinclude.m4: New file.
5291 * zlib/configure: Regenerate from configure.in.
5292 * zlib/Makefile.in: Regenerate from Makefile.am