summaryrefslogtreecommitdiffstats
path: root/pym/portage/dbapi/__init__.py
Commit message (Collapse)AuthorAgeFilesLines
* Package: filter built USE for bug #453400Zac Medico2013-01-231-1/+3
| | | | | The enabled flags must be consistent with implicit IUSE, in order to avoid potential inconsistencies in USE dep matching (see bug #453400).
* Fix default use match for implicit IUSE.v2.2.0_alpha159Zac Medico2013-01-211-4/+12
| | | | | | This will fix bug #453400, which was triggered by inconsistency between the enabled USE and the effective missing_disabled set used in matching logic, due to implicit IUSE.
* Use unicode_literals more.Zac Medico2013-01-181-1/+3
| | | | | This helps to ensure consistent results, regardless of whether we're using Python 2 or Python 3.
* Pass settings to _pkg_str constructor.Zac Medico2012-11-141-2/+5
| | | | Forgotten in commit 0b4e6c27e87e57fac09fa28d3ed1320cb6a83ad9.
* update_dbentry: add parent arg for bug #367215Zac Medico2012-11-131-5/+9
|
* update_ents: use Package._dep_keysZac Medico2012-09-251-2/+2
|
* Add experimental EAPI 5-hdepend support.Ambroz Bizjak2012-09-241-1/+2
|
* Use re.UNICODE for category/package name regexes.Zac Medico2012-09-221-1/+1
| | | | | | | | This only affects r'\w' with Python 2.x, since Python 3 already defaults to re.UNICODE behavior when compiling unicode str objects (unless re.ASCII is specified). If a repository wants to ban unicode categore/package names then we can add a layout.conf setting for that, as discussed in bug #435934.
* Fix "unsatisfied" comment typo.Zac Medico2012-09-161-1/+1
|
* repoman: unsatsified use-default deps, bug 435242Zac Medico2012-09-161-0/+10
|
* Rename slot-abi stuff to refer to slot-operator.Zac Medico2012-08-291-3/+3
| | | | | This makes it consistent with the language in the PMS eapi-5 branch: http://git.overlays.gentoo.org/gitweb/?p=proj/pms.git;a=commit;h=5d6749ac9e5ddc5b1daaad7737b65fa81c6ece47
* EAPI 5: Profile IUSE injectionZac Medico2012-08-291-2/+7
| | | | | See bug #176467 and the PMS patch: http://git.overlays.gentoo.org/gitweb/?p=proj/pms.git;a=commit;h=d9040ab3482af5f790368bac5d053bf1cd760ba8
* _pkg_str: pass in config + metadata with KEYWORDSZac Medico2012-08-241-8/+8
| | | | | This will be needed in order to support stable use.mask/force for bug #431078.
* Propagate EAPI for update_dbentry (bug #426476).Zac Medico2012-07-171-3/+4
|
* slotmove: fix handling for EAPI 4-slot-abiv2.2.0_alpha118Zac Medico2012-07-131-8/+20
| | | | | | | | This is just a really minimal fix, in order to prevent slotmove from behaving incorrectly with packages that use EAPI 4-slot-abi. Any slotmove commands that try so specify a sub-slot are treated as invalid for now, since that will required additional EAPI conditional logic, as reported in bug #426476.
* Add experimental EAPI 4-slot-abi support.Zac Medico2012-06-221-2/+2
| | | | Refer to 4-slot-abi.docbook for a full description.
* dbapi: construct _pkg_str during match on-demandZac Medico2012-06-111-10/+37
|
* Use any() to optimize intersection operations.Zac Medico2012-05-301-9/+8
|
* _pkg_str: validate repo (move code from Package)Zac Medico2012-05-131-2/+0
|
* _pkg_str: add version attribute for comparisonsZac Medico2012-05-131-7/+7
| | | | | This attribute can be passed directly into vercmp, avoiding the need to generate this string many times.
* _pkg_str: add slot and repo attributesZac Medico2012-05-121-4/+10
|
* dbapi: split _match_use from _iter_match_useZac Medico2011-09-241-47/+53
|
* dbapi._iter_match: remove redundant myrepo argsZac Medico2011-06-051-10/+10
| | | | | The myrepo arguments are redundant since the Atom.repo attribute carries the same information.
* Update copyright headers for touched files.Zac Medico2011-01-161-1/+1
|
* Use Atom for stricter portdb.cp_all() validation.Zac Medico2011-01-161-1/+0
|
* dbapi.match: Use IUSE to validate built USEZac Medico2010-12-051-1/+6
|
* fix AttributeError in recent use dep changesZac Medico2010-11-301-1/+3
|
* dbapi: remove redundant missing_enabled/disabledZac Medico2010-11-291-2/+1
|
* dbapi: sync USE match logic with depgraphZac Medico2010-11-291-7/+22
| | | | | This changes the IUSE check to use the unevaluated atom, and fixes some missing_enabled/disabled cases.
* reposyntax: Add support all over the placeSebastian Luther2010-09-261-8/+19
|
* * Replace config._iuse_implicit_re with a callable _iuse_implicit_matchZac Medico2010-08-181-2/+2
| | | | | | | object that simply returns boolean, and update consumers. * Make check_required_use() take a callable for the iuse parameter, and pass in Package.use.is_valid_flag or iuse.__contains__ as appropriate.
* Remove questionable lockfile removal code in dbapi.invalidentry().Zac Medico2010-08-151-9/+1
|
* Implement use dependency defaultsSebastian Luther2010-08-131-3/+5
|
* Tweak global updates handling so that updates from $PORTDIR are appliedZac Medico2010-07-271-6/+15
| | | | | | | | | for all of the following cases: * package is missing repository metadata * package has repository metadata, but the source repository does not have a profiles/updates/ directory * package has repository metadata, but the source repository is not currently accessible via PORTDIR_OVERLAY
* Make dbapi.update_ents() take a dict of {repo_name: list}, since it'sZac Medico2010-07-271-10/+17
| | | | most efficient to process all repos at once.
* Limit repository-wide dbentry updates.Michał Górny2010-07-271-1/+5
| | | | | Update dbentries only when the repository the package comes from matches the repository update comes from.
* Support repository-wide updates.Michał Górny2010-07-271-1/+4
| | | | | | | Support reading repository-wide update files. Apply them as long as the 'repository' for vardb entry matches the repository update is originating from. For world and configuration files, use the best vardb match.
* Make iuse_implicit_re private for now.Zac Medico2010-04-271-1/+1
|
* --update: don't ignore higher versions because of missing IUSESebastian Luther2010-04-271-5/+2
|
* Remove all svn $Id keywords.Zac Medico2010-03-241-1/+0
|
* Fix broken dep_expand import from previous commit.Zac Medico2010-02-251-1/+1
| | | | svn path=/main/trunk/; revision=15467
* Avoid name collision with dep_expand submodule so epydoc won't crash.Zac Medico2010-02-251-2/+2
| | | | svn path=/main/trunk/; revision=15465
* Move dep_expand and cpv_expand into portage.dbapi submodules.Zac Medico2010-02-251-1/+2
| | | | svn path=/main/trunk/; revision=15460
* Deprecate pordbapi.mysettings since the portdbapi.settings alias is nowZac Medico2010-01-311-1/+1
| | | | | | supported by stable portage. svn path=/main/trunk/; revision=15306
* Use catsplit() instead of a regex to generate dbapi._categories. Thanks toZac Medico2009-09-271-6/+3
| | | | | | Marat Radchenko <marat@slonopotamus.org> for this patch. svn path=/main/trunk/; revision=14448
* Use filter() and zip() instead of itertools.ifilter() and itertools.izip() ↵Arfrever Frehtes Taifersar Arahesis2009-09-211-2/+1
| | | | | | | | for compatibility with Python 3. (2to3-3.1 -f itertools -f itertools_imports -nw ${FILES}) svn path=/main/trunk/; revision=14314
* Update imports to import portage.os (with unicode wrappers), and useZac Medico2009-08-111-1/+1
| | | | | | _unicode_encode() and _unicode_decode() where appropriate. svn path=/main/trunk/; revision=14003
* Optimize dbapi._iter_match_use() so that it shares a single compiled regexZac Medico2009-07-061-7/+7
| | | | | | | | for all implicit iuse checks. This avoids lots of expensibe re.compile() calls. Thanks to Marat Radchenko <slonopotamusorama@gmail.com> for the initial patch. svn path=/main/trunk/; revision=13801
* Make dbapi.cp_list() raise NotImplementedError.Zac Medico2009-06-251-1/+1
| | | | svn path=/main/trunk/; revision=13695
* Prepare 117 messages to localization.Arfrever Frehtes Taifersar Arahesis2009-06-141-2/+3
| | | | svn path=/main/trunk/; revision=13639