From 58968cfaa239c2c4658b86a0fa81cfa1cd33f9cb Mon Sep 17 00:00:00 2001 From: NicoHood Date: Sat, 7 Jan 2017 14:50:27 +0100 Subject: makechrootpkg: Fix broken symlink because of temporary chroot PKGDEST /pkgdest --- 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 -- cgit v1.2.3-70-g09d2