summaryrefslogtreecommitdiffstats
path: root/scripts/lib/ptxd_make_world_get.sh
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2014-02-28 09:39:45 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2014-02-28 18:49:44 +0100
commit4ebd0c38f378088cac7c114fc7c43a68e9c083fe (patch)
tree5e1473a18bdcc3951069481cc6949dc014928823 /scripts/lib/ptxd_make_world_get.sh
parent1845352f7cf72096a36a7faf5410f12e775f00d6 (diff)
downloadptxdist-4ebd0c38f378088cac7c114fc7c43a68e9c083fe.tar.gz
ptxdist-4ebd0c38f378088cac7c114fc7c43a68e9c083fe.tar.xz
ptxd_make_world_get: check for file:// URL and <PKG>_SOURCE here
Otherwise we fail after copying the local file. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/lib/ptxd_make_world_get.sh')
-rw-r--r--scripts/lib/ptxd_make_world_get.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/lib/ptxd_make_world_get.sh b/scripts/lib/ptxd_make_world_get.sh
index 2fc1ae681..973afa65b 100644
--- a/scripts/lib/ptxd_make_world_get.sh
+++ b/scripts/lib/ptxd_make_world_get.sh
@@ -13,6 +13,14 @@
ptxd_make_world_get() {
ptxd_make_world_init &&
+ case "${pkg_url}" in
+ file://*)
+ if [ -n "${pkg_src}" ]; then
+ ptxd_bailout "<PKG>_SOURCE must not be defined when using a file:// URL!"
+ fi
+ ;;
+ esac
+
if [ -n "${pkg_src}" -a \! -e "${pkg_src}" ]; then
ptxd_make_get "${pkg_src}" "${pkg_url}"
fi