diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2014-02-28 09:39:45 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2014-02-28 18:49:44 +0100 |
commit | 4ebd0c38f378088cac7c114fc7c43a68e9c083fe (patch) | |
tree | 5e1473a18bdcc3951069481cc6949dc014928823 /scripts/lib/ptxd_make_world_get.sh | |
parent | 1845352f7cf72096a36a7faf5410f12e775f00d6 (diff) | |
download | ptxdist-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.sh | 8 |
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 |