summaryrefslogtreecommitdiffstats
path: root/pym/_emerge
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Update timestamps in headers of modified files.Zac Medico2011-05-043-3/+3
|
* emerge: skip misspell suggestion if cp existsZac Medico2011-05-041-0/+8
|
* depgraph: autounmask account for optional depsZac Medico2011-05-041-0/+14
|
* depgraph: account for new-style virtual/libcZac Medico2011-05-041-71/+93
| | | | This will fix bug #364681.
* repoman: remove most old-style virtual checksZac Medico2011-05-041-1/+2
| | | | | | | | | PROVIDE virtuals have been banned from Gentoo's tree (see bug #365505), so these checks aren't needed anymore. The PROVIDE.syntax check is kept in the Package class since PROVIDE is still supported for backward compatibility, and therefore invalid syntax can still have negative effects. This check can be removed if/when backward compatibilty is completely dropped.
* depgraph: migrate implicit libc deps from SchedZac Medico2011-05-042-65/+65
| | | | | Now all the virtual/libc handling is done by the depgraph, which will be helpful when fixing bug #364681.
* emergelog: only set permission on creationZac Medico2011-05-041-3/+5
| | | | This will fix bug #365319.
* action_info: eliminate duplicate info_pkgs matchZac Medico2011-05-041-10/+21
| | | | | | | | | | Currently, sys-kernel/linux-headers is matched by both a plain sys-kernel/linux-headers atom and by the virtual/os-headers new-style virtual. For backward compatibility, we're going to have duplicates like this for at least a few months (see bug #364673, comment #5). Therefore, automatically eliminate duplicates in the display. Entries that include virtual provider info are preferred over those that do not.
* Move preinst/postinst_bsdflags from bash to pyDavid James2011-05-041-1/+6
| | | | | | | | | | | | | Moving these commands from shell to Python helps avoid an unnecessary call to misc-functions.sh for the postinst_bsdflags. This improves performance. BUG=none TEST=Run emerge-x86-generic -eg --jobs=16 libchrome Change-Id: I0c2af50b4d2f7644cabac84fde7fe4d682010c69 Review URL: http://codereview.chromium.org/6676107
* display_preserved_libs: load plib_registryZac Medico2011-05-041-1/+3
| | | | | | | Since commit 7535cabdf2fab76fc55df83643157613dfd66be9, the plib_registry is modified in a subprocess, and the parent process' copy can become stale because of this. Therefore, explicitly load it.
* emerge: add --misspell-suggestions=n optionZac Medico2011-05-043-1/+18
| | | | This will fix bug #363137.
* emerge: fix indent for --binpkg-respect-use helpZac Medico2011-05-041-1/+1
|
* --autounmask: Don't change masked/forced flagsSebastian Luther2011-05-041-1/+5
| | | | This will fix bug #364701.
* expand_new_virt: don't traverse blockersZac Medico2011-05-041-0/+6
|
* expand_new_virt: validate EAPI, IUSE and USEZac Medico2011-05-041-4/+25
|
* expand_new_virt: eliminate cpv_getkeyZac Medico2011-05-041-2/+1
|