When writing the flist in pkg metadata, sort files before dirs.
--HG-- extra : convert_revision : bf341c59954e02e320986d259521643beb25f291
This commit is contained in:
parent
37668944b7
commit
b2fe705924
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue