summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2006-04-16 21:15:39 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-04-16 21:15:39 +0000
commit2df0cdc8d8c8eb49eee79c8f82c5bcbf3676703d (patch)
tree17ea7040ca8c4acbd22d3378c8584468abb2b53b
parentdda0f8c7a259a59db463e18f4465bca8054032d0 (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.
-rw-r--r--classes/base.bbclass2
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