From 585bd89803a37380f51d625115b58db4012f4df3 Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Fri, 9 Dec 2016 11:14:05 -0500 Subject: repo-add: sort file list entries Signed-off-by: Andrew Gregory Signed-off-by: Allan McRae --- scripts/repo-add.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/repo-add.sh.in b/scripts/repo-add.sh.in index 5ffe1ba4..6333f6a2 100644 --- a/scripts/repo-add.sh.in +++ b/scripts/repo-add.sh.in @@ -455,7 +455,7 @@ db_write_entry() { msg2 "$(gettext "Creating '%s' db entry...")" 'files' local files_path="$tmpdir/files/$pkgname-$pkgver/files" echo "%FILES%" >"$files_path" - bsdtar --exclude='^.*' -tf "$pkgfile" >>"$files_path" + bsdtar --exclude='^.*' -tf "$pkgfile" | LC_ALL=C sort -u >>"$files_path" if (( RMEXISTING )); then msg2 "$(gettext "Removing old package file '%s'")" "$oldfilename" -- cgit v1.2.3-24-g4f1b