xbps-src: workaround link target creation metadata.
busybox readlink -f doesn't output the target file if it doesn't exist, where coreutils one does... simply use readlink without -f for now.
This commit is contained in:
parent
b98da7d361
commit
e4e0d9a825
1 changed files with 1 additions and 2 deletions
|
@ -192,8 +192,7 @@ _EOF
|
|||
echo "<key>target</key>" >> $TMPFPLIST
|
||||
lnk=$(readlink -f "$f"|sed -e "s|${DESTDIR}||")
|
||||
if [ -z "$lnk" -o "$lnk" = "" ]; then
|
||||
rellnk=$(readlink "$f")
|
||||
lnk=$(readlink -f $(dirname $f)/$rellnk|sed -e "s|${DESTDIR}||")
|
||||
lnk=$(readlink "$f"|sed -e "s|${DESTDIR}||")
|
||||
fi
|
||||
echo "<string>$lnk</string>" >> $TMPFPLIST
|
||||
echo "</dict>" >> $TMPFPLIST
|
||||
|
|
Loading…
Reference in a new issue