diff options
author | Luke Shumaker <lukeshu@parabola.nu> | 2017-05-12 19:39:03 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@parabola.nu> | 2017-05-12 19:39:03 -0400 |
commit | 0b49af18f90c37bfde21b86c0007390ac63f0c3b (patch) | |
tree | a2eea4b12a013d7b87ac27089ef59c1c47ed571b /makechrootpkg.in | |
parent | 518a22f386ccb5968dce85490278494e058995b1 (diff) | |
download | devtools32-0b49af18f90c37bfde21b86c0007390ac63f0c3b.tar.xz |
makechrootpkg: Fix broken symlinks because of chroot SRCPKGDEST /srcpkgdestlukeshu/to-upstream/misc1-20170512
Commit 58968cf fixed symlinks for package products in $startdir in
light of the simplified chroot setup. However, a similar change needs
to be made for source-package products. This was an easy omission to
make because makechrootpkg does not produce source-pakcages by
default.
Diffstat (limited to 'makechrootpkg.in')
-rw-r--r-- | makechrootpkg.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/makechrootpkg.in b/makechrootpkg.in index ffe6e42..246774a 100644 --- a/makechrootpkg.in +++ b/makechrootpkg.in @@ -313,6 +313,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 } # }}} |