1 |
commit: d8345b546c4212d928b38b972921879ef9fa466c |
2 |
Author: Sebastian Luther <SebastianLuther <AT> gmx <DOT> de> |
3 |
AuthorDate: Sun Mar 30 18:54:17 2014 +0000 |
4 |
Commit: Sebastian Luther <SebastianLuther <AT> gmx <DOT> de > |
5 |
CommitDate: Sun Mar 30 19:00:08 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=d8345b54 |
7 |
|
8 |
Remove some broken old-style virtual code |
9 |
|
10 |
Fixes a crash reported on IRC |
11 |
|
12 |
--- |
13 |
pym/portage/dep/dep_check.py | 14 -------------- |
14 |
1 file changed, 14 deletions(-) |
15 |
|
16 |
diff --git a/pym/portage/dep/dep_check.py b/pym/portage/dep/dep_check.py |
17 |
index b5ace3d..b79c5bc 100644 |
18 |
--- a/pym/portage/dep/dep_check.py |
19 |
+++ b/pym/portage/dep/dep_check.py |
20 |
@@ -91,7 +91,6 @@ def _expand_new_virtuals(mysplit, edebug, mydbapi, mysettings, myroot="/", |
21 |
if portdb.cp_list(x.cp): |
22 |
newsplit.append(x) |
23 |
else: |
24 |
- # TODO: Add PROVIDE check for repoman. |
25 |
a = [] |
26 |
myvartree = mytrees.get("vartree") |
27 |
if myvartree is not None: |
28 |
@@ -196,19 +195,6 @@ def _expand_new_virtuals(mysplit, edebug, mydbapi, mysettings, myroot="/", |
29 |
virt_atom_node = (virt_atom, id(virt_atom)) |
30 |
atom_graph.add(virt_atom_node, graph_parent) |
31 |
atom_graph.add(pkg, virt_atom_node) |
32 |
- # Plain old-style virtuals. New-style virtuals are preferred. |
33 |
- if not pkgs: |
34 |
- for y in mychoices: |
35 |
- new_atom = Atom(x.replace(x.cp, y.cp, 1)) |
36 |
- matches = portdb.match(new_atom) |
37 |
- # portdb is an instance of depgraph._dep_check_composite_db, so |
38 |
- # USE conditionals are already evaluated. |
39 |
- if matches and mykey in \ |
40 |
- portdb.aux_get(matches[-1], ['PROVIDE'])[0].split(): |
41 |
- a.append(new_atom) |
42 |
- if atom_graph is not None: |
43 |
- atom_graph.add((new_atom, id(new_atom)), |
44 |
- graph_parent) |
45 |
|
46 |
if not a and mychoices: |
47 |
# Check for a virtual package.provided match. |