1 2003-03-10 Robert Collins <rbtcollins@hotmail.com>
3 * Exception.h: Add a logic error exception id.
4 * Makefile.am: Add new sources.
5 * UserSettings.cc: New file.
6 * UserSettings.h: New file.
7 * UserSetting.cc: New file.
8 * UserSetting.h: New file.
9 * site.h: Add a SiteSetting as example of a UserSetting.
10 * site.cc (ChosenSites): Add a instance of SiteSetting to trigger registration.
12 2003-03-10 Robert Collins <rbtcollins@hotmail.com>
14 * compress_bz.cc (compress_bz::read): adjust incorrect assignment of lasterr.
15 (compress_bz::error): Return lasterr which will indicate any error.
17 2003-03-10 Robert Collins <rbtcollins@hotmail.com>
19 * choose.h (ChooserPage): Override OnActivate.
20 * choose.cc (ChooserPage::OnActivate): Refresh the current view when activating the dialog.
22 2003-03-09 Robert Collins <rbtcollins@hotmail.com>
24 * package_version.cc (_defaultversion::pick(bool)): Override this and do nothing.
25 (packageversion::pick(bool): Use a mutator function rather than direct member access.
26 * package_version.h (_packageversion::pick(bool)): Move method from _packageversion.
28 2003-02-16 Pavel Tsekov <ptsekov@gmx.net>
30 * install.cc (install_one_source): Remove the MD5 verification
32 Delay the creation of the package listing file.
33 (do_install_thread): Check the hashes for packages which need
34 to be installed before the uninstall step. Allow the user to
35 skip over packages, which fail the hash verification.
36 (md5_one): Define new function.
37 * res.rc (IDS_SKIP_PACKAGE): New string resource.
38 * resource.h (IDS_SKIP_PACKAGE): New macro definition.
40 2003-02-16 Pavel Tsekov <ptsekov@gmx.net>
42 * Exception.h: Declare new constructor.
43 (Exception::_message): Change the type from 'const char *' to
45 (Exception::~Exception): Implement destructor (make gcc shut up).
46 * Exception.cc: Implement new constructor.
47 (Exception::what): Use String::cstr_oneuse ().
48 * download.cc (validateCachedPackage): Use the constructor, which
49 takes String& as its second argument, when throwing objects
51 (check_for_cached): Ditto.
52 * install.cc (install_one_source): Ditto.
54 2003-02-01 Igor Pechtchanski <pechtcha@cs.nyu.edu>
56 * res.rc (IDS_INSTALL_INCOMPLETE): Change hard-coded
58 (IDS_MISSING_LOG): New string resource.
59 * resource.h (IDS_MISSING_LOG): New resource.
60 * LogFile.cc (LogFile::exit): Pass log filename for
62 (LogFile::getFileName): New function.
63 * LogFile.h (LogFile::getFileName): New function.
65 2003-02-01 Igor Pechtchanski <pechtcha@cs.nyu.edu>
67 * String++.cc: Don't include concat.h.
68 * Makefile.am: Remove concat.cc and concat.h references.
72 2003-03-09 Max Bowsher <maxb@ukf.net>
74 * bootstrap.sh: Add sanity check of current directory.
75 Recurse into libgetopt++ if needed.
77 2003-03-09 Robert Collins <rbtcollins@hotmail.com>
79 * Update readme of bugs and wishes.
81 2003-03-05 Max Bowsher <maxb@ukf.net>
83 * netio.cc (save_dialog): Allocate an empty string if the password is
84 null, so that an empty password is accepted elsewhere in setup.
85 (check_if_enable_ok): An empty password is OK.
87 2003-03-05 Brian Keener <bkeener@thesoftwaresource.com>
89 * PickView.cc (PickView::views): Add two new views for Skipped
90 packages and Installed Packages not requiring update.
91 (PickView::set_headers () ): Ditto.
92 (PickView::clear_view (void) ): Ditto.
93 (PickView::views::caption () ): Add two new captions for the new
94 views added for Skipped and Installed Packages.
95 (PickView::scroll () ): Modify Scroll Bar property to Disable
96 instead of disappearing when there is nothing to Scroll.
97 * PickView.h: Add two new views for Skipped packages and Installed
98 packages to public class view.
99 * choose.cc (list_click () ): Modify Scroll Bar property to Disable
100 instead of disappearing when there is nothing to Scroll.
101 (listview_proc () ): Ditto.
102 (set_view_mode): Add two new views for Skipped Packages and Installed
103 Packages not requiring update. Modify Scroll Bar property to Disable
104 instead of disappearing when there is nothing to scroll.
105 * res.rc (IDD_CHOOSE): Reposition Radio Buttons, View Selection
106 Button and View Button Caption to make room for longer captions.
108 2003-03-04 Max Bowsher <maxb@ukf.net>
110 * compress_gz.cc (compress_gz::construct):
111 Fix broken checkin dated 2002-07-03.
113 2003-02-28 Max Bowsher <maxb@ukf.net>
115 * main.cc (set_default_sec): Add logging.
117 2003-02-28 Pierre Humblet <pierre.humblet@ieee.org>
119 * main.cc (set_default_dacl): Replace with set_default_sec.
120 (set_default_sec): Attempt to change the default group to
121 Users or Administrators if it is None, in addition to setting
122 Everyone in the default DACL.
123 (main): Call set_default_sec instead of set_default_dacl.
125 2003-01-31 Max Bowsher <maxb@ukf.net>
127 * install.cc (install_one_source): Fix spacing in log message.
129 2003-01-19 Max Bowsher <maxb@ukf.net>
131 * resource.h (IDC_CHOOSE_KEEP): Define.
132 * res.rc (IDD_CHOOSE): Add radio button IDC_CHOOSE_KEEP.
133 * choose.cc (create_listview): Add IDC_CHOOSE_KEEP to ta[].
134 (ChooserPage::OnMessageCmd): Handle new IDC_CHOOSE_KEEP button.
136 2003-01-15 Max Bowsher <maxb@ukf.net>
138 * mkdir.cc [_CYGWIN_]: Implement what was pseudocode.
139 * io_stream.h [__CYGWIN__]: Don't typedef ssize_t.
140 * proppage.h: Include "win32.h" instead of <windows.h>.
142 2003-01-15 Max Bowsher <maxb@ukf.net>
144 * mount.cc [MAINTAINER_FEATURES]: Add --override-registry-name option.
146 2002-12-11 Abraham Backus <abraham@backus.com>
148 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Leave port out of Host header,
151 2002-12-11 Max Bowsher <maxb@ukf.net>
153 * package_meta.cc: Change 'endl' to 'endLog' as appropriate.
154 * package_version.cc: Ditto.
156 2002-09-22 Max Bowsher <maxb@ukf.net>
158 * PickView.cc (pkg_headers): Rename column 'Category' to 'Categories'.
159 * package_meta.h (packagemeta::getReadableCategoryList): Declare.
160 * package_meta.cc (packagemeta::getReadableCategoryList): Implement.
161 * PickPackageLine.cc (PickPackageLine::paint): Change to use
162 getReadableCategoryList.
163 Fix x2 argument to IntersectClipRect.
165 2002-11-25 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
167 * window.h (Window::GetWindowRect): New method declaration.
168 (Window::GetClientRect): Ditto.
169 (Window::MoveWindow): Ditto.
170 (Window::ScreenToClient): Ditto.
171 * window.cc (REFLECTION_INFO): Remove.
172 (ReflectionInfo): Remove.
173 (Window::FirstWindowProcReflector): Use the WM_NCCREATE message instead
174 of the horrid REFLECTION_INFO hack to hook the Window instance to the
176 (Window::WindowProcReflector): Use GetWindowLongPtr() now that it's
178 (Window::Create): Change to use new WM_NCCREATE reflection procedure
180 (Window::GetWindowRect): New method.
181 (Window::GetClientRect): New method.
182 (Window::MoveWindow): New method.
183 (Window::CenterWindow): Use new methods, also specify "::" for some non-
184 member functions with the same names.
185 (Window::ScreenToClient): New method.
187 2002-11-26 Robert Collins <rbtcollins@hotmail.com>
189 * AntiVirus.cc: Change the short option again! It's now 'A'.
190 * desktop.cc (etc_profile): Remove.
191 (make_etc_profile): Remove.
193 (make_passwd_group): Remove.
194 (do_desktop_setup): Don't call removed functions.
196 2002-11-26 Robert Collins <rbtcollins@hotmail.com>
198 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Fix my botched application of
201 2002-07-08 Marcel Telka <marcel@telka.sk>
203 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Fixed decoding of the FTP
204 reply (code 227) to the PASV command.
206 2002-11-26 Robert Collins <rbtcollins@hotmail.com>
208 * IniDBBuilderPackage.cc (IniDBBuilderPackage::~IniDBBuilderPackage):
209 Sort the packages db once all the new packages have been added.
210 * IniDBBuilderPackage.h (IniDBBuilderPackage::~IniDBBuilderPackage):
213 2002-11-26 Robert Collins <rbtcollins@hotmail.com>
215 * choose.cc (ChooserPage::OnNext): Remove extracted comment.
216 * package_version.cc (processOneDependency): Return once selecting
217 a package (bugfix to prevous rework).
218 Log if the default trust fails the package specification.
220 2002-11-26 Robert Collins <rbtcollins@hotmail.com>
222 * package_meta.h (packagemeta::logAllVersions): Declare.
223 (packagemeta::trustLabel): Ditto.
224 * choose.cc (ChooserPage::OnNext): Get each package to log all it's
226 * package_meta.cc (packagemeta::logAllVersions): Implement.
227 (packagemeta::trustLabel): Ditto.
229 2002-11-25 Robert Collins <rbtcollins@hotmail.com>
231 * AntiVirus.cc: Change 'd' to 'D' to fix command line conflict.
233 2002-11-25 Robert Collins <rbtcollins@hotmail.com>
235 * AntiVirus.cc: New file.
236 * AntiVirus.h: Ditto.
237 * LogFile.cc: Include AntiVirus.h for class definition.
238 (LogFile::exit): Trigger AntiVirus::AtExit().
239 * MakeFile.am(setup_SOURCES): Add AntiVirus files.
240 * autoload.c: Declare Service Control Manager related API's.
241 * main.cc: Include AntiVirus.h for class definition.
242 (main): Add the AntiVirus page in.
243 * res.rc: Define IDD_VIRUS.
244 * resource.h: Define IDD_VIRUS related control ID's.
245 * splash.h: Override OnNext.
246 * splash.cc: Only show AntiVirus page when one has been detected.
249 2002-11-25 Robert Collins <rbtcollins@hotmail.com>
251 * package_version.cc (DependencyProcessor): Create convenience class.
252 (select): Extract version selection method.
253 (processOneDependency): Check for a satisfactory trusted version
256 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
258 * main.cc (main): Use the factory for LogFile.
259 * String++.cc: Update to use sstream.
260 (String::String): Use a ostringstream for libC++ 3.2.
261 * LogFile.h (LogFile): Make createLogFile static.
263 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
265 * main.cc (main): Oops, pass LogSingleton a reference, not a pointer.
267 2002-11-04 Max Bowsher <maxb@ukf.net>
269 * Exception.h (Exception::what): Add throw() specification,
270 to agree with libstdc++-v3.
271 * Exception.cc (Exception::what): Ditto.
272 * IniDBBuilderPackage.h: Add 'std::' where needed.
273 * PickCategoryLine.h: Ditto.
275 * package_db.h: Ditto.
276 * package_meta.h: Ditto.
277 * package_source.h: Ditto.
278 * package_version.h: Ditto.
280 * win32.h: Define NOMINMAX before including <windows.h>.
281 * package_meta.cc: Add 'using namespace std;'.
282 (packagemeta::set_requirements): Remove default parameter values
283 from definition (gcc3 likes them only in declaration).
284 * package_version.cc: Add 'using namespace std;'.
285 (packageversion::set_requirements): Remove default parameter
286 values from definition (gcc3 likes them only in declaration).
288 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
290 * compress_bz.cc: Don't include bzlib.h directly, the compress_bz.h
293 2002-11-04 Max Bowsher <maxb@ukf.net>
295 * compress_bz.h: #undef small before including bzlib.h - if we are
296 going to hide the fact that we are _WIN32 from bzlib, then we need
297 to #undef small for it as well (bad windows.h clash).
299 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
301 * localdir.cc: Update the extern LogFile to be a pointer.
302 (save_local_dir): Change . to -> for the above.
303 * main.cc (theFile): Change from an instance to a pointer.
304 (main): Change . to -> for the above.
306 2002-11-10 Robert Collins <rbtcollins@hotmail.com>
308 * LogFile.cc: use 'std::' where needed throughout.
309 (LogFile::createLogFile): Implement a factory for LogFile.
310 (LogFile::LogFile): Update for use with the factory, and to
311 handle the latest g++ library changes.
312 (LogFile::operator()): Ditto.
313 (LogFile::endEntry()): Ditto.
315 * LogSingleton.cc: Ditto.
316 * LogSingleton.h: Ditto.
318 2002-11-04 Max Bowsher <maxb@ukf.net>
320 * String++.h: Add 'std::' where needed.
322 2002-11-04 Max Bowsher <maxb@ukf.net>
324 * IniDBBuilderPackage.cc: Add 'using namespace std;'.
325 * IniParseFindVisitor.cc: Ditto.
327 * LogSingleton.cc: Ditto.
328 * PickView.cc: Ditto.
329 * String++.cc: Ditto.
331 * download.cc: Ditto.
334 * io_stream.cc: Ditto.
335 * io_stream_file.cc: Ditto.
336 * package_db.cc: Ditto.
340 2002-11-04 Max Bowsher <maxb@ukf.net>
342 * LogSingleton.h: Add 'std::' where needed.
344 2002-11-04 Max Bowsher <maxb@ukf.net>
346 * archive_tar_file.cc: Include <algorithm>.
347 Change min(a,b) to std::min(a,b)
348 * compress_bz.cc: Ditto.
349 * compress_gz.cc: Ditto.
351 2002-11-04 Max Bowsher <maxb@ukf.net>
353 * res.rc: Change a #-comment (invalid) to a //-comment.
355 2002-11-04 Max Bowsher <maxb@ukf.net>
357 * Makefile.am (%.o: %.rc): Make windres use $(CC) not hardcoded gcc.
358 (inilint_LDADD): Remove -lstd++.
359 (setup_LDADD): Ditto.
361 2002-09-22 Max Bowsher <maxb@ukf.net>
363 * IniDBBuilderPackage.cc: Update DEBUG code to current class
366 2002-09-21 Robert Collins <rbtcollins@hotmail.com>
368 * choose.h: Add OnUnattended method.
369 * desktop.cc (DesktopSetupPage::OnInit): Allow fine grained
370 control via command line options.
371 (DesktopSetupPage::OnUnattended): Implement.
372 (DesktopSetupPage::OnMessageApp): Implement.
373 * desktop.h (DesktopSetupPage::OnUnattended): declare.
374 (DesktopSetupPage::OnMessageApp): Ditto.
375 * download.cc (do_download_thread): Support unattended mode.
376 * install.cc (do_install_thread): Ditto.
378 * main.cc (main): Ditto.
379 * net.cc (NetPage::OnUnattended): Ditto.
380 * net.h (NetPage::OnUnattended): Declare.
381 * proppage.cc (PropertyPage::DialogProc): Support unattended mode.
382 * proppage.h (PropertyPage::OnUnattended): Declare.
383 * root.cc (RootPage::OnInit): Support unattended mode.
384 (RootPage::OnUnattended): Implement.
385 * root.h (RootPage::OnUnattended): Declare.
386 * site.cc (register_saved_site): Extract Method from get_saved_sites.
387 (get_saved_sites): Remove common code for adding a site.
388 (SitePage::OnInit): Support unattended mode.
389 (SitePage::OnUnattended): Implement.
390 * site.h (SitePage::OnUnattended): Declare.
391 * source.cc (SourcePage::OnActivate): Support unattended mode.
392 (SourcePage::OnUnattended): Implement.
393 * source.h (SourcePage::OnUnattended): Declare.
394 * splash.h (SplashPage::OnUnattended): Declare.
395 * state.cc (unattended_mode): Declare.
396 * state.h (unattended_mode): Declare.
397 * threebar.h (ThreeBarProgressPage::OnUnattended): New method.
399 2002-09-21 Robert Collins <rbtcollins@hotmail.com>
401 * res.rc: Commit Harry Johnston's dialog caption patch. From July.
403 2002-07-15 Robert Collins <rbtcollins@hotmail.com>
405 * package_version.cc (packageversion::sources): Implement this.
406 * download.cc (do_download_thread): Support multiple files per package.
408 2002-07-15 Robert Collins <rbtcollins@hotmail.com>
410 * package_version.h (packageversion::sources): Support multiple files in
411 a single package version.
412 * package_version.cc (_packageversion::accessible): Ditto.
413 (packageversion::source): Ditto.
415 2002-07-15 Robert Collins <rbtcollins@hotmail.com>
417 * iniparse.y: Implement support for multiple source files for a source
419 * IniDBBuilder.h (IniDBBuilder::buildSourceFile): Ditto.
420 * IniDBBuilderPackage.h (IniDBBuilder::buildSourceFile): Ditto.
421 * IniDBBuilder.cc (IniDBBuilder::buildSourceFile): Ditto.
422 * IniDBBuilderPackage.cc (IniDBBuilder::buildSourceFile): Implement a
425 2002-07-13 Robert Collins <rbtcollins@hotmail.com>
427 * PickPackageLine.cc (PickPackageLine::click): Set requirements for
428 packages under all circumstances - slightly higher overheader, simpler
430 * download.cc (do_download_thread): Correctly download source
432 * package_meta.cc (checkForInstalled): Remove.
433 (checkForUpgradeable): Ditto.
434 (checkForSatisfiable): Ditto.
435 (processOneDependency): Ditto.
436 (packagemeta::set_requirements): Move guts to packageversion.
437 * package_version.cc (checkForInstalled): Copied from package_meta.cc.
438 (checkForUpgradeable): Ditto.
439 (checkForSatisfiable): Ditto.
440 (processOneDependency): Ditto.
441 (packageversion::set_requirements): Ditto.
442 * package_version.h (packageversion::set_requirements): Declare.
444 2002-07-13 Robert Collins <rbtcollins@hotmail.com>
446 * IniDBBuilder.cc (IniDBBuilder::buildBeginBuildDepends): Implement.
447 (IniDBBuilder::buildBeginBinary): Implement.
448 * IniDBBuilder.h (IniDBBuilder::buildBeginBuildDepends): Declare.
449 (IniDBBuilder::buildBeginBinary): Ditto.
450 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildBeginBuildDepends):
452 (IniDBBuilderPackage::buildBeginBinary): Ditto.
453 * IniDBBuilderPackage.h (IniDBBuilderPackage::buildBeginBuildDepends):
455 (IniDBBuilderPackage::buildBeginBinary): Ditto.
456 * inilex.l: Recognise Build-Depends-Indep, [,], >, < and remove
458 * iniparse.y: Full support for parsing a debian Sources file in-line in
460 * package_version.cc (packageversion::binaries): Implement.
461 * package_version.h (packageversion::binaries): Declare list of what
462 packages are created from a given source package.
463 (_packageversion::binaries): Ditto.
465 2002-07-10 Robert Collins <rbtcollins@hotmail.com>
467 * iniparse.y: Add basis for support for parsing a debian Sources file.
470 2002-07-09 Robert Collins <rbtcollins@hotmail.com>
472 Change custom container code for packagedb::packages to STL containers
474 * IniDBBuilderPackage.cc: Ditto.
475 * PickView.cc: Ditto.
478 * download.cc: Ditto.
480 * package_db.cc: Ditto.
481 * package_db.h: Ditto.
482 * Makefile.am: Remove list.h references.
485 2002-07-08 Max Bowsher <maxb@ukf.net>
487 * PickView.cc (PickView::PickView): Set font of package list header to
488 the same as used in the rest of the package list.
490 2002-07-08 Robert Collins <rbtcollins@hotmail.com>
492 * install.cc (NoReplaceOnReboot): New command line option to prevent
493 replacing in use files.
494 (install_one_source): Check the option and use it.
495 * README: Update TODO lists.
497 2002-07-08 Robert Collins <rbtcollins@hotmail.com>
499 * PickCategoryLine.cc: Change bucket to use STL container syntax
501 (PickCategoryLine::paint): Use new Category type syntax.
502 * PickCategoryLine.h: Use STL vectors rather than custom containers
504 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageCategory):
505 Use new add_category syntax.
506 * PickView.cc (PickView::insert_pkg): Use new Category type syntax.
507 (PickView::insert_category): Ditto.
508 (PickView::init_headers): Ditto.
509 * category.cc: Trim obsolete code.
510 * category.h: Replace interconnecting class with a typedef to
511 facilitate leveraging STL maps.
512 * choose.cc (fill_missing_category): Use updated pkg.add_category
514 (default_trust): Use new Category type syntax.
515 (set_view_mode): Ditto.
516 (create_listview): Ditto.
517 * package_db.cc (categories): Ditto.
518 * package_db.h: Update headers list to include needed headers.
519 (packagedb::categories): Replace custom list with STL map.
520 * package_meta.cc: Use new Category type syntax throughout.
521 (packagemeta::add_category): Implement new syntax.
522 * package_meta.h: Remove commented out source.
523 (packagemeta::add_category): Update syntax to decouple interface from
526 2002-07-06 Christopher Faylor <cgf@redhat.com>
528 * site.cc (do_download_site_info_thread): Correct spelling error.
530 2002-07-06 Robert Collins <rbtcollins@hotmail.com>
532 * PickCategoryLine.h: Include required header list.h.
533 * PickPackageLine.cc (PickPackageLine::paint): Adjust to use STL
534 containers for listing of packages per category and vice verca.
535 * PickView.cc (PickView::insert_pkg): Ditto.
536 (PickView::insert_category): Ditto.
537 * String++.h (String::caseless): STL helper to allow trivial containers
538 of Strings with case insensitive comparisons.
539 * category.h: Adjust to use STL containers for listing of packages per
540 category and vice verca.
541 * choose.cc (fill_missing_category): Ditto.
542 (default_trust): Ditto.
543 (ChooserPage::OnNext): Ditto.
544 * package_meta.cc (CategoryPackage::~CategoryPackage): Remove.
545 (packagemeta::packagemeta): Adjust for new category list name.
546 (packagemeta::~packagemeta): Adjust to use STL containers for listing
547 of packages per category and vice verca.
548 (packagemeta::set_action): Ditto.
549 * package_meta.h (CategoryPackage): Remove.
550 (packagemeta): Adjust to use STL containers for listing of packages per
551 category and vice verca.
553 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
555 * io_stream.cc: Use STL containers rather than custom ones.
556 (io_stream::registerProvider): Ditto.
557 (findProvider): Ditto.
559 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
561 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
562 Use STL collections for download site collections.
563 (IniDBBuilderPackage::add_correct_version): Ditto.
564 (IniDBBuilderPackage::process_src): Ditto.
565 * PickPackageLine.cc (PickPackageLine::click): Use the packageversion
566 accessible() call to abstract package availability.
567 * choose.cc (scanAVersion): Use STL collections for download site
569 * download.cc (check_for_cached): Ditto.
570 (download_one): Ditto.
571 * package_meta.cc (packagemeta::set_action): Use the packageversion
572 accessible() call to abstract package availability.
573 * package_source.h: Use STL containers rather than custom containers.
574 (site): Create a == operator to allow STL container use.
575 (packagesource::sites): Use STL containers rather than custom
577 * package_version.cc (_packageversion::accessible): Use STL containers
578 for download site containers.
580 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
582 * LogFile.cc: Use STL containers rather than custom containers.
583 (filedef): Create == and < operators for STL use.
584 (files): Convert to an STL set.
585 (LogFile::setFile): Use STL operations on files.
586 (LogFile::exit): Ditto.
588 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
590 * ini.cc (do_remote_ini): Use STL collection for site collection.
591 * site.cc: Include site.h first to ensure it's parsable standalone.
593 (site_list): Convert to an STL container.
594 (all_site_list): Ditto.
595 (site_list_type::site_list_type): Implement copy constructor.
596 (site_list_type::operator=): Implement assignment operator.
597 (site_list_type::operator ==): Implement.
598 (site_list_type::operator <): Ditto.
599 (save_dialog): Use STL collection calls for site collection.
600 (save_site_url): Ditto.
601 (get_site_list): Ditto.
602 (get_saved_sites): Ditto.
603 (do_download_site_info_thread): Ditto.
604 (SitePage::OnNext): Ditto.
605 (SitePage::PopulateListBox): Ditto.
606 (SitePage::OnMessageCmd): Ditto.
607 * site.h: Use STL vectors instead of custom code.
608 (site_list_type::site_list_type): Declare.
609 (site_list_type::operator=): Ditto.
610 (site_list_type::operator ==): Ditto.
611 (site_list_type::operator !=): Ditto.
612 (site_list_type::operator <): Ditto.
613 (site_list_type::operator <=): Ditto.
614 (site_list_type::operator >): Ditto.
615 (site_list_type::operator >=): Ditto.
616 (site_list): Convert to an STL container.
617 (all_site_list): Ditto.
619 2002-07-05 Robert Collins <rbtcollins@hotmail.com>
621 * choose.cc (default_trust): Check package accessibility before
622 triggering an install. (Suggested by Pavel).
624 2002-07-03 Pavel Tsekov <ptsekov@gmx.net>
626 * compress_gz.cc (compress_gz::construct): Always initialize key members
627 to ensure the destructor does the right thing.
629 2002-07-03 Pavel Tsekov <ptsekov@gmx.net>
631 * filemanip.cc (parse_filename): Do not try to parse empty
633 * package_db.cc (packagedb::packagedb): For each line check if sscanf()
634 extracted good package name and filename.
636 2002-07-03 Robert Collins <rbtcollins@hotmail.com>
638 * package_meta.cc (packagemeta::set_requirements): Automatically select
639 version of dependent packages that satisfies the requirements.
640 Use processOneDependency to trigger the install of those packages.
641 (checkForInstalled): Check that the package remains installed.
642 (processOneDependency): Helper function for dependent packages.
643 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackage): Add more
645 Clear out all current state on new packages.
646 (IniDBBuilderPackage::add_correct_version): Copy the dependency list
649 2002-07-02 Robert Collins <rbtcollins@hotmail.com>
651 * Makefile.am (inilint_SOURCES): Add PackageSpecification sources.
652 nb: inilint is still incomplete, as the packageversion code is not
653 ready for database-less linking.
654 * site.cc (get_site_list): When the same site is reentered by the user
655 replace the old one. (Suggested by John Marshall).
657 2002-07-02 Robert Collins <rbtcollins@hotmail.com>
659 * IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
660 Clear out package selections when generating implicit source packages.
661 * PackageSpecification.cc (PackageSpecification::satisfies): Implement.
662 (PackageSpecification::_operators::satisfies): Implement.
663 * PackageSpecification.h (PackageSpecification::_operators::satisfies):
664 Worker function for testing versions.
666 2002-07-01 Robert Collins <rbtcollins@hotmail.com>
668 * IniDBBuilder.cc (IniDBBuilder::buildPackageRequirement): Remove.
669 * IniDBBuilder.h (IniDBBuilder::buildPackageRequirement): Ditto.
670 * IniDBBuilderPackage.cc: Use the STL algorithms.
671 Change cpv to cbpv throughout. Adjust -> to ., and use the new accessor
672 functions for the same variable throughout.
673 (IniDBBuilderPackage::IniDBBuilderPackage): Initialise new members.
674 (IniDBBuilderPackage::buildPackage): Use new cygpackage syntax,
675 and set an empty source package.
676 (IniDBBuilderPackage::buildPackageInstall): Use the new source member
677 to record an install package.
678 (IniDBBuilderPackage::buildPackageSource): Move source package logic
679 out from process_src, as it now occurs at separate times.
680 (IniDBBuilderPackage::buildPackageRequirement): Remove.
681 (IniDBBuilderPackage::buildSourceName): Use renamed package
682 specifiation accessor for clarity.
683 (IniDBBuilderPackage::buildSourceNameVersion): Ditto.
684 (IniDBBuilderPackage::add_correct_version): Use STL iterators rather
686 Remove source package references.
687 (IniDBBuilderPackage::process_src): Remove source package code as it's
688 now handled separately.
689 Set Path information before merging versions, to prevent dangling
691 * IniDBBuilderPackage.h (IniDBBuilderPackage::buildPackageRequirement):
693 (IniDBBuilderPackage::cpv): Remove.
694 (IniDBBuilderPackage::cbpv): New generic binary working variable.
695 (IniDBBuilderPackage::cspv): Ditto, but for source packages.
696 (IniDBBuilderPackage::csp): Source package variable for disjoint
698 * Makefile.am (AM_CFLAGS): Remove -Winline to allow stl set code
699 to compile. If it compiles cleanly in gcc 3.1, then reinstate.
700 * PickPackageLine.cc: Adjust packageversion accessors to the new
701 reference calls. (i.e. -> to .) throughout.
702 (PickPackageLine::paint): Use accessible() for clarity.
703 Use new split out source package logic.
704 (PickPackageLine::click): Ditto.
705 * PickView.cc (PickView::init_headers): Adjust packageversion accessors
706 to the new reference calls. (i.e. -> to .) throughout.
707 Use new split out source package logic.
708 * choose.cc: Don't depend on a specific package type.
709 Adjust packageversion accessors to the new reference calls. (i.e. -> to
711 (set_existence): Use accessible () for clarity.
712 (default_trust): Simplify a little.
713 (scanAVersion): Factored out code from scan_downloaded_files for
715 (scan_downloaded_files): Factor out inner loop for clarity.
716 (ChooserPage::OnNext): Don't dump the dependency list,
717 it's parsing is robust now!.
718 * cygpackage.cc (createInstance): Use a factory method to create new
720 (cygpackage::cygpackage): Make this private for use by the factory.
721 (cygpackage::setCanonicalVersion): Renamed from set_canonical_version.
722 Remove key usage as it's obsolete.
723 * cygpackage.h (cygpackage): Inherit from _packageversion, not
725 (cygpackage::createInstance): New factory.
726 (cygpackage::cygpackage): Make private.
727 * desktop.cc (make_passwd_group): Use new packageversion reference.
728 * download.cc (do_download_thread): Use changeRequested() for clarity.
729 Use new packageversion reference calls.
730 * iniparse.y (REQUIRES): Reuse the packageList code and dump the one-off
732 * install.cc: Adjust -> to ., and use the new accessor functions for
733 packageversion throughout.
734 * package_db.cc: Adjust -> to ., and use the new accessor functions for
735 packageversion throughout.
736 (packagedb::packagedb): Use the new cygpackage factory.
737 (packagedb::flush): Leverage String to remove buffer overflow chance in
739 (packagedb::findBinary): Find a binary meta package that has a version
740 matching a given specification.
741 (packagedb::findSource): Ditto, but for source.
742 * package_db.h (packagedb::findBinary): Declare.
743 (packagedb::findSource): Ditto.
744 * package_meta.cc: Adjust packageversion accessors to the new
745 reference calls. (i.e. -> to .) throughout.
746 Include the package_meta header first to ensure it parses standalone.
747 Use the STL algorithms.
748 (packagemeta::packagemeta): Create a copy constructor to allowing
749 cloning binary package metadata to source package metadata.
750 (packagemeta::~packagemeta): Use the STL coleltion code rather than
751 custom collection code.
752 (packagemeta::add_version): Ditto.
753 (packagemeta::set_installed): Ditto.
754 (packagemeta::SDesc): Ditto.
755 (hasSDesc): Helper function for find_if.
756 (checkForInstalled): Ditto.
757 (checkForUpgradeable): Ditto.
758 (checkForSatisfiable): Ditto.
759 (packagemeta::action_caption): Update for split out source packages.
760 (packagemeta::set_action): Ditto.
761 (packagemeta::set_requirements): Support multi-valued dependency
762 lists - a|b & c|d - with versioned package specifications.
763 (packagemeta::accessible): Helper member to improve abstraction.
764 (packagemeta::sourceAccessible): Ditto.
765 * package_meta.h: Adjust packageversion accessors to the new
766 reference calls. (i.e. "->" to "." and"*" to "" ) throughout.
767 (packagemeta::packagemeta): Declare copy constructor.
768 Remove self initialising members.
769 (packagemeta::set_action): Update parameters for new packageversion.
770 (packagemeta::trustp): Ditto.
771 (packagemeta::versions): Becomes an STL set.
772 * package_source.h (packagesource::Cached): Const correctness change.
773 * package_version.cc: Rewrite the packageversion interface to remove
774 the cygpackage nonvirtual members, and provide a copy by value,
775 pointer semantics reference counting wrapper class to ease use and
776 comparison of packageversions.
777 Change existing packageversion class to _packageversion throughout.
778 (_defaultversion): A trivial concrete class to prevent specialcasing
779 the default constructor for packageversion;
780 (packageversion::packageversion): Implement.
781 (packageversion::~packageversion): Ditto.
782 (packageversion::operator=): Ditto.
783 (packageversion::operator !): Ditto.
784 (packageversion::operator bool): Ditto.
785 (packageversion::operator ==): Ditto.
786 (packageversion::operator !=): Ditto.
787 (packageversion::operator <): Ditto.
788 (packageversion::Name): Ditto.
789 (packageversion::Canonical_version): Ditto.
790 (packageversion::setCanonicalVersion): Ditto.
791 (packageversion::getfirstfile): Ditto.
792 (packageversion::getnextfile): Ditto.
793 (packageversion::SDesc): Ditto.
794 (packageversion::set_sdesc): Ditto.
795 (packageversion::LDesc): Ditto.
796 (packageversion::set_ldesc): Ditto.
797 (packageversion::sourcePackage): Ditto.
798 (packageversion::sourcePackageSpecification): Ditto.
799 (packageversion::setSourcePackageSpecification): Ditto.
800 (packageversion::depends): Ditto.
801 (packageversion::predepends): Ditto.
802 (packageversion::recommends): Ditto.
803 (packageversion::suggests): Ditto.
804 (packageversion::replaces): Ditto.
805 (packageversion::conflicts): Ditto.
806 (packageversion::provides): Ditto.
807 (packageversion::picked): Ditto.
808 (packageversion::pick): Ditto.
809 (packageversion::changeRequested): Ditto.
810 (packageversion::uninstall): Ditto.
811 (packageversion::source): Ditto.
812 (packageversion::accessible): Ditto.
813 (_packageversion::sourcePackage): Ditto.
814 (_packageversion::accessible): Ditto.
815 (_packageversion::changeRequested): Ditto.
816 * package_version.h: Rewrite the packageversion interface to remove
817 the cygpackage nonvirtual members, and provide a copy by value,
818 pointer semantics reference counting wrapper class to ease use and
819 comparison of packageversions.
820 Change existing packageversion class to _packageversion throughout.
821 (Dependency): Remove.
822 (packageversion): New wrapper class.
823 (_packageversion): Renamed from packageversion.
824 (_packageversion::setCanonicalVersion): New method.
825 (_packageversion::sourcePackage): Ditto.
826 (_packageversion::sourcePackageSpecification): Ditto.
827 (_packageversion::setSourcePackageSpecification): Ditto.
828 (_packageversion::changeRequested): Ditto.
829 (_packageversion::bin): Rename to source.
830 (_packageversion::src): Remove.
831 (_packageversion::accessible): New method.
832 (_packageversion::references): Allow reference counting.
833 (_packageversion::sourceVersion): Cached the best-match source
836 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
838 * compress_bz.h (compress_bz::position): Track how much has been read.
839 * compress_bz.cc (compress_bz::compress_bz): And initialise it.
840 (compress_bz::read): Track amount read by the client.
841 (compress_bz::tell): And report it when asked.
843 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
845 * Makefile.am (snapshot): Automate snapshot creation some more.
847 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
849 * msg.cc (msg): Use vsnprintf to avoid buffer overflows.
851 * ini.cc (fprintf): Ditto.
852 * log.cc (log): Ditto.
853 * package_db.cc (packagedb::sourcePackages): Split out source packages
854 from binary packages.
855 * package_db.h: Ditto.
857 2002-06-27 Robert Collins <rbtcollins@hotmail.com>
859 * PackageSpecification.h: New file. Abstracts the ability to refer
860 to another package, by name, or name and version.
861 * PackageSpecification.cc: Ditto.
862 * IniDBBuilder.cc (IniDBBuilder::buildPackageInstall): Simplify.
863 (IniDBBuilder::buildPackageSource): Ditto.
864 (IniDBBuilder::buildBeginDepends): New method for versioned
866 (IniDBBuilder::buildBeginPreDepends): Likewise, for dependencies to be
867 satisfied before pre-install.
868 (IniDBBuilder::buildPriority): New method, for getting the package
870 (IniDBBuilder::buildInstalledSize): How much disk space does it need?
871 (IniDBBuilder::buildMaintainer): Who maintains the package?
872 (IniDBBuilder::buildArchitecture): What platform is it for?
873 (IniDBBuilder::buildInstallSize): How big is the binary download?
874 (IniDBBuilder::buildInstallMD5): Whats the MD5 on the binary?
875 (IniDBBuilder::buildSourceMD5): Whats the MD5 on the source package?
876 (IniDBBuilder::buildBeginRecommends): What other packages are
877 recommended with this one?
878 (IniDBBuilder::buildBeginSuggests): And suggested?
879 (IniDBBuilder::buildBeginReplaces): What packages does this replace?
880 (IniDBBuilder::buildBeginConflicts): And collide with?
881 (IniDBBuilder::buildBeginProvides): What virtual packages (or obsolete
882 package names) does this provide?
883 (IniDBBuilder::buildDescription): Grab a multi line description one
885 (IniDBBuilder::buildSourceName): What source package should be used to
886 install the source for this binary package?
887 (IniDBBuilder::buildSourceNameVersion): Is a specific version needed?
888 (IniDBBuilder::buildPackageListAndNode): Add another AND clause to a
889 list of package specifications.
890 (IniDBBuilder::buildPackageListOrNode): Add another OR clause.
891 (IniDBBuilder::buildPackageListOperator): Add a versioning operator
892 to the current specification.
893 (IniDBBuilder::buildPackageListOperatorVersion): What version does the
895 * IniDBBuilder.h: Declare all the IniDBBuilder.cc changes.
896 * IniDBBuilderPackage.cc: As for IniDBBuilder.cc.
897 (IniDBBuilderPackage::IniDBBuilderPackage): Iniitialize new members.
898 (IniDBBuilderPackage::process_src): Streamline and split out
900 (IniDBBuilderPackage::setSourceSize): From process_src.
901 * IniDBBuilderPackage.h: Declare the IniDBBuilderPackage.cc changes.
902 (IniDBBuilderPackage::currentSpec): Track the in-progress specifiation.
903 (IniDBBuilderPackage::currentOrList): Track the current Or list.
904 (IniDBBuilderPackage::currentAndList): Track the current And list.
905 * IniParseFeedback.cc (IniParseFeedback::progress): Provide completion
907 (IniParseFeedback::iniName): Tell what ini filename we are currently
909 * IniParseFeedback.h: Declare IniParseFeedback.cc changes.
910 * IniParseFindVisitor.cc (IniParseFindVisitor::IniParseFindVisitor):
911 Make the feedback object non-const to allow mutating methods which are
912 needed when the object has state.
913 (IniParseFindVisitor::visitFile): Tell the caller the name of each
915 Initialise the parser with the feedback object to allow it to tell of
917 * IniParseFindVisitor.h: Declare IniParseFindVisitor.cc changes.
918 * Makefile.am (inilinst_SOURCES): Add more requisite classes.
919 (setup_SOURCES): Add the new PackageSpecification sources.
920 * ScanFindVisitor.cc (ScanFindVisitor::visitFile): Use the new
921 builder syntax to setup binary package details.
922 * choose.cc: Use the LogSingleton calls throughout.
923 * configure.in: Create the INILINT substitution correctly for recent
924 autotool configurations.
925 * cygpackage.cc (cygpackage::getfirstfile): Return an empty String
926 rather than a string built from an int. Thanks to Pavel Tsekov for
928 (cygpackage::getnextfile): Ditto.
929 * download.cc: Use LogSIngletion calls throughout.
930 (validateCachedPackage): A refactoring of the
931 check_for_cached code to eliminate duplciation.
932 (check_for_cached): Use validateCachedPackage to check packages.
933 * ini.cc (GuiParseFeedback): Provide gui feedback on ini name and
935 (do_remote_ini): Ditto.
936 * ini.h (ini_init): Pass a IniParseFeedback to the parser, to allow
938 * inilex.l: Identify new symbols - operators, and multi line plain text.
940 * inilintmain.cc (show_help): Provide basic infomation on inilint.
941 * iniparse.y: Adjust for the new builder syntax, and process debian
943 * io_stream_file.cc: Always include mkdir.h.
944 * list.h: Factor index location into a private routine.
945 (list::findindex): Implement this.
946 * mkdir.cc (mkdir_p): Make the use of WIN32 code conditional on mingw
947 builds. NB: This breaks cygwin build functionality still.
948 * package_meta.cc: Use the LogSingleton calls throughout.
949 (packagemeta::set_requirements): Adjust for object changes in
951 * package_meta.h (packagemeta::packagemeta): Initialise new members.
952 (packagemeta::architecture): What platform does this package run on?
953 This may need to move in the future to a per packagefile object.
954 (packagemeta::priority): What priority does this package have?
955 * package_source.h (packagesource::packagesource): Initialise new
957 (packagesource::installedSize): How much space does the package need?
958 (packagesource::setInstalledSize): Tell the amount.
959 (packagesource::_installedSize): And store it.
960 * package_version.cc (packageversion::sourcePackage): return the
962 (packageversion::setSourcePackage): And set it.
963 * package_version.h: Declare the package_version.cc changes.
964 (packageversion::depends): New package specification AND list.
965 (packageversion::predepends): Ditto.
966 (packageversion::recommends): Ditto.
967 (packageversion::suggests): Ditto.
968 (packageversion::replaces): Ditto.
969 (packageversion::conflicts): Ditto.
970 (packageversion::provides): Ditto.
971 (packageversion::sourcePackage): What source package is needed?
972 * threebar.cc (ThreeBarProgressPage::SetText4): Set the label beside
974 * threebar.h: Declare the threebar.cc change.
976 2002-06-27 John Marshall <johnm@falch.net>
978 * res.rc (SETUPINI_MISSING): Make trailing spaces visible.
979 * site.cc (SitePage::OnMessageCmd): Ditto
981 2002-06-15 Robert Collins <rbtcollins@hotmail.com>
983 * nio-ie5.cc (NetIO_IE5::NetIO_IE): Allow cached data.
985 2002-06-15 Robert Collins <rbtcollins@hotmail.com>
987 * package_meta.cc (packagemeta::set_action): When installing packages
988 with no binaries, choose the source package.
990 2002-06-10 Robert Collins <rbtcollins@hotmail.com>
992 * IniParseFindVisitor (IniParseFindVisitor::visitFile): Apply Max
993 Bowshers fix for the crash with a root level setup.ini.
994 * README: Update todos.
996 2002-05-26 Ralf Habacker <ralf.habacker@freenet.de>
998 * archive_tar.cc (archive_tar::next_file_name()): fixed broken
999 GNU long name extension support.
1001 2002-05-27 Robert Collins <rbtcollins@hotmail.com>
1003 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Don't
1004 unescape 0 length strings.
1006 2002-05-20 Robert Collins <rbtcollins@hotmail.com>
1008 * package_meta.cc (packagemeta::set_action): Don't allow reinstall
1009 when local with no cached file, and install the default source if the
1010 default version has no binary.
1012 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
1014 * IniDBBuilderPackage.cc (IniDBBuilderPackage::IniDBBuilderPackage): New
1016 (IniDBBuilderPackage::buildVersion): Provide a warning when a newer
1017 setup version created the ini file.
1018 * IniDBBuilderPackage.h (IniDBBuilderPackage::IniDBBuilderPackage): New
1020 * IniParseFindVisitor.cc (IniParseFindVisitor::visitFile): Use the new
1022 * IniParseFindVisitor.h (IniParseFindVisitor::IniParseFindVisitor):
1023 Require a feedback strategy.
1024 * Makefile.am (setup_SOURCES): Add IniParseFeedback sources.
1025 * Makefile.in: Regenerate.
1027 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
1029 * io_stream_file.cc (io_stream_file::remove): Use the SetFileAttributes
1030 trick to delete read only files.
1031 * io_stream_cygfile.cc (io_stream_cygfile::remove): Use file:// to
1033 * Makefile.am (release): Tweak to be more helpful.
1034 * Makefile.in: Regenerate.
1036 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
1038 * Makefile.am (release): Tweak to be more helpful.
1039 * Makefile.in: Regenerate.
1041 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
1043 * Makefile.am (release): Tweak to be more helpful.
1044 * Makefile.in: Regenerate.
1046 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
1048 * choose.cc (scan_downloaded_files): When a non-installed version
1049 has neither bin nor src cached files for local installs,
1050 remove the version from availability.
1052 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
1054 * ini.cc (do_remote_ini): Save uncompressed ini's correctly.
1056 2002-05-19 Robert Collins <rbtcollins@hotmail.com>
1058 * rsync: New support library, contains librsync. This is not (yet)
1059 rsync interoperable.
1060 * configure.in: --with-rsync to enable rsync support. (Not complete).
1061 * Makefile.am: Enable building with rsync.
1062 * Makefile.in: Regenerate.
1064 * IniDBBuilder.cc (IniDBBuilder::buildPackageInstall): Pass the md5 as
1066 (IniDBBuilder::buildPackageSource): Ditto.
1067 * IniDBBuilder.h: Ditto.
1068 * IniDBBuilderPackage.cc: Ditto.
1069 * IniDBBuilderPackage.h: Ditto.
1070 * FindVisitor.cc: New file.
1071 * FindVisitor.h: New file, interface for visiting a file system
1073 * IniParseFindVisitor.cc: New file.
1074 * IniParseFindVisitor.h: New file, concrete FindVisitor that parses
1076 * README: Update TODO's.
1077 * String++.cc (String::String): New constructor for <string> inter-
1079 (String::substr): New method.
1080 * String++.h: Ditto.
1081 * choose.cc (scan2): Remove.
1082 (scan_downloaded_files): Simplify.
1083 * dialog.h: Include parsing pre-requirements.
1084 * download.cc (check_for_cached): Fullname was used incorrectly - fix.
1085 * filemanip.cc (parse_filename): -src packages where incorrectly parsed.
1086 * find.cc: Rewrite. Now uses a Visitor pattern and is re-entrant.
1088 * fromcwd.cc: Remove unneeded includes.
1089 (is_test_version): Remove.
1090 (found_file): Remove.
1091 (SetupFindVisitor): Trivial visitor to detect setup.ini's.
1092 (found_ini): Remove.
1093 (do_fromcwd): Remove commented code that has be replaced elsewhere.
1094 * ini.cc (local_ini): Remove.
1095 (findBuilder): Remove.
1096 (find_routine): Remove.
1097 (do_local_ini): Use new IniParseFindVisitor.
1098 * iniparse.y: Typecase MD5 arrays, as we know they are allocated as
1100 * postinstall.cc: Remove non-core includes.
1101 (run_script_in_postinstall): Remove.
1102 (RunFindVisitor): Trivial Visitor, runs each found script.
1103 (do_postinstall): Use new find syntax.
1105 2002-05-14 Christopher Faylor <cgf@redhat.com>
1107 * ini.cc (find_routine): Don't clear buffer it it's NULL.
1109 2002-05-14 Christopher Faylor <cgf@redhat.com>
1111 * filemanip.h (trail): Declare.
1112 * filemanip.cc (trail): New function.
1113 (find_tar_ext): Use trail() instead of strstr().
1114 * fromcwd.cc (check_ini): Ditto.
1115 * ini.cc (find_routine): Ditto. Don't tack local_dir to path since it
1116 should now be fully qualified. Set ini_filename. Reset error_buf and
1117 error_count for any subsequent ini file parsing.
1118 (ini_filename): New static variable for parse error reporting.
1119 (yyerror): Use full path of setup.ini in error message. Subtract one
1120 from line number if at bol.
1121 * find.cc (found_part): Eliminate.
1122 (find_sub): Call for_each with full path found rather than just file
1124 (find): Don't calculate found_part.
1125 * inilex.l (ini_init): Flush input buffer and reset line number.
1126 (yybol): New function. Exports YY_AT_BOL.
1127 * iniparse.y: Increase stack depth to allow more tokens to be processed.
1128 (yyparse): Remove newline from error condition to allow subsequent
1129 per-line error processing to proceed normally.
1131 2002-05-14 Christopher Faylor <cgf@redhat.com>
1133 * find.cc (find_sub): Be more defensive in preserving trailing parts of
1134 components when doing recursive directory searches or calling user
1135 supplied for_each().
1136 * ini.cc (find_routine): Don't assume that any path name with
1137 "setup.ini" in it is actually a setup.ini file. Only honor trailing
1138 components. Copy path argument to temporary storage when unescaping
1139 to prevent nuking of argument.
1141 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
1143 * CONTRIBUTORS: New file.
1145 2002-04-02 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1147 * choose.cc: Run indent.
1148 (nextbutton): Remove static variable.
1149 (default_trust): Remove use of nextbutton.
1150 (set_view_mode): Ditto.
1151 (create_listview): Add IDC_CHOOSE_PREV and IDC_CHOOSE_NEXT to ta[] so
1152 rbset() sets the prev/next/curr radio buttons properly.
1153 (dialog_cmd): Delete function.
1154 (dialog_proc): Delete function. Move WM_INITDIALOG functionality to
1155 ChooserPage::OnInit.
1156 (do_choose): Delete function. Move pre-DialogBox() code to
1157 ChooserPage::OnInit(), post-DialogBox() code to ChooserPage::OnNext.
1158 (WM_APP_START_CHOOSE): Remove define.
1159 (WM_APP_CHOOSE_IS_FINISHED): Remove define.
1160 (do_choose_thread): Delete function.
1161 (ChooserPage::OnActivate): Delete method.
1162 (ChooserPage::OnMessageApp): Delete method.
1163 (ChooserPage::OnInit): New method.
1164 (ChooserPage::OnNext): New method.
1165 (ChooserPage::OnBack): New method.
1166 (ChooserPage::OnMessageCmd): New method.
1167 * choose.h: Run indent.
1168 (ChooserPage::OnMessageApp): Delete declaration.
1169 (ChooserPage::OnActivate): Ditto.
1170 (ChooserPage::OnMessageCmd): New declaration.
1171 (ChooserPage::OnInit): Ditto.
1172 (ChooserPage::OnNext): Ditto.
1173 (ChooserPage::OnBack): Ditto.
1174 * desktop.cc (DesktopSetupPage::OnBack): Replace use of IDD_CHOOSER
1176 * fromcwd.cc (do_fromcwd): Replace use of IDD_CHOOSER with IDD_CHOOSE.
1177 * ini.cc (do_ini_thread): Replace use of IDD_CHOOSER with IDD_CHOOSE.
1178 * res.rc (IDD_CHOOSE): Remove dialog template.
1179 (IDD_CHOOSER): Alter dialog template to fit wizard size and format.
1181 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
1183 * LogFile.cc (endLog): Work around an apparent libg++-3 bug causing
1184 corrupt log file entries.
1185 * geturl.cc: Convert to the new LogSingleton logging.
1187 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
1189 * ini.cc (do_remote_ini): Use setup.bz2 if it exists in preference to
1192 2002-05-12 Robert Collins <rbtcollins@hotmail.com>
1194 * geturl.h: Declare getUrlToStream.
1195 * geturl.cc (getUrlToStream): New function.
1196 (get_url_to_membuf): Refactor to use getUrlToStream.
1198 2002-05-11 Robert Collins <rbtcollins@hotmail.com>
1200 * Makefile.am: Add a release target to automate some of the routine
1202 * Makefile.in: Regenerate.
1204 2002-05-11 Robert Collins <rbtcollins@hotmail.com>
1206 * choose.cc (scan_downloaded_files): On local installs remove all
1207 mirror sites if no cached copy of a package is found.
1209 2002-05-10 Robert Collins <rbtcollins@hotmail.com>
1211 * Makefile.in: Regenerate.
1212 * iniparse.y: Use left recursion, not right in the lines rule to
1213 avoid stack overflows.
1214 * README: Update TODO's.
1215 * io_stream_file.cc: Native builds need to include sys/stat.h
1217 2002-05-06 John Marshall <jmarshall@acm.org>
1219 * site.cc (SitePage::OnMessageCmd): recalculate navigation
1220 button activation when "Add" is pressed.
1221 (SitePage::CheckControlsAndDisableAccordingly): tweak comment.
1223 2002-05-07 Robert Collins <rbtcollins@hotmail.com>
1225 * Makefile.am (inlint_SOURCES): Add conditional objects to inilint
1226 depending on platform.
1227 Add file:// support.
1228 * configure.in: Set conditional MINGWTARGET if compiling against mingw
1230 * Makefile.in: Regenerate.
1232 * io_stream_file.cc: Only use win32 calls when building for mingw.
1234 2002-05-05 Robert Collins <rbtcollins@hotmail.com>
1236 * Makefile.am (noinst_PROGRAMS): Make inilint configurable.
1237 * configure.in: Ditto.
1238 Fix incorrect header checking syntax.
1239 * aclocal.m4: Regenerate.
1240 * configure: Regenerate.
1241 * Makefile.in: Regenerate.
1242 * io_stream.cc: Remove platform specific and provider specific code.
1243 (io_stream::registerProvider): New method, registers a Url provider with
1245 Make all methods consistently throw invalid_argument exceptions when
1246 a provider that is requested is not present.
1247 (findProvider): New private function, finds a provider.
1248 * io_stream.h: Declare io_stream::registerProvider.
1249 * io_stream_cygfile.cc: Create a Provider class to register with
1251 * io_stream_file.cc: Ditto.
1252 * archive.cc: Remove unneeded includes.
1253 * archive_tar.cc: Remove unneeded includes.
1254 * archive_tar.h: Add required include.
1255 * archive_tar_file.cc: Remove unneded includes.
1256 * choose.cc: Remove unneeded includes:
1258 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
1260 * io_stream.cc: Use the new log interface thruout.
1262 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
1264 * log.cc (log): Reimplement via LogSingleton.
1266 (exit_setup): Remove.
1267 * log.h (log_save): Remove.
1268 (exit_setup): Remove.
1269 * LogSingleton.cc: New file.
1270 * LogSingleton.h: New file.
1271 * LogFile.cc: New file.
1272 * LogFile.h: New file.
1273 * Makefile.am (inilint_SOURCES): Add the new log interface.
1274 (setup_SOURCES): Add the new log interface and the concrete File
1276 * Makefile.in: Regenerate.
1277 * archive.cc: Use the new log interface thruout.
1278 * archive_tar.cc: Ditto.
1280 * dialog.cc (fatal): Use the new log interface.
1281 * ini.cc (do_ini_thread): Use the log interface to exit.
1282 * isntall.cc (do_install_thread): Ditto.
1283 * netio.cc (auth_cmd): Ditto.
1284 * msg.cc (fatal): Ditto.
1285 * localdir.cc (save_local_dir): Save to different files depending on
1286 the mode, and if a root dir exists.
1288 2002-05-04 Robert Collins <rbtcollins@hotmail.com>
1290 * IniDBBuilder.cc: New file.
1291 * IniDBBuilder.h: New file.
1292 * IniDBBuilderPackage.cc: New file.
1293 * IniDBBuilderPackage.h: New file.
1294 * PackageTrust.h: New file.
1295 * IniState.h: Remove, wasn't thought out well enough.
1296 * Makefile.am (inilint_SOURCES): Add more requirements.
1297 (setup_SOURCES): Add new Builder base and concrete classes.
1298 * Makefile.in: Regenerate.
1299 * String++.cc (String::String): Implement int contructor.
1300 * String++.h (String): Declare int constructor.
1301 * archive_tar.cc (archive_tar::next_file_name): Return String() when
1303 * archive_tar.h (archive_tar_file): Remove get_next_filename method,
1305 * ini.cc: Replace IniState wuth IniDBBuilderPacakge.
1306 (find_routine): Use new IniDBBuilder to configure the parser.
1307 (do_local_ini): Ditto.
1308 (do_remote_ini): Ditto.
1309 * ini.h: Use IniDBBuilder to initialise parsing.
1310 * inilex.l (MD5): Parse the MD5 string correctly, we had the nibbles
1312 (ini_init): Use an IniDBBuilder rather than static variables.
1313 * iniparse.y: Hand off all the object creation to a builder, rather
1314 than hardcoding the behaviour. This allows run-time configured
1316 * io_stream_cygfile.h (io_stream_cygfile): Remove get_next_filename
1317 method, it's not needed.
1318 * io_stream_file.h (io_stream_file): Ditto.
1319 * mount.cc (cygpath): Return String() for missing mounts.
1320 * package_meta.cc (packagemeta::SDesc): Return String() for blank
1322 * package_meta.h (trusts): Remove - replaced by PackageTrust.h.
1323 (packagemeta::packagemeta): Fix incorrect syntax in String constructor
1325 * cygpackage.cc (cygpackage::cygpackage): Fix incorrect syntax in
1326 String constructor usage.
1327 * site.h (site_list_type): Ditto.
1329 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
1331 * String++.h: Declare a << operator that accepts String objects.
1332 * String++.cc: We need iostream for..
1333 (operator <<): this. Provide a << operator that accepts String objects.
1334 * ini.cc (yyerror): Remove the "C" classifier - it's not needed.
1335 Change from vargs to a String parameter.
1336 * inilintmail.cc: Remove the gui related headers.
1337 (yyerror): Implement this for parsing.
1338 * iniparse.y: Use the new yyerror syntax.
1340 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
1342 * Makefile.am: Add IniState.h.
1343 * Makefile.in: Regenerate.
1344 * IniState.h: New file.
1345 * choose.cc: Don't include ini.h - it's not needed.
1346 * configure: Regenerate.
1347 * desktop.cc: Don't include ini.h - it's not needed.
1348 * download.cc: Ditto.
1349 * fromcwd.cc: Ditto.
1350 * ini.cc: Use IniState.h to track each parsing calling.
1351 (find_routine): Ditto.
1352 (do_remote_ini): Ditto.
1353 (do_ini_thread): Ditto.
1354 * ini.h (ini_init): Adjust parameters to include state object.
1355 * inilex.l: Declare parser state variable.
1356 (ini_init): Adjust parameters to include state object.
1357 * iniparse.y: Remove obsolete setup_timestamp and setup_version
1359 (setup_header): Use new state variable to track time and version.
1360 (add_correct_version): Ditto.
1361 * install.cc: Don't include ini.h - it's not needed.
1363 2002-05-03 Robert Collins <rbtcollins@hotmail.com>
1365 * nio-files.cc (NetIO): Use io_stream syntax for get_file_size.
1366 * io_stream_file.cc: Don't include filemanip.h.
1367 (io_stream_file::get_size): Implement here to remove filemanip
1369 * io_stream_cygfile.cc: Don't include filemanip.h.
1370 (io_stream_cygfile::get_size): Implement here to remove filemanip
1372 Implement a stat based version for when win32 is not available.
1373 * filemanip.h (get_file_size): Return size_t - it's more appropriate.
1374 * filemanip.cc: Don't include win32.h - be platform independent.
1375 Include strings.h and io_stream.h as part of that.
1376 (get_file_size): Leverage io_streams and remove win32 implementation.
1377 * download.cc (check_for_cached): Use io_stream syntax for
1379 (download_one): Ditto.
1381 2002-05-02 Robert Collins <rbtcollins@hotmail.com>
1383 * configure.in: Correct a typo in last change.
1384 * configure: Regenerate.
1385 * Makefile.in: Regenerate.
1387 2002-05-02 Robert Collins <rbtcollins@hotmail.com>
1389 * configure.in: Check for string.h and string.
1390 * configure: Regenerate.
1391 * Makefile.in: Regenerate.
1393 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
1395 * res.rc (IDD_SPLASH): Remove white box.
1397 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
1399 Oops! forgot to list these in the last checkin.
1400 * inilintmain.cc: New file.
1401 * md5.h: New file - imported md5 source, BSD style licence.
1402 * md5.cc: New file - imported md5 source, BSD style licence.
1403 * Exception.cc: New file.
1404 * Exception.h: New file.
1405 * MD5++.cc: New file.
1406 * MD5++.h: New file.
1408 2002-05-01 Robert Collins <rbtcollins@hotmail.com>
1410 * Makefile.am (AM_CFLAGS): Remove -mwindows, it's a linker flag.
1411 Remove -fno-rtti, we need it for exceptions.
1412 (AM_CXXFLAGS): Ditto.
1413 (WARNONLY_CFLAGS): Ditto.
1414 (EXTRA_PROGRAMS): Add with initial linter sources - not functional yet.
1415 (setup_LDFLAGS): Add and set to -mwindows.
1416 (setup_SOURCES): Add new sources.
1417 * Makefile.in: Regenerate.
1418 * README: Update TODO.
1419 * choose.cc (scan_downloaded_files): Use ini information if it's
1421 * configure: Regenerate.
1422 * download.cc (check_for_cached): Make reusable from elsewhere.
1423 Throw exceptions on errors (as opposed to failures).
1424 Check MD5 sum when it's known.
1425 (download_one): Never force a download.
1426 Handle corrupt package exceptions.
1427 * ini.cc (find_routine): Reverse escape the URL to correctly identify
1429 * inilex.l (MD5): Provide a parsing rule (note: lowercase is required).
1430 * iniparse.y: Allow calculation of MD5 sums, and allow src only
1432 (process_src): New helper function.
1433 * isntall.cc (install_one_source): Check MD5 sums when possible.
1434 Throw exceptions on errors.
1435 (do_install_thread): Handle exceptions for installation calls.
1436 * package_source.h: Store MD5 information.
1437 * propsheet.cc (PropSheet::Create): Add a useful comment.
1438 * res.rc (IDS_INSTALL_ERROR): Define.
1439 (IDS_CORRUPT_PACKAGE): Define.
1440 * resource.h (IDS_INSTALL_ERROR): Define.
1441 (IDS_CORRUPT_PACKAGE): Define.
1442 * rfc1738.cc (rfc1738_unescape_part): Implement.
1443 * rfc1738.h (rfc1738_unescape_part): Declare.
1445 2002-04-29 Robert Collins <rbtcollins@hotmail.com>
1447 * Makefile.am: Remove dependecy rules that automake emits.
1448 Correct badly copied dependency info for manually compiled files.
1449 (setup_SOURCES): Add all used headers.
1450 (EXTRA_DIST): Include non compilate but required sources.
1451 (setup_LDADD): Remove mingw32, it is autodetected.
1452 * Makefile.in: Regenerate.
1453 * String++.h: sys/types is a system header.
1454 * choose.cc (do_choose_thread): Make into a Win32 thread routine.
1456 (ChooserPage::OnMessageApp): Use Win32 threads. (_beginthread is not
1458 * configure: Regenerate.
1459 * configure.in: Check for mingw32/cygwin specific headers and libraries.
1460 * cygpackage.h: Include the win32.h header to get correct macro
1461 definitions in all situations.
1462 * download.cc (do_download_reflector): Make into a Win32 thread routine.
1464 (do_download): Use Win32 threads.
1466 * install.cc: Ditto.
1467 * (WinMain): Adjust to build valid command line using application
1468 under both mingw32 and cygwin.
1469 * mount.cc (set)cygdrive_flags): Create new system flags if the
1470 user requests system and the value does not exist.
1471 * nio-http.cc: Define a _strnicmp for cygwin.
1472 * package_db.cc: Include <errno.h> if it exists.
1473 * site.cc (do_download_site_info_thread): Make into a Win32 thread
1476 (do_download_site-Info): Use Win32 threads.
1477 * state.cc: Explicity declare variables to avoid header conflicts
1478 caused by '#define extern" on cygwin.
1479 * win32.h: Include <alloca.h> if it exists.
1480 (_MAX_PATH): Define as MAX_PATH when not defined by windows.h.
1481 (_access): Define as access if not defined by windows.h.
1483 2002-04-27 Robert Collins <rbtcollins@hotmail.com>
1485 * compress_gz.cc (compress_gz::error): EOF is not an error condition.
1487 2002-04-27 Robert Collins <rbtcollins@hotmail.com>
1489 * Makefile.am: Add libgetopt++ to the subdirs list.
1490 Search the libgetopt++ header directory.
1491 Link against libgetopt++.la.
1492 (setup_SOURCES): Remove GetOption.cc and getopt.c and Option.cc.
1493 (setup_LDADD): Explicitly include res.o.
1494 * Makefile.in: Regenerate.
1495 * aclocal.m4: Regenerate.
1496 * bootstrap.sh: Call libtoolize.
1497 * configure: Regenerate.
1498 * configure.in: Add libtool support and configure libgetopt++.
1499 * desktop.cc (NoShortcutsOption): Turn into a BoolOption.
1500 (DesktopSetupPage::OnInit): Use the simpler syntax.
1501 * desktop.h: Remove dependency on Option.h, and remove NoShortcustOption
1503 * main.cc: Include getopt++/GetOption.h.
1504 (main): Use simpler syntax.
1508 * GetOption.h: Remove.
1509 * GetOption.cc: Remove.
1511 * Option.cc: Remove.
1513 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
1515 * Makefile.am: Add zlib and bz2lib to SUBDIRS.
1517 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
1519 * aclocal.m4: New file, cached macros.
1520 * bootstrap.sh: New file, calls required autotools in appropriate
1522 * Makefile.am: New file, input Makefile for automake.
1523 * Makefile,in: Now a generated file - regenerate.
1524 * configure: Regenerate.
1525 * configure.in: Add automake support.
1526 * inilex.l: Change VERSION to PACKAGEVERSION to avoid a collision with
1527 automake's VERSION define.
1528 * iniparse.y: Ditto.
1530 2002-04-26 Robert Collins <rbtcollins@hotmail.com>
1532 * cdefs.h: New file, imported to allow getopt.c to build without
1534 * getopt.h: New file, imported to allow building without cygwin headers.
1536 * bz2lib: New directory, contains copy of bz2lib.
1537 * cfgaux: New directory, contains autotool helper scripts.
1538 * Makefile,in: Adjust library and target definitions for building
1539 outside the sourceware tree.
1540 * compress_bz.h: Use new bz2lib header location.
1541 * mount.cc: Import key defines and enums to be independent of cygwin
1543 * configure.in: Update to autoconf 2.53, and to be sourceware
1545 * configure: Regenerate.
1547 2002-04-12 Robert Collins <rbtcollins@hotmail.com>
1549 * mklink2.cc (make_link_2): Tweak to work with current w32api
1552 2002-04-10 Pavel Tsekov <ptsekov@gmx.net>
1554 * version.cc (canonicalize_version): Fix a call delete[]
1555 to delete the allocated address.
1557 2002-03-29 Robert Collins <rbtcollins@hotmail.com>
1559 * PickView.cc (PickView::set_headers): Set last_col correctly. Thanks
1560 to Ton van Overbeek for locating the bug area.
1562 2003-03-27 Robert Collins <rbtcollins@hotmail.com>
1564 * PickView.cc (PickView::insert_pkg): Be more generic with
1566 (PickView::insert_category): Ditto.
1567 (PickView::~PickView): Create.
1568 * PickView.h (PickView::~PickView): Declare.
1570 2003-03-27 Robert Collins <rbtcollins@hotmail.com>
1572 * Makefile.in (OBJS): Add new commandline objects.
1573 * desktop.cc (NoShortCutsOption): New option code.
1574 (DesktopSetupPage::OnInit): Check whether to skip shortcuts.
1575 * desktop.h (NoShortCutsOption): New concrete command line option class.
1576 * main.cc (WinMain): Process command line options.
1577 * GetOption.h: New file, singleton command line class.
1578 * GetOption.cc: New file, implementation of the above.
1579 * Option.h : New file, abstract option for GetOption.
1580 * Option.cc: New file, implement constructor and destructor.
1582 2002-03-26 Pavel Tsekov <ptsekov@gmx.net>
1584 * mkdir.cc (mkdir_p): Stop processing if the path is exhausted.
1586 2002-03-26 Ton van Overbeek <tvoverbe@cistron.nl>
1588 * PickPackageLine.cc (PickPackageline::paint): Adjust clipping rectangle
1589 to textheight, so large fonts work.
1591 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
1593 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Don't translate
1596 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
1598 * io_stream_cygfile.cc (cwd): New static for cwd storage.
1599 (io_stream_cygfile::normalise): New method.
1600 (io_stream_cygfile::io_stream_cygfile): Use it.
1601 (io_stream_cygfile::exists): Ditto.
1602 (io_stream_cygfile::remove): Ditto.
1603 (io_stream_cygfile::mklink): And again.
1604 (cygmkdir_p): Yes, again.
1605 (io_stream_cygfile::move): And once more.
1606 * io_stream_cygfile.h (io_stream_cygfile::normalise): Declare.
1607 (io_stream_cygfile::cwd): Ditto.
1609 2003-03-26 Robert Collins <rbtcollins@hotmail.com>
1611 * package_meta.cc (package_meta::~package_meta): Remove duplicate.
1612 (CategoryPackage::~CategoryPackage): Ditto. (Thanks to Ton van
1613 Overbeek for the report).
1614 * mklink2.cc: Moved from mklink2.c to avoid 'not a prototype error'.
1615 Make g++ compatible.
1616 * mklink2.c: Remove.
1617 * site.cc (site_list_type::init): Delete the correct memory addres.
1618 Thanks to Pavel Tsekov for tracking this down.
1620 2002-03-20 Robert Collins <rbtcollins@hotmail.com>
1622 * win32.h: Only define alloca if it's not already.
1624 2002-03-20 Robert Collins <rbtcollins@hotmail.com>
1626 * package_meta.h (packamgemeta::trustp): Make 'test' choice leave installed
1628 * README: Update with latest requests.
1629 * Various: MTC fixes from setup200202 branch.
1631 2002-03-19 Christopher Faylor <cgf@redhat.com>
1633 * Makefile.in (setup_version.c): Add back magic which allows detection
1634 of setup.exe version number.
1636 2002-03-17 Robert Collins <rbtcollins@hotmail.com>
1638 * * PickPackageLine.cc (PickPackageLine::paint): Fix incorrect clip region
1639 calculation on win9x systems.
1641 2002-03-16 Robert Collins <rbtcollins@hotmail.com>
1643 * install.cc (install_one_source): Write the correct length of a string to the
1644 lst file (Thanks to Pavel Tsekov for reporting the bug).
1646 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
1648 * choose.cc (list_click): Always refresh the entire chooser, as our
1649 package state change mechanism is broken with the new improved list classes.
1651 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
1653 * desktop.cc (make_passwd_group): Check for .lnk suffix on /etc/passwd and
1656 2002-03-15 Robert Collins <rbtcollins@hotmail.com>
1658 * PickPackageLine.cc (PickPackageLine::DrawCheck): New method factored out from
1660 (PickPackageLine::paint): Use DrawCheck to draw the src tick box, and the new
1662 (PickPackageLine::click): Handle the new bin tickbox.
1663 * PickPackageLine.h (PickPackageLine::DrawCheck): Declare this.
1664 * PickView.cc (pkg_headers): Add a Bin? column.
1665 (cat_headers): Ditto.
1666 (PickView::set_headers): Ditto.
1667 (PickView::init_headers): Ditto.
1668 * PickView.h (PickView): Ditto.
1669 * choose.cc (list_click): Use the new name for src_col to set the clip rectangle.
1671 2002-02-24 Michael A Chase <mchase@ix.netcom.com>
1673 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Fix up Robert's
1676 2002-02-24 Michael A Chase <mchase@ix.netcom.com>
1678 * desktop.cc (make_link): Add "file://" prefix to io_stream::mkpath_p()
1680 (make_passwd_group): Ditto.
1681 * localdir.cc (save_local_dir): Ditto.
1682 * io_stream_cygfile.cc (io_stream_cygfile::mklink): Wrap long lines.
1683 Add "cygfile://" prefix to io_stream::open() calls.
1685 2002-02-24 Robert Collins <rbtcollins@hotmail.com>
1687 * log.cc (log_save): Fix creating /var/log.
1688 * packate_meta.cc (standard_dirs): Remove duplicate '/''s.
1690 2002-02-24 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
1692 * res.rc (STRINGTABLE): Add IDS_CYGWIN_SETUP and
1693 IDS_CYGWIN_SETUP_WITH_PROGRESS strings.
1694 * resource.h: Add IDS_CYGWIN_SETUP and
1695 IDS_CYGWIN_SETUP_WITH_PROGRESS IDs.
1697 * splash.cc (OnInit): Qualify SetWindowText() call with global scope
1698 operator (::SetWindowText()).
1700 * threebar.cc: Run indent.
1701 (cistring.h): Add include.
1702 (SetText1, SetText2, SetText3): Qualify SetWindowText() call with
1703 global scope operator.
1704 (SetBar2): Add logic for writing percent complete into window title.
1706 * window.h: Run indent.
1707 (SetWindowText): New function.
1708 (String): Add forward declaration.
1709 * window.cc: Run indent.
1710 (String++.h): Add include.
1711 (SetWindowText): New function.
1713 2002-02-24 Robert Collins <rbtcollins@hotmail.com>
1715 * README: Update TODO list.
1716 * install.cc (install_one): Fix src package location.
1717 (do_install_thread): Fix creating directories.
1719 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1721 * choose.cc: Include cygpackage.h for scan2 use.
1722 (set_existence): Ignore setup.ini mirrors when installing from cwd.
1723 (scan2): Process any valid file.
1724 Add cache entries when a file matching a setup.ini listed version is found.
1725 * filemanip.cc (parse_filename): Remove pkgtar - not used anywhere else.
1726 * filemanip.h (filemanip::pkgtar): Remove.
1727 * package_meta.cc (CategoryPackage::~CategoryPackage): New method.
1728 (packagemeta::~packagemeta): Move from package_meta.h
1729 Remove and delete all version and category information.
1730 * package_meta.h (CategoryPackage): Create a destructor.
1731 (packagemeta::~packagemeta): Move to .cc file.
1733 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1735 * install.cc (install_one_source): Make NULL cached package names cause
1738 2002-02-18 Michael A Chase <mchase@ix.netcom.com>
1740 * desktop.cc (make_passwd_group): Don't create passwd-grp.bat
1743 2002-02-18 Michael A Chase <mchase@ix.netcom.com>
1745 * log.cc (log_save): Put "\n" at end of log lines instead of "'".
1747 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1749 * mount.cc (create_mount): Avoid a const char*->char* warning.
1750 (read_mounts): Ditto.
1752 2002-02-05 Jason Tishler <jason@tishler.net>
1754 * download.cc (do_download_thread): Fix off-by-one error.
1756 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1758 * configure.in (CXXFLAGS): Substitute at configure time, not runtime.
1759 * configure (CXXFLAGS): Regenerate.
1760 * Makefile.in (iniparse.o): Build via default rules - no errors now.
1761 * README: TODO list updates.
1763 2002-02-19 Michael A Chase <mchase@ix.netcom.com>
1765 * String++.cc (String::concat):: Remove.
1766 (String::vconcat):: Ditto.
1767 * String++.h (String::concat):: Remove.
1768 (String::vconcat):: Ditto.
1769 * archive_tar.cc: Don't include concat.h.
1770 * archive_tar_file.cc: Don't include concat.h.
1771 * compress_bz.cc (compress_bz::peek): Don't log unneeded messages.
1772 (compress_bz::seek): Ditto.
1773 (compress_bz::~compress_bz): Ditto.
1774 * compress_gz.cc (compress_gz::peek): Ditto.
1775 (compress_gz::error): Ditto.
1776 (compress_gz::~compress_gz): Ditto.
1777 * concat.cc (vconcat): Remove.
1779 * concat.h (vconcat): Remove.
1781 * desktop.cc (desktop_icon): Use new cygpath.
1782 (make_etc_profile): Ditto.
1784 (make_passwd_group): Ditto.
1786 (check_desktop): Remove concat use.
1787 (check_start_menu): Ditto.
1788 * download.cc (download_one): Use new mkpath_p correctly.
1790 * fromcwd.cc: Don't include concat.h.
1791 * geturl.cc (get_url_to_membuf): Use String log() call.
1792 (get_url_to_file): Ditto.
1793 * install.cc: Don't include concat.h.
1794 (uninstall_one): Use LOG_PLAIN.
1795 (replace_one): Ditto.
1796 (install_one_source): Ditto.
1797 (install_one): More char to String conversion.
1798 (do_install_thread): Use new cygpath.
1799 Use new create_mount.
1800 * io_stream.cc (io_stream::move): Use new log().
1801 * io_stream_cygfile (io_stream_cygfile::io_stream_cygfile): Use new cygpath.
1802 (io_stream_cygfile::exists): Ditto.
1803 (io_stream_cygfile::remove): Ditto.
1804 (io_stream_cygfile::mklink): Ditto.
1805 (io_stream_cygfile::write): Ditto.
1806 (cygmkdir_p): Ditto.
1807 (io_stream_cygfile::move): Ditto.
1808 * io_stream_file.cc: Don't include log.h.
1809 (io_stream_file::write): Don't log unneeded messages.
1810 * localdir.cc: Don't include concat.h.
1811 (LocalDirPage::OnNext): Use LOG_PLAIN.
1812 * log.cc: Don't include log.h.
1813 (exit_setup): Use new cygpath.
1814 * log.h (log_level): Add new level LOG_PLAIN.
1815 * main.cc (WinMain): Use new log().
1816 * mount.cc (SLASH_P): New macro from concat.h.
1817 (cygpath): Make String version globally visible.
1818 Remove varargs version.
1820 * msg.cc (mbox): Use LOG_PLAIN.
1821 * net.cc (NetPage::OnNext): Ditto.
1822 * nio-ftp.cc (ftp_line): Use new log().
1823 * nio-http.cc: Don't include log.h.
1824 (retry_get): Use alternative url variable.
1825 * package_db.cc: Don't include concat.h.
1826 (packagedb::flush): Don't use concat.
1827 * package_meta.cc: Don't include concat.h.
1828 (packagemeta::uninstall): Use new cygpath.
1829 * postinstall.cc (do_postinstall): Ditto.
1830 * root.cc (RootPage::OnNext): Use LOG_PLAIN.
1831 * script.cc: Don't include concat.h.
1832 (init_run_script): Use new cygpath.
1833 (run_script): More char * to String conversion.
1834 (try_run_script): Ditto.
1835 * site.cc: Don't include concat.h.
1836 (SitePage::OnNext): Use LOG_PLAIN.
1837 (SitePage::OnMessageCmd): Use new log().
1838 * source.cc (SourcePage::OnDeactivate): Use LOG_PLAIN.
1840 2002-02-19 Robert Collins <rbtcollins@hotmail.com>
1842 * Makefile.in (OBJS): Add new object.
1843 * PickCategoryLine.cc (PickCategoryLine::paint): Print a "+" before the name.
1844 * PickCategoryLine.h (PickCategoryLine::bucket): Use the String class.
1845 * PickLine.h (Pickline::key): Change to a String to help plug leaks.
1846 (PickLine::Pickline): Accept a String for the key.
1847 * PickPackageLine.cc (PickPackageLine::paint): Convert all char use to Strings.
1848 * PickPackageLine.h (PickPackageLine::PickPackageLine): The key is automatically
1850 * PickView.cc (PickView::note_width): Convert all char * use to Strings.
1851 (PickView::init_header): Move category length checking out of the inner loop for
1853 Convert all char use to Strings.
1854 * PickView.h: Include the String++ header.
1855 (PickView::note_width): Update the prototype.
1856 * String++.cc: New file, implements a reference counting string class.
1857 * String++.h: New file, declares a reference counting string class.
1858 * archive.cc: Include String++ instead of concat.
1859 (archive::extract_file): Convert char * usage to Strings.
1860 * archive.h: Inlude the String++ header.
1861 (archive::extract_file): Update prototype.
1862 (archive::next_file_name): Convert to a String.
1863 (archive::linktarget): Ditto.
1864 * archive_tar.cc (archive_tar::next_file_name): Convert to String usage.
1865 (archive_tar::linktarget): Ditto.
1866 * arhive_tar.h: Update the copyright.
1867 Explicitly include the relevant headers.
1868 (tar_map_result_type): Convert to String usage.
1869 (archive_tar::next_file_name): Update prototype.
1870 (archive_tar::linktarget): Ditto.
1871 * category.cc (Category::Category): Update initialisers.
1872 Convert to String usage.
1873 (Categorycmp): Update to String usage.
1874 * category.h: Include the String++ header.
1875 (Category::Category): Update to String usage.
1876 (Category::name): Ditto.
1877 (Category::key): Ditto.
1878 * choose.cc: Remove concat.h, it's not needed.
1879 (scan2): Update to String usage.
1881 * cygpackage.cc: Update includes for use of String class.
1882 (cygpackage::cygpackage): Update for String usage.
1883 (cygpackage::set_canonical_version): Ditto.
1884 (cygpackage::destroy): Ditto.
1885 (cygpackage::getfirstfile): Ditto.
1886 (cygpackage::getnextfile): Ditto.
1887 (cygpackage::Name): Ditto.
1888 (cygpackage::Vendor_version): Ditto.
1889 (cygpackage::Package_version): Ditto.
1890 (cygpackage::Canonical_version): Ditto.
1891 (cygpackage::set_sdesc): Ditto.
1892 (cygpackage::set_ldesc): Ditto.
1893 * cygpackage.h: Include String++.h for parsing this file.
1894 (cygpackage::cygpackage): Update for String usage.
1895 (cygpackage::set_canonical_version): Ditto.
1896 (cygpackage::destroy): Ditto.
1897 (cygpackage::getfirstfile): Ditto.
1898 (cygpackage::getnextfile): Ditto.
1899 (cygpackage::Name): Ditto.
1900 (cygpackage::Vendor_version): Ditto.
1901 (cygpackage::Package_version): Ditto.
1902 (cygpackage::Canonical_version): Ditto.
1903 (cygpackage::set_sdesc): Ditto.
1904 (cygpackage::set_ldesc): Ditto.
1905 (cygpackage::name): Ditto.
1906 (cygpackage::vendor): Ditto.
1907 (cygpackage::packagev): Ditto.
1908 (cygpackage::canonical): Ditto.
1909 (cygpackage::fn): Ditto.
1910 (cygpackage::sdesc): Ditto.
1911 (cygpackage::ldesc): Ditto.
1912 * desktop.cc: Update includes for use of String class.
1913 (batname): Update for String usage.
1916 (start)menu): Ditto.
1917 (desktop_icon): Ditto.
1918 (make_cygwin_bat): Ditto.
1919 (make_etc_profile): Ditto.
1921 (make_passwd_group): Ditto.
1923 (check_desktop): Ditto.
1924 (check_startmenu): Ditto.
1925 * dialog.cc (eget): Update for String usage.
1926 (egetString): New function.
1927 (eset): New variant for Strings.
1928 * dialog.h: Include String++.h for parsing this file.
1929 (egetString): New function.
1930 (eset): New variant for Strings.
1931 * diskfull.cc (diskfull): Update for String usage.
1932 * diskfull.h: Include String++.h for parsing this file.
1933 (diskfull): Update for String usage.
1934 * download.cc: Update includes for use of String class.
1935 (check_for_cached): Update for String usage.
1936 (download_one): Ditto.
1937 * filemanip.cc (get_file_size): Ditto.
1939 (parse_filename): Ditto.
1941 * filemanip.h: Include String++.h for parsing this file.
1942 (fileparse): Update for String usage.
1944 (parse_filename): Ditto.
1945 Don't consider '_' to be a separator.
1947 * find.cc: Update includes for use of String class.
1948 (find_sub): Make more flexible.
1949 (find): Update for String usage.
1950 * find.h (find): Use Strings.
1951 * fromcwd.cc (found_file): Update for String usage.
1953 (init_dialog): Ditto.
1954 (get_url_to_membuf): Ditto.
1955 (get_url_to_string): Ditto.
1956 (get_url_to_file): Ditto.
1958 (get_url_to_membuf): Ditto.
1959 (get_url_to_string): Ditto.
1960 (get_url_to_file): Ditto.
1962 (add_subdirs): Ditto.
1963 * ini.cc: Update includes for String usage.
1964 (find_routine): Update for String usage.
1965 (do_remote_ini): Ditto.
1966 (do_ini_thread): Ditto.
1967 * ini.h (ini_init): Ditto.
1968 * inilex.l: Update includes for String usage.
1969 (ini_init): Update for String usage.
1970 * iniparse.y: Ditto.
1971 (add_correct_version): Ditto.
1972 * install.cc: Update includes for String usage.
1973 (install_one_source): Update for String usage.
1974 (uninstall_one): Ditto.
1975 (replace_one): Ditto.
1976 (install_one_source): Ditto.
1977 (do_install_thread): Ditto.
1978 * io_stream.cc: Update includes for String usage.
1979 (io_stream::open): Update for String usage.
1980 (io_stream::mkpath_p): Ditto.
1981 (io_stream::remove): Ditto.
1982 (io_stream::mklink): Ditto.
1983 (io_stream::move_copy): Ditto.
1984 (io_stream::move): Ditto.
1985 (io_stream::exists): Ditto.
1986 * io_stream.h: Update includes to allow correct parsing.
1987 (io_stream::open): Update for String usage.
1988 (io_stream::mkpath_p): Ditto.
1989 (io_stream::remove): Ditto.
1990 (io_stream::mklink): Ditto.
1991 (io_stream::move_copy): Ditto.
1992 (io_stream::move): Ditto.
1993 (io_stream::exists): Ditto.
1994 * io_stream_cygfile.cc: Update includes for String usage.
1995 (get_root_dir_now): Update for String usage.
1996 (io_stream_cygfile::io_stream_cygfile): Ditto.
1997 (io_stream_cygfile::~io_stream_cygfile): Ditto.
1998 (io_stream_cygfile::exists): Ditto.
1999 (io_stream_cygfile::remove): Ditto.
2000 (io_stream_cygfile::mklink): Ditto.
2001 (cygmkdir_p): Ditto.
2002 (io_stream_cygfile::set_mtime): Ditto.
2003 (io_stream_cygfile::move): Ditto.
2004 (io_stream_cygfile::get_size): Ditto.
2005 * io_stream_cygfile.h: Update includes for String usage.
2006 (io_stream_cygfile::io_stream_cygfile): Update for String usage.
2007 (io_stream_cygfile::~io_stream_cygfile): Ditto.
2008 (io_stream_cygfile::exists): Ditto.
2009 (io_stream_cygfile::remove): Ditto.
2010 (io_stream_cygfile::mklink): Ditto.
2011 (cygmkdir_p): Ditto.
2012 (io_stream_cygfile::set_mtime): Ditto.
2013 (io_stream_cygfile::move): Ditto.
2014 (io_stream_cygfile::get_size): Ditto.
2015 (io_stream_cygfile::fname): Ditto.
2016 (io_stream_cygfile::lmode): Ditto.
2017 * io_stream_file.cc: Update includes for String usage.
2018 (io_stream_file::io_stream_file): Update for String usage.
2019 (io_stream_file::~io_stream_file): Ditto.
2020 (io_stream_file::exists): Ditto.
2021 (io_stream_file::remove): Ditto.
2022 (io_stream_file::mklink): Ditto.
2023 (io_stream_file::set_mtime): Ditto.
2024 (io_stream_file::move): Ditto.
2025 (io_stream_file::get_size): Ditto.
2026 * io_stream_file.h: Update includes for String usage.
2027 * io_stream_file.cc: Update includes for String usage.
2028 (io_stream_file::io_stream_file): Update for String usage.
2029 (io_stream_file::~io_stream_file): Ditto.
2030 (io_stream_file::exists): Ditto.
2031 (io_stream_file::remove): Ditto.
2032 (io_stream_file::mklink): Ditto.
2033 (io_stream_file::set_mtime): Ditto.
2034 (io_stream_file::move): Ditto.
2035 (io_stream_file::get_size): Ditto.
2036 (io_stream_file::fname): Ditto.
2037 (io_stream_file::lmode): Ditto.
2038 * localdir.cc: Update includes for String usage.
2039 (save_local_dir): Update for String usage.
2040 (check_if_enable_next): Ditto.
2041 (load_dialog): Ditto.
2043 (LocalDirPage::OnInit): Ditto.
2044 (LocalDirPage::OnNext): Ditto.
2045 * log.cc: Update includes for String usage.
2046 (struct LogEnt): Update for String usage.
2049 (exit_setup): Ditto.
2050 * log.h: Update includes for String usage.
2051 (log_level): Update for String usage.
2054 * main.cc (WinMain): Update for String usage.
2055 * mklink2.c (make_link_2): Update for String usage.
2056 * mklink2.h (make_link_2): Update for String usage.
2057 * mount.cc: Update includes for String usage.
2058 (mount_table): Update for String usage.
2060 (create_mount): Ditto.
2062 (remove_mount): Ditto.
2063 (read_mounts): Ditto.
2064 (set_root_dir): Ditto.
2065 (get_root_dir): Ditto.
2066 (path_prefix_p): Ditto.
2068 * mount.h: Update includes for String usage.
2069 (create_mount): Update for String usage.
2070 (remove_mount): Ditto.
2072 (set_root_dir): Ditto.
2073 (get_root_dir): Ditto.
2074 * msg.cc (mbox): Ditto.
2075 * net.cc (NetPage::OnNext): Ditto.
2076 * package_db.cc (packagedb::flush): Ditto.
2077 (packagedb::packages): Ditto.
2078 (packagedb::categories): Ditto.
2079 * package_db.h: Update includes for String usage.
2080 (packagedb::packages): Update for String usage.
2081 (packagedb::categories): Ditto.
2082 * package_meta.cc: Update includes for String usage.
2083 (hash::add_subdirs): Update for String usage.
2084 (packagemeta::uninstall): Ditto.
2085 (packagemeta::SDesc): Ditto.
2086 (packagemeta::action_caption): Ditto.
2087 * package_meta.h: Update includes for String usage.
2088 (packagemeta::packagemeta): Update for String usage.
2089 (packagemeta::~packagemeta): Ditto.
2090 (packagemeta::uninstall): Ditto.
2091 (packagemeta::SDesc): Ditto.
2092 (packagemeta::action_caption): Ditto.
2093 (package_source.cc site::site): Ditto.
2094 (packagesource::set_canonical): Ditto.
2095 (packagesource::set_cached): Ditto.
2096 * package_source.h: Update includes for String usage.
2097 (site::site): Update for String usage.
2098 (packagesource::set_canonical): Ditto.
2099 (packagesource::set_cached): Ditto.
2100 (packagesource::packagesource): Ditto.
2101 (packagesource::sites): Ditto.
2102 (packagesource::cached): Ditto.
2103 * package_version.h: Update includes for String usage.
2104 (Dependency): Update for String usage.
2105 (packageversion): Ditto.
2106 * postinstall.cc: Update includes for String usage.
2107 (do_postinstall): Update for String usage.
2108 * res.rc (IDD_LOCAL_DIR): Fix typo again!
2109 * rfc1738.cc (rfc1738_escape_part): Update for String usage.
2110 * rfc1738.h: Update includes for String usage.
2111 (rfc1738_escape_part): Update for String usage.
2112 * root.cc: Update includes for String usage.
2113 (check_if_enable_next): Update for String usage.
2114 (save_dialog): Ditto.
2116 (directory_is_absolute): Ditto.
2117 (directory_is_rootdir): Ditto.
2118 (directory_has_spaces): Ditto.
2119 (RootPage::OnInit): Ditto.
2120 (RootPage::OnNext): Ditto.
2121 * script.cc: Update includes for String usage.
2122 (init_run_script): Update for String usage.
2124 (run_script): Ditto.
2125 (try_run_script): Ditto.
2126 * script.h: Update includes for String usage.
2127 (run_script): Update for String usage.
2128 (try_run_script): Ditto.
2129 * site.cc site_list): Ditto.
2130 (all_site_list): Ditto.
2131 (other_url): Eliminate.
2132 (site_list_type::init): Update for String usage.
2133 (site_list_type::site_list_type): Ditto.
2134 (get_site_list): Ditto.
2135 (get_saved_sites): Ditto.
2136 (do_download_site_info_thread): Ditto.
2137 (SitePage::OnNext): Ditto.
2138 (SitePage::OnActivate): Ditto.
2139 (SitePage::PopulateListBox): Ditto.
2140 (SitePage::OnMessageCmd): Handle empty url's.
2141 * site.h: Update includes for String usage.
2142 (site_list_type::site_list_type): Update for String usage.
2143 (site_list_type::init): Ditto.
2144 (site_list_type::~site_list_type): Ditto.
2145 (site_list_type::url): Ditto.
2146 (site_list_type::displayed_url): Ditto.
2147 (site_list_type::key): Ditto.
2148 * source.cc (SourcePage::OnDeactivate): Ditto.
2149 * state.h: Update includes for String usage.
2150 (local_dir): Update for String usage.
2151 (trust_level): Remove.
2152 * version.cc: Update includes for String usage.
2153 (canonicalize_version): Update for String usage.
2154 * version.h: Update includes for String usage.
2155 (canonicalize_version): Update for String usage.
2157 2002-02-15 Christopher Faylor <cgf@redhat.com>
2159 * filemanip.c (parse_filename): Revert previous change.
2161 2002-02-14 Christopher Faylor <cgf@redhat.com>
2163 * filemanip.c (parse_filename): Don't treat '_' as a version number
2166 2002-01-29 Christopher Faylor <cgf@redhat.com>
2168 * configure: Regenerate.
2170 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
2172 * res.rc (IDD_LOCAL_DIR): Fix typo reported by Rene
2173 <Hoeck@extern.lrz-muenchen.de>
2175 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
2177 * README: Update Todo's.
2178 * list.h: Run indent.
2179 (list): New methods checksize and insert to reduce code duplication.
2180 (list::registerbykey): Use them.
2181 (list::registerbyobject): Ditto.
2182 (list::removebyindex): Copy each object individually - safe for non
2184 (list::checksize): Implement.
2185 (list::insert): Implement.
2187 2002-01-27 Robert Collins <rbtcollins@hotmail.com>
2189 * Makefile.in: Remove the dlmalloc object by default.
2190 * install.cc (do_install_thread): Remove the mallinfo call for 'working
2191 around' the crashing issue.
2192 * package_db.h: Include <string.h> - it's needed to parse this.
2193 * package_source.cc (site::site): Move here from the header file.
2194 * package_source.h (site): Stop the constructor being inlinable.
2196 2002-01-26 Robert Collins <rbtcollins@hotmail.com>
2198 * filemanip.cc (find_tar_ext): Add a descriptive comment.
2200 2002-01-25 Michael A Chase <mchase@ix.netcom.com>
2202 * filemanip.cc (find_tar_ext): Clean up tests for .tar.gz and .tar.
2203 * fromcwd.cc (do_fromcwd): Expand FIXME comment in source file check.
2204 * install.cc (install_one_source): Add space between words in log()
2207 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
2209 * log.cc (exit_setup): When saving to the download dir, explicity
2212 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
2214 * archive.cc (extract_file): Separate out the prefix and the URL
2216 * archive.h (archive::extract_file): Ditto.
2217 * install.cc (install_one_source): Ditto. Use the new
2218 archive::extract_file syntax.
2219 (replace_one): Use the new syntax.
2220 (io_stream.cc): Add some log info for links.
2222 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
2224 * PickCategoryLine.cc (PickCategoryLine::actiontext): Remove.
2225 (PickCategoryLine::paint): Use the new action method.
2226 (PickCategoryLine::click): Set the action for all children.
2227 (PickCategoryLine::set_action): New method.
2228 * PickCategoryLine.h (PickCategoryLine::-actions): Remove.
2229 (PickCategoryLine::current_default): Use packagemeta _actions class.
2230 * PickLine.h (PickLine::set_action): New abstract method that requires
2231 including package_meta.h.
2232 * PickPackageLine.cc (PickPackageLine::set_action): New method.
2233 * PickPackageLine.h (PickPackageLine::set_action): Declare this.
2234 * list.h (getbykey): A const correctness fix.
2235 * package_meta.cc: Run indent.
2236 (packagemeta::Default_action): New const.
2237 (packagemeta::Install_action): Ditto.
2238 (packagemeta::Reinstall_action): Ditto.
2239 (packagemeta::Uninstall_action): Ditto.
2240 (packagemeta::_actions::caption): New method.
2241 (packagemeta::_actions::operator++): Ditto.
2242 (packagemeta::set_action): New overload.
2243 * package_meta.h (packagemeta::_actions): New class.
2244 (packagemeta::set_action): Declare this.
2246 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
2248 * Makefile.in (OBJS): Remove supp.o - it appears accidental.
2249 * choose.cc: Don't define alloca anymore, it's done in win32.h
2251 2002-01-22 Robert Collins <rbtcollins@hotmail.com>
2253 * PickPackageLine.cc: New file.
2254 * PickPackageLine.h: New file.
2255 * PickLine.cc: New file.
2256 * PickLine.h: New file.
2257 * PickCategoryLine.cc: New file.
2258 * PickCategoryLine.h: New file.
2259 * PickView.cc: New file.
2260 * PickView.h: New file.
2261 * Makefile.in: Add new objects to setup.exe.
2262 Backout -fno-exceptions option.
2263 * choose.cc: Include PickView.h.
2264 Remove view related defines and static variables.
2265 (_pkg_headers): Moved to PickView.cc.
2266 (_cat_headers): Ditto.
2267 (view::views::Unknown): Ditto.
2268 (view::views::PackageFull):
2269 (view::views::Package):
2270 (view::views::Category):
2271 (pkgtrustp): Moved to package_meta.cc.
2272 (add_required): Moved to package_meta.cc.
2273 (pick_category_line::empty): Moved to PickCategoryLine.cc
2274 (paint): Adjust for moved static variables.
2275 (view::scroll): Moved to PickView.cc.
2276 (list_vscroll): Adjust for moved static variables.
2277 (list_hscroll): Ditto.
2278 (list_click): Ditto.
2279 (note_width): Moved to PickView.cc.
2280 (view::view): Ditto.
2281 (view::set_view_mode): Ditto.
2282 (view::mode_caption): Ditto.
2283 (view::views::caption): Ditto.
2284 (view::set_headers): Ditto.
2285 (DoInsertItem): Ditto.
2286 (view::init_headers): Ditto.
2287 (view::insert_pkg): Ditto.
2288 (view::insert_category): Ditto.
2289 (view::clear_view): Ditto.
2290 (view::views::operator++): Ditto.
2291 (view::click): Ditto.
2292 (default_trust): Adjust for moved statics.
2293 (pick_pkg_line::paint): Moved to PickPackageLine.cc.
2294 (pick_pkg_line::click): Ditto.
2295 (pick_category_line::actiontext): Moved to PickCategoryLine.cc
2296 (pick_category_line::paint): Ditto.
2297 (pick_category_line::click): Ditto.
2298 (set_view_mode): Adjust for moved statics.
2299 (create_listview): Ditto.
2300 * choose.h: Remove Category and packagemeta forward defines - not needed.
2301 Don't include unneeded headers list and package_meta.
2302 (_header): Move to PickView.h.
2303 (pick_line): Move to PickLine.h.
2304 (pick_pkg_line): Move to PickPackageLine.h.
2305 (pick_category_line): Move to PickCategoryLine.h.
2306 (view): Move to PickView.h.
2307 * ini.h (trusts): Move to package_meta.h.
2308 * package_meta.h (trusts): New enum.
2309 (packagemeta::set_requirements): New helper method.
2310 (packagemeta::trustp): Ditto.
2312 2002-01-21 Christopher Faylor <cgf@redhat.com>
2314 * choose.h (view): Move forward declaration of views into public area
2315 or g++ v3 will complain.
2317 2002-01-21 Christopher Faylor <cgf@redhat.com>
2319 * Makefile.in (CXXFLAGS): Add -fno-exceptions.
2320 * win32.h (alloca): Define as __builtin_alloca.
2321 * io_stream_memory.cc: Add include file.
2323 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
2325 * archive_tar.cc (archive_tar::~archive_tar): Mark the stream as destroyed.
2326 * archive_tar_file.cc (archive_tar_file::~archive_tar_file): Ditto.
2327 * compress.cc (compress::~compress): Be less verbose.
2328 * compress_bz.cc (compress_bz::~compress_bz): Ditto.
2329 Mark the stream as destroyed.
2330 * compress_gz.cc (compress_gz::~compress_gz): Mark the stream as destroyed.
2331 * io_stream.cc (io_stream::~io_stream): Only warn when the stream is not marked
2333 * io_stream_cygfile.cc (io_stream_cygfile::~io_stream_cygfile): Mark the
2334 stream as destroyed.
2335 * io_stream_file.cc (io_stream_file::~io_stream_file): Ditto.
2336 * io_stream_memory.cc (io_stream_memory::~io_stream_memory): Ditto.
2338 2002-01-21 Robert Collins <rbtcollins@hotmail.com>
2340 * Makefile.in (CFLAGS): Allow customisable malloc debug flags.
2341 (OBJS): Link in malloc objects.
2342 * category.cc (category): Use new char, not strdup.
2343 * choose.cc (pick_pkg_line::paint): Allow for the regionsize to shrink.
2344 (do_choose): Use new char, not malloc.
2345 * concat.cc (vconcat): Ditto.
2346 * cygpackage.cc (cygpackage): Use new char, not strdup.
2347 (set_canonical_version): Ditto.
2348 (cygpackage::destroy): Use delete[], not free.
2349 * desktop.cc (uexists): Ditto.
2350 * dialog.cc (egest): Use new char, not strdup.
2351 * dlmalloc.c: New file - Doug Lea's malloc 2.7.0
2352 * hash.cc (hash::hash): Use delete instead of free.
2353 (hash::add): Use new char, not strdup.
2354 * ini.cc (do_remote_ini): Use delete[] not free.
2355 * inilex.l: Use new char, not strdup.
2357 * iniparse.y: Ditto.
2358 Use a local package_db rather than a static one.
2359 * install.cc (struct mallinfo): Workaround an apparent dlmalloc bug.
2360 (do_install_thread): Call mallinfo to force a consistency check. Appears
2361 to fix a 'inuse' error in -DDEBUG builds.
2362 Use delete[] for strings.
2363 * io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile): Use new char,
2365 (io_stream_cygfile::~io_stream_cygfile): Use delete[], not free.
2366 (io_stream_cygfile::remove): Use new char, not strdup.
2367 * io_stream_file.cc (io_stream_file::io_stream_file): Use new char, not strdup.
2368 (io_stream_file::io_stream_file): Use delete[], not free.
2369 (io_stream_file::remove): Use new char, not strdup.
2370 * io_stream_memory.cc (memblock::~memblock): Use delete[], not free.
2371 * io_stream_memory.h (memblock): Use new char, not malloc.
2372 * localdir.cc (LocalDirPage::OnInit): Use new char, not strdup.
2373 * main.cc (WinMain): Use new char, not strdup.
2374 * mount.cc (find2): Use new char, not malloc.
2375 (read_mounts): Ditto.
2376 (cygpath): Use new char, not strdup.
2377 * netio.cc (NetIO::~NetIO): Use delete[], not free.
2378 (NetIO::set_url): Use new char, not strdup.
2379 (NetIO::get_ftp_auth): Use delete[], not free.
2380 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
2381 Use new char instead of strdup.
2382 * nio-http.cc (base64_encode): Use new char, not malloc.
2383 * package_meta.cc (hash::add_subdirs): Use new char instead of strdup.
2384 * package_source.h (~ packagesource): Use delete[] instead of delete.
2385 * port.h (strdup): Deprecate the use of strdup.
2386 * rfc1738.cc (rfc1738_do_escape): Use new char, not calloc.
2387 * script.cc (init_run_script): Us delete[], not free.
2388 (run_script): Ditto.
2389 * simpsock.cc (SimpleSocket::fill): Use new char, not malloc.
2390 (SimpleSocket::invalidate): Use delete[], not free.
2391 * site.cc (site_list_type::init): Use new char instead of strdup.
2392 * site.h (~site_list_type): Use delete[], not free.
2394 2002-01-20 Robert Collins <rbtcollins@hotmail.com>
2396 * Makefile.in (OBJS): Add win32.o - win32 support functions.
2397 * README: Update todos.
2398 * archive.cc (extract_file): Support a suffix for appending to extracted files.
2400 * choose.cc (set_view_mode): Use the new view::views class.
2401 (view::views::Unknown): New static for defaulting view::views variables.
2402 (view::views::PackageFull): New static for the current view.
2403 (view::views::Package): Ditto.
2404 (view::views::Category): Ditto.
2405 (topbucket::paint): Remove.
2406 (topbucket::empty): Rename to pick_category_line::empty.
2407 (topbucket::~topbucket): Remove.
2408 (paint): Use the new view::views class.
2409 Don't paint 'all' as a category when showing package categoies.
2410 (pick_category_line::actiontext): New method.
2411 (pick_category_line::paint): Make showing the category optional, and show the
2413 (pick_category_line::click): Make showing the category optional, and
2414 differentiate between the name being clicked, and the action description.
2415 (view::view): Use the new view::views class.
2416 (view::set_view_mode): Ditto.
2417 (view::mode_caption): Ditto.
2418 (view::views::caption): New method.
2419 (view::set_headers): Use the new view::views class.
2420 (view::clear_view): Ditto.
2421 (viewsplusplus): Replaced by
2422 (view::views::operator++): New operator.
2423 (set_view_mode): Use the new view::views class.
2424 (create_listview): Ditto.
2425 (dialog_cmd): Ditto.
2426 * choose.h (actions): Remove.
2428 (pick_line): Add a new convenience constructor.
2429 (top_bucket): Remove.
2430 (pick_category_line): Reparent under pick_line, and adsorb top_bucket.
2431 (view::views): New class.
2432 * ini.h: Don't include choose.h
2433 (is_download_action): Remove.
2434 (is_upgrade_action): Remove.
2435 (is_uninstall_action): Remove.
2436 (is_full_action): Remove.
2437 * install.cc (num_replacements): New static.
2438 (rebootneeded): Ditto.
2439 (replace_one): Handle upgrades separate from removal or new installs.
2440 (install_one_source): Handle in use files.
2441 (install_one): Don't repeat upgrades.
2442 (do_install_thread): Initialize new statics.
2443 Order actions as uninstall, replace, install.
2444 Warn about rebooting if needed.
2445 * res.rc (IDS_REBOOT_REQUIRED): New string.
2446 * resource.h (IDS_REBOOT_REQUIRED): Give value.
2447 * win32.h: Declare class Win32, and update copyright and intent message.
2448 * win32.cc: New file.
2450 2002-01-15 Corinna Vinschen <corinna@vinschen.de>
2452 * io_stream.cc (io_stream::gets): Eliminate trailing new line chars.
2453 * package_meta.cc (packagemeta::uninstall): Check for additional
2454 Windows shortcut. Unset R/O file attribute before trying to delete
2457 2002-01-09 Robert Collins <rbtcollins@hotmail.com>
2459 * choose.cc (pkgtrustp): Fall back to installed if a package is not present in
2460 the current trust level. For prev, fall back via curr.
2461 (set_existence): Allow sources with no sites, but cached files to be
2463 (pick_category_line::paint): Start drawing clickable categories.
2464 * fromcwd.cc (found_file): Reinstate local file scanning.
2466 2002-01-07 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2468 * fromcwd.cc: Run indent.
2469 (do_fromcwd): Reverse sense of comment. Set next_dialog
2470 to IDD_CHOOSER instead of IDD_CHOOSE.
2471 * ini.cc (find_routine): Remove "/" from "/setup.ini".
2473 2001-01-07 Robert Collins <rbtcollins@hotmail.com>
2475 * category.cc (Categorycmp): Add a const safe version.
2476 * category.h (Categorycmp): Add a const safe version.
2477 (Category): Add operator ==.
2478 * choose.cc (fill_missing_category): Add every package to "All".
2479 (pick_category_line::paint): Add support for hidden labels, and a tree depth.
2480 (pick_category_line::click): Ditto.
2481 (view::view): Pass in a top level category to use.
2482 (view::insert_pkg): Special case - skip category "All".
2483 (view::insert_category): Ditto.
2484 (view::clear_view): Set the contents label state.
2485 (create_listview): Pass in a top level category to view().
2486 * choose.h (topbucket): Make bucket available to derived classes.
2487 (pick_category_line): Add support for hidden labels, and a tree depth.
2488 Remove our second copy of bucket.
2489 (view): Pass in a top level category to the constructor.
2490 Use pick_category_line to allow three level display.
2492 2001-01-06 Robert Collins <rbtcollins@hotmail.com>
2494 * cygpackage.h (cygpackage): Make set_[s|l]desc virtual.
2495 * iniparse.y (add_correct_version): Copy descriptions across.
2496 * package_meta.cc (SDesc): Iterate through versions, return the first with a
2498 * package_version.h (packageversion): Add new virtuals set_[l|s]desc.
2500 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
2502 * script.cc (run_script): Change cygpath:// to cygfile://.
2503 * install.cc (do_install_thread): Fix off-by-one errors.
2505 2001-01-04 Robert Collins <rbtcollins@hotmail.com>
2507 * package_db.cc (packagedb::flush): Fix an off-by-one error.
2509 2002-01-04 Jan Nieuwenhuizen <janneke@gnu.org>
2511 * Makefile.in (realclean): more clean.
2512 (OBJS): Add script.o.
2513 * postinstall.cc (run_script_in_etc_postinstall): New function.
2514 (do_postinstall): Split off new funtion init_run_script ().
2517 (run_script): Move to script.cc. Replace some deprecated remove
2520 * script.cc: New file.
2521 * Forward port cygwin-20010707.jcn3.patch.
2522 * package_meta.cc (uninstall): Run pre- and postremove scripts.
2523 * install.cc: Typo fix.
2524 (do_install): Run script initialisation.
2526 2001-01-04 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2528 * cistring.cc: Run d2u.
2529 * cistring.h: Run d2u.
2531 * desktop.cc (etc_profile): Remove "test -f ./.bashrc && . ./.bashrc"
2532 from the generated /etc/profile. Bash will source this file
2533 automatically, and having this here merely results in .bashrc being
2534 executed twice. Run d2u.
2535 * desktop.h: Run d2u.
2537 * propsheet.cc: Run d2u.
2538 (PropSheetProc): New function. Add minimize box here instead of in
2539 PropertyPage::DialogProc.
2540 (PropSheet::Create): Change to use creation callback PropSheetProc.
2541 (DLGTEMPLATEEX): Add 'hidden' Windows struct definition.
2543 * propsheet.h: Run indent, d2u.
2544 * proppage.h: Run indent, d2u.
2546 * proppage.cc: Run d2u.
2547 (PropertyPage::DialogProc): Remove minimize-box-adding
2548 functionality. Remove commented-out "PropSheet_SetWizButtons" calls.
2549 Add support for calling virtual OnMessageCmd. Add setting of fonts in
2550 WM_INITDIALOG handler.
2551 (resource.h): New include for resource IDs.
2553 * res.rc: Resize and rearrange property page dialog templates
2554 to bring them in line with "Microsoft's Backward Compatible Wizard 97"
2555 specification. Run d2u.
2556 (IDD_SITE): Add an edit control and an "Add" button in order to
2557 combine the IDD_SITE and IDD_OTHER_URL functionality onto one page.
2558 (IDD_OTHER_URL): Remove dialog template.
2559 (IDD_DLSTATUS): Remove dialog template.
2562 (SitePage::OnBack): Remove NEXT() macro invocation.
2563 (SitePage::OnActivate): New member function.
2564 (load_dialog): Remove. Functionality subsumed into
2565 SitePage::OnActivate.
2566 (save_dialog): Change to support both list and user URLs. Remove
2567 OTHER_IDX and mirror_idx logic.
2568 (SitePage::PopulateListBox): New member function.
2569 (SitePage::CheckControlsAndDisableAccordingly): New member function.
2570 (SitePage::OnMessageCmd): New override.
2571 (check_if_enable_next): Remove.
2572 (dialog_cmd): Remove.
2573 (do_download_site_info_thread): Remove calls to NEXT() macro.
2574 (SitePage::Create): Call the single-param PropertyPage::Create
2576 (other_url): New static taken from other.cc.
2577 (SitePage::OnNext): Remove mirror_idx logic.
2578 (SitePage::OnInit): Remove "Other URL" entry from list box. Remove
2579 list box populating code, now handled in SitePage::PopulateListBox.
2580 (mirror_idx, NO_IDX, OTHER_IDX): Remove.
2581 (save_site_url): Fix potential buffer overflow problem. Switched to
2582 TCHAR in grossly premature preparation for multilingual support.
2584 (SitePage::OnActivate): New member function.
2585 (SitePage::CheckControlsAndDisableAccordingly) New member.
2586 (SitePage::OnMessageCmd): New override.
2587 (do_download_site_info_thread): Add MessageBox call on failure to
2590 * splash.cc: Run d2u.
2591 (SplashPage::OnInit): Set the font for the title.
2592 * splash.h: Run d2u.
2594 * threebar.cc: Run d2u.
2595 * threebar.h: Run d2u.
2597 * window.h: Run d2u.
2598 (Window::IsButtonChecked): New member function declaration.
2599 (Window::OnMessageCmd): New member function.
2600 (Window::SetDlgItemFont): New member function declaration.
2601 (Window::MAXFONTS, Window::Fonts, Window::FontCounter): New data
2603 * window.cc: Run d2u.
2604 (Window::IsButtonChecked): New member function definition.
2605 (Window::SetDlgItemFont): New member function definition.
2606 (Window::Window): Add initialization for FontCounter.
2607 (Window::~Window): Delete any fonts we created.
2609 * geturl.cc: Run d2u.
2610 (progress): Remove the "3" field width from the "%3d"
2611 percent-complete format indicator. Causes line to not start at
2612 beginning of text box, and does little to help with "jumping", since
2613 the "bytes downloaded so far" field is variable-width anyway. Change
2614 kb/s format field to "%03.1" to 0-pad the kb/s number in the event of
2615 painfully slow connections, or temporary slowdowns in faster
2616 connections should such more-instantaneous functionality become
2620 (NetPage::OnMessageCmd): New member function declaration.
2621 (NetPage::CheckIfEnableNext): New member function declaration.
2623 (NetPage::OnMessageCmd): New member function definition.
2624 (dialog_cmd): Remove, subsumed into NetPage::OnMessageCmd.
2625 (check_if_enable_next): Remove.
2626 (NetPage::CheckIfEnableNext): New member function, subsumes
2627 check_if_enable_next.
2628 (propsheet.h): Add include.
2629 (NetPage::Init): Add call to CheckIfEnableNext.
2630 (load_dialog): Remove call to check_if_enable_next.
2631 (NetPage::Create): Call single-template-ID-parameter overload of
2632 PropertyPage::Create instead of three-parameter one.
2634 * Makefile.in (OBJS): Remove other.o.
2635 * other.cc: Remove file.
2637 2002-01-01 Robert Collins <rbtcollins@hotmail.com>
2639 * README: Update TODO's.
2640 * choose.cc (set_existence): Delete non installed packages with no
2642 (fill_missing_category): Fix an off-by-one error.
2643 (default_trust): Ditto. Also delete any unused categories.
2644 (view::init_headers): Fix an off-by-one error.
2645 (set_view_mode): Ditto.
2646 (set_view_mode): Ditto.
2647 (create_listview): Ditto.
2648 (dialog_cmd): Ditto.
2650 * io_stream.cc: Indent.
2651 * io_stream.h: Ditto.
2652 * package_db.cc: Ditto.
2653 * package_meta.h: Const correctness for SDesc ();
2654 * proppage.cc: Run d2u and indent.
2655 * propsheet.cc: Run d2u and indent.
2656 * window.cc: Run d2u and indent.
2657 * window.h: Run d2u and indent.
2659 2001-12-28 Christopher Faylor <cgf@redhat.com>
2661 * Makefile.in (iniparse.o): Accommodate newer bisons.
2663 2001-12-23 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
2665 * window.h (Window): New file, new class.
2666 * window.cc (Window): New file, new class.
2668 * threebar.h (ThreeBarProgressPage): New file, new class.
2669 * threebar.cc (ThreeBarProgressPage): New file, new class.
2671 * splash.h (SplashPage): New file, new class.
2672 * splash.cc (SplashPage): Replace file with implementation of new
2675 * source.h (SourcePage): New file, new class.
2676 * source.cc: Run indent.
2677 (SourcePage): Add class implementation to this file.
2678 (do_source): Remove, functionality subsumed by SourcePage::Create()
2679 and SourcePage::OnDeactivate().
2680 (dialog_proc): Remove, functionality subsumed by
2681 SourcePage::OnActivate().
2683 * site.h: Run indent.
2684 (SitePage): Add class declaration.
2685 * site.cc: Run indent.
2686 (SitePage): Add class implementation.
2687 (do_download_site_info_thread): New function.
2688 (context): New var. Context info for do_download_site_info_thread().
2689 (do_download_site_info): New function.
2690 (SitePage::Create, SitePage::OnInit SitePage::OnNext)
2691 (SitePage::OnBack): SitePage class implementation..
2692 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers, now handled
2693 by SitePage members.
2694 (dialog_proc): Remove, now handled by SitePage::OnInit and base class
2696 (do_site): Remove, now handled by do_download_site_info_thread() and
2697 SitePage::OnNext functionality.
2698 (get_site_list): Remove dismiss_url_status_dialog() call.
2700 * root.h (RootPage): New file, new class.
2701 * root.cc: Run indent.
2702 (dialog_cmd): Pass parent HWND parameter to note(), yesno().
2703 (dialog_proc): Remove.
2705 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL clauses from switch.
2706 (RootPage::OnInit): New member function. Move get_root_dir() logic to
2707 here from do_root().
2708 (RootPage::Create): New member function.
2709 (RootPage::OnNext): New member function. Move IDOK logic from
2710 dialog_cmd() to here.
2711 (RootPage::OnBack): New member function.
2713 * propsheet.h (PropSheet): New file, new class.
2714 * propsheet.cc (PropSheet): New file, new class.
2716 * proppage.h (PropertyPage): New file, new class.
2717 * proppage.cc (PropertyPage): New file, new class.
2719 * postinstall.cc (do_postinstall): Add owner parameter.
2721 * other.cc (do_other): Add owner parameter.
2723 * nio-file.cc (NetIO::Purl): Pass NULL parent param to note().
2724 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Pass NULL parent param to
2726 * nio-http.cc (retry_get): Pass NULL parent param to get_auth(),
2729 * nio-ie5.cc (NetIO::_url): Pass NULL parent param to note(),
2730 get_auth(), get_proxy_auth().
2732 * netio.h (get_auth, get_proxy_auth, get_ftp_auth): Add owner param.
2733 * netio.cc (auth_common, NetIO::get_auth, NetIO::get_proxy_auth,
2734 NetIO::get_ftp_auth)
2735 (auth_common): Add owner param. Pass owner param to DialogBox.
2736 (NetIO::get_auth, NetIO::get_proxy_auth, NetIO::get_ftp_auth): Pass
2737 owner param to auth_common().
2739 * net.h (NetPage): New file, new class.
2740 * net.cc: Run indent.
2741 (net.h, threebar.h): Add includes.
2742 (Progress): Add extern.
2743 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, now handled by
2744 property sheet logic. Saved temporarily for reference.
2745 (NetPage::Create, NetPage::OnInit, NetPage::OnDeactivate,
2746 NetPage::OnNext, NetPage::OnBack):
2747 New implementation of NetPage class members.
2749 (dialog_proc): Remove.
2751 * msg.h (fatal, note, yesno): Add owner param.
2752 * msg.c (fatal, note, yesno, mbox): Add owner param.
2753 (mbox): Remove MB_TOPMOST from MessageBox call. Unnecessary and wrong
2754 now that we have a parent.
2756 * main.cc: Run indent.
2757 (commctrl.h, proppage.h, propsheet.h, splash.h, source.h)
2758 (localdir.h, net.h, site.h, choose.h, threebar.h, desktop.h): Include
2760 (root_dialog_proc): extern into this file.
2761 (Progress): Progress dialog defined here, used in several other files.
2762 (WinMain): Instantiate and create Splash, Source, Root, LocalDir, Net,
2763 Site, Chooser, Desktop pages and MainWindow sheet. Call
2764 InitCommonControls() to make sure Windows is set up for our use of
2765 property sheets. Add pages to sheet.
2766 Call MainWindow.Create() to "DoModal". Remove main loop, that logic is
2767 now handled by the PropSheet class.
2768 (root.h): Add include.
2770 * log.cc (log_save): Pass NULL parent to fatal().
2771 (exit_setup): Pass NULL parent to note().
2773 * localdir.h (LocalDirPage): New file, new class.
2774 * localdir.cc: Run indent.
2775 (localdir.h): New include.
2776 (threebar.h): New include.
2777 (Progress): extern into this file.
2778 (LocalDirPage::Create, LocalDirPage::OnInit, LocalDirPage::OnActivate)
2779 (LocalDirPage::OnNext, LocalDirPage::OnBack): Implementation of
2781 (LocalDirPage::OnNext): Move log() call from do_local_dir() to here.
2782 (dialog_cmd): Remove IDOK, ID_BACK, and IDCANCEL handlers.
2783 (do_local_dir): Remove.
2784 (dialog_proc): Remove.
2785 (cwd): Remove, not used by anything.
2787 * install.cc: Run indent.
2788 (process.h, threebar.h): New includes.
2789 (Progress): extern into this file.
2790 (ins_dialog, ins_action, ins_pkgname, ins_filename, ins_pprogress)
2791 (ins_iprogress, ins_diskfull, init_event): Remove, now handled by
2792 ThreeBarProgressPage.
2793 (dialog_cmd, dialog_proc, dialog): Removed, handled in
2794 ThreeBarProgressPage.
2795 (init_dialog): Remove all mention of the above ins_* handles. Now
2796 handled in ThreeBarProgressPage. Altered SetWindowText()s to call
2797 ThreeBarProgressPage instance Progress directly.
2798 (progress): Alter bar update logic to call ThreeBarProgressPage
2799 instance Progress directly.
2800 (uninstall_one): Alter SetWindowText()s to call ThreeBarProgressPage
2801 instance Progress directly.
2802 (install_one_source): Alter SetWindowText()s to call
2803 ThreeBarProgressPage
2804 instance Progress directly. Pass NULL parent to note().
2805 (do_install_thread): Rename from do_install(), added owner param.
2806 Alter SetWindowText()s to call ThreeBarProgressPage instance Progress
2808 Remove dismiss_url_status_dialog() call, no longer necessary. Remove
2809 ShowWindow(<hide>) call, also unnecessary now. Pass owner handle to
2811 (do_install_reflector): New function.
2812 (do_install): New function.
2814 * ini.cc (process.h, threebar.h): New includes.
2815 (Progress): externed into this file.
2816 (find_routine): Pass NULL parent to note().
2817 (do_local_ini): Add owner param.
2818 (do_remote_ini): Add owner param. Pass owner to get_url_to_membuf()
2819 and note(). Remove call to dismiss_url_status_dialog().
2820 (do_ini_thread): Rename from do_ini(). Add owner param. Pass owner to
2821 do_local_ini(), do_remote_ini(), yesno(), and note(). Set next_dialog
2822 to IDD_CHOOSER on exit.
2823 (do_ini_thread_reflector): New function.
2824 (context): New var. Context for do_ini_thread.
2825 (do_ini): New function.
2827 * geturl.h (get_url_to_membuf, get_url_to_string, get_url_to_file): Add
2829 * geturl.cc (gw_dialog, gw_url, gw_rate, gw_progress, gw_pprogress,
2831 (gw_progress_text, gw_pprogress_text, gw_iprogress_text, init_event):
2833 (threebar.h): New include.
2834 (Progress): externed into this file.
2835 (dialog_cmd, dialog_proc, dialog): Removed, handled by
2836 ThreeBarProgressPage now.
2837 (init_dialog): Remove "if (gw_dialog == 0)" clause. Alter
2839 and bar setting SendMessage()s to call ThreeBarProgressPage instance
2840 Progress directly. Remove "one bar only" logic, this is now handled
2841 explicitly in the ThreeBarProgressPage class.
2842 (progress): Altered bar and text update logic to call
2843 ThreeBarProgressPage instance Progress directly. Changed kbps
2844 calculation to floating point and now print out a single decimal
2846 (get_url_to_membuf): Add owner param. Pass it to init_dialog.
2847 (get_url_to_string): Add owner param. Pass it to get_url_to_membuf.
2848 (get_url_to_file): Add owner param. Pass it to init_dialog. Alter bar
2849 update logic to call ThreeBarProgressPage instance Progress directly.
2850 (dismiss_url_status_dialog): Remove.
2852 * fromcwd.cc (do_fromcwd): Add owner param. Initialize found_ini to
2855 * download.cc: Run indent.
2856 (process.h, threebar.h): New includes.
2857 (Progress): externed into this file.
2858 (download_one): Add owner param. Pass it to get_url_to_file().
2859 (do_download_thread): Renamed from do_download. Add owner param. When
2860 calculating total_download_bytes, take binpicked and srcpicked into
2861 account. Remove call to dismiss_url_status_dialog(), no longer needed.
2862 Pass owner handle to download_one() and yesno().
2863 (do_download_reflector, do_download): New functions.
2864 (context): New var. Context for do_download_thread().
2866 * dialog.h (D(x)): Add owner param.
2868 * desktop.h (DesktopSetupPage): New file, new class.
2869 * desktop.cc: Run indent.
2870 (desktop.h): Add include.
2871 (dialog_proc, do_desktop): Remove, now handled in
2872 DesktopSetupPage::OnInit().
2873 (dialog_cmd): Remove IDOK, IDC_BACK, and IDCANCEL cases, handled in
2874 DesktopSetupPage::OnFinish(), DesktopSetupPage::OnBack(), and PropSheet
2876 (DesktopSetupPage::Create, DesktopSetupPage::OnInit)
2877 (DesktopSetupPage::OnBack, DesktopSetupPage::OnFinish): Implementation
2878 of DesktopSetupPage.
2880 * cistring.h: New file, new class.
2881 * cistring.cc: New file, new class.
2883 * choose.h: Run indent.
2884 (Chooser): New class declaration.
2885 * choose.cc: Run indent.
2886 (do_choose): Add owner param. Pass it to DialogBox() and
2888 (Chooser): New class implementation.
2890 * res.rc (IDS_VERSION_INFO): New string.
2891 (IDD_SOURCE, IDD_LOCAL_DIR, IDD_ROOT, IDD_SITE, IDD_OTHER_URL)
2892 (IDD_DLSTATUS, IDD_INSTATUS, IDD_SPLASH, IDD_CHOOSE, IDD_DESKTOP):
2893 Change WS_POPUP to WS_CHILD. Numerous positioning/size changes
2895 (IDD_CHOOSE): Give template the WS_EX_CONTROLPARENT style to enable
2896 TAB control navigation etc. Give the controls a reasonable tab order.
2897 Grouped radio buttons. Something's still not right, can't tab away
2898 from back/next/cancel group reliably.
2899 * resource.h (IDD_CHOOSER): New dialog ID.
2901 * Makefile.in (OBJS): Add cistring.o, proppage.o, propsheet.o,
2902 threebar.o, and window.o.
2904 2001-12-21 Robert Collins <rbtcollins@hotmail.com>
2906 * choose.cc (listview_proc): Update the scrollbar when the headers are dragged.
2907 (pick_pkg_line::paint): Clip columns to prevent overlap.
2909 2001-12-20 Robert Collins <rbtcollins@hotmail.com>
2911 * Makefile.in: Add libcomctl32.a for setup.exe.
2912 * archive.h (archive): Prevent non-child direct creation of the class.
2913 * archive_tar.h (archive_tar): Prevent inaccurate synthetic copy and assignment.
2914 * choose.cc: Include commctrl for the choose header.
2915 (NEW_COL_SIZE_SLOP): Define without magic numbers.
2916 (pkgtrustp): Convert to function.
2917 (set_action): Remove.
2918 (add_required, fill_missing_category,default_trust): Use list syntax for
2921 (choose_caption): Remove.
2922 (topbucket::paint): New method.
2923 (topbucket::empty): Ditto.
2924 (topbucket::click): Ditto.
2925 (topbucket::~topbucket): Ditto.
2926 (paint): Remove i,ii and p as they are obsolete.
2927 Remove header drawing code.
2928 Use new chooser method to paint the chooser.
2929 Use new chooser itemcount method.
2930 (scroll_common): Rename to view::scroll.
2931 Scroll the header window separately.
2932 (list_vscroll, list_hscroll, list_click): Update for new chooser methods.
2933 (listview_proc): Look for header messages.
2934 (note_width): Accept stringless calls.
2935 (pick_line::set_line): Remove.
2936 (pick_line::paint): Remove.
2937 (pick_pkg_line::paint): Paint this one line, using the header column widths.
2938 (pick_category_line::paint): Paint this category, and anything in the bucket.
2939 (pick_line::click): Remove.
2940 (pick_pkg_line::click): Handle a click.
2941 (pick_category_line::click): Handle a click.
2942 (_view): Rename all to view.
2943 (view::view): Initialise the control contents.
2944 (view::set_headers): Work with the header control.
2945 (view::init_headers): Use list syntax for package list.
2946 Rearrange the width logic a little.
2947 (view::insert_pkg): Update to use the hierarchy.
2948 (view::insert_category): Ditto.
2949 (view::insert_at, view::insert_under): Remove.
2950 (view::clear_view): Update to use the hierarchy.
2951 (view::click): Update to use the hierarchy.
2952 (set_view_mode): Use list syntax for package list.
2953 Update for new chooser methods.
2954 (DoInsertItem): New helper function. (Needs a home somewhere).
2955 (create_listview): Remove choose control code and use the constructor instead.
2956 (dialog_cmd,scan2,do_choose): Use list syntax for package list.
2957 * choose.h: Include newly required headers list and package_meta.
2958 (_voew): Rename to view.
2959 (pick_line): Convert to an ABC.
2960 (pick_pkg_line): New class.
2961 (pick_catgory_line): New class.
2962 (topbucket): New class.
2963 (view::scroll): New method created from listview_scroll function.
2964 * desktop.cc (make_passwd_group): Use list syntax for package list.
2965 * download.cc (do_download): Use list syntax for package list.
2966 * fromcwd.cc (found_file): Use list syntax for package list.
2967 * iniparse.y (pacakges): Use list syntax for package list.
2968 * install.cc (uninstall_one): Use list syntax for package list.
2969 (do_install): Use list syntax for package list.
2970 * io_stream.h (io_stream): Prevent non-child direct creation of the class.
2971 Prevent inaccurate synthetic copy and assignment.
2972 * list.h: Include required header stdlib.
2973 Work on const correctness.
2974 * package_db.cc (packagedb::getpackagebyname): Remove.
2975 (packagedb::packagedb): Remove custom list code, and make db a local.
2976 (packagedb::getfirstpackage): Remove.
2977 (packagedb::getnextpackage): Remove.
2978 (packagedb::addpackage): Remove.
2979 (flush): Remove custom list code.
2980 (packagedb::registerpackage): Remove.
2981 (packagedb::packages): New static member.
2982 (packagedb::task): New static member.
2983 * package_db.h (PackageDBActions): New enum.
2984 (packagedb): Remove getfirstpackage, getnextpackage, getpackagebyname,
2985 addpackage, registerpackage, packages, packagecount, curr_package, db.
2987 * pacakge_meta.cc: Include package_db.h.
2988 (packagemeta::action_caption): New method.
2989 (packagemeta::set_action): New method.
2990 * package_meta.h (CategoryPackage): Initialise key.
2991 (packagemeta): Initialise key.
2992 Add set_action and action_caption methods.
2993 Prevent inaccurate synthetic copy and assignment.
2994 * resource.h (IDC_CHOOSE_LISTHEADER): New ID.
2995 * source.cc: Include package_db for db manipulation.
2996 (save_dialog): Set the db task.
2997 * win32.h: Tell the w32 include headers what IE version to expect/require.
2999 2001-12-06 Robert Collins <rbtcollins@hotmail.com>
3001 * README: Wishlist updates.
3003 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
3005 * package_db.cc (getnextpackage): Don't overrun the array.
3007 2001-12-04 Robert Collins <rbtcollins@hotmail.com>
3009 * Makefile.in (OBJS): Add setup_version.o.
3010 (version.c): Rename to setup_version.
3011 * choose.cc (set_action): Prevent NULL pointer dereference.
3012 (package_sort): Remove.
3013 * fromcwd.cc (canonicalize_version): Moved to version.cc.
3014 (check_ini): New function for use with find to see if there is a cached setup.ini.
3015 (do_fromcwd): Check for a cached setup.ini from any mirror site.
3016 * ini.cc (find_routine): New function, for finding cached setup.ini's.
3017 (do_local_ini): New function, drives parsing of local ini's.
3018 (do_remote_ini): New function, drives parsing and caching of remote ini's.
3019 (do_ini): Move guts to do_remote_ini and do_local_ini.
3020 * list.h (removebyindex): New method.
3021 * other.cc (save_dialog): Use new site_list and all_site_list to add the
3022 new site to the site picklist.
3023 (dialog_cmd): Only save the dialog when exiting the dialog.
3024 * res.rc (IDD_SITE): Make IDC_URL_LIST a multiple-selection control.
3025 * site.cc (site_list_type): Move to site.h
3026 (site_list): New global, sites chosen by the user.
3027 (all_site_list): New global, all potential sites.
3028 (site_list_type::init): New method, parses a mirror.lst URL string into a
3029 site_list_type object.
3030 (site_list_type::site_list_type): New method.
3031 (check_if_enable_next): Examine the control, not a local variable.
3032 (load_dialog): Select all the user chosen sites by default.
3033 (save_dialog): Adjust for multiple selection semantics.
3034 (save_site_url): Save all user chosen sites.
3035 (dialog_cmd): Don't save the dialog when the listbox recieves a message -
3037 Remove obsolete other_url reference.
3038 (dialog_proc): Use all_site_list instead of site_list.
3039 (site_sort): Remove.
3040 (get_site_list): Remove malloc use - use list template instead.
3041 Move site_list_type initialisation to site_list_type::init().
3042 (get_initial_list_idx): Renamed to ...
3043 (get_saved_sites): this. Also read in multiple sites to the site_list.
3044 (do_site): Use all_site_list not site_list.
3045 Log all chosen sites.
3046 * site.h: New file, defines site related class, functions and variables.
3047 * state.h: Add comment about use of state.h
3048 (mirror_site): Remove.
3049 (other_url): Remove.
3050 (MIRROR_SITE): Remove.
3051 * version.cc: New file, for version-handling and related functions.
3053 2001-12-02 Robert Collins <rbtcollins@hotmail.com>
3055 * Makefile.in: Add filemanip.o to setup.
3056 * archive.cc (archive::extract_file): Use new io_stream method 'copy'.
3057 * archive_tar.h (archive_tar_file): Implement get_size virtual.
3058 (archive_tar): Ditto.
3059 * choose.cc (set_action): Use [] operator instead of getnth - its more readable.
3061 (_view::init_headers): Ditto.
3062 (_view::insert_pkg): Ditto.
3063 (set_view_mode): Ditto.
3066 (base): Moved to filemanip.cc.
3067 (find_tar_ext): Ditto.
3068 (parse_filename): Ditto.
3069 (_Info::_Info): Remove.
3070 * compress_bz.h (compress_bz): Implement get_size virtual.
3071 * compress_gz.h (compress_gz): Implement get_size virtual.
3072 * cygpackage.cc (cygpackage::destroy): Use array delete for char * objects.
3073 * download.cc (get_file_size): Move to filemanip.cc.
3074 (check_for_cached): Use [] operator instead of getnth - its more readable.
3075 (download_one): Ditto.
3076 * filemanip.cc: New file.
3077 * geturl.cc (init_dialog): Make url a pointer to const as it is not modified.
3078 (get_url_to_membuf): New function - contains get_url_to_string worker code.
3079 (get_url_to_string): Becomes a trivial wrapper to get_url_to_membuf.
3080 * geturl.h: Declare new prototype.
3081 * ini.cc (do_ini): Use get_url_to_membuf and pass ini_init an io_stream.
3082 Tidy up the error code a little.
3083 * ini.h: Remove __cplusplus protection for ini_init.
3085 * inilex.l: Remove old globals.
3086 (ini_init): Use an io_stream for getting the characters.
3087 (ini_getchar): Ditto.
3088 * iniparse.y: Declare yylex as a C++ function.
3089 (add_correct_version): Use [] operator instead of getnth - its more readable.
3090 * io_stream.cc (io_stream::move_copy): Use the copy method.
3091 (io_stream::copy): New method to simply copy from one stream to another.
3092 * io_stream.h (io_stream): New static method copy, and virtual method get_size.
3093 * io_stream_cygfile.cc (io_stream_cygfile::get_size): Implement this.
3094 * io_stream_cygfile.h (io_stream_cygfile::get_size): Declare this.
3095 * io_stream_file.cc (io_stream_file::get_size): Implement this.
3096 * io_stream_file.h (io_stream_file::get_size): Declare this.
3097 * io_stream_memory.h: Include errno as it's neded to parse the header.
3098 (io_stream_memory::get_size): Implement this.
3099 (io_stream_memory::st_size): Delete this.
3100 * list.h: Change getnth into the [] operator.
3101 * netio.cc (NetIO::NetIO): Change prototype to reflect Purl not being modified.
3102 (NetIO::set_url): Ditto.
3103 (NetIO::open): Ditto.
3104 * netio.h: As for netio.cc.
3105 * nio-file.cc (NetIO_File::NetIO_File): Change prototype to reflect Purl not
3107 * nio-file.h: Ditto.
3108 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Ditto.
3109 * nio-ftp.h (NetIO_FTP::NetIO_FTP): Ditto.
3110 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Ditto.
3111 * nio-http.h (NetIO_HTTP::NetIO_HTTP): Ditto.
3112 * nio-i5.cc (NetIO_IE5::NetIO_IE5): Ditto.
3113 * nio-i5.h (NetIO_IE5::NetIO_IE5): Ditto.
3114 * package_meta.cc (packagemeta::~packagemeta): Bugfix: use array delete.
3115 * package_source.cc (packagesource::set_canonical): Ditto.
3116 (packagesource::set_cached): Ditto.
3117 * package_source.h (site::~site): Ditto.
3118 * site.cc: Change site_list_type to a class, and search and replace sort_key to
3121 2001-12-01 Robert Collins <rbtcollins@hotmail.com>
3123 * package_source.cc (packagesource::set_canonical): Filename was out by one.
3125 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
3127 * Makefile.in (OBJS): Remove category_list - it's not needed.
3128 * README: More wishlist updates.
3129 * category.cc (Category::Category): Initialise new members.
3130 (Categorycmp): New function.
3131 * category.h (Category): New member key for template use.
3132 * category_list.cc: Remove.
3133 * category_list.h: Remove.
3134 (Categorycmp): New function prototype.
3135 * choose.cc: Remove category_list - not needed.
3136 (set_action): Only show the 'source' option when the source is actually
3138 (add_required): Fix recursion limiter to 5.
3139 (fill_missing_category): Use list access.
3140 (default_trust): Ditto.
3141 (pick_line::paint): Ditto.
3142 (_view::init_headers): Ditto.
3143 (_view::insert_pkg): Ditto.
3144 (_view::insert_category): Ditto.
3145 (_view::click): Ditto.
3146 (set_view_mode): Ditto.
3148 * cygpackage.h: Remove category_list - not needed.
3149 * geturl.cc (get_url_to_string): Fix null byte insertion.
3150 * inipatse.y: Remove category_list - not needed.
3151 (categories): Use list access.
3152 * package_db.cc: Ditto.
3153 * package_db.h: Remove category_list - not needed.
3154 (packagedb): Use the list template for categories.
3155 * package_meta.cc (add_category): Ditto.
3156 * package_meta.h (CategoryPackage): Link to the category as well.
3157 (packagemeta): Use a list of CategoryPackages instead of Categories
3158 for more memory efficient cross-referencing.
3160 2001-11-30 Robert Collins <rbtcollins@hotmail.com>
3162 * package_db.cc (packagedb::flush): Write a canonical version for all packages
3163 irrespective of the media they were installed from.
3165 2001-11-29 Robert Collins <rbtcollins@hotmail.com>
3167 * Makefile.in (OBJS): Add package_source and rfc1738.
3168 * README: Wishlist update.
3169 * category_list.cc (register_category): Use references.
3170 * category_list.h (CategoryList): Ditto.
3171 * choose.cc (isinstalled): Remove.
3172 (pkgtrustp): New macro.
3173 (set_action): Use packagemeta.
3174 (add_required): Ditto.
3175 (choose_caption): Example package to choose caption, rather than state flags.
3176 (check_existence): Remove.
3177 (set_existence): Remove old code.
3178 (fill_missing_category): Use packagemeta.
3179 (keep_or_skip): Remove.
3180 (default_trust): Use packagemeta and set trust values directly.
3181 (pick_line::set_line): Use packagemeta.
3182 (_view::insert_pkg): Ditto.
3183 (_view::insert_category): Ditto.
3184 (_view::click): Ditto.
3185 (set_view_mode): Ditto. Also remove "exclude" code.
3186 (create_listview): Use packagemeta.
3187 (dialog_cmd): Ditto.
3188 (getpkgbyname): Remove
3189 (scan2): Use packagemeta. Temporarily comment out the holefinding code.
3190 (read_installed_db): Remove.
3191 (package_sort): Use packagemeta.
3192 (do_choose): Use packagemeta. Don't sort the packages - the db does that.
3193 * choose.h: Use packagemeta.
3194 * cygpackage.cc (cygpackage::cygpackage): Initialise all variables.
3195 (cygpackage::cygpackage): Ditto.
3196 (cygpackage::set_canonical_version): Copy the passed string.
3197 (cygpackage::~cygpackage): Move cleanup code to destroy().
3198 (cygpackage::destroy): New function.
3199 (cygpackage::getfirstfile): Use a separate buffer.
3200 (cygpackage::getnextfile): Ditto.
3201 (cygpackage::Canonical_version): New function.
3202 (cygpackage::set_sdesc): Ditto.
3203 (cygpackage::set_ldesc): Ditto.
3204 * cygpackage.h (cygpackage::Canonical_version): New method.
3205 (cygpackage::set_sdesc): New method.
3206 (cygpackage::set_ldesc): New method.
3207 (cygpackage::SDesc): New method.
3208 (cygpackage::LDesc): New method.
3209 (cygpackage::set_canonical_version): New method.
3210 * desktop.cc: Include packagedb headers.
3211 (make_password_group): Use packagemeta.
3212 * download.cc: Include packagedb headers.
3213 (check_for_cached): New method to find any cached file and fill out the database
3215 (download_one): Take a packagesource, support multiple mirrors.
3216 (do_download): Use packagemeta.
3217 * from cwd.cc: Include packagedb headers.
3218 (found_file): Use packagemeta.
3219 * ini.cc (do_ini): Beginning of multiple-mirror support.
3220 * ini.h (CategoryPackage): Remove.
3221 (Dependency): Remove.
3223 (new_package,getpkgbyname,getpackagecategorybyname,add_category): Remove.
3224 * inilex.l: Support multiple mirrors.
3225 * iniparse.y: Include packagedb headers.
3226 (parser): Use packagemeta.
3227 (new_package): Remove.
3228 (add_correct_version): New function.
3229 (new_requirement): Remove.
3230 (add_category): Remove.
3231 * install.cc (uninstall_one): Use packagemeta.
3232 (install_one_source): New function.
3233 (install_one): Use packagemeta.
3234 (do_install): Use packagemeta.
3235 * io_stream.cc (io_stream::move): Bugfix on move/copy case.
3236 * io_stream_cygfile.cc (io-stream_cygfile::set_mtime): Do not reopen the file
3237 after setting the mtime, it makes no sense, and results in 0 length files.
3238 * io_stream_file.cc (io-stream_file::set_mtime): Ditto.
3239 * list.h: New file, template class for a form of list.
3240 * package_db.cc (packagedb::registerpackage): New function.
3241 * package_db.h (packagedb::npackages ()): New method.
3242 * package_meta.cc (packagemeta::add_version): Use list template.
3243 (packagemeta::set_installed): Ditto.
3244 (packagemeta::add_category): New method.
3245 * package_meta.h: Include necessary headers to parse the class.
3246 (CategoryPackage): New class.
3247 (packagemeta): Initialise all members.
3248 (packagemeta::SDesc): New method.
3249 (packagemeta::Categories): New method.
3250 (packagemeta::add_category): Ditto.
3251 (packagemeta::versions): Change to be a list instance.
3252 * package_source.cc (packagesource::set_canonical): New method.
3253 (packagesource::set_cached): New method.
3254 * package_source.h: Include necessary headers to parse the class.
3256 (packagesource::packagesource): Initialize all members.
3257 (packagesource): Make this class non-abstract.
3258 * package_version.cc (packageversion::packageversion): New method.
3259 * package_version.h (Dependency): New class.
3260 (packageversion::Canonical_vesion): New method.
3261 (packageversion::SDesc): New method.
3262 (packageversion::LDesc): New method.
3263 (packageversion::new_requirement): Ditto.
3264 (packageversion::srcpicked, binpicked): What to install.
3265 (packageversion::src, bin): Installation source data.
3266 * rfc1738.cc: New file. Escapes special characters in URL's.
3269 2001-11-26 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3271 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Stop header parsing when
3272 SimpleSocket::gets() returns a zero-length string, so that we
3273 don't end up eating the entire stream thinking it's all header info.
3275 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
3277 * install.cc (badrename): Remove.
3278 (do_install): Use packagedb flush method to write /etc/setup/installed.db.
3279 * io_stream.cc (io_stream::move_copy): New method.
3280 (io_stream::move): New method.
3281 * io_stream.h (io_stream): New methods move and move_copy.
3282 * io_stream_cygfile.cc (io_stream_cygfile::move): New method.
3283 * io_stream_cygfile.h (io_stream_cygfile): New method move.
3284 * io_stream_file.cc (io_stream_file::move): New method.
3285 * io_stream_file.h (io_stream_file): New method move.
3286 * package_db.cc (packagedb::flush): New method.
3287 * package_db.h (packagedb): New method flush.
3289 2001-11-23 Robert Collins <rbtcollins@hotmail.com>
3291 * Makefile.in (OBJS): Add package_version.
3292 * ategory.cc (Category::Category): Update constructors.
3293 * category_list.cc (CategoryList::register_category): Insert correctly.
3294 * choose.cc: Include package_version.h, not package.h.
3295 * cygpackage.cc: Ditto.
3296 (cygpackage::uninstall): New method.
3297 * cygpackage.h (cygpackage): Rename genericpackage to packageversion.
3298 New method uninstall.
3299 * hash.cc (add, has, enumerate): Change prototype to be accurate.
3300 * hash.h (hash): Change prototypes to be accurate.
3301 * ini.h (_Info): New parameterless constructor.
3302 (CategoryPackage): New constructor.
3304 * install.cc: Don't include unneeded headers.
3305 Include package database headers.
3306 (hash::add_subdirs): Remove.
3307 (uninstall_one): Use packagemeta->uninstall to perform the uninstallation.
3308 Don't uninstall source packages.
3309 (do_install): Just can uninstall_one once as we ignore source packages now.
3310 Don't copy the installed.old database accross, instead iterate through the
3311 packagedb packages list and write the isntalled packages out.
3312 * package_db.cc: Include package_version.h, not package.h.
3313 (packagedb::packagedb): Never let db be undefined.
3314 Record the installation filename, so we can reconstruct installed.db.
3315 (packagedb::addpackage): Insert packages in alpha sorted order.
3316 (packagedb::categories): Initialise correctly.
3317 * package_meta.cc: Include win32 and mount headers as a workaround to
3318 current io_stream limitations. Include a TODO about that.
3319 (standard_dirs): New, from install.cc.
3320 (hash::add_subdirs): New, from install.cc.
3321 (packagemeta::set_installed): Rename genericpackage to packageversion.
3322 (packagemeta::uninstall): New method.
3323 * package_meta.h: Rename genericpackage to packageversion.
3324 (packagemeta): Update constructor.
3325 (add_version, set_installed): Rename genericpackage to packageversion.
3326 (uninstall): New method.
3327 (installed_from): New member.
3328 * package_source.cc: New file.
3329 * package_source.h: New file.
3330 * package_version.cc: New file.
3331 * package_version.h: New file.
3332 * package.cc: Removed.
3333 * package.h: Removed.
3335 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
3337 * Makefile.in (OBJS): Add category.o and category_list.o.
3338 * category.h: New file.
3339 * category.cc: New file.
3340 * category_list.h: New file.
3341 * category_list.cc: New file.
3342 * choose.cc: Include category headers.
3343 (fill_missing_category): Use package_db to access global categories.
3344 (_view::insert_pkg): Ditto.
3345 (_view::insert_category): Ditto.
3346 (set_view_mode): Ditto.
3347 (getcategorybyname): Remove.
3348 * cygpackage.h: Include category_list.h to parse this correctly.
3349 (cygpackage): New virtual &Categories.
3350 * ini.h (_CategoryPackage): More C to C++ conversion.
3352 (getcategorybyname): Remove.
3353 (register_category): Remove.
3354 * iniparse.y: Include package db and category headers.
3355 (categories): Use package_db to access global categories.
3357 (ncategories): Remove.
3358 (register_category): Remove.
3359 * package.h: New virtual &Categories.
3360 * package_db.cc (packagedb::packagedb): Don't read the installed db twice.
3361 (packagedb::categories): Declare.
3362 * package_db.h (packagedb): New member categories for global categories list.
3364 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
3366 * choose.h: Don't include ini.h
3367 * ini.h: Allow pure c++ in the header file.
3369 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
3371 * install.cc (do_install): Write a version 2 installed.db file.
3372 * package_db.cc (packagedb::packagedb): Read version 1 and 2 installed.db files.
3374 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
3376 * Makefile.in (OBJS): Add package abstraction objects.
3377 * choose.cc: Include package abstraction headers.
3378 (read_installed_db): Use packagedb class and ignore installed sources.
3379 * cygpackage.cc: New file.
3380 * cygpackage.h: New file.
3381 * filemanip.h (get_file_size): Use unixy types.
3382 * package.h: New file.
3383 * package.cc: New file.
3384 * package_db.cc: New file.
3385 * package_db.h: New file.
3386 * package_meta.cc: New file.
3387 * package_meta.h: New file.
3389 2001-11-21 Robert Collins <rbtcollins@hotmail.com>
3391 * REAME: Updates to wishlist.
3393 2001-11-16 Robert Collins <rbtcollins@hotmail.com>
3395 * README: Updated and added my list of wishlist and todo items.
3397 2001-11-14 Robert Collins <rbtcollins@hotmail.com>
3399 * Makefile.in (OBJS): Include io_stream_memory in setup.exe.
3400 * archive_tar.cc (archive_tar::write): New prototype.
3401 (archive_tar::seek): New method.
3402 * archive.h (archive_tar_file): Update write() and add seek().
3403 (archive_tar): Ditto.
3404 * archive_tar_file.cc (archive_tar_file::write): New prototype.
3405 (archive_tar_file::seek): New method.
3406 * compress_bz.cc (compress_bz::write): New prototype.
3407 (compress_bz::seek): New function.
3408 * compress_bz.h (compress_bz): Update write() and add seek().
3409 * compress_gz.cc (compress_gz::write): New prototype.
3410 (compress_gz::seek): New function.
3411 * compress_gz.h (compress_gz): Update write() and add seek().
3412 * geturl.cc: Include io_stream headers.
3414 (get_url_to_string): Use a io_stream_memory buffer instead of GUBuf.
3415 * io_stream.h (io_stream_seek_t): New enum.
3416 (io_stream): Update write() and add seek().
3417 * io_stream_cygfile.cc (io_stream_cygfile::write): New prototype.
3418 (io_stream_cygfile::seek): New function.
3419 * io_stream_cygfile.h (io_stream_cygfile): Update write() and add seek().
3420 * io_stream_file.cc (io_stream_file::write): New prototype.
3421 (io_stream_file::seek): New function.
3422 * io_stream_file.h (io_stream_file): Update write() and add seek().
3424 2001-11-13 Brian Keener <bkeener@thesoftwaresource.com>
3426 * localdir.cc: Add headers unistd.h and port.h.
3427 (save_local_dir): Expand search logic to include local directory for
3428 location of file last-cache.
3429 (dialog_cmd): Skip IDD_ROOT when downloading and use Back button.
3430 (do_local_dir): Expand search logic to include local directory for file
3432 * res.rc (IDD_CHOOSE_DIALOG): Add hotkey to View button.
3433 * Source.cc (dialog_cmd): Skip IDD_ROOT if select Download from
3435 (do_source): Default to Install from Internet on first entry or
3436 previous selection if backing up from IDD_ROOT or IDD_LOCAL_DIR.
3438 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
3440 * choose.cc (find_tar_ext): Only match at the end of the string.
3441 (getpkgbyname): Prevent NULL pointer dereference.
3443 2001-11-13 Robert Collins <rbtcollins@hotmail.com>
3445 * Makefile.in (CFLAGS): Add warnings and -Werr.
3446 (WARNONLY_FLAGS): For sources that produce (harmless) errors no matter what.
3447 (OBJS): Add io_stream class' objects.
3448 (autoload.o): Use WARNONLY_FLAGS.
3450 (iniparse.o): Ditto.
3451 * archive.cc: New file.
3452 * archive.h: New file.
3453 * archive_tar.cc: New file.
3454 * archive_tar.h: New file.
3455 * archive_tar_file.cc: New file.
3456 * autoload.c: Fix compiler warnings (unused, deprecated conversion).
3457 * choose.cc: Use io_stream.h, not mount.h.
3459 (find_tar_ext): Rewritten to use strstr, and to accept .tar as an extension.
3460 (read_installed_db): Use io_streams.
3461 * choose.h: Run indent.
3462 * compress.cc: New file.
3463 * compress.h: New file.
3464 * compress_bz.cc: New file.
3465 * compress_bz.h: New file.
3466 * compress_gz.cc: New file.
3467 * compress_gz.h: New file.
3468 * concat.cc: Run indent.
3469 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3470 * concat.h: Run indent.
3471 * desktop.cc: Run indent.
3472 Include mklink2.h rather than redefining by hand.
3473 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3474 (etc_profile): Fix compiler warning (deprecated conversion).
3475 (make_link): Fix compiler warning (deprecated conversion).
3476 Tidy up use of args variable - consolidate into argbuf.
3477 (start_menu): Fix compiler warning (deprecated conversion).
3478 (desktop_icon): Fix compiler warning (deprecated conversion).
3479 (make_etc_profile): Fix compiler warning (deprecated conversion).
3480 (uexists): Fix compiler warning (deprecated conversion).
3481 (check_desktop): Fix compiler warning (deprecated conversion).
3482 (check_startmenu): Fix compiler warning (deprecated conversion).
3483 * dialog.cc: Run indent.
3484 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3485 (fatal): Fix compiler warning (deprecated conversion).
3486 * dialog.h: Run indent.
3487 * diskfull.cc: Run indent.
3488 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3489 * download.cc: Run indent.
3490 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3491 (download_one): Fix compiler warning (signed vs unsigned comparison).
3492 * filemanip.h: Run indent.
3493 * find.cc: Run indent.
3494 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3495 (find): Fix compiler warning (deprecated conversion).
3496 * find.h: Run indent.
3497 * fromcwd.cc: Run indent.
3498 * geturl.cc: Run indent.
3499 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3500 (dialog_cmd): Return a value.
3501 (dialog_proc): Remove unused variables.
3503 (get_url_to_file): Fix compiler warning (deprecated conversion).
3504 * geturl.h: Run indent.
3505 * hash.cc: Run indent.
3506 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3507 * hash.h: Run indent.
3508 * ini.cc: Run indent.
3510 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3511 (do_ini): Use io_streams for local io.
3512 * ini.h: Run indent.
3513 * inilex.l (ignore_line): Fix compiler warning (is not a prototype).
3514 Fix compiler warning (brackets for truth assignment).
3515 * install.cc: Run indent.
3516 Fix compiler warning (/* in comment).
3518 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3519 (dialog_cmd): Return a value.
3520 (dialog_proc): Return a value.
3521 (start_tics): Deleted - was unused.
3522 (badrename): Fix compiler warnings (unused, deprecated conversion).
3523 (standard_dirs): Fix compiler warning (deprecated conversion).
3525 (uninstall_one): Convert to io_streams.
3526 (install_one): Convert to io_streams.
3527 (do_install): Convert to io_streans.
3528 Fix compiler warning (deprecated conversion).
3529 * io_stream.cc: New file.
3530 * io_stream.h: New file.
3531 * io_stream_cygfile.cc: New file.
3532 * io_stream_cygfile.h: New file.
3533 * io_stream_file.cc: New file.
3534 * io_stream_file.h: New file.
3535 * localdir.cc: Run indent.
3537 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3538 (get_root_dir_now): Remove.
3539 (save_local_dir): Convert to io_streams.
3540 (dialog_cmd): Return a value.
3541 (do_local_dir): Convert to io_streams.
3542 (log.cc): Run indent.
3543 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3544 (log): Fix compiler warning (deprecated conversion).
3545 (log_save): Fix compiler warning (deprecated conversion).
3546 * log.h: Run indent.
3547 (log): Fix compiler warning (deprecated conversion).
3548 (log_save): Fix compiler warning (deprecated conversion).
3549 * main.cc: Run indent.
3550 Don't include "netio.h".
3551 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3552 (netio_test): Remove.
3553 (sid_auth): Fix compiler warning (partially bracketed initialiser).
3554 (WinMain): Return a value.
3555 * mkdir.cc: Run indent.
3556 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3557 * mklink2.c: Run indent.
3558 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3559 (mkcygsymlink): New function.
3560 * mklink2.h: New file.
3561 * mount.cc: Run indent.
3562 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3563 (create_mount): Remove unused variables.
3564 (cygpath): Fix compiler warning (signed vs unsigned comparison).
3565 * mount.h: Run indent.
3566 * msg.cc: Run indent.
3567 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3568 (msg): Fix compiler warning (deprecated conversion).
3569 (mbox): Fix compiler warning (deprecated conversion).
3570 * msg.h: Run indent.
3571 (msg): Fix compiler warning (deprecated conversion).
3572 * net.cc: Run indent.
3573 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3574 (dialog_cmd): Return a value.
3575 * netio.cc: Run indent.
3576 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3577 (auth_cmd): Return a value.
3578 * netio.h: Run indent.
3579 * nio-file.cc: Run indent.
3580 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3581 (NetIO_File::NetIO_File): Fix compiler warning (deprecated conversion).
3582 * nio-file.h: Run indent.
3583 * nio-ftp.cc: Run indent.
3584 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3585 * nio-ftp.h: Run indent.
3586 * nio-http.cc: Run indent.
3587 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3588 * nio-http.h: Run indent.
3589 * nio-ie5.cc: Run indent.
3590 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3591 * nio-ie5.h: Run indent.
3592 * other.cc: Run indent.
3593 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3594 (dialog_cmd): Return a value.
3595 * port.h: Run indent.
3596 * postinstall.cc: Run indent.
3597 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3598 (cmd): Fix compiler warning (deprecated conversion).
3599 (eun): Fix compiler warning (deprecated conversion).
3600 * root.cc: Run indent.
3601 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3602 * simpsock.cc: Run indent.
3603 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3604 * simpsock.h: Run indent.
3605 * site.cc: Run indent.
3607 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3608 (get_root_dir_now): Remove.
3609 (save_site_url): Convert to io_streams.
3610 (dialog_cmd): Return 0.
3611 (get_initial_list_idx): Convert to io_streans.
3612 * source.cc: Run indent.
3613 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3614 (check_if_enable_next): Remove.
3615 (load_dialog): Remove unused variables.
3616 (save_dialog): Ditto.
3617 (dialog_cmd): Return a value.
3618 * splash.cc: Return a value.
3619 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3620 (dialog_cmd): Return a value.
3621 * state.cc: Run indent.
3622 (cvsid): Fix compiler warnings (unused, deprecated conversion).
3623 * state.h: Run indent.
3627 2001-11-12 Christopher Faylor <cgf@redhat.com>
3629 * desktop.cc (start_menu): Change start menu name to "Cygwin".
3630 (check_startmenu): Ditto.
3632 2001-11-11 Christopher Faylor <cgf@redhat.com>
3634 * choose.cc (parse_filename): Finish reorganization by correctly
3635 decrementing p in memmove.
3637 2001-11-11 Christopher Faylor <cgf@redhat.com>
3639 * choose.cc (parse_filename): Reorganize code to work around gcc
3640 optimization problem.
3642 2001-11-09 Gareth Pearce <tilps@hotmail.com>
3644 * choose.cc (set_action): Allow skip as an option for installed
3645 packages that have version number not listed in setup.ini.
3647 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
3649 * choose.cc (set_cation): Backout last change.
3650 (choose_caption): Ditto.
3652 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
3654 * ini.h (actions): Remove - transferred to choose.h.
3656 * choose.h: Protect class's from "C" compilers.
3657 (actions): New enum, from ini.h. This may not be the 'right' place
3658 but that place doesn't exist yet.
3659 (_views): New enum, from ini.h.
3660 * choose.cc (set_action): Handle installed packages with a version not in
3662 (choose_caption): Ditto.
3663 * iniparse.y: Rearrange header order to handle new ini.h.
3665 2001-11-10 Robert Collins <rbtcollins@hotmail.com>
3667 * ini.h (_Info): Fix compiler warnings (signed vs unsigned comparison).
3668 (registry_category): Fix compiler warning (deprecated conversion).
3669 * iniparse.y (registry_category): Ditto.
3670 * choose.cc (cvsid): Fix compiler warnings (unused, deprecated conversion).
3671 (add_requried): Remove unused variable.
3672 (choose_caption): Handle all enumeration values via a default.
3673 (paint): Fix compiler warnings (unused, deprecated conversion).
3674 (scroll_common): Fix compiler warnings (unused, signed vs unsigned comparison).
3675 (list_clicK): Fix compiler warnings (signed vs unsigned comparison).
3676 (note_width): Fix compiler warnings (deprecated conversion).
3677 (keep_or_skip): Fix compiler warnings (unused).
3678 (_view::mode_caption): Fix compiler warnings (deprecated conversion).
3679 (set_view_mode): Fix compiler warnings (unused).
3680 (create_listview): Fix compiler warnings (unused, incorrect format, reaches
3682 (dialog_proc): Fix compiler warnings (unused).
3683 (read_installed_db): Fix compiler warnings (unused, deprecated conversion).
3684 * choose.h (_header): Fix compiler warnings (deprecated conversion).
3687 2001-11-08 Pavel Tsekov <ptsekov@syntrex.com>
3689 * simpsock.h (SimpleSocket::invalidate): Declare new method.
3690 * simpsock.cc (SimpleSocket::invalidate): Implement new method.
3691 (SimpleSocket::SimpleSocket): Initialize buf to zero. Do not allocate
3692 memory for buf in the constructor.
3693 (SimpleSocket::~SimpleSocket): Use SimpleSocket::invalidate().
3694 (SimpleSocket::printf): Use SimpleSocket::write() instead of send().
3695 (SimpleSocket::write): Check object consistency - return -1 on error.
3696 invalidate() the object on socket write error.
3697 (SimpleSocket::fill): Check object consistency - return -1 on error.
3698 invalidate() the object if socket read error is encountered and there
3699 is no more data available in the internal read buffer.
3700 Allocate memory for the internal read buffer.
3701 (SimpleSocket::gets): Return zero (NULL pointer) if error is encountered
3702 during fill() and no more data is available in the internal read buffer.
3703 (SimpleSocket::read): Check object consistency - return -1 on error.
3704 invalidate() the object if socket read error is encountered.
3705 * nio-ftp.cc (NetIO_FTP:NetIO_FTP): Allow 125 as valid response code to
3706 the RETR command (fix for MS IIS ftp server 5 - possibly others too).
3707 (NetIO_FTP::ok): Check if the SimpleSocket object is ok().
3708 (NetIO_FTP::read): Use NetIO_FTP::ok().
3709 * nio-http.cc: Check for valid return value of SimpleSocket::gets().
3710 (NetIO_HTTP::ok): Check if the SimpleSocket object is ok().
3712 2001-11-09 Robert Collins <rbtcollins@hotmail.com>
3714 * simpsock.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3715 (SimpleSocket::SimpleSocket): Avoid compiler warnings (deprecated conversion).
3716 (SimpleSocket::printf): Ditto.
3717 (SimpleSocket::write): Ditto.
3718 * simpsock.h (SimpleSocket): Avoid compiler warnings for constructor,
3720 * nio-ftp.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3721 (NetIO_FTP::NetIO_FTP): Remove unused variable done.
3722 * nio-http.cc (cvsid): Avoid compiler warnings (not used, deprecated conversion).
3724 2001-11-07 Charles Wilson <cwilson@ece.gatech.edu>
3726 * geturl.cc (get_url_to_string): clean up memory leak
3727 (get_url_to_file): ditto
3729 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
3731 * localdir.cc (dialog_cmd): Go back to IDD_ROOT in every case.
3732 * source.cc (dialog_cmd): Go forward to IDD_ROOT in every case.
3734 2001-11-06 Pavel Tsekov <ptsekov@syntrex.com>
3736 * fromcwd.cc (found_file): Free() memory containing the version and
3737 filepath information for a given package, before replacing the pointers which
3738 reference this memory.
3740 2001-11-06 Robert Collins <rbtcollins@hotmail.com>
3742 * fromcwd: Fix compiler warnings for cvsid.
3743 (canonicalize_version): Fix compilter warnings.
3744 (do_fromcwd): Ditto.
3745 * version.h: Fix compiler warnings for canonicalize_version.
3747 2001-11-03 Robert Collins <rbtcollins@hotmail.com>
3749 * res.rc (IDD_CHOOSE): Move the view caption to the right hand side.
3751 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3753 * res.rc (IDD_CHOOSE): Tweak for use on a 640x480 screen.
3755 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3757 * choose.cc (set_action): Correctly allow skip for any uninstalled package.
3759 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3761 * choose.cc (default_trust): Change the "Required" forced install category to
3764 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3766 * choose.cc: Ran indent.
3767 (set_action): When the requested trust level is missing and the level was not
3768 user requested, set the action to ACTION_SAME_CURR.
3770 2001-11-01 Christopher Faylor <cgf@redhat.com>
3772 * Makefile.in (mingw_getopt.o): Fix typo in non-verbose compilation.
3774 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3776 * choose.cc (_view::init_headers): Resync with the paint logic.
3778 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3780 * choose.cc (add_required): Allow SKIP and SRC_ONLY for currently installed
3783 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3785 * choose.cc (default_trust): Autoset currently installed packages per the user's
3786 selection of prev/curr/exp.
3788 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3790 * splash.cc (dialog_proc): Return TRUE as specified in the WIN32 API.
3792 2001-11-02 Pavel Tsekov <ptsekov@syntrex.com>
3794 * geturl.cc (is_showing): Remove.
3795 (is_local_install): New static variable. Controls whether the
3796 progress dialog and the supporting thread will be created.
3797 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the WIN32 API.
3798 (init_dialog): Remove usage of SetForegroundWindow and is_showing.
3799 This prevents the progress dialog to gain control over the
3800 application and fixes the "setup.exe going to background" problem.
3801 (progress): Use is_local_install.
3802 (get_url_to_string): Set is_local_install.
3803 (dismiss_url_status_dialog): Use is_local_install.
3804 * install.cc (dialog_proc): Return TRUE as specified in WIN32 API.
3805 (init_dialog): Remove usage of SetForegroundWindow.
3806 This prevents the progress dialog to gain control over the
3807 application and fixes the "setup.exe going to background" problem.
3809 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3811 * choose.cc (list_click): Change r to row for clarity.
3812 When we shrink the list below 1 page, scroll to the top of the list.
3813 (_view::click): Return the actual change for contractions.
3814 (dialog_proc): Return TRUE to WM_INITDIALOG as specified by the Win32 API.
3816 2001-11-02 Robert Collins <rbtcollins@hotmail.com>
3818 * choose.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
3819 * localdir.cc: Ran indent.
3820 (get_root_dir_now): New function.
3821 (save_local_dir): New function.
3822 (dialog_cmd): Use it and swap cygwin root selection and local dir selection order.
3823 (do_local_dir): If there is a saved local dir, read it in.
3824 * net.cc (dialog_cmd): Swap cygwin root selection and local dir selection order.
3825 * root.cc (dialog_cmd): Ditto.
3826 * source.cc (dialog_cmd): Ditto.
3828 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
3830 * choose.cc(list_vscroll): Return 0 as required by win32.
3831 (list_hscroll): Ditto.
3832 (list_click): Ditto.
3834 2001-11-01 Robert Collins <rbtcollins@hotmail.com>
3838 * main.cc(WinMain): Use __argv to retrieve command line parameters.
3839 * Makefile,in: Remove argv.o.
3841 2001-11-01 Matt Hargett <matt@use.net>
3843 * geturl.cc (progress): Change int to unsigned int to eliminate
3845 * (get_url_to_string): Check for NULL pointer.
3846 * mount.cc (find2): Use free instead of delete for malloc'd
3848 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Fix memory leak.
3850 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
3852 * choose.cc(_view::insert_under): Handle linen > nlines and lines[linen] with neither
3853 a package nor a category. The lines[linen] bug was reported by Matt (matt@usa.net).
3854 (read_installed_db): Bugfix for testing whether a package has a source tarball.
3855 Reported by Matt (matt@usa.net).
3856 * geturl.cc(dialog): Rename gw_dialog to local_gw_dialog to avoid programmer
3857 confusion and lint errors. Reported by Matt (matt@usa.net).
3859 2001-10-31 Robert Collins <rbtcollins@hotmail.com>
3861 * argv.cc: New file, converts arguments for -mwindows programs. (Simplified derivation
3864 * Makefile,in: Add argv.o and mingw_getopt.o to setup.exe object list.
3865 Add mingw_getopt.o build rule.
3866 * main.cc(WinMain): Initialise argv and argc for use by getopt.
3868 2001-10-27 Christopher Faylor <cgf@redhat.com>
3870 * res.rc: Rearrange info on top line slightly.
3872 2001-10-27 Christopher Faylor <cgf@redhat.com>
3874 * desktop.cc (make_passwd_group): Move file creation earlier in the
3875 process to ensure that passwd-grp.bat reflects desired operation.
3877 2001-27-10 Trevor Forbes <t4bs@hotmail.com>
3879 * postinstall.cc (each): Remove "*.done" file else rename will fail.
3881 2001-10-16 Christopher Faylor <cgf@redhat.com>
3883 * res.rc: Oops. Take 640x480 screen size into account.
3885 2001-10-16 Christopher Faylor <cgf@redhat.com>
3887 * res.rc: Enlarge chooser screen.
3889 2001-10-12 Christopher Faylor <cgf@redhat.com>
3891 * Makefile.in: Accomodate changes to w32api_include macro.
3893 2001-10-12 Christopher Faylor <cgf@redhat.com>
3895 * Makefile.in: Use correct flags for windres.
3897 2001-10-12 Christopher Faylor <cgf@redhat.com>
3899 * Makefile.in (CFLAGS): Remove -nostdinc from CFLAGS.
3901 2001-10-12 Christopher Faylor <cgf@redhat.com>
3903 * choose.cc (pick_line::paint): Reorganize after botched patch.
3905 2001-10-12 Christopher Faylor <cgf@redhat.com>
3907 * choose.cc (pick_line::paint): Add missing declaration.
3909 2001-10-10 Ralf Habacker <Ralf.Habacker@freenet.de>
3911 * choose.cc (pick_line::paint): Add package name to sdesc for display.
3913 Wed Sep 26 21:39:00 Robert Collins rbtcollins@hotmail.com
3915 * choose.cc (_view::insert_pkg): Correctly exit loop.
3916 * iniparse.y (register_category): Always insert new categories.
3918 Fri Sep 21 13:56:32 2001 Christopher Faylor <cgf@cygnus.com>
3920 * inilex.l (yylex): For comments, eat all characters up to, but not
3923 Sun Aug 26 12:50:01 2001 John Marshall <jmarshall@acm.org>
3925 * fromcwd.cc (found_file): Use correct package name when adding an
3926 unknown package rather than random stack garbage.
3928 Sun Aug 12 14:25:21 2001 Christopher Faylor <cgf@cygnus.com>
3930 * desktop.cc (make_passwd_group): .bat files need \r\n endings.
3932 Wed Aug 8 13:53:47 2001 Christopher Faylor <cgf@cygnus.com>
3934 * desktop.cc (etc_profile): Leave environment variables untouched.
3936 2001-08-07 Corinna Vinschen <corinna@vinschen.de>
3938 * autoload.c: Add dynamic load statements for NT/W2K
3939 advapi32 functions not available in 9x/ME.
3940 * main.cc (set_default_dacl): New function.
3941 (WinMain): Call `set_default_dacl' if running on NT/W2K.
3943 Sat Aug 4 21:35:53 2001 Christopher Faylor <cgf@cygnus.com>
3945 * ini.h (_CategoryPackage): Change pkg field to pkgname for
3947 * choose.cc: Use pkgname field when referencing _CategoryPackage
3949 (fill_missing_category): Don't add excluded packages.
3950 (default_trust): Ditto.
3951 (_view::insert_pkg): Ditto.
3952 * iniparse.y (register_category): Use consistent variable name.
3954 2001-07-09 Egor Duda <deo@logos-m.ru>
3956 * choose.cc: Use system foreground color for text output.
3958 Sat Jul 7 00:40:28 2001 Christopher Faylor <cgf@cygnus.com>
3960 * choose.cc (set_action): Use default trust for determining reinstall
3962 (default_trust): Set default trust.
3963 (pick_line::paint): Allow source selection when reinstalling or
3966 Fri Jul 6 18:08:49 2001 Christopher Faylor <cgf@cygnus.com>
3968 * choose.cc (isinstalled): Modify to properly accomodate special case
3970 (set_action): Check downloaded components, not installed components if
3972 (set_existence): Always include full list of files when "download
3975 Fri Jul 6 00:37:05 2001 Christopher Faylor <cgf@cygnus.com>
3977 * choose.cc (pick_line::paint): Properly display "na" field when no
3980 Thu Jul 5 00:34:23 2001 Christopher Faylor <cgf@cygnus.com>
3982 * choose.cc (scan2): Ensure that older versions do not show up in
3985 Mon Jul 2 15:47:59 2001 Christopher Faylor <cgf@cygnus.com>
3987 * choose.cc (set_action): Allow "Skip" action if trust != installed.
3988 * res.rc: Fix copyright.
3990 Sat Jun 30 14:05:21 2001 Michael A Chase <mchase@ix.netcom.com>
3992 * res.rc (IDD_LOCAL_DIR): Change caption to match the other dialog
3994 (IDD_CHOOSE): Adjust horizontal size so package names are visible.
3996 * choose.cc: Restore some more changes from 2001-06-25, throughout.
3997 (paint): Wrap some excessively long lines.
3998 (pick_line::paint): Ditto. Move the arrow in the "Current" column
3999 right to where it belongs. Move the source checkbox slightly to the
4001 (do_choose): List categories and required packages in setup.log.full.
4003 Sat Jun 30 23:04:59 2001 Christopher Faylor <cgf@cygnus.com>
4005 * choose.cc (scan2): Restore source scanning eliminated by previous checkin.
4007 Sat Jun 30 15:18:33 2001 Christopher Faylor <cgf@cygnus.com>
4009 * ini.h (struct _Info): Add "derived" element.
4010 * choose.cc (scan2): Try to place unknown tar files into proper slot
4011 when package exists in setup.ini but tar file does not.
4013 Sat Jun 30 13:39:00 2001 Robert Collins <rbtcollins@hotmail.com>
4015 * choose.cc (create_listview): Call set_view_mode with VIEW_CATEGORY.
4016 (do_choose): Log the first category name.
4018 Fri Jun 29 23:07:44 2001 Christopher Faylor <cgf@cygnus.com>
4020 *ini.h: Reapply 2001-06-25 changes.
4021 * choose.cc (add_required): Ditto. Default to "Keep" state if
4022 UNINSTALL and product is installed. Default to curr state if SKIP,
4024 (keep_or_skip): New function. Returns skip or keep state depending on
4025 installed state of package.
4026 (default_trust): Use keep_or_skip to set state.
4027 (_view::insert_pkg): Use calloc to allocate lines.
4028 (set_view_mode): Adapt 2001-06-25 change to set_full_list here.
4030 Sat Jun 30 11:01:00 2001 Robert Collins <rbtcollins@hotmail.com>
4032 * choose.cc: Remove globals full_list, headers, package_indexes and
4034 Add globals cat_headers, pkg_headers and chooser.
4035 (add_required): New function.
4036 (paint): Use the chooser for header details.
4037 Call into the chooser to paint each line.
4038 (list_click): Use new global variables.
4039 Call into the chooser to handle the click.
4040 Repaint the entire view if packages have been added or removed.
4041 (note_width): Get passed a headers struct rather than using a global
4043 (fill_missing_category): New function.
4044 (default_trust): Skip non-"Required" or "Misc" packages.
4045 (pick_line::set_line (Package *)): New function.
4046 (pick_line::set_line (Category *)): New function.
4047 (pick_line::paint): New function.
4048 (pick_line::click): New function.
4049 (_view::_view): New function.
4050 (_view::set_view_mode): New function.
4051 (_view::mode_caption): New function.
4052 (_view::set_headers): New function.
4053 (_view::init_header): New function.
4054 (_view::insert_pkg): New function.
4055 (_view::insert_category): New function.
4056 (_view::insert_at): New function.
4057 (_view::insert_under): New function.
4058 (_view::clear_view): New function.
4059 (viewsplusplus): New function.
4060 (_view::client): New function.
4061 (set_view_mode): Use new chooser functionality.
4062 (set_full_list): Use new global variables.
4063 (create_listview): Instantiate chooser.
4064 Remove all hardcoded headers[] code.
4065 (dialog_cmd): On trust changes, check dependencies.
4066 (getcategorybyname): New function.
4067 (getpackagecategorybyname): New function.
4068 (scan2): Use case-insensitive package comparison.
4069 (do_choose): Use fill_missing_category ().
4070 Show some category data.
4071 * ini.h: Protect against multiple inclusion.
4073 (_CategoryPackage): New struct.
4074 (_Category): New struct.
4075 (_Package): Change category to Category * from char *.
4076 (extern Category category): New global variable.
4077 (extern in ncategories): Ditto.
4078 (getcategorybyname): New prototype.
4079 (catpackagecategorybyname): New prototype.
4080 (register_category): New prototype.
4081 (add_category): New prototype.
4082 * iniparse.y: Parse multiple categories per package.
4083 (category): New global variable.
4084 (ncategories): New global variable.
4085 (new_package): Compare package against NULL, not 0.
4086 (new_requirement): Source formatting fix.
4087 (register_category): New function.
4088 (add_category): New function.
4089 * res.rc: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
4090 IDC_CHOOSE_VIEWCAPTION: New control.
4091 * resource.h: Change IDC_CHOOSE_FULLPART to IDC_CHOOSE_VIEW.
4092 IDC_CHOOSE_VIEWCAPTION: New control.
4093 Increment _APS_NEXT_CONTROL_VALUE.
4095 Mon Jun 25 00:56:37 2001 Michael A Chase <mchase@ix.netcom.com>
4097 * choose.cc (paint): Wrap excessively long lines.
4098 (list_click): Ditto.
4099 (create_listview): Ditto.
4100 (do_choose): Ditto. Replace TABs and remove CRs in lines written to
4101 setup.log.full. Allow "Yes" for source exists in setup.log.full when
4102 installing from local directories.
4104 Mon Jun 25 00:56:37 2001 Christopher Faylor <cgf@cygnus.com>
4106 * choose.cc (set_action): Only clear srcpicked when moving to next
4107 state. Allow source installation if it exists in the current "trust"
4108 state. Don't move to skip state when package is installed.
4109 (list_click): Don't allow source clicking when no source is available.
4110 (set_full_list): Display package when not is_full_action.
4111 * ini.h (is_full_action): Define.
4113 Sun Jun 17 12:06:14 2001 Christopher Faylor <cgf@cygnus.com>
4115 * install.cc (check_for_old_cygwin): New function. First stab at
4116 checking for old cygwin versions.
4117 (do_install): Call check_for_old_cygwin if there were no errors during
4120 Sat Jun 16 11:33:51 2001 Michael A Chase <mchase@ix.netcom.com>
4122 * choose.cc (_Info::_Info): Test _source paramenter for non-NULL rather
4123 than zeroed "source" element.
4125 Fri Jun 15 20:54:43 2001 Christopher Faylor <cgf@cygnus.com>
4127 * choose.cc (scan2): Insert unknown tar archives, found on disk, into
4128 the highest available "hole" in the trust array.
4130 Fri Jun 15 00:20:48 2001 Christopher Faylor <cgf@cygnus.com>
4132 * choose.cc (set_existence): Use pointer method for indexing in trust
4134 (create_listview): Ditto.
4135 (scan2): Ditto. Also, use consistent variable name for indexing into
4137 * ini.h (Package): Reorganize info array for easier scanning.
4139 Fri Jun 15 00:01:51 2001 Christopher Faylor <cgf@cygnus.com>
4141 * choose.cc (isinstalled): Eliminate special download only test.
4142 (set_action): Don't move to next state if in ACTION_SAME range and not
4144 (choose_caption): Display "Retrieve" rather than "Reinstall" when just
4146 (do_choose): Sort packages after all packages have been read.
4147 Accomodate the fact that first element in trust array is empty so that
4148 log files don't report the wrong trust value.
4149 * iniparse.y (new_package): Malloc space for package name or suffer
4152 Thu Jun 14 22:43:59 2001 Robert Collins <rbtcollins@hotmail.com>
4154 * ini.h (Dependency): New structure. Declare new function.
4155 * inilex.l (yylex): Detect new setup.ini options - category and requires.
4156 * iniparse.y: Declare new setup.ini token values.
4157 (yyparse): Parse new token values.
4158 (new_requirement): New function.
4160 Thu Jun 14 22:43:26 2001 Christopher Faylor <cgf@cygnus.com>
4162 * choose.cc (read_installed_db): Eliminate obsolete code.
4164 Thu Jun 14 22:11:53 2001 Christopher Faylor <cgf@cygnus.com>
4166 * choose.cc (set_action): Set trust on "redo".
4167 (_Info::_Info): New constructor.
4168 (read_installed_db): Use new constructor. Use trusts type for
4170 * ini.h (struct _Info): Label struct, add constructor.
4171 (Package): Make installed_ix a type 'trusts.'
4172 * install.cc (uninstall_one): Unset any installed info for current
4174 (install_one): Allocate new Info struct for installed reflecting new
4176 (do_install): Don't output line to installed.db if package is being
4179 Thu Jun 14 20:33:01 2001 Robert Collins <rbtcollins@hotmail.com>
4181 * choose.cc (getpkgbyname): Use consistent method for scanning package
4184 Wed Jun 13 23:33:08 2001 Christopher Faylor <cgf@cygnus.com>
4186 * choose.cc: Add some comments.
4187 (getpkgbyname): Use strcasecmp for comparisons.
4189 Wed Jun 13 16:07:00 2001 Christopher Faylor <cgf@cygnus.com>
4191 * install.cc (do_install): Avoid checking for download action if
4192 package wasn't currently retrieved.
4194 Wed Jun 13 11:27:22 2001 Christopher Faylor <cgf@cygnus.com>
4196 * choose.cc: Eliminate extra array throughout. Use element in package
4197 structure instead. Use pointers rather than array indexes where
4199 (set_action): New function to set next action based on current.
4200 (choose_caption): New function. Returns display caption.
4201 (check_existence): Change arguments. Use pointer to 'info' structure.
4202 (set_existence): Use pointer rather than array index.
4203 (default_trust): Use trusts enum for second argument.
4204 (set_full_list): Honor exclude element in package structure.
4205 (build_labels): Eliminate.
4206 (base): Make global. Use const char * argument.
4207 (get_package_version): Eliminate.
4208 (getpkgbyname): New function.
4209 (read_installed_db): Use parse_filename to get version info.
4210 * desktop.cc (make_passwd_group): Use getpkgbyname function.
4211 * download.cc (get_file_size): const argument.
4212 (do_download): Use is_download_action to determine when something
4213 should be downloaded.
4214 * filemanip.h: Add some functions.
4215 * ini.cc (do_ini): Use NULL rather than 0 for pointer assignment.
4216 * ini.h: Use enums for actions and trusts.
4217 (is_download_action): New macro.
4218 (is_upgrade_action): Ditto.
4219 (is_uninstall_action): Ditto.
4220 (struct Package): Add new fields.
4221 * inilex.l (yylex): Detect new setup.ini options.
4222 * iniparse.y: Declare new tokens.
4223 (yyparse): Detect exclude keyword. Fill out version field even if
4225 (new_package): Use greater granularity when allocating package array to
4226 avoid repeated calls to realloc.
4227 * install.cc (exists): const argument.
4228 (uninstall_one): Take pkg argument.
4229 (install_one): Ditto. Eliminate unneeded arguments which can be
4230 derived from package info.
4231 (do_install): Iterate over package array using a pointer. Use
4232 is_download_action to control when package should be downloaded.
4233 * tar.cc (tar_open): const argument.
4234 * tar.h: Refloect const argument.
4236 2001-05-31 Michael Chase mchase@ix.netcom.com
4238 * main.cc (WinMain): Add setup version to starting setup.log entry
4240 Tue May 29 21:37:58 2001 Yukihiko Sohda <sohda@is.titech.ac.jp>
4242 * inilex.l: Add + to list of valid string characters.
4244 Mon May 28 20:54:50 2001 Christopher Faylor <cgf@cygnus.com>
4246 * Makefile.in: Remove more stuff in the clean target.
4248 Mon May 28 18:24:59 2001 Christopher Faylor <cgf@cygnus.com>
4250 * Makefile.in: Correctly generate iniparse.h.
4252 Tue Mar 6 19:14:00 2001 Corinna Vinschen <corinna@vinschen.de>
4254 * geturl.cc (get_url_to_file): Add parameter `allow_ftp_auth'.
4255 * geturl.h: Change declaration of `get_url_to_file' accordingly.
4256 * netio.cc (NetIO::NetIO): Add parameter `allow_ftp_auth'.
4257 Set member `ftp_auth'.
4258 (NetIO::open): Add parameter `allow_ftp_auth'. Use it in calls
4259 to constructors of derived classes.
4260 (NetIO::get_ftp_auth): New method.
4261 * netio.h: Change class definition accordingly.
4262 * nio-ftp.cc (NetIO_FTP::NetIO_FTP): Add parameter `allow_ftp_auth'.
4263 Take global variables `net_ftp_user' and `net_ftp_passwd' into account.
4264 Add code for ftp authentication retry.
4265 * nio-ftp.h: Change class definition accordingly.
4266 * nio-http.cc (NetIO_HTTP::NetIO_HTTP): Add parameter `allow_ftp_auth'.
4267 Add code for ftp authentication retry in case of proxy connection.
4268 * nio-http.h: Change class definition accordingly.
4269 * res.rc: Add FTP authentication dialog.
4270 * resource.h: Add new constants used in res.rc.
4271 * state.h: Add variables `net_ftp_user' and `net_ftp_passwd'.
4273 Sun May 27 17:12:23 2001 Christopher Faylor <cgf@cygnus.com>
4275 * res.rc (IDD_SPLASH): Add a copyright year.
4277 Sun May 27 15:42:18 2001 Christopher Faylor <cgf@cygnus.com>
4279 * Makefile.in: Make iniparse.y produce a c++ file.
4280 * choose.cc (set_existence): Revert 2001-05-27 change.
4281 * ini.cc: Remove "C" from declaration of yyparse.
4282 * iniparse.y (yyparse): Fill out version field by default when a binary
4283 install is detected and no version has been set yet.
4284 * install.cc (do_install): Mount things earlier so that we can use
4285 proper mount table settings. Don't remove mounts since they are now
4287 * mount.cc (create_mount): Reread the mount table after establishing a
4289 (read_mounts): Explicitly clear root_here to allow multiple uses of
4290 this function. Ensure that there is no garbage in the table when we've
4291 exhausted all of the mounts in the registry.
4292 (cygpath): Accomodate ./ in path.
4294 Sun May 27 02:59:07 2001 Christopher Faylor <cgf@cygnus.com>
4296 Use parse_filename method to parse filenames throughout. Use
4297 get_root_dir to retrieve the current root directory throughout. Set
4298 const in argument list, where appropriate, throughout.
4299 * choose.cc (set_existence): Detect case of uninstalled package with no
4301 (parse_filename): New function.
4302 * filemanip.h (fileparse): New structure.
4303 * mount.cc (read_mounts): Remember where we found the root mount.
4304 (set_root_dir): New function.
4305 (get_root_dir): Ditto.
4306 * mount.h: Declare new functions.
4307 * site.cc (get_root_dir_now): Renamed from get_root_dir.
4308 (save_site_url): Use new function name.
4309 (get_initial_list_idx): Ditto.
4311 Sat May 26 21:23:59 2001 Christopher Faylor <cgf@cygnus.com>
4313 * choose.cc: Use a constant throughout to deal with chooser icon
4315 * res.rc (IDD_CHOOSE): Increase size of chooser box.
4317 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
4319 * choose.cc (do_choose): Fix incorrect assignment of trust setting to
4320 use when Redownload or Sources Only selected.
4322 Thu May 10 22:35:59 2001 Christopher Faylor <cgf@cygnus.com>
4324 Reformat file after botched patch formatting.
4325 * choose.cc (which_trust): Eliminate variable.
4326 (default_trust): Don't set which_trust.
4327 (do_choose): Use selected trust when reinstalling or installing source.
4329 Thu May 10 21:04:18 2001 Christopher Faylor <cgf@cygnus.com>
4331 Change concat to cygpath throughout.
4332 Change map_filename to cygpath throughout.
4333 * concat.cc (vconcat): New function.
4334 (concat): Use vconcat.
4335 * concat.h: Reflect above.
4336 * install.cc (map_filename): Eliminate.
4337 (install_one): Free dest_file.
4338 * mount.cc (find2): Expect input key to be pointing to mount record.
4339 (in_table): New function.
4340 (is_admin): Move from root.cc.
4341 (read_mounts): New function.
4342 (path_prefix_p): New function.
4343 (cygpath): New function.
4344 * mount.h: Define new functions and structure.
4345 * root.cc (in_table): Move to mount.cc.
4346 (do_root): Call read_mounts to initialize root stuff and mount table.
4347 * site.cc (get_root_dir): Ditto.
4349 2001-05-09 Matt Hargett <matt@use.net>
4351 * Makefile.in: Remove *.rc from clean.
4353 Tue May 8 23:33:38 2001 Christopher Faylor <cgf@cygnus.com>
4355 * choose.cc (scan2): Fix incorrect setting of TRUST_CURR rather than
4356 TRUST_PREV which produced "0" versions.
4358 2001-05-07 Brian Keener <bkeener@thesoftwaresource.com>
4360 * resource.h: Add new field IDC_CHOOSE_INST_TEXT. Modify
4361 _APS_NEXT_CONTROL_VALUE to account for addition of
4362 IDC_CHOOSE_INST_TEXT.
4363 * res.rc (IDD_CHOOSE): Modify choose dialog to use new field
4364 IDC_CHOOSE_INST_TEXT for screen text. Modify choose Dialog to allow
4365 hot keys to select Prev, Curr, Exp.
4366 * ini.h: Add new actions for ACTION_REDO and ACTION_SRC_ONLY. Modify
4367 define for LOOP_PACKAGES to include new actions ACTION_REDO and
4369 * choose.cc: Add new Trusts for TRUST_REDO and TRUST_SRC_ONLY.
4370 (paint): Modify to check TRUST_SRC_ONLY when determining Bitmap for
4371 source Checkbox to use.
4372 (build_labels): Add logic to allow for selection of Source only
4373 Download/ReDownload/Install/Reinstall and also to Redownload/Reinstall
4374 current version binary.
4375 (dialog_proc): Add conditional display for file selection prompt based
4376 on download vs install using IDC_CHOOSE_INST_TEXT.
4377 (do_choose): Add new logic for TRUST_REDO and TRUST_SRC_ONLY selection
4378 and modify logic for TRUST_UNINSTALL, TRUST_KEEP, and TRUST_NONE to
4379 handle the instance where Source Download/Install was selected. Modify
4380 log file to store appropriate information regarding Action selected and
4381 the new actions that were added (I.E.: ACTION_REDO and
4383 * download.cc: Add include for <unistd.h> and "port.h".
4384 (download_one): Modify parameter list to include the selected action
4385 for the file to be downloaded. Modify size check against expected size
4386 to include check for ACTION_REDO and ACTION_SRC_ONLY. Modify rename of
4387 .tmp file to also remove the destination file if exists due to ability
4388 to redownload source and binary now.
4389 (do_download): Modify to also use ACTION_REDO and ACTION_SRC_ONLY in
4390 calculation of Download Bytes. Modify to also use ACTION_REDO and
4391 ACTION_SRC_ONLY in determining files selected for download.
4392 * install.cc (uninstall_one): Add check to treat a Reinstall like an
4393 upgrade so current version will be uninstalled prior to reinstall.
4394 (do_install): Add logic to handle ACTION_REDO and ACTION_SRC_ONLY for
4395 uninstalling and installing binary and source packages.
4396 * desktop.cc (make_passwd_group): Modify logic to account for a Source
4397 only cygwin install when checking for cygwin to determine need for
4398 mkpasswd and mkgroup.
4400 Mon May 7 23:33:30 2001 Matt Hargett <matt@use.net>
4402 * winsup/cinstall/res.rc: Added accelerators and improved focus order.
4403 Removed WS_DISABLED from "OK" buttons to accomodate default focus
4404 changes in net.cc and source.cc.
4405 * winsup/cinstall/net.cc (dialog_proc): If no radio button is selected,
4406 a default is selected.
4407 * winsup/cinstall/source.cc (dialog_proc): Ditto.
4408 (check_if_enable_next): Removed. No longer needed since a radio button
4409 will always be selected.
4410 (load_dialog): Removed call to check_if_enable_next.
4411 (dialog_cmd): Ditto. Also added default to switch.
4413 Tue Apr 24 23:42:02 2001 Christopher Faylor <cgf@cygnus.com>
4415 * res.rc: Resize affected text.
4417 Tue Apr 24 23:35:31 2001 Christopher Faylor <cgf@cygnus.com>
4419 * net.cc (do_net): Default to direct download.
4420 * res.rc: Move default selections to the top.
4422 2001-04-18 Earnie Boyd <earnie@users.sourceforge.net>
4424 * win32.h: Remove the definitions for _UNION_NAME and _STRUCT_NAME.
4425 Must now include <windows.h> and not the pieces.
4426 * choose.cc (create_listview): Clean up type mismatch problems.
4427 * dialog.h (NEXT(id)): Ditto.
4428 * geturl.cc (dialog): Ditto.
4429 * install.cc (dialog): Ditto.
4430 * splash.cc (load_dialog): Ditto.
4432 Wed Apr 18 18:59:21 2001 Christopher Faylor <cgf@cygnus.com>
4434 * tar.cc (class gzbz): Define dummy virtual functions.
4436 Wed Apr 18 16:01:21 2001 Christopher Faylor <cgf@cygnus.com>
4438 * Makefile.in: Add bz2 include/library support.
4439 * filemanip.h: New file.
4440 * choose.cc (find_tar_ext): New function. Returns TRUE if .tar.gz or
4442 (scan2): Reorganize to use find_tar_ext, accomodating .bz2 extension.
4443 (read_installed_db): Ditto.
4445 * fromcwd.cc (found_file): Ditto.
4446 (do_fromcwd): Ditto.
4447 * tar.cc (class gzbz): New super class for uncompression support.
4448 (gz): New class for gzip support.
4449 (bz): New class for bzip2 support.
4450 (tar_open): Use gzbz class to control file opening.
4451 (tar_ftell): Ditto for returning position in file.
4452 (skip_file): Ditto for reading file.
4453 (tar_next_file): Ditto.
4454 (tar_read_file): Ditto.
4455 (tar_close): Ditto for close.
4457 * zlib/configure.in: Force NM substitution.
4459 * source.cc (do_source): Default to "Install from Internet".
4461 2001-03-16 Brian Keener <bkeener@thesoftwaresource.com>
4463 * nio-file.cc (NetIO_File::NetIO_File): Use `get_file_size' instead of
4465 * choose.cc (list_click): Correct inability to select source code for
4467 (scan2): Modify to skip source tarballs when scanning disk for
4468 installable packages.
4470 2001-03-10 Chris Abbey <chris_abbey@yahoo.com>
4472 * install.cc: install sources into /usr/src instead
4473 of /, also include the sizes of source tarballs
4475 * download.cc: include sizes of source tarballs in
4476 total_download_bytes.
4478 Tue Mar 6 19:31:00 2000 Corinna Vinschen <corinna@vinschen.com>
4480 * download.cc (get_file_size): Remove `static'.
4482 Tue Mar 6 19:11:00 2000 Corinna Vinschen <corinna@vinschen.com>
4484 * tar.cc (tar_open): Use `get_file_size' instead of `stat'.
4486 2001-03-06 Brian Keener <bkeener@thesoftwaresource.com>
4488 * choose.cc (paint): Modify message for nothing to download vs
4489 nothing to install/update based on installation method.
4490 (list_click): Modify to skip versions in selection process if
4491 installing from local directory and installation file does not exist.
4492 Also leaves Source Action set to N/A if the source file does not exist
4493 and installing from local directory.
4494 (check_existence): New method to check current existence of installation
4495 files based on selected installation method.
4496 (set_existence): New method to set the current existence of installation
4497 files based on selected installation method.
4498 (best_trust): Modify decision process for best trust to base decision on
4499 current trust selected (IE: Prev, Curr, or Test), existence of file and
4500 installation method selected.
4501 (default_trust): Add logic to capture the current trust level and the
4502 trust selected for the given package.
4503 (set_full_list): Expand decision criteria for displaying a package in
4504 the selection list to include file existence/non-existence and selected
4505 installation method.
4506 (build_labels): Modify criteria for label addition to include
4507 installation method and file existence/non-existence.
4508 (create_listview): Modify to establish package trust level for each
4509 package before setting up the display list. Also modification to set
4510 current trust button as the default.
4511 (dialog_cmd): Set response for Prev, Curr, Test button push to perform
4512 a reset of the selection list in addition to setting the default trust.
4513 (get_package_version): New method to provide reusable code for
4514 determining the package version from the file name for a specified
4516 (scan2): Modify to use new method get_package_version and
4517 also enhance handling of the build for the structures package and
4519 (read_installed_db): Modify to use the new method
4520 get_package_version and also enhance handling of the build for the
4521 structures package and extra.
4522 (do_choose): Add additional initialization of package and extra
4523 structures. Modify to use read_installed_db all the time despite
4524 install method. Modify output to setup.log.full log file to increase
4525 readability by adding additional spacing, expanded code and available
4527 * ini.h: Add new fields install_exists, source_exists and
4528 partial_list_display to the structure definition for package.
4529 * res.rc (IDD_CHOOSE): Modify choose dialog Prev, Curr, and Test
4530 pushbuttons by replacing with Radio Buttons thus allowing the
4531 operator to better determine which is selected.
4533 2001-02-20 Brian Keener <bkeener@thesoftwaresource.com>
4535 * download.cc (do_download): Add new variables total_download_bytes and
4536 total_download_bytes_sofar for download progress meter. Add loop
4537 to accumulate the total bytes to download from the selected packages.
4538 * geturl.cc: Add state.h and diskfull.h to include list. Add new
4539 variables gw_iprogress, gw_pprogress, gw_progress_text,
4540 gw_pprogress_text, and gw_iprogress_text to allow for addition of
4541 total packages download progress meter and disk full percent
4542 progress meter. Add variables total_download_bytes and
4543 total_download_bytes_sofar for use by progress meters.
4544 (dialog_proc): Add new variables gw_iprogress, gw_pprogress,
4545 gw_progress_text, gw_pprogress_text, and gw_iprogress_text to
4546 allow for addition of total packages download progress meter and disk
4547 full percent progress meter.
4548 (init_dialog): Ditto.
4550 (get_url_to_file): Ditto.
4551 * geturl.h: Add external definition for total_download_bytes and
4552 total_download_bytes_sofar.
4553 * res.rc: Add two additional progress meters (IDC_DLS_IPROGRESS)
4554 and (IDC_DLS_PPROGRESS) and three text objects (IDC_DLS_PROGRESS_TEXT)
4555 and (IDC_DLS_IPROGRESS_TEXT, IDC_DLS_PPROGRESS_TEXT) for use in the
4557 * resource.h: Add new fields for progress meters and text and update
4558 _APS_NEXT_CONTROL_VALUE.
4560 Wed Feb 21 13:05:00 2000 Corinna Vinschen <vinschen@redhat.com>
4562 * download.cc (get_file_size): Check for INVALID_HANDLE_VALUE instead
4565 Wed Feb 21 11:21:00 2000 Corinna Vinschen <vinschen@redhat.com>
4567 * download.cc (download_one): Add missing parenthesis.
4569 Mon Feb 19 18:59:00 2000 Corinna Vinschen <vinschen@redhat.com>
4571 * download.cc (get_file_size): New function. Eliminates the need
4573 (download_one): Call `get_file_size' instead of `stat'. This
4574 workarounds a problem with mingw's `stat' call.
4576 2001-02-07 Earnie Boyd <earnie@users.sourceforge.net>
4578 * Makefile.in: (%.o: %.rc): Specify --include-dir $(w32api_include).
4579 This is to allow cinstall to build with 2.95.2-7 and to make the
4580 use of headers consistent.
4582 2000-12-26 Earnie Boyd <earnie_boyd@yahoo.com>
4584 * Makefile.in (autoload.o): Add target to specify -fno-inline-functions
4586 Tue Dec 26 03:46:00 2000 Matt Hargett <matt@use.net>
4588 * winsup/cinstall/res.rc: Added accelerators and improved focus
4591 2000-12-10 Egor Duda <deo@logos-m.ru>
4593 * choose.cc (paint): Use system background color for text output.
4595 Sun Dec 10 19:05:25 2000 Christopher Faylor <cgf@cygnus.com>
4597 * Makefile.in: Use CXX for linking and for compiling .cc files.
4598 * configure.in: Find correct c++ compiler.
4599 * configure: Regenerate.
4601 2000-11-17 DJ Delorie <dj@redhat.com>
4603 * splash.cc (load_dialog): Make message more obvious.
4606 Fri Nov 17 17:15:21 2000 Christopher Faylor <cgf@cygnus.com>
4608 * Makefile.in: Use g++ to link so that libstdc++.a gets used. This is
4609 necessary for newer compilers.
4611 Wed Nov 9 2:19:00 2000 Corinna Vinschen <vinschen@redhat.com>
4613 * desktop.cc: Include "ini.h" and "version.h".
4614 (make_passwd_group): Skip the function on 9x/ME boxes when an
4615 older version of Cygwin has been installed which doesn't
4616 support mkpasswd/mkgroup on 9x/ME.
4617 * install.cc: Move the `LOOP_PACKAGES' and `pi' macros to...
4620 Wed Nov 8 17:10:00 2000 Corinna Vinschen <vinschen@redhat.com>
4622 * desktop.cc (make_passwd_group): Don't exit when started
4623 on 9x/ME since mkpasswd/mkgroup are usable on 9x/ME now.
4625 Sun Nov 5 12:51:42 2000 Jason Tishler <jt@dothill.com>
4627 * install.cc (do_install): Add call to set_cygdrive_flags to sync
4629 * mount.cc (set_cygdrive_flags): New function.
4630 (get_cygdrive_flags): Ditto.
4631 (default_cygdrive): Ditto.
4632 (set_cygdrive_flags): Ditto.
4633 * mount.h: Add prototype for set_cygdrive_flags.
4635 2000-10-23 DJ Delorie <dj@redhat.com>
4637 * ini.h: add source actions
4638 * fromcwd.cc: check for available sources
4639 * res.rc: add checkbox bitmaps
4642 * choose.cc: add source column
4643 * download.cc: download sources if called for
4644 * install.cc: [un]install sources too
4646 2000-10-22 DJ Delorie <dj@redhat.com>
4648 * choose.cc (build_labels): Don't skip TRUST_PREV completely; only
4649 ignore it wrt full_list if there's already a version installed.
4650 (do_choose): Sort the list.
4651 (package_sort): New.
4653 2000-10-12 DJ Delorie <dj@redhat.com>
4655 * res.rc: Add more error strings.
4656 * resource.h: Ditto.
4657 * iniparse.y (new_package): re-initialize if needed.
4658 * download.cc (do_download): Keep track of errors; notify and
4660 * install.cc (do_install): Ditto.
4662 2000-10-05 DJ Delorie <dj@redhat.com>
4664 * Makefile.in: fix %.cc rule
4666 2000-10-04 DJ Delorie <dj@redhat.com>
4668 * desktop.cc: quote HOME and USER, don't . ./.profile
4670 * choose.cc (build_labels): don't include in partial list just
4671 because there's a *previous* version available.
4673 * install.cc (do_install): if installing from local directory with
4674 setup.ini and the file isn't found, look in "." also. Note errors.
4676 2000-10-02 DJ Delorie <dj@redhat.com>
4678 * ini.cc (do_ini): save setup.ini locally
4680 2000-10-02 Chris Abbey <cabbey@bresnanlink.net>
4682 * desktop.cc: quote escapes in prompt
4684 2000-10-02 Jason Tishler <jt@dothill.com>
4686 * root.cc (is_admin): New function.
4687 (read_mount_table): Check for administrative priviledges and set
4688 installation scope as appropriate.
4690 2000-09-28 DJ Delorie <dj@redhat.com>
4692 * nio-ftp.cc (ftp_line): handle continuations more robustly
4694 2000-09-14 Brian Keener <bkeener@thesoftwaresource.com>
4696 * res.rc: increased the size of the site dialog (IDD_SITE) & the
4697 corresponding list box to provide for more URL's to be listed.
4698 Modified the position of the Back, Next and Cancel buttons to
4699 correspond to the new size of the dialog.
4701 2000-09-13 DJ Delorie <dj@redhat.com>
4703 * install.cc (do_install): update disk fullness once per package
4704 to improve performance
4706 * choose.cc (create_listview): call ReleaseDC
4708 Mon Sep 11 22:40 2000 Harold L Hunt II <harold@compasstechnologies.com>
4710 * mkdir.cc: Create directories when ERROR_FILE_NOT_FOUND is
4711 returned, as it seems Samba 2.0.6+ returns this instead of
4712 ERROR_PATH_NOT_FOUND
4714 Mon Sep 11 19:35:24 2000 Christopher Faylor <cgf@cygnus.com>
4716 * site.cc (get_initial_list_idx): Don't default to saved URL if it
4719 2000-09-07 DJ Delorie <dj@redhat.com>
4721 * splash.cc: use version.h, not local decl
4722 * res.rc: add "old version" message
4725 * fromcwd.cc (canonicalize_version): make global
4726 * iniparse.y: add setup-version support, fix bug in blank line
4729 * inilex.l: add [exp] as alias for [test], add setup-version
4730 * Makefile.in (version.c): add setup-version tag
4732 * desktop.cc (do_desktop): remove 1.1 version number
4733 (do_desktop_setup): ditto
4735 * ini.cc (do_ini): zero out package list just in case we redo it.
4737 2000-09-07 Jeffrey Juliano <juliano@cs.unc.edu>
4739 * choose.cc (list_click): Check for nindexes==0; if so, return.
4741 2000-09-06 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
4743 * localdir.cc: new, local package directory selection dialog; cd
4744 into selected directory
4745 * Makefile.in (OBJS): add localdir.o
4746 * dialog.h: add prototype for do_local_dir
4747 * main.cc (WinMain): initialize local_dir to cwd; add call to
4749 * net.cc (dialog_cmd): make DO_LOCAL_DIR next dialog
4750 * source.cc (dialog_cmd): ditto
4751 * res.rc: add DO_LOCAL_DIR dialog; remove "current directory" from
4752 presented choices in IDD_SOURCE; add IDS_ERR_CHDIR error string
4753 * resource.h: defines for DO_LOCAL_DIR dialog; define IDS_ERR_CHDIR
4754 * root.cc (dialog_cmd): make DO_LOCAL_DIR previous dialog
4755 * state.h: add local_dir variable
4757 2000-09-06 Brian Keener <bkeener@thesoftwaresource.com>
4759 * desktop.cc: added logic to handle to the new dialog and to
4760 default the setting for the new checkboxes based on whether the
4761 desktop icon or start menu link already exist.
4762 (desktop_icon): correction to desktop directories for desktop icon
4763 creation. Additional logic added for Win95 which does not appear
4764 to have Common Directories so if Common selected and null uses
4766 (start_menu): Additional logic added for Win95 which does not
4767 appear to have Common Directories so if Common selected and null
4768 uses normal directory.
4769 (do_desktop_setup): moved the saving of the icon, creation of the
4770 bat file, profile, passwd, Start Menu link and desktop shortcut to
4771 this method from do_desktop. Made the creation of the desktop
4772 icon and start menu link conditional on settings of new dialog
4773 created for desktop.
4774 * install.cc (do_install): changed next from IDD_S_DESKTOP to
4776 * main.cc (WinMain): changed case IDD_S_DESKTOP to IDD_DESKTOP.
4777 * res.rc: added new resource to create a desktop dialog with 2
4778 checkboxes for creating the desktop icon and start menu link.
4779 * resource.h: changed IDD_S_DESKTOP to IDD_DESKTOP and added two
4780 new controls: IDC_ROOT_MENU and IDC_ROOT_DESKTOP for new dialog.
4781 * state.h: added root_menu and root_desktop for use in dialog.
4783 2000-08-29 DJ Delorie <dj@redhat.com>
4785 * choose.cc (scan_downloaded_files): scan for existing files, so
4786 that the user only sees new downloads.
4788 * nio-ie5.cc (NetIO_IE5): pre-check for wininet.dll, enable dial-up
4789 * site.cc (do_site): if we can't download the mirror list, go back
4790 to the net setup box to choose another transport.
4791 * autoload.c: add more functions
4792 * Makefile.in (ALL_DEP_LDLIBS): remove wininet.a
4793 * resource.h: add WININET message
4795 * net.cc (do_net): no longer default to IE5
4796 * simpsock.h (class SimpleSocket): new, simplify socket operations
4797 * simpsock.cc: ditto
4798 * nio-http.h: new, for direct http protocol
4799 * nio-http.cc: ditto
4800 * nio-ftp.h: new, for direct http protocol
4802 * netio.cc (set_url): move initialization here to handle redirections
4803 (open): add direct http/ftp
4804 * netio.h (NetIO::set_url): new
4806 * log.cc (log_save): create directory for log if needed
4808 * hash.cc, hash.h: new
4809 * Makefile: add hash.o
4810 * choose.cc: enable "uninstall" option
4811 * download.cc: invert action test to accomodate uninstalling
4812 * ini.h: add ACTION_UNINSTALL
4813 * install.cc: add uninstall functionality
4814 * res.rc: make install tag changeable
4815 * resource.h: add uninstall resources
4817 * res.rc: update mirror list URL
4819 2000-08-24 DJ Delorie <dj@redhat.com>
4821 * log.cc, log.h: new files
4822 * Makefile.in (OBJS): add log.o
4823 * tar.cc: use exit_setup instead of exit
4824 * dialog.cc (fatal): use exit_setup instead of ExitProcess
4825 * msg.cc (fatal): ditto
4826 * install.cc (dialog_cmd): ditto
4827 * ini.cc (do_ini): ditto
4828 * main.cc (main): add logging
4829 * source.cc (do_source): ditto
4830 * root.cc (do_source): ditto
4831 * site.cc (do_site): ditto
4832 * other.cc (do_other): ditto
4833 * net.cc (do_net): ditto
4834 * choose.cc (do_choose): ditto
4835 * download.cc (do_download): ditto
4836 * install.cc (do_install): ditto
4837 * msg.cc (fatal): ditto
4839 * res.rc: mark password boxes as *being* password boxes.
4841 * fromcwd.cc (canonicalize_version): use multiple buffers so that multiple
4842 calls won't use the same buffer.
4843 * choose.cc (create_listview): don't default to full list if no changes
4844 (base): return computed value, not temporary :-(
4845 (do_choose): don't use installed.db if we're only downloading.
4847 2000-08-23 DJ Delorie <dj@redhat.com>
4849 * nio-ie5.cc (NetIO_IE5): Fix authentication logic
4850 * nio-ie5.h (flush_io): new
4851 * netio.cc (load_dialog): note when we're initializing the dialog
4852 box, and ignore changes to the edit fields then.
4854 2000-08-21 DJ Delorie <dj@redhat.com>
4858 * fromcwd.cc (found_file): don't remember the canonicalized version
4860 * choose.cc (paint): print "nothing to do" message when list is empty.
4861 (build_labels): Use version "0.0" if no version is available.
4862 (create_listview): default to full list if nothing to install/update.
4863 (base): new, returns basename of file
4864 (read_installed_db): compare base names, not full paths
4866 2000-08-11 DJ Delorie <dj@redhat.com>
4868 * choose.cc: add new chooser dialog
4869 * fromcwd.cc: use IDD_CHOOSE
4870 * ini.cc: use IDD_CHOOSE
4871 * main.cc: use IDD_CHOOSE
4872 * ini.h: cosmetic changes
4873 * res.rc: add choose dialog, bitmaps
4874 * choose-spin.bmp: new
4875 * choose-rtarrow.bmp: new
4876 * resource.h: add choose dialog controls
4878 * mount.cc: remove debug statement
4880 2000-08-08 DJ Delorie <dj@redhat.com>
4882 * Makefile.in (version.c): make version checking more robust
4883 * splash.cc (load_dialog): handle case where there's no version
4885 2000-08-07 DJ Delorie <dj@redhat.com>
4887 * (all): add cvsid tags
4888 * Makefile.in: generate version.c from ChangeLog, add splash.o
4890 * res.rc: add splash screen
4892 2000-08-02 DJ Delorie <dj@redhat.com>
4894 * net.cc: remove proxy password code
4895 * res.rc: remove proxy user/pass from net, add auth dialogs
4896 * netio.cc,h: add sys/proxy auth methods
4897 * nio-ie5: use them, check for http status codes
4898 * state.h: add system authorization
4900 * concat.cc (concat): canonicalize x:// to x:/ (exception to ://
4903 2000-08-02 Norman Vine <nhv@yahoo,com>
4905 * msg.cc (mbox): added MB_TOPMOST to MessageBox type flags
4907 2000-08-01 DJ Delorie <dj@redhat.com>
4909 * postinstall.cc (each): don't rename files we ignore
4910 (do_postinstall): set CYGWINROOT to root_dir, chdir there
4912 * desktop.cc: have /etc/profile call ~/.profile and ~/.bashrc
4914 2000-07-31 DJ Delorie <dj@redhat.com>
4916 * desktop.cc: reverse PATH so /usr/bin precedes /bin
4918 2000-07-18 DJ Delorie <dj@redhat.com>
4920 * autoload.c: new, autoload dlls that might not be available.
4921 * Makefile.in (OBJS): add autoload.o
4923 * res.rc: rewrite root options (text/binary, system/user) to be
4926 * site.cc (get_site_list): trim displayed URL, sort by domain
4928 * net.cc (do_net): make IE5 default to checked, for now
4930 * choose.cc (do_choose): sort packages correctly
4931 * ini.cc (do_ini): handle parse errors more gracefully
4933 (fprintf): line buffer output
4934 (do_ini): if we can't load setup.ini, go back to the site list.
4935 * ini.h: add "unknown" trust level
4936 * inilex.l: absorb unknown trust levels and key/value pairs,
4937 add line number logic
4938 * iniparse.y: handle parse errors more gracefully.
4939 * install.cc: skip packages with no valid install entry
4941 2000-07-17 DJ Delorie <dj@cygnus.com>
4943 * coding standards fixups, many files
4944 * mkdir.cc: warn about deletions *before* deleting them
4946 2000-07-17 Jeff Juliano <juliano@cs.unc.edu>
4948 * res.rc (IDD_OTHER_URL): reorder to give default focus to entry
4950 * other.cc (dialog_cmd): save download site URL
4951 * site.cc (get_root_dir): new
4952 (save_mirror_site): new
4953 (dialog_cmd): save download site URL
4954 (get_site_list): make list big enough to add prev site
4955 (get_initial_list_idx): new, read last-used URL from file and
4956 append it to site_list
4957 (do_site): call get_initial_list_idx
4959 * concat.cc (concat): avoid segfault when first parm is null
4961 2000-07-13 DJ Delorie <dj@cygnus.com>
4963 * postinstall.cc: new
4964 * Makefile.in: add postinstall.o
4965 * concat.h: add backslash ()
4967 * desktop.cc (etc_profile): don't do postinstall
4968 (backslash): moved to concat.cc
4970 (make_postinstall_script): run directly
4971 (do_desktop): chain to do_postinstall
4972 * dialog.h: add exit_msg, do_postinstall
4973 * download.cc: use exit_msg
4975 * main.cc: add postinstall, exit_msg
4976 * resource.h: add postinstall
4977 * README: add more to-do items
4979 2000-07-12 DJ Delorie <dj@cygnus.com>
4981 * desktop.cc: add /etc/postinstall/ support
4982 * install.cc: add more "standard" directories
4984 2000-07-11 DJ Delorie <dj@cygnus.com>
4986 * desktop.cc: create /etc/profile
4987 * desktop.cc: fix include syntax
4988 * Makefile.in: add auto-dependencies
4989 * root.cc: support system vs user
4997 * desktop.cc: make sure we use backslashes, not slashes.
4998 * desktop.cc: don't set PATH in cygwin.bat, create /etc/passwd
4999 * geturl.cc: change math for percentage to avoid overflow
5001 * download.cc: post "download complete" message.
5002 * root.cc: pre-fill in defaults if needed, don't start
5003 browse at root_dir unless it's set.
5004 * desktop.cc: quote $PATH in case it has spaces in it
5006 2000-07-10 DJ Delorie <dj@cygnus.com>
5008 * Makefile.in: add desktop.o and mklink2.o
5009 * dialog.h: add do_desktop
5010 * install.cc: create standard directories, call do_desktop
5011 * res.rc: add cygwin.ico as a file also
5012 * desktop.cc: new, do shortcuts, batch files, and icons
5013 * mklink2.c: new, for COM
5014 * README: update to-do list
5016 2000-07-10 DJ Delorie <dj@cygnus.com>
5018 * ini.cc (do_ini): don't worry about timestamps if we're not
5019 actually installing.
5021 2000-07-09 DJ Delorie <dj@cygnus.com>
5023 * Makefile.in: add -I$(srcdir) for ini.h
5025 2000-07-06 DJ Delorie <dj@cygnus.com>
5027 * Replace everything with a new GUI version
5028 * zlib/gzio.c: add gzctell() for progress displays
5030 2000-06-22 DJ Delorie <dj@cygnus.com>
5032 * setup.c (tarx): re-add call to write_pkg()
5034 2000-06-07 DJ Delorie <dj@cygnus.com>
5036 * cygcalls.c: new, call cygwin1.dll functions directly
5037 * cygcalls.h: header for same
5038 * Makefile.in: add cygcalls.[ch], remove mount/cygpath/umount
5039 exes, fix cinstall.rc dependencies.
5040 * path.c: remove unneeded code
5041 * setup.c: use cygcalls instead of xcreate_process.
5042 uncompress embedded files with zlib
5043 add "-d" for "download only"
5045 postpone mount changes until very end
5046 add download progress indicators
5047 pack multi-column listings more
5048 auto-delete temp files
5049 customize banner message according to options
5050 prompt user for text/binary mounts
5051 add warnings about empty setup directory, root installs, etc
5053 2000-05-24 DJ Delorie <dj@cygnus.com>
5055 * tar.c: New file; built-in tar using zlib.
5056 * tar.h: New file; header for same.
5057 * ctar.c: New file; test program for same.
5058 * Makefile.in: add built-in tar, remove tar.exe and gzip.exe
5059 * path.c (pathcat): convert slashes and canonicalize, instead of aborting
5060 * setup.c (tarx): add support for built-in tar
5061 (main): accept unix-style slashes, check root dir for drive letters,
5062 warn about installing in /, make sure cwd is empty for internet installs,
5063 defer mounts to end of install, support built-in tar.
5065 Fri May 19 23:44:37 2000 Christopher Faylor <cgf@cygnus.com>
5067 Fix compiler warnings throughout.
5068 * pkg.c (init_pkgs): Make static 'stuff' global_pkgstuff for use in
5070 * setup.c: Make 'root' global.
5071 (istargz): Return pointer to "stem" of matched .tar.gz file.
5072 (tarx): Special case cygwin-20000301 to == cygwin-1.1.0.tar.gz. Remove
5073 bogus check_for_installed check.
5074 (recurse_dirs): Add preliminary support for .bat file execution.
5075 (create_uninstall): Eliminate unneeded parameter.
5076 (do_start_menu): Ditto.
5078 (get_pkg_stuff): Ditto. Check for currently installed cygwin by
5079 scanning for the version number. Eliminate unneeded argument to
5081 (getdownloadsource): Add 'name' to list of names rather than url.
5082 (main): Eliminate unneeded argument in get_pkg_stuff. Eliminate
5083 unneeded argument in mkmount and do_start_menu.
5085 2000-05-18 DJ Delorie <dj@cygnus.com>
5087 * setup.c (optionprompt): allow multi-column, clean up message
5088 about more options, be more robust about user input.
5089 (getdownloadsource): make the mirror URL a macro.
5090 (main): do mounts after done prompting user.
5092 Tue May 2 00:56:41 2000 Christopher Faylor <cgf@cygnus.com>
5094 * setup.c (cleanup): Inverse order of deletion stands a better chance
5095 of deleting cygpath.exe. Still seems to suffer from occasional races,
5097 (cleanup_on_signal): Perform convoluted dance to accomodate win95 and
5099 (output_file): Defend against an unlikely handle leak.
5100 (main): Don't set up signal handling until we have something special to
5103 Mon May 1 17:56:32 2000 Christopher Faylor <cgf@cygnus.com>
5105 * path.c (kill_cygpath): Delete function.
5106 (exit_cygpath): Make more defensive so that it can be called at any
5108 (cygpath_pipe): Don't set up signal here. Do it in main().
5109 * setup.c (istargz): New function.
5110 (recurse_dirs): Look for *.gz pattern rather than *tar.gz since *tar.gz
5111 inexplicably fails on samba mounted partitions. Use istargz to match
5113 (processdirlisting) Use istargz to match tar.gz tail.
5114 (cleanup): Renamed from filedel.
5115 (cleanup_on_signal): New function. Called on CTRL-C.
5116 (main): Record handle of main thread so that it can be suspended when
5117 CTRL-C occurs. Set up cleanup_on_signal signal handler.
5119 Mon May 1 11:05:07 2000 Christopher Faylor <cgf@cygnus.com>
5121 * setup.c (do_start_menu): Don't concatenate paths to already built
5124 Sun Apr 30 22:37:34 2000 Christopher Faylor <cgf@cygnus.com>
5126 * path.c (exit_cygpath): Wait for subprocess to exit before returning.
5127 (cygpath_pipe): Don't call exit_cygpath. Let main atexit routine do
5129 * pkg.c (init_pkgs): Accept root argument. Make registry key "cygwin
5131 * setup.c (filedel): Call exit_cygpath here so that we can be assured
5132 that cygpath subprocess has died. This allows us to delete cygpath.exe
5134 (optionprompt): Initialize response to -1 so that second screen of
5135 mirrors will appear.
5136 (get_pkg_stuff): Don't attempt to use HKCLU. Pass root to init_pkgs.
5137 * setup.h: Reflect init_pkgs prototype change.
5139 Sat Apr 29 23:53:30 2000 Christopher Faylor <cgf@cygnus.com>
5141 * pkg.c (init_pkgs): Accept an argument to control what root registry
5143 * setup.c (get_pkg_stuff): Use HKCLU registry key if default fails.
5144 * setup.h: Reflect init_pkgs prototype change.
5146 Sat Apr 29 23:27:14 2000 Christopher Faylor <cgf@cygnus.com>
5148 * error.c (winerror): Respond to gcc warning.
5149 * path.c (cygpath_pipe): Ditto.
5150 * setup.c (filedel): Call sa_cleanup on deleteme.
5151 (create_shortcut): Coerce argument to eliminate compiler warning.
5152 (tarx): Use installed version of cygwin1.dll, overriding tar file name.
5153 (refmatches): New function. Tests if ref is contained in a list of
5154 packages to install.
5155 (filematches): New function. Tests if filename matches one of a list
5156 of packages to install.
5157 (recurse_dirs): Accept list of packages to install. Generalize tar.gz
5158 test to accomodate _tar.gz.
5159 (prompt): Ensure that stdout is flushed prior to asking for input.
5160 (findhref): Initialize variables to quiet a compiler warning.
5161 (processdirlisting): Accept list of packages to install. Special case
5162 cygwin tar file version number.
5163 (downloaddir): Accept list of packages to install.
5164 (downloadfrom): Ditto.
5165 (create_uninstall): Eliminate unneeded variables. Quote arguments to
5167 (do_start_menu): Don't create uninstall bat file if updating or user
5168 specified a list of packages.
5169 (mkmount): Eliminate unneeded variables.
5170 (get_pkg_stuff): New function. Checks for previous unversioned
5172 (main): Accept -u and -f options and package names on the command line.
5173 Use get_pkg_stuff to initialize package information. Umount /etc.
5174 Call recurse_dirs and downloadfrom with list of package to install.
5175 Ensure that all /usr/local directories are created. Output
5176 installation time to setup.log.
5177 * setup.h: Add some prototypes.
5178 * xsystem.c (xcreate_process): Eliminate unneeded variable.
5180 Sat Apr 29 12:43:08 2000 Christopher Faylor <cgf@cygnus.com>
5182 * setup.c (optionprompt): Don't overlap display of already seen options
5184 (geturl): Print name of site which we're connecting to rather than "ftp
5186 (processdirlisting): Avoid URLs that contain a /. or ./ . Is this
5187 test too simplistic?
5188 (do_start_menu): Use pathcat to build path to <root>\bin to avoid
5189 problems when user chooses x:\ as their root.
5190 (main): For now, default to "non-update" mode. Allow -u option to
5193 Sat Apr 29 00:26:06 2000 Christopher Faylor <cgf@cygnus.com>
5196 * setup.c (tarx): Skip already installed or older packages. Report
5197 when a package has been updated.
5198 (processdirlisting): Skip already installed or older packages.
5199 (main): Detect -f option for forced installation. Initialize pkg stuff
5201 * setup.h: Add pkg definitions.
5203 Thu Apr 27 14:21:30 2000 Christopher Faylor <cgf@cygnus.com>
5205 * setup.c (findhref): Return NULL on empty string. Eat any trailing
5207 (processdirlisting): Attempt to limit recursively processing the same
5210 Thu Apr 27 11:42:23 2000 Christopher Faylor <cgf@cygnus.com>
5212 * setup.c (filedel): New function.
5213 (output_file): Keep track of files extracted from setup.exe for
5214 subsequent deletion.
5215 (tarx): Close process handle of child tar process or suffer handle
5217 (getdownloadsource): Close mirror file so that it can be unlinked.
5218 (processdirlisting): Return total number of files extracted.
5219 (main): Initialize array of files to delete. Ensure that files are
5220 closed on exit. Make the directory that setup.exe is started from ==
5221 the directory where temporary files are placed. Issue an error if no
5222 files were found to download.
5223 * xsystem.c (xcreate_process): Close the thread handle. Close the
5224 process handle if we waited for it to exit.
5226 Thu Apr 27 09:54:19 2000 Christopher Faylor <cgf@cygnus.com>
5228 * setup.c (main): Change version number output.
5230 Thu Apr 27 09:23:17 2000 Christopher Faylor <cgf@cygnus.com>
5232 * setup.c (tarx): Use full path name to tar executable.
5233 (main): Build full pathname to tar executable. Create /usr/local/etc
5236 Wed Apr 26 22:16:57 2000 Christopher Faylor <cgf@cygnus.com>
5238 * setup.c (findhref): Change method for scanning for href= to choose
5239 the last one on the line. This is still not foolproof and probably
5240 will need to be changed eventually. Don't abort if no "size" field is
5242 (processdirlisting): Fix boolean algebra.
5244 Wed Apr 26 01:10:39 2000 Christopher Faylor <cgf@cygnus.com>
5246 * main.c (tarx): Add some code for future task of unmounting
5247 directories encountered in tar file.
5249 Sat Apr 22 16:37:03 2000 Christopher Faylor <cgf@cygnus.com>
5251 * setup.c (findhref): Decode file size, when appropriate.
5252 (needfile): New function. Returns 1 when file should be
5254 (processdirlisting): Always download if file size does not
5255 match. Prompt when download fails for some reason.
5256 (getdownloadsource): Accomodate findhref argument changes.
5258 Sat Apr 22 15:13:42 2000 Christopher Faylor <cgf@cygnus.com>
5260 Throughout, use global session handle rather than reinitializing for
5261 each connect. Don't pass session as an argument to setup.c functions.
5262 * setup.c (geturl): Only issue "Connecting to.." message when using
5263 http or first time for ftp since subsequent connections will be fast.
5264 (processdirlisting): Allocate space for "N" when user has specified
5265 "N"ever option so that it can be subsequently freed.
5266 (main): Abort if we can't get the list of mirrors.
5268 Thu Apr 20 16:41:42 2000 Christopher Faylor <cgf@cygnus.com>
5270 * setup.c (main): Umount /bin and /lib.
5272 Wed Apr 19 13:34:44 2000 Christopher Faylor <cgf@cygnus.com>
5274 * setup.c (main): Create an empty /var/run/utmp.
5276 Tue Apr 18 19:16:56 2000 Christopher Faylor <cgf@cygnus.com>
5278 * Makefile.in: Add umount to list of files to include in setup.exe.
5279 * setup.c (xumount): New function for unmounting directories.
5280 (main): Unmount /usr.
5281 (mkmount): Unmount "unix directory" before trying to figure out where
5282 to create the directory.
5284 Tue Apr 18 17:28:55 2000 Christopher Faylor <cgf@cygnus.com>
5286 * setup.c (mkmount): Use xcreate_process to start mount process,
5288 (main): Don't do buffering on stdout or prompts won't be displayed
5289 correctly if running in a cygwin shell with CYGWIN=tty.
5291 Tue Apr 18 15:35:19 2000 Christopher Faylor <cgf@cygnus.com>
5293 * setup.c (main): Remove the CYGWIN environment variable before
5294 starting any cygwin programs.
5296 Mon Apr 17 19:20:52 2000 Vadim Egorov <egorovv@mailandnews.com>
5298 * setup.c (geturl): Use alternative method for finding filename part of
5300 (processdirlisting): Accomodate strange output from non-MS ftp proxy.
5301 (downloaddir): Unlink file containing dir listing.
5302 (downloadfrom): Ditto.
5304 Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
5306 * setup.c (main): Disallow running setup.exe from the "root".
5308 Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
5310 Use "warning" function, where appropriate, to output warnings.
5311 * setup.c (warning): New function -- outputs warning to console and log
5313 (tarx): Fix index used to reset file protection.
5314 (main): Open the log file earlier so that more stuff can be sent to it.
5316 Sat Apr 15 20:05:33 2000 Christopher Faylor <cgf@cygnus.com>
5318 * setup.c (processdirlisting): Make "N" option a little less aggressive.
5320 Fri Apr 14 11:11:29 2000 Christopher Faylor <cgf@cygnus.com>
5322 * setup.c (tarx): Wait to after tar has completed to reset protections
5323 or suffer races with tar process.
5325 Thu Apr 13 12:51:19 2000 Christopher Faylor <cgf@cygnus.com>
5327 * Makefile.in: Eliminate duplicate -nostdinc from CFLAGS.
5328 * setup.c (create_uninstall): Create the uninstall .bat file in the
5329 "root" so that we can remove the /bin directory. Add bin\cygwin.bat to
5330 list of files to be deleted. Fix directory detection for determining
5331 when to use 'rmdir'.
5332 (do_start_menu): Add /usr/local/bin to the path.
5333 (main): Add slop to files.array allocation so that we don't have to
5334 worry about reallocating the array when it grows too large when doing
5335 some trivial "pushes". Add /tmp and /usr/local/{bin,lib} to list of
5338 Thu Apr 13 01:59:44 2000 Christopher Faylor <cgf@cygnus.com>
5340 * setup.c (processdirlisting): Fix handling of "A" for "A"lways
5343 Thu Apr 13 01:11:45 2000 Christopher Faylor <cgf@cygnus.com>
5345 * path.c (kill_cygpath): New cleanup function.
5346 (exit_cygpath): New cleanup function.
5347 (cygpath_pipe): New function. Sets up cygpath in the background for
5348 translating filenames.
5349 (pathcvt): Use background cygpath for file translation.
5350 * setup.c (tarx): New function. Called to extract tar files, capture
5351 logging output, and translate it to Windows format.
5352 (recurse_dirs): Use 'tarx' function to extract files.
5353 (create_uninstall): Use file list built up by tarx rather than reading
5355 (mkmount): Add ability to mount root.
5356 (main): Track elapsed install time. Mount root.
5357 * starry.h: Add index field to strarry for tracking of tarx's usage of
5359 * xsystem.c (xcreate_process): Return proces handle when not waiting.
5361 Mon Apr 10 22:44:56 2000 Christopher Faylor <cgf@cygnus.com>
5364 (pathfp): New function. Preliminary work for new -f cygpath
5366 * Makefile.in: Add new file.
5367 (pathcvt): Move to new file.
5371 * setup.c (processdirlisting): Always open file in text mode.
5372 (create_uninstall): Ditto.
5373 (getdownloadsource): Ditto.
5376 Mon Apr 10 20:33:40 2000 Christopher Faylor <cgf@cygnus.com>
5378 * xsystem.c: New file.
5379 * Makefile.in: Accomodate new file.
5380 * setup.c (xsystem): Move to new file.
5381 (recurse_dirs): Accept handle to output log file. Don't use ">"
5382 redirection to trap tar output. Use supplied handle instead.
5383 (create_uninstall): Accept FILE pointer to opened log file. Don't
5384 unlink log file here.
5385 (do_start_menu): Accept FILE pointer to pass to create_uninstall.
5386 (main): Open log file here and pass it to various functions. Unlink
5389 Mon Apr 10 17:15:52 2000 Christopher Faylor <cgf@cygnus.com>
5391 Change occurrences of .usr.bin to .bin throughout.
5392 * setup.c (geturl): Increase number of retries to 20. Let user know
5393 what's going on during long connects.
5394 (processdirlisting): Accept "A"lways and "N"ever as update options.
5395 (create_uninstall): Load cygwin1.dll from the current directory rather
5397 (main): Add some expository text.
5399 Sun Apr 9 20:59:15 2000 Christopher Faylor <cgf@cygnus.com>
5401 * Makefile.in: Change method for compressing cygwin1.dll to avoid
5402 creating a cygwin1.dll in the current directory. Ensure the addition
5403 of -nostdinc to MINGW_CFLAGS.
5405 Sun Apr 9 02:15:47 2000 Christopher Faylor <cgf@cygnus.com>
5407 * Makefile.in: Augment clean target.
5409 Fri Apr 7 17:04:02 Ron Parker <rdparker@sourceware.cygnus.com>
5411 * README: Added info about non-working mingw implementation
5412 * gzip.exe.gz: Replace with a version from the same build as the other
5414 * tar.exe.gz: Replace with a version from the same build as the other
5416 * mount.exe.gz: Add to repository until, mingw can build setup.
5417 * cygpath.exe.gz: ditto
5418 * cygwin1.dll.gz: ditto
5419 * setup.c: Overwrite /bin and /lib mounts. Generate working shortcut
5420 for Win9x. Display only a screenfull of options at a time. Call all
5421 tools with an absolute path.
5422 * setup.dsp: Restore the carriage returns, MS Developer Studio needs
5427 Thu Apr 6 19:15:27 2000 Christopher Faylor <cgf@cygnus.com>
5429 * Makefile.in: Add "-nostdinc" to regular CFLAGS. Add target to grab
5430 cygwin1.dll from ../cygwin subdirectory.
5431 * gzip.exe.gz: Update.
5432 * tar.exe.gz: Update.
5434 Wed Apr 5 10:52:08 2000 Christopher Faylor <cgf@cygnus.com>
5436 * Makefile.in: Use ZLIB variable as a target.
5438 Sat Apr 1 22:49:09 2000 Christopher Faylor <cgf@cygnus.com>
5440 * Makefile.in: Eliminate traces of cygwinisms. Don't link with
5441 libmsvcrt.a. It's unneeded. Build .rc file on the fly from various
5443 * configure.in: Locate correct objcopy.
5444 * configure: Regenerate.
5446 Sat Apr 1 20:48:09 2000 Christopher Faylor <cgf@cygnus.com>
5448 * Makefile.in: New file.
5449 * configure.in: New file.
5450 * configure: New file.
5451 * zlib/Makefile.am: New file.
5452 * zlib/configure.in: New file.
5453 * zlib/aclocal.m4: New file.
5454 * zlib/acinclude.m4: New file.
5455 * zlib/configure: Regenerate from configure.in.
5456 * zlib/Makefile.in: Regenerate from Makefile.am