summaryrefslogtreecommitdiffstats
path: root/pym/_emerge
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* expand_new_virt: use stack for recursionZac Medico2011-05-041-24/+25
|
* Fix a typo.Arfrever Frehtes Taifersar Arahesis2011-05-041-1/+1
|
* emerge --info: support new-style virtualsZac Medico2011-05-041-23/+62
| | | | This will fix bug #364673.
* Update timestamps in headers of modified files.Zac Medico2011-04-131-1/+1
|
* Remove unnecessary sync in Scheduler.py.David James2011-04-131-1/+1
| | | | | | | | | | | | | | If we are passed a fakevartree object, it should already be sync'd, so there is no need to sync it again here. This sync is only needed when we create a new FakeVartree, so I moved the sync to the right place to fix this. BUG=chromium-os:14035 TEST=Build a bunch of packages with this patch. Change-Id: I89d79cf946f4c0c27ad585ad7c88a41985260342 Review URL: http://codereview.chromium.org/6813084
* Fix a typo in a comment.Zac Medico2011-04-131-1/+1
|
* Scheduler: add more info in docstring commentsZac Medico2011-04-131-1/+7
| | | | This clarifies the purposes of _system_merge_started and _choose_pkg.
* Display: fix fetch restrict msg for RO_DISTDIRSZac Medico2011-04-131-1/+1
| | | | This will fix bug #361463.
* chk_updated_info_files: handle --quietZac Medico2011-04-131-3/+5
| | | | This will fix bug #361257.
* Update header timestamps for modified files.Zac Medico2011-03-262-2/+2
|
* Scheduler: pkg_to_replace beware old-style virtZac Medico2011-03-261-1/+2
|
* BlockerDB: add SLOT match in discardBlockerZac Medico2011-03-261-1/+3
|
* MergeListItem: inherit _poll and _waitZac Medico2011-03-261-8/+0
|
* unmerge: fix PORTAGE_BACKGROUND logicZac Medico2011-03-261-0/+7
|
* PollScheduler: tweak _unregister event cleanupZac Medico2011-03-261-5/+9
|
* PollScheduler: handle missing log directoryZac Medico2011-03-261-12/+23
| | | | | This can be triggered by AbstractPollTask._log_poll_exception(), as reported by Michael Haubenwallner <haubi@gentoo.org> for AIX.
* Update Portage to sync BlockerDB at init.David James2011-03-263-30/+25
| | | | | | | | | | | | Currently, Portage syncs the BlockerDB before every merge. This slows down merges considerably because it requires reading the entire vardb from disk. Since Portage doesn't merge conflicting packages anyway, we can optimize this by just reading the vardb at initialization and caching that. Change-Id: I6701926f022ef3aa2da10482fc8b09573ae24610 Review URL: http://codereview.chromium.org/6688037
* emerge: support [ y | n ] for --askZac Medico2011-03-262-3/+18
| | | | | | This allows --ask to be enabled via EMERGE_DEFAULT_OPTS, and then temporarily disabled via the command-line. This may be useful for programs that call emerge non-interactively, as in bug #360233.
* get_dep_chain: handle InvalidDependStringZac Medico2011-03-261-2/+6
|
* chk_updated_cfg_files: fix whitespace in messageZac Medico2011-03-261-1/+2
| | | | Thanks to Dennis Schridde in bug #359681.
* emerge_main: add "args" parameter (sys.argv[1:])Zac Medico2011-03-261-7/+12
| | | | | Also, fix local portage.debug import so that "global portage" is not necessary.