projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5288fc
)
Handle a potential IndexError.
author
Zac Medico
<zmedico@gentoo.org>
Thu, 25 Oct 2007 16:49:59 +0000
(16:49 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Thu, 25 Oct 2007 16:49:59 +0000
(16:49 -0000)
svn path=/main/trunk/; revision=8293
pym/portage/dbapi/vartree.py
patch
|
blob
|
history
diff --git
a/pym/portage/dbapi/vartree.py
b/pym/portage/dbapi/vartree.py
index 18fc70096e12b99b30a7735298ceb34c1f806d4e..209cebe4c7c9737f655e138805f662b3033ff252 100644
(file)
--- a/
pym/portage/dbapi/vartree.py
+++ b/
pym/portage/dbapi/vartree.py
@@
-970,7
+970,9
@@
class dblink(object):
noiselevel=-1)
continue
mydat = line.split()
- correct_split_count = contents_split_counts.get(mydat[0])
+ correct_split_count = None
+ if mydat:
+ correct_split_count = contents_split_counts.get(mydat[0])
if correct_split_count and len(mydat) != correct_split_count:
if mydat[0] == "obj" and \
len(mydat) > contents_split_counts["obj"]: