From: Zac Medico Date: Wed, 30 May 2007 23:31:38 +0000 (-0000) Subject: Fix an IndexError in get_operator() that occurs when isvalidatom() passes it an empty... X-Git-Tag: v2.1.2.9 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=32e5093e307438443a2c5453e52eb7a15a8aa837;p=portage.git 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 --- 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] == "=":