diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-09-19 20:10:56 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-09-19 20:10:56 +0000 |
commit | d85e2123491fd84414b8d071de986d249ac194d9 (patch) | |
tree | f095b059afa5290a653f95cad0678dc31aeb713b | |
parent | 2b45f9c05da69af178bc47a77b28e5d133577c42 (diff) | |
download | portage-d85e2123491fd84414b8d071de986d249ac194d9.tar.gz portage-d85e2123491fd84414b8d071de986d249ac194d9.tar.bz2 portage-d85e2123491fd84414b8d071de986d249ac194d9.zip |
Remove obsolete InvalidAtom handler in _add_pkg_dep_string().
svn path=/main/trunk/; revision=14283
-rw-r--r-- | pym/_emerge/depgraph.py | 23 | ||||
-rw-r--r-- | pym/portage/__init__.py | 8 |
2 files changed, 12 insertions, 19 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 5b03dc3a2..e4affdf37 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -1148,23 +1148,16 @@ class depgraph(object): vardb = self._frozen_config.roots[dep_root].trees["vartree"].dbapi for atom in selected_atoms[pkg]: - try: - mypriority = dep_priority.copy() - if not atom.blocker and vardb.match(atom): - mypriority.satisfied = True - if not self._add_dep(Dependency(atom=atom, - blocker=atom.blocker, depth=depth, parent=pkg, - priority=mypriority, root=dep_root), - allow_unsatisfied=allow_unsatisfied): - return 0 + mypriority = dep_priority.copy() + if not atom.blocker and vardb.match(atom): + mypriority.satisfied = True - except portage.exception.InvalidAtom, e: - show_invalid_depstring_notice( - pkg, dep_string, str(e)) - del e - if not pkg.installed: - return 0 + if not self._add_dep(Dependency(atom=atom, + blocker=atom.blocker, depth=depth, parent=pkg, + priority=mypriority, root=dep_root), + allow_unsatisfied=allow_unsatisfied): + return 0 selected_atoms.pop(pkg) diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 3ea8b3b72..e84165041 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -213,10 +213,10 @@ class _unicode_module_wrapper(object): object.__setattr__(self, '_encoding', encoding) object.__setattr__(self, '_overrides', overrides) - def __getattribute__(self, attr): - result = getattr(object.__getattribute__(self, '_mod'), attr) - encoding = object.__getattribute__(self, '_encoding') - overrides = object.__getattribute__(self, '_overrides') + def __getattr__(self, attr): + result = getattr(self._mod, attr) + encoding = self._encoding + overrides = self._overrides override = None if overrides is not None: override = overrides.get(id(result)) |