summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-06-30 23:26:36 +0000
committerZac Medico <zmedico@gentoo.org>2009-06-30 23:26:36 +0000
commitea92be10c650ba2b743b76728479145e6c566685 (patch)
tree02df61419fcd3b87952eefcc94cb85718c5cfdab
parent7c6397ea17d3b62ca07b2980b921170fff0cb361 (diff)
downloadportage-ea92be10c650ba2b743b76728479145e6c566685.tar.gz
portage-ea92be10c650ba2b743b76728479145e6c566685.tar.bz2
portage-ea92be10c650ba2b743b76728479145e6c566685.zip
Remove obsolete blocker expansion code from _expand_new_virtuals.
svn path=/main/trunk/; revision=13751
-rw-r--r--pym/portage/__init__.py25
1 files changed, 6 insertions, 19 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index 69b8fda11..dcffbfb6f 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -6945,9 +6945,6 @@ def _expand_new_virtuals(mysplit, edebug, mydbapi, mysettings, myroot="/",
newsplit.append(x)
continue
match_atom = x
- if isblocker:
- match_atom = x.lstrip("!")
- isblocker = x[:-len(match_atom)]
pkgs = []
matches = portdb.match(match_atom)
# Use descending order to prefer higher versions.
@@ -6998,17 +6995,10 @@ def _expand_new_virtuals(mysplit, edebug, mydbapi, mysettings, myroot="/",
if not mycheck[0]:
raise portage.exception.ParseError(
"%s: %s '%s'" % (y[0], mycheck[1], depstring))
- if isblocker:
- virtual_atoms = [atom for atom in mycheck[1] \
- if not atom.startswith("!")]
- if len(virtual_atoms) == 1:
- # It wouldn't make sense to block all the components of a
- # compound virtual, so only a single atom block is allowed.
- a.append(portage.dep.Atom(isblocker + virtual_atoms[0]))
- else:
- # pull in the new-style virtual
- mycheck[1].append(portage.dep.Atom("="+y[0]))
- a.append(mycheck[1])
+
+ # pull in the new-style virtual
+ mycheck[1].append(portage.dep.Atom("="+y[0]))
+ a.append(mycheck[1])
# Plain old-style virtuals. New-style virtuals are preferred.
if not pkgs:
if repoman:
@@ -7026,7 +7016,7 @@ def _expand_new_virtuals(mysplit, edebug, mydbapi, mysettings, myroot="/",
portdb.aux_get(matches[-1], ['PROVIDE'])[0].split():
a.append(new_atom)
- if not a and not isblocker and mychoices:
+ if not a and mychoices:
# Check for a virtual package.provided match.
for y in mychoices:
new_atom = portage.dep.Atom(x.replace(mykey, dep_getkey(y), 1))
@@ -7039,10 +7029,7 @@ def _expand_new_virtuals(mysplit, edebug, mydbapi, mysettings, myroot="/",
elif len(a) == 1:
newsplit.append(a[0])
else:
- if isblocker:
- newsplit.extend(a)
- else:
- newsplit.append(['||'] + a)
+ newsplit.append(['||'] + a)
return newsplit