binpkg: use -L flag for find(1) when creating flist.

This is required for the links to appear in.

--HG--
extra : convert_revision : 6951b6245f4c7106cd4db37f9b9365aac4023403
This commit is contained in:
Juan RP 2009-02-04 03:41:06 +01:00
parent 09fc2634ad
commit 7c97804022
1 changed files with 2 additions and 2 deletions

View File

@ -47,10 +47,10 @@ xbps_write_metadata_pkg()
# Write the files list. # Write the files list.
local TMPFLIST=$(mktemp -t flist.XXXXXXXXXX) || exit 1 local TMPFLIST=$(mktemp -t flist.XXXXXXXXXX) || exit 1
# First add the regular files. # First add the regular files.
find $destdir -type f | \ find -L $destdir -type f | \
sed -e "s|$destdir||g;s|^\/$||g;/^$/d" > $TMPFLIST sed -e "s|$destdir||g;s|^\/$||g;/^$/d" > $TMPFLIST
# and add the directories at the end. # and add the directories at the end.
find $destdir -type d | sort -ur | \ find -L $destdir -type d | sort -ur | \
sed -e "s|$destdir||g;s|^/$||g;/^$/d" >> $TMPFLIST sed -e "s|$destdir||g;s|^/$||g;/^$/d" >> $TMPFLIST
# Write the property list file. # Write the property list file.