From 32e5093e307438443a2c5453e52eb7a15a8aa837 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 30 May 2007 23:31:38 +0000 Subject: [PATCH] Fix an IndexError in get_operator() that occurs when isvalidatom() passes it an empty string. (trunk r6680) svn path=/main/branches/2.1.2/; revision=6681 --- pym/portage_dep.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pym/portage_dep.py b/pym/portage_dep.py index a992992bf..b87058f7f 100644 --- a/pym/portage_dep.py +++ b/pym/portage_dep.py @@ -279,6 +279,8 @@ def get_operator(mydep): """ if mydep: mydep = remove_slot(mydep) + if not mydep: + return None if mydep[0] == "~": operator = "~" elif mydep[0] == "=": -- 2.26.2