summaryrefslogtreecommitdiffstats
path: root/scripts/lib/ptxd_make_world_extract.sh
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2015-06-11 12:18:56 +0200
committerMarc Kleine-Budde <mkl@pengutronix.de>2015-06-11 12:18:56 +0200
commiteeb8ec75531bbe5afb0c7cdf6d0a8a64c5de029c (patch)
treeb5b8ddcc9fec61037ceb3874f9c6e829f4fa675b /scripts/lib/ptxd_make_world_extract.sh
parent4ce8f8df63afa389234ebfa22354ec6727af532c (diff)
downloadptxdist-eeb8ec75531bbe5afb0c7cdf6d0a8a64c5de029c.tar.gz
ptxdist-eeb8ec75531bbe5afb0c7cdf6d0a8a64c5de029c.tar.xz
ptxd_make_world_extract: remove pkg_extract_dir before creating it
...pkg_extract_dir might be a link from a previous local_src/ override. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'scripts/lib/ptxd_make_world_extract.sh')
-rw-r--r--scripts/lib/ptxd_make_world_extract.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/lib/ptxd_make_world_extract.sh b/scripts/lib/ptxd_make_world_extract.sh
index 955c4872b..12dfbb6cb 100644
--- a/scripts/lib/ptxd_make_world_extract.sh
+++ b/scripts/lib/ptxd_make_world_extract.sh
@@ -25,6 +25,7 @@ ptxd_make_world_extract() {
fi
pkg_extract_dir="${pkg_deprecated_extract_dir:-${pkg_extract_dir}}"
+ rm -rf "${pkg_extract_dir}" || return
case "${pkg_url}" in
lndir://*)