[arch-dev-public] [PATCH] checkpkg: use sdiff to make output more readable

Andreas Radke a.radke at arcor.de
Sun Dec 19 05:29:25 EST 2010


I suggest to use sdiff -s to show differences in the file lists. This
makes it much better readable especially for very large file lists.

-Andy

diff --git a/checkpkg b/checkpkg
index 115306e..c55076c 100755
--- a/checkpkg
+++ b/checkpkg
@@ -80,7 +80,7 @@ for _pkgname in ${pkgname[@]}; do
        sort -o filelist-$_pkgname filelist-$_pkgname
        sort -o filelist-$_pkgname-old filelist-$_pkgname-old
 
-       diff -u filelist-$_pkgname-old filelist-$_pkgname
+       sdiff -s filelist-$_pkgname-old filelist-$_pkgname
 
        if diff filelist-$_pkgname-old filelist-$_pkgname | grep '\.so' > /dev/null 2>&1; then
                mkdir -p pkg


More information about the arch-dev-public mailing list