Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/makechrootpkg.in
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@parabola.nu>2017-05-12 19:59:07 -0400
committerLuke Shumaker <lukeshu@parabola.nu>2017-05-12 19:59:07 -0400
commita6b542429b9ee6c7b1fcd8ccbd2c8e8896c3d947 (patch)
tree0f9e62ae0b81eb52aba5dbd59a1ebd8985c634d3 /makechrootpkg.in
parenta8dd194b345c46f614bf87d2429ebdd965c929e8 (diff)
parentc2da7fa9f27a60bb0ef8011394f93cfe8f3a6c72 (diff)
Merge branch 'lukeshu/to-upstream/never'libretools-20170512
Diffstat (limited to 'makechrootpkg.in')
-rw-r--r--makechrootpkg.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/makechrootpkg.in b/makechrootpkg.in
index 7589737..83eb787 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -356,6 +356,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
}
# }}}