Hi Michael,
Am Montag, den 17.09.2018, 10:40 +0200 schrieb Michael Olbrich:
> On Thu, Sep 13, 2018 at 08:05:54PM +0200, Florian Bäuerle wrote:
> > 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%/}
>
> local dst="${2%/}"
> dst=${dst:-/}
>
> I think, this is more obvious.
Yes it is.
>
> I'd also prefer a more limited path for install_tree. '/usr' I think, and
> the existing stuff for /etc for those packages that have it. But only do
> this if it doesn't take too long, or if you need to change all the patches
> anyways (I've not looked at those yet, so I don't know if they are ok now).
No problem at all, it won't take too long.
Should I then rip out this patch from the series and send it individually?
>
> Michael
>
> > local usr="${3#-}"
> > local grp="${4#-}"
> > local strip="${5}"
> > --
> > 2.19.0
> >
> >
> > _______________________________________________
> > ptxdist mailing list
> > [email protected]
>
>
_______________________________________________
ptxdist mailing list
[email protected]