diff options
author | Chris Larson <chris_larson@mentor.com> | 2011-02-14 12:41:34 -0500 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2011-02-14 12:41:34 -0500 |
commit | 1d6bdc44ad91c325073f3fa32050a105228161ca (patch) | |
tree | 7a2515bfe737b463be87a617fc4f7fb050651ae7 /classes | |
parent | 41e0fbf792037f249d1b8d283b3de81718887c9f (diff) | |
download | openembedded-1d6bdc44ad91c325073f3fa32050a105228161ca.tar.gz |
packaged-staging: add debug info for oe_run failures
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'classes')
-rw-r--r-- | classes/packaged-staging.bbclass | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/classes/packaged-staging.bbclass b/classes/packaged-staging.bbclass index 674dcc4d7e..bfc4ed8640 100644 --- a/classes/packaged-staging.bbclass +++ b/classes/packaged-staging.bbclass @@ -236,8 +236,8 @@ python packagestage_scenefunc () { cmd = bb.data.expand("${PSTAGE_PKGMANAGER} -f ${PSTAGE_MACHCONFIG} -force-depends -o ${WORKDIR}/tstage install", d) try: oe_run(d, "%s %s" % (cmd, stagepkg)) - except RuntimeError: - bb.fatal("Couldn't install the staging package to a temp directory") + except RuntimeError, exc: + bb.fatal("Couldn't install the staging package to a temp directory: %s" % exc) # # Grab the staging lock now so that we don't have other threads try and @@ -253,9 +253,9 @@ python packagestage_scenefunc () { cmd = bb.data.expand("cp -PpR ${WORKDIR}/tstage/stamps/* ${TMPDIR}/stamps/", d) try: ret = oe_run(d, cmd) - except RuntimeError: + except RuntimeError, exc: bb.utils.unlockfile(lf) - bb.fatal("Couldn't copy the staging package stamp files") + bb.fatal("Couldn't copy the staging package stamp files: %s" % exc) # # Iterate over the stamps seeing if they're valid. If we find any that |