xbps-src: (metadata.sh): if readlink -f returns nothing try without -f.

This commit is contained in:
Juan RP 2011-06-04 20:37:55 +02:00
parent 7bd6967a44
commit 670dc453e2

View File

@ -189,8 +189,11 @@ _EOF
echo "<key>file</key>" >> $TMPFPLIST
echo "<string>$j</string>" >> $TMPFPLIST
echo "<key>target</key>" >> $TMPFPLIST
echo "<string>$(readlink -f "$f"|sed -e "$fpattern")</string>" \
>> $TMPFPLIST
lnk=$(readlink -f "$f"|sed -e "s|${DESTDIR}||")
if [ -z "$lnk" -o "$lnk" = "" ]; then
lnk=$(readlink "$f"|sed -e "s|${DESTDIR}||")
fi
echo "<string>$lnk</string>" >> $TMPFPLIST
echo "</dict>" >> $TMPFPLIST
done
echo "</array>" >> $TMPFPLIST