[arch-projects] [devtools] [PATCH 5/5] checkpkg: Use a pipe to sort package lists

Lukas Fleischer archlinux at cryptocrack.de
Wed Aug 24 04:18:28 EDT 2011


No need to do this after we already wrote the package list to a file.

Signed-off-by: Lukas Fleischer <archlinux at cryptocrack.de>
---
 checkpkg |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/checkpkg b/checkpkg
index 2f442c9..94a7529 100755
--- a/checkpkg
+++ b/checkpkg
@@ -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"
 
-- 
1.7.6



More information about the arch-projects mailing list