summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-08-15 08:19:49 +0000
committerZac Medico <zmedico@gentoo.org>2009-08-15 08:19:49 +0000
commit15291e1c07dfd3c01a352d7ce9a898824899c181 (patch)
treed7b7de868325bb6f64ad90f41b89e5a39cb7a58c /pym
parent5c69bb17654fe644124c80597fa96baf5394c821 (diff)
downloadportage-15291e1c07dfd3c01a352d7ce9a898824899c181.tar.gz
portage-15291e1c07dfd3c01a352d7ce9a898824899c181.tar.bz2
portage-15291e1c07dfd3c01a352d7ce9a898824899c181.zip
Remove ACCEPT_PROPERTIES variable generation code which isn't needed since,
unlike ACCEPT_LICENSE, ACCEPT_PROPERTIES isn't passed into the ebuild environment. svn path=/main/trunk/; revision=14063
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/__init__.py32
1 files changed, 0 insertions, 32 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index 25cac3e12..c75bb086b 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -2361,7 +2361,6 @@ class config(object):
if use is None:
use = frozenset(settings['PORTAGE_USE'].split())
values['ACCEPT_LICENSE'] = self._accept_license(use, settings)
- values['ACCEPT_PROPERTIES'] = self._accept_properties(use, settings)
values['PORTAGE_RESTRICT'] = self._restrict(use, settings)
return values
@@ -2395,35 +2394,6 @@ class config(object):
licenses = acceptable_licenses
return ' '.join(sorted(licenses))
- def _accept_properties(self, use, settings):
- """
- Generated a pruned version of ACCEPT_PROPERTIES, by intersection with
- PROPERTIES.
- Please, look at self._accept_license() to know why it is required.
- """
- try:
- properties = set(flatten(
- dep.use_reduce(dep.paren_reduce(
- settings['PROPERTIES']),
- uselist=use)))
- except exception.InvalidDependString:
- properties = set()
- properties.discard('||')
- if settings._accept_properties:
- acceptable_properties = set()
- for x in settings._accept_properties:
- if x == '*':
- acceptable_properties.update(properties)
- elif x == '-*':
- acceptable_properties.clear()
- elif x[1] == '-':
- acceptable_properties.discard(x[1:])
- elif x in properties:
- acceptable_properties.add(x)
-
- properties = acceptable_properties
- return ' '.join(sorted(properties))
-
def _restrict(self, use, settings):
try:
restrict = set(flatten(
@@ -2662,8 +2632,6 @@ class config(object):
lazy_vars = self._lazy_vars(built_use, self)
env_configdict.addLazySingleton('ACCEPT_LICENSE',
lazy_vars.__getitem__, 'ACCEPT_LICENSE')
- env_configdict.addLazySingleton('ACCEPT_PROPERTIES',
- lazy_vars.__getitem__, 'ACCEPT_PROPERTIES')
env_configdict.addLazySingleton('PORTAGE_RESTRICT',
lazy_vars.__getitem__, 'PORTAGE_RESTRICT')