[arch-projects] [devtools] [PATCH] Fix broken symlink because of temporary chroot PKGDEST /pkgdest

Jan Alexander Steffens jan.steffens at gmail.com
Sat Mar 4 14:01:53 UTC 2017


I've applied it locally and will push it soon.

Thanks,
Jan

On Sat, Mar 4, 2017 at 2:47 PM NicoHood <archlinux at nicohood.de> wrote:

> On 01/28/2017 11:35 AM, NicoHood wrote:
> > On 01/07/2017 02:50 PM, archlinux at nicohood.de wrote:
> >> From: NicoHood <git at nicohood.de>
> >>
> >> ---
> >>  makechrootpkg.in | 6 ++++++
> >>  1 file changed, 6 insertions(+)
> >>
> >> diff --git a/makechrootpkg.in b/makechrootpkg.in
> >> index 284d444..766f237 100644
> >> --- a/makechrootpkg.in
> >> +++ b/makechrootpkg.in
> >> @@ -233,6 +233,12 @@ move_products() {
> >>      for pkgfile in "$copydir"/pkgdest/*; do
> >>              chown "$src_owner" "$pkgfile"
> >>              mv "$pkgfile" "$PKGDEST"
> >> +
> >> +            # Fix broken symlink because of temporary chroot PKGDEST
> /pkgdest
> >> +            if [[ "$PWD" != "$PKGDEST" && -L "$PWD/${pkgfile##*/}" ]];
> then
> >> +                    rm "$PWD/${pkgfile##*/}"
> >> +                    ln -s "$PKGDEST/${pkgfile##*/}"
> "$PWD/${pkgfile##*/}"
> >> +            fi
> >>      done
> >>
> >>      for l in "$copydir"/logdest/*; do
> >>
> >
> > Any chance to see this patch applied? It would be really helpful.
> >
> > Cheers
> > Nico
> >
>
> *Push* Symlinks are broken without this change. Please apply this patch.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.archlinux.org/pipermail/arch-projects/attachments/20170304/36847a20/attachment.html>


More information about the arch-projects mailing list