When writing the flist in pkg metadata, sort files before dirs.

--HG--
extra : convert_revision : bf341c59954e02e320986d259521643beb25f291
This commit is contained in:
Juan RP 2009-02-02 20:40:06 +01:00
parent 37668944b7
commit b2fe705924
1 changed files with 5 additions and 1 deletions

View File

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