From: Zac Medico Date: Wed, 30 May 2007 23:31:14 +0000 (-0000) Subject: Fix an IndexError in get_operator() that occurs when isvalidatom() passes it an empty... X-Git-Tag: v2.2_pre1~1334 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d2f49c205c63d98a38113a13d479f2ed2965b843;p=portage.git Fix an IndexError in get_operator() that occurs when isvalidatom() passes it an empty string. svn path=/main/trunk/; revision=6680 --- diff --git a/pym/portage/dep.py b/pym/portage/dep.py index 9717e69d1..445d804e0 100644 --- a/pym/portage/dep.py +++ b/pym/portage/dep.py @@ -335,6 +335,8 @@ def get_operator(mydep): """ if mydep: mydep = remove_slot(mydep) + if not mydep: + return None if mydep[0] == "~": operator = "~" elif mydep[0] == "=":