repo-add: sort file list entries

Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Andrew Gregory 2016-12-09 11:14:05 -05:00 committed by Allan McRae
parent 01a6502169
commit 585bd89803

View file

@ -455,7 +455,7 @@ db_write_entry() {
msg2 "$(gettext "Creating '%s' db entry...")" 'files' msg2 "$(gettext "Creating '%s' db entry...")" 'files'
local files_path="$tmpdir/files/$pkgname-$pkgver/files" local files_path="$tmpdir/files/$pkgname-$pkgver/files"
echo "%FILES%" >"$files_path" echo "%FILES%" >"$files_path"
bsdtar --exclude='^.*' -tf "$pkgfile" >>"$files_path" bsdtar --exclude='^.*' -tf "$pkgfile" | LC_ALL=C sort -u >>"$files_path"
if (( RMEXISTING )); then if (( RMEXISTING )); then
msg2 "$(gettext "Removing old package file '%s'")" "$oldfilename" msg2 "$(gettext "Removing old package file '%s'")" "$oldfilename"