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-02-15 18:39:40 -0500
committerLuke Shumaker <lukeshu@parabola.nu>2017-02-19 14:21:30 -0500
commitb1409a73a7531947a5a418d01e1f9b46af59e538 (patch)
treea9b68873f60cd7dcbd0f11951adaaf03c55e1fe6 /makechrootpkg.in
parent8ee94a8ff1be0a0247521d6cc2a5a5b1bdc1b78f (diff)
makechrootpkg: move_products: Mimic `makepkg` and symlink products into PWD.
Diffstat (limited to 'makechrootpkg.in')
-rw-r--r--makechrootpkg.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/makechrootpkg.in b/makechrootpkg.in
index 3c80fb7..416d598 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -388,6 +388,9 @@ move_products() {
for pkgfile in "$copydir"/pkgdest/*; do
chown "$src_owner" "$pkgfile"
mv "$pkgfile" "$PKGDEST"
+ if [[ $PKGDEST != $PWD ]]; then
+ ln -sf "$PKGDEST/${pkgfile##*/}" .
+ fi
done
local l