summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/chrpath.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/chrpath.bbclass b/meta/classes/chrpath.bbclass
index 10b5ca0180..ad61fe09ea 100644
--- a/meta/classes/chrpath.bbclass
+++ b/meta/classes/chrpath.bbclass
@@ -74,7 +74,9 @@ def process_dir (directory, d):
74 if len(new_rpaths): 74 if len(new_rpaths):
75 args = ":".join(new_rpaths) 75 args = ":".join(new_rpaths)
76 #bb.note("Setting rpath for %s to %s" %(fpath, args)) 76 #bb.note("Setting rpath for %s to %s" %(fpath, args))
77 sub.call([cmd, '-r', args, fpath]) 77 ret = sub.call([cmd, '-r', args, fpath])
78 if ret != 0:
79 bb.error("chrpath command failed with exit code %d" % ret)
78 80
79 if perms: 81 if perms:
80 os.chmod(fpath, perms) 82 os.chmod(fpath, perms)