index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
author | Luke Shumaker <lukeshu@parabola.nu> | 2017-05-12 19:59:07 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@parabola.nu> | 2017-05-12 19:59:07 -0400 |
commit | a6b542429b9ee6c7b1fcd8ccbd2c8e8896c3d947 (patch) | |
tree | 0f9e62ae0b81eb52aba5dbd59a1ebd8985c634d3 /makechrootpkg.in | |
parent | a8dd194b345c46f614bf87d2429ebdd965c929e8 (diff) | |
parent | c2da7fa9f27a60bb0ef8011394f93cfe8f3a6c72 (diff) |
-rw-r--r-- | makechrootpkg.in | 5 |
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 } # }}} |