summaryrefslogtreecommitdiffstats
path: root/scripts/libptxdist.sh
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2018-10-08 20:21:25 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-10-09 08:47:13 +0200
commit22e1ddfc62bf36331c28eef79e1540253e84e576 (patch)
tree959739502bb0eb8f8d58b76e26daa83586b6bc26 /scripts/libptxdist.sh
parente357567f4301def83b00e46ed798c7fb9e581b99 (diff)
downloadptxdist-22e1ddfc62bf36331c28eef79e1540253e84e576.tar.gz
ptxdist-22e1ddfc62bf36331c28eef79e1540253e84e576.tar.xz
ptxd_make_world_{extract,patchin}: handle lndir:// like file://
PTXDIST_PATH_LAYERS is used to find the absolute path for Relative file:// URLs. Do the same thing for lndir://. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/libptxdist.sh')
-rw-r--r--scripts/libptxdist.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/libptxdist.sh b/scripts/libptxdist.sh
index 65c1234e3..2153e510e 100644
--- a/scripts/libptxdist.sh
+++ b/scripts/libptxdist.sh
@@ -522,6 +522,7 @@ export -f ptxd_abs2rel
#
ptxd_file_url_path() {
local url="${1//file:\/\//}"
+ url="${url//lndir:\/\//}"
if [[ ! "${url}" =~ ^/ ]]; then
# relative to absolute path
if ptxd_in_path PTXDIST_PATH_LAYERS "${url}"; then