Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Alexander Steffens (heftig) <jan.steffens@gmail.com>2017-03-04 15:00:50 +0100
committerJan Alexander Steffens (heftig) <jan.steffens@gmail.com>2017-03-04 15:00:50 +0100
commit4bafd641ab4e18083a1bac829c0e914523351259 (patch)
tree020b8fc3f62c349e5922e53a62cb05d38a989a1d
parent58968cfaa239c2c4658b86a0fa81cfa1cd33f9cb (diff)
makechrootpkg: Simplify symlink replacement
-rw-r--r--makechrootpkg.in3
1 files changed, 1 insertions, 2 deletions
diff --git a/makechrootpkg.in b/makechrootpkg.in
index 766f237..e49bd48 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -236,8 +236,7 @@ move_products() {
# 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##*/}"
+ ln -sf "$PKGDEST/${pkgfile##*/}"
fi
done