diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-05-30 23:31:38 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-05-30 23:31:38 +0000 |
commit | 32e5093e307438443a2c5453e52eb7a15a8aa837 (patch) | |
tree | 52a5effc71a55f56f5bdd30d61996a3409d6b0ca | |
parent | For bug #180399, raise an appropriate InvalidDependString exception if there ... (diff) | |
download | portage-2.1.2.9.tar.gz portage-2.1.2.9.tar.bz2 portage-2.1.2.9.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.py | 2 |
1 files changed, 2 insertions, 0 deletions
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] == "=": |