projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14f7e73
)
Fix an IndexError in get_operator() that occurs when isvalidatom() passes it an empty...
author
Zac Medico
<zmedico@gentoo.org>
Wed, 30 May 2007 23:31:14 +0000
(23:31 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Wed, 30 May 2007 23:31:14 +0000
(23:31 -0000)
svn path=/main/trunk/; revision=6680
pym/portage/dep.py
patch
|
blob
|
history
diff --git
a/pym/portage/dep.py
b/pym/portage/dep.py
index 9717e69d1122b33e1445f76c9e63d552080e2749..445d804e00c09d1ba5eae4e767197bdd010fac54 100644
(file)
--- 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] == "=":