summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-05-30 23:31:38 +0000
committerZac Medico <zmedico@gentoo.org>2007-05-30 23:31:38 +0000
commit32e5093e307438443a2c5453e52eb7a15a8aa837 (patch)
tree52a5effc71a55f56f5bdd30d61996a3409d6b0ca
parentFor bug #180399, raise an appropriate InvalidDependString exception if there ... (diff)
downloadportage-multirepo-32e5093e307438443a2c5453e52eb7a15a8aa837.tar.gz
portage-multirepo-32e5093e307438443a2c5453e52eb7a15a8aa837.tar.bz2
portage-multirepo-32e5093e307438443a2c5453e52eb7a15a8aa837.zip
Fix an IndexError in get_operator() that occurs when isvalidatom() passes it an empty string. (trunk r6680)v2.1.2.9
svn path=/main/branches/2.1.2/; revision=6681
-rw-r--r--pym/portage_dep.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/portage_dep.py b/pym/portage_dep.py
index a992992b..b87058f7 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] == "=":