Robert Collins [Wed, 19 Mar 2003 00:14:46 +0000 (00:14 +0000)]
2003-03-19 Robert Collins <rbtcollins@hotmail.com>
* configure.in: Bump version number.
* Makefile.am: Add DefaultFormatter.h to installed files.
* src/OptionSet.cc (OptionSet::ParameterUsage): Use new
default DefaultFormatter to format parameters.
* include/getopt++/OptionSet.h: Update copyright.
* include/getopt++/DefaultFormatter.h: Format the help from an Option.
* tests/testoption.cc: Include a -h|--help option to test help
formatting.
Insert copyright statement.
* tests/optioniterator.cc: Insert copyright statement.
Max Bowsher [Tue, 18 Mar 2003 22:43:15 +0000 (22:43 +0000)]
2003-03-18 Igor Pechtchanski <pechtcha@cs.nyu.edu>
* postinstall.cc (do_postinstall): Filter out '*.done'.
* FilterVisitor.h: New header file. Declare the
FilterVisitor, Filter, and ExcludeNameFilter classes.
* FilterVisitor.cc: New file. Implement FilterVisitor,
Filter, and ExcludeNameFilter.
* String++.h (String::matches): New instance function.
* String++.cc (String::matches): Implement.
(strmatch) Import and adapt for <buf,len> strings.
* Makefile.am (setup_SOURCES): Add FilterVisitor.cc and
FilterVisitor.h to value.
Max Bowsher [Tue, 18 Mar 2003 14:53:09 +0000 (14:53 +0000)]
2002-03-18 Max Bowsher <maxb@ukf.net>
* LogFile.cc (LogFile::exit): Use CRT exit() instead of ExitProcess().
Use passed exit_code even if been_here.
Remove incorrect _CYGWIN_ preprocessor conditional.
Robert Collins [Tue, 18 Mar 2003 10:24:14 +0000 (10:24 +0000)]
2003-03-18 Robert Collins <rbtcollins@hotmail.com>
* include/getopt++/OptionSet.h (OptionSet): Convert to use a vector.
* src/OptionSet.cc: Convert array to vector use throughout.
(OptionSet::optionsInSet): Implement external access to the available
options.
Robert Collins [Mon, 17 Mar 2003 22:23:33 +0000 (22:23 +0000)]
2003-03-16 Robert Collins <rbtcollins@hotmail.com>
* package_db.h (PackageDBConnectedIterator): Typedef for connected loop detection collection iterator.
* package_db.cc (ConnectedLoopDetector): An implementation of R.E. Tarjans strongly connected set visitor algorithm.
* postinstall.cc (do_postinstall): Use the new iterator for visiting postinstall scripts.
2003-03-16 Robert Collins <rbtcollins@hotmail.com>
* install.cc: Introduce Installer class.
(init_dialog): Rename to Installer::initDialog.
(progress): Rename to Installer::progress.
(standard_dirs): Rename to Installer::StandardDirs.
(uninstall_one): Rename to Installer::uninstallOne.
(replace_one): Rename to Installer::replaceOne.
(log_ror_failure): Rename to Installer::replaceOnRebootFailed.
(log_ror_success): Rename to Installer::replaceOnRebootSucceeded.
(install_one_source): Rename to Installer::installOneSource.
Note script files as they are installed.
* package_version.cc (packageversion::addScript): Implement.
(packageversion::scripts): Implement.
* package_version.h (packageversion::addScript): Record the presence of a script.
* script.h (Script): New class to track scripts.
* postinstall.cc (do_postinstall): Iterate through the package listed scripts before searching for scripts.
* String++.cc (String::substr): Second argument needed to be signed.
* String++.h (String::substr): Second argument needed to be signed.
Max Bowsher [Fri, 14 Mar 2003 00:10:53 +0000 (00:10 +0000)]
2003-03-14 Igor Pechtchanski <pechtcha@cs.nyu.edu>
* install.cc (install_one_source): Add logging for successful
replace-on-reboot scheduling. Factor out duplicate code.
Set rebootneeded on Win9x.
(log_ror_failure): New static function.
(log_ror_success): New static function.
Robert Collins [Wed, 12 Mar 2003 22:15:25 +0000 (22:15 +0000)]
2003-03-13 Robert Collins <rbtcollins@hotmail.com>
* install.cc (do_install_thread): Use a query method rather than temp variable do_skip.
2003-03-09 Pavel Tsekov <ptsekov at gmx dot net>
* install.cc (do_install_thread): Use IDS_SKIP_PACKAGE
instead of IDS_CORRUPT_PACKAGE when asking the user to take
action if the hash verification check fails for a source package.
Do not increase the value of 'total_bytes' variable if the
user chooses to skip over a package, which failed the hash
verification.
Robert Collins [Mon, 10 Mar 2003 08:50:16 +0000 (08:50 +0000)]
2003-03-10 Robert Collins <rbtcollins@hotmail.com>
* Exception.h: Add a logic error exception id.
* Makefile.am: Add new sources.
* UserSettings.cc: New file.
* UserSettings.h: New file.
* UserSetting.cc: New file.
* UserSetting.h: New file.
* site.h: Add a SiteSetting as example of a UserSetting.
* site.cc (ChosenSites): Add a instance of SiteSetting to trigger registration.
Robert Collins [Sun, 9 Mar 2003 02:17:49 +0000 (02:17 +0000)]
2003-03-09 Robert Collins <rbtcollins@hotmail.com>
* package_version.cc (_defaultversion::pick(bool)): Override this and do nothing.
(packageversion::pick(bool): Use a mutator function rather than direct member access.
* package_version.h (_packageversion::pick(bool)): Move method from _packageversion.
Robert Collins [Sun, 9 Mar 2003 01:39:42 +0000 (01:39 +0000)]
2003-02-16 Pavel Tsekov <ptsekov@gmx.net>
* install.cc (install_one_source): Remove the MD5 verification
code.
Delay the creation of the package listing file.
(do_install_thread): Check the hashes for packages which need
to be installed before the uninstall step. Allow the user to
skip over packages, which fail the hash verification.
(md5_one): Define new function.
* res.rc (IDS_SKIP_PACKAGE): New string resource.
* resource.h (IDS_SKIP_PACKAG): New macro definition.
Robert Collins [Sun, 9 Mar 2003 01:28:52 +0000 (01:28 +0000)]
2003-02-16 Pavel Tsekov <ptsekov@gmx.net>
* Exception.h: Declare new constructor.
(Exception::_message): Change the type from 'const char *' to
'class String'.
(Exception::~Exception): Implement destructor (make gcc shut up).
* Exception.cc: Implement new constructor.
(Exception::what): Use String::cstr_oneuse ().
* download.cc (validateCachedPackage): Use the constructor, which
takes String& as its second argument, when throwing objects
of type Exception.
(check_for_cached): Ditto.
* install.cc (install_one_source): Ditto.
Max Bowsher [Fri, 7 Mar 2003 22:25:31 +0000 (22:25 +0000)]
2003-03-05 Max Bowsher <maxb@ukf.net>
* netio.cc (save_dialog): Allocate an empty string if the password is
null, so that an empty password is accepted elsewhere in setup.
(check_if_enable_ok): An empty password is OK.
Max Bowsher [Wed, 5 Mar 2003 00:53:05 +0000 (00:53 +0000)]
2003-03-05 Brian Keener <bkeener@thesoftwaresource.com>
* PickView.cc (PickView::views): Add two new views for Skipped
packages and Installed Packages not requiring update.
(PickView::set_headers () ): Ditto.
(PickView::clear_view (void) ): Ditto.
(PickView::views::caption () ): Add two new captions for the new
views added for Skipped and Installed Packages.
(PickView::scroll () ): Modify Scroll Bar property to Disable
instead of disappearing when there is nothing to Scroll.
* PickView.h: Add two new views for Skipped packages and Installed
packages to public class view.
* choose.cc (list_click () ): Modify Scroll Bar property to Disable
instead of disappearing when there is nothing to Scroll.
(listview_proc () ): Ditto.
(set_view_mode): Add two new views for Skipped Packages and Installed
Packages not requiring update. Modify Scroll Bar property to Disable
instead of disappearing when there is nothing to scroll.
* res.rc (IDD_CHOOSE): Reposition Radio Buttons, View Selection
Button and View Button Caption to make room for longer captions.
Max Bowsher [Fri, 28 Feb 2003 22:31:28 +0000 (22:31 +0000)]
2003-02-28 Pierre Humblet <pierre.humblet@ieee.org>
* main.cc (set_default_dacl): Replace with set_default_sec.
(set_default_sec): Attempt to change the default group to
Users or Administrators if it is None, in addition to setting
Everyone in the default DACL.
(main): Call set_default_sec instead of set_default_dacl.
Max Bowsher [Wed, 15 Jan 2003 22:29:16 +0000 (22:29 +0000)]
2003-01-15 Max Bowsher <maxb@ukf.net>
* mkdir.cc [_CYGWIN_]: Implement what was pseudocode.
* io_stream.h [__CYGWIN__]: Don't typedef ssize_t.
* proppage.h: Include "win32.h" instead of <windows.h>.
Robert Collins [Tue, 26 Nov 2002 12:11:35 +0000 (12:11 +0000)]
2002-11-25 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
* window.h (Window::GetWindowRect): New method declaration.
(Window::GetClientRect): Ditto.
(Window::MoveWindow): Ditto.
(Window::ScreenToClient): Ditto.
* window.cc (REFLECTION_INFO): Remove.
(ReflectionInfo): Remove.
(Window::FirstWindowProcReflector): Use the WM_NCCREATE message instead
of the horrid REFLECTION_INFO hack to hook the Window instance to the
HWND instance.
(Window::WindowProcReflector): Use GetWindowLongPtr() now that it's
available.
(Window::Create): Change to use new WM_NCCREATE reflection procedure
above.
(Window::GetWindowRect): New method.
(Window::GetClientRect): New method.
(Window::MoveWindow): New method.
(Window::CenterWindow): Use new methods, also specify "::" for some non-
member functions with the same names.
(Window::ScreenToClient): New method.
Robert Collins [Mon, 25 Nov 2002 21:15:05 +0000 (21:15 +0000)]
2002-11-26 Robert Collins <rbtcollins@hotmail.com>
* IniDBBuilderPackage.cc (IniDBBuilderPackage::~IniDBBuilderPackage):
Sort the packages db once all the new packages have been added.
* IniDBBuilderPackage.h (IniDBBuilderPackage::~IniDBBuilderPackage):
Declare this.
Robert Collins [Mon, 25 Nov 2002 13:26:06 +0000 (13:26 +0000)]
2002-11-26 Robert Collins <rbtcollins@hotmail.com>
* choose.cc (ChooserPage::OnNext): Remove extracted comment.
* package_version.cc (processOneDependency): Return once selecting
a package (bugfix to prevous rework).
Log if the default trust fails the package specification.
Robert Collins [Mon, 25 Nov 2002 00:41:25 +0000 (00:41 +0000)]
2002-11-25 Robert Collins <rbtcollins@hotmail.com>
* AntiVirus.cc: New file.
* AntiVirus.h: Ditto.
* LogFile.cc: Include AntiVirus.h for class definition.
(LogFile::exit): Trigger AntiVirus::AtExit().
* MakeFile.am(setup_SOURCES): Add AntiVirus files.
* autoload.c: Declare Service Control Manager related API's.
* main.cc: Include AntiVirus.h for class definition.
(main): Add the AntiVirus page in.
* res.rc: Define IDD_VIRUS.
* resource.h: Define IDD_VIRUS related control ID's.
* splash.h: Override OnNext.
* splash.cc: Only show AntiVirus page when one has been detected.
* source.cc: Ditto.
Robert Collins [Sun, 24 Nov 2002 22:24:38 +0000 (22:24 +0000)]
2002-11-25 Robert Collins <rbtcollins@hotmail.com>
* package_version.cc (DependencyProcessor): Create convenience class.
(select): Extract version selection method.
(processOneDependency): Check for a satisfactory trusted version
first.
Robert Collins [Sun, 10 Nov 2002 08:09:55 +0000 (08:09 +0000)]
2002-11-10 Robert Collins <rbtcollins@hotmail.com>
* src/getopt.c: Only use our cdefs.h if the OS doesn't have one.
* Makefile.am: Only compile our getopt.h if the OS doesn't provide
getopt.h.
* configure.in: Ditto.
* tests/testoption.cc: Update for GCC-3.
Robert Collins [Sun, 10 Nov 2002 03:56:05 +0000 (03:56 +0000)]
2002-11-10 Robert Collins <rbtcollins@hotmail.com>
* main.cc (main): Use the factory for LogFile.
* String++.cc: Update to use sstream.
(String::String): Use a ostringstream for libC++ 3.2.
* LogFile.h (LogFile): Make createLogFile static.
Robert Collins [Sun, 10 Nov 2002 03:35:06 +0000 (03:35 +0000)]
2002-11-10 Robert Collins <rbtcollins@hotmail.com>
* compress_bz.cc: Don't include bzlib.h directly, the compress_bz.h
header includes it.
2002-11-04 Max Bowsher <maxb@ukf.net>
* compress_bz.h: #undef small before including bzlib.h - if we are
going to hide the fact that we are _WIN32 from bzlib, then we need
to #undef small for it as well (bad windows.h clash).
Robert Collins [Sat, 9 Nov 2002 14:47:54 +0000 (14:47 +0000)]
2002-11-10 Robert Collins <rbtcollins@hotmail.com>
* localdir.cc: Update the extern LogFile to be a pointer.
(save_local_dir): Change . to -> for the above.
* main.cc (theFile): Change from an instance to a pointer.
(main): Change . to -> for the above.
Robert Collins [Sat, 9 Nov 2002 14:32:56 +0000 (14:32 +0000)]
2002-11-10 Robert Collins <rbtcollins@hotmail.com>
* LogFile.cc: use 'std::' where needed throughout.
(LogFile::createLogFile): Implement a factory for LogFile.
(LogFile::LogFile): Update for use with the factory, and to
handle the latest g++ library changes.
(LogFile::operator()): Ditto.
(LogFile::endEntry()): Ditto.
* LogFile.h: Ditto.
* LogSingleton.cc: Ditto.
* LogSingleton.h: Ditto.
Robert Collins [Mon, 15 Jul 2002 13:29:38 +0000 (13:29 +0000)]
2002-07-15 Robert Collins <rbtcollins@hotmail.com>
* package_version.h (packageversion::sources): Support multiple files in
a single package version.
* package_version.cc (_packageversion::accessible): Ditto.
(packageversion::source): Ditto.
Robert Collins [Sat, 13 Jul 2002 00:46:54 +0000 (00:46 +0000)]
2002-07-13 Robert Collins <rbtcollins@hotmail.com>
* IniDBBuilder.cc (IniDBBuilder::buildBeginBuildDepends): Implement.
(IniDBBuilder::buildBeginBinary): Implement.
* IniDBBuilder.h (IniDBBuilder::buildBeginBuildDepends): Declare.
(IniDBBuilder::buildBeginBinary): Ditto.
* IniDBBuilderPackage.cc (IniDBBuilderPackage::buildBeginBuildDepends):
Implement.
(IniDBBuilderPackage::buildBeginBinary): Ditto.
* IniDBBuilderPackage.h (IniDBBuilderPackage::buildBeginBuildDepends):
Declare.
(IniDBBuilderPackage::buildBeginBinary): Ditto.
* inilex.l: Recognise Build-Depends-Indep, [,], >, < and remove
T_UNKNOWN.
* iniparse.y: Full support for parsing a debian Sources file in-line in
setup.ini.
* package_version.cc (packageversion::binaries): Implement.
* package_version.h (packageversion::binaries): Declare list of what
packages are created from a given source package.
(_packageversion::binaries): Ditto.
Robert Collins [Sun, 7 Jul 2002 15:35:04 +0000 (15:35 +0000)]
2002-07-08 Robert Collins <rbtcollins@hotmail.com>
* install.cc (NoReplaceOnReboot): New command line option to prevent
replacing in use files.
(install_one_source): Check the option and use it.
* README: Update TODO lists.
Robert Collins [Sun, 7 Jul 2002 15:14:50 +0000 (15:14 +0000)]
2002-07-08 Robert Collins <rbtcollins@hotmail.com>
* PickCategoryLine.cc: Change bucket to use STL container syntax
throughout.
(PickCategoryLine::paint): Use new Category type syntax.
* PickCategoryLine.h: Use STL vectors rather than custom containers
throughout.
* IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageCategory):
Use new add_category syntax.
* PickView.cc (PickView::insert_pkg): Use new Category type syntax.
(PickView::insert_category): Ditto.
(PickView::init_headers): Ditto.
* category.cc: Trim obsolete code.
* category.h: Replace interconnecting class with a typedef to
facilitate leveraging STL maps.
* choose.cc (fill_missing_category): Use updated pkg.add_category
syntax.
(default_trust): Use new Category type syntax.
(set_view_mode): Ditto.
(create_listview): Ditto.
* package_db.cc (categories): Ditto.
* package_db.h: Update headers list to include needed headers.
(packagedb::categories): Replace custom list with STL map.
* package_meta.cc: Use new Category type syntax throughout.
(packagemeta::add_category): Implement new syntax.
* package_meta.h: Remove commented out source.
(packagemeta::add_category): Update syntax to decouple interface from
packagedb.
Robert Collins [Sat, 6 Jul 2002 13:29:34 +0000 (13:29 +0000)]
2002-07-06 Robert Collins <rbtcollins@hotmail.com>
* PickCategoryLine.h: Include required header list.h.
* PickPackageLine.cc (PickPackageLine::paint): Adjust to use STL
containers for listing of packages per category and vice verca.
* PickView.cc (PickView::insert_pkg): Ditto.
(PickView::insert_category): Ditto.
* String++.h (String::caseless): STL helper to allow trivial containers
of Strings with case insensitive comparisons.
* category.h: Adjust to use STL containers for listing of packages per
category and vice verca.
* choose.cc (fill_missing_category): Ditto.
(default_trust): Ditto.
(ChooserPage::OnNext): Ditto.
* package_meta.cc (CategoryPackage::~CategoryPackage): Remove.
(packagemeta::packagemeta): Adjust for new category list name.
(packagemeta::~packagemeta): Adjust to use STL containers for listing
of packages per category and vice verca.
(packagemeta::set_action): Ditto.
* package_meta.h (CategoryPackage): Remove.
(packagemeta): Adjust to use STL containers for listing of packages per
category and vice verca.
Robert Collins [Fri, 5 Jul 2002 06:30:47 +0000 (06:30 +0000)]
2002-07-05 Robert Collins <rbtcollins@hotmail.com>
* IniDBBuilderPackage.cc (IniDBBuilderPackage::buildPackageSource):
Use STL collections for download site collections.
(IniDBBuilderPackage::add_correct_version): Ditto.
(IniDBBuilderPackage::process_src): Ditto.
* PickPackageLine.cc (PickPackageLine::click): Use the packageversion
accessible() call to abstract package availability.
* choose.cc (scanAVersion): Use STL collections for download site
collections.
* download.cc (check_for_cached): Ditto.
(download_one): Ditto.
* package_meta.cc (packagemeta::set_action): Use the packageversion
accessible() call to abstract package availability.
* package_source.h: Use STL containers rather than custom containers.
(site): Create a == operator to allow STL container use.
(packagesource::sites): Use STL containers rather than custom
containers.
* package_version.cc (_packageversion::accessible): Use STL containers
for download site containers.
Robert Collins [Fri, 5 Jul 2002 05:58:56 +0000 (05:58 +0000)]
2002-07-05 Robert Collins <rbtcollins@hotmail.com>
* LogFile.cc: Use STL containers rather than custom containers.
(filedef): Create == and < operators for STL use.
(files): Convert to an STL set.
(LogFile::setFile): Use STL operations on files.
(LogFile::exit): Ditto.