Am Donnerstag, den 13.09.2018, 20:05 +0200 schrieb Florian Bäuerle:
> ptxt_install_find strips the last slash from a destination path. The
> result is an empty path if installing to the root directory.
> ---
>  scripts/lib/ptxd_make_xpkg_pkg.sh | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/scripts/lib/ptxd_make_xpkg_pkg.sh
> b/scripts/lib/ptxd_make_xpkg_pkg.sh
> index 5e69cefdc..51c24ce5e 100644
> --- a/scripts/lib/ptxd_make_xpkg_pkg.sh
> +++ b/scripts/lib/ptxd_make_xpkg_pkg.sh
> @@ -648,7 +648,8 @@ export -f ptxd_install_generic
>  
>  ptxd_install_find() {
>      local src="${1%/}"
> -    local dst="${2%/}"
> +    local dst=${2:1}
> +    dst=${2:0:1}${dst%/}

I needed that, otherwise

$(call install_tree, xorg-font-ttf-lohit-assamese, 0, 0, -, /)

does not work, because the slash is just stripped, leaving no dst path at all.

It looks a bit awkward, but bash does not support nested expansion, so that was
the best I could come up with.

>      local usr="${3#-}"
>      local grp="${4#-}"
>      local strip="${5}"
_______________________________________________
ptxdist mailing list
[email protected]

Reply via email to