index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
author | Luke Shumaker <lukeshu@parabola.nu> | 2017-05-12 19:57:05 -0400 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-07-14 07:00:40 +0200 |
commit | 77679c4c6c2f45cd39c6db156ac6c6b48076c69a (patch) | |
tree | 3180bd5ae6bd77e24da497ff1c5d51a76aac0134 | |
parent | cd000ccc0144c7ec54696520bf7217163a39cde0 (diff) |
-rw-r--r-- | makechrootpkg.in | 5 |
diff --git a/makechrootpkg.in b/makechrootpkg.in index 71bc9dc..5bcb82b 100644 --- a/makechrootpkg.in +++ b/makechrootpkg.in @@ -314,6 +314,11 @@ move_products() { for s in "$copydir"/srcpkgdest/*; do chown "$src_owner" "$s" mv "$s" "$SRCPKGDEST" + + # Fix broken symlink because of temporary chroot SRCPKGDEST /srcpkgdest + if [[ "$PWD" != "$SRCPKGDEST" && -L "$PWD/${s##*/}" ]]; then + ln -sf "$SRCPKGDEST/${s##*/}" + fi done } # }}} |