From d1a0118ecf69626dacf6d64a011dcee3b48cf808 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 27 Sep 2008 22:10:26 +0000 Subject: Fix code inside BlockerDB.findInstalledBlockers() to correctly strip multiple "!" characters when necessary. The code seemed to work fine anyway so this is more a correctness fix than a bug fix. svn path=/main/trunk/; revision=11575 --- pym/_emerge/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pym') diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index eb6b855b8..519a1fdc2 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -3885,8 +3885,8 @@ class BlockerDB(object): show_invalid_depstring_notice(new_pkg, depstr, atoms) assert False - blocker_atoms = [atom[1:] for atom in atoms \ - if atom.startswith("!")] + blocker_atoms = [atom.lstrip("!") for atom in atoms \ + if atom[:1] == "!"] if blocker_atoms: blocker_atoms = InternalPackageSet(initial_atoms=blocker_atoms) for inst_pkg in installed_pkgs: -- cgit v1.2.3-1-g7c22