summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2016-12-09 17:14:05 +0100
committerAllan McRae <allan@archlinux.org>2017-01-04 04:59:15 +0100
commit585bd89803a37380f51d625115b58db4012f4df3 (patch)
tree0ca98827cb5b25f36629fe39fd4494715423af88
parent01a6502169f3e51ea52d60877528c5979898bbb3 (diff)
downloadpacman-585bd89803a37380f51d625115b58db4012f4df3.tar.gz
pacman-585bd89803a37380f51d625115b58db4012f4df3.tar.xz
repo-add: sort file list entries
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
-rw-r--r--scripts/repo-add.sh.in2
1 files changed, 1 insertions, 1 deletions
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"