summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2015-06-26 14:02:50 +0200
committerMarc Kleine-Budde <mkl@pengutronix.de>2015-06-26 14:02:50 +0200
commitcbb1356ec0d33fd9087173e35316878f3c9349d5 (patch)
tree1a57795787affcc409328f21c031f83b352ed8a2
parent1a25365f57e4cbf372b008a639ebbd36bbce307e (diff)
downloadptxdist-cbb1356ec0d33fd9087173e35316878f3c9349d5.tar.gz
ptxdist-cbb1356ec0d33fd9087173e35316878f3c9349d5.tar.xz
ptxd_make_world_patchin: don't fail on packages that don't extract anything
Since commit b6f9a55b3ddc ptxd_make_world_patchin: run use pkg_dir for patchin_fixup ptxdist will fail on packages that define a <PACKAGE>_DIR but don't create that during extract stage. This patch fixes the problem. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
-rw-r--r--scripts/lib/ptxd_make_world_patchin.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/ptxd_make_world_patchin.sh b/scripts/lib/ptxd_make_world_patchin.sh
index 170237ff9..e447e0546 100644
--- a/scripts/lib/ptxd_make_world_patchin.sh
+++ b/scripts/lib/ptxd_make_world_patchin.sh
@@ -491,7 +491,7 @@ ptxd_make_world_patchin_post() {
ptxd_make_world_autogen
fi
) fi &&
- if [ -n "${pkg_dir}" ]; then (
+ if [ -e "${pkg_dir}" ]; then (
cd "${pkg_dir}" &&
if [ "${pkg_type}" = "target" ]; then
ptxd_make_world_patchin_fixup