]> code.ossystems Code Review - openembedded-core.git/commitdiff
packaged-staging.bbclass: Fix for packages which don't stage anything
authorRichard Purdie <rpurdie@linux.intel.com>
Fri, 12 Jun 2009 14:55:11 +0000 (15:55 +0100)
committerRichard Purdie <rpurdie@linux.intel.com>
Fri, 12 Jun 2009 14:55:11 +0000 (15:55 +0100)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
meta/classes/packaged-staging.bbclass

index 4d32355f227591514f6e9f2990fca3c67bc7f31a..3dad4e8e0e192da1d8635e1de792eb632541dff9 100644 (file)
@@ -319,8 +319,8 @@ populate_staging_postamble () {
 
 autotools_staging_pstage () {
        mkdir -p ${PSTAGE_TMPDIR_STAGE}/staging/
-       cp -fpPR ${WORKDIR}/temp-staging-pstage/${STAGING_DIR}/* ${PSTAGE_TMPDIR_STAGE}/staging/
-       cp -fpPR ${WORKDIR}/temp-staging-pstage/${STAGING_DIR}/* ${STAGING_DIR}/
+       cp -fpPR ${WORKDIR}/temp-staging-pstage/${STAGING_DIR}/* ${PSTAGE_TMPDIR_STAGE}/staging/ || /bin/true
+       cp -fpPR ${WORKDIR}/temp-staging-pstage/${STAGING_DIR}/* ${STAGING_DIR}/ || /bin/true
 }
 
 #do_populate_staging[lockfiles] = "${STAGING_DIR}/staging.lock"