1 2003-03-05 Max Bowsher <maxb@ukf.net>
3 * netio.cc (save_dialog): Allocate an empty string if the password is
4 null, so that an empty password is accepted elsewhere in setup.
5 (check_if_enable_ok): An empty password is OK.
7 2003-03-05 Brian Keener <bkeener@thesoftwaresource.com>
9 * PickView.cc (PickView::views): Add two new views for Skipped
10 packages and Installed Packages not requiring update.
11 (PickView::set_headers () ): Ditto.
12 (PickView::clear_view (void) ): Ditto.
13 (PickView::views::caption () ): Add two new captions for the new
14 views added for Skipped and Installed Packages.
15 (PickView::scroll () ): Modify Scroll Bar property to Disable
16 instead of disappearing when there is nothing to Scroll.
17 * PickView.h: Add two new views for Skipped packages and Installed
18 packages to public class view.
19 * choose.cc (list_click () ): Modify Scroll Bar property to Disable
20 instead of disappearing when there is nothing to Scroll.
21 (listview_proc () ): Ditto.
22 (set_view_mode): Add two new views for Skipped Packages and Installed
23 Packages not requiring update. Modify Scroll Bar property to Disable
24 instead of disappearing when there is nothing to scroll.
25 * res.rc (IDD_CHOOSE): Reposition Radio Buttons, View Selection
26 Button and View Button Caption to make room for longer captions.
28 2003-03-04 Max Bowsher <maxb@ukf.net>
30 * compress_gz.cc (compress_gz::construct):
31 Fix broken checkin dated 2002-07-03.
33 2003-02-28 Max Bowsher <maxb@ukf.net>
35 * main.cc (set_default_sec): Add logging.
37 2003-02-28 Pierre Humblet <pierre.humblet@ieee.org>
39 * main.cc (set_default_dacl): Replace with set_default_sec.
40 (set_default_sec): Attempt to change the default group to
41 Users or Administrators if it is None, in addition to setting
42 Everyone in the default DACL.
43 (main): Call set_default_sec instead of set_default_dacl.
45 2003-01-31 Max Bowsher <maxb@ukf.net>
47 * install.cc (install_one_source): Fix spacing in log message.
49 2003-01-19 Max Bowsher <maxb@ukf.net>
51 * resource.h (IDC_CHOOSE_KEEP): Define.
52 * res.rc (IDD_CHOOSE): Add radio button IDC_CHOOSE_KEEP.
53 * choose.cc (create_listview): Add IDC_CHOOSE_KEEP to ta[].
54 (ChooserPage::OnMessageCmd): Handle new IDC_CHOOSE_KEEP button.
56 2003-01-15 Max Bowsher <maxb@ukf.net>
58 * mkdir.cc [_CYGWIN_]: Implement what was pseudocode.
59 * io_stream.h [__CYGWIN__]: Don't typedef ssize_t.
60 * proppage.h: Include "win32.h" instead of <windows.h>.
62 2003-01-15 Max Bowsher <maxb@ukf.net>
64 * mount.cc [MAINTAINER_FEATURES]: Add --override-registry-name option.
66 2002-12-11 Abraham Backus <abraham@backus.com>
68 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Leave port out of Host header,
71 2002-12-11 Max Bowsher <maxb@ukf.net>
73 * package_meta.cc: Change 'endl' to 'endLog' as appropriate.
74 * package_version.cc: Ditto.
76 2002-09-22 Max Bowsher <maxb@ukf.net>
78 * PickView.cc (pkg_headers): Rename column 'Category' to 'Categories'.
79 * package_meta.h (packagemeta::getReadableCategoryList): Declare.
80 * package_meta.cc (packagemeta::getReadableCategoryList): Implement.
81 * PickPackageLine.cc (PickPackageLine::paint): Change to use
82 getReadableCategoryList.
83 Fix x2 argument to IntersectClipRect.
85 2002-11-25 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
87 * window.h (Window::GetWindowRect): New method declaration.
88 (Window::GetClientRect): Ditto.
89 (Window::MoveWindow): Ditto.
90 (Window::ScreenToClient): Ditto.
91 * window.cc (REFLECTION_INFO): Remove.
92 (ReflectionInfo): Remove.
93 (Window::FirstWindowProcReflector): Use the WM_NCCREATE message instead
94 of the horrid REFLECTION_INFO hack to hook the Window instance to the
96 (Window::WindowProcReflector): Use GetWindowLongPtr() now that it's
98 (Window::Create): Change to use new WM_NCCREATE reflection procedure
100 (Window::GetWindowRect): New method.
101 (Window::GetClientRect): New method.
102 (Window::MoveWindow): New method.
103 (Window::CenterWindow): Use new methods, also specify "::" for some non-
104 member functions with the same names.
105 (Window::ScreenToClient): New method.
107 2002-11-26 Robert Collins <rbtcollins@hotmail.com>
109 * AntiVirus.cc: Change the short option again! It's now 'A'.
110 * desktop.cc (etc_profile): Remove.
111 (make_etc_profile): Remove.
113 (make_passwd_group): Remove.
114 (do_desktop_setup): Don't call removed functions.
116 2002-11-26 Robert Collins <rbtcollins@hotmail.com>
118 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Fix my botched application of
121 2002-07-08 Marcel Telka <marcel@telka.sk>
123 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Fixed decoding of the FTP
124 reply (code 227) to the PASV command.
126 2002-11-26 Robert Collins <rbtcollins@hotmail.com>
128 * IniDBBuilderPackage.cc (IniDBBuilderPackage::~IniDBBuilderPackage):
129 Sort the packages db once all the new packages have been added.
130 * IniDBBuilderPackage.h (IniDBBuilderPackage::~IniDBBuilderPackage):
133 2002-11-26 Robert Collins <rbtcollins@hotmail.com>
135 * choose.cc (ChooserPage::OnNext): Remove extracted comment.
136 * package_version.cc (processOneDependency): Return once selecting
137 a package (bugfix to prevous rework).
138 Log if the default trust fails the package specification.
140 2002-11-26 Robert Collins <rbtcollins@hotmail.com>
142 * package_meta.h (packagemeta::logAllVersions): Declare.
143 (packagemeta::trustLabel): Ditto.
144 * choose.cc (ChooserPage::OnNext): Get each package to log all it's
146 * package_meta.cc (packagemeta::logAllVersions): Implement.
147 (packagemeta::trustLabel): Ditto.
149 2002-11-25 Robert Collins <rbtcollins@hotmail.com>
151 * AntiVirus.cc: Change 'd' to 'D' to fix command line conflict.
153 2002-11-25 Robert Collins <rbtcollins@hotmail.com>
155 * AntiVirus.cc: New file.
156 * AntiVirus.h: Ditto.
157 * LogFile.cc: Include AntiVirus.h for class definition.
158 (LogFile::exit): Trigger AntiVirus::AtExit().
159 * MakeFile.am(setup_SOURCES): Add AntiVirus files.
160 * autoload.c: Declare Service Control Manager related API's.
161 * main.cc: Include AntiVirus.h for class definition.
162 (main): Add the AntiVirus page in.
163 * res.rc: Define IDD_VIRUS.
164 * resource.h: Define IDD_VIRUS related control ID's.
165 * splash.h: Override OnNext.
166 * splash.cc: Only show AntiVirus page when one has been detected.
169 2002-11-25 Robert Collins <rbtcollins@hotmail.com>
171 * package_version.cc (DependencyProcessor): Create convenience class.
172 (select): Extract version selection method.
173 (processOneDependency): Check for a satisfactory trusted version
176 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
178 * main.cc (main): Use the factory for LogFile.
179 * String++.cc: Update to use sstream.
180 (String::String): Use a ostringstream for libC++ 3.2.
181 * LogFile.h (LogFile): Make createLogFile static.
183 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
185 * main.cc (main): Oops, pass LogSingleton a reference, not a pointer.
187 2002-11-04 Max Bowsher <maxb@ukf.net>
189 * Exception.h (Exception::what): Add throw() specification,
190 to agree with libstdc++-v3.
191 * Exception.cc (Exception::what): Ditto.
192 * IniDBBuilderPackage.h: Add 'std::' where needed.
193 * PickCategoryLine.h: Ditto.
195 * package_db.h: Ditto.
196 * package_meta.h: Ditto.
197 * package_source.h: Ditto.
198 * package_version.h: Ditto.
200 * win32.h: Define NOMINMAX before including <windows.h>.
201 * package_meta.cc: Add 'using namespace std;'.
202 (packagemeta::set_requirements): Remove default parameter values
203 from definition (gcc3 likes them only in declaration).
204 * package_version.cc: Add 'using namespace std;'.
205 (packageversion::set_requirements): Remove default parameter
206 values from definition (gcc3 likes them only in declaration).
208 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
210 * compress_bz.cc: Don't include bzlib.h directly, the compress_bz.h
213 2002-11-04 Max Bowsher <maxb@ukf.net>
215 * compress_bz.h: #undef small before including bzlib.h - if we are
216 going to hide the fact that we are _WIN32 from bzlib, then we need
217 to #undef small for it as well (bad windows.h clash).
219 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
221 * localdir.cc: Update the extern LogFile to be a pointer.
222 (save_local_dir): Change . to -> for the above.
223 * main.cc (theFile): Change from an instance to a pointer.
224 (main): Change . to -> for the above.
226 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
228 * LogFile.cc: use 'std::' where needed throughout.
229 (LogFile::createLogFile): Implement a factory for LogFile.
230 (LogFile::LogFile): Update for use with the factory, and to
231 handle the latest g++ library changes.
232 (LogFile::operator()): Ditto.
233 (LogFile::endEntry()): Ditto.
235 * LogSingleton.cc: Ditto.
236 * LogSingleton.h: Ditto.
238 2002-11-04 Max Bowsher <maxb@ukf.net>
240 * String++.h: Add 'std::' where needed.
242 2002-11-04 Max Bowsher <maxb@ukf.net>
244 * IniDBBuilderPackage.cc: Add 'using namespace std;'.
245 * IniParseFindVisitor.cc: Ditto.
247 * LogSingleton.cc: Ditto.
248 * PickView.cc: Ditto.
249 * String++.cc: Ditto.
251 * download.cc: Ditto.
254 * io_stream.cc: Ditto.
255 * io_stream_file.cc: Ditto.
256 * package_db.cc: Ditto.
260 2002-11-04 Max Bowsher <maxb@ukf.net>
262 * LogSingleton.h: Add 'std::' where needed.
264 2002-11-04 Max Bowsher <maxb@ukf.net>
266 * archive_tar_file.cc: Include <algorithm>.
267 Change min(a,b) to std::min(a,b)
268 * compress_bz.cc: Ditto.
269 * compress_gz.cc: Ditto.
271 2002-11-04 Max Bowsher <maxb@ukf.net>
273 * res.rc: Change a #-comment (invalid) to a //-comment.
275 2002-11-04 Max Bowsher <maxb@ukf.net>
277 * Makefile.am (%.o: %.rc): Make windres use $(CC) not hardcoded gcc.
278 (inilint_LDADD): Remove -lstd++.
279 (setup_LDADD): Ditto.
281 2002-09-22 Max Bowsher <maxb@ukf.net>
283 * IniDBBuilderPackage.cc: Update DEBUG code to current class
286 2002-09-21 Robert Collins <rbtcollins@hotmail.com>
288 * choose.h: Add OnUnattended method.
289 * desktop.cc (DesktopSetupPage::OnInit): Allow fine grained
290 control via command line options.
291 (DesktopSetupPage::OnUnattended): Implement.
292 (DesktopSetupPage::OnMessageApp): Implement.
293 * desktop.h (DesktopSetupPage::OnUnattended): declare.
294 (DesktopSetupPage::OnMessageApp): Ditto.
295 * download.cc (do_download_thread): Support unattended mode.
296 * install.cc (do_install_thread): Ditto.
298 * main.cc (main): Ditto.
299 * net.cc (NetPage::OnUnattended): Ditto.
300 * net.h (NetPage::OnUnattended): Declare.
301 * proppage.cc (PropertyPage::DialogProc): Support unattended mode.
302 * proppage.h (PropertyPage::OnUnattended): Declare.
303 * root.cc (RootPage::OnInit): Support unattended mode.
304 (RootPage::OnUnattended): Implement.
305 * root.h (RootPage::OnUnattended): Declare.
306 * site.cc (register_saved_site): Extract Method from get_saved_sites.
307 (get_saved_sites): Remove common code for adding a site.
308 (SitePage::OnInit): Support unattended mode.
309 (SitePage::OnUnattended): Implement.
310 * site.h (SitePage::OnUnattended): Declare.
311 * source.cc (SourcePage::OnActivate): Support unattended mode.
312 (SourcePage::OnUnattended): Implement.
313 * source.h (SourcePage::OnUnattended): Declare.
314 * splash.h (SplashPage::OnUnattended): Declare.
315 * state.cc (unattended_mode): Declare.
316 * state.h (unattended_mode): Declare.
317 * threebar.h (ThreeBarProgressPage::OnUnattended): New method.
319 2002-09-21 Robert Collins <rbtcollins@hotmail.com>
321 * res.rc: Commit Harry Johnston's dialog caption patch. From July.
323 2002-07-15 Robert Collins <rbtcollins@hotmail.com>
325 * package_version.cc (packageversion::sources): Implement this.
326 * download.cc (do_download_thread): Support multiple files per package.
328 2002-07-15 Robert Collins <rbtcollins@hotmail.com>
330 * package_version.h (packageversion::sources): Support multiple files in
331 a single package version.
332 * package_version.cc (_packageversion::accessible): Ditto.
333 (packageversion::source): Ditto.
335 2002-07-15 Robert Collins <rbtcollins@hotmail.com>
337 * iniparse.y: Implement support for multiple source files for a source
339 * IniDBBuilder.h (IniDBBuilder::buildSourceFile): Ditto.
340 * IniDBBuilderPackage.h (IniDBBuilder::buildSourceFile): Ditto.
341 * IniDBBuilder.cc (IniDBBuilder::buildSourceFile): Ditto.
342 * IniDBBuilderPackage.cc (IniDBBuilder::buildSourceFile): Implement a
345 2002-07-13 Robert Collins <rbtcollins@hotmail.com>
347 * PickPackageLine.cc (PickPackageLine::click): Set requirements for
348 packages under all circumstances - slightly higher overheader, simpler
350 * download.cc (do_download_thread): Correctly download source
352 * package_meta.cc (checkForInstalled): Remove.
353 (checkForUpgradeable): Ditto.
354 (checkForSatisfiable): Ditto.
355 (processOneDependency): Ditto.
356 (packagemeta::set_requirements): Move guts to packageversion.
357 * package_version.cc (checkForInstalled): Copied from package_meta.cc.
358 (checkForUpgradeable): Ditto.
359 (checkForSatisfiable): Ditto.
360 (processOneDependency): Ditto.
361 (packageversion::set_requirements): Ditto.
362 * package_version.h (packageversion::set_requirements): Declare.
364 2002-07-13 Robert Collins <rbtcollins@hotmail.com>
366 * IniDBBuilder.cc (IniDBBuilder::buildBeginBuildDepends): Implement.
367 (IniDBBuilder::buildBeginBinary): Implement.
368 * IniDBBuilder.h (IniDBBuilder::buildBeginBuildDepends): Declare.
369 (IniDBBuilder::buildBeginBinary): Ditto.
370 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildBeginBuildDepends):
372 (IniDBBuilderPackage::buildBeginBinary): Ditto.
373 * IniDBBuilderPackage.h (IniDBBuilderPackage::buildBeginBuildDepends):
375 (IniDBBuilderPackage::buildBeginBinary): Ditto.
376 * inilex.l: Recognise Build-Depends-Indep, [,], >, < and remove
378 * iniparse.y: Full support for parsing a debian Sources file in-line in
380 * package_version.cc (packageversion::binaries): Implement.
381 * package_version.h (packageversion::binaries): Declare list of what
382 packages are created from a given source package.
383 (_packageversion::binaries): Ditto.
385 2002-07-10 Robert Collins <rbtcollins@hotmail.com>
387 * iniparse.y: Add basis for support for parsing a debian Sources file.
390 2002-07-09 Robert Collins <rbtcollins@hotmail.com>
392 Change custom container code for packagedb::packages to STL containers
394 * IniDBBuilderPackage.cc: Ditto.
395 * PickView.cc: Ditto.
398 * download.cc: Ditto.
400 * package_db.cc: Ditto.
401 * package_db.h: Ditto.
402 * Makefile.am: Remove list.h references.
405 2002-07-08 Max Bowsher <maxb@ukf.net>
407 * PickView.cc (PickView::PickView): Set font of package list header to
408 the same as used in the rest of the package list.
410 2002-07-08 Robert Collins <rbtcollins@hotmail.com>
412 * install.cc (NoReplaceOnReboot): New command line option to prevent
413 replacing in use files.
414 (install_one_source): Check the option and use it.
415 * README: Update TODO lists.
417 2002-07-08 Robert Collins <rbtcollins@hotmail.com>
419 * PickCategoryLine.cc: Change bucket to use STL container syntax
421 (PickCategoryLine::paint): Use new Category type syntax.
422 * PickCategoryLine.h: Use STL vectors rather than custom containers
424 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageCategory):
425 Use new add_category syntax.
426 * PickView.cc (PickView::insert_pkg): Use new Category type syntax.
427 (PickView::insert_category): Ditto.
428 (PickView::init_headers): Ditto.
429 * category.cc: Trim obsolete code.
430 * category.h: Replace interconnecting class with a typedef to
431 facilitate leveraging STL maps.
432 * choose.cc (fill_missing_category): Use updated pkg.add_category
434 (default_trust): Use new Category type syntax.
435 (set_view_mode): Ditto.
436 (create_listview): Ditto.
437 * package_db.cc (categories): Ditto.
438 * package_db.h: Update headers list to include needed headers.
439 (packagedb::categories): Replace custom list with STL map.
440 * package_meta.cc: Use new Category type syntax throughout.
441 (packagemeta::add_category): Implement new syntax.
442 * package_meta.h: Remove commented out source.
443 (packagemeta::add_category): Update syntax to decouple interface from
446 2002-07-06 Christopher Faylor <cgf@redhat.com>
448 * site.cc (do_download_site_info_thread): Correct spelling error.
450 2002-07-06 Robert Collins <rbtcollins@hotmail.com>
452 * PickCategoryLine.h: Include required header list.h.
453 * PickPackageLine.cc (PickPackageLine::paint): Adjust to use STL
454 containers for listing of packages per category and vice verca.
455 * PickView.cc (PickView::insert_pkg): Ditto.
456 (PickView::insert_category): Ditto.
457 * String++.h (String::caseless): STL helper to allow trivial containers
458 of Strings with case insensitive comparisons.
459 * category.h: Adjust to use STL containers for listing of packages per
460 category and vice verca.
461 * choose.cc (fill_missing_category): Ditto.
462 (default_trust): Ditto.
463 (ChooserPage::OnNext): Ditto.
464 * package_meta.cc (CategoryPackage::~CategoryPackage): Remove.
465 (packagemeta::packagemeta): Adjust for new category list name.
466 (packagemeta::~packagemeta): Adjust to use STL containers for listing
467 of packages per category and vice verca.
468 (packagemeta::set_action): Ditto.
469 * package_meta.h (CategoryPackage): Remove.
470 (packagemeta): Adjust to use STL containers for listing of packages per
471 category and vice verca.
473 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
475 * io_stream.cc: Use STL containers rather than custom ones.
476 (io_stream::registerProvider): Ditto.
477 (findProvider): Ditto.
479 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
481 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
482 Use STL collections for download site collections.
483 (IniDBBuilderPackage::add_correct_version): Ditto.
484 (IniDBBuilderPackage::process_src): Ditto.
485 * PickPackageLine.cc (PickPackageLine::click): Use the packageversion
486 accessible() call to abstract package availability.
487 * choose.cc (scanAVersion): Use STL collections for download site
489 * download.cc (check_for_cached): Ditto.
490 (download_one): Ditto.
491 * package_meta.cc (packagemeta::set_action): Use the packageversion
492 accessible() call to abstract package availability.
493 * package_source.h: Use STL containers rather than custom containers.
494 (site): Create a == operator to allow STL container use.
495 (packagesource::sites): Use STL containers rather than custom
497 * package_version.cc (_packageversion::accessible): Use STL containers
498 for download site containers.
500 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
502 * LogFile.cc: Use STL containers rather than custom containers.
503 (filedef): Create == and < operators for STL use.
504 (files): Convert to an STL set.
505 (LogFile::setFile): Use STL operations on files.
506 (LogFile::exit): Ditto.
508 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
510 * ini.cc (do_remote_ini): Use STL collection for site collection.
511 * site.cc: Include site.h first to ensure it's parsable standalone.
513 (site_list): Convert to an STL container.
514 (all_site_list): Ditto.
515 (site_list_type::site_list_type): Implement copy constructor.
516 (site_list_type::operator=): Implement assignment operator.
517 (site_list_type::operator ==): Implement.
518 (site_list_type::operator <): Ditto.
519 (save_dialog): Use STL collection calls for site collection.
520 (save_site_url): Ditto.
521 (get_site_list): Ditto.
522 (get_saved_sites): Ditto.
523 (do_download_site_info_thread): Ditto.
524 (SitePage::OnNext): Ditto.
525 (SitePage::PopulateListBox): Ditto.
526 (SitePage::OnMessageCmd): Ditto.
527 * site.h: Use STL vectors instead of custom code.
528 (site_list_type::site_list_type): Declare.
529 (site_list_type::operator=): Ditto.
530 (site_list_type::operator ==): Ditto.
531 (site_list_type::operator !=): Ditto.
532 (site_list_type::operator <): Ditto.
533 (site_list_type::operator <=): Ditto.
534 (site_list_type::operator >): Ditto.
535 (site_list_type::operator >=): Ditto.
536 (site_list): Convert to an STL container.
537 (all_site_list): Ditto.
539 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
541 * choose.cc (default_trust): Check package accessibility before
542 triggering an install. (Suggested by Pavel).
544 2002-07-03 Pavel Tsekov <ptsekov@gmx.net>
546 * compress_gz.cc (compress_gz::construct): Always initialize key members
547 to ensure the destructor does the right thing.
549 2002-07-03 Pavel Tsekov <ptsekov@gmx.net>
551 * filemanip.cc (parse_filename): Do not try to parse empty
553 * package_db.cc (packagedb::packagedb): For each line check if sscanf()
554 extracted good package name and filename.
556 2002-07-03 Robert Collins <rbtcollins@hotmail.com>
558 * package_meta.cc (packagemeta::set_requirements): Automatically select
559 version of dependent packages that satisfies the requirements.
560 Use processOneDependency to trigger the install of those packages.
561 (checkForInstalled): Check that the package remains installed.
562 (processOneDependency): Helper function for dependent packages.
563 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackage): Add more
565 Clear out all current state on new packages.
566 (IniDBBuilderPackage::add_correct_version): Copy the dependency list
569 2002-07-02 Robert Collins <rbtcollins@hotmail.com>
571 * Makefile.am (inilint_SOURCES): Add PackageSpecification sources.
572 nb: inilint is still incomplete, as the packageversion code is not
573 ready for database-less linking.
574 * site.cc (get_site_list): When the same site is reentered by the user
575 replace the old one. (Suggested by John Marshall).
577 2002-07-02 Robert Collins <rbtcollins@hotmail.com>
579 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
580 Clear out package selections when generating implicit source packages.
581 * PackageSpecification.cc (PackageSpecification::satisfies): Implement.
582 (PackageSpecification::_operators::satisfies): Implement.
583 * PackageSpecification.h (PackageSpecification::_operators::satisfies):
584 Worker function for testing versions.
586 2002-07-01 Robert Collins <rbtcollins@hotmail.com>
588 * IniDBBuilder.cc (IniDBBuilder::buildPackageRequirement): Remove.
589 * IniDBBuilder.h (IniDBBuilder::buildPackageRequirement): Ditto.
590 * IniDBBuilderPackage.cc: Use the STL algorithms.
591 Change cpv to cbpv throughout. Adjust -> to ., and use the new accessor
592 functions for the same variable throughout.
593 (IniDBBuilderPackage::IniDBBuilderPackage): Initialise new members.
594 (IniDBBuilderPackage::buildPackage): Use new cygpackage syntax,
595 and set an empty source package.
596 (IniDBBuilderPackage::buildPackageInstall): Use the new source member
597 to record an install package.
598 (IniDBBuilderPackage::buildPackageSource): Move source package logic
599 out from process_src, as it now occurs at separate times.
600 (IniDBBuilderPackage::buildPackageRequirement): Remove.
601 (IniDBBuilderPackage::buildSourceName): Use renamed package
602 specifiation accessor for clarity.
603 (IniDBBuilderPackage::buildSourceNameVersion): Ditto.
604 (IniDBBuilderPackage::add_correct_version): Use STL iterators rather
606 Remove source package references.
607 (IniDBBuilderPackage::process_src): Remove source package code as it's
608 now handled separately.
609 Set Path information before merging versions, to prevent dangling
611 * IniDBBuilderPackage.h (IniDBBuilderPackage::buildPackageRequirement):
613 (IniDBBuilderPackage::cpv): Remove.
614 (IniDBBuilderPackage::cbpv): New generic binary working variable.
615 (IniDBBuilderPackage::cspv): Ditto, but for source packages.
616 (IniDBBuilderPackage::csp): Source package variable for disjoint
618 * Makefile.am (AM_CFLAGS): Remove -Winline to allow stl set code
619 to compile. If it compiles cleanly in gcc 3.1, then reinstate.
620 * PickPackageLine.cc: Adjust packageversion accessors to the new
621 reference calls. (i.e. -> to .) throughout.
622 (PickPackageLine::paint): Use accessible() for clarity.
623 Use new split out source package logic.
624 (PickPackageLine::click): Ditto.
625 * PickView.cc (PickView::init_headers): Adjust packageversion accessors
626 to the new reference calls. (i.e. -> to .) throughout.
627 Use new split out source package logic.
628 * choose.cc: Don't depend on a specific package type.
629 Adjust packageversion accessors to the new reference calls. (i.e. -> to
631 (set_existence): Use accessible () for clarity.
632 (default_trust): Simplify a little.
633 (scanAVersion): Factored out code from scan_downloaded_files for
635 (scan_downloaded_files): Factor out inner loop for clarity.
636 (ChooserPage::OnNext): Don't dump the dependency list,
637 it's parsing is robust now!.
638 * cygpackage.cc (createInstance): Use a factory method to create new
640 (cygpackage::cygpackage): Make this private for use by the factory.
641 (cygpackage::setCanonicalVersion): Renamed from set_canonical_version.
642 Remove key usage as it's obsolete.
643 * cygpackage.h (cygpackage): Inherit from _packageversion, not
645 (cygpackage::createInstance): New factory.
646 (cygpackage::cygpackage): Make private.
647 * desktop.cc (make_passwd_group): Use new packageversion reference.
648 * download.cc (do_download_thread): Use changeRequested() for clarity.
649 Use new packageversion reference calls.
650 * iniparse.y (REQUIRES): Reuse the packageList code and dump the one-off
652 * install.cc: Adjust -> to ., and use the new accessor functions for
653 packageversion throughout.
654 * package_db.cc: Adjust -> to ., and use the new accessor functions for
655 packageversion throughout.
656 (packagedb::packagedb): Use the new cygpackage factory.
657 (packagedb::flush): Leverage String to remove buffer overflow chance in
659 (packagedb::findBinary): Find a binary meta package that has a version
660 matching a given specification.
661 (packagedb::findSource): Ditto, but for source.
662 * package_db.h (packagedb::findBinary): Declare.
663 (packagedb::findSource): Ditto.
664 * package_meta.cc: Adjust packageversion accessors to the new
665 reference calls. (i.e. -> to .) throughout.
666 Include the package_meta header first to ensure it parses standalone.
667 Use the STL algorithms.
668 (packagemeta::packagemeta): Create a copy constructor to allowing
669 cloning binary package metadata to source package metadata.
670 (packagemeta::~packagemeta): Use the STL coleltion code rather than
671 custom collection code.
672 (packagemeta::add_version): Ditto.
673 (packagemeta::set_installed): Ditto.
674 (packagemeta::SDesc): Ditto.
675 (hasSDesc): Helper function for find_if.
676 (checkForInstalled): Ditto.
677 (checkForUpgradeable): Ditto.
678 (checkForSatisfiable): Ditto.
679 (packagemeta::action_caption): Update for split out source packages.
680 (packagemeta::set_action): Ditto.
681 (packagemeta::set_requirements): Support multi-valued dependency
682 lists - a|b & c|d - with versioned package specifications.
683 (packagemeta::accessible): Helper member to improve abstraction.
684 (packagemeta::sourceAccessible): Ditto.
685 * package_meta.h: Adjust packageversion accessors to the new
686 reference calls. (i.e. "->" to "." and"*" to "" ) throughout.
687 (packagemeta::packagemeta): Declare copy constructor.
688 Remove self initialising members.
689 (packagemeta::set_action): Update parameters for new packageversion.
690 (packagemeta::trustp): Ditto.
691 (packagemeta::versions): Becomes an STL set.
692 * package_source.h (packagesource::Cached): Const correctness change.
693 * package_version.cc: Rewrite the packageversion interface to remove
694 the cygpackage nonvirtual members, and provide a copy by value,
695 pointer semantics reference counting wrapper class to ease use and
696 comparison of packageversions.
697 Change existing packageversion class to _packageversion throughout.
698 (_defaultversion): A trivial concrete class to prevent specialcasing
699 the default constructor for packageversion;
700 (packageversion::packageversion): Implement.
701 (packageversion::~packageversion): Ditto.
702 (packageversion::operator=): Ditto.
703 (packageversion::operator !): Ditto.
704 (packageversion::operator bool): Ditto.
705 (packageversion::operator ==): Ditto.
706 (packageversion::operator !=): Ditto.
707 (packageversion::operator <): Ditto.
708 (packageversion::Name): Ditto.
709 (packageversion::Canonical_version): Ditto.
710 (packageversion::setCanonicalVersion): Ditto.
711 (packageversion::getfirstfile): Ditto.
712 (packageversion::getnextfile): Ditto.
713 (packageversion::SDesc): Ditto.
714 (packageversion::set_sdesc): Ditto.
715 (packageversion::LDesc): Ditto.
716 (packageversion::set_ldesc): Ditto.
717 (packageversion::sourcePackage): Ditto.
718 (packageversion::sourcePackageSpecification): Ditto.
719 (packageversion::setSourcePackageSpecification): Ditto.
720 (packageversion::depends): Ditto.
721 (packageversion::predepends): Ditto.
722 (packageversion::recommends): Ditto.
723 (packageversion::suggests): Ditto.
724 (packageversion::replaces): Ditto.
725 (packageversion::conflicts): Ditto.
726 (packageversion::provides): Ditto.
727 (packageversion::picked): Ditto.
728 (packageversion::pick): Ditto.
729 (packageversion::changeRequested): Ditto.
730 (packageversion::uninstall): Ditto.
731 (packageversion::source): Ditto.
732 (packageversion::accessible): Ditto.
733 (_packageversion::sourcePackage): Ditto.
734 (_packageversion::accessible): Ditto.
735 (_packageversion::changeRequested): Ditto.
736 * package_version.h: Rewrite the packageversion interface to remove
737 the cygpackage nonvirtual members, and provide a copy by value,
738 pointer semantics reference counting wrapper class to ease use and
739 comparison of packageversions.
740 Change existing packageversion class to _packageversion throughout.
741 (Dependency): Remove.
742 (packageversion): New wrapper class.
743 (_packageversion): Renamed from packageversion.
744 (_packageversion::setCanonicalVersion): New method.
745 (_packageversion::sourcePackage): Ditto.
746 (_packageversion::sourcePackageSpecification): Ditto.
747 (_packageversion::setSourcePackageSpecification): Ditto.
748 (_packageversion::changeRequested): Ditto.
749 (_packageversion::bin): Rename to source.
750 (_packageversion::src): Remove.
751 (_packageversion::accessible): New method.
752 (_packageversion::references): Allow reference counting.
753 (_packageversion::sourceVersion): Cached the best-match source
756 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
758 * compress_bz.h (compress_bz::position): Track how much has been read.
759 * compress_bz.cc (compress_bz::compress_bz): And initialise it.
760 (compress_bz::read): Track amount read by the client.
761 (compress_bz::tell): And report it when asked.
763 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
765 * Makefile.am (snapshot): Automate snapshot creation some more.
767 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
769 * msg.cc (msg): Use vsnprintf to avoid buffer overflows.
771 * ini.cc (fprintf): Ditto.
772 * log.cc (log): Ditto.
773 * package_db.cc (packagedb::sourcePackages): Split out source packages
774 from binary packages.
775 * package_db.h: Ditto.
777 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
779 * PackageSpecification.h: New file. Abstracts the ability to refer
780 to another package, by name, or name and version.
781 * PackageSpecification.cc: Ditto.
782 * IniDBBuilder.cc (IniDBBuilder::buildPackageInstall): Simplify.
783 (IniDBBuilder::buildPackageSource): Ditto.
784 (IniDBBuilder::buildBeginDepends): New method for versioned
786 (IniDBBuilder::buildBeginPreDepends): Likewise, for dependencies to be
787 satisfied before pre-install.
788 (IniDBBuilder::buildPriority): New method, for getting the package
790 (IniDBBuilder::buildInstalledSize): How much disk space does it need?
791 (IniDBBuilder::buildMaintainer): Who maintains the package?
792 (IniDBBuilder::buildArchitecture): What platform is it for?
793 (IniDBBuilder::buildInstallSize): How big is the binary download?
794 (IniDBBuilder::buildInstallMD5): Whats the MD5 on the binary?
795 (IniDBBuilder::buildSourceMD5): Whats the MD5 on the source package?
796 (IniDBBuilder::buildBeginRecommends): What other packages are
797 recommended with this one?
798 (IniDBBuilder::buildBeginSuggests): And suggested?
799 (IniDBBuilder::buildBeginReplaces): What packages does this replace?
800 (IniDBBuilder::buildBeginConflicts): And collide with?
801 (IniDBBuilder::buildBeginProvides): What virtual packages (or obsolete
802 package names) does this provide?
803 (IniDBBuilder::buildDescription): Grab a multi line description one
805 (IniDBBuilder::buildSourceName): What source package should be used to
806 install the source for this binary package?
807 (IniDBBuilder::buildSourceNameVersion): Is a specific version needed?
808 (IniDBBuilder::buildPackageListAndNode): Add another AND clause to a
809 list of package specifications.
810 (IniDBBuilder::buildPackageListOrNode): Add another OR clause.
811 (IniDBBuilder::buildPackageListOperator): Add a versioning operator
812 to the current specification.
813 (IniDBBuilder::buildPackageListOperatorVersion): What version does the
815 * IniDBBuilder.h: Declare all the IniDBBuilder.cc changes.
816 * IniDBBuilderPackage.cc: As for IniDBBuilder.cc.
817 (IniDBBuilderPackage::IniDBBuilderPackage): Iniitialize new members.
818 (IniDBBuilderPackage::process_src): Streamline and split out
820 (IniDBBuilderPackage::setSourceSize): From process_src.
821 * IniDBBuilderPackage.h: Declare the IniDBBuilderPackage.cc changes.
822 (IniDBBuilderPackage::currentSpec): Track the in-progress specifiation.
823 (IniDBBuilderPackage::currentOrList): Track the current Or list.
824 (IniDBBuilderPackage::currentAndList): Track the current And list.
825 * IniParseFeedback.cc (IniParseFeedback::progress): Provide completion
827 (IniParseFeedback::iniName): Tell what ini filename we are currently
829 * IniParseFeedback.h: Declare IniParseFeedback.cc changes.
830 * IniParseFindVisitor.cc (IniParseFindVisitor::IniParseFindVisitor):
831 Make the feedback object non-const to allow mutating methods which are
832 needed when the object has state.
833 (IniParseFindVisitor::visitFile): Tell the caller the name of each
835 Initialise the parser with the feedback object to allow it to tell of
837 * IniParseFindVisitor.h: Declare IniParseFindVisitor.cc changes.
838 * Makefile.am (inilinst_SOURCES): Add more requisite classes.
839 (setup_SOURCES): Add the new PackageSpecification sources.
840 * ScanFindVisitor.cc (ScanFindVisitor::visitFile): Use the new
841 builder syntax to setup binary package details.
842 * choose.cc: Use the LogSingleton calls throughout.
843 * configure.in: Create the INILINT substitution correctly for recent
844 autotool configurations.
845 * cygpackage.cc (cygpackage::getfirstfile): Return an empty String
846 rather than a string built from an int. Thanks to Pavel Tsekov for
848 (cygpackage::getnextfile): Ditto.
849 * download.cc: Use LogSIngletion calls throughout.
850 (validateCachedPackage): A refactoring of the
851 check_for_cached code to eliminate duplciation.
852 (check_for_cached): Use validateCachedPackage to check packages.
853 * ini.cc (GuiParseFeedback): Provide gui feedback on ini name and
855 (do_remote_ini): Ditto.
856 * ini.h (ini_init): Pass a IniParseFeedback to the parser, to allow
858 * inilex.l: Identify new symbols - operators, and multi line plain text.
860 * inilintmain.cc (show_help): Provide basic infomation on inilint.
861 * iniparse.y: Adjust for the new builder syntax, and process debian
863 * io_stream_file.cc: Always include mkdir.h.
864 * list.h: Factor index location into a private routine.
865 (list::findindex): Implement this.
866 * mkdir.cc (mkdir_p): Make the use of WIN32 code conditional on mingw
867 builds. NB: This breaks cygwin build functionality still.
868 * package_meta.cc: Use the LogSingleton calls throughout.
869 (packagemeta::set_requirements): Adjust for object changes in
871 * package_meta.h (packagemeta::packagemeta): Initialise new members.
872 (packagemeta::architecture): What platform does this package run on?
873 This may need to move in the future to a per packagefile object.
874 (packagemeta::priority): What priority does this package have?
875 * package_source.h (packagesource::packagesource): Initialise new
877 (packagesource::installedSize): How much space does the package need?
878 (packagesource::setInstalledSize): Tell the amount.
879 (packagesource::_installedSize): And store it.
880 * package_version.cc (packageversion::sourcePackage): return the
882 (packageversion::setSourcePackage): And set it.
883 * package_version.h: Declare the package_version.cc changes.
884 (packageversion::depends): New package specification AND list.
885 (packageversion::predepends): Ditto.
886 (packageversion::recommends): Ditto.
887 (packageversion::suggests): Ditto.
888 (packageversion::replaces): Ditto.
889 (packageversion::conflicts): Ditto.
890 (packageversion::provides): Ditto.
891 (packageversion::sourcePackage): What source package is needed?
892 * threebar.cc (ThreeBarProgressPage::SetText4): Set the label beside
894 * threebar.h: Declare the threebar.cc change.
896 2002-06-27 John Marshall <johnm@falch.net>
898 * res.rc (SETUPINI_MISSING): Make trailing spaces visible.
899 * site.cc (SitePage::OnMessageCmd): Ditto
901 2002-06-15 Robert Collins <rbtcollins@hotmail.com>
903 * nio-ie5.cc (NetIO_IE5::NetIO_IE): Allow cached data.
905 2002-06-15 Robert Collins <rbtcollins@hotmail.com>
907 * package_meta.cc (packagemeta::set_action): When installing packages
908 with no binaries, choose the source package.
910 2002-06-10 Robert Collins <rbtcollins@hotmail.com>
912 * IniParseFindVisitor (IniParseFindVisitor::visitFile): Apply Max
913 Bowshers fix for the crash with a root level setup.ini.
914 * README: Update todos.
916 2002-05-26 Ralf Habacker <ralf.habacker@freenet.de>
918 * archive_tar.cc (archive_tar::next_file_name()): fixed broken
919 GNU long name extension support.
921 2002-05-27 Robert Collins <rbtcollins@hotmail.com>
923 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Don't
924 unescape 0 length strings.
926 2002-05-20 Robert Collins <rbtcollins@hotmail.com>
928 * package_meta.cc (packagemeta::set_action): Don't allow reinstall
929 when local with no cached file, and install the default source if the
930 default version has no binary.
932 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
934 * IniDBBuilderPackage.cc (IniDBBuilderPackage::IniDBBuilderPackage): New
936 (IniDBBuilderPackage::buildVersion): Provide a warning when a newer
937 setup version created the ini file.
938 * IniDBBuilderPackage.h (IniDBBuilderPackage::IniDBBuilderPackage): New
940 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Use the new
942 * IniParseFindVisitor.h (IniParseFindVisitor::IniParseFindVisitor):
943 Require a feedback strategy.
944 * Makefile.am (setup_SOURCES): Add IniParseFeedback sources.
945 * Makefile.in: Regenerate.
947 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
949 * io_stream_file.cc (io_stream_file::remove): Use the SetFileAttributes
950 trick to delete read only files.
951 * io_stream_cygfile.cc (io_stream_cygfile::remove): Use file:// to
953 * Makefile.am (release): Tweak to be more helpful.
954 * Makefile.in: Regenerate.
956 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
958 * Makefile.am (release): Tweak to be more helpful.
959 * Makefile.in: Regenerate.
961 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
963 * Makefile.am (release): Tweak to be more helpful.
964 * Makefile.in: Regenerate.
966 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
968 * choose.cc (scan_downloaded_files): When a non-installed version
969 has neither bin nor src cached files for local installs,
970 remove the version from availability.
972 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
974 * ini.cc (do_remote_ini): Save uncompressed ini's correctly.
976 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
978 * rsync: New support library, contains librsync. This is not (yet)
980 * configure.in: --with-rsync to enable rsync support. (Not complete).
981 * Makefile.am: Enable building with rsync.
982 * Makefile.in: Regenerate.
984 * IniDBBuilder.cc (IniDBBuilder::buildPackageInstall): Pass the md5 as
986 (IniDBBuilder::buildPackageSource): Ditto.
987 * IniDBBuilder.h: Ditto.
988 * IniDBBuilderPackage.cc: Ditto.
989 * IniDBBuilderPackage.h: Ditto.
990 * FindVisitor.cc: New file.
991 * FindVisitor.h: New file, interface for visiting a file system
993 * IniParseFindVisitor.cc: New file.
994 * IniParseFindVisitor.h: New file, concrete FindVisitor that parses
996 * README: Update TODO's.
997 * String++.cc (String::String): New constructor for <string> inter-
999 (String::substr): New method.
1000 * String++.h: Ditto.
1001 * choose.cc (scan2): Remove.
1002 (scan_downloaded_files): Simplify.
1003 * dialog.h: Include parsing pre-requirements.
1004 * download.cc (check_for_cached): Fullname was used incorrectly - fix.
1005 * filemanip.cc (parse_filename): -src packages where incorrectly parsed.
1006 * find.cc: Rewrite. Now uses a Visitor pattern and is re-entrant.
1008 * fromcwd.cc: Remove unneeded includes.
1009 (is_test_version): Remove.
1010 (found_file): Remove.
1011 (SetupFindVisitor): Trivial visitor to detect setup.ini's.
1012 (found_ini): Remove.
1013 (do_fromcwd): Remove commented code that has be replaced elsewhere.
1014 * ini.cc (local_ini): Remove.
1015 (findBuilder): Remove.
1016 (find_routine): Remove.
1017 (do_local_ini): Use new IniParseFindVisitor.
1018 * iniparse.y: Typecase MD5 arrays, as we know they are allocated as
1020 * postinstall.cc: Remove non-core includes.
1021 (run_script_in_postinstall): Remove.
1022 (RunFindVisitor): Trivial Visitor, runs each found script.
1023 (do_postinstall): Use new find syntax.
1025 2002-05-14 Christopher Faylor <cgf@redhat.com>
1027 * ini.cc (find_routine): Don't clear buffer it it's NULL.
1029 2002-05-14 Christopher Faylor <cgf@redhat.com>
1031 * filemanip.h (trail): Declare.
1032 * filemanip.cc (trail): New function.
1033 (find_tar_ext): Use trail() instead of strstr().
1034 * fromcwd.cc (check_ini): Ditto.
1035 * ini.cc (find_routine): Ditto. Don't tack local_dir to path since it
1036 should now be fully qualified. Set ini_filename. Reset error_buf and
1037 error_count for any subsequent ini file parsing.
1038 (ini_filename): New static variable for parse error reporting.
1039 (yyerror): Use full path of setup.ini in error message. Subtract one
1040 from line number if at bol.
1041 * find.cc (found_part): Eliminate.
1042 (find_sub): Call for_each with full path found rather than just file
1044 (find): Don't calculate found_part.
1045 * inilex.l (ini_init): Flush input buffer and reset line number.
1046 (yybol): New function. Exports YY_AT_BOL.
1047 * iniparse.y: Increase stack depth to allow more tokens to be processed.
1048 (yyparse): Remove newline from error condition to allow subsequent
1049 per-line error processing to proceed normally.
1051 2002-05-14 Christopher Faylor <cgf@redhat.com>
1053 * find.cc (find_sub): Be more defensive in preserving trailing parts of
1054 components when doing recursive directory searches or calling user
1055 supplied for_each().
1056 * ini.cc (find_routine): Don't assume that any path name with
1057 "setup.ini" in it is actually a setup.ini file. Only honor trailing
1058 components. Copy path argument to temporary storage when unescaping
1059 to prevent nuking of argument.
1061 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
1063 * CONTRIBUTORS: New file.
1065 2002-04-02 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1067 * choose.cc: Run indent.
1068 (nextbutton): Remove static variable.
1069 (default_trust): Remove use of nextbutton.
1070 (set_view_mode): Ditto.
1071 (create_listview): Add IDC_CHOOSE_PREV and IDC_CHOOSE_NEXT to ta[] so
1072 rbset() sets the prev/next/curr radio buttons properly.
1073 (dialog_cmd): Delete function.
1074 (dialog_proc): Delete function. Move WM_INITDIALOG functionality to
1075 ChooserPage::OnInit.
1076 (do_choose): Delete function. Move pre-DialogBox() code to
1077 ChooserPage::OnInit(), post-DialogBox() code to ChooserPage::OnNext.
1078 (WM_APP_START_CHOOSE): Remove define.
1079 (WM_APP_CHOOSE_IS_FINISHED): Remove define.
1080 (do_choose_thread): Delete function.
1081 (ChooserPage::OnActivate): Delete method.
1082 (ChooserPage::OnMessageApp): Delete method.
1083 (ChooserPage::OnInit): New method.
1084 (ChooserPage::OnNext): New method.
1085 (ChooserPage::OnBack): New method.
1086 (ChooserPage::OnMessageCmd): New method.
1087 * choose.h: Run indent.
1088 (ChooserPage::OnMessageApp): Delete declaration.
1089 (ChooserPage::OnActivate): Ditto.
1090 (ChooserPage::OnMessageCmd): New declaration.
1091 (ChooserPage::OnInit): Ditto.
1092 (ChooserPage::OnNext): Ditto.
1093 (ChooserPage::OnBack): Ditto.
1094 * desktop.cc (DesktopSetupPage::OnBack): Replace use of IDD_CHOOSER
1096 * fromcwd.cc (do_fromcwd): Replace use of IDD_CHOOSER with IDD_CHOOSE.
1097 * ini.cc (do_ini_thread): Replace use of IDD_CHOOSER with IDD_CHOOSE.
1098 * res.rc (IDD_CHOOSE): Remove dialog template.
1099 (IDD_CHOOSER): Alter dialog template to fit wizard size and format.
1101 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
1103 * LogFile.cc (endLog): Work around an apparent libg++-3 bug causing
1104 corrupt log file entries.
1105 * geturl.cc: Convert to the new LogSingleton logging.
1107 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
1109 * ini.cc (do_remote_ini): Use setup.bz2 if it exists in preference to
1112 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
1114 * geturl.h: Declare getUrlToStream.
1115 * geturl.cc (getUrlToStream): New function.
1116 (get_url_to_membuf): Refactor to use getUrlToStream.
1118 2002-05-11 Robert Collins <rbtcollins@hotmail.com>
1120 * Makefile.am: Add a release target to automate some of the routine
1122 * Makefile.in: Regenerate.
1124 2002-05-11 Robert Collins <rbtcollins@hotmail.com>
1126 * choose.cc (scan_downloaded_files): On local installs remove all
1127 mirror sites if no cached copy of a package is found.
1129 2002-05-10 Robert Collins <rbtcollins@hotmail.com>
1131 * Makefile.in: Regenerate.
1132 * iniparse.y: Use left recursion, not right in the lines rule to
1133 avoid stack overflows.
1134 * README: Update TODO's.
1135 * io_stream_file.cc: Native builds need to include sys/stat.h
1137 2002-05-06 John Marshall <jmarshall@acm.org>
1139 * site.cc (SitePage::OnMessageCmd): recalculate navigation
1140 button activation when "Add" is pressed.
1141 (SitePage::CheckControlsAndDisableAccordingly): tweak comment.
1143 2002-05-07 Robert Collins <rbtcollins@hotmail.com>
1145 * Makefile.am (inlint_SOURCES): Add conditional objects to inilint
1146 depending on platform.
1147 Add file:// support.
1148 * configure.in: Set conditional MINGWTARGET if compiling against mingw
1150 * Makefile.in: Regenerate.
1152 * io_stream_file.cc: Only use win32 calls when building for mingw.
1154 2002-05-05 Robert Collins <rbtcollins@hotmail.com>
1156 * Makefile.am (noinst_PROGRAMS): Make inilint configurable.
1157 * configure.in: Ditto.
1158 Fix incorrect header checking syntax.
1159 * aclocal.m4: Regenerate.
1160 * configure: Regenerate.
1161 * Makefile.in: Regenerate.
1162 * io_stream.cc: Remove platform specific and provider specific code.
1163 (io_stream::registerProvider): New method, registers a Url provider with
1165 Make all methods consistently throw invalid_argument exceptions when
1166 a provider that is requested is not present.
1167 (findProvider): New private function, finds a provider.
1168 * io_stream.h: Declare io_stream::registerProvider.
1169 * io_stream_cygfile.cc: Create a Provider class to register with
1171 * io_stream_file.cc: Ditto.
1172 * archive.cc: Remove unneeded includes.
1173 * archive_tar.cc: Remove unneeded includes.
1174 * archive_tar.h: Add required include.
1175 * archive_tar_file.cc: Remove unneded includes.
1176 * choose.cc: Remove unneeded includes:
1178 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
1180 * io_stream.cc: Use the new log interface thruout.
1182 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
1184 * log.cc (log): Reimplement via LogSingleton.
1186 (exit_setup): Remove.
1187 * log.h (log_save): Remove.
1188 (exit_setup): Remove.
1189 * LogSingleton.cc: New file.
1190 * LogSingleton.h: New file.
1191 * LogFile.cc: New file.
1192 * LogFile.h: New file.
1193 * Makefile.am (inilint_SOURCES): Add the new log interface.
1194 (setup_SOURCES): Add the new log interface and the concrete File
1196 * Makefile.in: Regenerate.
1197 * archive.cc: Use the new log interface thruout.
1198 * archive_tar.cc: Ditto.
1200 * dialog.cc (fatal): Use the new log interface.
1201 * ini.cc (do_ini_thread): Use the log interface to exit.
1202 * isntall.cc (do_install_thread): Ditto.
1203 * netio.cc (auth_cmd): Ditto.
1204 * msg.cc (fatal): Ditto.
1205 * localdir.cc (save_local_dir): Save to different files depending on
1206 the mode, and if a root dir exists.
1208 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
1210 * IniDBBuilder.cc: New file.
1211 * IniDBBuilder.h: New file.
1212 * IniDBBuilderPackage.cc: New file.
1213 * IniDBBuilderPackage.h: New file.
1214 * PackageTrust.h: New file.
1215 * IniState.h: Remove, wasn't thought out well enough.
1216 * Makefile.am (inilint_SOURCES): Add more requirements.
1217 (setup_SOURCES): Add new Builder base and concrete classes.
1218 * Makefile.in: Regenerate.
1219 * String++.cc (String::String): Implement int contructor.
1220 * String++.h (String): Declare int constructor.
1221 * archive_tar.cc (archive_tar::next_file_name): Return String() when
1223 * archive_tar.h (archive_tar_file): Remove get_next_filename method,
1225 * ini.cc: Replace IniState wuth IniDBBuilderPacakge.
1226 (find_routine): Use new IniDBBuilder to configure the parser.
1227 (do_local_ini): Ditto.
1228 (do_remote_ini): Ditto.
1229 * ini.h: Use IniDBBuilder to initialise parsing.
1230 * inilex.l (MD5): Parse the MD5 string correctly, we had the nibbles
1232 (ini_init): Use an IniDBBuilder rather than static variables.
1233 * iniparse.y: Hand off all the object creation to a builder, rather
1234 than hardcoding the behaviour. This allows run-time configured
1236 * io_stream_cygfile.h (io_stream_cygfile): Remove get_next_filename
1237 method, it's not needed.
1238 * io_stream_file.h (io_stream_file): Ditto.
1239 * mount.cc (cygpath): Return String() for missing mounts.
1240 * package_meta.cc (packagemeta::SDesc): Return String() for blank
1242 * package_meta.h (trusts): Remove - replaced by PackageTrust.h.
1243 (packagemeta::packagemeta): Fix incorrect syntax in String constructor
1245 * cygpackage.cc (cygpackage::cygpackage): Fix incorrect syntax in
1246 String constructor usage.
1247 * site.h (site_list_type): Ditto.
1249 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
1251 * String++.h: Declare a << operator that accepts String objects.
1252 * String++.cc: We need iostream for..
1253 (operator <<): this. Provide a << operator that accepts String objects.
1254 * ini.cc (yyerror): Remove the "C" classifier - it's not needed.
1255 Change from vargs to a String parameter.
1256 * inilintmail.cc: Remove the gui related headers.
1257 (yyerror): Implement this for parsing.
1258 * iniparse.y: Use the new yyerror syntax.
1260 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
1262 * Makefile.am: Add IniState.h.
1263 * Makefile.in: Regenerate.
1264 * IniState.h: New file.
1265 * choose.cc: Don't include ini.h - it's not needed.
1266 * configure: Regenerate.
1267 * desktop.cc: Don't include ini.h - it's not needed.
1268 * download.cc: Ditto.
1269 * fromcwd.cc: Ditto.
1270 * ini.cc: Use IniState.h to track each parsing calling.
1271 (find_routine): Ditto.
1272 (do_remote_ini): Ditto.
1273 (do_ini_thread): Ditto.
1274 * ini.h (ini_init): Adjust parameters to include state object.
1275 * inilex.l: Declare parser state variable.
1276 (ini_init): Adjust parameters to include state object.
1277 * iniparse.y: Remove obsolete setup_timestamp and setup_version
1279 (setup_header): Use new state variable to track time and version.
1280 (add_correct_version): Ditto.
1281 * install.cc: Don't include ini.h - it's not needed.
1283 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
1285 * nio-files.cc (NetIO): Use io_stream syntax for get_file_size.
1286 * io_stream_file.cc: Don't include filemanip.h.
1287 (io_stream_file::get_size): Implement here to remove filemanip
1289 * io_stream_cygfile.cc: Don't include filemanip.h.
1290 (io_stream_cygfile::get_size): Implement here to remove filemanip
1292 Implement a stat based version for when win32 is not available.
1293 * filemanip.h (get_file_size): Return size_t - it's more appropriate.
1294 * filemanip.cc: Don't include win32.h - be platform independent.
1295 Include strings.h and io_stream.h as part of that.
1296 (get_file_size): Leverage io_streams and remove win32 implementation.
1297 * download.cc (check_for_cached): Use io_stream syntax for
1299 (download_one): Ditto.
1301 2002-05-02 Robert Collins <rbtcollins@hotmail.com>
1303 * configure.in: Correct a typo in last change.
1304 * configure: Regenerate.
1305 * Makefile.in: Regenerate.
1307 2002-05-02 Robert Collins <rbtcollins@hotmail.com>
1309 * configure.in: Check for string.h and string.
1310 * configure: Regenerate.
1311 * Makefile.in: Regenerate.
1313 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
1315 * res.rc (IDD_SPLASH): Remove white box.
1317 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
1319 Oops! forgot to list these in the last checkin.
1320 * inilintmain.cc: New file.
1321 * md5.h: New file - imported md5 source, BSD style licence.
1322 * md5.cc: New file - imported md5 source, BSD style licence.
1323 * Exception.cc: New file.
1324 * Exception.h: New file.
1325 * MD5++.cc: New file.
1326 * MD5++.h: New file.
1328 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
1330 * Makefile.am (AM_CFLAGS): Remove -mwindows, it's a linker flag.
1331 Remove -fno-rtti, we need it for exceptions.
1332 (AM_CXXFLAGS): Ditto.
1333 (WARNONLY_CFLAGS): Ditto.
1334 (EXTRA_PROGRAMS): Add with initial linter sources - not functional yet.
1335 (setup_LDFLAGS): Add and set to -mwindows.
1336 (setup_SOURCES): Add new sources.
1337 * Makefile.in: Regenerate.
1338 * README: Update TODO.
1339 * choose.cc (scan_downloaded_files): Use ini information if it's
1341 * configure: Regenerate.
1342 * download.cc (check_for_cached): Make reusable from elsewhere.
1343 Throw exceptions on errors (as opposed to failures).
1344 Check MD5 sum when it's known.
1345 (download_one): Never force a download.
1346 Handle corrupt package exceptions.
1347 * ini.cc (find_routine): Reverse escape the URL to correctly identify
1349 * inilex.l (MD5): Provide a parsing rule (note: lowercase is required).
1350 * iniparse.y: Allow calculation of MD5 sums, and allow src only
1352 (process_src): New helper function.
1353 * isntall.cc (install_one_source): Check MD5 sums when possible.
1354 Throw exceptions on errors.
1355 (do_install_thread): Handle exceptions for installation calls.
1356 * package_source.h: Store MD5 information.
1357 * propsheet.cc (PropSheet::Create): Add a useful comment.
1358 * res.rc (IDS_INSTALL_ERROR): Define.
1359 (IDS_CORRUPT_PACKAGE): Define.
1360 * resource.h (IDS_INSTALL_ERROR): Define.
1361 (IDS_CORRUPT_PACKAGE): Define.
1362 * rfc1738.cc (rfc1738_unescape_part): Implement.
1363 * rfc1738.h (rfc1738_unescape_part): Declare.
1365 2002-04-29 Robert Collins <rbtcollins@hotmail.com>
1367 * Makefile.am: Remove dependecy rules that automake emits.
1368 Correct badly copied dependency info for manually compiled files.
1369 (setup_SOURCES): Add all used headers.
1370 (EXTRA_DIST): Include non compilate but required sources.
1371 (setup_LDADD): Remove mingw32, it is autodetected.
1372 * Makefile.in: Regenerate.
1373 * String++.h: sys/types is a system header.
1374 * choose.cc (do_choose_thread): Make into a Win32 thread routine.
1376 (ChooserPage::OnMessageApp): Use Win32 threads. (_beginthread is not
1378 * configure: Regenerate.
1379 * configure.in: Check for mingw32/cygwin specific headers and libraries.
1380 * cygpackage.h: Include the win32.h header to get correct macro
1381 definitions in all situations.
1382 * download.cc (do_download_reflector): Make into a Win32 thread routine.
1384 (do_download): Use Win32 threads.
1386 * install.cc: Ditto.
1387 * (WinMain): Adjust to build valid command line using application
1388 under both mingw32 and cygwin.
1389 * mount.cc (set)cygdrive_flags): Create new system flags if the
1390 user requests system and the value does not exist.
1391 * nio-http.cc: Define a _strnicmp for cygwin.
1392 * package_db.cc: Include <errno.h> if it exists.
1393 * site.cc (do_download_site_info_thread): Make into a Win32 thread
1396 (do_download_site-Info): Use Win32 threads.
1397 * state.cc: Explicity declare variables to avoid header conflicts
1398 caused by '#define extern" on cygwin.
1399 * win32.h: Include <alloca.h> if it exists.
1400 (_MAX_PATH): Define as MAX_PATH when not defined by windows.h.
1401 (_access): Define as access if not defined by windows.h.
1403 2002-04-27 Robert Collins <rbtcollins@hotmail.com>
1405 * compress_gz.cc (compress_gz::error): EOF is not an error condition.
1407 2002-04-27 Robert Collins <rbtcollins@hotmail.com>
1409 * Makefile.am: Add libgetopt++ to the subdirs list.
1410 Search the libgetopt++ header directory.
1411 Link against libgetopt++.la.
1412 (setup_SOURCES): Remove GetOption.cc and getopt.c and Option.cc.
1413 (setup_LDADD): Explicitly include res.o.
1414 * Makefile.in: Regenerate.
1415 * aclocal.m4: Regenerate.
1416 * bootstrap.sh: Call libtoolize.
1417 * configure: Regenerate.
1418 * configure.in: Add libtool support and configure libgetopt++.
1419 * desktop.cc (NoShortcutsOption): Turn into a BoolOption.
1420 (DesktopSetupPage::OnInit): Use the simpler syntax.
1421 * desktop.h: Remove dependency on Option.h, and remove NoShortcustOption
1423 * main.cc: Include getopt++/GetOption.h.
1424 (main): Use simpler syntax.
1428 * GetOption.h: Remove.
1429 * GetOption.cc: Remove.
1431 * Option.cc: Remove.
1433 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
1435 * Makefile.am: Add zlib and bz2lib to SUBDIRS.
1437 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
1439 * aclocal.m4: New file, cached macros.
1440 * bootstrap.sh: New file, calls required autotools in appropriate
1442 * Makefile.am: New file, input Makefile for automake.
1443 * Makefile,in: Now a generated file - regenerate.
1444 * configure: Regenerate.
1445 * configure.in: Add automake support.
1446 * inilex.l: Change VERSION to PACKAGEVERSION to avoid a collision with
1447 automake's VERSION define.
1448 * iniparse.y: Ditto.
1450 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
1452 * cdefs.h: New file, imported to allow getopt.c to build without
1454 * getopt.h: New file, imported to allow building without cygwin headers.
1456 * bz2lib: New directory, contains copy of bz2lib.
1457 * cfgaux: New directory, contains autotool helper scripts.
1458 * Makefile,in: Adjust library and target definitions for building
1459 outside the sourceware tree.
1460 * compress_bz.h: Use new bz2lib header location.
1461 * mount.cc: Import key defines and enums to be independent of cygwin
1463 * configure.in: Update to autoconf 2.53, and to be sourceware
1465 * configure: Regenerate.
1467 2002-04-12 Robert Collins <rbtcollins@hotmail.com>
1469 * mklink2.cc (make_link_2): Tweak to work with current w32api
1472 2002-04-10 Pavel Tsekov <ptsekov@gmx.net>
1474 * version.cc (canonicalize_version): Fix a call delete[]
1475 to delete the allocated address.
1477 2002-03-29 Robert Collins <rbtcollins@hotmail.com>
1479 * PickView.cc (PickView::set_headers): Set last_col correctly. Thanks
1480 to Ton van Overbeek for locating the bug area.
1482 2003-03-27 Robert Collins <rbtcollins@hotmail.com>
1484 * PickView.cc (PickView::insert_pkg): Be more generic with
1486 (PickView::insert_category): Ditto.
1487 (PickView::~PickView): Create.
1488 * PickView.h (PickView::~PickView): Declare.
1490 2003-03-27 Robert Collins <rbtcollins@hotmail.com>
1492 * Makefile.in (OBJS): Add new commandline objects.
1493 * desktop.cc (NoShortCutsOption): New option code.
1494 (DesktopSetupPage::OnInit): Check whether to skip shortcuts.
1495 * desktop.h (NoShortCutsOption): New concrete command line option class.
1496 * main.cc (WinMain): Process command line options.
1497 * GetOption.h: New file, singleton command line class.
1498 * GetOption.cc: New file, implementation of the above.
1499 * Option.h : New file, abstract option for GetOption.
1500 * Option.cc: New file, implement constructor and destructor.
1502 2002-03-26 Pavel Tsekov <ptsekov@gmx.net>
1504 * mkdir.cc (mkdir_p): Stop processing if the path is exhausted.
1506 2002-03-26 Ton van Overbeek <tvoverbe@cistron.nl>
1508 * PickPackageLine.cc (PickPackageline::paint): Adjust clipping rectangle
1509 to textheight, so large fonts work.
1511 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
1513 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Don't translate
1516 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
1518 * io_stream_cygfile.cc (cwd): New static for cwd storage.
1519 (io_stream_cygfile::normalise): New method.
1520 (io_stream_cygfile::io_stream_cygfile): Use it.
1521 (io_stream_cygfile::exists): Ditto.
1522 (io_stream_cygfile::remove): Ditto.
1523 (io_stream_cygfile::mklink): And again.
1524 (cygmkdir_p): Yes, again.
1525 (io_stream_cygfile::move): And once more.
1526 * io_stream_cygfile.h (io_stream_cygfile::normalise): Declare.
1527 (io_stream_cygfile::cwd): Ditto.
1529 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
1531 * package_meta.cc (package_meta::~package_meta): Remove duplicate.
1532 (CategoryPackage::~CategoryPackage): Ditto. (Thanks to Ton van
1533 Overbeek for the report).
1534 * mklink2.cc: Moved from mklink2.c to avoid 'not a prototype error'.
1535 Make g++ compatible.
1536 * mklink2.c: Remove.
1537 * site.cc (site_list_type::init): Delete the correct memory addres.
1538 Thanks to Pavel Tsekov for tracking this down.
1540 2002-03-20 Robert Collins <rbtcollins@hotmail.com>
1542 * win32.h: Only define alloca if it's not already.
1544 2002-03-20 Robert Collins <rbtcollins@hotmail.com>
1546 * package_meta.h (packamgemeta::trustp): Make 'test' choice leave installed
1548 * README: Update with latest requests.
1549 * Various: MTC fixes from setup200202 branch.
1551 2002-03-19 Christopher Faylor <cgf@redhat.com>
1553 * Makefile.in (setup_version.c): Add back magic which allows detection
1554 of setup.exe version number.
1556 2002-03-17 Robert Collins <rbtcollins@hotmail.com>
1558 * * PickPackageLine.cc (PickPackageLine::paint): Fix incorrect clip region
1559 calculation on win9x systems.
1561 2002-03-16 Robert Collins <rbtcollins@hotmail.com>
1563 * install.cc (install_one_source): Write the correct length of a string to the
1564 lst file (Thanks to Pavel Tsekov for reporting the bug).
1566 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
1568 * choose.cc (list_click): Always refresh the entire chooser, as our
1569 package state change mechanism is broken with the new improved list classes.
1571 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
1573 * desktop.cc (make_passwd_group): Check for .lnk suffix on /etc/passwd and
1576 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
1578 * PickPackageLine.cc (PickPackageLine::DrawCheck): New method factored out from
1580 (PickPackageLine::paint): Use DrawCheck to draw the src tick box, and the new
1582 (PickPackageLine::click): Handle the new bin tickbox.
1583 * PickPackageLine.h (PickPackageLine::DrawCheck): Declare this.
1584 * PickView.cc (pkg_headers): Add a Bin? column.
1585 (cat_headers): Ditto.
1586 (PickView::set_headers): Ditto.
1587 (PickView::init_headers): Ditto.
1588 * PickView.h (PickView): Ditto.
1589 * choose.cc (list_click): Use the new name for src_col to set the clip rectangle.
1591 2002-02-24 Michael A Chase <mchase@ix.netcom.com>
1593 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Fix up Robert's
1596 2002-02-24 Michael A Chase <mchase@ix.netcom.com>
1598 * desktop.cc (make_link): Add "file://" prefix to io_stream::mkpath_p()
1600 (make_passwd_group): Ditto.
1601 * localdir.cc (save_local_dir): Ditto.
1602 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Wrap long lines.
1603 Add "cygfile://" prefix to io_stream::open() calls.
1605 2002-02-24 Robert Collins <rbtcollins@hotmail.com>
1607 * log.cc (log_save): Fix creating /var/log.
1608 * packate_meta.cc (standard_dirs): Remove duplicate '/''s.
1610 2002-02-24 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1612 * res.rc (STRINGTABLE): Add IDS_CYGWIN_SETUP and
1613 IDS_CYGWIN_SETUP_WITH_PROGRESS strings.
1614 * resource.h: Add IDS_CYGWIN_SETUP and
1615 IDS_CYGWIN_SETUP_WITH_PROGRESS IDs.
1617 * splash.cc (OnInit): Qualify SetWindowText() call with global scope
1618 operator (::SetWindowText()).
1620 * threebar.cc: Run indent.
1621 (cistring.h): Add include.
1622 (SetText1, SetText2, SetText3): Qualify SetWindowText() call with
1623 global scope operator.
1624 (SetBar2): Add logic for writing percent complete into window title.
1626 * window.h: Run indent.
1627 (SetWindowText): New function.
1628 (String): Add forward declaration.
1629 * window.cc: Run indent.
1630 (String++.h): Add include.
1631 (SetWindowText): New function.
1633 2002-02-24 Robert Collins <rbtcollins@hotmail.com>
1635 * README: Update TODO list.
1636 * install.cc (install_one): Fix src package location.
1637 (do_install_thread): Fix creating directories.
1639 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1641 * choose.cc: Include cygpackage.h for scan2 use.
1642 (set_existence): Ignore setup.ini mirrors when installing from cwd.
1643 (scan2): Process any valid file.
1644 Add cache entries when a file matching a setup.ini listed version is found.
1645 * filemanip.cc (parse_filename): Remove pkgtar - not used anywhere else.
1646 * filemanip.h (filemanip::pkgtar): Remove.
1647 * package_meta.cc (CategoryPackage::~CategoryPackage): New method.
1648 (packagemeta::~packagemeta): Move from package_meta.h
1649 Remove and delete all version and category information.
1650 * package_meta.h (CategoryPackage): Create a destructor.
1651 (packagemeta::~packagemeta): Move to .cc file.
1653 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1655 * install.cc (install_one_source): Make NULL cached package names cause
1658 2002-02-18 Michael A Chase <mchase@ix.netcom.com>
1660 * desktop.cc (make_passwd_group): Don't create passwd-grp.bat
1663 2002-02-18 Michael A Chase <mchase@ix.netcom.com>
1665 * log.cc (log_save): Put "\n" at end of log lines instead of "'".
1667 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1669 * mount.cc (create_mount): Avoid a const char*->char* warning.
1670 (read_mounts): Ditto.
1672 2002-02-05 Jason Tishler <jason@tishler.net>
1674 * download.cc (do_download_thread): Fix off-by-one error.
1676 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1678 * configure.in (CXXFLAGS): Substitute at configure time, not runtime.
1679 * configure (CXXFLAGS): Regenerate.
1680 * Makefile.in (iniparse.o): Build via default rules - no errors now.
1681 * README: TODO list updates.
1683 2002-02-19 Michael A Chase <mchase@ix.netcom.com>
1685 * String++.cc (String::concat):: Remove.
1686 (String::vconcat):: Ditto.
1687 * String++.h (String::concat):: Remove.
1688 (String::vconcat):: Ditto.
1689 * archive_tar.cc: Don't include concat.h.
1690 * archive_tar_file.cc: Don't include concat.h.
1691 * compress_bz.cc (compress_bz::peek): Don't log unneeded messages.
1692 (compress_bz::seek): Ditto.
1693 (compress_bz::~compress_bz): Ditto.
1694 * compress_gz.cc (compress_gz::peek): Ditto.
1695 (compress_gz::error): Ditto.
1696 (compress_gz::~compress_gz): Ditto.
1697 * concat.cc (vconcat): Remove.
1699 * concat.h (vconcat): Remove.
1701 * desktop.cc (desktop_icon): Use new cygpath.
1702 (make_etc_profile): Ditto.
1704 (make_passwd_group): Ditto.
1706 (check_desktop): Remove concat use.
1707 (check_start_menu): Ditto.
1708 * download.cc (download_one): Use new mkpath_p correctly.
1710 * fromcwd.cc: Don't include concat.h.
1711 * geturl.cc (get_url_to_membuf): Use String log() call.
1712 (get_url_to_file): Ditto.
1713 * install.cc: Don't include concat.h.
1714 (uninstall_one): Use LOG_PLAIN.
1715 (replace_one): Ditto.
1716 (install_one_source): Ditto.
1717 (install_one): More char to String conversion.
1718 (do_install_thread): Use new cygpath.
1719 Use new create_mount.
1720 * io_stream.cc (io_stream::move): Use new log().
1721 * io_stream_cygfile (io_stream_cygfile::io_stream_cygfile): Use new cygpath.
1722 (io_stream_cygfile::exists): Ditto.
1723 (io_stream_cygfile::remove): Ditto.
1724 (io_stream_cygfile::mklink): Ditto.
1725 (io_stream_cygfile::write): Ditto.
1726 (cygmkdir_p): Ditto.
1727 (io_stream_cygfile::move): Ditto.
1728 * io_stream_file.cc: Don't include log.h.
1729 (io_stream_file::write): Don't log unneeded messages.
1730 * localdir.cc: Don't include concat.h.
1731 (LocalDirPage::OnNext): Use LOG_PLAIN.
1732 * log.cc: Don't include log.h.
1733 (exit_setup): Use new cygpath.
1734 * log.h (log_level): Add new level LOG_PLAIN.
1735 * main.cc (WinMain): Use new log().
1736 * mount.cc (SLASH_P): New macro from concat.h.
1737 (cygpath): Make String version globally visible.
1738 Remove varargs version.
1740 * msg.cc (mbox): Use LOG_PLAIN.
1741 * net.cc (NetPage::OnNext): Ditto.
1742 * nio-ftp.cc (ftp_line): Use new log().
1743 * nio-http.cc: Don't include log.h.
1744 (retry_get): Use alternative url variable.
1745 * package_db.cc: Don't include concat.h.
1746 (packagedb::flush): Don't use concat.
1747 * package_meta.cc: Don't include concat.h.
1748 (packagemeta::uninstall): Use new cygpath.
1749 * postinstall.cc (do_postinstall): Ditto.
1750 * root.cc (RootPage::OnNext): Use LOG_PLAIN.
1751 * script.cc: Don't include concat.h.
1752 (init_run_script): Use new cygpath.
1753 (run_script): More char * to String conversion.
1754 (try_run_script): Ditto.
1755 * site.cc: Don't include concat.h.
1756 (SitePage::OnNext): Use LOG_PLAIN.
1757 (SitePage::OnMessageCmd): Use new log().
1758 * source.cc (SourcePage::OnDeactivate): Use LOG_PLAIN.
1760 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1762 * Makefile.in (OBJS): Add new object.
1763 * PickCategoryLine.cc (PickCategoryLine::paint): Print a "+" before the name.
1764 * PickCategoryLine.h (PickCategoryLine::bucket): Use the String class.
1765 * PickLine.h (Pickline::key): Change to a String to help plug leaks.
1766 (PickLine::Pickline): Accept a String for the key.
1767 * PickPackageLine.cc (PickPackageLine::paint): Convert all char use to Strings.
1768 * PickPackageLine.h (PickPackageLine::PickPackageLine): The key is automatically
1770 * PickView.cc (PickView::note_width): Convert all char * use to Strings.
1771 (PickView::init_header): Move category length checking out of the inner loop for
1773 Convert all char use to Strings.
1774 * PickView.h: Include the String++ header.
1775 (PickView::note_width): Update the prototype.
1776 * String++.cc: New file, implements a reference counting string class.
1777 * String++.h: New file, declares a reference counting string class.
1778 * archive.cc: Include String++ instead of concat.
1779 (archive::extract_file): Convert char * usage to Strings.
1780 * archive.h: Inlude the String++ header.
1781 (archive::extract_file): Update prototype.
1782 (archive::next_file_name): Convert to a String.
1783 (archive::linktarget): Ditto.
1784 * archive_tar.cc (archive_tar::next_file_name): Convert to String usage.
1785 (archive_tar::linktarget): Ditto.
1786 * arhive_tar.h: Update the copyright.
1787 Explicitly include the relevant headers.
1788 (tar_map_result_type): Convert to String usage.
1789 (archive_tar::next_file_name): Update prototype.
1790 (archive_tar::linktarget): Ditto.
1791 * category.cc (Category::Category): Update initialisers.
1792 Convert to String usage.
1793 (Categorycmp): Update to String usage.
1794 * category.h: Include the String++ header.
1795 (Category::Category): Update to String usage.
1796 (Category::name): Ditto.
1797 (Category::key): Ditto.
1798 * choose.cc: Remove concat.h, it's not needed.
1799 (scan2): Update to String usage.
1801 * cygpackage.cc: Update includes for use of String class.
1802 (cygpackage::cygpackage): Update for String usage.
1803 (cygpackage::set_canonical_version): Ditto.
1804 (cygpackage::destroy): Ditto.
1805 (cygpackage::getfirstfile): Ditto.
1806 (cygpackage::getnextfile): Ditto.
1807 (cygpackage::Name): Ditto.
1808 (cygpackage::Vendor_version): Ditto.
1809 (cygpackage::Package_version): Ditto.
1810 (cygpackage::Canonical_version): Ditto.
1811 (cygpackage::set_sdesc): Ditto.
1812 (cygpackage::set_ldesc): Ditto.
1813 * cygpackage.h: Include String++.h for parsing this file.
1814 (cygpackage::cygpackage): Update for String usage.
1815 (cygpackage::set_canonical_version): Ditto.
1816 (cygpackage::destroy): Ditto.
1817 (cygpackage::getfirstfile): Ditto.
1818 (cygpackage::getnextfile): Ditto.
1819 (cygpackage::Name): Ditto.
1820 (cygpackage::Vendor_version): Ditto.
1821 (cygpackage::Package_version): Ditto.
1822 (cygpackage::Canonical_version): Ditto.
1823 (cygpackage::set_sdesc): Ditto.
1824 (cygpackage::set_ldesc): Ditto.
1825 (cygpackage::name): Ditto.
1826 (cygpackage::vendor): Ditto.
1827 (cygpackage::packagev): Ditto.
1828 (cygpackage::canonical): Ditto.
1829 (cygpackage::fn): Ditto.
1830 (cygpackage::sdesc): Ditto.
1831 (cygpackage::ldesc): Ditto.
1832 * desktop.cc: Update includes for use of String class.
1833 (batname): Update for String usage.
1836 (start)menu): Ditto.
1837 (desktop_icon): Ditto.
1838 (make_cygwin_bat): Ditto.
1839 (make_etc_profile): Ditto.
1841 (make_passwd_group): Ditto.
1843 (check_desktop): Ditto.
1844 (check_startmenu): Ditto.
1845 * dialog.cc (eget): Update for String usage.
1846 (egetString): New function.
1847 (eset): New variant for Strings.
1848 * dialog.h: Include String++.h for parsing this file.
1849 (egetString): New function.
1850 (eset): New variant for Strings.
1851 * diskfull.cc (diskfull): Update for String usage.
1852 * diskfull.h: Include String++.h for parsing this file.
1853 (diskfull): Update for String usage.
1854 * download.cc: Update includes for use of String class.
1855 (check_for_cached): Update for String usage.
1856 (download_one): Ditto.
1857 * filemanip.cc (get_file_size): Ditto.
1859 (parse_filename): Ditto.
1861 * filemanip.h: Include String++.h for parsing this file.
1862 (fileparse): Update for String usage.
1864 (parse_filename): Ditto.
1865 Don't consider '_' to be a separator.
1867 * find.cc: Update includes for use of String class.
1868 (find_sub): Make more flexible.
1869 (find): Update for String usage.
1870 * find.h (find): Use Strings.
1871 * fromcwd.cc (found_file): Update for String usage.
1873 (init_dialog): Ditto.
1874 (get_url_to_membuf): Ditto.
1875 (get_url_to_string): Ditto.
1876 (get_url_to_file): Ditto.
1878 (get_url_to_membuf): Ditto.
1879 (get_url_to_string): Ditto.
1880 (get_url_to_file): Ditto.
1882 (add_subdirs): Ditto.
1883 * ini.cc: Update includes for String usage.
1884 (find_routine): Update for String usage.
1885 (do_remote_ini): Ditto.
1886 (do_ini_thread): Ditto.
1887 * ini.h (ini_init): Ditto.
1888 * inilex.l: Update includes for String usage.
1889 (ini_init): Update for String usage.
1890 * iniparse.y: Ditto.
1891 (add_correct_version): Ditto.
1892 * install.cc: Update includes for String usage.
1893 (install_one_source): Update for String usage.
1894 (uninstall_one): Ditto.
1895 (replace_one): Ditto.
1896 (install_one_source): Ditto.
1897 (do_install_thread): Ditto.
1898 * io_stream.cc: Update includes for String usage.
1899 (io_stream::open): Update for String usage.
1900 (io_stream::mkpath_p): Ditto.
1901 (io_stream::remove): Ditto.
1902 (io_stream::mklink): Ditto.
1903 (io_stream::move_copy): Ditto.
1904 (io_stream::move): Ditto.
1905 (io_stream::exists): Ditto.
1906 * io_stream.h: Update includes to allow correct parsing.
1907 (io_stream::open): Update for String usage.
1908 (io_stream::mkpath_p): Ditto.
1909 (io_stream::remove): Ditto.
1910 (io_stream::mklink): Ditto.
1911 (io_stream::move_copy): Ditto.
1912 (io_stream::move): Ditto.
1913 (io_stream::exists): Ditto.
1914 * io_stream_cygfile.cc: Update includes for String usage.
1915 (get_root_dir_now): Update for String usage.
1916 (io_stream_cygfile::io_stream_cygfile): Ditto.
1917 (io_stream_cygfile::~io_stream_cygfile): Ditto.
1918 (io_stream_cygfile::exists): Ditto.
1919 (io_stream_cygfile::remove): Ditto.
1920 (io_stream_cygfile::mklink): Ditto.
1921 (cygmkdir_p): Ditto.
1922 (io_stream_cygfile::set_mtime): Ditto.
1923 (io_stream_cygfile::move): Ditto.
1924 (io_stream_cygfile::get_size): Ditto.
1925 * io_stream_cygfile.h: Update includes for String usage.
1926 (io_stream_cygfile::io_stream_cygfile): Update for String usage.
1927 (io_stream_cygfile::~io_stream_cygfile): Ditto.
1928 (io_stream_cygfile::exists): Ditto.
1929 (io_stream_cygfile::remove): Ditto.
1930 (io_stream_cygfile::mklink): Ditto.
1931 (cygmkdir_p): Ditto.
1932 (io_stream_cygfile::set_mtime): Ditto.
1933 (io_stream_cygfile::move): Ditto.
1934 (io_stream_cygfile::get_size): Ditto.
1935 (io_stream_cygfile::fname): Ditto.
1936 (io_stream_cygfile::lmode): Ditto.
1937 * io_stream_file.cc: Update includes for String usage.
1938 (io_stream_file::io_stream_file): Update for String usage.
1939 (io_stream_file::~io_stream_file): Ditto.
1940 (io_stream_file::exists): Ditto.
1941 (io_stream_file::remove): Ditto.
1942 (io_stream_file::mklink): Ditto.
1943 (io_stream_file::set_mtime): Ditto.
1944 (io_stream_file::move): Ditto.
1945 (io_stream_file::get_size): Ditto.
1946 * io_stream_file.h: Update includes for String usage.
1947 * io_stream_file.cc: Update includes for String usage.
1948 (io_stream_file::io_stream_file): Update for String usage.
1949 (io_stream_file::~io_stream_file): Ditto.
1950 (io_stream_file::exists): Ditto.
1951 (io_stream_file::remove): Ditto.
1952 (io_stream_file::mklink): Ditto.
1953 (io_stream_file::set_mtime): Ditto.
1954 (io_stream_file::move): Ditto.
1955 (io_stream_file::get_size): Ditto.
1956 (io_stream_file::fname): Ditto.
1957 (io_stream_file::lmode): Ditto.
1958 * localdir.cc: Update includes for String usage.
1959 (save_local_dir): Update for String usage.
1960 (check_if_enable_next): Ditto.
1961 (load_dialog): Ditto.
1963 (LocalDirPage::OnInit): Ditto.
1964 (LocalDirPage::OnNext): Ditto.
1965 * log.cc: Update includes for String usage.
1966 (struct LogEnt): Update for String usage.
1969 (exit_setup): Ditto.
1970 * log.h: Update includes for String usage.
1971 (log_level): Update for String usage.
1974 * main.cc (WinMain): Update for String usage.
1975 * mklink2.c (make_link_2): Update for String usage.
1976 * mklink2.h (make_link_2): Update for String usage.
1977 * mount.cc: Update includes for String usage.
1978 (mount_table): Update for String usage.
1980 (create_mount): Ditto.
1982 (remove_mount): Ditto.
1983 (read_mounts): Ditto.
1984 (set_root_dir): Ditto.
1985 (get_root_dir): Ditto.
1986 (path_prefix_p): Ditto.
1988 * mount.h: Update includes for String usage.
1989 (create_mount): Update for String usage.
1990 (remove_mount): Ditto.
1992 (set_root_dir): Ditto.
1993 (get_root_dir): Ditto.
1994 * msg.cc (mbox): Ditto.
1995 * net.cc (NetPage::OnNext): Ditto.
1996 * package_db.cc (packagedb::flush): Ditto.
1997 (packagedb::packages): Ditto.
1998 (packagedb::categories): Ditto.
1999 * package_db.h: Update includes for String usage.
2000 (packagedb::packages): Update for String usage.
2001 (packagedb::categories): Ditto.
2002 * package_meta.cc: Update includes for String usage.
2003 (hash::add_subdirs): Update for String usage.
2004 (packagemeta::uninstall): Ditto.
2005 (packagemeta::SDesc): Ditto.
2006 (packagemeta::action_caption): Ditto.
2007 * package_meta.h: Update includes for String usage.
2008 (packagemeta::packagemeta): Update for String usage.
2009 (packagemeta::~packagemeta): Ditto.
2010 (packagemeta::uninstall): Ditto.
2011 (packagemeta::SDesc): Ditto.
2012 (packagemeta::action_caption): Ditto.
2013 (package_source.cc site::site): Ditto.
2014 (packagesource::set_canonical): Ditto.
2015 (packagesource::set_cached): Ditto.
2016 * package_source.h: Update includes for String usage.
2017 (site::site): Update for String usage.
2018 (packagesource::set_canonical): Ditto.
2019 (packagesource::set_cached): Ditto.
2020 (packagesource::packagesource): Ditto.
2021 (packagesource::sites): Ditto.
2022 (packagesource::cached): Ditto.
2023 * package_version.h: Update includes for String usage.
2024 (Dependency): Update for String usage.
2025 (packageversion): Ditto.
2026 * postinstall.cc: Update includes for String usage.
2027 (do_postinstall): Update for String usage.
2028 * res.rc (IDD_LOCAL_DIR): Fix typo again!
2029 * rfc1738.cc (rfc1738_escape_part): Update for String usage.
2030 * rfc1738.h: Update includes for String usage.
2031 (rfc1738_escape_part): Update for String usage.
2032 * root.cc: Update includes for String usage.
2033 (check_if_enable_next): Update for String usage.
2034 (save_dialog): Ditto.
2036 (directory_is_absolute): Ditto.
2037 (directory_is_rootdir): Ditto.
2038 (directory_has_spaces): Ditto.
2039 (RootPage::OnInit): Ditto.
2040 (RootPage::OnNext): Ditto.
2041 * script.cc: Update includes for String usage.
2042 (init_run_script): Update for String usage.
2044 (run_script): Ditto.
2045 (try_run_script): Ditto.
2046 * script.h: Update includes for String usage.
2047 (run_script): Update for String usage.
2048 (try_run_script): Ditto.
2049 * site.cc site_list): Ditto.
2050 (all_site_list): Ditto.
2051 (other_url): Eliminate.
2052 (site_list_type::init): Update for String usage.
2053 (site_list_type::site_list_type): Ditto.
2054 (get_site_list): Ditto.
2055 (get_saved_sites): Ditto.
2056 (do_download_site_info_thread): Ditto.
2057 (SitePage::OnNext): Ditto.
2058 (SitePage::OnActivate): Ditto.
2059 (SitePage::PopulateListBox): Ditto.
2060 (SitePage::OnMessageCmd): Handle empty url's.
2061 * site.h: Update includes for String usage.
2062 (site_list_type::site_list_type): Update for String usage.
2063 (site_list_type::init): Ditto.
2064 (site_list_type::~site_list_type): Ditto.
2065 (site_list_type::url): Ditto.
2066 (site_list_type::displayed_url): Ditto.
2067 (site_list_type::key): Ditto.
2068 * source.cc (SourcePage::OnDeactivate): Ditto.
2069 * state.h: Update includes for String usage.
2070 (local_dir): Update for String usage.
2071 (trust_level): Remove.
2072 * version.cc: Update includes for String usage.
2073 (canonicalize_version): Update for String usage.
2074 * version.h: Update includes for String usage.
2075 (canonicalize_version): Update for String usage.
2077 2002-02-15 Christopher Faylor <cgf@redhat.com>
2079 * filemanip.c (parse_filename): Revert previous change.
2081 2002-02-14 Christopher Faylor <cgf@redhat.com>
2083 * filemanip.c (parse_filename): Don't treat '_' as a version number
2086 2002-01-29 Christopher Faylor <cgf@redhat.com>
2088 * configure: Regenerate.
2090 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
2092 * res.rc (IDD_LOCAL_DIR): Fix typo reported by Rene
2093 <Hoeck@extern.lrz-muenchen.de>
2095 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
2097 * README: Update Todo's.
2098 * list.h: Run indent.
2099 (list): New methods checksize and insert to reduce code duplication.
2100 (list::registerbykey): Use them.
2101 (list::registerbyobject): Ditto.
2102 (list::removebyindex): Copy each object individually - safe for non
2104 (list::checksize): Implement.
2105 (list::insert): Implement.
2107 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
2109 * Makefile.in: Remove the dlmalloc object by default.
2110 * install.cc (do_install_thread): Remove the mallinfo call for 'working
2111 around' the crashing issue.
2112 * package_db.h: Include <string.h> - it's needed to parse this.
2113 * package_source.cc (site::site): Move here from the header file.
2114 * package_source.h (site): Stop the constructor being inlinable.
2116 2002-01-26 Robert Collins <rbtcollins@hotmail.com>
2118 * filemanip.cc (find_tar_ext): Add a descriptive comment.
2120 2002-01-25 Michael A Chase <mchase@ix.netcom.com>
2122 * filemanip.cc (find_tar_ext): Clean up tests for .tar.gz and .tar.
2123 * fromcwd.cc (do_fromcwd): Expand FIXME comment in source file check.
2124 * install.cc (install_one_source): Add space between words in log()
2127 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
2129 * log.cc (exit_setup): When saving to the download dir, explicity
2132 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
2134 * archive.cc (extract_file): Separate out the prefix and the URL
2136 * archive.h (archive::extract_file): Ditto.
2137 * install.cc (install_one_source): Ditto. Use the new
2138 archive::extract_file syntax.
2139 (replace_one): Use the new syntax.
2140 (io_stream.cc): Add some log info for links.
2142 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
2144 * PickCategoryLine.cc (PickCategoryLine::actiontext): Remove.
2145 (PickCategoryLine::paint): Use the new action method.
2146 (PickCategoryLine::click): Set the action for all children.
2147 (PickCategoryLine::set_action): New method.
2148 * PickCategoryLine.h (PickCategoryLine::-actions): Remove.
2149 (PickCategoryLine::current_default): Use packagemeta _actions class.
2150 * PickLine.h (PickLine::set_action): New abstract method that requires
2151 including package_meta.h.
2152 * PickPackageLine.cc (PickPackageLine::set_action): New method.
2153 * PickPackageLine.h (PickPackageLine::set_action): Declare this.
2154 * list.h (getbykey): A const correctness fix.
2155 * package_meta.cc: Run indent.
2156 (packagemeta::Default_action): New const.
2157 (packagemeta::Install_action): Ditto.
2158 (packagemeta::Reinstall_action): Ditto.
2159 (packagemeta::Uninstall_action): Ditto.
2160 (packagemeta::_actions::caption): New method.
2161 (packagemeta::_actions::operator++): Ditto.
2162 (packagemeta::set_action): New overload.
2163 * package_meta.h (packagemeta::_actions): New class.
2164 (packagemeta::set_action): Declare this.
2166 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
2168 * Makefile.in (OBJS): Remove supp.o - it appears accidental.
2169 * choose.cc: Don't define alloca anymore, it's done in win32.h
2171 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
2173 * PickPackageLine.cc: New file.
2174 * PickPackageLine.h: New file.
2175 * PickLine.cc: New file.
2176 * PickLine.h: New file.
2177 * PickCategoryLine.cc: New file.
2178 * PickCategoryLine.h: New file.
2179 * PickView.cc: New file.
2180 * PickView.h: New file.
2181 * Makefile.in: Add new objects to setup.exe.
2182 Backout -fno-exceptions option.
2183 * choose.cc: Include PickView.h.
2184 Remove view related defines and static variables.
2185 (_pkg_headers): Moved to PickView.cc.
2186 (_cat_headers): Ditto.
2187 (view::views::Unknown): Ditto.
2188 (view::views::PackageFull):
2189 (view::views::Package):
2190 (view::views::Category):
2191 (pkgtrustp): Moved to package_meta.cc.
2192 (add_required): Moved to package_meta.cc.
2193 (pick_category_line::empty): Moved to PickCategoryLine.cc
2194 (paint): Adjust for moved static variables.
2195 (view::scroll): Moved to PickView.cc.
2196 (list_vscroll): Adjust for moved static variables.
2197 (list_hscroll): Ditto.
2198 (list_click): Ditto.
2199 (note_width): Moved to PickView.cc.
2200 (view::view): Ditto.
2201 (view::set_view_mode): Ditto.
2202 (view::mode_caption): Ditto.
2203 (view::views::caption): Ditto.
2204 (view::set_headers): Ditto.
2205 (DoInsertItem): Ditto.
2206 (view::init_headers): Ditto.
2207 (view::insert_pkg): Ditto.
2208 (view::insert_category): Ditto.
2209 (view::clear_view): Ditto.
2210 (view::views::operator++): Ditto.
2211 (view::click): Ditto.
2212 (default_trust): Adjust for moved statics.
2213 (pick_pkg_line::paint): Moved to PickPackageLine.cc.
2214 (pick_pkg_line::click): Ditto.
2215 (pick_category_line::actiontext): Moved to PickCategoryLine.cc
2216 (pick_category_line::paint): Ditto.
2217 (pick_category_line::click): Ditto.
2218 (set_view_mode): Adjust for moved statics.
2219 (create_listview): Ditto.
2220 * choose.h: Remove Category and packagemeta forward defines - not needed.
2221 Don't include unneeded headers list and package_meta.
2222 (_header): Move to PickView.h.
2223 (pick_line): Move to PickLine.h.
2224 (pick_pkg_line): Move to PickPackageLine.h.
2225 (pick_category_line): Move to PickCategoryLine.h.
2226 (view): Move to PickView.h.
2227 * ini.h (trusts): Move to package_meta.h.
2228 * package_meta.h (trusts): New enum.
2229 (packagemeta::set_requirements): New helper method.
2230 (packagemeta::trustp): Ditto.
2232 2002-01-21 Christopher Faylor <cgf@redhat.com>
2234 * choose.h (view): Move forward declaration of views into public area
2235 or g++ v3 will complain.
2237 2002-01-21 Christopher Faylor <cgf@redhat.com>
2239 * Makefile.in (CXXFLAGS): Add -fno-exceptions.
2240 * win32.h (alloca): Define as __builtin_alloca.
2241 * io_stream_memory.cc: Add include file.
2243 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
2245 * archive_tar.cc (archive_tar::~archive_tar): Mark the stream as destroyed.
2246 * archive_tar_file.cc (archive_tar_file::~archive_tar_file): Ditto.
2247 * compress.cc (compress::~compress): Be less verbose.
2248 * compress_bz.cc (compress_bz::~compress_bz): Ditto.
2249 Mark the stream as destroyed.
2250 * compress_gz.cc (compress_gz::~compress_gz): Mark the stream as destroyed.
2251 * io_stream.cc (io_stream::~io_stream): Only warn when the stream is not marked
2253 * io_stream_cygfile.cc (io_stream_cygfile::~io_stream_cygfile): Mark the
2254 stream as destroyed.
2255 * io_stream_file.cc (io_stream_file::~io_stream_file): Ditto.
2256 * io_stream_memory.cc (io_stream_memory::~io_stream_memory): Ditto.
2258 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
2260 * Makefile.in (CFLAGS): Allow customisable malloc debug flags.
2261 (OBJS): Link in malloc objects.
2262 * category.cc (category): Use new char, not strdup.
2263 * choose.cc (pick_pkg_line::paint): Allow for the regionsize to shrink.
2264 (do_choose): Use new char, not malloc.
2265 * concat.cc (vconcat): Ditto.
2266 * cygpackage.cc (cygpackage): Use new char, not strdup.
2267 (set_canonical_version): Ditto.
2268 (cygpackage::destroy): Use delete[], not free.
2269 * desktop.cc (uexists): Ditto.
2270 * dialog.cc (egest): Use new char, not strdup.
2271 * dlmalloc.c: New file - Doug Lea's malloc 2.7.0
2272 * hash.cc (hash::hash): Use delete instead of free.
2273 (hash::add): Use new char, not strdup.
2274 * ini.cc (do_remote_ini): Use delete[] not free.
2275 * inilex.l: Use new char, not strdup.
2277 * iniparse.y: Ditto.
2278 Use a local package_db rather than a static one.
2279 * install.cc (struct mallinfo): Workaround an apparent dlmalloc bug.
2280 (do_install_thread): Call mallinfo to force a consistency check. Appears
2281 to fix a 'inuse' error in -DDEBUG builds.
2282 Use delete[] for strings.
2283 * io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile): Use new char,
2285 (io_stream_cygfile::~io_stream_cygfile): Use delete[], not free.
2286 (io_stream_cygfile::remove): Use new char, not strdup.
2287 * io_stream_file.cc (io_stream_file::io_stream_file): Use new char, not strdup.
2288 (io_stream_file::io_stream_file): Use delete[], not free.
2289 (io_stream_file::remove): Use new char, not strdup.
2290 * io_stream_memory.cc (memblock::~memblock): Use delete[], not free.
2291 * io_stream_memory.h (memblock): Use new char, not malloc.
2292 * localdir.cc (LocalDirPage::OnInit): Use new char, not strdup.
2293 * main.cc (WinMain): Use new char, not strdup.
2294 * mount.cc (find2): Use new char, not malloc.
2295 (read_mounts): Ditto.
2296 (cygpath): Use new char, not strdup.
2297 * netio.cc (NetIO::~NetIO): Use delete[], not free.
2298 (NetIO::set_url): Use new char, not strdup.
2299 (NetIO::get_ftp_auth): Use delete[], not free.
2300 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
2301 Use new char instead of strdup.
2302 * nio-http.cc (base64_encode): Use new char, not malloc.
2303 * package_meta.cc (hash::add_subdirs): Use new char instead of strdup.
2304 * package_source.h (~ packagesource): Use delete[] instead of delete.
2305 * port.h (strdup): Deprecate the use of strdup.
2306 * rfc1738.cc (rfc1738_do_escape): Use new char, not calloc.
2307 * script.cc (init_run_script): Us delete[], not free.
2308 (run_script): Ditto.
2309 * simpsock.cc (SimpleSocket::fill): Use new char, not malloc.
2310 (SimpleSocket::invalidate): Use delete[], not free.
2311 * site.cc (site_list_type::init): Use new char instead of strdup.
2312 * site.h (~site_list_type): Use delete[], not free.
2314 2002-01-20 Robert Collins <rbtcollins@hotmail.com>
2316 * Makefile.in (OBJS): Add win32.o - win32 support functions.
2317 * README: Update todos.
2318 * archive.cc (extract_file): Support a suffix for appending to extracted files.
2320 * choose.cc (set_view_mode): Use the new view::views class.
2321 (view::views::Unknown): New static for defaulting view::views variables.
2322 (view::views::PackageFull): New static for the current view.
2323 (view::views::Package): Ditto.
2324 (view::views::Category): Ditto.
2325 (topbucket::paint): Remove.
2326 (topbucket::empty): Rename to pick_category_line::empty.
2327 (topbucket::~topbucket): Remove.
2328 (paint): Use the new view::views class.
2329 Don't paint 'all' as a category when showing package categoies.
2330 (pick_category_line::actiontext): New method.
2331 (pick_category_line::paint): Make showing the category optional, and show the
2333 (pick_category_line::click): Make showing the category optional, and
2334 differentiate between the name being clicked, and the action description.
2335 (view::view): Use the new view::views class.
2336 (view::set_view_mode): Ditto.
2337 (view::mode_caption): Ditto.
2338 (view::views::caption): New method.
2339 (view::set_headers): Use the new view::views class.
2340 (view::clear_view): Ditto.
2341 (viewsplusplus): Replaced by
2342 (view::views::operator++): New operator.
2343 (set_view_mode): Use the new view::views class.
2344 (create_listview): Ditto.
2345 (dialog_cmd): Ditto.
2346 * choose.h (actions): Remove.
2348 (pick_line): Add a new convenience constructor.
2349 (top_bucket): Remove.
2350 (pick_category_line): Reparent under pick_line, and adsorb top_bucket.
2351 (view::views): New class.
2352 * ini.h: Don't include choose.h
2353 (is_download_action): Remove.
2354 (is_upgrade_action): Remove.
2355 (is_uninstall_action): Remove.
2356 (is_full_action): Remove.
2357 * install.cc (num_replacements): New static.
2358 (rebootneeded): Ditto.
2359 (replace_one): Handle upgrades separate from removal or new installs.
2360 (install_one_source): Handle in use files.
2361 (install_one): Don't repeat upgrades.
2362 (do_install_thread): Initialize new statics.
2363 Order actions as uninstall, replace, install.
2364 Warn about rebooting if needed.
2365 * res.rc (IDS_REBOOT_REQUIRED): New string.
2366 * resource.h (IDS_REBOOT_REQUIRED): Give value.
2367 * win32.h: Declare class Win32, and update copyright and intent message.
2368 * win32.cc: New file.
2370 2002-01-15 Corinna Vinschen <corinna@vinschen.de>
2372 * io_stream.cc (io_stream::gets): Eliminate trailing new line chars.
2373 * package_meta.cc (packagemeta::uninstall): Check for additional
2374 Windows shortcut. Unset R/O file attribute before trying to delete
2377 2002-01-09 Robert Collins <rbtcollins@hotmail.com>
2379 * choose.cc (pkgtrustp): Fall back to installed if a package is not present in
2380 the current trust level. For prev, fall back via curr.
2381 (set_existence): Allow sources with no sites, but cached files to be
2383 (pick_category_line::paint): Start drawing clickable categories.
2384 * fromcwd.cc (found_file): Reinstate local file scanning.
2386 2002-01-07 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2388 * fromcwd.cc: Run indent.
2389 (do_fromcwd): Reverse sense of comment. Set next_dialog
2390 to IDD_CHOOSER instead of IDD_CHOOSE.
2391 * ini.cc (find_routine): Remove "/" from "/setup.ini".
2393 2001-01-07 Robert Collins <rbtcollins@hotmail.com>
2395 * category.cc (Categorycmp): Add a const safe version.
2396 * category.h (Categorycmp): Add a const safe version.
2397 (Category): Add operator ==.
2398 * choose.cc (fill_missing_category): Add every package to "All".
2399 (pick_category_line::paint): Add support for hidden labels, and a tree depth.
2400 (pick_category_line::click): Ditto.
2401 (view::view): Pass in a top level category to use.
2402 (view::insert_pkg): Special case - skip category "All".
2403 (view::insert_category): Ditto.
2404 (view::clear_view): Set the contents label state.
2405 (create_listview): Pass in a top level category to view().
2406 * choose.h (topbucket): Make bucket available to derived classes.
2407 (pick_category_line): Add support for hidden labels, and a tree depth.
2408 Remove our second copy of bucket.
2409 (view): Pass in a top level category to the constructor.
2410 Use pick_category_line to allow three level display.
2412 2001-01-06 Robert Collins <rbtcollins@hotmail.com>
2414 * cygpackage.h (cygpackage): Make set_[s|l]desc virtual.
2415 * iniparse.y (add_correct_version): Copy descriptions across.
2416 * package_meta.cc (SDesc): Iterate through versions, return the first with a
2418 * package_version.h (packageversion): Add new virtuals set_[l|s]desc.
2420 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
2422 * script.cc (run_script): Change cygpath:// to cygfile://.
2423 * install.cc (do_install_thread): Fix off-by-one errors.
2425 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
2427 * package_db.cc (packagedb::flush): Fix an off-by-one error.
2429 2002-01-04 Jan Nieuwenhuizen <janneke@gnu.org>
2431 * Makefile.in (realclean): more clean.
2432 (OBJS): Add script.o.
2433 * postinstall.cc (run_script_in_etc_postinstall): New function.
2434 (do_postinstall): Split off new funtion init_run_script ().
2437 (run_script): Move to script.cc. Replace some deprecated remove
2440 * script.cc: New file.
2441 * Forward port cygwin-20010707.jcn3.patch.
2442 * package_meta.cc (uninstall): Run pre- and postremove scripts.
2443 * install.cc: Typo fix.
2444 (do_install): Run script initialisation.
2446 2001-01-04 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2448 * cistring.cc: Run d2u.
2449 * cistring.h: Run d2u.
2451 * desktop.cc (etc_profile): Remove "test -f ./.bashrc && . ./.bashrc"
2452 from the generated /etc/profile. Bash will source this file
2453 automatically, and having this here merely results in .bashrc being
2454 executed twice. Run d2u.
2455 * desktop.h: Run d2u.
2457 * propsheet.cc: Run d2u.
2458 (PropSheetProc): New function. Add minimize box here instead of in
2459 PropertyPage::DialogProc.
2460 (PropSheet::Create): Change to use creation callback PropSheetProc.
2461 (DLGTEMPLATEEX): Add 'hidden' Windows struct definition.
2463 * propsheet.h: Run indent, d2u.
2464 * proppage.h: Run indent, d2u.
2466 * proppage.cc: Run d2u.
2467 (PropertyPage::DialogProc): Remove minimize-box-adding
2468 functionality. Remove commented-out "PropSheet_SetWizButtons" calls.
2469 Add support for calling virtual OnMessageCmd. Add setting of fonts in
2470 WM_INITDIALOG handler.
2471 (resource.h): New include for resource IDs.
2473 * res.rc: Resize and rearrange property page dialog templates
2474 to bring them in line with "Microsoft's Backward Compatible Wizard 97"
2475 specification. Run d2u.
2476 (IDD_SITE): Add an edit control and an "Add" button in order to
2477 combine the IDD_SITE and IDD_OTHER_URL functionality onto one page.
2478 (IDD_OTHER_URL): Remove dialog template.
2479 (IDD_DLSTATUS): Remove dialog template.
2482 (SitePage::OnBack): Remove NEXT() macro invocation.
2483 (SitePage::OnActivate): New member function.
2484 (load_dialog): Remove. Functionality subsumed into
2485 SitePage::OnActivate.
2486 (save_dialog): Change to support both list and user URLs. Remove
2487 OTHER_IDX and mirror_idx logic.
2488 (SitePage::PopulateListBox): New member function.
2489 (SitePage::CheckControlsAndDisableAccordingly): New member function.
2490 (SitePage::OnMessageCmd): New override.
2491 (check_if_enable_next): Remove.
2492 (dialog_cmd): Remove.
2493 (do_download_site_info_thread): Remove calls to NEXT() macro.
2494 (SitePage::Create): Call the single-param PropertyPage::Create
2496 (other_url): New static taken from other.cc.
2497 (SitePage::OnNext): Remove mirror_idx logic.
2498 (SitePage::OnInit): Remove "Other URL" entry from list box. Remove
2499 list box populating code, now handled in SitePage::PopulateListBox.
2500 (mirror_idx, NO_IDX, OTHER_IDX): Remove.
2501 (save_site_url): Fix potential buffer overflow problem. Switched to
2502 TCHAR in grossly premature preparation for multilingual support.
2504 (SitePage::OnActivate): New member function.
2505 (SitePage::CheckControlsAndDisableAccordingly) New member.
2506 (SitePage::OnMessageCmd): New override.
2507 (do_download_site_info_thread): Add MessageBox call on failure to
2510 * splash.cc: Run d2u.
2511 (SplashPage::OnInit): Set the font for the title.
2512 * splash.h: Run d2u.
2514 * threebar.cc: Run d2u.
2515 * threebar.h: Run d2u.
2517 * window.h: Run d2u.
2518 (Window::IsButtonChecked): New member function declaration.
2519 (Window::OnMessageCmd): New member function.
2520 (Window::SetDlgItemFont): New member function declaration.
2521 (Window::MAXFONTS, Window::Fonts, Window::FontCounter): New data
2523 * window.cc: Run d2u.
2524 (Window::IsButtonChecked): New member function definition.
2525 (Window::SetDlgItemFont): New member function definition.
2526 (Window::Window): Add initialization for FontCounter.
2527 (Window::~Window): Delete any fonts we created.
2529 * geturl.cc: Run d2u.
2530 (progress): Remove the "3" field width from the "%3d"
2531 percent-complete format indicator. Causes line to not start at
2532 beginning of text box, and does little to help with "jumping", since
2533 the "bytes downloaded so far" field is variable-width anyway. Change
2534 kb/s format field to "%03.1" to 0-pad the kb/s number in the event of
2535 painfully slow connections, or temporary slowdowns in faster
2536 connections should such more-instantaneous functionality become
2540 (NetPage::OnMessageCmd): New member function declaration.
2541 (NetPage::CheckIfEnableNext): New member function declaration.
2543 (NetPage::OnMessageCmd): New member function definition.
2544 (dialog_cmd): Remove, subsumed into NetPage::OnMessageCmd.
2545 (check_if_enable_next): Remove.
2546 (NetPage::CheckIfEnableNext): New member function, subsumes
2547 check_if_enable_next.
2548 (propsheet.h): Add include.
2549 (NetPage::Init): Add call to CheckIfEnableNext.
2550 (load_dialog): Remove call to check_if_enable_next.
2551 (NetPage::Create): Call single-template-ID-parameter overload of
2552 PropertyPage::Create instead of three-parameter one.
2554 * Makefile.in (OBJS): Remove other.o.
2555 * other.cc: Remove file.
2557 2002-01-01 Robert Collins <rbtcollins@hotmail.com>
2559 * README: Update TODO's.
2560 * choose.cc (set_existence): Delete non installed packages with no
2562 (fill_missing_category): Fix an off-by-one error.
2563 (default_trust): Ditto. Also delete any unused categories.
2564 (view::init_headers): Fix an off-by-one error.
2565 (set_view_mode): Ditto.
2566 (set_view_mode): Ditto.
2567 (create_listview): Ditto.
2568 (dialog_cmd): Ditto.
2570 * io_stream.cc: Indent.
2571 * io_stream.h: Ditto.
2572 * package_db.cc: Ditto.
2573 * package_meta.h: Const correctness for SDesc ();
2574 * proppage.cc: Run d2u and indent.
2575 * propsheet.cc: Run d2u and indent.
2576 * window.cc: Run d2u and indent.
2577 * window.h: Run d2u and indent.
2579 2001-12-28 Christopher Faylor <cgf@redhat.com>
2581 * Makefile.in (iniparse.o): Accommodate newer bisons.
2583 2001-12-23 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2585 * window.h (Window): New file, new class.
2586 * window.cc (Window): New file, new class.
2588 * threebar.h (ThreeBarProgressPage): New file, new class.
2589 * threebar.cc (ThreeBarProgressPage): New file, new class.
2591 * splash.h (SplashPage): New file, new class.
2592 * splash.cc (SplashPage): Replace file with implementation of new
2595 * source.h (SourcePage): New file, new class.
2596 * source.cc: Run indent.
2597 (SourcePage): Add class implementation to this file.
2598 (do_source): Remove, functionality subsumed by SourcePage::Create()
2599 and SourcePage::OnDeactivate().
2600 (dialog_proc): Remove, functionality subsumed by
2601 SourcePage::OnActivate().
2603 * site.h: Run indent.
2604 (SitePage): Add class declaration.
2605 * site.cc: Run indent.
2606 (SitePage): Add class implementation.
2607 (do_download_site_info_thread): New function.
2608 (context): New var. Context info for do_download_site_info_thread().
2609 (do_download_site_info): New function.
2610 (SitePage::Create, SitePage::OnInit SitePage::OnNext)
2611 (SitePage::OnBack): SitePage class implementation..
2612 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers, now handled
2613 by SitePage members.
2614 (dialog_proc): Remove, now handled by SitePage::OnInit and base class
2616 (do_site): Remove, now handled by do_download_site_info_thread() and
2617 SitePage::OnNext functionality.
2618 (get_site_list): Remove dismiss_url_status_dialog() call.
2620 * root.h (RootPage): New file, new class.
2621 * root.cc: Run indent.
2622 (dialog_cmd): Pass parent HWND parameter to note(), yesno().
2623 (dialog_proc): Remove.
2625 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL clauses from switch.
2626 (RootPage::OnInit): New member function. Move get_root_dir() logic to
2627 here from do_root().
2628 (RootPage::Create): New member function.
2629 (RootPage::OnNext): New member function. Move IDOK logic from
2630 dialog_cmd() to here.
2631 (RootPage::OnBack): New member function.
2633 * propsheet.h (PropSheet): New file, new class.
2634 * propsheet.cc (PropSheet): New file, new class.
2636 * proppage.h (PropertyPage): New file, new class.
2637 * proppage.cc (PropertyPage): New file, new class.
2639 * postinstall.cc (do_postinstall): Add owner parameter.
2641 * other.cc (do_other): Add owner parameter.
2643 * nio-file.cc (NetIO::Purl): Pass NULL parent param to note().
2644 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Pass NULL parent param to
2646 * nio-http.cc (retry_get): Pass NULL parent param to get_auth(),
2649 * nio-ie5.cc (NetIO::_url): Pass NULL parent param to note(),
2650 get_auth(), get_proxy_auth().
2652 * netio.h (get_auth, get_proxy_auth, get_ftp_auth): Add owner param.
2653 * netio.cc (auth_common, NetIO::get_auth, NetIO::get_proxy_auth,
2654 NetIO::get_ftp_auth)
2655 (auth_common): Add owner param. Pass owner param to DialogBox.
2656 (NetIO::get_auth, NetIO::get_proxy_auth, NetIO::get_ftp_auth): Pass
2657 owner param to auth_common().
2659 * net.h (NetPage): New file, new class.
2660 * net.cc: Run indent.
2661 (net.h, threebar.h): Add includes.
2662 (Progress): Add extern.
2663 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, now handled by
2664 property sheet logic. Saved temporarily for reference.
2665 (NetPage::Create, NetPage::OnInit, NetPage::OnDeactivate,
2666 NetPage::OnNext, NetPage::OnBack):
2667 New implementation of NetPage class members.
2669 (dialog_proc): Remove.
2671 * msg.h (fatal, note, yesno): Add owner param.
2672 * msg.c (fatal, note, yesno, mbox): Add owner param.
2673 (mbox): Remove MB_TOPMOST from MessageBox call. Unnecessary and wrong
2674 now that we have a parent.
2676 * main.cc: Run indent.
2677 (commctrl.h, proppage.h, propsheet.h, splash.h, source.h)
2678 (localdir.h, net.h, site.h, choose.h, threebar.h, desktop.h): Include
2680 (root_dialog_proc): extern into this file.
2681 (Progress): Progress dialog defined here, used in several other files.
2682 (WinMain): Instantiate and create Splash, Source, Root, LocalDir, Net,
2683 Site, Chooser, Desktop pages and MainWindow sheet. Call
2684 InitCommonControls() to make sure Windows is set up for our use of
2685 property sheets. Add pages to sheet.
2686 Call MainWindow.Create() to "DoModal". Remove main loop, that logic is
2687 now handled by the PropSheet class.
2688 (root.h): Add include.
2690 * log.cc (log_save): Pass NULL parent to fatal().
2691 (exit_setup): Pass NULL parent to note().
2693 * localdir.h (LocalDirPage): New file, new class.
2694 * localdir.cc: Run indent.
2695 (localdir.h): New include.
2696 (threebar.h): New include.
2697 (Progress): extern into this file.
2698 (LocalDirPage::Create, LocalDirPage::OnInit, LocalDirPage::OnActivate)
2699 (LocalDirPage::OnNext, LocalDirPage::OnBack): Implementation of
2701 (LocalDirPage::OnNext): Move log() call from do_local_dir() to here.
2702 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers.
2703 (do_local_dir): Remove.
2704 (dialog_proc): Remove.
2705 (cwd): Remove, not used by anything.
2707 * install.cc: Run indent.
2708 (process.h, threebar.h): New includes.
2709 (Progress): extern into this file.
2710 (ins_dialog, ins_action, ins_pkgname, ins_filename, ins_pprogress)
2711 (ins_iprogress, ins_diskfull, init_event): Remove, now handled by
2712 ThreeBarProgressPage.
2713 (dialog_cmd, dialog_proc, dialog): Removed, handled in
2714 ThreeBarProgressPage.
2715 (init_dialog): Remove all mention of the above ins_* handles. Now
2716 handled in ThreeBarProgressPage. Altered SetWindowText()s to call
2717 ThreeBarProgressPage instance Progress directly.
2718 (progress): Alter bar update logic to call ThreeBarProgressPage
2719 instance Progress directly.
2720 (uninstall_one): Alter SetWindowText()s to call ThreeBarProgressPage
2721 instance Progress directly.
2722 (install_one_source): Alter SetWindowText()s to call
2723 ThreeBarProgressPage
2724 instance Progress directly. Pass NULL parent to note().
2725 (do_install_thread): Rename from do_install(), added owner param.
2726 Alter SetWindowText()s to call ThreeBarProgressPage instance Progress
2728 Remove dismiss_url_status_dialog() call, no longer necessary. Remove
2729 ShowWindow(<hide>) call, also unnecessary now. Pass owner handle to
2731 (do_install_reflector): New function.
2732 (do_install): New function.
2734 * ini.cc (process.h, threebar.h): New includes.
2735 (Progress): externed into this file.
2736 (find_routine): Pass NULL parent to note().
2737 (do_local_ini): Add owner param.
2738 (do_remote_ini): Add owner param. Pass owner to get_url_to_membuf()
2739 and note(). Remove call to dismiss_url_status_dialog().
2740 (do_ini_thread): Rename from do_ini(). Add owner param. Pass owner to
2741 do_local_ini(), do_remote_ini(), yesno(), and note(). Set next_dialog
2742 to IDD_CHOOSER on exit.
2743 (do_ini_thread_reflector): New function.
2744 (context): New var. Context for do_ini_thread.
2745 (do_ini): New function.
2747 * geturl.h (get_url_to_membuf, get_url_to_string, get_url_to_file): Add
2749 * geturl.cc (gw_dialog, gw_url, gw_rate, gw_progress, gw_pprogress,
2751 (gw_progress_text, gw_pprogress_text, gw_iprogress_text, init_event):
2753 (threebar.h): New include.
2754 (Progress): externed into this file.
2755 (dialog_cmd, dialog_proc, dialog): Removed, handled by
2756 ThreeBarProgressPage now.
2757 (init_dialog): Remove "if (gw_dialog == 0)" clause. Alter
2759 and bar setting SendMessage()s to call ThreeBarProgressPage instance
2760 Progress directly. Remove "one bar only" logic, this is now handled
2761 explicitly in the ThreeBarProgressPage class.
2762 (progress): Altered bar and text update logic to call
2763 ThreeBarProgressPage instance Progress directly. Changed kbps
2764 calculation to floating point and now print out a single decimal
2766 (get_url_to_membuf): Add owner param. Pass it to init_dialog.
2767 (get_url_to_string): Add owner param. Pass it to get_url_to_membuf.
2768 (get_url_to_file): Add owner param. Pass it to init_dialog. Alter bar
2769 update logic to call ThreeBarProgressPage instance Progress directly.
2770 (dismiss_url_status_dialog): Remove.
2772 * fromcwd.cc (do_fromcwd): Add owner param. Initialize found_ini to
2775 * download.cc: Run indent.
2776 (process.h, threebar.h): New includes.
2777 (Progress): externed into this file.
2778 (download_one): Add owner param. Pass it to get_url_to_file().
2779 (do_download_thread): Renamed from do_download. Add owner param. When
2780 calculating total_download_bytes, take binpicked and srcpicked into
2781 account. Remove call to dismiss_url_status_dialog(), no longer needed.
2782 Pass owner handle to download_one() and yesno().
2783 (do_download_reflector, do_download): New functions.
2784 (context): New var. Context for do_download_thread().
2786 * dialog.h (D(x)): Add owner param.
2788 * desktop.h (DesktopSetupPage): New file, new class.
2789 * desktop.cc: Run indent.
2790 (desktop.h): Add include.
2791 (dialog_proc, do_desktop): Remove, now handled in
2792 DesktopSetupPage::OnInit().
2793 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, handled in
2794 DesktopSetupPage::OnFinish(), DesktopSetupPage::OnBack(), and PropSheet
2796 (DesktopSetupPage::Create, DesktopSetupPage::OnInit)
2797 (DesktopSetupPage::OnBack, DesktopSetupPage::OnFinish): Implementation
2798 of DesktopSetupPage.
2800 * cistring.h: New file, new class.
2801 * cistring.cc: New file, new class.
2803 * choose.h: Run indent.
2804 (Chooser): New class declaration.
2805 * choose.cc: Run indent.
2806 (do_choose): Add owner param. Pass it to DialogBox() and
2808 (Chooser): New class implementation.
2810 * res.rc (IDS_VERSION_INFO): New string.
2811 (IDD_SOURCE, IDD_LOCAL_DIR, IDD_ROOT, IDD_SITE, IDD_OTHER_URL)
2812 (IDD_DLSTATUS, IDD_INSTATUS, IDD_SPLASH, IDD_CHOOSE, IDD_DESKTOP):
2813 Change WS_POPUP to WS_CHILD. Numerous positioning/size changes
2815 (IDD_CHOOSE): Give template the WS_EX_CONTROLPARENT style to enable
2816 TAB control navigation etc. Give the controls a reasonable tab order.
2817 Grouped radio buttons. Something's still not right, can't tab away
2818 from back/next/cancel group reliably.
2819 * resource.h (IDD_CHOOSER): New dialog ID.
2821 * Makefile.in (OBJS): Add cistring.o, proppage.o, propsheet.o,
2822 threebar.o, and window.o.
2824 2001-12-21 Robert Collins <rbtcollins@hotmail.com>
2826 * choose.cc (listview_proc): Update the scrollbar when the headers are dragged.
2827 (pick_pkg_line::paint): Clip columns to prevent overlap.
2829 2001-12-20 Robert Collins <rbtcollins@hotmail.com>
2831 * Makefile.in: Add libcomctl32.a for setup.exe.
2832 * archive.h (archive): Prevent non-child direct creation of the class.
2833 * archive_tar.h (archive_tar): Prevent inaccurate synthetic copy and assignment.
2834 * choose.cc: Include commctrl for the choose header.
2835 (NEW_COL_SIZE_SLOP): Define without magic numbers.
2836 (pkgtrustp): Convert to function.
2837 (set_action): Remove.
2838 (add_required, fill_missing_category,default_trust): Use list syntax for
2841 (choose_caption): Remove.
2842 (topbucket::paint): New method.
2843 (topbucket::empty): Ditto.
2844 (topbucket::click): Ditto.
2845 (topbucket::~topbucket): Ditto.
2846 (paint): Remove i,ii and p as they are obsolete.
2847 Remove header drawing code.
2848 Use new chooser method to paint the chooser.
2849 Use new chooser itemcount method.
2850 (scroll_common): Rename to view::scroll.
2851 Scroll the header window separately.
2852 (list_vscroll, list_hscroll, list_click): Update for new chooser methods.
2853 (listview_proc): Look for header messages.
2854 (note_width): Accept stringless calls.
2855 (pick_line::set_line): Remove.
2856 (pick_line::paint): Remove.
2857 (pick_pkg_line::paint): Paint this one line, using the header column widths.
2858 (pick_category_line::paint): Paint this category, and anything in the bucket.
2859 (pick_line::click): Remove.
2860 (pick_pkg_line::click): Handle a click.
2861 (pick_category_line::click): Handle a click.
2862 (_view): Rename all to view.
2863 (view::view): Initialise the control contents.
2864 (view::set_headers): Work with the header control.
2865 (view::init_headers): Use list syntax for package list.
2866 Rearrange the width logic a little.
2867 (view::insert_pkg): Update to use the hierarchy.
2868 (view::insert_category): Ditto.
2869 (view::insert_at, view::insert_under): Remove.
2870 (view::clear_view): Update to use the hierarchy.
2871 (view::click): Update to use the hierarchy.
2872 (set_view_mode): Use list syntax for package list.
2873 Update for new chooser methods.
2874 (DoInsertItem): New helper function. (Needs a home somewhere).
2875 (create_listview): Remove choose control code and use the constructor instead.
2876 (dialog_cmd,scan2,do_choose): Use list syntax for package list.
2877 * choose.h: Include newly required headers list and package_meta.
2878 (_voew): Rename to view.
2879 (pick_line): Convert to an ABC.
2880 (pick_pkg_line): New class.
2881 (pick_catgory_line): New class.
2882 (topbucket): New class.
2883 (view::scroll): New method created from listview_scroll function.
2884 * desktop.cc (make_passwd_group): Use list syntax for package list.
2885 * download.cc (do_download): Use list syntax for package list.
2886 * fromcwd.cc (found_file): Use list syntax for package list.
2887 * iniparse.y (pacakges): Use list syntax for package list.
2888 * install.cc (uninstall_one): Use list syntax for package list.
2889 (do_install): Use list syntax for package list.
2890 * io_stream.h (io_stream): Prevent non-child direct creation of the class.
2891 Prevent inaccurate synthetic copy and assignment.
2892 * list.h: Include required header stdlib.
2893 Work on const correctness.
2894 * package_db.cc (packagedb::getpackagebyname): Remove.
2895 (packagedb::packagedb): Remove custom list code, and make db a local.
2896 (packagedb::getfirstpackage): Remove.
2897 (packagedb::getnextpackage): Remove.
2898 (packagedb::addpackage): Remove.
2899 (flush): Remove custom list code.
2900 (packagedb::registerpackage): Remove.
2901 (packagedb::packages): New static member.
2902 (packagedb::task): New static member.
2903 * package_db.h (PackageDBActions): New enum.
2904 (packagedb): Remove getfirstpackage, getnextpackage, getpackagebyname,
2905 addpackage, registerpackage, packages, packagecount, curr_package, db.
2907 * pacakge_meta.cc: Include package_db.h.
2908 (packagemeta::action_caption): New method.
2909 (packagemeta::set_action): New method.
2910 * package_meta.h (CategoryPackage): Initialise key.
2911 (packagemeta): Initialise key.
2912 Add set_action and action_caption methods.
2913 Prevent inaccurate synthetic copy and assignment.
2914 * resource.h (IDC_CHOOSE_LISTHEADER): New ID.
2915 * source.cc: Include package_db for db manipulation.
2916 (save_dialog): Set the db task.
2917 * win32.h: Tell the w32 include headers what IE version to expect/require.
2919 2001-12-06 Robert Collins <rbtcollins@hotmail.com>
2921 * README: Wishlist updates.
2923 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
2925 * package_db.cc (getnextpackage): Don't overrun the array.
2927 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
2929 * Makefile.in (OBJS): Add setup_version.o.
2930 (version.c): Rename to setup_version.
2931 * choose.cc (set_action): Prevent NULL pointer dereference.
2932 (package_sort): Remove.
2933 * fromcwd.cc (canonicalize_version): Moved to version.cc.
2934 (check_ini): New function for use with find to see if there is a cached setup.ini.
2935 (do_fromcwd): Check for a cached setup.ini from any mirror site.
2936 * ini.cc (find_routine): New function, for finding cached setup.ini's.
2937 (do_local_ini): New function, drives parsing of local ini's.
2938 (do_remote_ini): New function, drives parsing and caching of remote ini's.
2939 (do_ini): Move guts to do_remote_ini and do_local_ini.
2940 * list.h (removebyindex): New method.
2941 * other.cc (save_dialog): Use new site_list and all_site_list to add the
2942 new site to the site picklist.
2943 (dialog_cmd): Only save the dialog when exiting the dialog.
2944 * res.rc (IDD_SITE): Make IDC_URL_LIST a multiple-selection control.
2945 * site.cc (site_list_type): Move to site.h
2946 (site_list): New global, sites chosen by the user.
2947 (all_site_list): New global, all potential sites.
2948 (site_list_type::init): New method, parses a mirror.lst URL string into a
2949 site_list_type object.
2950 (site_list_type::site_list_type): New method.
2951 (check_if_enable_next): Examine the control, not a local variable.
2952 (load_dialog): Select all the user chosen sites by default.
2953 (save_dialog): Adjust for multiple selection semantics.
2954 (save_site_url): Save all user chosen sites.
2955 (dialog_cmd): Don't save the dialog when the listbox recieves a message -
2957 Remove obsolete other_url reference.
2958 (dialog_proc): Use all_site_list instead of site_list.
2959 (site_sort): Remove.
2960 (get_site_list): Remove malloc use - use list template instead.
2961 Move site_list_type initialisation to site_list_type::init().
2962 (get_initial_list_idx): Renamed to ...
2963 (get_saved_sites): this. Also read in multiple sites to the site_list.
2964 (do_site): Use all_site_list not site_list.
2965 Log all chosen sites.
2966 * site.h: New file, defines site related class, functions and variables.
2967 * state.h: Add comment about use of state.h
2968 (mirror_site): Remove.
2969 (other_url): Remove.
2970 (MIRROR_SITE): Remove.
2971 * version.cc: New file, for version-handling and related functions.
2973 2001-12-02 Robert Collins <rbtcollins@hotmail.com>
2975 * Makefile.in: Add filemanip.o to setup.
2976 * archive.cc (archive::extract_file): Use new io_stream method 'copy'.
2977 * archive_tar.h (archive_tar_file): Implement get_size virtual.
2978 (archive_tar): Ditto.
2979 * choose.cc (set_action): Use [] operator instead of getnth - its more readable.
2981 (_view::init_headers): Ditto.
2982 (_view::insert_pkg): Ditto.
2983 (set_view_mode): Ditto.
2986 (base): Moved to filemanip.cc.
2987 (find_tar_ext): Ditto.
2988 (parse_filename): Ditto.
2989 (_Info::_Info): Remove.
2990 * compress_bz.h (compress_bz): Implement get_size virtual.
2991 * compress_gz.h (compress_gz): Implement get_size virtual.
2992 * cygpackage.cc (cygpackage::destroy): Use array delete for char * objects.
2993 * download.cc (get_file_size): Move to filemanip.cc.
2994 (check_for_cached): Use [] operator instead of getnth - its more readable.
2995 (download_one): Ditto.
2996 * filemanip.cc: New file.
2997 * geturl.cc (init_dialog): Make url a pointer to const as it is not modified.
2998 (get_url_to_membuf): New function - contains get_url_to_string worker code.
2999 (get_url_to_string): Becomes a trivial wrapper to get_url_to_membuf.
3000 * geturl.h: Declare new prototype.
3001 * ini.cc (do_ini): Use get_url_to_membuf and pass ini_init an io_stream.
3002 Tidy up the error code a little.
3003 * ini.h: Remove __cplusplus protection for ini_init.
3005 * inilex.l: Remove old globals.
3006 (ini_init): Use an io_stream for getting the characters.
3007 (ini_getchar): Ditto.
3008 * iniparse.y: Declare yylex as a C++ function.
3009 (add_correct_version): Use [] operator instead of getnth - its more readable.
3010 * io_stream.cc (io_stream::move_copy): Use the copy method.
3011 (io_stream::copy): New method to simply copy from one stream to another.
3012 * io_stream.h (io_stream): New static method copy, and virtual method get_size.
3013 * io_stream_cygfile.cc (io_stream_cygfile::get_size): Implement this.
3014 * io_stream_cygfile.h (io_stream_cygfile::get_size): Declare this.
3015 * io_stream_file.cc (io_stream_file::get_size): Implement this.
3016 * io_stream_file.h (io_stream_file::get_size): Declare this.
3017 * io_stream_memory.h: Include errno as it's neded to parse the header.
3018 (io_stream_memory::get_size): Implement this.
3019 (io_stream_memory::st_size): Delete this.
3020 * list.h: Change getnth into the [] operator.
3021 * netio.cc (NetIO::NetIO): Change prototype to reflect Purl not being modified.
3022 (NetIO::set_url): Ditto.
3023 (NetIO::open): Ditto.
3024 * netio.h: As for netio.cc.
3025 * nio-file.cc (NetIO_File::NetIO_File): Change prototype to reflect Purl not
3027 * nio-file.h: Ditto.
3028 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
3029 * nio-ftp.h (NetIO_FTP::NetIO_FTP): Ditto.
3030 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Ditto.
3031 * nio-http.h (NetIO_HTTP::NetIO_HTTP): Ditto.
3032 * nio-i5.cc (NetIO_IE5::NetIO_IE5): Ditto.
3033 * nio-i5.h (NetIO_IE5::NetIO_IE5): Ditto.
3034 * package_meta.cc (packagemeta::~packagemeta): Bugfix: use array delete.
3035 * package_source.cc (packagesource::set_canonical): Ditto.
3036 (packagesource::set_cached): Ditto.
3037 * package_source.h (site::~site): Ditto.
3038 * site.cc: Change site_list_type to a class, and search and replace sort_key to
3041 2001-12-01 Robert Collins <rbtcollins@hotmail.com>
3043 * package_source.cc (packagesource::set_canonical): Filename was out by one.
3045 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
3047 * Makefile.in (OBJS): Remove category_list - it's not needed.
3048 * README: More wishlist updates.
3049 * category.cc (Category::Category): Initialise new members.
3050 (Categorycmp): New function.
3051 * category.h (Category): New member key for template use.
3052 * category_list.cc: Remove.
3053 * category_list.h: Remove.
3054 (Categorycmp): New function prototype.
3055 * choose.cc: Remove category_list - not needed.
3056 (set_action): Only show the 'source' option when the source is actually
3058 (add_required): Fix recursion limiter to 5.
3059 (fill_missing_category): Use list access.
3060 (default_trust): Ditto.
3061 (pick_line::paint): Ditto.
3062 (_view::init_headers): Ditto.
3063 (_view::insert_pkg): Ditto.
3064 (_view::insert_category): Ditto.
3065 (_view::click): Ditto.
3066 (set_view_mode): Ditto.
3068 * cygpackage.h: Remove category_list - not needed.
3069 * geturl.cc (get_url_to_string): Fix null byte insertion.
3070 * inipatse.y: Remove category_list - not needed.
3071 (categories): Use list access.
3072 * package_db.cc: Ditto.
3073 * package_db.h: Remove category_list - not needed.
3074 (packagedb): Use the list template for categories.
3075 * package_meta.cc (add_category): Ditto.
3076 * package_meta.h (CategoryPackage): Link to the category as well.
3077 (packagemeta): Use a list of CategoryPackages instead of Categories
3078 for more memory efficient cross-referencing.
3080 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
3082 * package_db.cc (packagedb::flush): Write a canonical version for all packages
3083 irrespective of the media they were installed from.
3085 2001-11-29 Robert Collins <rbtcollins@hotmail.com>
3087 * Makefile.in (OBJS): Add package_source and rfc1738.
3088 * README: Wishlist update.
3089 * category_list.cc (register_category): Use references.
3090 * category_list.h (CategoryList): Ditto.
3091 * choose.cc (isinstalled): Remove.
3092 (pkgtrustp): New macro.
3093 (set_action): Use packagemeta.
3094 (add_required): Ditto.
3095 (choose_caption): Example package to choose caption, rather than state flags.
3096 (check_existence): Remove.
3097 (set_existence): Remove old code.
3098 (fill_missing_category): Use packagemeta.
3099 (keep_or_skip): Remove.
3100 (default_trust): Use packagemeta and set trust values directly.
3101 (pick_line::set_line): Use packagemeta.
3102 (_view::insert_pkg): Ditto.
3103 (_view::insert_category): Ditto.
3104 (_view::click): Ditto.
3105 (set_view_mode): Ditto. Also remove "exclude" code.
3106 (create_listview): Use packagemeta.
3107 (dialog_cmd): Ditto.
3108 (getpkgbyname): Remove
3109 (scan2): Use packagemeta. Temporarily comment out the holefinding code.
3110 (read_installed_db): Remove.
3111 (package_sort): Use packagemeta.
3112 (do_choose): Use packagemeta. Don't sort the packages - the db does that.
3113 * choose.h: Use packagemeta.
3114 * cygpackage.cc (cygpackage::cygpackage): Initialise all variables.
3115 (cygpackage::cygpackage): Ditto.
3116 (cygpackage::set_canonical_version): Copy the passed string.
3117 (cygpackage::~cygpackage): Move cleanup code to destroy().
3118 (cygpackage::destroy): New function.
3119 (cygpackage::getfirstfile): Use a separate buffer.
3120 (cygpackage::getnextfile): Ditto.
3121 (cygpackage::Canonical_version): New function.
3122 (cygpackage::set_sdesc): Ditto.
3123 (cygpackage::set_ldesc): Ditto.
3124 * cygpackage.h (cygpackage::Canonical_version): New method.
3125 (cygpackage::set_sdesc): New method.
3126 (cygpackage::set_ldesc): New method.
3127 (cygpackage::SDesc): New method.
3128 (cygpackage::LDesc): New method.
3129 (cygpackage::set_canonical_version): New method.
3130 * desktop.cc: Include packagedb headers.
3131 (make_password_group): Use packagemeta.
3132 * download.cc: Include packagedb headers.
3133 (check_for_cached): New method to find any cached file and fill out the database
3135 (download_one): Take a packagesource, support multiple mirrors.
3136 (do_download): Use packagemeta.
3137 * from cwd.cc: Include packagedb headers.
3138 (found_file): Use packagemeta.
3139 * ini.cc (do_ini): Beginning of multiple-mirror support.
3140 * ini.h (CategoryPackage): Remove.
3141 (Dependency): Remove.
3143 (new_package,getpkgbyname,getpackagecategorybyname,add_category): Remove.
3144 * inilex.l: Support multiple mirrors.
3145 * iniparse.y: Include packagedb headers.
3146 (parser): Use packagemeta.
3147 (new_package): Remove.
3148 (add_correct_version): New function.
3149 (new_requirement): Remove.
3150 (add_category): Remove.
3151 * install.cc (uninstall_one): Use packagemeta.
3152 (install_one_source): New function.
3153 (install_one): Use packagemeta.
3154 (do_install): Use packagemeta.
3155 * io_stream.cc (io_stream::move): Bugfix on move/copy case.
3156 * io_stream_cygfile.cc (io-stream_cygfile::set_mtime): Do not reopen the file
3157 after setting the mtime, it makes no sense, and results in 0 length files.
3158 * io_stream_file.cc (io-stream_file::set_mtime): Ditto.
3159 * list.h: New file, template class for a form of list.
3160 * package_db.cc (packagedb::registerpackage): New function.
3161 * package_db.h (packagedb::npackages ()): New method.
3162 * package_meta.cc (packagemeta::add_version): Use list template.
3163 (packagemeta::set_installed): Ditto.
3164 (packagemeta::add_category): New method.
3165 * package_meta.h: Include necessary headers to parse the class.
3166 (CategoryPackage): New class.
3167 (packagemeta): Initialise all members.
3168 (packagemeta::SDesc): New method.
3169 (packagemeta::Categories): New method.
3170 (packagemeta::add_category): Ditto.
3171 (packagemeta::versions): Change to be a list instance.
3172 * package_source.cc (packagesource::set_canonical): New method.
3173 (packagesource::set_cached): New method.
3174 * package_source.h: Include necessary headers to parse the class.
3176 (packagesource::packagesource): Initialize all members.
3177 (packagesource): Make this class non-abstract.
3178 * package_version.cc (packageversion::packageversion): New method.
3179 * package_version.h (Dependency): New class.
3180 (packageversion::Canonical_vesion): New method.
3181 (packageversion::SDesc): New method.
3182 (packageversion::LDesc): New method.
3183 (packageversion::new_requirement): Ditto.
3184 (packageversion::srcpicked, binpicked): What to install.
3185 (packageversion::src, bin): Installation source data.
3186 * rfc1738.cc: New file. Escapes special characters in URL's.
3189 2001-11-26 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3191 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Stop header parsing when
3192 SimpleSocket::gets() returns a zero-length string, so that we
3193 don't end up eating the entire stream thinking it's all header info.
3195 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
3197 * install.cc (badrename): Remove.
3198 (do_install): Use packagedb flush method to write /etc/setup/installed.db.
3199 * io_stream.cc (io_stream::move_copy): New method.
3200 (io_stream::move): New method.
3201 * io_stream.h (io_stream): New methods move and move_copy.
3202 * io_stream_cygfile.cc (io_stream_cygfile::move): New method.
3203 * io_stream_cygfile.h (io_stream_cygfile): New method move.
3204 * io_stream_file.cc (io_stream_file::move): New method.
3205 * io_stream_file.h (io_stream_file): New method move.
3206 * package_db.cc (packagedb::flush): New method.
3207 * package_db.h (packagedb): New method flush.
3209 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
3211 * Makefile.in (OBJS): Add package_version.
3212 * ategory.cc (Category::Category): Update constructors.
3213 * category_list.cc (CategoryList::register_category): Insert correctly.
3214 * choose.cc: Include package_version.h, not package.h.
3215 * cygpackage.cc: Ditto.
3216 (cygpackage::uninstall): New method.
3217 * cygpackage.h (cygpackage): Rename genericpackage to packageversion.
3218 New method uninstall.
3219 * hash.cc (add, has, enumerate): Change prototype to be accurate.
3220 * hash.h (hash): Change prototypes to be accurate.
3221 * ini.h (_Info): New parameterless constructor.
3222 (CategoryPackage): New constructor.
3224 * install.cc: Don't include unneeded headers.
3225 Include package database headers.
3226 (hash::add_subdirs): Remove.
3227 (uninstall_one): Use packagemeta->uninstall to perform the uninstallation.
3228 Don't uninstall source packages.
3229 (do_install): Just can uninstall_one once as we ignore source packages now.
3230 Don't copy the installed.old database accross, instead iterate through the
3231 packagedb packages list and write the isntalled packages out.
3232 * package_db.cc: Include package_version.h, not package.h.
3233 (packagedb::packagedb): Never let db be undefined.
3234 Record the installation filename, so we can reconstruct installed.db.
3235 (packagedb::addpackage): Insert packages in alpha sorted order.
3236 (packagedb::categories): Initialise correctly.
3237 * package_meta.cc: Include win32 and mount headers as a workaround to
3238 current io_stream limitations. Include a TODO about that.
3239 (standard_dirs): New, from install.cc.
3240 (hash::add_subdirs): New, from install.cc.
3241 (packagemeta::set_installed): Rename genericpackage to packageversion.
3242 (packagemeta::uninstall): New method.
3243 * package_meta.h: Rename genericpackage to packageversion.
3244 (packagemeta): Update constructor.
3245 (add_version, set_installed): Rename genericpackage to packageversion.
3246 (uninstall): New method.
3247 (installed_from): New member.
3248 * package_source.cc: New file.
3249 * package_source.h: New file.
3250 * package_version.cc: New file.
3251 * package_version.h: New file.
3252 * package.cc: Removed.
3253 * package.h: Removed.
3255 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
3257 * Makefile.in (OBJS): Add category.o and category_list.o.
3258 * category.h: New file.
3259 * category.cc: New file.
3260 * category_list.h: New file.
3261 * category_list.cc: New file.
3262 * choose.cc: Include category headers.
3263 (fill_missing_category): Use package_db to access global categories.
3264 (_view::insert_pkg): Ditto.
3265 (_view::insert_category): Ditto.
3266 (set_view_mode): Ditto.
3267 (getcategorybyname): Remove.
3268 * cygpackage.h: Include category_list.h to parse this correctly.
3269 (cygpackage): New virtual &Categories.
3270 * ini.h (_CategoryPackage): More C to C++ conversion.
3272 (getcategorybyname): Remove.
3273 (register_category): Remove.
3274 * iniparse.y: Include package db and category headers.
3275 (categories): Use package_db to access global categories.
3277 (ncategories): Remove.
3278 (register_category): Remove.
3279 * package.h: New virtual &Categories.
3280 * package_db.cc (packagedb::packagedb): Don't read the installed db twice.
3281 (packagedb::categories): Declare.
3282 * package_db.h (packagedb): New member categories for global categories list.
3284 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
3286 * choose.h: Don't include ini.h
3287 * ini.h: Allow pure c++ in the header file.
3289 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
3291 * install.cc (do_install): Write a version 2 installed.db file.
3292 * package_db.cc (packagedb::packagedb): Read version 1 and 2 installed.db files.
3294 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
3296 * Makefile.in (OBJS): Add package abstraction objects.
3297 * choose.cc: Include package abstraction headers.
3298 (read_installed_db): Use packagedb class and ignore installed sources.
3299 * cygpackage.cc: New file.
3300 * cygpackage.h: New file.
3301 * filemanip.h (get_file_size): Use unixy types.
3302 * package.h: New file.
3303 * package.cc: New file.
3304 * package_db.cc: New file.
3305 * package_db.h: New file.
3306 * package_meta.cc: New file.
3307 * package_meta.h: New file.
3309 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
3311 * REAME: Updates to wishlist.
3313 2001-11-16 Robert Collins <rbtcollins@hotmail.com>
3315 * README: Updated and added my list of wishlist and todo items.
3317 2001-11-14 Robert Collins <rbtcollins@hotmail.com>
3319 * Makefile.in (OBJS): Include io_stream_memory in setup.exe.
3320 * archive_tar.cc (archive_tar::write): New prototype.
3321 (archive_tar::seek): New method.
3322 * archive.h (archive_tar_file): Update write() and add seek().
3323 (archive_tar): Ditto.
3324 * archive_tar_file.cc (archive_tar_file::write): New prototype.
3325 (archive_tar_file::seek): New method.
3326 * compress_bz.cc (compress_bz::write): New prototype.
3327 (compress_bz::seek): New function.
3328 * compress_bz.h (compress_bz): Update write() and add seek().
3329 * compress_gz.cc (compress_gz::write): New prototype.
3330 (compress_gz::seek): New function.
3331 * compress_gz.h (compress_gz): Update write() and add seek().
3332 * geturl.cc: Include io_stream headers.
3334 (get_url_to_string): Use a io_stream_memory buffer instead of GUBuf.
3335 * io_stream.h (io_stream_seek_t): New enum.
3336 (io_stream): Update write() and add seek().
3337 * io_stream_cygfile.cc (io_stream_cygfile::write): New prototype.
3338 (io_stream_cygfile::seek): New function.
3339 * io_stream_cygfile.h (io_stream_cygfile): Update write() and add seek().
3340 * io_stream_file.cc (io_stream_file::write): New prototype.
3341 (io_stream_file::seek): New function.
3342 * io_stream_file.h (io_stream_file): Update write() and add seek().
3344 2001-11-13 Brian Keener <bkeener@thesoftwaresource.com>
3346 * localdir.cc: Add headers unistd.h and port.h.
3347 (save_local_dir): Expand search logic to include local directory for
3348 location of file last-cache.
3349 (dialog_cmd): Skip IDD_ROOT when downloading and use Back button.
3350 (do_local_dir): Expand search logic to include local directory for file
3352 * res.rc (IDD_CHOOSE_DIALOG): Add hotkey to View button.
3353 * Source.cc (dialog_cmd): Skip IDD_ROOT if select Download from
3355 (do_source): Default to Install from Internet on first entry or
3356 previous selection if backing up from IDD_ROOT or IDD_LOCAL_DIR.
3358 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
3360 * choose.cc (find_tar_ext): Only match at the end of the string.
3361 (getpkgbyname): Prevent NULL pointer dereference.
3363 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
3365 * Makefile.in (CFLAGS): Add warnings and -Werr.
3366 (WARNONLY_FLAGS): For sources that produce (harmless) errors no matter what.
3367 (OBJS): Add io_stream class' objects.
3368 (autoload.o): Use WARNONLY_FLAGS.
3370 (iniparse.o): Ditto.
3371 * archive.cc: New file.
3372 * archive.h: New file.
3373 * archive_tar.cc: New file.
3374 * archive_tar.h: New file.
3375 * archive_tar_file.cc: New file.
3376 * autoload.c: Fix compiler warnings (unused, deprecated conversion).
3377 * choose.cc: Use io_stream.h, not mount.h.
3379 (find_tar_ext): Rewritten to use strstr, and to accept .tar as an extension.
3380 (read_installed_db): Use io_streams.
3381 * choose.h: Run indent.
3382 * compress.cc: New file.
3383 * compress.h: New file.
3384 * compress_bz.cc: New file.
3385 * compress_bz.h: New file.
3386 * compress_gz.cc: New file.
3387 * compress_gz.h: New file.
3388 * concat.cc: Run indent.
3389 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3390 * concat.h: Run indent.
3391 * desktop.cc: Run indent.
3392 Include mklink2.h rather than redefining by hand.
3393 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3394 (etc_profile): Fix compiler warning (deprecated conversion).
3395 (make_link): Fix compiler warning (deprecated conversion).
3396 Tidy up use of args variable - consolidate into argbuf.
3397 (start_menu): Fix compiler warning (deprecated conversion).
3398 (desktop_icon): Fix compiler warning (deprecated conversion).
3399 (make_etc_profile): Fix compiler warning (deprecated conversion).
3400 (uexists): Fix compiler warning (deprecated conversion).
3401 (check_desktop): Fix compiler warning (deprecated conversion).
3402 (check_startmenu): Fix compiler warning (deprecated conversion).
3403 * dialog.cc: Run indent.
3404 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3405 (fatal): Fix compiler warning (deprecated conversion).
3406 * dialog.h: Run indent.
3407 * diskfull.cc: Run indent.
3408 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3409 * download.cc: Run indent.
3410 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3411 (download_one): Fix compiler warning (signed vs unsigned comparison).
3412 * filemanip.h: Run indent.
3413 * find.cc: Run indent.
3414 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3415 (find): Fix compiler warning (deprecated conversion).
3416 * find.h: Run indent.
3417 * fromcwd.cc: Run indent.
3418 * geturl.cc: Run indent.
3419 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3420 (dialog_cmd): Return a value.
3421 (dialog_proc): Remove unused variables.
3423 (get_url_to_file): Fix compiler warning (deprecated conversion).
3424 * geturl.h: Run indent.
3425 * hash.cc: Run indent.
3426 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3427 * hash.h: Run indent.
3428 * ini.cc: Run indent.
3430 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3431 (do_ini): Use io_streams for local io.
3432 * ini.h: Run indent.
3433 * inilex.l (ignore_line): Fix compiler warning (is not a prototype).
3434 Fix compiler warning (brackets for truth assignment).
3435 * install.cc: Run indent.
3436 Fix compiler warning (/* in comment).
3438 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3439 (dialog_cmd): Return a value.
3440 (dialog_proc): Return a value.
3441 (start_tics): Deleted - was unused.
3442 (badrename): Fix compiler warnings (unused, deprecated conversion).
3443 (standard_dirs): Fix compiler warning (deprecated conversion).
3445 (uninstall_one): Convert to io_streams.
3446 (install_one): Convert to io_streams.
3447 (do_install): Convert to io_streans.
3448 Fix compiler warning (deprecated conversion).
3449 * io_stream.cc: New file.
3450 * io_stream.h: New file.
3451 * io_stream_cygfile.cc: New file.
3452 * io_stream_cygfile.h: New file.
3453 * io_stream_file.cc: New file.
3454 * io_stream_file.h: New file.
3455 * localdir.cc: Run indent.
3457 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3458 (get_root_dir_now): Remove.
3459 (save_local_dir): Convert to io_streams.
3460 (dialog_cmd): Return a value.
3461 (do_local_dir): Convert to io_streams.
3462 (log.cc): Run indent.
3463 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3464 (log): Fix compiler warning (deprecated conversion).
3465 (log_save): Fix compiler warning (deprecated conversion).
3466 * log.h: Run indent.
3467 (log): Fix compiler warning (deprecated conversion).
3468 (log_save): Fix compiler warning (deprecated conversion).
3469 * main.cc: Run indent.
3470 Don't include "netio.h".
3471 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3472 (netio_test): Remove.
3473 (sid_auth): Fix compiler warning (partially bracketed initialiser).
3474 (WinMain): Return a value.
3475 * mkdir.cc: Run indent.
3476 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3477 * mklink2.c: Run indent.
3478 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3479 (mkcygsymlink): New function.
3480 * mklink2.h: New file.
3481 * mount.cc: Run indent.
3482 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3483 (create_mount): Remove unused variables.
3484 (cygpath): Fix compiler warning (signed vs unsigned comparison).
3485 * mount.h: Run indent.
3486 * msg.cc: Run indent.
3487 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3488 (msg): Fix compiler warning (deprecated conversion).
3489 (mbox): Fix compiler warning (deprecated conversion).
3490 * msg.h: Run indent.
3491 (msg): Fix compiler warning (deprecated conversion).
3492 * net.cc: Run indent.
3493 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3494 (dialog_cmd): Return a value.
3495 * netio.cc: Run indent.
3496 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3497 (auth_cmd): Return a value.
3498 * netio.h: Run indent.
3499 * nio-file.cc: Run indent.
3500 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3501 (NetIO_File::NetIO_File): Fix compiler warning (deprecated conversion).
3502 * nio-file.h: Run indent.
3503 * nio-ftp.cc: Run indent.
3504 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3505 * nio-ftp.h: Run indent.
3506 * nio-http.cc: Run indent.
3507 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3508 * nio-http.h: Run indent.
3509 * nio-ie5.cc: Run indent.
3510 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3511 * nio-ie5.h: Run indent.
3512 * other.cc: Run indent.
3513 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3514 (dialog_cmd): Return a value.
3515 * port.h: Run indent.
3516 * postinstall.cc: Run indent.
3517 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3518 (cmd): Fix compiler warning (deprecated conversion).
3519 (eun): Fix compiler warning (deprecated conversion).
3520 * root.cc: Run indent.
3521 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3522 * simpsock.cc: Run indent.
3523 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3524 * simpsock.h: Run indent.
3525 * site.cc: Run indent.
3527 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3528 (get_root_dir_now): Remove.
3529 (save_site_url): Convert to io_streams.
3530 (dialog_cmd): Return 0.
3531 (get_initial_list_idx): Convert to io_streans.
3532 * source.cc: Run indent.
3533 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3534 (check_if_enable_next): Remove.
3535 (load_dialog): Remove unused variables.
3536 (save_dialog): Ditto.
3537 (dialog_cmd): Return a value.
3538 * splash.cc: Return a value.
3539 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3540 (dialog_cmd): Return a value.
3541 * state.cc: Run indent.
3542 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3543 * state.h: Run indent.
3547 2001-11-12 Christopher Faylor <cgf@redhat.com>
3549 * desktop.cc (start_menu): Change start menu name to "Cygwin".
3550 (check_startmenu): Ditto.
3552 2001-11-11 Christopher Faylor <cgf@redhat.com>
3554 * choose.cc (parse_filename): Finish reorganization by correctly
3555 decrementing p in memmove.
3557 2001-11-11 Christopher Faylor <cgf@redhat.com>
3559 * choose.cc (parse_filename): Reorganize code to work around gcc
3560 optimization problem.
3562 2001-11-09 Gareth Pearce <tilps@hotmail.com>
3564 * choose.cc (set_action): Allow skip as an option for installed
3565 packages that have version number not listed in setup.ini.
3567 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
3569 * choose.cc (set_cation): Backout last change.
3570 (choose_caption): Ditto.
3572 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
3574 * ini.h (actions): Remove - transferred to choose.h.
3576 * choose.h: Protect class's from "C" compilers.
3577 (actions): New enum, from ini.h. This may not be the 'right' place
3578 but that place doesn't exist yet.
3579 (_views): New enum, from ini.h.
3580 * choose.cc (set_action): Handle installed packages with a version not in
3582 (choose_caption): Ditto.
3583 * iniparse.y: Rearrange header order to handle new ini.h.
3585 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
3587 * ini.h (_Info): Fix compiler warnings (signed vs unsigned comparison).
3588 (registry_category): Fix compiler warning (deprecated conversion).
3589 * iniparse.y (registry_category): Ditto.
3590 * choose.cc (cvsid): Fix compiler warnings (unused, deprecated conversion).
3591 (add_requried): Remove unused variable.
3592 (choose_caption): Handle all enumeration values via a default.
3593 (paint): Fix compiler warnings (unused, deprecated conversion).
3594 (scroll_common): Fix compiler warnings (unused, signed vs unsigned comparison).
3595 (list_clicK): Fix compiler warnings (signed vs unsigned comparison).
3596 (note_width): Fix compiler warnings (deprecated conversion).
3597 (keep_or_skip): Fix compiler warnings (unused).
3598 (_view::mode_caption): Fix compiler warnings (deprecated conversion).
3599 (set_view_mode): Fix compiler warnings (unused).
3600 (create_listview): Fix compiler warnings (unused, incorrect format, reaches
3602 (dialog_proc): Fix compiler warnings (unused).
3603 (read_installed_db): Fix compiler warnings (unused, deprecated conversion).
3604 * choose.h (_header): Fix compiler warnings (deprecated conversion).
3607 2001-11-08 Pavel Tsekov <ptsekov@syntrex.com>
3609 * simpsock.h (SimpleSocket::invalidate): Declare new method.
3610 * simpsock.cc (SimpleSocket::invalidate): Implement new method.
3611 (SimpleSocket::SimpleSocket): Initialize buf to zero. Do not allocate
3612 memory for buf in the constructor.
3613 (SimpleSocket::~SimpleSocket): Use SimpleSocket::invalidate().
3614 (SimpleSocket::printf): Use SimpleSocket::write() instead of send().
3615 (SimpleSocket::write): Check object consistency - return -1 on error.
3616 invalidate() the object on socket write error.
3617 (SimpleSocket::fill): Check object consistency - return -1 on error.
3618 invalidate() the object if socket read error is encountered and there
3619 is no more data available in the internal read buffer.
3620 Allocate memory for the internal read buffer.
3621 (SimpleSocket::gets): Return zero (NULL pointer) if error is encountered
3622 during fill() and no more data is available in the internal read buffer.
3623 (SimpleSocket::read): Check object consistency - return -1 on error.
3624 invalidate() the object if socket read error is encountered.
3625 * nio-ftp.cc (NetIO_FTP:NetIO_FTP): Allow 125 as valid response code to
3626 the RETR command (fix for MS IIS ftp server 5 - possibly others too).
3627 (NetIO_FTP::ok): Check if the SimpleSocket object is ok().
3628 (NetIO_FTP::read): Use NetIO_FTP::ok().
3629 * nio-http.cc: Check for valid return value of SimpleSocket::gets().
3630 (NetIO_HTTP::ok): Check if the SimpleSocket object is ok().
3632 2001-11-09 Robert Collins <rbtcollins@hotmail.com>
3634 * simpsock.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3635 (SimpleSocket::SimpleSocket): Avoid compiler warnings (deprecated conversion).
3636 (SimpleSocket::printf): Ditto.
3637 (SimpleSocket::write): Ditto.
3638 * simpsock.h (SimpleSocket): Avoid compiler warnings for constructor,
3640 * nio-ftp.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3641 (NetIO_FTP::NetIO_FTP): Remove unused variable done.
3642 * nio-http.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3644 2001-11-07 Charles Wilson <cwilson@ece.gatech.edu>
3646 * geturl.cc (get_url_to_string): clean up memory leak
3647 (get_url_to_file): ditto
3649 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
3651 * localdir.cc (dialog_cmd): Go back to IDD_ROOT in every case.
3652 * source.cc (dialog_cmd): Go forward to IDD_ROOT in every case.
3654 2001-11-06 Pavel Tsekov <ptsekov@syntrex.com>
3656 * fromcwd.cc (found_file): Free() memory containing the version and
3657 filepath information for a given package, before replacing the pointers which
3658 reference this memory.
3660 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
3662 * fromcwd: Fix compiler warnings for cvsid.
3663 (canonicalize_version): Fix compilter warnings.
3664 (do_fromcwd): Ditto.
3665 * version.h: Fix compiler warnings for canonicalize_version.
3667 2001-11-03 Robert Collins <rbtcollins@hotmail.com>
3669 * res.rc (IDD_CHOOSE): Move the view caption to the right hand side.
3671 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3673 * res.rc (IDD_CHOOSE): Tweak for use on a 640x480 screen.
3675 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3677 * choose.cc (set_action): Correctly allow skip for any uninstalled package.
3679 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3681 * choose.cc (default_trust): Change the "Required" forced install category to
3684 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3686 * choose.cc: Ran indent.
3687 (set_action): When the requested trust level is missing and the level was not
3688 user requested, set the action to ACTION_SAME_CURR.
3690 2001-11-01 Christopher Faylor <cgf@redhat.com>
3692 * Makefile.in (mingw_getopt.o): Fix typo in non-verbose compilation.
3694 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3696 * choose.cc (_view::init_headers): Resync with the paint logic.
3698 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3700 * choose.cc (add_required): Allow SKIP and SRC_ONLY for currently installed
3703 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3705 * choose.cc (default_trust): Autoset currently installed packages per the user's
3706 selection of prev/curr/exp.
3708 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3710 * splash.cc (dialog_proc): Return TRUE as specified in the WIN32 API.
3712 2001-11-02 Pavel Tsekov <ptsekov@syntrex.com>
3714 * geturl.cc (is_showing): Remove.
3715 (is_local_install): New static variable. Controls whether the
3716 progress dialog and the supporting thread will be created.
3717 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the WIN32 API.
3718 (init_dialog): Remove usage of SetForegroundWindow and is_showing.
3719 This prevents the progress dialog to gain control over the
3720 application and fixes the "setup.exe going to background" problem.
3721 (progress): Use is_local_install.
3722 (get_url_to_string): Set is_local_install.
3723 (dismiss_url_status_dialog): Use is_local_install.
3724 * install.cc (dialog_proc): Return TRUE as specified in WIN32 API.
3725 (init_dialog): Remove usage of SetForegroundWindow.
3726 This prevents the progress dialog to gain control over the
3727 application and fixes the "setup.exe going to background" problem.
3729 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3731 * choose.cc (list_click): Change r to row for clarity.
3732 When we shrink the list below 1 page, scroll to the top of the list.
3733 (_view::click): Return the actual change for contractions.
3734 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the Win32 API.
3736 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3738 * choose.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
3739 * localdir.cc: Ran indent.
3740 (get_root_dir_now): New function.
3741 (save_local_dir): New function.
3742 (dialog_cmd): Use it and swap cygwin root selection and local dir selection order.
3743 (do_local_dir): If there is a saved local dir, read it in.
3744 * net.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
3745 * root.cc (dialog_cmd): Ditto.
3746 * source.cc (dialog_cmd): Ditto.
3748 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
3750 * choose.cc(list_vscroll): Return 0 as required by win32.
3751 (list_hscroll): Ditto.
3752 (list_click): Ditto.
3754 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
3758 * main.cc(WinMain): Use __argv to retrieve command line parameters.
3759 * Makefile,in: Remove argv.o.
3761 2001-11-01 Matt Hargett <matt@use.net>
3763 * geturl.cc (progress): Change int to unsigned int to eliminate
3765 * (get_url_to_string): Check for NULL pointer.
3766 * mount.cc (find2): Use free instead of delete for malloc'd
3768 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Fix memory leak.
3770 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
3772 * choose.cc(_view::insert_under): Handle linen > nlines and lines[linen] with neither
3773 a package nor a category. The lines[linen] bug was reported by Matt (matt@usa.net).
3774 (read_installed_db): Bugfix for testing whether a package has a source tarball.
3775 Reported by Matt (matt@usa.net).
3776 * geturl.cc(dialog): Rename gw_dialog to local_gw_dialog to avoid programmer
3777 confusion and lint errors. Reported by Matt (matt@usa.net).
3779 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
3781 * argv.cc: New file, converts arguments for -mwindows programs. (Simplified derivation
3784 * Makefile,in: Add argv.o and mingw_getopt.o to setup.exe object list.
3785 Add mingw_getopt.o build rule.
3786 * main.cc(WinMain): Initialise argv and argc for use by getopt.
3788 2001-10-27 Christopher Faylor <cgf@redhat.com>
3790 * res.rc: Rearrange info on top line slightly.
3792 2001-10-27 Christopher Faylor <cgf@redhat.com>
3794 * desktop.cc (make_passwd_group): Move file creation earlier in the
3795 process to ensure that passwd-grp.bat reflects desired operation.
3797 2001-27-10 Trevor Forbes <t4bs@hotmail.com>
3799 * postinstall.cc (each): Remove "*.done" file else rename will fail.
3801 2001-10-16 Christopher Faylor <cgf@redhat.com>
3803 * res.rc: Oops. Take 640x480 screen size into account.
3805 2001-10-16 Christopher Faylor <cgf@redhat.com>
3807 * res.rc: Enlarge chooser screen.
3809 2001-10-12 Christopher Faylor <cgf@redhat.com>
3811 * Makefile.in: Accomodate changes to w32api_include macro.
3813 2001-10-12 Christopher Faylor <cgf@redhat.com>
3815 * Makefile.in: Use correct flags for windres.
3817 2001-10-12 Christopher Faylor <cgf@redhat.com>
3819 * Makefile.in (CFLAGS): Remove -nostdinc from CFLAGS.
3821 2001-10-12 Christopher Faylor <cgf@redhat.com>
3823 * choose.cc (pick_line::paint): Reorganize after botched patch.
3825 2001-10-12 Christopher Faylor <cgf@redhat.com>
3827 * choose.cc (pick_line::paint): Add missing declaration.
3829 2001-10-10 Ralf Habacker <Ralf.Habacker@freenet.de>
3831 * choose.cc (pick_line::paint): Add package name to sdesc for display.
3833 Wed Sep 26 21:39:00 Robert Collins rbtcollins@hotmail.com
3835 * choose.cc (_view::insert_pkg): Correctly exit loop.
3836 * iniparse.y (register_category): Always insert new categories.
3838 Fri Sep 21 13:56:32 2001 Christopher Faylor <cgf@cygnus.com>
3840 * inilex.l (yylex): For comments, eat all characters up to, but not
3843 Sun Aug 26 12:50:01 2001 John Marshall <jmarshall@acm.org>
3845 * fromcwd.cc (found_file): Use correct package name when adding an
3846 unknown package rather than random stack garbage.
3848 Sun Aug 12 14:25:21 2001 Christopher Faylor <cgf@cygnus.com>
3850 * desktop.cc (make_passwd_group): .bat files need \r\n endings.
3852 Wed Aug 8 13:53:47 2001 Christopher Faylor <cgf@cygnus.com>
3854 * desktop.cc (etc_profile): Leave environment variables untouched.
3856 2001-08-07 Corinna Vinschen <corinna@vinschen.de>
3858 * autoload.c: Add dynamic load statements for NT/W2K
3859 advapi32 functions not available in 9x/ME.
3860 * main.cc (set_default_dacl): New function.
3861 (WinMain): Call `set_default_dacl' if running on NT/W2K.
3863 Sat Aug 4 21:35:53 2001 Christopher Faylor <cgf@cygnus.com>
3865 * ini.h (_CategoryPackage): Change pkg field to pkgname for
3867 * choose.cc: Use pkgname field when referencing _CategoryPackage
3869 (fill_missing_category): Don't add excluded packages.
3870 (default_trust): Ditto.
3871 (_view::insert_pkg): Ditto.
3872 * iniparse.y (register_category): Use consistent variable name.
3874 2001-07-09 Egor Duda <deo@logos-m.ru>
3876 * choose.cc: Use system foreground color for text output.
3878 Sat Jul 7 00:40:28 2001 Christopher Faylor <cgf@cygnus.com>
3880 * choose.cc (set_action): Use default trust for determining reinstall
3882 (default_trust): Set default trust.
3883 (pick_line::paint): Allow source selection when reinstalling or
3886 Fri Jul 6 18:08:49 2001 Christopher Faylor <cgf@cygnus.com>
3888 * choose.cc (isinstalled): Modify to properly accomodate special case
3890 (set_action): Check downloaded components, not installed components if
3892 (set_existence): Always include full list of files when "download
3895 Fri Jul 6 00:37:05 2001 Christopher Faylor <cgf@cygnus.com>
3897 * choose.cc (pick_line::paint): Properly display "na" field when no
3900 Thu Jul 5 00:34:23 2001 Christopher Faylor <cgf@cygnus.com>
3902 * choose.cc (scan2): Ensure that older versions do not show up in
3905 Mon Jul 2 15:47:59 2001 Christopher Faylor <cgf@cygnus.com>
3907 * choose.cc (set_action): Allow "Skip" action if trust != installed.
3908 * res.rc: Fix copyright.
3910 Sat Jun 30 14:05:21 2001 Michael A Chase <mchase@ix.netcom.com>
3912 * res.rc (IDD_LOCAL_DIR): Change caption to match the other dialog
3914 (IDD_CHOOSE): Adjust horizontal size so package names are visible.
3916 * choose.cc: Restore some more changes from 2001-06-25, throughout.
3917 (paint): Wrap some excessively long lines.
3918 (pick_line::paint): Ditto. Move the arrow in the "Current" column
3919 right to where it belongs. Move the source checkbox slightly to the
3921 (do_choose): List categories and required packages in setup.log.full.
3923 Sat Jun 30 23:04:59 2001 Christopher Faylor <cgf@cygnus.com>
3925 * choose.cc (scan2): Restore source scanning eliminated by previous checkin.
3927 Sat Jun 30 15:18:33 2001 Christopher Faylor <cgf@cygnus.com>
3929 * ini.h (struct _Info): Add "derived" element.
3930 * choose.cc (scan2): Try to place unknown tar files into proper slot
3931 when package exists in setup.ini but tar file does not.
3933 Sat Jun 30 13:39:00 2001 Robert Collins <rbtcollins@hotmail.com>
3935 * choose.cc (create_listview): Call set_view_mode with VIEW_CATEGORY.
3936 (do_choose): Log the first category name.
3938 Fri Jun 29 23:07:44 2001 Christopher Faylor <cgf@cygnus.com>
3940 *ini.h: Reapply 2001-06-25 changes.
3941 * choose.cc (add_required): Ditto. Default to "Keep" state if
3942 UNINSTALL and product is installed. Default to curr state if SKIP,
3944 (keep_or_skip): New function. Returns skip or keep state depending on
3945 installed state of package.
3946 (default_trust): Use keep_or_skip to set state.
3947 (_view::insert_pkg): Use calloc to allocate lines.
3948 (set_view_mode): Adapt 2001-06-25 change to set_full_list here.
3950 Sat Jun 30 11:01:00 2001 Robert Collins <rbtcollins@hotmail.com>
3952 * choose.cc: Remove globals full_list, headers, package_indexes and
3954 Add globals cat_headers, pkg_headers and chooser.
3955 (add_required): New function.
3956 (paint): Use the chooser for header details.
3957 Call into the chooser to paint each line.
3958 (list_click): Use new global variables.
3959 Call into the chooser to handle the click.
3960 Repaint the entire view if packages have been added or removed.
3961 (note_width): Get passed a headers struct rather than using a global
3963 (fill_missing_category): New function.
3964 (default_trust): Skip non-"Required" or "Misc" packages.
3965 (pick_line::set_line (Package *)): New function.
3966 (pick_line::set_line (Category *)): New function.
3967 (pick_line::paint): New function.
3968 (pick_line::click): New function.
3969 (_view::_view): New function.
3970 (_view::set_view_mode): New function.
3971 (_view::mode_caption): New function.
3972 (_view::set_headers): New function.
3973 (_view::init_header): New function.
3974 (_view::insert_pkg): New function.
3975 (_view::insert_category): New function.
3976 (_view::insert_at): New function.
3977 (_view::insert_under): New function.
3978 (_view::clear_view): New function.
3979 (viewsplusplus): New function.
3980 (_view::client): New function.
3981 (set_view_mode): Use new chooser functionality.
3982 (set_full_list): Use new global variables.
3983 (create_listview): Instantiate chooser.
3984 Remove all hardcoded headers[] code.
3985 (dialog_cmd): On trust changes, check dependencies.
3986 (getcategorybyname): New function.
3987 (getpackagecategorybyname): New function.
3988 (scan2): Use case-insensitive package comparison.
3989 (do_choose): Use fill_missing_category ().
3990 Show some category data.
3991 * ini.h: Protect against multiple inclusion.
3993 (_CategoryPackage): New struct.
3994 (_Category): New struct.
3995 (_Package): Change category to Category * from char *.
3996 (extern Category category): New global variable.
3997 (extern in ncategories): Ditto.
3998 (getcategorybyname): New prototype.
3999 (catpackagecategorybyname): New prototype.
4000 (register_category): New prototype.
4001 (add_category): New prototype.
4002 * iniparse.y: Parse multiple categories per package.
4003 (category): New global variable.
4004 (ncategories): New global variable.
4005 (new_package): Compare package against NULL, not 0.
4006 (new_requirement): Source formatting fix.
4007 (register_category): New function.
4008 (add_category): New function.
4009 * res.rc: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
4010 IDC_CHOOSE_VIEWCAPTION: New control.
4011 * resource.h: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
4012 IDC_CHOOSE_VIEWCAPTION: New control.
4013 Increment _APS_NEXT_CONTROL_VALUE.
4015 Mon Jun 25 00:56:37 2001 Michael A Chase <mchase@ix.netcom.com>
4017 * choose.cc (paint): Wrap excessively long lines.
4018 (list_click): Ditto.
4019 (create_listview): Ditto.
4020 (do_choose): Ditto. Replace TABs and remove CRs in lines written to
4021 setup.log.full. Allow "Yes" for source exists in setup.log.full when
4022 installing from local directories.
4024 Mon Jun 25 00:56:37 2001 Christopher Faylor <cgf@cygnus.com>
4026 * choose.cc (set_action): Only clear srcpicked when moving to next
4027 state. Allow source installation if it exists in the current "trust"
4028 state. Don't move to skip state when package is installed.
4029 (list_click): Don't allow source clicking when no source is available.
4030 (set_full_list): Display package when not is_full_action.
4031 * ini.h (is_full_action): Define.
4033 Sun Jun 17 12:06:14 2001 Christopher Faylor <cgf@cygnus.com>
4035 * install.cc (check_for_old_cygwin): New function. First stab at
4036 checking for old cygwin versions.
4037 (do_install): Call check_for_old_cygwin if there were no errors during
4040 Sat Jun 16 11:33:51 2001 Michael A Chase <mchase@ix.netcom.com>
4042 * choose.cc (_Info::_Info): Test _source paramenter for non-NULL rather
4043 than zeroed "source" element.
4045 Fri Jun 15 20:54:43 2001 Christopher Faylor <cgf@cygnus.com>
4047 * choose.cc (scan2): Insert unknown tar archives, found on disk, into
4048 the highest available "hole" in the trust array.
4050 Fri Jun 15 00:20:48 2001 Christopher Faylor <cgf@cygnus.com>
4052 * choose.cc (set_existence): Use pointer method for indexing in trust
4054 (create_listview): Ditto.
4055 (scan2): Ditto. Also, use consistent variable name for indexing into
4057 * ini.h (Package): Reorganize info array for easier scanning.
4059 Fri Jun 15 00:01:51 2001 Christopher Faylor <cgf@cygnus.com>
4061 * choose.cc (isinstalled): Eliminate special download only test.
4062 (set_action): Don't move to next state if in ACTION_SAME range and not
4064 (choose_caption): Display "Retrieve" rather than "Reinstall" when just
4066 (do_choose): Sort packages after all packages have been read.
4067 Accomodate the fact that first element in trust array is empty so that
4068 log files don't report the wrong trust value.
4069 * iniparse.y (new_package): Malloc space for package name or suffer
4072 Thu Jun 14 22:43:59 2001 Robert Collins <rbtcollins@hotmail.com>
4074 * ini.h (Dependency): New structure. Declare new function.
4075 * inilex.l (yylex): Detect new setup.ini options - category and requires.
4076 * iniparse.y: Declare new setup.ini token values.
4077 (yyparse): Parse new token values.
4078 (new_requirement): New function.
4080 Thu Jun 14 22:43:26 2001 Christopher Faylor <cgf@cygnus.com>
4082 * choose.cc (read_installed_db): Eliminate obsolete code.
4084 Thu Jun 14 22:11:53 2001 Christopher Faylor <cgf@cygnus.com>
4086 * choose.cc (set_action): Set trust on "redo".
4087 (_Info::_Info): New constructor.
4088 (read_installed_db): Use new constructor. Use trusts type for
4090 * ini.h (struct _Info): Label struct, add constructor.
4091 (Package): Make installed_ix a type 'trusts.'
4092 * install.cc (uninstall_one): Unset any installed info for current
4094 (install_one): Allocate new Info struct for installed reflecting new
4096 (do_install): Don't output line to installed.db if package is being
4099 Thu Jun 14 20:33:01 2001 Robert Collins <rbtcollins@hotmail.com>
4101 * choose.cc (getpkgbyname): Use consistent method for scanning package
4104 Wed Jun 13 23:33:08 2001 Christopher Faylor <cgf@cygnus.com>
4106 * choose.cc: Add some comments.
4107 (getpkgbyname): Use strcasecmp for comparisons.
4109 Wed Jun 13 16:07:00 2001 Christopher Faylor <cgf@cygnus.com>
4111 * install.cc (do_install): Avoid checking for download action if
4112 package wasn't currently retrieved.
4114 Wed Jun 13 11:27:22 2001 Christopher Faylor <cgf@cygnus.com>
4116 * choose.cc: Eliminate extra array throughout. Use element in package
4117 structure instead. Use pointers rather than array indexes where
4119 (set_action): New function to set next action based on current.
4120 (choose_caption): New function. Returns display caption.
4121 (check_existence): Change arguments. Use pointer to 'info' structure.
4122 (set_existence): Use pointer rather than array index.
4123 (default_trust): Use trusts enum for second argument.
4124 (set_full_list): Honor exclude element in package structure.
4125 (build_labels): Eliminate.
4126 (base): Make global. Use const char * argument.
4127 (get_package_version): Eliminate.
4128 (getpkgbyname): New function.
4129 (read_installed_db): Use parse_filename to get version info.
4130 * desktop.cc (make_passwd_group): Use getpkgbyname function.
4131 * download.cc (get_file_size): const argument.
4132 (do_download): Use is_download_action to determine when something
4133 should be downloaded.
4134 * filemanip.h: Add some functions.
4135 * ini.cc (do_ini): Use NULL rather than 0 for pointer assignment.
4136 * ini.h: Use enums for actions and trusts.
4137 (is_download_action): New macro.
4138 (is_upgrade_action): Ditto.
4139 (is_uninstall_action): Ditto.
4140 (struct Package): Add new fields.
4141 * inilex.l (yylex): Detect new setup.ini options.
4142 * iniparse.y: Declare new tokens.
4143 (yyparse): Detect exclude keyword. Fill out version field even if
4145 (new_package): Use greater granularity when allocating package array to
4146 avoid repeated calls to realloc.
4147 * install.cc (exists): const argument.
4148 (uninstall_one): Take pkg argument.
4149 (install_one): Ditto. Eliminate unneeded arguments which can be
4150 derived from package info.
4151 (do_install): Iterate over package array using a pointer. Use
4152 is_download_action to control when package should be downloaded.
4153 * tar.cc (tar_open): const argument.
4154 * tar.h: Refloect const argument.
4156 2001-05-31 Michael Chase mchase@ix.netcom.com
4158 * main.cc (WinMain): Add setup version to starting setup.log entry
4160 Tue May 29 21:37:58 2001 Yukihiko Sohda <sohda@is.titech.ac.jp>
4162 * inilex.l: Add + to list of valid string characters.
4164 Mon May 28 20:54:50 2001 Christopher Faylor <cgf@cygnus.com>
4166 * Makefile.in: Remove more stuff in the clean target.
4168 Mon May 28 18:24:59 2001 Christopher Faylor <cgf@cygnus.com>
4170 * Makefile.in: Correctly generate iniparse.h.
4172 Tue Mar 6 19:14:00 2001 Corinna Vinschen <corinna@vinschen.de>
4174 * geturl.cc (get_url_to_file): Add parameter `allow_ftp_auth'.
4175 * geturl.h: Change declaration of `get_url_to_file' accordingly.
4176 * netio.cc (NetIO::NetIO): Add parameter `allow_ftp_auth'.
4177 Set member `ftp_auth'.
4178 (NetIO::open): Add parameter `allow_ftp_auth'. Use it in calls
4179 to constructors of derived classes.
4180 (NetIO::get_ftp_auth): New method.
4181 * netio.h: Change class definition accordingly.
4182 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Add parameter `allow_ftp_auth'.
4183 Take global variables `net_ftp_user' and `net_ftp_passwd' into account.
4184 Add code for ftp authentication retry.
4185 * nio-ftp.h: Change class definition accordingly.
4186 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Add parameter `allow_ftp_auth'.
4187 Add code for ftp authentication retry in case of proxy connection.
4188 * nio-http.h: Change class definition accordingly.
4189 * res.rc: Add FTP authentication dialog.
4190 * resource.h: Add new constants used in res.rc.
4191 * state.h: Add variables `net_ftp_user' and `net_ftp_passwd'.
4193 Sun May 27 17:12:23 2001 Christopher Faylor <cgf@cygnus.com>
4195 * res.rc (IDD_SPLASH): Add a copyright year.
4197 Sun May 27 15:42:18 2001 Christopher Faylor <cgf@cygnus.com>
4199 * Makefile.in: Make iniparse.y produce a c++ file.
4200 * choose.cc (set_existence): Revert 2001-05-27 change.
4201 * ini.cc: Remove "C" from declaration of yyparse.
4202 * iniparse.y (yyparse): Fill out version field by default when a binary
4203 install is detected and no version has been set yet.
4204 * install.cc (do_install): Mount things earlier so that we can use
4205 proper mount table settings. Don't remove mounts since they are now
4207 * mount.cc (create_mount): Reread the mount table after establishing a
4209 (read_mounts): Explicitly clear root_here to allow multiple uses of
4210 this function. Ensure that there is no garbage in the table when we've
4211 exhausted all of the mounts in the registry.
4212 (cygpath): Accomodate ./ in path.
4214 Sun May 27 02:59:07 2001 Christopher Faylor <cgf@cygnus.com>
4216 Use parse_filename method to parse filenames throughout. Use
4217 get_root_dir to retrieve the current root directory throughout. Set
4218 const in argument list, where appropriate, throughout.
4219 * choose.cc (set_existence): Detect case of uninstalled package with no
4221 (parse_filename): New function.
4222 * filemanip.h (fileparse): New structure.
4223 * mount.cc (read_mounts): Remember where we found the root mount.
4224 (set_root_dir): New function.
4225 (get_root_dir): Ditto.
4226 * mount.h: Declare new functions.
4227 * site.cc (get_root_dir_now): Renamed from get_root_dir.
4228 (save_site_url): Use new function name.
4229 (get_initial_list_idx): Ditto.
4231 Sat May 26 21:23:59 2001 Christopher Faylor <cgf@cygnus.com>
4233 * choose.cc: Use a constant throughout to deal with chooser icon
4235 * res.rc (IDD_CHOOSE): Increase size of chooser box.
4237 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
4239 * choose.cc (do_choose): Fix incorrect assignment of trust setting to
4240 use when Redownload or Sources Only selected.
4242 Thu May 10 22:35:59 2001 Christopher Faylor <cgf@cygnus.com>
4244 Reformat file after botched patch formatting.
4245 * choose.cc (which_trust): Eliminate variable.
4246 (default_trust): Don't set which_trust.
4247 (do_choose): Use selected trust when reinstalling or installing source.
4249 Thu May 10 21:04:18 2001 Christopher Faylor <cgf@cygnus.com>
4251 Change concat to cygpath throughout.
4252 Change map_filename to cygpath throughout.
4253 * concat.cc (vconcat): New function.
4254 (concat): Use vconcat.
4255 * concat.h: Reflect above.
4256 * install.cc (map_filename): Eliminate.
4257 (install_one): Free dest_file.
4258 * mount.cc (find2): Expect input key to be pointing to mount record.
4259 (in_table): New function.
4260 (is_admin): Move from root.cc.
4261 (read_mounts): New function.
4262 (path_prefix_p): New function.
4263 (cygpath): New function.
4264 * mount.h: Define new functions and structure.
4265 * root.cc (in_table): Move to mount.cc.
4266 (do_root): Call read_mounts to initialize root stuff and mount table.
4267 * site.cc (get_root_dir): Ditto.
4269 2001-05-09 Matt Hargett <matt@use.net>
4271 * Makefile.in: Remove *.rc from clean.
4273 Tue May 8 23:33:38 2001 Christopher Faylor <cgf@cygnus.com>
4275 * choose.cc (scan2): Fix incorrect setting of TRUST_CURR rather than
4276 TRUST_PREV which produced "0" versions.
4278 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
4280 * resource.h: Add new field IDC_CHOOSE_INST_TEXT. Modify
4281 _APS_NEXT_CONTROL_VALUE to account for addition of
4282 IDC_CHOOSE_INST_TEXT.
4283 * res.rc (IDD_CHOOSE): Modify choose dialog to use new field
4284 IDC_CHOOSE_INST_TEXT for screen text. Modify choose Dialog to allow
4285 hot keys to select Prev, Curr, Exp.
4286 * ini.h: Add new actions for ACTION_REDO and ACTION_SRC_ONLY. Modify
4287 define for LOOP_PACKAGES to include new actions ACTION_REDO and
4289 * choose.cc: Add new Trusts for TRUST_REDO and TRUST_SRC_ONLY.
4290 (paint): Modify to check TRUST_SRC_ONLY when determining Bitmap for
4291 source Checkbox to use.
4292 (build_labels): Add logic to allow for selection of Source only
4293 Download/ReDownload/Install/Reinstall and also to Redownload/Reinstall
4294 current version binary.
4295 (dialog_proc): Add conditional display for file selection prompt based
4296 on download vs install using IDC_CHOOSE_INST_TEXT.
4297 (do_choose): Add new logic for TRUST_REDO and TRUST_SRC_ONLY selection
4298 and modify logic for TRUST_UNINSTALL, TRUST_KEEP, and TRUST_NONE to
4299 handle the instance where Source Download/Install was selected. Modify
4300 log file to store appropriate information regarding Action selected and
4301 the new actions that were added (I.E.: ACTION_REDO and
4303 * download.cc: Add include for <unistd.h> and "port.h".
4304 (download_one): Modify parameter list to include the selected action
4305 for the file to be downloaded. Modify size check against expected size
4306 to include check for ACTION_REDO and ACTION_SRC_ONLY. Modify rename of
4307 .tmp file to also remove the destination file if exists due to ability
4308 to redownload source and binary now.
4309 (do_download): Modify to also use ACTION_REDO and ACTION_SRC_ONLY in
4310 calculation of Download Bytes. Modify to also use ACTION_REDO and
4311 ACTION_SRC_ONLY in determining files selected for download.
4312 * install.cc (uninstall_one): Add check to treat a Reinstall like an
4313 upgrade so current version will be uninstalled prior to reinstall.
4314 (do_install): Add logic to handle ACTION_REDO and ACTION_SRC_ONLY for
4315 uninstalling and installing binary and source packages.
4316 * desktop.cc (make_passwd_group): Modify logic to account for a Source
4317 only cygwin install when checking for cygwin to determine need for
4318 mkpasswd and mkgroup.
4320 Mon May 7 23:33:30 2001 Matt Hargett <matt@use.net>
4322 * winsup/cinstall/res.rc: Added accelerators and improved focus order.
4323 Removed WS_DISABLED from "OK" buttons to accomodate default focus
4324 changes in net.cc and source.cc.
4325 * winsup/cinstall/net.cc (dialog_proc): If no radio button is selected,
4326 a default is selected.
4327 * winsup/cinstall/source.cc (dialog_proc): Ditto.
4328 (check_if_enable_next): Removed. No longer needed since a radio button
4329 will always be selected.
4330 (load_dialog): Removed call to check_if_enable_next.
4331 (dialog_cmd): Ditto. Also added default to switch.
4333 Tue Apr 24 23:42:02 2001 Christopher Faylor <cgf@cygnus.com>
4335 * res.rc: Resize affected text.
4337 Tue Apr 24 23:35:31 2001 Christopher Faylor <cgf@cygnus.com>
4339 * net.cc (do_net): Default to direct download.
4340 * res.rc: Move default selections to the top.
4342 2001-04-18 Earnie Boyd <earnie@users.sourceforge.net>
4344 * win32.h: Remove the definitions for _UNION_NAME and _STRUCT_NAME.
4345 Must now include <windows.h> and not the pieces.
4346 * choose.cc (create_listview): Clean up type mismatch problems.
4347 * dialog.h (NEXT(id)): Ditto.
4348 * geturl.cc (dialog): Ditto.
4349 * install.cc (dialog): Ditto.
4350 * splash.cc (load_dialog): Ditto.
4352 Wed Apr 18 18:59:21 2001 Christopher Faylor <cgf@cygnus.com>
4354 * tar.cc (class gzbz): Define dummy virtual functions.
4356 Wed Apr 18 16:01:21 2001 Christopher Faylor <cgf@cygnus.com>
4358 * Makefile.in: Add bz2 include/library support.
4359 * filemanip.h: New file.
4360 * choose.cc (find_tar_ext): New function. Returns TRUE if .tar.gz or
4362 (scan2): Reorganize to use find_tar_ext, accomodating .bz2 extension.
4363 (read_installed_db): Ditto.
4365 * fromcwd.cc (found_file): Ditto.
4366 (do_fromcwd): Ditto.
4367 * tar.cc (class gzbz): New super class for uncompression support.
4368 (gz): New class for gzip support.
4369 (bz): New class for bzip2 support.
4370 (tar_open): Use gzbz class to control file opening.
4371 (tar_ftell): Ditto for returning position in file.
4372 (skip_file): Ditto for reading file.
4373 (tar_next_file): Ditto.
4374 (tar_read_file): Ditto.
4375 (tar_close): Ditto for close.
4377 * zlib/configure.in: Force NM substitution.
4379 * source.cc (do_source): Default to "Install from Internet".
4381 2001-03-16 Brian Keener <bkeener@thesoftwaresource.com>
4383 * nio-file.cc (NetIO_File::NetIO_File): Use `get_file_size' instead of
4385 * choose.cc (list_click): Correct inability to select source code for
4387 (scan2): Modify to skip source tarballs when scanning disk for
4388 installable packages.
4390 2001-03-10 Chris Abbey <chris_abbey@yahoo.com>
4392 * install.cc: install sources into /usr/src instead
4393 of /, also include the sizes of source tarballs
4395 * download.cc: include sizes of source tarballs in
4396 total_download_bytes.
4398 Tue Mar 6 19:31:00 2000 Corinna Vinschen <corinna@vinschen.com>
4400 * download.cc (get_file_size): Remove `static'.
4402 Tue Mar 6 19:11:00 2000 Corinna Vinschen <corinna@vinschen.com>
4404 * tar.cc (tar_open): Use `get_file_size' instead of `stat'.
4406 2001-03-06 Brian Keener <bkeener@thesoftwaresource.com>
4408 * choose.cc (paint): Modify message for nothing to download vs
4409 nothing to install/update based on installation method.
4410 (list_click): Modify to skip versions in selection process if
4411 installing from local directory and installation file does not exist.
4412 Also leaves Source Action set to N/A if the source file does not exist
4413 and installing from local directory.
4414 (check_existence): New method to check current existence of installation
4415 files based on selected installation method.
4416 (set_existence): New method to set the current existence of installation
4417 files based on selected installation method.
4418 (best_trust): Modify decision process for best trust to base decision on
4419 current trust selected (IE: Prev, Curr, or Test), existence of file and
4420 installation method selected.
4421 (default_trust): Add logic to capture the current trust level and the
4422 trust selected for the given package.
4423 (set_full_list): Expand decision criteria for displaying a package in
4424 the selection list to include file existence/non-existence and selected
4425 installation method.
4426 (build_labels): Modify criteria for label addition to include
4427 installation method and file existence/non-existence.
4428 (create_listview): Modify to establish package trust level for each
4429 package before setting up the display list. Also modification to set
4430 current trust button as the default.
4431 (dialog_cmd): Set response for Prev, Curr, Test button push to perform
4432 a reset of the selection list in addition to setting the default trust.
4433 (get_package_version): New method to provide reusable code for
4434 determining the package version from the file name for a specified
4436 (scan2): Modify to use new method get_package_version and
4437 also enhance handling of the build for the structures package and
4439 (read_installed_db): Modify to use the new method
4440 get_package_version and also enhance handling of the build for the
4441 structures package and extra.
4442 (do_choose): Add additional initialization of package and extra
4443 structures. Modify to use read_installed_db all the time despite
4444 install method. Modify output to setup.log.full log file to increase
4445 readability by adding additional spacing, expanded code and available
4447 * ini.h: Add new fields install_exists, source_exists and
4448 partial_list_display to the structure definition for package.
4449 * res.rc (IDD_CHOOSE): Modify choose dialog Prev, Curr, and Test
4450 pushbuttons by replacing with Radio Buttons thus allowing the
4451 operator to better determine which is selected.
4453 2001-02-20 Brian Keener <bkeener@thesoftwaresource.com>
4455 * download.cc (do_download): Add new variables total_download_bytes and
4456 total_download_bytes_sofar for download progress meter. Add loop
4457 to accumulate the total bytes to download from the selected packages.
4458 * geturl.cc: Add state.h and diskfull.h to include list. Add new
4459 variables gw_iprogress, gw_pprogress, gw_progress_text,
4460 gw_pprogress_text, and gw_iprogress_text to allow for addition of
4461 total packages download progress meter and disk full percent
4462 progress meter. Add variables total_download_bytes and
4463 total_download_bytes_sofar for use by progress meters.
4464 (dialog_proc): Add new variables gw_iprogress, gw_pprogress,
4465 gw_progress_text, gw_pprogress_text, and gw_iprogress_text to
4466 allow for addition of total packages download progress meter and disk
4467 full percent progress meter.
4468 (init_dialog): Ditto.
4470 (get_url_to_file): Ditto.
4471 * geturl.h: Add external definition for total_download_bytes and
4472 total_download_bytes_sofar.
4473 * res.rc: Add two additional progress meters (IDC_DLS_IPROGRESS)
4474 and (IDC_DLS_PPROGRESS) and three text objects (IDC_DLS_PROGRESS_TEXT)
4475 and (IDC_DLS_IPROGRESS_TEXT, IDC_DLS_PPROGRESS_TEXT) for use in the
4477 * resource.h: Add new fields for progress meters and text and update
4478 _APS_NEXT_CONTROL_VALUE.
4480 Wed Feb 21 13:05:00 2000 Corinna Vinschen <vinschen@redhat.com>
4482 * download.cc (get_file_size): Check for INVALID_HANDLE_VALUE instead
4485 Wed Feb 21 11:21:00 2000 Corinna Vinschen <vinschen@redhat.com>
4487 * download.cc (download_one): Add missing parenthesis.
4489 Mon Feb 19 18:59:00 2000 Corinna Vinschen <vinschen@redhat.com>
4491 * download.cc (get_file_size): New function. Eliminates the need
4493 (download_one): Call `get_file_size' instead of `stat'. This
4494 workarounds a problem with mingw's `stat' call.
4496 2001-02-07 Earnie Boyd <earnie@users.sourceforge.net>
4498 * Makefile.in: (%.o: %.rc): Specify --include-dir $(w32api_include).
4499 This is to allow cinstall to build with 2.95.2-7 and to make the
4500 use of headers consistent.
4502 2000-12-26 Earnie Boyd <earnie_boyd@yahoo.com>
4504 * Makefile.in (autoload.o): Add target to specify -fno-inline-functions
4506 Tue Dec 26 03:46:00 2000 Matt Hargett <matt@use.net>
4508 * winsup/cinstall/res.rc: Added accelerators and improved focus
4511 2000-12-10 Egor Duda <deo@logos-m.ru>
4513 * choose.cc (paint): Use system background color for text output.
4515 Sun Dec 10 19:05:25 2000 Christopher Faylor <cgf@cygnus.com>
4517 * Makefile.in: Use CXX for linking and for compiling .cc files.
4518 * configure.in: Find correct c++ compiler.
4519 * configure: Regenerate.
4521 2000-11-17 DJ Delorie <dj@redhat.com>
4523 * splash.cc (load_dialog): Make message more obvious.
4526 Fri Nov 17 17:15:21 2000 Christopher Faylor <cgf@cygnus.com>
4528 * Makefile.in: Use g++ to link so that libstdc++.a gets used. This is
4529 necessary for newer compilers.
4531 Wed Nov 9 2:19:00 2000 Corinna Vinschen <vinschen@redhat.com>
4533 * desktop.cc: Include "ini.h" and "version.h".
4534 (make_passwd_group): Skip the function on 9x/ME boxes when an
4535 older version of Cygwin has been installed which doesn't
4536 support mkpasswd/mkgroup on 9x/ME.
4537 * install.cc: Move the `LOOP_PACKAGES' and `pi' macros to...
4540 Wed Nov 8 17:10:00 2000 Corinna Vinschen <vinschen@redhat.com>
4542 * desktop.cc (make_passwd_group): Don't exit when started
4543 on 9x/ME since mkpasswd/mkgroup are usable on 9x/ME now.
4545 Sun Nov 5 12:51:42 2000 Jason Tishler <jt@dothill.com>
4547 * install.cc (do_install): Add call to set_cygdrive_flags to sync
4549 * mount.cc (set_cygdrive_flags): New function.
4550 (get_cygdrive_flags): Ditto.
4551 (default_cygdrive): Ditto.
4552 (set_cygdrive_flags): Ditto.
4553 * mount.h: Add prototype for set_cygdrive_flags.
4555 2000-10-23 DJ Delorie <dj@redhat.com>
4557 * ini.h: add source actions
4558 * fromcwd.cc: check for available sources
4559 * res.rc: add checkbox bitmaps
4562 * choose.cc: add source column
4563 * download.cc: download sources if called for
4564 * install.cc: [un]install sources too
4566 2000-10-22 DJ Delorie <dj@redhat.com>
4568 * choose.cc (build_labels): Don't skip TRUST_PREV completely; only
4569 ignore it wrt full_list if there's already a version installed.
4570 (do_choose): Sort the list.
4571 (package_sort): New.
4573 2000-10-12 DJ Delorie <dj@redhat.com>
4575 * res.rc: Add more error strings.
4576 * resource.h: Ditto.
4577 * iniparse.y (new_package): re-initialize if needed.
4578 * download.cc (do_download): Keep track of errors; notify and
4580 * install.cc (do_install): Ditto.
4582 2000-10-05 DJ Delorie <dj@redhat.com>
4584 * Makefile.in: fix %.cc rule
4586 2000-10-04 DJ Delorie <dj@redhat.com>
4588 * desktop.cc: quote HOME and USER, don't . ./.profile
4590 * choose.cc (build_labels): don't include in partial list just
4591 because there's a *previous* version available.
4593 * install.cc (do_install): if installing from local directory with
4594 setup.ini and the file isn't found, look in "." also. Note errors.
4596 2000-10-02 DJ Delorie <dj@redhat.com>
4598 * ini.cc (do_ini): save setup.ini locally
4600 2000-10-02 Chris Abbey <cabbey@bresnanlink.net>
4602 * desktop.cc: quote escapes in prompt
4604 2000-10-02 Jason Tishler <jt@dothill.com>
4606 * root.cc (is_admin): New function.
4607 (read_mount_table): Check for administrative priviledges and set
4608 installation scope as appropriate.
4610 2000-09-28 DJ Delorie <dj@redhat.com>
4612 * nio-ftp.cc (ftp_line): handle continuations more robustly
4614 2000-09-14 Brian Keener <bkeener@thesoftwaresource.com>
4616 * res.rc: increased the size of the site dialog (IDD_SITE) & the
4617 corresponding list box to provide for more URL's to be listed.
4618 Modified the position of the Back, Next and Cancel buttons to
4619 correspond to the new size of the dialog.
4621 2000-09-13 DJ Delorie <dj@redhat.com>
4623 * install.cc (do_install): update disk fullness once per package
4624 to improve performance
4626 * choose.cc (create_listview): call ReleaseDC
4628 Mon Sep 11 22:40 2000 Harold L Hunt II <harold@compasstechnologies.com>
4630 * mkdir.cc: Create directories when ERROR_FILE_NOT_FOUND is
4631 returned, as it seems Samba 2.0.6+ returns this instead of
4632 ERROR_PATH_NOT_FOUND
4634 Mon Sep 11 19:35:24 2000 Christopher Faylor <cgf@cygnus.com>
4636 * site.cc (get_initial_list_idx): Don't default to saved URL if it
4639 2000-09-07 DJ Delorie <dj@redhat.com>
4641 * splash.cc: use version.h, not local decl
4642 * res.rc: add "old version" message
4645 * fromcwd.cc (canonicalize_version): make global
4646 * iniparse.y: add setup-version support, fix bug in blank line
4649 * inilex.l: add [exp] as alias for [test], add setup-version
4650 * Makefile.in (version.c): add setup-version tag
4652 * desktop.cc (do_desktop): remove 1.1 version number
4653 (do_desktop_setup): ditto
4655 * ini.cc (do_ini): zero out package list just in case we redo it.
4657 2000-09-07 Jeffrey Juliano <juliano@cs.unc.edu>
4659 * choose.cc (list_click): Check for nindexes==0; if so, return.
4661 2000-09-06 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
4663 * localdir.cc: new, local package directory selection dialog; cd
4664 into selected directory
4665 * Makefile.in (OBJS): add localdir.o
4666 * dialog.h: add prototype for do_local_dir
4667 * main.cc (WinMain): initialize local_dir to cwd; add call to
4669 * net.cc (dialog_cmd): make DO_LOCAL_DIR next dialog
4670 * source.cc (dialog_cmd): ditto
4671 * res.rc: add DO_LOCAL_DIR dialog; remove "current directory" from
4672 presented choices in IDD_SOURCE; add IDS_ERR_CHDIR error string
4673 * resource.h: defines for DO_LOCAL_DIR dialog; define IDS_ERR_CHDIR
4674 * root.cc (dialog_cmd): make DO_LOCAL_DIR previous dialog
4675 * state.h: add local_dir variable
4677 2000-09-06 Brian Keener <bkeener@thesoftwaresource.com>
4679 * desktop.cc: added logic to handle to the new dialog and to
4680 default the setting for the new checkboxes based on whether the
4681 desktop icon or start menu link already exist.
4682 (desktop_icon): correction to desktop directories for desktop icon
4683 creation. Additional logic added for Win95 which does not appear
4684 to have Common Directories so if Common selected and null uses
4686 (start_menu): Additional logic added for Win95 which does not
4687 appear to have Common Directories so if Common selected and null
4688 uses normal directory.
4689 (do_desktop_setup): moved the saving of the icon, creation of the
4690 bat file, profile, passwd, Start Menu link and desktop shortcut to
4691 this method from do_desktop. Made the creation of the desktop
4692 icon and start menu link conditional on settings of new dialog
4693 created for desktop.
4694 * install.cc (do_install): changed next from IDD_S_DESKTOP to
4696 * main.cc (WinMain): changed case IDD_S_DESKTOP to IDD_DESKTOP.
4697 * res.rc: added new resource to create a desktop dialog with 2
4698 checkboxes for creating the desktop icon and start menu link.
4699 * resource.h: changed IDD_S_DESKTOP to IDD_DESKTOP and added two
4700 new controls: IDC_ROOT_MENU and IDC_ROOT_DESKTOP for new dialog.
4701 * state.h: added root_menu and root_desktop for use in dialog.
4703 2000-08-29 DJ Delorie <dj@redhat.com>
4705 * choose.cc (scan_downloaded_files): scan for existing files, so
4706 that the user only sees new downloads.
4708 * nio-ie5.cc (NetIO_IE5): pre-check for wininet.dll, enable dial-up
4709 * site.cc (do_site): if we can't download the mirror list, go back
4710 to the net setup box to choose another transport.
4711 * autoload.c: add more functions
4712 * Makefile.in (ALL_DEP_LDLIBS): remove wininet.a
4713 * resource.h: add WININET message
4715 * net.cc (do_net): no longer default to IE5
4716 * simpsock.h (class SimpleSocket): new, simplify socket operations
4717 * simpsock.cc: ditto
4718 * nio-http.h: new, for direct http protocol
4719 * nio-http.cc: ditto
4720 * nio-ftp.h: new, for direct http protocol
4722 * netio.cc (set_url): move initialization here to handle redirections
4723 (open): add direct http/ftp
4724 * netio.h (NetIO::set_url): new
4726 * log.cc (log_save): create directory for log if needed
4728 * hash.cc, hash.h: new
4729 * Makefile: add hash.o
4730 * choose.cc: enable "uninstall" option
4731 * download.cc: invert action test to accomodate uninstalling
4732 * ini.h: add ACTION_UNINSTALL
4733 * install.cc: add uninstall functionality
4734 * res.rc: make install tag changeable
4735 * resource.h: add uninstall resources
4737 * res.rc: update mirror list URL
4739 2000-08-24 DJ Delorie <dj@redhat.com>
4741 * log.cc, log.h: new files
4742 * Makefile.in (OBJS): add log.o
4743 * tar.cc: use exit_setup instead of exit
4744 * dialog.cc (fatal): use exit_setup instead of ExitProcess
4745 * msg.cc (fatal): ditto
4746 * install.cc (dialog_cmd): ditto
4747 * ini.cc (do_ini): ditto
4748 * main.cc (main): add logging
4749 * source.cc (do_source): ditto
4750 * root.cc (do_source): ditto
4751 * site.cc (do_site): ditto
4752 * other.cc (do_other): ditto
4753 * net.cc (do_net): ditto
4754 * choose.cc (do_choose): ditto
4755 * download.cc (do_download): ditto
4756 * install.cc (do_install): ditto
4757 * msg.cc (fatal): ditto
4759 * res.rc: mark password boxes as *being* password boxes.
4761 * fromcwd.cc (canonicalize_version): use multiple buffers so that multiple
4762 calls won't use the same buffer.
4763 * choose.cc (create_listview): don't default to full list if no changes
4764 (base): return computed value, not temporary :-(
4765 (do_choose): don't use installed.db if we're only downloading.
4767 2000-08-23 DJ Delorie <dj@redhat.com>
4769 * nio-ie5.cc (NetIO_IE5): Fix authentication logic
4770 * nio-ie5.h (flush_io): new
4771 * netio.cc (load_dialog): note when we're initializing the dialog
4772 box, and ignore changes to the edit fields then.
4774 2000-08-21 DJ Delorie <dj@redhat.com>
4778 * fromcwd.cc (found_file): don't remember the canonicalized version
4780 * choose.cc (paint): print "nothing to do" message when list is empty.
4781 (build_labels): Use version "0.0" if no version is available.
4782 (create_listview): default to full list if nothing to install/update.
4783 (base): new, returns basename of file
4784 (read_installed_db): compare base names, not full paths
4786 2000-08-11 DJ Delorie <dj@redhat.com>
4788 * choose.cc: add new chooser dialog
4789 * fromcwd.cc: use IDD_CHOOSE
4790 * ini.cc: use IDD_CHOOSE
4791 * main.cc: use IDD_CHOOSE
4792 * ini.h: cosmetic changes
4793 * res.rc: add choose dialog, bitmaps
4794 * choose-spin.bmp: new
4795 * choose-rtarrow.bmp: new
4796 * resource.h: add choose dialog controls
4798 * mount.cc: remove debug statement
4800 2000-08-08 DJ Delorie <dj@redhat.com>
4802 * Makefile.in (version.c): make version checking more robust
4803 * splash.cc (load_dialog): handle case where there's no version
4805 2000-08-07 DJ Delorie <dj@redhat.com>
4807 * (all): add cvsid tags
4808 * Makefile.in: generate version.c from ChangeLog, add splash.o
4810 * res.rc: add splash screen
4812 2000-08-02 DJ Delorie <dj@redhat.com>
4814 * net.cc: remove proxy password code
4815 * res.rc: remove proxy user/pass from net, add auth dialogs
4816 * netio.cc,h: add sys/proxy auth methods
4817 * nio-ie5: use them, check for http status codes
4818 * state.h: add system authorization
4820 * concat.cc (concat): canonicalize x:// to x:/ (exception to ://
4823 2000-08-02 Norman Vine <nhv@yahoo,com>
4825 * msg.cc (mbox): added MB_TOPMOST to MessageBox type flags
4827 2000-08-01 DJ Delorie <dj@redhat.com>
4829 * postinstall.cc (each): don't rename files we ignore
4830 (do_postinstall): set CYGWINROOT to root_dir, chdir there
4832 * desktop.cc: have /etc/profile call ~/.profile and ~/.bashrc
4834 2000-07-31 DJ Delorie <dj@redhat.com>
4836 * desktop.cc: reverse PATH so /usr/bin precedes /bin
4838 2000-07-18 DJ Delorie <dj@redhat.com>
4840 * autoload.c: new, autoload dlls that might not be available.
4841 * Makefile.in (OBJS): add autoload.o
4843 * res.rc: rewrite root options (text/binary, system/user) to be
4846 * site.cc (get_site_list): trim displayed URL, sort by domain
4848 * net.cc (do_net): make IE5 default to checked, for now
4850 * choose.cc (do_choose): sort packages correctly
4851 * ini.cc (do_ini): handle parse errors more gracefully
4853 (fprintf): line buffer output
4854 (do_ini): if we can't load setup.ini, go back to the site list.
4855 * ini.h: add "unknown" trust level
4856 * inilex.l: absorb unknown trust levels and key/value pairs,
4857 add line number logic
4858 * iniparse.y: handle parse errors more gracefully.
4859 * install.cc: skip packages with no valid install entry
4861 2000-07-17 DJ Delorie <dj@cygnus.com>
4863 * coding standards fixups, many files
4864 * mkdir.cc: warn about deletions *before* deleting them
4866 2000-07-17 Jeff Juliano <juliano@cs.unc.edu>
4868 * res.rc (IDD_OTHER_URL): reorder to give default focus to entry
4870 * other.cc (dialog_cmd): save download site URL
4871 * site.cc (get_root_dir): new
4872 (save_mirror_site): new
4873 (dialog_cmd): save download site URL
4874 (get_site_list): make list big enough to add prev site
4875 (get_initial_list_idx): new, read last-used URL from file and
4876 append it to site_list
4877 (do_site): call get_initial_list_idx
4879 * concat.cc (concat): avoid segfault when first parm is null
4881 2000-07-13 DJ Delorie <dj@cygnus.com>
4883 * postinstall.cc: new
4884 * Makefile.in: add postinstall.o
4885 * concat.h: add backslash ()
4887 * desktop.cc (etc_profile): don't do postinstall
4888 (backslash): moved to concat.cc
4890 (make_postinstall_script): run directly
4891 (do_desktop): chain to do_postinstall
4892 * dialog.h: add exit_msg, do_postinstall
4893 * download.cc: use exit_msg
4895 * main.cc: add postinstall, exit_msg
4896 * resource.h: add postinstall
4897 * README: add more to-do items
4899 2000-07-12 DJ Delorie <dj@cygnus.com>
4901 * desktop.cc: add /etc/postinstall/ support
4902 * install.cc: add more "standard" directories
4904 2000-07-11 DJ Delorie <dj@cygnus.com>
4906 * desktop.cc: create /etc/profile
4907 * desktop.cc: fix include syntax
4908 * Makefile.in: add auto-dependencies
4909 * root.cc: support system vs user
4917 * desktop.cc: make sure we use backslashes, not slashes.
4918 * desktop.cc: don't set PATH in cygwin.bat, create /etc/passwd
4919 * geturl.cc: change math for percentage to avoid overflow
4921 * download.cc: post "download complete" message.
4922 * root.cc: pre-fill in defaults if needed, don't start
4923 browse at root_dir unless it's set.
4924 * desktop.cc: quote $PATH in case it has spaces in it
4926 2000-07-10 DJ Delorie <dj@cygnus.com>
4928 * Makefile.in: add desktop.o and mklink2.o
4929 * dialog.h: add do_desktop
4930 * install.cc: create standard directories, call do_desktop
4931 * res.rc: add cygwin.ico as a file also
4932 * desktop.cc: new, do shortcuts, batch files, and icons
4933 * mklink2.c: new, for COM
4934 * README: update to-do list
4936 2000-07-10 DJ Delorie <dj@cygnus.com>
4938 * ini.cc (do_ini): don't worry about timestamps if we're not
4939 actually installing.
4941 2000-07-09 DJ Delorie <dj@cygnus.com>
4943 * Makefile.in: add -I$(srcdir) for ini.h
4945 2000-07-06 DJ Delorie <dj@cygnus.com>
4947 * Replace everything with a new GUI version
4948 * zlib/gzio.c: add gzctell() for progress displays
4950 2000-06-22 DJ Delorie <dj@cygnus.com>
4952 * setup.c (tarx): re-add call to write_pkg()
4954 2000-06-07 DJ Delorie <dj@cygnus.com>
4956 * cygcalls.c: new, call cygwin1.dll functions directly
4957 * cygcalls.h: header for same
4958 * Makefile.in: add cygcalls.[ch], remove mount/cygpath/umount
4959 exes, fix cinstall.rc dependencies.
4960 * path.c: remove unneeded code
4961 * setup.c: use cygcalls instead of xcreate_process.
4962 uncompress embedded files with zlib
4963 add "-d" for "download only"
4965 postpone mount changes until very end
4966 add download progress indicators
4967 pack multi-column listings more
4968 auto-delete temp files
4969 customize banner message according to options
4970 prompt user for text/binary mounts
4971 add warnings about empty setup directory, root installs, etc
4973 2000-05-24 DJ Delorie <dj@cygnus.com>
4975 * tar.c: New file; built-in tar using zlib.
4976 * tar.h: New file; header for same.
4977 * ctar.c: New file; test program for same.
4978 * Makefile.in: add built-in tar, remove tar.exe and gzip.exe
4979 * path.c (pathcat): convert slashes and canonicalize, instead of aborting
4980 * setup.c (tarx): add support for built-in tar
4981 (main): accept unix-style slashes, check root dir for drive letters,
4982 warn about installing in /, make sure cwd is empty for internet installs,
4983 defer mounts to end of install, support built-in tar.
4985 Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
4987 Fix compiler warnings throughout.
4988 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
4990 * setup.c: Make 'root' global.
4991 (istargz): Return pointer to "stem" of matched .tar.gz file.
4992 (tarx): Special case cygwin-20000301 to == cygwin-1.1.0.tar.gz. Remove
4993 bogus check_for_installed check.
4994 (recurse_dirs): Add preliminary support for .bat file execution.
4995 (create_uninstall): Eliminate unneeded parameter.
4996 (do_start_menu): Ditto.
4998 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
4999 scanning for the version number. Eliminate unneeded argument to
5001 (getdownloadsource): Add 'name' to list of names rather than url.
5002 (main): Eliminate unneeded argument in get_pkg_stuff. Eliminate
5003 unneeded argument in mkmount and do_start_menu.
5005 2000-05-18 DJ Delorie <dj@cygnus.com>
5007 * setup.c (optionprompt): allow multi-column, clean up message
5008 about more options, be more robust about user input.
5009 (getdownloadsource): make the mirror URL a macro.
5010 (main): do mounts after done prompting user.
5012 Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
5014 * setup.c (cleanup): Inverse order of deletion stands a better chance
5015 of deleting cygpath.exe. Still seems to suffer from occasional races,
5017 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
5019 (output_file): Defend against an unlikely handle leak.
5020 (main): Don't set up signal handling until we have something special to
5023 Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
5025 * path.c (kill_cygpath): Delete function.
5026 (exit_cygpath): Make more defensive so that it can be called at any
5028 (cygpath_pipe): Don't set up signal here. Do it in main().
5029 * setup.c (istargz): New function.
5030 (recurse_dirs): Look for *.gz pattern rather than *tar.gz since *tar.gz
5031 inexplicably fails on samba mounted partitions. Use istargz to match
5033 (processdirlisting) Use istargz to match tar.gz tail.
5034 (cleanup): Renamed from filedel.
5035 (cleanup_on_signal): New function. Called on CTRL-C.
5036 (main): Record handle of main thread so that it can be suspended when
5037 CTRL-C occurs. Set up cleanup_on_signal signal handler.
5039 Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
5041 * setup.c (do_start_menu): Don't concatenate paths to already built
5044 Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
5046 * path.c (exit_cygpath): Wait for subprocess to exit before returning.
5047 (cygpath_pipe): Don't call exit_cygpath. Let main atexit routine do
5049 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
5051 * setup.c (filedel): Call exit_cygpath here so that we can be assured
5052 that cygpath subprocess has died. This allows us to delete cygpath.exe
5054 (optionprompt): Initialize response to -1 so that second screen of
5055 mirrors will appear.
5056 (get_pkg_stuff): Don't attempt to use HKCLU. Pass root to init_pkgs.
5057 * setup.h: Reflect init_pkgs prototype change.
5059 Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
5061 * pkg.c (init_pkgs): Accept an argument to control what root registry
5063 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
5064 * setup.h: Reflect init_pkgs prototype change.
5066 Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
5068 * error.c (winerror): Respond to gcc warning.
5069 * path.c (cygpath_pipe): Ditto.
5070 * setup.c (filedel): Call sa_cleanup on deleteme.
5071 (create_shortcut): Coerce argument to eliminate compiler warning.
5072 (tarx): Use installed version of cygwin1.dll, overriding tar file name.
5073 (refmatches): New function. Tests if ref is contained in a list of
5074 packages to install.
5075 (filematches): New function. Tests if filename matches one of a list
5076 of packages to install.
5077 (recurse_dirs): Accept list of packages to install. Generalize tar.gz
5078 test to accomodate _tar.gz.
5079 (prompt): Ensure that stdout is flushed prior to asking for input.
5080 (findhref): Initialize variables to quiet a compiler warning.
5081 (processdirlisting): Accept list of packages to install. Special case
5082 cygwin tar file version number.
5083 (downloaddir): Accept list of packages to install.
5084 (downloadfrom): Ditto.
5085 (create_uninstall): Eliminate unneeded variables. Quote arguments to
5087 (do_start_menu): Don't create uninstall bat file if updating or user
5088 specified a list of packages.
5089 (mkmount): Eliminate unneeded variables.
5090 (get_pkg_stuff): New function. Checks for previous unversioned
5092 (main): Accept -u and -f options and package names on the command line.
5093 Use get_pkg_stuff to initialize package information. Umount /etc.
5094 Call recurse_dirs and downloadfrom with list of package to install.
5095 Ensure that all /usr/local directories are created. Output
5096 installation time to setup.log.
5097 * setup.h: Add some prototypes.
5098 * xsystem.c (xcreate_process): Eliminate unneeded variable.
5100 Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
5102 * setup.c (optionprompt): Don't overlap display of already seen options
5104 (geturl): Print name of site which we're connecting to rather than "ftp
5106 (processdirlisting): Avoid URLs that contain a /. or ./ . Is this
5107 test too simplistic?
5108 (do_start_menu): Use pathcat to build path to <root>\bin to avoid
5109 problems when user chooses x:\ as their root.
5110 (main): For now, default to "non-update" mode. Allow -u option to
5113 Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
5116 * setup.c (tarx): Skip already installed or older packages. Report
5117 when a package has been updated.
5118 (processdirlisting): Skip already installed or older packages.
5119 (main): Detect -f option for forced installation. Initialize pkg stuff
5121 * setup.h: Add pkg definitions.
5123 Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
5125 * setup.c (findhref): Return NULL on empty string. Eat any trailing
5127 (processdirlisting): Attempt to limit recursively processing the same
5130 Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
5132 * setup.c (filedel): New function.
5133 (output_file): Keep track of files extracted from setup.exe for
5134 subsequent deletion.
5135 (tarx): Close process handle of child tar process or suffer handle
5137 (getdownloadsource): Close mirror file so that it can be unlinked.
5138 (processdirlisting): Return total number of files extracted.
5139 (main): Initialize array of files to delete. Ensure that files are
5140 closed on exit. Make the directory that setup.exe is started from ==
5141 the directory where temporary files are placed. Issue an error if no
5142 files were found to download.
5143 * xsystem.c (xcreate_process): Close the thread handle. Close the
5144 process handle if we waited for it to exit.
5146 Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
5148 * setup.c (main): Change version number output.
5150 Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
5152 * setup.c (tarx): Use full path name to tar executable.
5153 (main): Build full pathname to tar executable. Create /usr/local/etc
5156 Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
5158 * setup.c (findhref): Change method for scanning for href= to choose
5159 the last one on the line. This is still not foolproof and probably
5160 will need to be changed eventually. Don't abort if no "size" field is
5162 (processdirlisting): Fix boolean algebra.
5164 Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
5166 * main.c (tarx): Add some code for future task of unmounting
5167 directories encountered in tar file.
5169 Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
5171 * setup.c (findhref): Decode file size, when appropriate.
5172 (needfile): New function. Returns 1 when file should be
5174 (processdirlisting): Always download if file size does not
5175 match. Prompt when download fails for some reason.
5176 (getdownloadsource): Accomodate findhref argument changes.
5178 Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
5180 Throughout, use global session handle rather than reinitializing for
5181 each connect. Don't pass session as an argument to setup.c functions.
5182 * setup.c (geturl): Only issue "Connecting to.." message when using
5183 http or first time for ftp since subsequent connections will be fast.
5184 (processdirlisting): Allocate space for "N" when user has specified
5185 "N"ever option so that it can be subsequently freed.
5186 (main): Abort if we can't get the list of mirrors.
5188 Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
5190 * setup.c (main): Umount /bin and /lib.
5192 Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
5194 * setup.c (main): Create an empty /var/run/utmp.
5196 Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
5198 * Makefile.in: Add umount to list of files to include in setup.exe.
5199 * setup.c (xumount): New function for unmounting directories.
5200 (main): Unmount /usr.
5201 (mkmount): Unmount "unix directory" before trying to figure out where
5202 to create the directory.
5204 Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
5206 * setup.c (mkmount): Use xcreate_process to start mount process,
5208 (main): Don't do buffering on stdout or prompts won't be displayed
5209 correctly if running in a cygwin shell with CYGWIN=tty.
5211 Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
5213 * setup.c (main): Remove the CYGWIN environment variable before
5214 starting any cygwin programs.
5216 Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
5218 * setup.c (geturl): Use alternative method for finding filename part of
5220 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
5221 (downloaddir): Unlink file containing dir listing.
5222 (downloadfrom): Ditto.
5224 Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
5226 * setup.c (main): Disallow running setup.exe from the "root".
5228 Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
5230 Use "warning" function, where appropriate, to output warnings.
5231 * setup.c (warning): New function -- outputs warning to console and log
5233 (tarx): Fix index used to reset file protection.
5234 (main): Open the log file earlier so that more stuff can be sent to it.
5236 Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
5238 * setup.c (processdirlisting): Make "N" option a little less aggressive.
5240 Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
5242 * setup.c (tarx): Wait to after tar has completed to reset protections
5243 or suffer races with tar process.
5245 Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
5247 * Makefile.in: Eliminate duplicate -nostdinc from CFLAGS.
5248 * setup.c (create_uninstall): Create the uninstall .bat file in the
5249 "root" so that we can remove the /bin directory. Add bin\cygwin.bat to
5250 list of files to be deleted. Fix directory detection for determining
5251 when to use 'rmdir'.
5252 (do_start_menu): Add /usr/local/bin to the path.
5253 (main): Add slop to files.array allocation so that we don't have to
5254 worry about reallocating the array when it grows too large when doing
5255 some trivial "pushes". Add /tmp and /usr/local/{bin,lib} to list of
5258 Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
5260 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
5263 Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
5265 * path.c (kill_cygpath): New cleanup function.
5266 (exit_cygpath): New cleanup function.
5267 (cygpath_pipe): New function. Sets up cygpath in the background for
5268 translating filenames.
5269 (pathcvt): Use background cygpath for file translation.
5270 * setup.c (tarx): New function. Called to extract tar files, capture
5271 logging output, and translate it to Windows format.
5272 (recurse_dirs): Use 'tarx' function to extract files.
5273 (create_uninstall): Use file list built up by tarx rather than reading
5275 (mkmount): Add ability to mount root.
5276 (main): Track elapsed install time. Mount root.
5277 * starry.h: Add index field to strarry for tracking of tarx's usage of
5279 * xsystem.c (xcreate_process): Return proces handle when not waiting.
5281 Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
5284 (pathfp): New function. Preliminary work for new -f cygpath
5286 * Makefile.in: Add new file.
5287 (pathcvt): Move to new file.
5291 * setup.c (processdirlisting): Always open file in text mode.
5292 (create_uninstall): Ditto.
5293 (getdownloadsource): Ditto.
5296 Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
5298 * xsystem.c: New file.
5299 * Makefile.in: Accomodate new file.
5300 * setup.c (xsystem): Move to new file.
5301 (recurse_dirs): Accept handle to output log file. Don't use ">"
5302 redirection to trap tar output. Use supplied handle instead.
5303 (create_uninstall): Accept FILE pointer to opened log file. Don't
5304 unlink log file here.
5305 (do_start_menu): Accept FILE pointer to pass to create_uninstall.
5306 (main): Open log file here and pass it to various functions. Unlink
5309 Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
5311 Change occurrences of .usr.bin to .bin throughout.
5312 * setup.c (geturl): Increase number of retries to 20. Let user know
5313 what's going on during long connects.
5314 (processdirlisting): Accept "A"lways and "N"ever as update options.
5315 (create_uninstall): Load cygwin1.dll from the current directory rather
5317 (main): Add some expository text.
5319 Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
5321 * Makefile.in: Change method for compressing cygwin1.dll to avoid
5322 creating a cygwin1.dll in the current directory. Ensure the addition
5323 of -nostdinc to MINGW_CFLAGS.
5325 Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
5327 * Makefile.in: Augment clean target.
5329 Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
5331 * README: Added info about non-working mingw implementation
5332 * gzip.exe.gz: Replace with a version from the same build as the other
5334 * tar.exe.gz: Replace with a version from the same build as the other
5336 * mount.exe.gz: Add to repository until, mingw can build setup.
5337 * cygpath.exe.gz: ditto
5338 * cygwin1.dll.gz: ditto
5339 * setup.c: Overwrite /bin and /lib mounts. Generate working shortcut
5340 for Win9x. Display only a screenfull of options at a time. Call all
5341 tools with an absolute path.
5342 * setup.dsp: Restore the carriage returns, MS Developer Studio needs
5347 Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
5349 * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab
5350 cygwin1.dll from ../cygwin subdirectory.
5351 * gzip.exe.gz: Update.
5352 * tar.exe.gz: Update.
5354 Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
5356 * Makefile.in: Use ZLIB variable as a target.
5358 Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
5360 * Makefile.in: Eliminate traces of cygwinisms. Don't link with
5361 libmsvcrt.a. It's unneeded. Build .rc file on the fly from various
5363 * configure.in: Locate correct objcopy.
5364 * configure: Regenerate.
5366 Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
5368 * Makefile.in: New file.
5369 * configure.in: New file.
5370 * configure: New file.
5371 * zlib/Makefile.am: New file.
5372 * zlib/configure.in: New file.
5373 * zlib/aclocal.m4: New file.
5374 * zlib/acinclude.m4: New file.
5375 * zlib/configure: Regenerate from configure.in.
5376 * zlib/Makefile.in: Regenerate from Makefile.am