diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-08-24 10:18:28 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2011-08-25 11:22:13 +0200 |
commit | 3da3a5486f93e7b5a62ca18f4271a4b0d3a0380b (patch) | |
tree | 05f1b40d6edb4ecc9f6f2eb8483eb91e4c911575 | |
parent | 7020d2351bb3468d6b0d32ad5908b9b475ae274c (diff) |
checkpkg: Use a pipe to sort package lists
No need to do this after we already wrote the package list to a file.
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
-rwxr-xr-x | checkpkg | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -69,11 +69,8 @@ for _pkgname in "${pkgname[@]}"; do fi fi - bsdtar tf "$oldpkg" > "filelist-$_pkgname-old" - bsdtar tf "$pkgfile" > "filelist-$_pkgname" - - sort -o "filelist-$_pkgname" "filelist-$_pkgname" - sort -o "filelist-$_pkgname-old" "filelist-$_pkgname-old" + bsdtar tf "$oldpkg" | sort > "filelist-$_pkgname-old" + bsdtar tf "$pkgfile" | sort > "filelist-$_pkgname" sdiff -s "filelist-$_pkgname-old" "filelist-$_pkgname" |