summaryrefslogtreecommitdiffstats
path: root/pym/_emerge
Commit message (Collapse)AuthorAgeFilesLines
* test_merge_order: test asap PDEPEND (bug #180045)Zac Medico2011-05-251-0/+1
|
* PackageUninstall: use _unmerge_display()Zac Medico2011-05-251-17/+34
| | | | This is preparation for asynchronous support.
* unmerge: split out _unmerge_display() functionZac Medico2011-05-251-20/+44
| | | | | | | This will be useful for adding asynchronous support to the PackageUninstall class, since it will be able to call _unmerge_display() for the display portion, and then do the actual unmerge asynchronously.
* _serialize_tasks: prefer unsatisfied asap childZac Medico2011-05-251-6/+22
| | | | | Optimally, satisfied deps are always merged after the asap nodes that depend on them.
* _add_pkg_dep_string: handle satisfied virt_depZac Medico2011-05-251-0/+11
| | | | | This fixes a problem with the asap LIBC_PACKAGE_ATOM test case for bug #303567.
* _validate_blockers: reference bug 128809Zac Medico2011-05-251-4/+7
|
* Package: add new _gen_hash_key methodZac Medico2011-05-254-16/+39
|
* DepPriority: remove "rebuild" attributeZac Medico2011-05-253-36/+9
| | | | | | | | | | | | | | | | Since the addition of DepPriorityNormalRange and DepPrioritySatisfiedRange in commit bd369956b2a2fbc019a655a372628998499156c0, which solves most cases of bug 199856, the Depriority.rebuild attribute doesn't appear to make any difference. The edges that this attribute differentiates are already naturally differentiated by the fact that the child node of a satisfied buildtime dependency that's not being rebuilt will naturally be identified as a leaf node earlier and removed from the graph, thereby eliminating the edge before there's an opportunity to compare it with a higher priority rebuild edge. The addition of the "optional" attribute (in commit 15476805a156acd11fdaaa19212691e8ee09b309) also plays a role here, since it converts some satisfied buildtime edges to optional edges, thereby reducing their priority.
* Task.__eq__: allow _hash_key as inputZac Medico2011-05-251-1/+3
| | | | This is used by depgraph._pkg() for lookups.
* test_merge_order: test hard blocker resolutionZac Medico2011-05-251-2/+1
|
* Fix grammar in previous commit.Zac Medico2011-05-251-1/+1
|
* depclean: adjust failure message wrt --with-bdepsZac Medico2011-05-251-9/+21
| | | | | We need to be more explicit about using --with-bdeps=y, since this subtlety often leads to confusion.
* Task: optimize == and != _hash_key comparisonZac Medico2011-05-251-2/+8
|
* Add FEATURES=distcc-pump support.MATSUU Takuto2011-05-251-1/+1
| | | | This will fix bug #288597.
* Task: precalculate _hash_valueZac Medico2011-05-253-3/+2
|
* Task: remove unnecessary _get_hash_key() methodZac Medico2011-05-253-27/+11
|
* Package: precalculate _hash_keyMarat Radchenko2011-05-251-4/+3
| | | | | This eliminates an expensive getattr call in _get_hash_key(), which greatly improves depgraph performance on a weak ARM cpu.
* _pkg_visibility_check: if in graph then visibleZac Medico2011-05-251-1/+10
|
* _LockProcess.unlock: assert successful returncodeZac Medico2011-05-251-0/+3
|
* Fix a typo in a comment.Zac Medico2011-05-251-1/+1
|
* depgraph._resolve: use temp set for autounmaskZac Medico2011-05-251-3/+7
|
* display_autounmask: optimize check_if_latestZac Medico2011-05-251-15/+16
|
* test_asynchronous_lock: simulate SIGINT from ttyZac Medico2011-05-251-2/+2
|
* AsynchronousTask: tweak poll() logicZac Medico2011-05-251-2/+3
|
* AsynchronousLock: implement _poll() and testZac Medico2011-05-252-0/+12
|
* BinpkgFetcher: handle AsynchronousLock failureZac Medico2011-05-251-1/+6
|
* EbuildBuildDir: handle AsynchronousLock failureZac Medico2011-05-251-9/+18
|
* _LockProcess: handle process failure moreZac Medico2011-05-251-11/+28
|
* _LockProcess: handle process failure if cancelledZac Medico2011-05-251-3/+10
|
* Fix some typos.Arfrever Frehtes Taifersar Arahesis2011-05-252-2/+2
|
* Use vardbapi.lock() where applicable.Zac Medico2011-05-252-7/+8
|
* --autounmask: Use >= atoms if possibleSebastian Luther2011-05-251-3/+49
| | | | | | | | | If the package is the latest avaiable it now uses >=cat/pkg-ver instead of =cat/pkg-ver. If the package is not the latest, but the latest in its slot, >=cat/pkg-ver:slot is used. In all other case =cat/pkg-ver is used. Rational is that it's more likely that newer versions, added in the future, will work with the same configuration changes as the currently latest version than not.
* preserve-libs: preserve during uninstallZac Medico2011-05-252-2/+6
| | | | | | This will fix bug #286714. The emerge --depclean-lib-check option will now be ignored when FEATURES=preserve-libs is enabled, since any libraries that have consumers will simply be preserved.
* EbuildPhase: extract binpkg env for pkg_pretendZac Medico2011-05-111-1/+1
| | | | This will fix bug #366939.
* unmerge: use frozenset for syslistZac Medico2011-05-111-0/+1
|
* dep_check_composite_db: return early from cp_listZac Medico2011-05-111-1/+4
| | | | | Since this implementation is only intended to check for existence of new-style virtuals, it's a waste of time to return more than one cpv.
* depgraph: don't clear vardbapi cache in _load_vdbZac Medico2011-05-111-8/+0
| | | | | | Most of the memory is probably held on the heap by the installed package instances anyway, and the cache is useful for being inherited by subprocess in MergeProcess.
* dep_check_composite_db: remove unused _dep_expandZac Medico2011-05-111-41/+1
| | | | | | | | This code has been unused since dep_check started passing token_class=Atom to use_reduce in commit c9f7930883d62fc26af72bff0c4623db0bbc8221. Since then, any atoms without categories are dropped by dep_check because it returns early after catching an InvalidDependString exception.
* dep_check_composite_db: implement cp_listZac Medico2011-05-111-0/+17
| | | | | This is used by dep_check since commit 6f9ee9c508c1506cdf8eb0dc46796dbe30f268db.
* display_news_notification: don't populate virtsZac Medico2011-05-111-4/+0
| | | | | This typically isn't useful anymore, since Gentoo has stopped using old-style virtuals.
* unmerge: skip getvirtuals() if cat is not virtualZac Medico2011-05-111-2/+8
| | | | | This allows us to avoid triggering the old-style virtual code which scans /var/db/pkg/*/*/PROVIDE.
* unmerge: use expand_new_virt for sys pkg warningsZac Medico2011-05-112-63/+10
|
* merge_wait_queue: use deque.clear()Zac Medico2011-05-081-1/+1
|
* resume_depgraph: don't call break_refs in loopZac Medico2011-05-081-2/+1
| | | | | | | | | | The break_refs call was unnecessary and it broke the state of the frozen_config instance, causing the following error: File "pym/_emerge/depgraph.py", line 1290, in _wrapped_add_pkg_dep_string inst_pkgs = vardb.match_pkgs(atom) AttributeError: 'vardbapi' object has no attribute 'match_pkgs'
* Use new vardbapi lock function in FakeVartree.David James2011-05-081-11/+6
| | | | | | | BUG=none TEST=Merged some packages with new code. Ran test suite. Change-Id: Ibb9380122631bf6c79e39691233cfd641931b75a
* Be careful with system pkgs + parallel-install.Zac Medico2011-05-081-10/+18
| | | | | This should prevent FEATURES=parallel-install from interfering with the fixes from bug #256616 and bug #259954.
* Remove redundant pruneNonExisting() call.Zac Medico2011-05-081-1/+0
| | | | | | Since commit f36b9fa38b5268c2a5579db62acec026625f84a9, the PreservedLibsRegistry automatically prunes itself each time that it is loaded.
* Cleanup preserved lib locking in portage.David James2011-05-081-7/+0
| | | | | | | | | | | | This change makes preserved lib modification atomic, and prepares us for narrowing the scope of the merge lock. BUG=chromium-os:14983 TEST=Ran test suite and some example emerges. Change-Id: I39abb6a5ec72be3274e508ef807ac1d9e69db1a8 Review URL: http://gerrit.chromium.org/gerrit/417
* depgraph: simplify break_refsv2.1.9.47Zac Medico2011-05-052-21/+23
|
* emerge: fix misspell suggestion with categoryZac Medico2011-05-051-3/+2
| | | | A name collision in the "cp" variable caused it to malfunction.