makechrootpkg: Fix broken symlink because of temporary chroot PKGDEST /pkgdest
This commit is contained in:
parent
c8147a3512
commit
58968cfaa2
|
@ -233,6 +233,12 @@ move_products() {
|
||||||
for pkgfile in "$copydir"/pkgdest/*; do
|
for pkgfile in "$copydir"/pkgdest/*; do
|
||||||
chown "$src_owner" "$pkgfile"
|
chown "$src_owner" "$pkgfile"
|
||||||
mv "$pkgfile" "$PKGDEST"
|
mv "$pkgfile" "$PKGDEST"
|
||||||
|
|
||||||
|
# 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##*/}"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
for l in "$copydir"/logdest/*; do
|
for l in "$copydir"/logdest/*; do
|
||||||
|
|
Loading…
Reference in New Issue