public inbox for cygwin-apps-cvs@sourceware.org help / color / mirror / Atom feed
From: rbcollins@sources.redhat.com To: cygwin-apps-cvs@sources.redhat.com Subject: setup ChangeLog IniDBBuilder.cc IniDBBuilder.h ... Date: Mon, 01 Jul 2002 13:58:00 -0000 [thread overview] Message-ID: <20020701205856.29170.qmail@sources.redhat.com> (raw) CVSROOT: /cvs/cygwin-apps Module name: setup Changes by: rbcollins@sources.redhat.com 2002-07-01 13:58:55 Modified files: . : ChangeLog IniDBBuilder.cc IniDBBuilder.h IniDBBuilderPackage.cc IniDBBuilderPackage.h Makefile.am Makefile.in PickPackageLine.cc PickView.cc choose.cc cygpackage.cc cygpackage.h desktop.cc download.cc iniparse.y install.cc package_db.cc package_db.h package_meta.cc package_meta.h package_source.h package_version.cc package_version.h Log message: 2002-07-01 Robert Collins <rbtcollins@hotmail.com> * IniDBBuilder.cc (IniDBBuilder::buildPackageRequirement): Remove. * IniDBBuilder.h (IniDBBuilder::buildPackageRequirement): Ditto. * IniDBBuilderPackage.cc: Use the STL algorithms. Change cpv to cbpv throughout. Adjust -> to ., and use the new accessor functions for the same variable throughout. (IniDBBuilderPackage::IniDBBuilderPackage): Initialise new members. (IniDBBuilderPackage::buildPackage): Use new cygpackage syntax, and set an empty source package. (IniDBBuilderPackage::buildPackageInstall): Use the new source member to record an install package. (IniDBBuilderPackage::buildPackageSource): Move source package logic out from process_src, as it now occurs at separate times. (IniDBBuilderPackage::buildPackageRequirement): Remove. (IniDBBuilderPackage::buildSourceName): Use renamed package specifiation accessor for clarity. (IniDBBuilderPackage::buildSourceNameVersion): Ditto. (IniDBBuilderPackage::add_correct_version): Use STL iterators rather than custom code. Remove source package references. (IniDBBuilderPackage::process_src): Remove source package code as it's now handled separately. Set Path information before merging versions, to prevent dangling pointers. * IniDBBuilderPackage.h (IniDBBuilderPackage::buildPackageRequirement): Remove. (IniDBBuilderPackage::cpv): Remove. (IniDBBuilderPackage::cbpv): New generic binary working variable. (IniDBBuilderPackage::cspv): Ditto, but for source packages. (IniDBBuilderPackage::csp): Source package variable for disjoint source packages. * Makefile.am (AM_CFLAGS): Remove -Winline to allow stl set code to compile. If it compiles cleanly in gcc 3.1, then reinstate. * PickPackageLine.cc: Adjust packageversion accessors to the new reference calls. (i.e. -> to .) throughout. (PickPackageLine::paint): Use accessible() for clarity. Use new split out source package logic. (PickPackageLine::click): Ditto. * PickView.cc (PickView::init_headers): Adjust packageversion accessors to the new reference calls. (i.e. -> to .) throughout. Use new split out source package logic. * choose.cc: Don't depend on a specific package type. Adjust packageversion accessors to the new reference calls. (i.e. -> to .) throughout. (set_existence): Use accessible () for clarity. (default_trust): Simplify a little. (scanAVersion): Factored out code from scan_downloaded_files for clarity. (scan_downloaded_files): Factor out inner loop for clarity. (ChooserPage::OnNext): Don't dump the dependency list, it's parsing is robust now!. * cygpackage.cc (createInstance): Use a factory method to create new objects. (cygpackage::cygpackage): Make this private for use by the factory. (cygpackage::setCanonicalVersion): Renamed from set_canonical_version. Remove key usage as it's obsolete. * cygpackage.h (cygpackage): Inherit from _packageversion, not packageversion. (cygpackage::createInstance): New factory. (cygpackage::cygpackage): Make private. * desktop.cc (make_passwd_group): Use new packageversion reference. * download.cc (do_download_thread): Use changeRequested() for clarity. Use new packageversion reference calls. * iniparse.y (REQUIRES): Reuse the packageList code and dump the one-off requires code. * install.cc: Adjust -> to ., and use the new accessor functions for packageversion throughout. * package_db.cc: Adjust -> to ., and use the new accessor functions for packageversion throughout. (packagedb::packagedb): Use the new cygpackage factory. (packagedb::flush): Leverage String to remove buffer overflow chance in sprintf. (packagedb::findBinary): Find a binary meta package that has a version matching a given specification. (packagedb::findSource): Ditto, but for source. * package_db.h (packagedb::findBinary): Declare. (packagedb::findSource): Ditto. * package_meta.cc: Adjust packageversion accessors to the new reference calls. (i.e. -> to .) throughout. Include the package_meta header first to ensure it parses standalone. Use the STL algorithms. (packagemeta::packagemeta): Create a copy constructor to allowing cloning binary package metadata to source package metadata. (packagemeta::~packagemeta): Use the STL coleltion code rather than custom collection code. (packagemeta::add_version): Ditto. (packagemeta::set_installed): Ditto. (packagemeta::SDesc): Ditto. (hasSDesc): Helper function for find_if. (checkForInstalled): Ditto. (checkForUpgradeable): Ditto. (checkForSatisfiable): Ditto. (packagemeta::action_caption): Update for split out source packages. (packagemeta::set_action): Ditto. (packagemeta::set_requirements): Support multi-valued dependency lists - a|b & c|d - with versioned package specifications. (packagemeta::accessible): Helper member to improve abstraction. (packagemeta::sourceAccessible): Ditto. * package_meta.h: Adjust packageversion accessors to the new reference calls. (i.e. "->" to "." and"*" to "" ) throughout. (packagemeta::packagemeta): Declare copy constructor. Remove self initialising members. (packagemeta::set_action): Update parameters for new packageversion. (packagemeta::trustp): Ditto. (packagemeta::versions): Becomes an STL set. * package_source.h (packagesource::Cached): Const correctness change. * package_version.cc: Rewrite the packageversion interface to remove the cygpackage nonvirtual members, and provide a copy by value, pointer semantics reference counting wrapper class to ease use and comparison of packageversions. Change existing packageversion class to _packageversion throughout. (_defaultversion): A trivial concrete class to prevent specialcasing the default constructor for packageversion; (packageversion::packageversion): Implement. (packageversion::~packageversion): Ditto. (packageversion::operator=): Ditto. (packageversion::operator !): Ditto. (packageversion::operator bool): Ditto. (packageversion::operator ==): Ditto. (packageversion::operator !=): Ditto. (packageversion::operator <): Ditto. (packageversion::Name): Ditto. (packageversion::Canonical_version): Ditto. (packageversion::setCanonicalVersion): Ditto. (packageversion::getfirstfile): Ditto. (packageversion::getnextfile): Ditto. (packageversion::SDesc): Ditto. (packageversion::set_sdesc): Ditto. (packageversion::LDesc): Ditto. (packageversion::set_ldesc): Ditto. (packageversion::sourcePackage): Ditto. (packageversion::sourcePackageSpecification): Ditto. (packageversion::setSourcePackageSpecification): Ditto. (packageversion::depends): Ditto. (packageversion::predepends): Ditto. (packageversion::recommends): Ditto. (packageversion::suggests): Ditto. (packageversion::replaces): Ditto. (packageversion::conflicts): Ditto. (packageversion::provides): Ditto. (packageversion::picked): Ditto. (packageversion::pick): Ditto. (packageversion::changeRequested): Ditto. (packageversion::uninstall): Ditto. (packageversion::source): Ditto. (packageversion::accessible): Ditto. (_packageversion::sourcePackage): Ditto. (_packageversion::accessible): Ditto. (_packageversion::changeRequested): Ditto. * package_version.h: Rewrite the packageversion interface to remove the cygpackage nonvirtual members, and provide a copy by value, pointer semantics reference counting wrapper class to ease use and comparison of packageversions. Change existing packageversion class to _packageversion throughout. (Dependency): Remove. (packageversion): New wrapper class. (_packageversion): Renamed from packageversion. (_packageversion::setCanonicalVersion): New method. (_packageversion::sourcePackage): Ditto. (_packageversion::sourcePackageSpecification): Ditto. (_packageversion::setSourcePackageSpecification): Ditto. (_packageversion::changeRequested): Ditto. (_packageversion::bin): Rename to source. (_packageversion::src): Remove. (_packageversion::accessible): New method. (_packageversion::references): Allow reference counting. (_packageversion::sourceVersion): Cached the best-match source package version. Patches: http://sources.redhat.com/cgi-bin/cvsweb.cgi/setup/ChangeLog.diff?cvsroot=cygwin-apps&r1=2.256&r2=2.257 http://sources.redhat.com/cgi-bin/cvsweb.cgi/setup/IniDBBuilder.cc.diff?cvsroot=cygwin-apps&r1=2.3&r2=2.4 http://sources.redhat.com/cgi-bin/cvsweb.cgi/setup/IniDBBuilder.h.diff?cvsroot=cygwin-apps&r1=2.3&r2=2.4 http://sources.redhat.com/cgi-bin/cvsweb.cgi/setup/IniDBBuilderPackage.cc.diff?cvsroot=cygwin-apps&r1=2.4&r2=2.5 http://sources.redhat.com/cgi-bin/cvsweb.cgi/setup/IniDBBuilderPackage.h.diff?cvsroot=cygwin-apps&r1=2.4&r2=2.5 http://sources.redhat.com/cgi-bin/cvsweb.cgi/setup/Makefile.am.diff?cvsroot=cygwin-apps&r1=2.18&r2=2.19 http://sources.redhat.com/cgi-bin/cvsweb.cgi/setup/Makefile.in.diff?cvsroot=cygwin-apps&r1=2.79&r2=2.80 http://sources.redhat.com/cgi-bin/cvsweb.cgi/setup/PickPackageLine.cc.diff?cvsroot=cygwin-apps&r1=2.5&r2=2.6 http://sources.redhat.com/cgi-bin/cvsweb.cgi/setup/PickView.cc.diff?cvsroot=cygwin-apps&r1=2.5&r2=2.6 http://sources.redhat.com/cgi-bin/cvsweb.cgi/setup/choose.cc.diff?cvsroot=cygwin-apps&r1=2.100&r2=2.101 http://sources.redhat.com/cgi-bin/cvsweb.cgi/setup/cygpackage.cc.diff?cvsroot=cygwin-apps&r1=2.11&r2=2.12 http://sources.redhat.com/cgi-bin/cvsweb.cgi/setup/cygpackage.h.diff?cvsroot=cygwin-apps&r1=2.10&r2=2.11 http://sources.redhat.com/cgi-bin/cvsweb.cgi/setup/desktop.cc.diff?cvsroot=cygwin-apps&r1=2.30&r2=2.31 http://sources.redhat.com/cgi-bin/cvsweb.cgi/setup/download.cc.diff?cvsroot=cygwin-apps&r1=2.28&r2=2.29 http://sources.redhat.com/cgi-bin/cvsweb.cgi/setup/iniparse.y.diff?cvsroot=cygwin-apps&r1=2.34&r2=2.35 http://sources.redhat.com/cgi-bin/cvsweb.cgi/setup/install.cc.diff?cvsroot=cygwin-apps&r1=2.48&r2=2.49 http://sources.redhat.com/cgi-bin/cvsweb.cgi/setup/package_db.cc.diff?cvsroot=cygwin-apps&r1=2.19&r2=2.20 http://sources.redhat.com/cgi-bin/cvsweb.cgi/setup/package_db.h.diff?cvsroot=cygwin-apps&r1=2.11&r2=2.12 http://sources.redhat.com/cgi-bin/cvsweb.cgi/setup/package_meta.cc.diff?cvsroot=cygwin-apps&r1=2.25&r2=2.26 http://sources.redhat.com/cgi-bin/cvsweb.cgi/setup/package_meta.h.diff?cvsroot=cygwin-apps&r1=2.16&r2=2.17 http://sources.redhat.com/cgi-bin/cvsweb.cgi/setup/package_source.h.diff?cvsroot=cygwin-apps&r1=2.10&r2=2.11 http://sources.redhat.com/cgi-bin/cvsweb.cgi/setup/package_version.cc.diff?cvsroot=cygwin-apps&r1=2.5&r2=2.6 http://sources.redhat.com/cgi-bin/cvsweb.cgi/setup/package_version.h.diff?cvsroot=cygwin-apps&r1=2.7&r2=2.8
next reply other threads:[~2002-07-01 20:58 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-07-01 13:58 rbcollins [this message] -- strict thread matches above, loose matches on Subject: below -- 2006-04-16 23:07 maxb 2002-06-26 14:35 rbcollins
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20020701205856.29170.qmail@sources.redhat.com \ --to=rbcollins@sources.redhat.com \ --cc=cygwin-apps-cvs@sources.redhat.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).