packaged-staging.bbclass: removed two superfluous slashes
authorFrans Meulenbroeks <fransmeulenbroeks@gmail.com>
Wed, 3 Feb 2010 20:08:45 +0000 (21:08 +0100)
committerFrans Meulenbroeks <fransmeulenbroeks@gmail.com>
Wed, 3 Feb 2010 20:08:45 +0000 (21:08 +0100)
${SYSROOT_DESTDIR} ends on a / but there is also a / after the variable
and a slash as the first character of the next variable.
This patch removes the / that is explicitly added so in the generated
code we get // instead of the even sillier looking (and probably more
confusing) ///

Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
classes/packaged-staging.bbclass

index 108cfb0..1ede25c 100644 (file)
@@ -288,8 +288,8 @@ packagedstaging_fastpath () {
        if [ "$PSTAGING_ACTIVE" = "1" ]; then
                mkdir -p ${PSTAGE_TMPDIR_STAGE}/staging/
                mkdir -p ${PSTAGE_TMPDIR_STAGE}/cross/
-               cp -fpPR ${SYSROOT_DESTDIR}/${STAGING_DIR}/* ${PSTAGE_TMPDIR_STAGE}/staging/ || /bin/true
-               cp -fpPR ${SYSROOT_DESTDIR}/${CROSS_DIR}/* ${PSTAGE_TMPDIR_STAGE}/cross/ || /bin/true
+               cp -fpPR ${SYSROOT_DESTDIR}${STAGING_DIR}/* ${PSTAGE_TMPDIR_STAGE}/staging/ || /bin/true
+               cp -fpPR ${SYSROOT_DESTDIR}${CROSS_DIR}/* ${PSTAGE_TMPDIR_STAGE}/cross/ || /bin/true
        fi
 }