summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/depgraph.py
Commit message (Collapse)AuthorAgeFilesLines
...
* rebuilt-binaries: prefer newer unbuiltZac Medico2011-05-251-1/+7
|
* Fix a typo in last commit's debug message.Zac Medico2011-05-241-1/+1
|
* depgraph: detect deps broken by autounmaskZac Medico2011-05-241-1/+37
| | | | This will fix bug #368429.
* test_merge_order: test asap PDEPEND (bug #180045)Zac Medico2011-05-241-0/+1
|
* _serialize_tasks: prefer unsatisfied asap childZac Medico2011-05-221-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-221-0/+14
| | | | | This fixes a problem with the asap LIBC_PACKAGE_ATOM test case for bug #303567.
* _validate_blockers: reference bug 128809Zac Medico2011-05-221-4/+7
|
* Package: add new _gen_hash_key methodZac Medico2011-05-221-16/+6
|
* DepPriority: remove "rebuild" attributeZac Medico2011-05-211-12/+0
| | | | | | | | | | | | | | | | 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.
* test_merge_order: test hard blocker resolutionZac Medico2011-05-201-2/+1
|
* _pkg_visibility_check: if in graph then visibleZac Medico2011-05-171-0/+9
|
* --autounmask-write: use CONFIGROOT moreZac Medico2011-05-171-1/+3
|
* Fix a typo in a comment.Zac Medico2011-05-171-1/+1
|
* depgraph._resolve: use temp set for autounmaskZac Medico2011-05-171-4/+8
|
* display_autounmask: optimize check_if_latestZac Medico2011-05-171-15/+16
|
* --autounmask-write: don't write hidden filesZac Medico2011-05-171-0/+6
|
* --autounmask-write: use CONFIGROOT and EROOTZac Medico2011-05-171-4/+9
|
* --autounmask-write: handle non-existent fileZac Medico2011-05-161-2/+20
|
* --autounmask-write: only prompt when necessaryZac Medico2011-05-161-1/+1
|
* --autounmask-write: handle config file recursionZac Medico2011-05-161-12/+24
|
* Enable --autounmask by defaultSebastian Luther2011-05-161-2/+2
|
* --autounmask-write: respect --askSebastian Luther2011-05-161-36/+64
|
* Fix some typos.Arfrever Frehtes Taifersar Arahesis2011-05-151-9/+9
|
* --autounmask: Treat missing keywords as masksSebastian Luther2011-05-151-0/+9
|
* --autounmask: Allow package.mask changesSebastian Luther2011-05-151-21/+79
|
* Implement --autounmask-writeSebastian Luther2011-05-151-76/+195
| | | | | Enabling this option together with --autounmask writes proposed changes to config files, honoring CONFIG_PROTECT.
* --autounmask: Use >= atoms if possibleSebastian Luther2011-05-141-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.
* depgraph: in complete mode respect --with-bdepsZac Medico2011-05-111-7/+3
| | | | | If you want the graph as complete as possible, now you'll have to use --with-bdeps=y together with --complete-graph.
* dep_check_composite_db: return early from cp_listZac Medico2011-05-101-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: traverse ignored DEPEND if "complete"Zac Medico2011-05-101-2/+5
|
* Strip build-time dependencies when they're ignored and we're not in ↵David James2011-05-101-0/+5
| | | | | | | | | | | --rebuild mode. This should improve depgraph calculation performance. TEST=Ran test suite. BUG=chromium-os:15144 Change-Id: I9e06817201d7a17ae9b44b424d01c1a2bd89210a
* depgraph: don't clear vardbapi cache in _load_vdbZac Medico2011-05-091-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-091-43/+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-091-0/+17
| | | | | This is used by dep_check since commit 6f9ee9c508c1506cdf8eb0dc46796dbe30f268db.
* 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'
* depgraph: simplify break_refsv2.2.0_alpha31Zac Medico2011-05-051-20/+14
|
* emerge: fix misspell suggestion with categoryZac Medico2011-05-051-3/+2
| | | | A name collision in the "cp" variable caused it to malfunction.
* add_pkg_deps: removal action discard DEPEND earlyZac Medico2011-05-041-0/+3
|
* add_pkg_deps: use dep priority to ignore blockersZac Medico2011-05-041-12/+10
|
* add_pkg_dep_string: respect traverse_ignored_depsZac Medico2011-05-041-3/+6
| | | | | I don't think this makes any difference now, but it clarifies how traverse_ignored_deps should behave.
* emerge: replace --rebuild with finer grained optsDavid James2011-05-041-7/+47
| | | | | | | | | | | | | | | | | | | | | | Replace --rebuild option with --rebuild-if-* options. --rebuild-if-new-rev [ y | n ] Rebuild packages when dependencies that are used at both build-time and run-time are built, if the dependency is not already installed with the same version and revision. --rebuild-if-new-ver [ y | n ] Rebuild packages when dependencies that are used at both build-time and run-time are built, if the dependency is not already installed with the same version. Revision numbers are ignored. --rebuild-if-unbuilt [ y | n ] Rebuild packages when dependencies that are used at both build-time and run-time are built. Change-Id: Ia50c1702bfe1b98a8d1891740e7bbb045921a905 Review URL: http://gerrit.chromium.org/gerrit/280
* Add --rebuild-ignore flag.David James2011-05-031-1/+5
| | | | | | | | | A space separated list of package names or slot atoms. Emerge will not rebuild packages that depend on matching packages due to \fB\-\-rebuild\fR. Change-Id: Ia58fe632ed06c97a22413da0341d7f8da2d65ba8 Review URL: http://gerrit.chromium.org/gerrit/209
* rebuild_config: propagate runtime deps to parentsDavid James2011-05-031-4/+8
| | | | | | | | | | | | | Update rebuild option to propagate runtime deps to parents. Suggested by SebastianLuther@gmx.de BUG=chromium-os:14858 TEST=Added unit test. Ran unit tests. Change-Id: I7228a8558eddd1956c590de39430172476c66228 Review URL: http://gerrit.chromium.org/gerrit/202
* emerge: skip misspell suggestion if cp existsZac Medico2011-05-021-0/+8
|
* depgraph: autounmask account for optional depsZac Medico2011-05-021-0/+14
|
* emerge: rename --no*-atoms to --*-excludeZac Medico2011-05-021-8/+8
|
* depgraph: queue ignored deps for later traversalZac Medico2011-05-011-13/+28
| | | | | | This will fix an issue with some build-time deps being ignored by --complete-graph in cases when --with-bdeps is not enabled. It should help --rebuild to find more rebuilds in this case.
* depgraph: account for new-style virtual/libcZac Medico2011-05-011-71/+93
| | | | This will fix bug #364681.
* trigger_rebuilds: handle circular depsZac Medico2011-05-011-1/+27
|
* depgraph: traverse bdeps in complete modeZac Medico2011-05-011-2/+5
| | | | | This makes the graph as complete as possible, and can help --rebuild to find more rebuilds.