diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-05-30 23:31:14 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-05-30 23:31:14 +0000 |
commit | d2f49c205c63d98a38113a13d479f2ed2965b843 (patch) | |
tree | 574248f5414f043112fbba9466a97d2e4aa32370 | |
parent | 14f7e73efb00e2d51c34bc4a1854852ca0cc5962 (diff) | |
download | portage-d2f49c205c63d98a38113a13d479f2ed2965b843.tar.gz portage-d2f49c205c63d98a38113a13d479f2ed2965b843.tar.bz2 portage-d2f49c205c63d98a38113a13d479f2ed2965b843.zip |
Fix an IndexError in get_operator() that occurs when isvalidatom() passes it an empty string.
svn path=/main/trunk/; revision=6680
-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 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] == "=": |