summaryrefslogtreecommitdiffstats
path: root/scripts/libptxdist.sh
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2018-07-25 14:35:11 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-09-21 17:03:28 +0200
commit29be59e662938f91a82bad60d927e333504d1751 (patch)
treed894429b1b62e58067bb2096669b5fd863cba740 /scripts/libptxdist.sh
parent2b1419baaaefaac24fabfe094aaa21c9f0c553fa (diff)
downloadptxdist-29be59e662938f91a82bad60d927e333504d1751.tar.gz
ptxdist-29be59e662938f91a82bad60d927e333504d1751.tar.xz
ptxd_file_url_path: add layer support for relative file URLs
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/libptxdist.sh')
-rw-r--r--scripts/libptxdist.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/libptxdist.sh b/scripts/libptxdist.sh
index 1df5e7f1d..fcadf24bc 100644
--- a/scripts/libptxdist.sh
+++ b/scripts/libptxdist.sh
@@ -519,7 +519,11 @@ ptxd_file_url_path() {
local url="${1//file:\/\//}"
if [[ ! "${url}" =~ ^/ ]]; then
# relative to absolute path
- url="${PTXDIST_WORKSPACE}/${url}"
+ if ptxd_in_path PTXDIST_PATH_LAYERS "${url}"; then
+ url="${ptxd_reply}"
+ else
+ url="${PTXDIST_WORKSPACE}/${url}"
+ fi
fi
echo "${url}"
}