summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2004-07-24 16:17:11 +0000
committerMichael Lauer <mickey@vanille-media.de>2004-07-24 16:17:11 +0000
commitbb83ae2257de3608456dfb9b75bf61cf20b01ebb (patch)
tree8ce892de00bfc1e6a395994dc8b49848780f2258 /classes
parentf5d77cb3b0bb085ae2270982842a227d54f0f762 (diff)
Merge bk://openembedded.bkbits.net/packages
into r2d2.tm.informatik.uni-frankfurt.de:/home/projekte/packages 2004/07/24 18:17:07+02:00 uni-frankfurt.de!mickey base.oeclass: raise an exception if base_read_file() fails BKrev: 41028b87eTa3VrUPupMY3nIaJMQHow
Diffstat (limited to 'classes')
-rw-r--r--classes/base.oeclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/classes/base.oeclass b/classes/base.oeclass
index 88b0b3e0be..b2a134cd62 100644
--- a/classes/base.oeclass
+++ b/classes/base.oeclass
@@ -16,10 +16,11 @@ def base_dep_prepend(d):
return deps
def base_read_file(filename):
+ import oe
try:
f = file( filename, "r" )
except IOError, reason:
- return "<unknown>:%s" % reason
+ raise oe.build.FuncFailed("can't read from file '%s' (%s)", (filename,reason))
else:
return f.read().strip()
return None