projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04cd72a
)
Fix unhandled FileNotFound from previous commit.
author
Zac Medico
<zmedico@gentoo.org>
Mon, 14 Feb 2011 03:59:24 +0000
(19:59 -0800)
committer
Zac Medico
<zmedico@gentoo.org>
Mon, 14 Feb 2011 04:30:55 +0000
(20:30 -0800)
There is an existing handler for EnvironmentError, so raise that
instead of FileNotFound.
pym/portage/dbapi/bintree.py
patch
|
blob
|
history
diff --git
a/pym/portage/dbapi/bintree.py
b/pym/portage/dbapi/bintree.py
index 0271bfa48f3fa5059dfdc06994ee24117eff1aac..29c8783e393b69178d483c4bee5172e92336bacf 100644
(file)
--- a/
pym/portage/dbapi/bintree.py
+++ b/
pym/portage/dbapi/bintree.py
@@
-807,7
+807,7
@@
class binarytree(object):
success = portage.getbinpkg.file_get(url,
tmp_dirname, fcmd=fcmd, filename=tmp_basename)
if not success:
- raise
portage.exception.FileNotFound(url
)
+ raise
EnvironmentError("%s failed" % (setting,)
)
f = open(tmp_filename, 'rb')
f_dec = codecs.iterdecode(f,