diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2012-08-15 17:44:33 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-08-15 17:51:04 +0100 |
commit | 24babf9316da50c8a4d2f328c4336cb8cd6cf667 (patch) | |
tree | 242fbc8b4889df0a0e005d74296224df65bc7d29 | |
parent | 373895e6c691277e15a09aee3504243448c55b50 (diff) | |
download | openembedded-core-contrib-24babf9316da50c8a4d2f328c4336cb8cd6cf667.tar.gz |
classes/chrpath: trigger an error if chrpath fails
If chrpath failed here we were just silently ignoring it.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/chrpath.bbclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/chrpath.bbclass b/meta/classes/chrpath.bbclass index 10b5ca0180a..ad61fe09eab 100644 --- a/meta/classes/chrpath.bbclass +++ b/meta/classes/chrpath.bbclass @@ -74,7 +74,9 @@ def process_dir (directory, d): if len(new_rpaths): args = ":".join(new_rpaths) #bb.note("Setting rpath for %s to %s" %(fpath, args)) - sub.call([cmd, '-r', args, fpath]) + ret = sub.call([cmd, '-r', args, fpath]) + if ret != 0: + bb.error("chrpath command failed with exit code %d" % ret) if perms: os.chmod(fpath, perms) |