projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53f096c
)
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 03:59:24 +0000
(19:59 -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 78eb4299982a8fe68b2919ba6af2e07859430e49..16b79db4776d94fb288b4c5518cd2575aa66532e 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,