[pacman-dev] [PATCH 3/5] repo-add: sort file list entries
Andrew Gregory
andrew.gregory.8 at gmail.com
Fri Dec 9 16:14:05 UTC 2016
Signed-off-by: Andrew Gregory <andrew.gregory.8 at gmail.com>
---
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 a543611..2e921b8 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"
--
2.10.2
More information about the pacman-dev
mailing list