Skip to content
Snippets Groups Projects
Unverified Commit 58968cfa authored by NicoHood's avatar NicoHood Committed by Jan Alexander Steffens (heftig)
Browse files

makechrootpkg: Fix broken symlink because of temporary chroot PKGDEST /pkgdest

parent c8147a35
No related branches found
No related tags found
No related merge requests found
......@@ -233,6 +233,12 @@ move_products() {
for pkgfile in "$copydir"/pkgdest/*; do
chown "$src_owner" "$pkgfile"
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
for l in "$copydir"/logdest/*; do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment