diff options
author | Michael Lauer <mickey@vanille-media.de> | 2006-04-16 21:15:39 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2006-04-16 21:15:39 +0000 |
commit | 2df0cdc8d8c8eb49eee79c8f82c5bcbf3676703d (patch) | |
tree | 17ea7040ca8c4acbd22d3378c8584468abb2b53b /classes/base.bbclass | |
parent | dda0f8c7a259a59db463e18f4465bca8054032d0 (diff) |
base class: make base_read_file not raise an exception if the file to read is not present
This is necessary due to the new RDEPENDS handling. I don't feel 100% comfortable with it,
but until we rework the complete staging-shouldn't-contain-dependency-information, this is
our way.
Diffstat (limited to 'classes/base.bbclass')
-rw-r--r-- | classes/base.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/base.bbclass b/classes/base.bbclass index 340e5d91f8..a06c1c1905 100644 --- a/classes/base.bbclass +++ b/classes/base.bbclass @@ -27,7 +27,7 @@ def base_read_file(filename): try: f = file( filename, "r" ) except IOError, reason: - raise bb.build.FuncFailed("can't read from file '%s' (%s)", (filename,reason)) + return "" # WARNING: can't raise an error now because of the new RDEPENDS handling. This is a bit ugly. :M: else: return f.read().strip() return None |