From 545e33b9c3c47a312a38013fc02187929fd7e3e0 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 21 Nov 2008 21:55:43 +0000 Subject: [PATCH] Bug #248059 - In action_depclean(), ignore invalid atoms in deps of packages to be uninstalled. svn path=/main/trunk/; revision=12018 --- pym/_emerge/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 8978c4684..349263361 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -12783,7 +12783,10 @@ def action_depclean(settings, trees, ldpath_mtimes, priority = priority_map[dep_type] for atom in atoms: - if atom.startswith("!"): + if not isinstance(atom, portage.dep.Atom): + # Ignore invalid atoms returned from dep_check(). + continue + if atom.blocker: continue matches = vardb.match_pkgs(atom) if not matches: -- 2.26.2